1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for goocanvas 1.0.0.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME='goocanvas'
700PACKAGE_TARNAME='goocanvas'
701PACKAGE_VERSION='1.0.0'
702PACKAGE_STRING='goocanvas 1.0.0'
703PACKAGE_BUGREPORT=''
704PACKAGE_URL=''
705
706ac_unique_file="src/goocanvas.c"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747GTK_DOC_USE_REBASE_FALSE
748GTK_DOC_USE_REBASE_TRUE
749GTK_DOC_USE_LIBTOOL_FALSE
750GTK_DOC_USE_LIBTOOL_TRUE
751GTK_DOC_BUILD_PDF_FALSE
752GTK_DOC_BUILD_PDF_TRUE
753GTK_DOC_BUILD_HTML_FALSE
754GTK_DOC_BUILD_HTML_TRUE
755ENABLE_GTK_DOC_FALSE
756ENABLE_GTK_DOC_TRUE
757HTML_DIR
758GTKDOC_MKPDF
759GTKDOC_REBASE
760GTKDOC_CHECK
761PLATFORM_WIN32_FALSE
762PLATFORM_WIN32_TRUE
763REBUILD
764PERL
765GLIB_MKENUMS
766GLIB_GENMARSHAL
767MKINSTALLDIRS
768POSUB
769POFILES
770PO_IN_DATADIR_FALSE
771PO_IN_DATADIR_TRUE
772INTLLIBS
773INSTOBJEXT
774GMOFILES
775DATADIRNAME
776CATOBJEXT
777CATALOGS
778XGETTEXT
779GMSGFMT
780MSGFMT_OPTS
781MSGFMT
782USE_NLS
783GETTEXT_PACKAGE
784PACKAGE_LIBS
785PACKAGE_CFLAGS
786PKG_CONFIG
787OTOOL64
788OTOOL
789LIPO
790NMEDIT
791DSYMUTIL
792lt_ECHO
793RANLIB
794AR
795OBJDUMP
796LN_S
797NM
798ac_ct_DUMPBIN
799DUMPBIN
800LD
801FGREP
802SED
803host_os
804host_vendor
805host_cpu
806host
807build_os
808build_vendor
809build_cpu
810build
811LIBTOOL
812EGREP
813GREP
814CPP
815am__fastdepCC_FALSE
816am__fastdepCC_TRUE
817CCDEPMODE
818AMDEPBACKSLASH
819AMDEP_FALSE
820AMDEP_TRUE
821am__quote
822am__include
823DEPDIR
824OBJEXT
825EXEEXT
826ac_ct_CC
827CPPFLAGS
828LDFLAGS
829CFLAGS
830CC
831MAINT
832MAINTAINER_MODE_FALSE
833MAINTAINER_MODE_TRUE
834LT_VERSION_INFO
835am__untar
836am__tar
837AMTAR
838am__leading_dot
839SET_MAKE
840AWK
841mkdir_p
842MKDIR_P
843INSTALL_STRIP_PROGRAM
844STRIP
845install_sh
846MAKEINFO
847AUTOHEADER
848AUTOMAKE
849AUTOCONF
850ACLOCAL
851VERSION
852PACKAGE
853CYGPATH_W
854am__isrc
855INSTALL_DATA
856INSTALL_SCRIPT
857INSTALL_PROGRAM
858target_alias
859host_alias
860build_alias
861LIBS
862ECHO_T
863ECHO_N
864ECHO_C
865DEFS
866mandir
867localedir
868libdir
869psdir
870pdfdir
871dvidir
872htmldir
873infodir
874docdir
875oldincludedir
876includedir
877localstatedir
878sharedstatedir
879sysconfdir
880datadir
881datarootdir
882libexecdir
883sbindir
884bindir
885program_transform_name
886prefix
887exec_prefix
888PACKAGE_URL
889PACKAGE_BUGREPORT
890PACKAGE_STRING
891PACKAGE_VERSION
892PACKAGE_TARNAME
893PACKAGE_NAME
894PATH_SEPARATOR
895SHELL'
896ac_subst_files=''
897ac_user_opts='
898enable_option_checking
899enable_maintainer_mode
900enable_dependency_tracking
901enable_shared
902enable_static
903with_pic
904enable_fast_install
905with_gnu_ld
906enable_libtool_lock
907enable_rebuilds
908with_html_dir
909enable_gtk_doc
910enable_gtk_doc_html
911enable_gtk_doc_pdf
912'
913      ac_precious_vars='build_alias
914host_alias
915target_alias
916CC
917CFLAGS
918LDFLAGS
919LIBS
920CPPFLAGS
921CPP
922PKG_CONFIG
923PACKAGE_CFLAGS
924PACKAGE_LIBS'
925
926
927# Initialize some variables set by options.
928ac_init_help=
929ac_init_version=false
930ac_unrecognized_opts=
931ac_unrecognized_sep=
932# The variables have the same names as the options, with
933# dashes changed to underlines.
934cache_file=/dev/null
935exec_prefix=NONE
936no_create=
937no_recursion=
938prefix=NONE
939program_prefix=NONE
940program_suffix=NONE
941program_transform_name=s,x,x,
942silent=
943site=
944srcdir=
945verbose=
946x_includes=NONE
947x_libraries=NONE
948
949# Installation directory options.
950# These are left unexpanded so users can "make install exec_prefix=/foo"
951# and all the variables that are supposed to be based on exec_prefix
952# by default will actually change.
953# Use braces instead of parens because sh, perl, etc. also accept them.
954# (The list follows the same order as the GNU Coding Standards.)
955bindir='${exec_prefix}/bin'
956sbindir='${exec_prefix}/sbin'
957libexecdir='${exec_prefix}/libexec'
958datarootdir='${prefix}/share'
959datadir='${datarootdir}'
960sysconfdir='${prefix}/etc'
961sharedstatedir='${prefix}/com'
962localstatedir='${prefix}/var'
963includedir='${prefix}/include'
964oldincludedir='/usr/include'
965docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
966infodir='${datarootdir}/info'
967htmldir='${docdir}'
968dvidir='${docdir}'
969pdfdir='${docdir}'
970psdir='${docdir}'
971libdir='${exec_prefix}/lib'
972localedir='${datarootdir}/locale'
973mandir='${datarootdir}/man'
974
975ac_prev=
976ac_dashdash=
977for ac_option
978do
979  # If the previous option needs an argument, assign it.
980  if test -n "$ac_prev"; then
981    eval $ac_prev=\$ac_option
982    ac_prev=
983    continue
984  fi
985
986  case $ac_option in
987  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
988  *)	ac_optarg=yes ;;
989  esac
990
991  # Accept the important Cygnus configure options, so we can diagnose typos.
992
993  case $ac_dashdash$ac_option in
994  --)
995    ac_dashdash=yes ;;
996
997  -bindir | --bindir | --bindi | --bind | --bin | --bi)
998    ac_prev=bindir ;;
999  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000    bindir=$ac_optarg ;;
1001
1002  -build | --build | --buil | --bui | --bu)
1003    ac_prev=build_alias ;;
1004  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005    build_alias=$ac_optarg ;;
1006
1007  -cache-file | --cache-file | --cache-fil | --cache-fi \
1008  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009    ac_prev=cache_file ;;
1010  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012    cache_file=$ac_optarg ;;
1013
1014  --config-cache | -C)
1015    cache_file=config.cache ;;
1016
1017  -datadir | --datadir | --datadi | --datad)
1018    ac_prev=datadir ;;
1019  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020    datadir=$ac_optarg ;;
1021
1022  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023  | --dataroo | --dataro | --datar)
1024    ac_prev=datarootdir ;;
1025  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027    datarootdir=$ac_optarg ;;
1028
1029  -disable-* | --disable-*)
1030    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033      as_fn_error "invalid feature name: $ac_useropt"
1034    ac_useropt_orig=$ac_useropt
1035    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036    case $ac_user_opts in
1037      *"
1038"enable_$ac_useropt"
1039"*) ;;
1040      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041	 ac_unrecognized_sep=', ';;
1042    esac
1043    eval enable_$ac_useropt=no ;;
1044
1045  -docdir | --docdir | --docdi | --doc | --do)
1046    ac_prev=docdir ;;
1047  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048    docdir=$ac_optarg ;;
1049
1050  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051    ac_prev=dvidir ;;
1052  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053    dvidir=$ac_optarg ;;
1054
1055  -enable-* | --enable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error "invalid feature name: $ac_useropt"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073  | --exec | --exe | --ex)
1074    ac_prev=exec_prefix ;;
1075  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077  | --exec=* | --exe=* | --ex=*)
1078    exec_prefix=$ac_optarg ;;
1079
1080  -gas | --gas | --ga | --g)
1081    # Obsolete; use --with-gas.
1082    with_gas=yes ;;
1083
1084  -help | --help | --hel | --he | -h)
1085    ac_init_help=long ;;
1086  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087    ac_init_help=recursive ;;
1088  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089    ac_init_help=short ;;
1090
1091  -host | --host | --hos | --ho)
1092    ac_prev=host_alias ;;
1093  -host=* | --host=* | --hos=* | --ho=*)
1094    host_alias=$ac_optarg ;;
1095
1096  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097    ac_prev=htmldir ;;
1098  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099  | --ht=*)
1100    htmldir=$ac_optarg ;;
1101
1102  -includedir | --includedir | --includedi | --included | --include \
1103  | --includ | --inclu | --incl | --inc)
1104    ac_prev=includedir ;;
1105  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106  | --includ=* | --inclu=* | --incl=* | --inc=*)
1107    includedir=$ac_optarg ;;
1108
1109  -infodir | --infodir | --infodi | --infod | --info | --inf)
1110    ac_prev=infodir ;;
1111  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112    infodir=$ac_optarg ;;
1113
1114  -libdir | --libdir | --libdi | --libd)
1115    ac_prev=libdir ;;
1116  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117    libdir=$ac_optarg ;;
1118
1119  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120  | --libexe | --libex | --libe)
1121    ac_prev=libexecdir ;;
1122  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123  | --libexe=* | --libex=* | --libe=*)
1124    libexecdir=$ac_optarg ;;
1125
1126  -localedir | --localedir | --localedi | --localed | --locale)
1127    ac_prev=localedir ;;
1128  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129    localedir=$ac_optarg ;;
1130
1131  -localstatedir | --localstatedir | --localstatedi | --localstated \
1132  | --localstate | --localstat | --localsta | --localst | --locals)
1133    ac_prev=localstatedir ;;
1134  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136    localstatedir=$ac_optarg ;;
1137
1138  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139    ac_prev=mandir ;;
1140  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141    mandir=$ac_optarg ;;
1142
1143  -nfp | --nfp | --nf)
1144    # Obsolete; use --without-fp.
1145    with_fp=no ;;
1146
1147  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148  | --no-cr | --no-c | -n)
1149    no_create=yes ;;
1150
1151  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153    no_recursion=yes ;;
1154
1155  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157  | --oldin | --oldi | --old | --ol | --o)
1158    ac_prev=oldincludedir ;;
1159  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162    oldincludedir=$ac_optarg ;;
1163
1164  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165    ac_prev=prefix ;;
1166  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167    prefix=$ac_optarg ;;
1168
1169  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170  | --program-pre | --program-pr | --program-p)
1171    ac_prev=program_prefix ;;
1172  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174    program_prefix=$ac_optarg ;;
1175
1176  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177  | --program-suf | --program-su | --program-s)
1178    ac_prev=program_suffix ;;
1179  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181    program_suffix=$ac_optarg ;;
1182
1183  -program-transform-name | --program-transform-name \
1184  | --program-transform-nam | --program-transform-na \
1185  | --program-transform-n | --program-transform- \
1186  | --program-transform | --program-transfor \
1187  | --program-transfo | --program-transf \
1188  | --program-trans | --program-tran \
1189  | --progr-tra | --program-tr | --program-t)
1190    ac_prev=program_transform_name ;;
1191  -program-transform-name=* | --program-transform-name=* \
1192  | --program-transform-nam=* | --program-transform-na=* \
1193  | --program-transform-n=* | --program-transform-=* \
1194  | --program-transform=* | --program-transfor=* \
1195  | --program-transfo=* | --program-transf=* \
1196  | --program-trans=* | --program-tran=* \
1197  | --progr-tra=* | --program-tr=* | --program-t=*)
1198    program_transform_name=$ac_optarg ;;
1199
1200  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201    ac_prev=pdfdir ;;
1202  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203    pdfdir=$ac_optarg ;;
1204
1205  -psdir | --psdir | --psdi | --psd | --ps)
1206    ac_prev=psdir ;;
1207  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208    psdir=$ac_optarg ;;
1209
1210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211  | -silent | --silent | --silen | --sile | --sil)
1212    silent=yes ;;
1213
1214  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215    ac_prev=sbindir ;;
1216  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217  | --sbi=* | --sb=*)
1218    sbindir=$ac_optarg ;;
1219
1220  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222  | --sharedst | --shareds | --shared | --share | --shar \
1223  | --sha | --sh)
1224    ac_prev=sharedstatedir ;;
1225  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228  | --sha=* | --sh=*)
1229    sharedstatedir=$ac_optarg ;;
1230
1231  -site | --site | --sit)
1232    ac_prev=site ;;
1233  -site=* | --site=* | --sit=*)
1234    site=$ac_optarg ;;
1235
1236  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237    ac_prev=srcdir ;;
1238  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239    srcdir=$ac_optarg ;;
1240
1241  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242  | --syscon | --sysco | --sysc | --sys | --sy)
1243    ac_prev=sysconfdir ;;
1244  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246    sysconfdir=$ac_optarg ;;
1247
1248  -target | --target | --targe | --targ | --tar | --ta | --t)
1249    ac_prev=target_alias ;;
1250  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251    target_alias=$ac_optarg ;;
1252
1253  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254    verbose=yes ;;
1255
1256  -version | --version | --versio | --versi | --vers | -V)
1257    ac_init_version=: ;;
1258
1259  -with-* | --with-*)
1260    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263      as_fn_error "invalid package name: $ac_useropt"
1264    ac_useropt_orig=$ac_useropt
1265    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266    case $ac_user_opts in
1267      *"
1268"with_$ac_useropt"
1269"*) ;;
1270      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271	 ac_unrecognized_sep=', ';;
1272    esac
1273    eval with_$ac_useropt=\$ac_optarg ;;
1274
1275  -without-* | --without-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=no ;;
1290
1291  --x)
1292    # Obsolete; use --with-x.
1293    with_x=yes ;;
1294
1295  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296  | --x-incl | --x-inc | --x-in | --x-i)
1297    ac_prev=x_includes ;;
1298  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300    x_includes=$ac_optarg ;;
1301
1302  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304    ac_prev=x_libraries ;;
1305  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307    x_libraries=$ac_optarg ;;
1308
1309  -*) as_fn_error "unrecognized option: \`$ac_option'
1310Try \`$0 --help' for more information."
1311    ;;
1312
1313  *=*)
1314    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315    # Reject names that are not valid shell variable names.
1316    case $ac_envvar in #(
1317      '' | [0-9]* | *[!_$as_cr_alnum]* )
1318      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1319    esac
1320    eval $ac_envvar=\$ac_optarg
1321    export $ac_envvar ;;
1322
1323  *)
1324    # FIXME: should be removed in autoconf 3.0.
1325    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329    ;;
1330
1331  esac
1332done
1333
1334if test -n "$ac_prev"; then
1335  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336  as_fn_error "missing argument to $ac_option"
1337fi
1338
1339if test -n "$ac_unrecognized_opts"; then
1340  case $enable_option_checking in
1341    no) ;;
1342    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1343    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344  esac
1345fi
1346
1347# Check all directory arguments for consistency.
1348for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349		datadir sysconfdir sharedstatedir localstatedir includedir \
1350		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351		libdir localedir mandir
1352do
1353  eval ac_val=\$$ac_var
1354  # Remove trailing slashes.
1355  case $ac_val in
1356    */ )
1357      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358      eval $ac_var=\$ac_val;;
1359  esac
1360  # Be sure to have absolute directory names.
1361  case $ac_val in
1362    [\\/$]* | ?:[\\/]* )  continue;;
1363    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364  esac
1365  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1366done
1367
1368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
1370# FIXME: To remove some day.
1371build=$build_alias
1372host=$host_alias
1373target=$target_alias
1374
1375# FIXME: To remove some day.
1376if test "x$host_alias" != x; then
1377  if test "x$build_alias" = x; then
1378    cross_compiling=maybe
1379    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1380    If a cross compiler is detected then cross compile mode will be used." >&2
1381  elif test "x$build_alias" != "x$host_alias"; then
1382    cross_compiling=yes
1383  fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
1390
1391
1392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1395  as_fn_error "working directory cannot be determined"
1396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1397  as_fn_error "pwd does not report name of working directory"
1398
1399
1400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402  ac_srcdir_defaulted=yes
1403  # Try the directory containing this script, then the parent directory.
1404  ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406	 X"$as_myself" : 'X\(//\)[^/]' \| \
1407	 X"$as_myself" : 'X\(//\)$' \| \
1408	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
1410    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\/\)[^/].*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  /^X\(\/\/\)$/{
1419	    s//\1/
1420	    q
1421	  }
1422	  /^X\(\/\).*/{
1423	    s//\1/
1424	    q
1425	  }
1426	  s/.*/./; q'`
1427  srcdir=$ac_confdir
1428  if test ! -r "$srcdir/$ac_unique_file"; then
1429    srcdir=..
1430  fi
1431else
1432  ac_srcdir_defaulted=no
1433fi
1434if test ! -r "$srcdir/$ac_unique_file"; then
1435  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1437fi
1438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1441	pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444  srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_env_${ac_var}_value=\$${ac_var}
1455  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
1458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463  # Omit some internal or obsolete options to make the list less imposing.
1464  # This message is too long to be a string in the A/UX 3.1 sh.
1465  cat <<_ACEOF
1466\`configure' configures goocanvas 1.0.0 to adapt to many kinds of systems.
1467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE.  See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476  -h, --help              display this help and exit
1477      --help=short        display options specific to this package
1478      --help=recursive    display the short help of all the included packages
1479  -V, --version           display version information and exit
1480  -q, --quiet, --silent   do not print \`checking...' messages
1481      --cache-file=FILE   cache test results in FILE [disabled]
1482  -C, --config-cache      alias for \`--cache-file=config.cache'
1483  -n, --no-create         do not create output files
1484      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1485
1486Installation directories:
1487  --prefix=PREFIX         install architecture-independent files in PREFIX
1488                          [$ac_default_prefix]
1489  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1490                          [PREFIX]
1491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500  --bindir=DIR            user executables [EPREFIX/bin]
1501  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1502  --libexecdir=DIR        program executables [EPREFIX/libexec]
1503  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1504  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1505  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1506  --libdir=DIR            object code libraries [EPREFIX/lib]
1507  --includedir=DIR        C header files [PREFIX/include]
1508  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1509  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1510  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1511  --infodir=DIR           info documentation [DATAROOTDIR/info]
1512  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1513  --mandir=DIR            man documentation [DATAROOTDIR/man]
1514  --docdir=DIR            documentation root [DATAROOTDIR/doc/goocanvas]
1515  --htmldir=DIR           html documentation [DOCDIR]
1516  --dvidir=DIR            dvi documentation [DOCDIR]
1517  --pdfdir=DIR            pdf documentation [DOCDIR]
1518  --psdir=DIR             ps documentation [DOCDIR]
1519_ACEOF
1520
1521  cat <<\_ACEOF
1522
1523Program names:
1524  --program-prefix=PREFIX            prepend PREFIX to installed program names
1525  --program-suffix=SUFFIX            append SUFFIX to installed program names
1526  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1527
1528System types:
1529  --build=BUILD     configure for building on BUILD [guessed]
1530  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1531_ACEOF
1532fi
1533
1534if test -n "$ac_init_help"; then
1535  case $ac_init_help in
1536     short | recursive ) echo "Configuration of goocanvas 1.0.0:";;
1537   esac
1538  cat <<\_ACEOF
1539
1540Optional Features:
1541  --disable-option-checking  ignore unrecognized --enable/--with options
1542  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1543  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1544  --enable-maintainer-mode  enable make rules and dependencies not useful
1545			  (and sometimes confusing) to the casual installer
1546  --disable-dependency-tracking  speeds up one-time build
1547  --enable-dependency-tracking   do not reject slow dependency extractors
1548  --enable-shared[=PKGS]  build shared libraries [default=yes]
1549  --enable-static[=PKGS]  build static libraries [default=yes]
1550  --enable-fast-install[=PKGS]
1551                          optimize for fast installation [default=yes]
1552  --disable-libtool-lock  avoid locking (might break parallel builds)
1553  --disable-rebuilds      disable all source autogeneration rules
1554  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1555  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1556  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1557
1558Optional Packages:
1559  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1560  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1561  --with-pic              try to use only PIC/non-PIC objects [default=use
1562                          both]
1563  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1564  --with-html-dir=PATH    path to installed docs
1565
1566Some influential environment variables:
1567  CC          C compiler command
1568  CFLAGS      C compiler flags
1569  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570              nonstandard directory <lib dir>
1571  LIBS        libraries to pass to the linker, e.g. -l<library>
1572  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573              you have headers in a nonstandard directory <include dir>
1574  CPP         C preprocessor
1575  PKG_CONFIG  path to pkg-config utility
1576  PACKAGE_CFLAGS
1577              C compiler flags for PACKAGE, overriding pkg-config
1578  PACKAGE_LIBS
1579              linker flags for PACKAGE, overriding pkg-config
1580
1581Use these variables to override the choices made by `configure' or to help
1582it to find libraries and programs with nonstandard names/locations.
1583
1584Report bugs to the package provider.
1585_ACEOF
1586ac_status=$?
1587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590  # If there are subdirs, report their specific --help.
1591  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592    test -d "$ac_dir" ||
1593      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594      continue
1595    ac_builddir=.
1596
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601  # A ".." for each directory in $ac_dir_suffix.
1602  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603  case $ac_top_builddir_sub in
1604  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606  esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
1612
1613case $srcdir in
1614  .)  # We are building in place.
1615    ac_srcdir=.
1616    ac_top_srcdir=$ac_top_builddir_sub
1617    ac_abs_top_srcdir=$ac_pwd ;;
1618  [\\/]* | ?:[\\/]* )  # Absolute name.
1619    ac_srcdir=$srcdir$ac_dir_suffix;
1620    ac_top_srcdir=$srcdir
1621    ac_abs_top_srcdir=$srcdir ;;
1622  *) # Relative name.
1623    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624    ac_top_srcdir=$ac_top_build_prefix$srcdir
1625    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626esac
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629    cd "$ac_dir" || { ac_status=$?; continue; }
1630    # Check for guested configure.
1631    if test -f "$ac_srcdir/configure.gnu"; then
1632      echo &&
1633      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634    elif test -f "$ac_srcdir/configure"; then
1635      echo &&
1636      $SHELL "$ac_srcdir/configure" --help=recursive
1637    else
1638      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639    fi || ac_status=$?
1640    cd "$ac_pwd" || { ac_status=$?; break; }
1641  done
1642fi
1643
1644test -n "$ac_init_help" && exit $ac_status
1645if $ac_init_version; then
1646  cat <<\_ACEOF
1647goocanvas configure 1.0.0
1648generated by GNU Autoconf 2.65
1649
1650Copyright (C) 2009 Free Software Foundation, Inc.
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
1654  exit
1655fi
1656
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
1660
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
1665{
1666  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667  rm -f conftest.$ac_objext
1668  if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671  *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675  (eval "$ac_compile") 2>conftest.err
1676  ac_status=$?
1677  if test -s conftest.err; then
1678    grep -v '^ *+' conftest.err >conftest.er1
1679    cat conftest.er1 >&5
1680    mv -f conftest.er1 conftest.err
1681  fi
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; } && {
1684	 test -z "$ac_c_werror_flag" ||
1685	 test ! -s conftest.err
1686       } && test -s conftest.$ac_objext; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692	ac_retval=1
1693fi
1694  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_compile
1698
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  rm -f conftest.$ac_objext conftest$ac_exeext
1706  if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_link") 2>conftest.err
1714  ac_status=$?
1715  if test -s conftest.err; then
1716    grep -v '^ *+' conftest.err >conftest.er1
1717    cat conftest.er1 >&5
1718    mv -f conftest.er1 conftest.err
1719  fi
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; } && {
1722	 test -z "$ac_c_werror_flag" ||
1723	 test ! -s conftest.err
1724       } && test -s conftest$ac_exeext && {
1725	 test "$cross_compiling" = yes ||
1726	 $as_test_x conftest$ac_exeext
1727       }; then :
1728  ac_retval=0
1729else
1730  $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733	ac_retval=1
1734fi
1735  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737  # interfere with the next link command; also delete a directory that is
1738  # left behind by Apple's compiler.  We do this before executing the actions.
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } >/dev/null && {
1767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775    ac_retval=1
1776fi
1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_try_run LINENO
1783# ----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785# that executables *can* be run.
1786ac_fn_c_try_run ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>&5
1797  ac_status=$?
1798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800  { { case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_try") 2>&5
1807  ac_status=$?
1808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809  test $ac_status = 0; }; }; then :
1810  ac_retval=0
1811else
1812  $as_echo "$as_me: program exited with status $ac_status" >&5
1813       $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816       ac_retval=$ac_status
1817fi
1818  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_run
1823
1824# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825# -------------------------------------------------------
1826# Tests whether HEADER exists and can be compiled using the include files in
1827# INCLUDES, setting the cache variable VAR accordingly.
1828ac_fn_c_check_header_compile ()
1829{
1830  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834  $as_echo_n "(cached) " >&6
1835else
1836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h.  */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842  eval "$3=yes"
1843else
1844  eval "$3=no"
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853} # ac_fn_c_check_header_compile
1854
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873    which can conflict with char $2 (); below.
1874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875    <limits.h> exists even on freestanding compilers.  */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886   Use char because int might match the return type of a GCC
1887   builtin and then its argument prototype would still apply.  */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893    to always fail with ENOSYS.  Some functions are actually named
1894    something starting with __ and the normal name is an alias.  */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903  ;
1904  return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908  eval "$3=yes"
1909else
1910  eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913    conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920} # ac_fn_c_check_func
1921
1922# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1923# -------------------------------------------------------
1924# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1925# the include files in INCLUDES and setting the cache variable VAR
1926# accordingly.
1927ac_fn_c_check_header_mongrel ()
1928{
1929  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934  $as_echo_n "(cached) " >&6
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939else
1940  # Is the header compilable?
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1942$as_echo_n "checking $2 usability... " >&6; }
1943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h.  */
1945$4
1946#include <$2>
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949  ac_header_compiler=yes
1950else
1951  ac_header_compiler=no
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1955$as_echo "$ac_header_compiler" >&6; }
1956
1957# Is the header present?
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1959$as_echo_n "checking $2 presence... " >&6; }
1960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h.  */
1962#include <$2>
1963_ACEOF
1964if ac_fn_c_try_cpp "$LINENO"; then :
1965  ac_header_preproc=yes
1966else
1967  ac_header_preproc=no
1968fi
1969rm -f conftest.err conftest.$ac_ext
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971$as_echo "$ac_header_preproc" >&6; }
1972
1973# So?  What about this header?
1974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1975  yes:no: )
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1977$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1979$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980    ;;
1981  no:yes:* )
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1983$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1985$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1987$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1989$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992    ;;
1993esac
1994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997  $as_echo_n "(cached) " >&6
1998else
1999  eval "$3=\$ac_header_compiler"
2000fi
2001eval ac_res=\$$3
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004fi
2005  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006
2007} # ac_fn_c_check_header_mongrel
2008cat >config.log <<_ACEOF
2009This file contains any messages produced by compilers while
2010running configure, to aid debugging if configure makes a mistake.
2011
2012It was created by goocanvas $as_me 1.0.0, which was
2013generated by GNU Autoconf 2.65.  Invocation command line was
2014
2015  $ $0 $@
2016
2017_ACEOF
2018exec 5>>config.log
2019{
2020cat <<_ASUNAME
2021## --------- ##
2022## Platform. ##
2023## --------- ##
2024
2025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029uname -v = `(uname -v) 2>/dev/null || echo unknown`
2030
2031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2033
2034/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2035/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2037/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2038/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2039/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2040/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2041
2042_ASUNAME
2043
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  test -z "$as_dir" && as_dir=.
2049    $as_echo "PATH: $as_dir"
2050  done
2051IFS=$as_save_IFS
2052
2053} >&5
2054
2055cat >&5 <<_ACEOF
2056
2057
2058## ----------- ##
2059## Core tests. ##
2060## ----------- ##
2061
2062_ACEOF
2063
2064
2065# Keep a trace of the command line.
2066# Strip out --no-create and --no-recursion so they do not pile up.
2067# Strip out --silent because we don't want to record it for future runs.
2068# Also quote any args containing shell meta-characters.
2069# Make two passes to allow for proper duplicate-argument suppression.
2070ac_configure_args=
2071ac_configure_args0=
2072ac_configure_args1=
2073ac_must_keep_next=false
2074for ac_pass in 1 2
2075do
2076  for ac_arg
2077  do
2078    case $ac_arg in
2079    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081    | -silent | --silent | --silen | --sile | --sil)
2082      continue ;;
2083    *\'*)
2084      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085    esac
2086    case $ac_pass in
2087    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2088    2)
2089      as_fn_append ac_configure_args1 " '$ac_arg'"
2090      if test $ac_must_keep_next = true; then
2091	ac_must_keep_next=false # Got value, back to normal.
2092      else
2093	case $ac_arg in
2094	  *=* | --config-cache | -C | -disable-* | --disable-* \
2095	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097	  | -with-* | --with-* | -without-* | --without-* | --x)
2098	    case "$ac_configure_args0 " in
2099	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2100	    esac
2101	    ;;
2102	  -* ) ac_must_keep_next=true ;;
2103	esac
2104      fi
2105      as_fn_append ac_configure_args " '$ac_arg'"
2106      ;;
2107    esac
2108  done
2109done
2110{ ac_configure_args0=; unset ac_configure_args0;}
2111{ ac_configure_args1=; unset ac_configure_args1;}
2112
2113# When interrupted or exit'd, cleanup temporary files, and complete
2114# config.log.  We remove comments because anyway the quotes in there
2115# would cause problems or look ugly.
2116# WARNING: Use '\'' to represent an apostrophe within the trap.
2117# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118trap 'exit_status=$?
2119  # Save into config.log some information that might help in debugging.
2120  {
2121    echo
2122
2123    cat <<\_ASBOX
2124## ---------------- ##
2125## Cache variables. ##
2126## ---------------- ##
2127_ASBOX
2128    echo
2129    # The following way of writing the cache mishandles newlines in values,
2130(
2131  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132    eval ac_val=\$$ac_var
2133    case $ac_val in #(
2134    *${as_nl}*)
2135      case $ac_var in #(
2136      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2138      esac
2139      case $ac_var in #(
2140      _ | IFS | as_nl) ;; #(
2141      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142      *) { eval $ac_var=; unset $ac_var;} ;;
2143      esac ;;
2144    esac
2145  done
2146  (set) 2>&1 |
2147    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148    *${as_nl}ac_space=\ *)
2149      sed -n \
2150	"s/'\''/'\''\\\\'\'''\''/g;
2151	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2152      ;; #(
2153    *)
2154      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155      ;;
2156    esac |
2157    sort
2158)
2159    echo
2160
2161    cat <<\_ASBOX
2162## ----------------- ##
2163## Output variables. ##
2164## ----------------- ##
2165_ASBOX
2166    echo
2167    for ac_var in $ac_subst_vars
2168    do
2169      eval ac_val=\$$ac_var
2170      case $ac_val in
2171      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172      esac
2173      $as_echo "$ac_var='\''$ac_val'\''"
2174    done | sort
2175    echo
2176
2177    if test -n "$ac_subst_files"; then
2178      cat <<\_ASBOX
2179## ------------------- ##
2180## File substitutions. ##
2181## ------------------- ##
2182_ASBOX
2183      echo
2184      for ac_var in $ac_subst_files
2185      do
2186	eval ac_val=\$$ac_var
2187	case $ac_val in
2188	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189	esac
2190	$as_echo "$ac_var='\''$ac_val'\''"
2191      done | sort
2192      echo
2193    fi
2194
2195    if test -s confdefs.h; then
2196      cat <<\_ASBOX
2197## ----------- ##
2198## confdefs.h. ##
2199## ----------- ##
2200_ASBOX
2201      echo
2202      cat confdefs.h
2203      echo
2204    fi
2205    test "$ac_signal" != 0 &&
2206      $as_echo "$as_me: caught signal $ac_signal"
2207    $as_echo "$as_me: exit $exit_status"
2208  } >&5
2209  rm -f core *.core core.conftest.* &&
2210    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2211    exit $exit_status
2212' 0
2213for ac_signal in 1 2 13 15; do
2214  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215done
2216ac_signal=0
2217
2218# confdefs.h avoids OS command line length limits that DEFS can exceed.
2219rm -f -r conftest* confdefs.h
2220
2221$as_echo "/* confdefs.h */" > confdefs.h
2222
2223# Predefined preprocessor variables.
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_NAME "$PACKAGE_NAME"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_VERSION "$PACKAGE_VERSION"
2235_ACEOF
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_STRING "$PACKAGE_STRING"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2243_ACEOF
2244
2245cat >>confdefs.h <<_ACEOF
2246#define PACKAGE_URL "$PACKAGE_URL"
2247_ACEOF
2248
2249
2250# Let the site file select an alternate cache file if it wants to.
2251# Prefer an explicitly selected file to automatically selected ones.
2252ac_site_file1=NONE
2253ac_site_file2=NONE
2254if test -n "$CONFIG_SITE"; then
2255  ac_site_file1=$CONFIG_SITE
2256elif test "x$prefix" != xNONE; then
2257  ac_site_file1=$prefix/share/config.site
2258  ac_site_file2=$prefix/etc/config.site
2259else
2260  ac_site_file1=$ac_default_prefix/share/config.site
2261  ac_site_file2=$ac_default_prefix/etc/config.site
2262fi
2263for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264do
2265  test "x$ac_site_file" = xNONE && continue
2266  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269    sed 's/^/| /' "$ac_site_file" >&5
2270    . "$ac_site_file"
2271  fi
2272done
2273
2274if test -r "$cache_file"; then
2275  # Some versions of bash will fail to source /dev/null (special files
2276  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2277  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279$as_echo "$as_me: loading cache $cache_file" >&6;}
2280    case $cache_file in
2281      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282      *)                      . "./$cache_file";;
2283    esac
2284  fi
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287$as_echo "$as_me: creating cache $cache_file" >&6;}
2288  >$cache_file
2289fi
2290
2291# Check that the precious variables saved in the cache have kept the same
2292# value.
2293ac_cache_corrupted=false
2294for ac_var in $ac_precious_vars; do
2295  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296  eval ac_new_set=\$ac_env_${ac_var}_set
2297  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298  eval ac_new_val=\$ac_env_${ac_var}_value
2299  case $ac_old_set,$ac_new_set in
2300    set,)
2301      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,set)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,);;
2309    *)
2310      if test "x$ac_old_val" != "x$ac_new_val"; then
2311	# differences in whitespace do not lead to failure.
2312	ac_old_val_w=`echo x $ac_old_val`
2313	ac_new_val_w=`echo x $ac_new_val`
2314	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317	  ac_cache_corrupted=:
2318	else
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321	  eval $ac_var=\$ac_old_val
2322	fi
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2324$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2326$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2327      fi;;
2328  esac
2329  # Pass precious variables to config.status.
2330  if test "$ac_new_set" = set; then
2331    case $ac_new_val in
2332    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    *) ac_arg=$ac_var=$ac_new_val ;;
2334    esac
2335    case " $ac_configure_args " in
2336      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338    esac
2339  fi
2340done
2341if $ac_cache_corrupted; then
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2347fi
2348## -------------------- ##
2349## Main body of script. ##
2350## -------------------- ##
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359
2360
2361ac_config_headers="$ac_config_headers config.h"
2362
2363am__api_version='1.11'
2364
2365ac_aux_dir=
2366for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2367  for ac_t in install-sh install.sh shtool; do
2368    if test -f "$ac_dir/$ac_t"; then
2369      ac_aux_dir=$ac_dir
2370      ac_install_sh="$ac_aux_dir/$ac_t -c"
2371      break 2
2372    fi
2373  done
2374done
2375if test -z "$ac_aux_dir"; then
2376  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2377fi
2378
2379# These three variables are undocumented and unsupported,
2380# and are intended to be withdrawn in a future Autoconf release.
2381# They can cause serious problems if a builder's source tree is in a directory
2382# whose full name contains unusual characters.
2383ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2384ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2385ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2386
2387
2388# Find a good install program.  We prefer a C program (faster),
2389# so one script is as good as another.  But avoid the broken or
2390# incompatible versions:
2391# SysV /etc/install, /usr/sbin/install
2392# SunOS /usr/etc/install
2393# IRIX /sbin/install
2394# AIX /bin/install
2395# AmigaOS /C/install, which installs bootblocks on floppy discs
2396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399# OS/2's system install, which has a completely different semantic
2400# ./install, which can be erroneously created by make from ./install.sh.
2401# Reject install programs that cannot install multiple files.
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2403$as_echo_n "checking for a BSD-compatible install... " >&6; }
2404if test -z "$INSTALL"; then
2405if test "${ac_cv_path_install+set}" = set; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413    # Account for people who put trailing slashes in PATH elements.
2414case $as_dir/ in #((
2415  ./ | .// | /[cC]/* | \
2416  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2417  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2418  /usr/ucb/* ) ;;
2419  *)
2420    # OSF1 and SCO ODT 3.0 have their own names for install.
2421    # Don't use installbsd from OSF since it installs stuff as root
2422    # by default.
2423    for ac_prog in ginstall scoinst install; do
2424      for ac_exec_ext in '' $ac_executable_extensions; do
2425	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2426	  if test $ac_prog = install &&
2427	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428	    # AIX install.  It has an incompatible calling convention.
2429	    :
2430	  elif test $ac_prog = install &&
2431	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2432	    # program-specific install script used by HP pwplus--don't use.
2433	    :
2434	  else
2435	    rm -rf conftest.one conftest.two conftest.dir
2436	    echo one > conftest.one
2437	    echo two > conftest.two
2438	    mkdir conftest.dir
2439	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2440	      test -s conftest.one && test -s conftest.two &&
2441	      test -s conftest.dir/conftest.one &&
2442	      test -s conftest.dir/conftest.two
2443	    then
2444	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2445	      break 3
2446	    fi
2447	  fi
2448	fi
2449      done
2450    done
2451    ;;
2452esac
2453
2454  done
2455IFS=$as_save_IFS
2456
2457rm -rf conftest.one conftest.two conftest.dir
2458
2459fi
2460  if test "${ac_cv_path_install+set}" = set; then
2461    INSTALL=$ac_cv_path_install
2462  else
2463    # As a last resort, use the slow shell script.  Don't cache a
2464    # value for INSTALL within a source directory, because that will
2465    # break other packages using the cache if that directory is
2466    # removed, or if the value is a relative name.
2467    INSTALL=$ac_install_sh
2468  fi
2469fi
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2471$as_echo "$INSTALL" >&6; }
2472
2473# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2474# It thinks the first close brace ends the variable substitution.
2475test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2476
2477test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2478
2479test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2480
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2482$as_echo_n "checking whether build environment is sane... " >&6; }
2483# Just in case
2484sleep 1
2485echo timestamp > conftest.file
2486# Reject unsafe characters in $srcdir or the absolute working directory
2487# name.  Accept space and tab only in the latter.
2488am_lf='
2489'
2490case `pwd` in
2491  *[\\\"\#\$\&\'\`$am_lf]*)
2492    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2493esac
2494case $srcdir in
2495  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2496    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2497esac
2498
2499# Do `set' in a subshell so we don't clobber the current shell's
2500# arguments.  Must try -L first in case configure is actually a
2501# symlink; some systems play weird games with the mod time of symlinks
2502# (eg FreeBSD returns the mod time of the symlink's containing
2503# directory).
2504if (
2505   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2506   if test "$*" = "X"; then
2507      # -L didn't work.
2508      set X `ls -t "$srcdir/configure" conftest.file`
2509   fi
2510   rm -f conftest.file
2511   if test "$*" != "X $srcdir/configure conftest.file" \
2512      && test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514      # If neither matched, then we have a broken ls.  This can happen
2515      # if, for instance, CONFIG_SHELL is bash and it inherits a
2516      # broken ls alias from the environment.  This has actually
2517      # happened.  Such a system could not be considered "sane".
2518      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2519alias in your environment" "$LINENO" 5
2520   fi
2521
2522   test "$2" = conftest.file
2523   )
2524then
2525   # Ok.
2526   :
2527else
2528   as_fn_error "newly created file is older than distributed files!
2529Check your system clock" "$LINENO" 5
2530fi
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532$as_echo "yes" >&6; }
2533test "$program_prefix" != NONE &&
2534  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2535# Use a double $ so make ignores it.
2536test "$program_suffix" != NONE &&
2537  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2538# Double any \ or $.
2539# By default was `s,x,x', remove it if useless.
2540ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2541program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2542
2543# expand $ac_aux_dir to an absolute path
2544am_aux_dir=`cd $ac_aux_dir && pwd`
2545
2546if test x"${MISSING+set}" != xset; then
2547  case $am_aux_dir in
2548  *\ * | *\	*)
2549    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2550  *)
2551    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2552  esac
2553fi
2554# Use eval to expand $SHELL
2555if eval "$MISSING --run true"; then
2556  am_missing_run="$MISSING --run "
2557else
2558  am_missing_run=
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2560$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2561fi
2562
2563if test x"${install_sh}" != xset; then
2564  case $am_aux_dir in
2565  *\ * | *\	*)
2566    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2567  *)
2568    install_sh="\${SHELL} $am_aux_dir/install-sh"
2569  esac
2570fi
2571
2572# Installed binaries are usually stripped using `strip' when the user
2573# run `make install-strip'.  However `strip' might not be the right
2574# tool to use in cross-compilation environments, therefore Automake
2575# will honor the `STRIP' environment variable to overrule this program.
2576if test "$cross_compiling" != no; then
2577  if test -n "$ac_tool_prefix"; then
2578  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}strip; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if test "${ac_cv_prog_STRIP+set}" = set; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$STRIP"; then
2586  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605STRIP=$ac_cv_prog_STRIP
2606if test -n "$STRIP"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2608$as_echo "$STRIP" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615fi
2616if test -z "$ac_cv_prog_STRIP"; then
2617  ac_ct_STRIP=$STRIP
2618  # Extract the first word of "strip", so it can be a program name with args.
2619set dummy strip; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test -n "$ac_ct_STRIP"; then
2626  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    for ac_exec_ext in '' $ac_executable_extensions; do
2634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635    ac_cv_prog_ac_ct_STRIP="strip"
2636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2646if test -n "$ac_ct_STRIP"; then
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2648$as_echo "$ac_ct_STRIP" >&6; }
2649else
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654  if test "x$ac_ct_STRIP" = x; then
2655    STRIP=":"
2656  else
2657    case $cross_compiling:$ac_tool_warned in
2658yes:)
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2661ac_tool_warned=yes ;;
2662esac
2663    STRIP=$ac_ct_STRIP
2664  fi
2665else
2666  STRIP="$ac_cv_prog_STRIP"
2667fi
2668
2669fi
2670INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2673$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2674if test -z "$MKDIR_P"; then
2675  if test "${ac_cv_path_mkdir+set}" = set; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2680do
2681  IFS=$as_save_IFS
2682  test -z "$as_dir" && as_dir=.
2683    for ac_prog in mkdir gmkdir; do
2684	 for ac_exec_ext in '' $ac_executable_extensions; do
2685	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2686	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2687	     'mkdir (GNU coreutils) '* | \
2688	     'mkdir (coreutils) '* | \
2689	     'mkdir (fileutils) '4.1*)
2690	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2691	       break 3;;
2692	   esac
2693	 done
2694       done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699
2700  test -d ./--version && rmdir ./--version
2701  if test "${ac_cv_path_mkdir+set}" = set; then
2702    MKDIR_P="$ac_cv_path_mkdir -p"
2703  else
2704    # As a last resort, use the slow shell script.  Don't cache a
2705    # value for MKDIR_P within a source directory, because that will
2706    # break other packages using the cache if that directory is
2707    # removed, or if the value is a relative name.
2708    MKDIR_P="$ac_install_sh -d"
2709  fi
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2712$as_echo "$MKDIR_P" >&6; }
2713
2714mkdir_p="$MKDIR_P"
2715case $mkdir_p in
2716  [\\/$]* | ?:[\\/]*) ;;
2717  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2718esac
2719
2720for ac_prog in gawk mawk nawk awk
2721do
2722  # Extract the first word of "$ac_prog", so it can be a program name with args.
2723set dummy $ac_prog; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if test "${ac_cv_prog_AWK+set}" = set; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  if test -n "$AWK"; then
2730  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  test -z "$as_dir" && as_dir=.
2737    for ac_exec_ext in '' $ac_executable_extensions; do
2738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739    ac_cv_prog_AWK="$ac_prog"
2740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741    break 2
2742  fi
2743done
2744  done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749AWK=$ac_cv_prog_AWK
2750if test -n "$AWK"; then
2751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2752$as_echo "$AWK" >&6; }
2753else
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759  test -n "$AWK" && break
2760done
2761
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2763$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2764set x ${MAKE-make}
2765ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2766if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  cat >conftest.make <<\_ACEOF
2770SHELL = /bin/sh
2771all:
2772	@echo '@@@%%%=$(MAKE)=@@@%%%'
2773_ACEOF
2774# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2775case `${MAKE-make} -f conftest.make 2>/dev/null` in
2776  *@@@%%%=?*=@@@%%%*)
2777    eval ac_cv_prog_make_${ac_make}_set=yes;;
2778  *)
2779    eval ac_cv_prog_make_${ac_make}_set=no;;
2780esac
2781rm -f conftest.make
2782fi
2783if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785$as_echo "yes" >&6; }
2786  SET_MAKE=
2787else
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790  SET_MAKE="MAKE=${MAKE-make}"
2791fi
2792
2793rm -rf .tst 2>/dev/null
2794mkdir .tst 2>/dev/null
2795if test -d .tst; then
2796  am__leading_dot=.
2797else
2798  am__leading_dot=_
2799fi
2800rmdir .tst 2>/dev/null
2801
2802if test "`cd $srcdir && pwd`" != "`pwd`"; then
2803  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2804  # is not polluted with repeated "-I."
2805  am__isrc=' -I$(srcdir)'
2806  # test to see if srcdir already configured
2807  if test -f $srcdir/config.status; then
2808    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2809  fi
2810fi
2811
2812# test whether we have cygpath
2813if test -z "$CYGPATH_W"; then
2814  if (cygpath --version) >/dev/null 2>/dev/null; then
2815    CYGPATH_W='cygpath -w'
2816  else
2817    CYGPATH_W=echo
2818  fi
2819fi
2820
2821
2822# Define the identity of the package.
2823 PACKAGE='goocanvas'
2824 VERSION='1.0.0'
2825
2826
2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE "$PACKAGE"
2829_ACEOF
2830
2831
2832cat >>confdefs.h <<_ACEOF
2833#define VERSION "$VERSION"
2834_ACEOF
2835
2836# Some tools Automake needs.
2837
2838ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2839
2840
2841AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2842
2843
2844AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2845
2846
2847AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2848
2849
2850MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851
2852# We need awk for the "check" target.  The system "awk" is bad on
2853# some platforms.
2854# Always define AMTAR for backward compatibility.
2855
2856AMTAR=${AMTAR-"${am_missing_run}tar"}
2857
2858am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2859
2860
2861
2862
2863
2864
2865# Libtool versioning - only update before a public release.
2866# If the code has changed at all: REVISION++.
2867# If any interfaces have changed at all: CURRENT++, REVISION=0.
2868# If interfaces changed but it is backwards compatible: AGE++, else AGE=0.
2869#  i.e. the library supports interfaces CURRENT - AGE up to CURRENT.
2870#  if two libraries have identical CURRENT and AGE, then newest REVISION used.
2871CURRENT=8
2872AGE=5
2873REVISION=0
2874
2875LT_VERSION_INFO="$CURRENT:$REVISION:$AGE"
2876
2877
2878
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2880$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2881    # Check whether --enable-maintainer-mode was given.
2882if test "${enable_maintainer_mode+set}" = set; then :
2883  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2884else
2885  USE_MAINTAINER_MODE=no
2886fi
2887
2888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2889$as_echo "$USE_MAINTAINER_MODE" >&6; }
2890   if test $USE_MAINTAINER_MODE = yes; then
2891  MAINTAINER_MODE_TRUE=
2892  MAINTAINER_MODE_FALSE='#'
2893else
2894  MAINTAINER_MODE_TRUE='#'
2895  MAINTAINER_MODE_FALSE=
2896fi
2897
2898  MAINT=$MAINTAINER_MODE_TRUE
2899
2900
2901
2902DEPDIR="${am__leading_dot}deps"
2903
2904ac_config_commands="$ac_config_commands depfiles"
2905
2906
2907am_make=${MAKE-make}
2908cat > confinc << 'END'
2909am__doit:
2910	@echo this is the am__doit target
2911.PHONY: am__doit
2912END
2913# If we don't find an include directive, just comment out the code.
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2915$as_echo_n "checking for style of include used by $am_make... " >&6; }
2916am__include="#"
2917am__quote=
2918_am_result=none
2919# First try GNU make style include.
2920echo "include confinc" > confmf
2921# Ignore all kinds of additional output from `make'.
2922case `$am_make -s -f confmf 2> /dev/null` in #(
2923*the\ am__doit\ target*)
2924  am__include=include
2925  am__quote=
2926  _am_result=GNU
2927  ;;
2928esac
2929# Now try BSD make style include.
2930if test "$am__include" = "#"; then
2931   echo '.include "confinc"' > confmf
2932   case `$am_make -s -f confmf 2> /dev/null` in #(
2933   *the\ am__doit\ target*)
2934     am__include=.include
2935     am__quote="\""
2936     _am_result=BSD
2937     ;;
2938   esac
2939fi
2940
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2943$as_echo "$_am_result" >&6; }
2944rm -f confinc confmf
2945
2946# Check whether --enable-dependency-tracking was given.
2947if test "${enable_dependency_tracking+set}" = set; then :
2948  enableval=$enable_dependency_tracking;
2949fi
2950
2951if test "x$enable_dependency_tracking" != xno; then
2952  am_depcomp="$ac_aux_dir/depcomp"
2953  AMDEPBACKSLASH='\'
2954fi
2955 if test "x$enable_dependency_tracking" != xno; then
2956  AMDEP_TRUE=
2957  AMDEP_FALSE='#'
2958else
2959  AMDEP_TRUE='#'
2960  AMDEP_FALSE=
2961fi
2962
2963
2964ac_ext=c
2965ac_cpp='$CPP $CPPFLAGS'
2966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969if test -n "$ac_tool_prefix"; then
2970  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}gcc; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if test "${ac_cv_prog_CC+set}" = set; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$ac_cv_prog_CC"; then
3009  ac_ct_CC=$CC
3010  # Extract the first word of "gcc", so it can be a program name with args.
3011set dummy gcc; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$ac_ct_CC"; then
3018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025    for ac_exec_ext in '' $ac_executable_extensions; do
3026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027    ac_cv_prog_ac_ct_CC="gcc"
3028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040$as_echo "$ac_ct_CC" >&6; }
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046  if test "x$ac_ct_CC" = x; then
3047    CC=""
3048  else
3049    case $cross_compiling:$ac_tool_warned in
3050yes:)
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3053ac_tool_warned=yes ;;
3054esac
3055    CC=$ac_ct_CC
3056  fi
3057else
3058  CC="$ac_cv_prog_CC"
3059fi
3060
3061if test -z "$CC"; then
3062          if test -n "$ac_tool_prefix"; then
3063    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}cc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if test "${ac_cv_prog_CC+set}" = set; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080    ac_cv_prog_CC="${ac_tool_prefix}cc"
3081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085  done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090CC=$ac_cv_prog_CC
3091if test -n "$CC"; then
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093$as_echo "$CC" >&6; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100  fi
3101fi
3102if test -z "$CC"; then
3103  # Extract the first word of "cc", so it can be a program name with args.
3104set dummy cc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if test "${ac_cv_prog_CC+set}" = set; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113  ac_prog_rejected=no
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122       ac_prog_rejected=yes
3123       continue
3124     fi
3125    ac_cv_prog_CC="cc"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133if test $ac_prog_rejected = yes; then
3134  # We found a bogon in the path, so make sure we never use it.
3135  set dummy $ac_cv_prog_CC
3136  shift
3137  if test $# != 0; then
3138    # We chose a different compiler from the bogus one.
3139    # However, it has the same basename, so the bogon will be chosen
3140    # first if we set CC to just the basename; use the full file name.
3141    shift
3142    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143  fi
3144fi
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150$as_echo "$CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157fi
3158if test -z "$CC"; then
3159  if test -n "$ac_tool_prefix"; then
3160  for ac_prog in cl.exe
3161  do
3162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if test "${ac_cv_prog_CC+set}" = set; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$CC"; then
3170  ac_cv_prog_CC="$CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199    test -n "$CC" && break
3200  done
3201fi
3202if test -z "$CC"; then
3203  ac_ct_CC=$CC
3204  for ac_prog in cl.exe
3205do
3206  # Extract the first word of "$ac_prog", so it can be a program name with args.
3207set dummy $ac_prog; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$ac_ct_CC"; then
3214  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223    ac_cv_prog_ac_ct_CC="$ac_prog"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234if test -n "$ac_ct_CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236$as_echo "$ac_ct_CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243  test -n "$ac_ct_CC" && break
3244done
3245
3246  if test "x$ac_ct_CC" = x; then
3247    CC=""
3248  else
3249    case $cross_compiling:$ac_tool_warned in
3250yes:)
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253ac_tool_warned=yes ;;
3254esac
3255    CC=$ac_ct_CC
3256  fi
3257fi
3258
3259fi
3260
3261
3262test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error "no acceptable C compiler found in \$PATH
3265See \`config.log' for more details." "$LINENO" 5; }
3266
3267# Provide some information about the compiler.
3268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269set X $ac_compile
3270ac_compiler=$2
3271for ac_option in --version -v -V -qversion; do
3272  { { ac_try="$ac_compiler $ac_option >&5"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3280  ac_status=$?
3281  if test -s conftest.err; then
3282    sed '10a\
3283... rest of stderr output deleted ...
3284         10q' conftest.err >conftest.er1
3285    cat conftest.er1 >&5
3286  fi
3287  rm -f conftest.er1 conftest.err
3288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289  test $ac_status = 0; }
3290done
3291
3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files_save=$ac_clean_files
3304ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3305# Try to create an executable without -o first, disregard a.out.
3306# It will help us diagnose broken compilers, and finding out an intuition
3307# of exeext.
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3309$as_echo_n "checking whether the C compiler works... " >&6; }
3310ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311
3312# The possible output files:
3313ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314
3315ac_rmfiles=
3316for ac_file in $ac_files
3317do
3318  case $ac_file in
3319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321  esac
3322done
3323rm -f $ac_rmfiles
3324
3325if { { ac_try="$ac_link_default"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332  (eval "$ac_link_default") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }; then :
3336  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3337# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3338# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3339# so that the user can short-circuit this test for compilers unknown to
3340# Autoconf.
3341for ac_file in $ac_files ''
3342do
3343  test -f "$ac_file" || continue
3344  case $ac_file in
3345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3346	;;
3347    [ab].out )
3348	# We found the default executable, but exeext='' is most
3349	# certainly right.
3350	break;;
3351    *.* )
3352	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3353	then :; else
3354	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355	fi
3356	# We set ac_cv_exeext here because the later test for it is not
3357	# safe: cross compilers may not add the suffix if given an `-o'
3358	# argument, so we may need to know it at that point already.
3359	# Even if this section looks crufty: it has the advantage of
3360	# actually working.
3361	break;;
3362    * )
3363	break;;
3364  esac
3365done
3366test "$ac_cv_exeext" = no && ac_cv_exeext=
3367
3368else
3369  ac_file=''
3370fi
3371if test -z "$ac_file"; then :
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374$as_echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379{ as_fn_set_status 77
3380as_fn_error "C compiler cannot create executables
3381See \`config.log' for more details." "$LINENO" 5; }; }
3382else
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384$as_echo "yes" >&6; }
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389$as_echo "$ac_file" >&6; }
3390ac_exeext=$ac_cv_exeext
3391
3392rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393ac_clean_files=$ac_clean_files_save
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395$as_echo_n "checking for suffix of executables... " >&6; }
3396if { { ac_try="$ac_link"
3397case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_link") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; then :
3407  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3409# work properly (i.e., refer to `conftest.exe'), while it won't with
3410# `rm'.
3411for ac_file in conftest.exe conftest conftest.*; do
3412  test -f "$ac_file" || continue
3413  case $ac_file in
3414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416	  break;;
3417    * ) break;;
3418  esac
3419done
3420else
3421  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error "cannot compute suffix of executables: cannot compile and link
3424See \`config.log' for more details." "$LINENO" 5; }
3425fi
3426rm -f conftest conftest$ac_cv_exeext
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428$as_echo "$ac_cv_exeext" >&6; }
3429
3430rm -f conftest.$ac_ext
3431EXEEXT=$ac_cv_exeext
3432ac_exeext=$EXEEXT
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434/* end confdefs.h.  */
3435#include <stdio.h>
3436int
3437main ()
3438{
3439FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3441
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446ac_clean_files="$ac_clean_files conftest.out"
3447# Check that the compiler produces executables we can run.  If not, either
3448# the compiler is broken, or we cross compile.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450$as_echo_n "checking whether we are cross compiling... " >&6; }
3451if test "$cross_compiling" != yes; then
3452  { { ac_try="$ac_link"
3453case "(($ac_try" in
3454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455  *) ac_try_echo=$ac_try;;
3456esac
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
3459  (eval "$ac_link") 2>&5
3460  ac_status=$?
3461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462  test $ac_status = 0; }
3463  if { ac_try='./conftest$ac_cv_exeext'
3464  { { case "(($ac_try" in
3465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466  *) ac_try_echo=$ac_try;;
3467esac
3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469$as_echo "$ac_try_echo"; } >&5
3470  (eval "$ac_try") 2>&5
3471  ac_status=$?
3472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473  test $ac_status = 0; }; }; then
3474    cross_compiling=no
3475  else
3476    if test "$cross_compiling" = maybe; then
3477	cross_compiling=yes
3478    else
3479	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error "cannot run C compiled programs.
3482If you meant to cross compile, use \`--host'.
3483See \`config.log' for more details." "$LINENO" 5; }
3484    fi
3485  fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488$as_echo "$cross_compiling" >&6; }
3489
3490rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491ac_clean_files=$ac_clean_files_save
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493$as_echo_n "checking for suffix of object files... " >&6; }
3494if test "${ac_cv_objext+set}" = set; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508rm -f conftest.o conftest.obj
3509if { { ac_try="$ac_compile"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_compile") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }; then :
3520  for ac_file in conftest.o conftest.obj conftest.*; do
3521  test -f "$ac_file" || continue;
3522  case $ac_file in
3523    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525       break;;
3526  esac
3527done
3528else
3529  $as_echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error "cannot compute suffix of object files: cannot compile
3535See \`config.log' for more details." "$LINENO" 5; }
3536fi
3537rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540$as_echo "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3546  $as_echo_n "(cached) " >&6
3547else
3548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554#ifndef __GNUC__
3555       choke me
3556#endif
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562if ac_fn_c_try_compile "$LINENO"; then :
3563  ac_compiler_gnu=yes
3564else
3565  ac_compiler_gnu=no
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573if test $ac_compiler_gnu = yes; then
3574  GCC=yes
3575else
3576  GCC=
3577fi
3578ac_test_CFLAGS=${CFLAGS+set}
3579ac_save_CFLAGS=$CFLAGS
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581$as_echo_n "checking whether $CC accepts -g... " >&6; }
3582if test "${ac_cv_prog_cc_g+set}" = set; then :
3583  $as_echo_n "(cached) " >&6
3584else
3585  ac_save_c_werror_flag=$ac_c_werror_flag
3586   ac_c_werror_flag=yes
3587   ac_cv_prog_cc_g=no
3588   CFLAGS="-g"
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601  ac_cv_prog_cc_g=yes
3602else
3603  CFLAGS=""
3604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616
3617else
3618  ac_c_werror_flag=$ac_save_c_werror_flag
3619	 CFLAGS="-g"
3620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h.  */
3622
3623int
3624main ()
3625{
3626
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631if ac_fn_c_try_compile "$LINENO"; then :
3632  ac_cv_prog_cc_g=yes
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639   ac_c_werror_flag=$ac_save_c_werror_flag
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642$as_echo "$ac_cv_prog_cc_g" >&6; }
3643if test "$ac_test_CFLAGS" = set; then
3644  CFLAGS=$ac_save_CFLAGS
3645elif test $ac_cv_prog_cc_g = yes; then
3646  if test "$GCC" = yes; then
3647    CFLAGS="-g -O2"
3648  else
3649    CFLAGS="-g"
3650  fi
3651else
3652  if test "$GCC" = yes; then
3653    CFLAGS="-O2"
3654  else
3655    CFLAGS=
3656  fi
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660if test "${ac_cv_prog_cc_c89+set}" = set; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  ac_cv_prog_cc_c89=no
3664ac_save_CC=$CC
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h.  */
3667#include <stdarg.h>
3668#include <stdio.h>
3669#include <sys/types.h>
3670#include <sys/stat.h>
3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3672struct buf { int x; };
3673FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674static char *e (p, i)
3675     char **p;
3676     int i;
3677{
3678  return p[i];
3679}
3680static char *f (char * (*g) (char **, int), char **p, ...)
3681{
3682  char *s;
3683  va_list v;
3684  va_start (v,p);
3685  s = g (p, va_arg (v,int));
3686  va_end (v);
3687  return s;
3688}
3689
3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3691   function prototypes and stuff, but not '\xHH' hex character constants.
3692   These don't provoke an error unfortunately, instead are silently treated
3693   as 'x'.  The following induces an error, until -std is added to get
3694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3695   array size at least.  It's necessary to write '\x00'==0 to get something
3696   that's true only with -std.  */
3697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700   inside strings and character constants.  */
3701#define FOO(x) 'x'
3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
3710int
3711main ()
3712{
3713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3714  ;
3715  return 0;
3716}
3717_ACEOF
3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720do
3721  CC="$ac_save_CC $ac_arg"
3722  if ac_fn_c_try_compile "$LINENO"; then :
3723  ac_cv_prog_cc_c89=$ac_arg
3724fi
3725rm -f core conftest.err conftest.$ac_objext
3726  test "x$ac_cv_prog_cc_c89" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730
3731fi
3732# AC_CACHE_VAL
3733case "x$ac_cv_prog_cc_c89" in
3734  x)
3735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736$as_echo "none needed" >&6; } ;;
3737  xno)
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739$as_echo "unsupported" >&6; } ;;
3740  *)
3741    CC="$CC $ac_cv_prog_cc_c89"
3742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744esac
3745if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755depcc="$CC"   am_compiler_list=
3756
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3758$as_echo_n "checking dependency style of $depcc... " >&6; }
3759if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3760  $as_echo_n "(cached) " >&6
3761else
3762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763  # We make a subdir and do the tests there.  Otherwise we can end up
3764  # making bogus files that we don't know about and never remove.  For
3765  # instance it was reported that on HP-UX the gcc test will end up
3766  # making a dummy file named `D' -- because `-MD' means `put the output
3767  # in D'.
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  am__universal=false
3786  case " $depcc " in #(
3787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788     esac
3789
3790  for depmode in $am_compiler_list; do
3791    # Setup a source with many dependencies, because some compilers
3792    # like to wrap large dependency lists on column 80 (with \), and
3793    # we should not choose a depcomp mode which is confused by this.
3794    #
3795    # We need to recreate these files for each test, as the compiler may
3796    # overwrite some of them when testing with obscure command lines.
3797    # This happens at least with the AIX C compiler.
3798    : > sub/conftest.c
3799    for i in 1 2 3 4 5 6; do
3800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802      # Solaris 8's {/usr,}/bin/sh.
3803      touch sub/conftst$i.h
3804    done
3805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808    # mode.  It turns out that the SunPro C++ compiler does not properly
3809    # handle `-M -o', and we need to detect this.  Also, some Intel
3810    # versions had trouble with output in subdirs
3811    am__obj=sub/conftest.${OBJEXT-o}
3812    am__minus_obj="-o $am__obj"
3813    case $depmode in
3814    gcc)
3815      # This depmode causes a compiler race in universal mode.
3816      test "$am__universal" = false || continue
3817      ;;
3818    nosideeffect)
3819      # after this tag, mechanisms are not by side-effect, so they'll
3820      # only be used when explicitly requested
3821      if test "x$enable_dependency_tracking" = xyes; then
3822	continue
3823      else
3824	break
3825      fi
3826      ;;
3827    msvisualcpp | msvcmsys)
3828      # This compiler won't grok `-c -o', but also, the minuso test has
3829      # not run yet.  These depmodes are late enough in the game, and
3830      # so weak that their functioning should not be impacted.
3831      am__obj=conftest.${OBJEXT-o}
3832      am__minus_obj=
3833      ;;
3834    none) break ;;
3835    esac
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=$am__obj \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3884$as_echo_n "checking for library containing strerror... " >&6; }
3885if test "${ac_cv_search_strerror+set}" = set; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  ac_func_search_save_LIBS=$LIBS
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892/* Override any GCC internal prototype to avoid an error.
3893   Use char because int might match the return type of a GCC
3894   builtin and then its argument prototype would still apply.  */
3895#ifdef __cplusplus
3896extern "C"
3897#endif
3898char strerror ();
3899int
3900main ()
3901{
3902return strerror ();
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907for ac_lib in '' cposix; do
3908  if test -z "$ac_lib"; then
3909    ac_res="none required"
3910  else
3911    ac_res=-l$ac_lib
3912    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3913  fi
3914  if ac_fn_c_try_link "$LINENO"; then :
3915  ac_cv_search_strerror=$ac_res
3916fi
3917rm -f core conftest.err conftest.$ac_objext \
3918    conftest$ac_exeext
3919  if test "${ac_cv_search_strerror+set}" = set; then :
3920  break
3921fi
3922done
3923if test "${ac_cv_search_strerror+set}" = set; then :
3924
3925else
3926  ac_cv_search_strerror=no
3927fi
3928rm conftest.$ac_ext
3929LIBS=$ac_func_search_save_LIBS
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3932$as_echo "$ac_cv_search_strerror" >&6; }
3933ac_res=$ac_cv_search_strerror
3934if test "$ac_res" != no; then :
3935  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3936
3937fi
3938
3939ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944if test -n "$ac_tool_prefix"; then
3945  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3946set dummy ${ac_tool_prefix}gcc; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if test "${ac_cv_prog_CC+set}" = set; then :
3950  $as_echo_n "(cached) " >&6
3951else
3952  if test -n "$CC"; then
3953  ac_cv_prog_CC="$CC" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960    for ac_exec_ext in '' $ac_executable_extensions; do
3961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964    break 2
3965  fi
3966done
3967  done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972CC=$ac_cv_prog_CC
3973if test -n "$CC"; then
3974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3975$as_echo "$CC" >&6; }
3976else
3977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981
3982fi
3983if test -z "$ac_cv_prog_CC"; then
3984  ac_ct_CC=$CC
3985  # Extract the first word of "gcc", so it can be a program name with args.
3986set dummy gcc; ac_word=$2
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988$as_echo_n "checking for $ac_word... " >&6; }
3989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3990  $as_echo_n "(cached) " >&6
3991else
3992  if test -n "$ac_ct_CC"; then
3993  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3994else
3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996for as_dir in $PATH
3997do
3998  IFS=$as_save_IFS
3999  test -z "$as_dir" && as_dir=.
4000    for ac_exec_ext in '' $ac_executable_extensions; do
4001  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002    ac_cv_prog_ac_ct_CC="gcc"
4003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004    break 2
4005  fi
4006done
4007  done
4008IFS=$as_save_IFS
4009
4010fi
4011fi
4012ac_ct_CC=$ac_cv_prog_ac_ct_CC
4013if test -n "$ac_ct_CC"; then
4014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4015$as_echo "$ac_ct_CC" >&6; }
4016else
4017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019fi
4020
4021  if test "x$ac_ct_CC" = x; then
4022    CC=""
4023  else
4024    case $cross_compiling:$ac_tool_warned in
4025yes:)
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028ac_tool_warned=yes ;;
4029esac
4030    CC=$ac_ct_CC
4031  fi
4032else
4033  CC="$ac_cv_prog_CC"
4034fi
4035
4036if test -z "$CC"; then
4037          if test -n "$ac_tool_prefix"; then
4038    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4039set dummy ${ac_tool_prefix}cc; ac_word=$2
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if test "${ac_cv_prog_CC+set}" = set; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  if test -n "$CC"; then
4046  ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051  IFS=$as_save_IFS
4052  test -z "$as_dir" && as_dir=.
4053    for ac_exec_ext in '' $ac_executable_extensions; do
4054  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055    ac_cv_prog_CC="${ac_tool_prefix}cc"
4056    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057    break 2
4058  fi
4059done
4060  done
4061IFS=$as_save_IFS
4062
4063fi
4064fi
4065CC=$ac_cv_prog_CC
4066if test -n "$CC"; then
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068$as_echo "$CC" >&6; }
4069else
4070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
4072fi
4073
4074
4075  fi
4076fi
4077if test -z "$CC"; then
4078  # Extract the first word of "cc", so it can be a program name with args.
4079set dummy cc; ac_word=$2
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
4082if test "${ac_cv_prog_CC+set}" = set; then :
4083  $as_echo_n "(cached) " >&6
4084else
4085  if test -n "$CC"; then
4086  ac_cv_prog_CC="$CC" # Let the user override the test.
4087else
4088  ac_prog_rejected=no
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4097       ac_prog_rejected=yes
4098       continue
4099     fi
4100    ac_cv_prog_CC="cc"
4101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102    break 2
4103  fi
4104done
4105  done
4106IFS=$as_save_IFS
4107
4108if test $ac_prog_rejected = yes; then
4109  # We found a bogon in the path, so make sure we never use it.
4110  set dummy $ac_cv_prog_CC
4111  shift
4112  if test $# != 0; then
4113    # We chose a different compiler from the bogus one.
4114    # However, it has the same basename, so the bogon will be chosen
4115    # first if we set CC to just the basename; use the full file name.
4116    shift
4117    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4118  fi
4119fi
4120fi
4121fi
4122CC=$ac_cv_prog_CC
4123if test -n "$CC"; then
4124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125$as_echo "$CC" >&6; }
4126else
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130
4131
4132fi
4133if test -z "$CC"; then
4134  if test -n "$ac_tool_prefix"; then
4135  for ac_prog in cl.exe
4136  do
4137    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4138set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140$as_echo_n "checking for $ac_word... " >&6; }
4141if test "${ac_cv_prog_CC+set}" = set; then :
4142  $as_echo_n "(cached) " >&6
4143else
4144  if test -n "$CC"; then
4145  ac_cv_prog_CC="$CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150  IFS=$as_save_IFS
4151  test -z "$as_dir" && as_dir=.
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156    break 2
4157  fi
4158done
4159  done
4160IFS=$as_save_IFS
4161
4162fi
4163fi
4164CC=$ac_cv_prog_CC
4165if test -n "$CC"; then
4166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167$as_echo "$CC" >&6; }
4168else
4169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170$as_echo "no" >&6; }
4171fi
4172
4173
4174    test -n "$CC" && break
4175  done
4176fi
4177if test -z "$CC"; then
4178  ac_ct_CC=$CC
4179  for ac_prog in cl.exe
4180do
4181  # Extract the first word of "$ac_prog", so it can be a program name with args.
4182set dummy $ac_prog; ac_word=$2
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184$as_echo_n "checking for $ac_word... " >&6; }
4185if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  if test -n "$ac_ct_CC"; then
4189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  test -z "$as_dir" && as_dir=.
4196    for ac_exec_ext in '' $ac_executable_extensions; do
4197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198    ac_cv_prog_ac_ct_CC="$ac_prog"
4199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200    break 2
4201  fi
4202done
4203  done
4204IFS=$as_save_IFS
4205
4206fi
4207fi
4208ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209if test -n "$ac_ct_CC"; then
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211$as_echo "$ac_ct_CC" >&6; }
4212else
4213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214$as_echo "no" >&6; }
4215fi
4216
4217
4218  test -n "$ac_ct_CC" && break
4219done
4220
4221  if test "x$ac_ct_CC" = x; then
4222    CC=""
4223  else
4224    case $cross_compiling:$ac_tool_warned in
4225yes:)
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4228ac_tool_warned=yes ;;
4229esac
4230    CC=$ac_ct_CC
4231  fi
4232fi
4233
4234fi
4235
4236
4237test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239as_fn_error "no acceptable C compiler found in \$PATH
4240See \`config.log' for more details." "$LINENO" 5; }
4241
4242# Provide some information about the compiler.
4243$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4244set X $ac_compile
4245ac_compiler=$2
4246for ac_option in --version -v -V -qversion; do
4247  { { ac_try="$ac_compiler $ac_option >&5"
4248case "(($ac_try" in
4249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250  *) ac_try_echo=$ac_try;;
4251esac
4252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253$as_echo "$ac_try_echo"; } >&5
4254  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4255  ac_status=$?
4256  if test -s conftest.err; then
4257    sed '10a\
4258... rest of stderr output deleted ...
4259         10q' conftest.err >conftest.er1
4260    cat conftest.er1 >&5
4261  fi
4262  rm -f conftest.er1 conftest.err
4263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264  test $ac_status = 0; }
4265done
4266
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4268$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4269if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274
4275int
4276main ()
4277{
4278#ifndef __GNUC__
4279       choke me
4280#endif
4281
4282  ;
4283  return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"; then :
4287  ac_compiler_gnu=yes
4288else
4289  ac_compiler_gnu=no
4290fi
4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4297if test $ac_compiler_gnu = yes; then
4298  GCC=yes
4299else
4300  GCC=
4301fi
4302ac_test_CFLAGS=${CFLAGS+set}
4303ac_save_CFLAGS=$CFLAGS
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4305$as_echo_n "checking whether $CC accepts -g... " >&6; }
4306if test "${ac_cv_prog_cc_g+set}" = set; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  ac_save_c_werror_flag=$ac_c_werror_flag
4310   ac_c_werror_flag=yes
4311   ac_cv_prog_cc_g=no
4312   CFLAGS="-g"
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h.  */
4315
4316int
4317main ()
4318{
4319
4320  ;
4321  return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325  ac_cv_prog_cc_g=yes
4326else
4327  CFLAGS=""
4328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330
4331int
4332main ()
4333{
4334
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340
4341else
4342  ac_c_werror_flag=$ac_save_c_werror_flag
4343	 CFLAGS="-g"
4344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h.  */
4346
4347int
4348main ()
4349{
4350
4351  ;
4352  return 0;
4353}
4354_ACEOF
4355if ac_fn_c_try_compile "$LINENO"; then :
4356  ac_cv_prog_cc_g=yes
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359fi
4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363   ac_c_werror_flag=$ac_save_c_werror_flag
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4366$as_echo "$ac_cv_prog_cc_g" >&6; }
4367if test "$ac_test_CFLAGS" = set; then
4368  CFLAGS=$ac_save_CFLAGS
4369elif test $ac_cv_prog_cc_g = yes; then
4370  if test "$GCC" = yes; then
4371    CFLAGS="-g -O2"
4372  else
4373    CFLAGS="-g"
4374  fi
4375else
4376  if test "$GCC" = yes; then
4377    CFLAGS="-O2"
4378  else
4379    CFLAGS=
4380  fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4383$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4384if test "${ac_cv_prog_cc_c89+set}" = set; then :
4385  $as_echo_n "(cached) " >&6
4386else
4387  ac_cv_prog_cc_c89=no
4388ac_save_CC=$CC
4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390/* end confdefs.h.  */
4391#include <stdarg.h>
4392#include <stdio.h>
4393#include <sys/types.h>
4394#include <sys/stat.h>
4395/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4396struct buf { int x; };
4397FILE * (*rcsopen) (struct buf *, struct stat *, int);
4398static char *e (p, i)
4399     char **p;
4400     int i;
4401{
4402  return p[i];
4403}
4404static char *f (char * (*g) (char **, int), char **p, ...)
4405{
4406  char *s;
4407  va_list v;
4408  va_start (v,p);
4409  s = g (p, va_arg (v,int));
4410  va_end (v);
4411  return s;
4412}
4413
4414/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4415   function prototypes and stuff, but not '\xHH' hex character constants.
4416   These don't provoke an error unfortunately, instead are silently treated
4417   as 'x'.  The following induces an error, until -std is added to get
4418   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4419   array size at least.  It's necessary to write '\x00'==0 to get something
4420   that's true only with -std.  */
4421int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4422
4423/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4424   inside strings and character constants.  */
4425#define FOO(x) 'x'
4426int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4427
4428int test (int i, double x);
4429struct s1 {int (*f) (int a);};
4430struct s2 {int (*f) (double a);};
4431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4432int argc;
4433char **argv;
4434int
4435main ()
4436{
4437return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4443	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4444do
4445  CC="$ac_save_CC $ac_arg"
4446  if ac_fn_c_try_compile "$LINENO"; then :
4447  ac_cv_prog_cc_c89=$ac_arg
4448fi
4449rm -f core conftest.err conftest.$ac_objext
4450  test "x$ac_cv_prog_cc_c89" != "xno" && break
4451done
4452rm -f conftest.$ac_ext
4453CC=$ac_save_CC
4454
4455fi
4456# AC_CACHE_VAL
4457case "x$ac_cv_prog_cc_c89" in
4458  x)
4459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460$as_echo "none needed" >&6; } ;;
4461  xno)
4462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4463$as_echo "unsupported" >&6; } ;;
4464  *)
4465    CC="$CC $ac_cv_prog_cc_c89"
4466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4467$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4468esac
4469if test "x$ac_cv_prog_cc_c89" != xno; then :
4470
4471fi
4472
4473ac_ext=c
4474ac_cpp='$CPP $CPPFLAGS'
4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479depcc="$CC"   am_compiler_list=
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4482$as_echo_n "checking dependency style of $depcc... " >&6; }
4483if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4487  # We make a subdir and do the tests there.  Otherwise we can end up
4488  # making bogus files that we don't know about and never remove.  For
4489  # instance it was reported that on HP-UX the gcc test will end up
4490  # making a dummy file named `D' -- because `-MD' means `put the output
4491  # in D'.
4492  mkdir conftest.dir
4493  # Copy depcomp to subdir because otherwise we won't find it if we're
4494  # using a relative directory.
4495  cp "$am_depcomp" conftest.dir
4496  cd conftest.dir
4497  # We will build objects and dependencies in a subdirectory because
4498  # it helps to detect inapplicable dependency modes.  For instance
4499  # both Tru64's cc and ICC support -MD to output dependencies as a
4500  # side effect of compilation, but ICC will put the dependencies in
4501  # the current directory while Tru64 will put them in the object
4502  # directory.
4503  mkdir sub
4504
4505  am_cv_CC_dependencies_compiler_type=none
4506  if test "$am_compiler_list" = ""; then
4507     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4508  fi
4509  am__universal=false
4510  case " $depcc " in #(
4511     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4512     esac
4513
4514  for depmode in $am_compiler_list; do
4515    # Setup a source with many dependencies, because some compilers
4516    # like to wrap large dependency lists on column 80 (with \), and
4517    # we should not choose a depcomp mode which is confused by this.
4518    #
4519    # We need to recreate these files for each test, as the compiler may
4520    # overwrite some of them when testing with obscure command lines.
4521    # This happens at least with the AIX C compiler.
4522    : > sub/conftest.c
4523    for i in 1 2 3 4 5 6; do
4524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4526      # Solaris 8's {/usr,}/bin/sh.
4527      touch sub/conftst$i.h
4528    done
4529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4530
4531    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4532    # mode.  It turns out that the SunPro C++ compiler does not properly
4533    # handle `-M -o', and we need to detect this.  Also, some Intel
4534    # versions had trouble with output in subdirs
4535    am__obj=sub/conftest.${OBJEXT-o}
4536    am__minus_obj="-o $am__obj"
4537    case $depmode in
4538    gcc)
4539      # This depmode causes a compiler race in universal mode.
4540      test "$am__universal" = false || continue
4541      ;;
4542    nosideeffect)
4543      # after this tag, mechanisms are not by side-effect, so they'll
4544      # only be used when explicitly requested
4545      if test "x$enable_dependency_tracking" = xyes; then
4546	continue
4547      else
4548	break
4549      fi
4550      ;;
4551    msvisualcpp | msvcmsys)
4552      # This compiler won't grok `-c -o', but also, the minuso test has
4553      # not run yet.  These depmodes are late enough in the game, and
4554      # so weak that their functioning should not be impacted.
4555      am__obj=conftest.${OBJEXT-o}
4556      am__minus_obj=
4557      ;;
4558    none) break ;;
4559    esac
4560    if depmode=$depmode \
4561       source=sub/conftest.c object=$am__obj \
4562       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4563       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4564         >/dev/null 2>conftest.err &&
4565       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4566       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4567       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4568       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4569      # icc doesn't choke on unknown options, it will just issue warnings
4570      # or remarks (even with -Werror).  So we grep stderr for any message
4571      # that says an option was ignored or not supported.
4572      # When given -MP, icc 7.0 and 7.1 complain thusly:
4573      #   icc: Command line warning: ignoring option '-M'; no argument required
4574      # The diagnosis changed in icc 8.0:
4575      #   icc: Command line remark: option '-MP' not supported
4576      if (grep 'ignoring option' conftest.err ||
4577          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4578        am_cv_CC_dependencies_compiler_type=$depmode
4579        break
4580      fi
4581    fi
4582  done
4583
4584  cd ..
4585  rm -rf conftest.dir
4586else
4587  am_cv_CC_dependencies_compiler_type=none
4588fi
4589
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4592$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4593CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4594
4595 if
4596  test "x$enable_dependency_tracking" != xno \
4597  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4598  am__fastdepCC_TRUE=
4599  am__fastdepCC_FALSE='#'
4600else
4601  am__fastdepCC_TRUE='#'
4602  am__fastdepCC_FALSE=
4603fi
4604
4605
4606ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4612$as_echo_n "checking how to run the C preprocessor... " >&6; }
4613# On Suns, sometimes $CPP names a directory.
4614if test -n "$CPP" && test -d "$CPP"; then
4615  CPP=
4616fi
4617if test -z "$CPP"; then
4618  if test "${ac_cv_prog_CPP+set}" = set; then :
4619  $as_echo_n "(cached) " >&6
4620else
4621      # Double quotes because CPP needs to be expanded
4622    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4623    do
4624      ac_preproc_ok=false
4625for ac_c_preproc_warn_flag in '' yes
4626do
4627  # Use a header file that comes with gcc, so configuring glibc
4628  # with a fresh cross-compiler works.
4629  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4630  # <limits.h> exists even on freestanding compilers.
4631  # On the NeXT, cc -E runs the code through the compiler's parser,
4632  # not just through cpp. "Syntax error" is here to catch this case.
4633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634/* end confdefs.h.  */
4635#ifdef __STDC__
4636# include <limits.h>
4637#else
4638# include <assert.h>
4639#endif
4640		     Syntax error
4641_ACEOF
4642if ac_fn_c_try_cpp "$LINENO"; then :
4643
4644else
4645  # Broken: fails on valid input.
4646continue
4647fi
4648rm -f conftest.err conftest.$ac_ext
4649
4650  # OK, works on sane cases.  Now check whether nonexistent headers
4651  # can be detected and how.
4652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h.  */
4654#include <ac_nonexistent.h>
4655_ACEOF
4656if ac_fn_c_try_cpp "$LINENO"; then :
4657  # Broken: success on invalid input.
4658continue
4659else
4660  # Passes both tests.
4661ac_preproc_ok=:
4662break
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665
4666done
4667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4668rm -f conftest.err conftest.$ac_ext
4669if $ac_preproc_ok; then :
4670  break
4671fi
4672
4673    done
4674    ac_cv_prog_CPP=$CPP
4675
4676fi
4677  CPP=$ac_cv_prog_CPP
4678else
4679  ac_cv_prog_CPP=$CPP
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4682$as_echo "$CPP" >&6; }
4683ac_preproc_ok=false
4684for ac_c_preproc_warn_flag in '' yes
4685do
4686  # Use a header file that comes with gcc, so configuring glibc
4687  # with a fresh cross-compiler works.
4688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4689  # <limits.h> exists even on freestanding compilers.
4690  # On the NeXT, cc -E runs the code through the compiler's parser,
4691  # not just through cpp. "Syntax error" is here to catch this case.
4692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694#ifdef __STDC__
4695# include <limits.h>
4696#else
4697# include <assert.h>
4698#endif
4699		     Syntax error
4700_ACEOF
4701if ac_fn_c_try_cpp "$LINENO"; then :
4702
4703else
4704  # Broken: fails on valid input.
4705continue
4706fi
4707rm -f conftest.err conftest.$ac_ext
4708
4709  # OK, works on sane cases.  Now check whether nonexistent headers
4710  # can be detected and how.
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713#include <ac_nonexistent.h>
4714_ACEOF
4715if ac_fn_c_try_cpp "$LINENO"; then :
4716  # Broken: success on invalid input.
4717continue
4718else
4719  # Passes both tests.
4720ac_preproc_ok=:
4721break
4722fi
4723rm -f conftest.err conftest.$ac_ext
4724
4725done
4726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4727rm -f conftest.err conftest.$ac_ext
4728if $ac_preproc_ok; then :
4729
4730else
4731  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733as_fn_error "C preprocessor \"$CPP\" fails sanity check
4734See \`config.log' for more details." "$LINENO" 5; }
4735fi
4736
4737ac_ext=c
4738ac_cpp='$CPP $CPPFLAGS'
4739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4745$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4746if test "${ac_cv_path_GREP+set}" = set; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -z "$GREP"; then
4750  ac_path_GREP_found=false
4751  # Loop through the user's path and test for each of PROGNAME-LIST
4752  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_prog in grep ggrep; do
4758    for ac_exec_ext in '' $ac_executable_extensions; do
4759      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4760      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4761# Check for GNU ac_path_GREP and select it if it is found.
4762  # Check for GNU $ac_path_GREP
4763case `"$ac_path_GREP" --version 2>&1` in
4764*GNU*)
4765  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4766*)
4767  ac_count=0
4768  $as_echo_n 0123456789 >"conftest.in"
4769  while :
4770  do
4771    cat "conftest.in" "conftest.in" >"conftest.tmp"
4772    mv "conftest.tmp" "conftest.in"
4773    cp "conftest.in" "conftest.nl"
4774    $as_echo 'GREP' >> "conftest.nl"
4775    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4776    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4777    as_fn_arith $ac_count + 1 && ac_count=$as_val
4778    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4779      # Best one so far, save it but keep looking for a better one
4780      ac_cv_path_GREP="$ac_path_GREP"
4781      ac_path_GREP_max=$ac_count
4782    fi
4783    # 10*(2^10) chars as input seems more than enough
4784    test $ac_count -gt 10 && break
4785  done
4786  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787esac
4788
4789      $ac_path_GREP_found && break 3
4790    done
4791  done
4792  done
4793IFS=$as_save_IFS
4794  if test -z "$ac_cv_path_GREP"; then
4795    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4796  fi
4797else
4798  ac_cv_path_GREP=$GREP
4799fi
4800
4801fi
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4803$as_echo "$ac_cv_path_GREP" >&6; }
4804 GREP="$ac_cv_path_GREP"
4805
4806
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4808$as_echo_n "checking for egrep... " >&6; }
4809if test "${ac_cv_path_EGREP+set}" = set; then :
4810  $as_echo_n "(cached) " >&6
4811else
4812  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4813   then ac_cv_path_EGREP="$GREP -E"
4814   else
4815     if test -z "$EGREP"; then
4816  ac_path_EGREP_found=false
4817  # Loop through the user's path and test for each of PROGNAME-LIST
4818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4820do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_prog in egrep; do
4824    for ac_exec_ext in '' $ac_executable_extensions; do
4825      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4826      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4827# Check for GNU ac_path_EGREP and select it if it is found.
4828  # Check for GNU $ac_path_EGREP
4829case `"$ac_path_EGREP" --version 2>&1` in
4830*GNU*)
4831  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4832*)
4833  ac_count=0
4834  $as_echo_n 0123456789 >"conftest.in"
4835  while :
4836  do
4837    cat "conftest.in" "conftest.in" >"conftest.tmp"
4838    mv "conftest.tmp" "conftest.in"
4839    cp "conftest.in" "conftest.nl"
4840    $as_echo 'EGREP' >> "conftest.nl"
4841    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843    as_fn_arith $ac_count + 1 && ac_count=$as_val
4844    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4845      # Best one so far, save it but keep looking for a better one
4846      ac_cv_path_EGREP="$ac_path_EGREP"
4847      ac_path_EGREP_max=$ac_count
4848    fi
4849    # 10*(2^10) chars as input seems more than enough
4850    test $ac_count -gt 10 && break
4851  done
4852  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853esac
4854
4855      $ac_path_EGREP_found && break 3
4856    done
4857  done
4858  done
4859IFS=$as_save_IFS
4860  if test -z "$ac_cv_path_EGREP"; then
4861    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4862  fi
4863else
4864  ac_cv_path_EGREP=$EGREP
4865fi
4866
4867   fi
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4870$as_echo "$ac_cv_path_EGREP" >&6; }
4871 EGREP="$ac_cv_path_EGREP"
4872
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4875$as_echo_n "checking for ANSI C header files... " >&6; }
4876if test "${ac_cv_header_stdc+set}" = set; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h.  */
4881#include <stdlib.h>
4882#include <stdarg.h>
4883#include <string.h>
4884#include <float.h>
4885
4886int
4887main ()
4888{
4889
4890  ;
4891  return 0;
4892}
4893_ACEOF
4894if ac_fn_c_try_compile "$LINENO"; then :
4895  ac_cv_header_stdc=yes
4896else
4897  ac_cv_header_stdc=no
4898fi
4899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900
4901if test $ac_cv_header_stdc = yes; then
4902  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h.  */
4905#include <string.h>
4906
4907_ACEOF
4908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909  $EGREP "memchr" >/dev/null 2>&1; then :
4910
4911else
4912  ac_cv_header_stdc=no
4913fi
4914rm -f conftest*
4915
4916fi
4917
4918if test $ac_cv_header_stdc = yes; then
4919  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h.  */
4922#include <stdlib.h>
4923
4924_ACEOF
4925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926  $EGREP "free" >/dev/null 2>&1; then :
4927
4928else
4929  ac_cv_header_stdc=no
4930fi
4931rm -f conftest*
4932
4933fi
4934
4935if test $ac_cv_header_stdc = yes; then
4936  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4937  if test "$cross_compiling" = yes; then :
4938  :
4939else
4940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942#include <ctype.h>
4943#include <stdlib.h>
4944#if ((' ' & 0x0FF) == 0x020)
4945# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4946# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4947#else
4948# define ISLOWER(c) \
4949		   (('a' <= (c) && (c) <= 'i') \
4950		     || ('j' <= (c) && (c) <= 'r') \
4951		     || ('s' <= (c) && (c) <= 'z'))
4952# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4953#endif
4954
4955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4956int
4957main ()
4958{
4959  int i;
4960  for (i = 0; i < 256; i++)
4961    if (XOR (islower (i), ISLOWER (i))
4962	|| toupper (i) != TOUPPER (i))
4963      return 2;
4964  return 0;
4965}
4966_ACEOF
4967if ac_fn_c_try_run "$LINENO"; then :
4968
4969else
4970  ac_cv_header_stdc=no
4971fi
4972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4973  conftest.$ac_objext conftest.beam conftest.$ac_ext
4974fi
4975
4976fi
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4979$as_echo "$ac_cv_header_stdc" >&6; }
4980if test $ac_cv_header_stdc = yes; then
4981
4982$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4983
4984fi
4985
4986case `pwd` in
4987  *\ * | *\	*)
4988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4989$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4990esac
4991
4992
4993
4994macro_version='2.2.6b'
4995macro_revision='1.3017'
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009ltmain="$ac_aux_dir/ltmain.sh"
5010
5011# Make sure we can run config.sub.
5012$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5013  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5016$as_echo_n "checking build system type... " >&6; }
5017if test "${ac_cv_build+set}" = set; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  ac_build_alias=$build_alias
5021test "x$ac_build_alias" = x &&
5022  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5023test "x$ac_build_alias" = x &&
5024  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5025ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5026  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5027
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5030$as_echo "$ac_cv_build" >&6; }
5031case $ac_cv_build in
5032*-*-*) ;;
5033*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5034esac
5035build=$ac_cv_build
5036ac_save_IFS=$IFS; IFS='-'
5037set x $ac_cv_build
5038shift
5039build_cpu=$1
5040build_vendor=$2
5041shift; shift
5042# Remember, the first character of IFS is used to create $*,
5043# except with old shells:
5044build_os=$*
5045IFS=$ac_save_IFS
5046case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5047
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5050$as_echo_n "checking host system type... " >&6; }
5051if test "${ac_cv_host+set}" = set; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  if test "x$host_alias" = x; then
5055  ac_cv_host=$ac_cv_build
5056else
5057  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5058    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5059fi
5060
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5063$as_echo "$ac_cv_host" >&6; }
5064case $ac_cv_host in
5065*-*-*) ;;
5066*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5067esac
5068host=$ac_cv_host
5069ac_save_IFS=$IFS; IFS='-'
5070set x $ac_cv_host
5071shift
5072host_cpu=$1
5073host_vendor=$2
5074shift; shift
5075# Remember, the first character of IFS is used to create $*,
5076# except with old shells:
5077host_os=$*
5078IFS=$ac_save_IFS
5079case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5080
5081
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5083$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5084if test "${ac_cv_path_SED+set}" = set; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5088     for ac_i in 1 2 3 4 5 6 7; do
5089       ac_script="$ac_script$as_nl$ac_script"
5090     done
5091     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5092     { ac_script=; unset ac_script;}
5093     if test -z "$SED"; then
5094  ac_path_SED_found=false
5095  # Loop through the user's path and test for each of PROGNAME-LIST
5096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099  IFS=$as_save_IFS
5100  test -z "$as_dir" && as_dir=.
5101    for ac_prog in sed gsed; do
5102    for ac_exec_ext in '' $ac_executable_extensions; do
5103      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5104      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5105# Check for GNU ac_path_SED and select it if it is found.
5106  # Check for GNU $ac_path_SED
5107case `"$ac_path_SED" --version 2>&1` in
5108*GNU*)
5109  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5110*)
5111  ac_count=0
5112  $as_echo_n 0123456789 >"conftest.in"
5113  while :
5114  do
5115    cat "conftest.in" "conftest.in" >"conftest.tmp"
5116    mv "conftest.tmp" "conftest.in"
5117    cp "conftest.in" "conftest.nl"
5118    $as_echo '' >> "conftest.nl"
5119    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121    as_fn_arith $ac_count + 1 && ac_count=$as_val
5122    if test $ac_count -gt ${ac_path_SED_max-0}; then
5123      # Best one so far, save it but keep looking for a better one
5124      ac_cv_path_SED="$ac_path_SED"
5125      ac_path_SED_max=$ac_count
5126    fi
5127    # 10*(2^10) chars as input seems more than enough
5128    test $ac_count -gt 10 && break
5129  done
5130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131esac
5132
5133      $ac_path_SED_found && break 3
5134    done
5135  done
5136  done
5137IFS=$as_save_IFS
5138  if test -z "$ac_cv_path_SED"; then
5139    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5140  fi
5141else
5142  ac_cv_path_SED=$SED
5143fi
5144
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5147$as_echo "$ac_cv_path_SED" >&6; }
5148 SED="$ac_cv_path_SED"
5149  rm -f conftest.sed
5150
5151test -z "$SED" && SED=sed
5152Xsed="$SED -e 1s/^X//"
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5165$as_echo_n "checking for fgrep... " >&6; }
5166if test "${ac_cv_path_FGREP+set}" = set; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5170   then ac_cv_path_FGREP="$GREP -F"
5171   else
5172     if test -z "$FGREP"; then
5173  ac_path_FGREP_found=false
5174  # Loop through the user's path and test for each of PROGNAME-LIST
5175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180    for ac_prog in fgrep; do
5181    for ac_exec_ext in '' $ac_executable_extensions; do
5182      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5183      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5184# Check for GNU ac_path_FGREP and select it if it is found.
5185  # Check for GNU $ac_path_FGREP
5186case `"$ac_path_FGREP" --version 2>&1` in
5187*GNU*)
5188  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5189*)
5190  ac_count=0
5191  $as_echo_n 0123456789 >"conftest.in"
5192  while :
5193  do
5194    cat "conftest.in" "conftest.in" >"conftest.tmp"
5195    mv "conftest.tmp" "conftest.in"
5196    cp "conftest.in" "conftest.nl"
5197    $as_echo 'FGREP' >> "conftest.nl"
5198    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200    as_fn_arith $ac_count + 1 && ac_count=$as_val
5201    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5202      # Best one so far, save it but keep looking for a better one
5203      ac_cv_path_FGREP="$ac_path_FGREP"
5204      ac_path_FGREP_max=$ac_count
5205    fi
5206    # 10*(2^10) chars as input seems more than enough
5207    test $ac_count -gt 10 && break
5208  done
5209  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210esac
5211
5212      $ac_path_FGREP_found && break 3
5213    done
5214  done
5215  done
5216IFS=$as_save_IFS
5217  if test -z "$ac_cv_path_FGREP"; then
5218    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219  fi
5220else
5221  ac_cv_path_FGREP=$FGREP
5222fi
5223
5224   fi
5225fi
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5227$as_echo "$ac_cv_path_FGREP" >&6; }
5228 FGREP="$ac_cv_path_FGREP"
5229
5230
5231test -z "$GREP" && GREP=grep
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251# Check whether --with-gnu-ld was given.
5252if test "${with_gnu_ld+set}" = set; then :
5253  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5254else
5255  with_gnu_ld=no
5256fi
5257
5258ac_prog=ld
5259if test "$GCC" = yes; then
5260  # Check if gcc -print-prog-name=ld gives a path.
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5262$as_echo_n "checking for ld used by $CC... " >&6; }
5263  case $host in
5264  *-*-mingw*)
5265    # gcc leaves a trailing carriage return which upsets mingw
5266    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5267  *)
5268    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5269  esac
5270  case $ac_prog in
5271    # Accept absolute paths.
5272    [\\/]* | ?:[\\/]*)
5273      re_direlt='/[^/][^/]*/\.\./'
5274      # Canonicalize the pathname of ld
5275      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5276      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5277	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5278      done
5279      test -z "$LD" && LD="$ac_prog"
5280      ;;
5281  "")
5282    # If it fails, then pretend we aren't using GCC.
5283    ac_prog=ld
5284    ;;
5285  *)
5286    # If it is relative, then search for the first ld in PATH.
5287    with_gnu_ld=unknown
5288    ;;
5289  esac
5290elif test "$with_gnu_ld" = yes; then
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5292$as_echo_n "checking for GNU ld... " >&6; }
5293else
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5295$as_echo_n "checking for non-GNU ld... " >&6; }
5296fi
5297if test "${lt_cv_path_LD+set}" = set; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  if test -z "$LD"; then
5301  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302  for ac_dir in $PATH; do
5303    IFS="$lt_save_ifs"
5304    test -z "$ac_dir" && ac_dir=.
5305    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306      lt_cv_path_LD="$ac_dir/$ac_prog"
5307      # Check to see if the program is GNU ld.  I'd rather use --version,
5308      # but apparently some variants of GNU ld only accept -v.
5309      # Break only if it was the GNU/non-GNU ld that we prefer.
5310      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311      *GNU* | *'with BFD'*)
5312	test "$with_gnu_ld" != no && break
5313	;;
5314      *)
5315	test "$with_gnu_ld" != yes && break
5316	;;
5317      esac
5318    fi
5319  done
5320  IFS="$lt_save_ifs"
5321else
5322  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5323fi
5324fi
5325
5326LD="$lt_cv_path_LD"
5327if test -n "$LD"; then
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5329$as_echo "$LD" >&6; }
5330else
5331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332$as_echo "no" >&6; }
5333fi
5334test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5336$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5337if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5341case `$LD -v 2>&1 </dev/null` in
5342*GNU* | *'with BFD'*)
5343  lt_cv_prog_gnu_ld=yes
5344  ;;
5345*)
5346  lt_cv_prog_gnu_ld=no
5347  ;;
5348esac
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5352with_gnu_ld=$lt_cv_prog_gnu_ld
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364if test "${lt_cv_path_NM+set}" = set; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  if test -n "$NM"; then
5368  # Let the user override the test.
5369  lt_cv_path_NM="$NM"
5370else
5371  lt_nm_to_check="${ac_tool_prefix}nm"
5372  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5373    lt_nm_to_check="$lt_nm_to_check nm"
5374  fi
5375  for lt_tmp_nm in $lt_nm_to_check; do
5376    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5377    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5378      IFS="$lt_save_ifs"
5379      test -z "$ac_dir" && ac_dir=.
5380      tmp_nm="$ac_dir/$lt_tmp_nm"
5381      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5382	# Check to see if the nm accepts a BSD-compat flag.
5383	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384	#   nm: unknown option "B" ignored
5385	# Tru64's nm complains that /dev/null is an invalid object file
5386	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5387	*/dev/null* | *'Invalid file or object type'*)
5388	  lt_cv_path_NM="$tmp_nm -B"
5389	  break
5390	  ;;
5391	*)
5392	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5393	  */dev/null*)
5394	    lt_cv_path_NM="$tmp_nm -p"
5395	    break
5396	    ;;
5397	  *)
5398	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5399	    continue # so that we can try to find one that supports BSD flags
5400	    ;;
5401	  esac
5402	  ;;
5403	esac
5404      fi
5405    done
5406    IFS="$lt_save_ifs"
5407  done
5408  : ${lt_cv_path_NM=no}
5409fi
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5412$as_echo "$lt_cv_path_NM" >&6; }
5413if test "$lt_cv_path_NM" != "no"; then
5414  NM="$lt_cv_path_NM"
5415else
5416  # Didn't find any BSD compatible name lister, look for dumpbin.
5417  if test -n "$ac_tool_prefix"; then
5418  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5419  do
5420    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5425  $as_echo_n "(cached) " >&6
5426else
5427  if test -n "$DUMPBIN"; then
5428  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433  IFS=$as_save_IFS
5434  test -z "$as_dir" && as_dir=.
5435    for ac_exec_ext in '' $ac_executable_extensions; do
5436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439    break 2
5440  fi
5441done
5442  done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447DUMPBIN=$ac_cv_prog_DUMPBIN
5448if test -n "$DUMPBIN"; then
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5450$as_echo "$DUMPBIN" >&6; }
5451else
5452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456
5457    test -n "$DUMPBIN" && break
5458  done
5459fi
5460if test -z "$DUMPBIN"; then
5461  ac_ct_DUMPBIN=$DUMPBIN
5462  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5463do
5464  # Extract the first word of "$ac_prog", so it can be a program name with args.
5465set dummy $ac_prog; ac_word=$2
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5469  $as_echo_n "(cached) " >&6
5470else
5471  if test -n "$ac_ct_DUMPBIN"; then
5472  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477  IFS=$as_save_IFS
5478  test -z "$as_dir" && as_dir=.
5479    for ac_exec_ext in '' $ac_executable_extensions; do
5480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483    break 2
5484  fi
5485done
5486  done
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5492if test -n "$ac_ct_DUMPBIN"; then
5493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5494$as_echo "$ac_ct_DUMPBIN" >&6; }
5495else
5496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5498fi
5499
5500
5501  test -n "$ac_ct_DUMPBIN" && break
5502done
5503
5504  if test "x$ac_ct_DUMPBIN" = x; then
5505    DUMPBIN=":"
5506  else
5507    case $cross_compiling:$ac_tool_warned in
5508yes:)
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511ac_tool_warned=yes ;;
5512esac
5513    DUMPBIN=$ac_ct_DUMPBIN
5514  fi
5515fi
5516
5517
5518  if test "$DUMPBIN" != ":"; then
5519    NM="$DUMPBIN"
5520  fi
5521fi
5522test -z "$NM" && NM=nm
5523
5524
5525
5526
5527
5528
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5530$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5531if test "${lt_cv_nm_interface+set}" = set; then :
5532  $as_echo_n "(cached) " >&6
5533else
5534  lt_cv_nm_interface="BSD nm"
5535  echo "int some_variable = 0;" > conftest.$ac_ext
5536  (eval echo "\"\$as_me:5536: $ac_compile\"" >&5)
5537  (eval "$ac_compile" 2>conftest.err)
5538  cat conftest.err >&5
5539  (eval echo "\"\$as_me:5539: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5540  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5541  cat conftest.err >&5
5542  (eval echo "\"\$as_me:5542: output\"" >&5)
5543  cat conftest.out >&5
5544  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5545    lt_cv_nm_interface="MS dumpbin"
5546  fi
5547  rm -f conftest*
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5550$as_echo "$lt_cv_nm_interface" >&6; }
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5553$as_echo_n "checking whether ln -s works... " >&6; }
5554LN_S=$as_ln_s
5555if test "$LN_S" = "ln -s"; then
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557$as_echo "yes" >&6; }
5558else
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5560$as_echo "no, using $LN_S" >&6; }
5561fi
5562
5563# find the maximum length of command line arguments
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5565$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5566if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569    i=0
5570  teststring="ABCD"
5571
5572  case $build_os in
5573  msdosdjgpp*)
5574    # On DJGPP, this test can blow up pretty badly due to problems in libc
5575    # (any single argument exceeding 2000 bytes causes a buffer overrun
5576    # during glob expansion).  Even if it were fixed, the result of this
5577    # check would be larger than it should be.
5578    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5579    ;;
5580
5581  gnu*)
5582    # Under GNU Hurd, this test is not required because there is
5583    # no limit to the length of command line arguments.
5584    # Libtool will interpret -1 as no limit whatsoever
5585    lt_cv_sys_max_cmd_len=-1;
5586    ;;
5587
5588  cygwin* | mingw* | cegcc*)
5589    # On Win9x/ME, this test blows up -- it succeeds, but takes
5590    # about 5 minutes as the teststring grows exponentially.
5591    # Worse, since 9x/ME are not pre-emptively multitasking,
5592    # you end up with a "frozen" computer, even though with patience
5593    # the test eventually succeeds (with a max line length of 256k).
5594    # Instead, let's just punt: use the minimum linelength reported by
5595    # all of the supported platforms: 8192 (on NT/2K/XP).
5596    lt_cv_sys_max_cmd_len=8192;
5597    ;;
5598
5599  amigaos*)
5600    # On AmigaOS with pdksh, this test takes hours, literally.
5601    # So we just punt and use a minimum line length of 8192.
5602    lt_cv_sys_max_cmd_len=8192;
5603    ;;
5604
5605  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5606    # This has been around since 386BSD, at least.  Likely further.
5607    if test -x /sbin/sysctl; then
5608      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5609    elif test -x /usr/sbin/sysctl; then
5610      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5611    else
5612      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5613    fi
5614    # And add a safety zone
5615    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5616    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5617    ;;
5618
5619  interix*)
5620    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5621    lt_cv_sys_max_cmd_len=196608
5622    ;;
5623
5624  osf*)
5625    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5626    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5627    # nice to cause kernel panics so lets avoid the loop below.
5628    # First set a reasonable default.
5629    lt_cv_sys_max_cmd_len=16384
5630    #
5631    if test -x /sbin/sysconfig; then
5632      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5633        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5634      esac
5635    fi
5636    ;;
5637  sco3.2v5*)
5638    lt_cv_sys_max_cmd_len=102400
5639    ;;
5640  sysv5* | sco5v6* | sysv4.2uw2*)
5641    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5642    if test -n "$kargmax"; then
5643      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5644    else
5645      lt_cv_sys_max_cmd_len=32768
5646    fi
5647    ;;
5648  *)
5649    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5650    if test -n "$lt_cv_sys_max_cmd_len"; then
5651      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5652      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5653    else
5654      # Make teststring a little bigger before we do anything with it.
5655      # a 1K string should be a reasonable start.
5656      for i in 1 2 3 4 5 6 7 8 ; do
5657        teststring=$teststring$teststring
5658      done
5659      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5660      # If test is not a shell built-in, we'll probably end up computing a
5661      # maximum length that is only half of the actual maximum length, but
5662      # we can't tell.
5663      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5664	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5665	      test $i != 17 # 1/2 MB should be enough
5666      do
5667        i=`expr $i + 1`
5668        teststring=$teststring$teststring
5669      done
5670      # Only check the string length outside the loop.
5671      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5672      teststring=
5673      # Add a significant safety factor because C++ compilers can tack on
5674      # massive amounts of additional arguments before passing them to the
5675      # linker.  It appears as though 1/2 is a usable value.
5676      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5677    fi
5678    ;;
5679  esac
5680
5681fi
5682
5683if test -n $lt_cv_sys_max_cmd_len ; then
5684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5685$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5686else
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5688$as_echo "none" >&6; }
5689fi
5690max_cmd_len=$lt_cv_sys_max_cmd_len
5691
5692
5693
5694
5695
5696
5697: ${CP="cp -f"}
5698: ${MV="mv -f"}
5699: ${RM="rm -f"}
5700
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5702$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5703# Try some XSI features
5704xsi_shell=no
5705( _lt_dummy="a/b/c"
5706  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5707      = c,a/b,, \
5708    && eval 'test $(( 1 + 1 )) -eq 2 \
5709    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5710  && xsi_shell=yes
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5712$as_echo "$xsi_shell" >&6; }
5713
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5716$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5717lt_shell_append=no
5718( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5719    >/dev/null 2>&1 \
5720  && lt_shell_append=yes
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5722$as_echo "$lt_shell_append" >&6; }
5723
5724
5725if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5726  lt_unset=unset
5727else
5728  lt_unset=false
5729fi
5730
5731
5732
5733
5734
5735# test EBCDIC or ASCII
5736case `echo X|tr X '\101'` in
5737 A) # ASCII based system
5738    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5739  lt_SP2NL='tr \040 \012'
5740  lt_NL2SP='tr \015\012 \040\040'
5741  ;;
5742 *) # EBCDIC based system
5743  lt_SP2NL='tr \100 \n'
5744  lt_NL2SP='tr \r\n \100\100'
5745  ;;
5746esac
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5757$as_echo_n "checking for $LD option to reload object files... " >&6; }
5758if test "${lt_cv_ld_reload_flag+set}" = set; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  lt_cv_ld_reload_flag='-r'
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5764$as_echo "$lt_cv_ld_reload_flag" >&6; }
5765reload_flag=$lt_cv_ld_reload_flag
5766case $reload_flag in
5767"" | " "*) ;;
5768*) reload_flag=" $reload_flag" ;;
5769esac
5770reload_cmds='$LD$reload_flag -o $output$reload_objs'
5771case $host_os in
5772  darwin*)
5773    if test "$GCC" = yes; then
5774      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5775    else
5776      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5777    fi
5778    ;;
5779esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789if test -n "$ac_tool_prefix"; then
5790  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5791set dummy ${ac_tool_prefix}objdump; ac_word=$2
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793$as_echo_n "checking for $ac_word... " >&6; }
5794if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5795  $as_echo_n "(cached) " >&6
5796else
5797  if test -n "$OBJDUMP"; then
5798  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803  IFS=$as_save_IFS
5804  test -z "$as_dir" && as_dir=.
5805    for ac_exec_ext in '' $ac_executable_extensions; do
5806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809    break 2
5810  fi
5811done
5812  done
5813IFS=$as_save_IFS
5814
5815fi
5816fi
5817OBJDUMP=$ac_cv_prog_OBJDUMP
5818if test -n "$OBJDUMP"; then
5819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5820$as_echo "$OBJDUMP" >&6; }
5821else
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823$as_echo "no" >&6; }
5824fi
5825
5826
5827fi
5828if test -z "$ac_cv_prog_OBJDUMP"; then
5829  ac_ct_OBJDUMP=$OBJDUMP
5830  # Extract the first word of "objdump", so it can be a program name with args.
5831set dummy objdump; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
5834if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  if test -n "$ac_ct_OBJDUMP"; then
5838  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843  IFS=$as_save_IFS
5844  test -z "$as_dir" && as_dir=.
5845    for ac_exec_ext in '' $ac_executable_extensions; do
5846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849    break 2
5850  fi
5851done
5852  done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5858if test -n "$ac_ct_OBJDUMP"; then
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5860$as_echo "$ac_ct_OBJDUMP" >&6; }
5861else
5862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866  if test "x$ac_ct_OBJDUMP" = x; then
5867    OBJDUMP="false"
5868  else
5869    case $cross_compiling:$ac_tool_warned in
5870yes:)
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5873ac_tool_warned=yes ;;
5874esac
5875    OBJDUMP=$ac_ct_OBJDUMP
5876  fi
5877else
5878  OBJDUMP="$ac_cv_prog_OBJDUMP"
5879fi
5880
5881test -z "$OBJDUMP" && OBJDUMP=objdump
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5892$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5893if test "${lt_cv_deplibs_check_method+set}" = set; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  lt_cv_file_magic_cmd='$MAGIC_CMD'
5897lt_cv_file_magic_test_file=
5898lt_cv_deplibs_check_method='unknown'
5899# Need to set the preceding variable on all platforms that support
5900# interlibrary dependencies.
5901# 'none' -- dependencies not supported.
5902# `unknown' -- same as none, but documents that we really don't know.
5903# 'pass_all' -- all dependencies passed with no checks.
5904# 'test_compile' -- check by making test program.
5905# 'file_magic [[regex]]' -- check by looking for files in library path
5906# which responds to the $file_magic_cmd with a given extended regex.
5907# If you have `file' or equivalent on your system and you're not sure
5908# whether `pass_all' will *always* work, you probably want this one.
5909
5910case $host_os in
5911aix[4-9]*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915beos*)
5916  lt_cv_deplibs_check_method=pass_all
5917  ;;
5918
5919bsdi[45]*)
5920  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5921  lt_cv_file_magic_cmd='/usr/bin/file -L'
5922  lt_cv_file_magic_test_file=/shlib/libc.so
5923  ;;
5924
5925cygwin*)
5926  # func_win32_libid is a shell function defined in ltmain.sh
5927  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5928  lt_cv_file_magic_cmd='func_win32_libid'
5929  ;;
5930
5931mingw* | pw32*)
5932  # Base MSYS/MinGW do not provide the 'file' command needed by
5933  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5934  # unless we find 'file', for example because we are cross-compiling.
5935  if ( file / ) >/dev/null 2>&1; then
5936    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5937    lt_cv_file_magic_cmd='func_win32_libid'
5938  else
5939    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5940    lt_cv_file_magic_cmd='$OBJDUMP -f'
5941  fi
5942  ;;
5943
5944cegcc)
5945  # use the weaker test based on 'objdump'. See mingw*.
5946  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5947  lt_cv_file_magic_cmd='$OBJDUMP -f'
5948  ;;
5949
5950darwin* | rhapsody*)
5951  lt_cv_deplibs_check_method=pass_all
5952  ;;
5953
5954freebsd* | dragonfly*)
5955  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5956    case $host_cpu in
5957    i*86 )
5958      # Not sure whether the presence of OpenBSD here was a mistake.
5959      # Let's accept both of them until this is cleared up.
5960      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961      lt_cv_file_magic_cmd=/usr/bin/file
5962      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5963      ;;
5964    esac
5965  else
5966    lt_cv_deplibs_check_method=pass_all
5967  fi
5968  ;;
5969
5970gnu*)
5971  lt_cv_deplibs_check_method=pass_all
5972  ;;
5973
5974hpux10.20* | hpux11*)
5975  lt_cv_file_magic_cmd=/usr/bin/file
5976  case $host_cpu in
5977  ia64*)
5978    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5980    ;;
5981  hppa*64*)
5982    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]'
5983    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5984    ;;
5985  *)
5986    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5987    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5988    ;;
5989  esac
5990  ;;
5991
5992interix[3-9]*)
5993  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5995  ;;
5996
5997irix5* | irix6* | nonstopux*)
5998  case $LD in
5999  *-32|*"-32 ") libmagic=32-bit;;
6000  *-n32|*"-n32 ") libmagic=N32;;
6001  *-64|*"-64 ") libmagic=64-bit;;
6002  *) libmagic=never-match;;
6003  esac
6004  lt_cv_deplibs_check_method=pass_all
6005  ;;
6006
6007# This must be Linux ELF.
6008linux* | k*bsd*-gnu)
6009  lt_cv_deplibs_check_method=pass_all
6010  ;;
6011
6012netbsd*)
6013  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6015  else
6016    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017  fi
6018  ;;
6019
6020newos6*)
6021  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022  lt_cv_file_magic_cmd=/usr/bin/file
6023  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6024  ;;
6025
6026*nto* | *qnx*)
6027  lt_cv_deplibs_check_method=pass_all
6028  ;;
6029
6030openbsd*)
6031  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6033  else
6034    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6035  fi
6036  ;;
6037
6038osf3* | osf4* | osf5*)
6039  lt_cv_deplibs_check_method=pass_all
6040  ;;
6041
6042rdos*)
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045
6046solaris*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054sysv4 | sysv4.3*)
6055  case $host_vendor in
6056  motorola)
6057    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]'
6058    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6059    ;;
6060  ncr)
6061    lt_cv_deplibs_check_method=pass_all
6062    ;;
6063  sequent)
6064    lt_cv_file_magic_cmd='/bin/file'
6065    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6066    ;;
6067  sni)
6068    lt_cv_file_magic_cmd='/bin/file'
6069    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6070    lt_cv_file_magic_test_file=/lib/libc.so
6071    ;;
6072  siemens)
6073    lt_cv_deplibs_check_method=pass_all
6074    ;;
6075  pc)
6076    lt_cv_deplibs_check_method=pass_all
6077    ;;
6078  esac
6079  ;;
6080
6081tpf*)
6082  lt_cv_deplibs_check_method=pass_all
6083  ;;
6084esac
6085
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6088$as_echo "$lt_cv_deplibs_check_method" >&6; }
6089file_magic_cmd=$lt_cv_file_magic_cmd
6090deplibs_check_method=$lt_cv_deplibs_check_method
6091test -z "$deplibs_check_method" && deplibs_check_method=unknown
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104if test -n "$ac_tool_prefix"; then
6105  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6106set dummy ${ac_tool_prefix}ar; ac_word=$2
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108$as_echo_n "checking for $ac_word... " >&6; }
6109if test "${ac_cv_prog_AR+set}" = set; then :
6110  $as_echo_n "(cached) " >&6
6111else
6112  if test -n "$AR"; then
6113  ac_cv_prog_AR="$AR" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120    for ac_exec_ext in '' $ac_executable_extensions; do
6121  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122    ac_cv_prog_AR="${ac_tool_prefix}ar"
6123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127  done
6128IFS=$as_save_IFS
6129
6130fi
6131fi
6132AR=$ac_cv_prog_AR
6133if test -n "$AR"; then
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135$as_echo "$AR" >&6; }
6136else
6137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138$as_echo "no" >&6; }
6139fi
6140
6141
6142fi
6143if test -z "$ac_cv_prog_AR"; then
6144  ac_ct_AR=$AR
6145  # Extract the first word of "ar", so it can be a program name with args.
6146set dummy ar; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  if test -n "$ac_ct_AR"; then
6153  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158  IFS=$as_save_IFS
6159  test -z "$as_dir" && as_dir=.
6160    for ac_exec_ext in '' $ac_executable_extensions; do
6161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162    ac_cv_prog_ac_ct_AR="ar"
6163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167  done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172ac_ct_AR=$ac_cv_prog_ac_ct_AR
6173if test -n "$ac_ct_AR"; then
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6175$as_echo "$ac_ct_AR" >&6; }
6176else
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
6179fi
6180
6181  if test "x$ac_ct_AR" = x; then
6182    AR="false"
6183  else
6184    case $cross_compiling:$ac_tool_warned in
6185yes:)
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188ac_tool_warned=yes ;;
6189esac
6190    AR=$ac_ct_AR
6191  fi
6192else
6193  AR="$ac_cv_prog_AR"
6194fi
6195
6196test -z "$AR" && AR=ar
6197test -z "$AR_FLAGS" && AR_FLAGS=cru
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209if test -n "$ac_tool_prefix"; then
6210  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6211set dummy ${ac_tool_prefix}strip; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if test "${ac_cv_prog_STRIP+set}" = set; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  if test -n "$STRIP"; then
6218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223  IFS=$as_save_IFS
6224  test -z "$as_dir" && as_dir=.
6225    for ac_exec_ext in '' $ac_executable_extensions; do
6226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229    break 2
6230  fi
6231done
6232  done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237STRIP=$ac_cv_prog_STRIP
6238if test -n "$STRIP"; then
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6240$as_echo "$STRIP" >&6; }
6241else
6242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246
6247fi
6248if test -z "$ac_cv_prog_STRIP"; then
6249  ac_ct_STRIP=$STRIP
6250  # Extract the first word of "strip", so it can be a program name with args.
6251set dummy strip; ac_word=$2
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253$as_echo_n "checking for $ac_word... " >&6; }
6254if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  if test -n "$ac_ct_STRIP"; then
6258  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6259else
6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263  IFS=$as_save_IFS
6264  test -z "$as_dir" && as_dir=.
6265    for ac_exec_ext in '' $ac_executable_extensions; do
6266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267    ac_cv_prog_ac_ct_STRIP="strip"
6268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269    break 2
6270  fi
6271done
6272  done
6273IFS=$as_save_IFS
6274
6275fi
6276fi
6277ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6278if test -n "$ac_ct_STRIP"; then
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6280$as_echo "$ac_ct_STRIP" >&6; }
6281else
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283$as_echo "no" >&6; }
6284fi
6285
6286  if test "x$ac_ct_STRIP" = x; then
6287    STRIP=":"
6288  else
6289    case $cross_compiling:$ac_tool_warned in
6290yes:)
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293ac_tool_warned=yes ;;
6294esac
6295    STRIP=$ac_ct_STRIP
6296  fi
6297else
6298  STRIP="$ac_cv_prog_STRIP"
6299fi
6300
6301test -z "$STRIP" && STRIP=:
6302
6303
6304
6305
6306
6307
6308if test -n "$ac_tool_prefix"; then
6309  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6310set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312$as_echo_n "checking for $ac_word... " >&6; }
6313if test "${ac_cv_prog_RANLIB+set}" = set; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  if test -n "$RANLIB"; then
6317  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322  IFS=$as_save_IFS
6323  test -z "$as_dir" && as_dir=.
6324    for ac_exec_ext in '' $ac_executable_extensions; do
6325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328    break 2
6329  fi
6330done
6331  done
6332IFS=$as_save_IFS
6333
6334fi
6335fi
6336RANLIB=$ac_cv_prog_RANLIB
6337if test -n "$RANLIB"; then
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6339$as_echo "$RANLIB" >&6; }
6340else
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342$as_echo "no" >&6; }
6343fi
6344
6345
6346fi
6347if test -z "$ac_cv_prog_RANLIB"; then
6348  ac_ct_RANLIB=$RANLIB
6349  # Extract the first word of "ranlib", so it can be a program name with args.
6350set dummy ranlib; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6354  $as_echo_n "(cached) " >&6
6355else
6356  if test -n "$ac_ct_RANLIB"; then
6357  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366    ac_cv_prog_ac_ct_RANLIB="ranlib"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6377if test -n "$ac_ct_RANLIB"; then
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6379$as_echo "$ac_ct_RANLIB" >&6; }
6380else
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385  if test "x$ac_ct_RANLIB" = x; then
6386    RANLIB=":"
6387  else
6388    case $cross_compiling:$ac_tool_warned in
6389yes:)
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392ac_tool_warned=yes ;;
6393esac
6394    RANLIB=$ac_ct_RANLIB
6395  fi
6396else
6397  RANLIB="$ac_cv_prog_RANLIB"
6398fi
6399
6400test -z "$RANLIB" && RANLIB=:
6401
6402
6403
6404
6405
6406
6407# Determine commands to create old-style static archives.
6408old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6409old_postinstall_cmds='chmod 644 $oldlib'
6410old_postuninstall_cmds=
6411
6412if test -n "$RANLIB"; then
6413  case $host_os in
6414  openbsd*)
6415    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6416    ;;
6417  *)
6418    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6419    ;;
6420  esac
6421  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6422fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457# If no C compiler was specified, use CC.
6458LTCC=${LTCC-"$CC"}
6459
6460# If no C compiler flags were specified, use CFLAGS.
6461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6462
6463# Allow CC to be a program name with arguments.
6464compiler=$CC
6465
6466
6467# Check for command to grab the raw symbol name followed by C symbol from nm.
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6469$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6470if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473
6474# These are sane defaults that work on at least a few old systems.
6475# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6476
6477# Character class describing NM global symbol codes.
6478symcode='[BCDEGRST]'
6479
6480# Regexp to match symbols that can be accessed directly from C.
6481sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6482
6483# Define system-specific variables.
6484case $host_os in
6485aix*)
6486  symcode='[BCDT]'
6487  ;;
6488cygwin* | mingw* | pw32* | cegcc*)
6489  symcode='[ABCDGISTW]'
6490  ;;
6491hpux*)
6492  if test "$host_cpu" = ia64; then
6493    symcode='[ABCDEGRST]'
6494  fi
6495  ;;
6496irix* | nonstopux*)
6497  symcode='[BCDEGRST]'
6498  ;;
6499osf*)
6500  symcode='[BCDEGQRST]'
6501  ;;
6502solaris*)
6503  symcode='[BDRT]'
6504  ;;
6505sco3.2v5*)
6506  symcode='[DT]'
6507  ;;
6508sysv4.2uw2*)
6509  symcode='[DT]'
6510  ;;
6511sysv5* | sco5v6* | unixware* | OpenUNIX*)
6512  symcode='[ABDT]'
6513  ;;
6514sysv4)
6515  symcode='[DFNSTU]'
6516  ;;
6517esac
6518
6519# If we're using GNU nm, then use its standard symbol codes.
6520case `$NM -V 2>&1` in
6521*GNU* | *'with BFD'*)
6522  symcode='[ABCDGIRSTW]' ;;
6523esac
6524
6525# Transform an extracted symbol line into a proper C declaration.
6526# Some systems (esp. on ia64) link data and code symbols differently,
6527# so use this general approach.
6528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6529
6530# Transform an extracted symbol line into symbol name and symbol address
6531lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6532lt_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'"
6533
6534# Handle CRLF in mingw tool chain
6535opt_cr=
6536case $build_os in
6537mingw*)
6538  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6539  ;;
6540esac
6541
6542# Try without a prefix underscore, then with it.
6543for ac_symprfx in "" "_"; do
6544
6545  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6546  symxfrm="\\1 $ac_symprfx\\2 \\2"
6547
6548  # Write the raw and C identifiers.
6549  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6550    # Fake it for dumpbin and say T for any non-static function
6551    # and D for any global variable.
6552    # Also find C++ and __fastcall symbols from MSVC++,
6553    # which start with @ or ?.
6554    lt_cv_sys_global_symbol_pipe="$AWK '"\
6555"     {last_section=section; section=\$ 3};"\
6556"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6557"     \$ 0!~/External *\|/{next};"\
6558"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6559"     {if(hide[section]) next};"\
6560"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6561"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6562"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6563"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6564"     ' prfx=^$ac_symprfx"
6565  else
6566    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567  fi
6568
6569  # Check to see that the pipe works correctly.
6570  pipe_works=no
6571
6572  rm -f conftest*
6573  cat > conftest.$ac_ext <<_LT_EOF
6574#ifdef __cplusplus
6575extern "C" {
6576#endif
6577char nm_test_var;
6578void nm_test_func(void);
6579void nm_test_func(void){}
6580#ifdef __cplusplus
6581}
6582#endif
6583int main(){nm_test_var='a';nm_test_func();return(0);}
6584_LT_EOF
6585
6586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587  (eval $ac_compile) 2>&5
6588  ac_status=$?
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; }; then
6591    # Now try to grab the symbols.
6592    nlist=conftest.nm
6593    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6594  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595  ac_status=$?
6596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597  test $ac_status = 0; } && test -s "$nlist"; then
6598      # Try sorting and uniquifying the output.
6599      if sort "$nlist" | uniq > "$nlist"T; then
6600	mv -f "$nlist"T "$nlist"
6601      else
6602	rm -f "$nlist"T
6603      fi
6604
6605      # Make sure that we snagged all the symbols we need.
6606      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608	  cat <<_LT_EOF > conftest.$ac_ext
6609#ifdef __cplusplus
6610extern "C" {
6611#endif
6612
6613_LT_EOF
6614	  # Now generate the symbol file.
6615	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6616
6617	  cat <<_LT_EOF >> conftest.$ac_ext
6618
6619/* The mapping between symbol names and symbols.  */
6620const struct {
6621  const char *name;
6622  void       *address;
6623}
6624lt__PROGRAM__LTX_preloaded_symbols[] =
6625{
6626  { "@PROGRAM@", (void *) 0 },
6627_LT_EOF
6628	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6629	  cat <<\_LT_EOF >> conftest.$ac_ext
6630  {0, (void *) 0}
6631};
6632
6633/* This works around a problem in FreeBSD linker */
6634#ifdef FREEBSD_WORKAROUND
6635static const void *lt_preloaded_setup() {
6636  return lt__PROGRAM__LTX_preloaded_symbols;
6637}
6638#endif
6639
6640#ifdef __cplusplus
6641}
6642#endif
6643_LT_EOF
6644	  # Now try linking the two files.
6645	  mv conftest.$ac_objext conftstm.$ac_objext
6646	  lt_save_LIBS="$LIBS"
6647	  lt_save_CFLAGS="$CFLAGS"
6648	  LIBS="conftstm.$ac_objext"
6649	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6650	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6651  (eval $ac_link) 2>&5
6652  ac_status=$?
6653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6655	    pipe_works=yes
6656	  fi
6657	  LIBS="$lt_save_LIBS"
6658	  CFLAGS="$lt_save_CFLAGS"
6659	else
6660	  echo "cannot find nm_test_func in $nlist" >&5
6661	fi
6662      else
6663	echo "cannot find nm_test_var in $nlist" >&5
6664      fi
6665    else
6666      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667    fi
6668  else
6669    echo "$progname: failed program was:" >&5
6670    cat conftest.$ac_ext >&5
6671  fi
6672  rm -rf conftest* conftst*
6673
6674  # Do not use the global_symbol_pipe unless it works.
6675  if test "$pipe_works" = yes; then
6676    break
6677  else
6678    lt_cv_sys_global_symbol_pipe=
6679  fi
6680done
6681
6682fi
6683
6684if test -z "$lt_cv_sys_global_symbol_pipe"; then
6685  lt_cv_sys_global_symbol_to_cdecl=
6686fi
6687if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6689$as_echo "failed" >&6; }
6690else
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6692$as_echo "ok" >&6; }
6693fi
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716# Check whether --enable-libtool-lock was given.
6717if test "${enable_libtool_lock+set}" = set; then :
6718  enableval=$enable_libtool_lock;
6719fi
6720
6721test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6722
6723# Some flags need to be propagated to the compiler or linker for good
6724# libtool support.
6725case $host in
6726ia64-*-hpux*)
6727  # Find out which ABI we are using.
6728  echo 'int i;' > conftest.$ac_ext
6729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730  (eval $ac_compile) 2>&5
6731  ac_status=$?
6732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733  test $ac_status = 0; }; then
6734    case `/usr/bin/file conftest.$ac_objext` in
6735      *ELF-32*)
6736	HPUX_IA64_MODE="32"
6737	;;
6738      *ELF-64*)
6739	HPUX_IA64_MODE="64"
6740	;;
6741    esac
6742  fi
6743  rm -rf conftest*
6744  ;;
6745*-*-irix6*)
6746  # Find out which ABI we are using.
6747  echo '#line 6747 "configure"' > conftest.$ac_ext
6748  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6749  (eval $ac_compile) 2>&5
6750  ac_status=$?
6751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752  test $ac_status = 0; }; then
6753    if test "$lt_cv_prog_gnu_ld" = yes; then
6754      case `/usr/bin/file conftest.$ac_objext` in
6755	*32-bit*)
6756	  LD="${LD-ld} -melf32bsmip"
6757	  ;;
6758	*N32*)
6759	  LD="${LD-ld} -melf32bmipn32"
6760	  ;;
6761	*64-bit*)
6762	  LD="${LD-ld} -melf64bmip"
6763	;;
6764      esac
6765    else
6766      case `/usr/bin/file conftest.$ac_objext` in
6767	*32-bit*)
6768	  LD="${LD-ld} -32"
6769	  ;;
6770	*N32*)
6771	  LD="${LD-ld} -n32"
6772	  ;;
6773	*64-bit*)
6774	  LD="${LD-ld} -64"
6775	  ;;
6776      esac
6777    fi
6778  fi
6779  rm -rf conftest*
6780  ;;
6781
6782x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6783s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6784  # Find out which ABI we are using.
6785  echo 'int i;' > conftest.$ac_ext
6786  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787  (eval $ac_compile) 2>&5
6788  ac_status=$?
6789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790  test $ac_status = 0; }; then
6791    case `/usr/bin/file conftest.o` in
6792      *32-bit*)
6793	case $host in
6794	  x86_64-*kfreebsd*-gnu)
6795	    LD="${LD-ld} -m elf_i386_fbsd"
6796	    ;;
6797	  x86_64-*linux*)
6798	    LD="${LD-ld} -m elf_i386"
6799	    ;;
6800	  ppc64-*linux*|powerpc64-*linux*)
6801	    LD="${LD-ld} -m elf32ppclinux"
6802	    ;;
6803	  s390x-*linux*)
6804	    LD="${LD-ld} -m elf_s390"
6805	    ;;
6806	  sparc64-*linux*)
6807	    LD="${LD-ld} -m elf32_sparc"
6808	    ;;
6809	esac
6810	;;
6811      *64-bit*)
6812	case $host in
6813	  x86_64-*kfreebsd*-gnu)
6814	    LD="${LD-ld} -m elf_x86_64_fbsd"
6815	    ;;
6816	  x86_64-*linux*)
6817	    LD="${LD-ld} -m elf_x86_64"
6818	    ;;
6819	  ppc*-*linux*|powerpc*-*linux*)
6820	    LD="${LD-ld} -m elf64ppc"
6821	    ;;
6822	  s390*-*linux*|s390*-*tpf*)
6823	    LD="${LD-ld} -m elf64_s390"
6824	    ;;
6825	  sparc*-*linux*)
6826	    LD="${LD-ld} -m elf64_sparc"
6827	    ;;
6828	esac
6829	;;
6830    esac
6831  fi
6832  rm -rf conftest*
6833  ;;
6834
6835*-*-sco3.2v5*)
6836  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837  SAVE_CFLAGS="$CFLAGS"
6838  CFLAGS="$CFLAGS -belf"
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6840$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6841if test "${lt_cv_cc_needs_belf+set}" = set; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  ac_ext=c
6845ac_cpp='$CPP $CPPFLAGS'
6846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852
6853int
6854main ()
6855{
6856
6857  ;
6858  return 0;
6859}
6860_ACEOF
6861if ac_fn_c_try_link "$LINENO"; then :
6862  lt_cv_cc_needs_belf=yes
6863else
6864  lt_cv_cc_needs_belf=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext \
6867    conftest$ac_exeext conftest.$ac_ext
6868     ac_ext=c
6869ac_cpp='$CPP $CPPFLAGS'
6870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6872ac_compiler_gnu=$ac_cv_c_compiler_gnu
6873
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6876$as_echo "$lt_cv_cc_needs_belf" >&6; }
6877  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6878    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6879    CFLAGS="$SAVE_CFLAGS"
6880  fi
6881  ;;
6882sparc*-*solaris*)
6883  # Find out which ABI we are using.
6884  echo 'int i;' > conftest.$ac_ext
6885  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886  (eval $ac_compile) 2>&5
6887  ac_status=$?
6888  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889  test $ac_status = 0; }; then
6890    case `/usr/bin/file conftest.o` in
6891    *64-bit*)
6892      case $lt_cv_prog_gnu_ld in
6893      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6894      *)
6895	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6896	  LD="${LD-ld} -64"
6897	fi
6898	;;
6899      esac
6900      ;;
6901    esac
6902  fi
6903  rm -rf conftest*
6904  ;;
6905esac
6906
6907need_locks="$enable_libtool_lock"
6908
6909
6910  case $host_os in
6911    rhapsody* | darwin*)
6912    if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  if test -n "$DSYMUTIL"; then
6921  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926  IFS=$as_save_IFS
6927  test -z "$as_dir" && as_dir=.
6928    for ac_exec_ext in '' $ac_executable_extensions; do
6929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932    break 2
6933  fi
6934done
6935  done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940DSYMUTIL=$ac_cv_prog_DSYMUTIL
6941if test -n "$DSYMUTIL"; then
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6943$as_echo "$DSYMUTIL" >&6; }
6944else
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_DSYMUTIL"; then
6952  ac_ct_DSYMUTIL=$DSYMUTIL
6953  # Extract the first word of "dsymutil", so it can be a program name with args.
6954set dummy dsymutil; ac_word=$2
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956$as_echo_n "checking for $ac_word... " >&6; }
6957if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6958  $as_echo_n "(cached) " >&6
6959else
6960  if test -n "$ac_ct_DSYMUTIL"; then
6961  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6962else
6963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966  IFS=$as_save_IFS
6967  test -z "$as_dir" && as_dir=.
6968    for ac_exec_ext in '' $ac_executable_extensions; do
6969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972    break 2
6973  fi
6974done
6975  done
6976IFS=$as_save_IFS
6977
6978fi
6979fi
6980ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6981if test -n "$ac_ct_DSYMUTIL"; then
6982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6983$as_echo "$ac_ct_DSYMUTIL" >&6; }
6984else
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986$as_echo "no" >&6; }
6987fi
6988
6989  if test "x$ac_ct_DSYMUTIL" = x; then
6990    DSYMUTIL=":"
6991  else
6992    case $cross_compiling:$ac_tool_warned in
6993yes:)
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996ac_tool_warned=yes ;;
6997esac
6998    DSYMUTIL=$ac_ct_DSYMUTIL
6999  fi
7000else
7001  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7002fi
7003
7004    if test -n "$ac_tool_prefix"; then
7005  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7006set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
7009if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  if test -n "$NMEDIT"; then
7013  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018  IFS=$as_save_IFS
7019  test -z "$as_dir" && as_dir=.
7020    for ac_exec_ext in '' $ac_executable_extensions; do
7021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024    break 2
7025  fi
7026done
7027  done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032NMEDIT=$ac_cv_prog_NMEDIT
7033if test -n "$NMEDIT"; then
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7035$as_echo "$NMEDIT" >&6; }
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041
7042fi
7043if test -z "$ac_cv_prog_NMEDIT"; then
7044  ac_ct_NMEDIT=$NMEDIT
7045  # Extract the first word of "nmedit", so it can be a program name with args.
7046set dummy nmedit; ac_word=$2
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048$as_echo_n "checking for $ac_word... " >&6; }
7049if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  if test -n "$ac_ct_NMEDIT"; then
7053  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060    for ac_exec_ext in '' $ac_executable_extensions; do
7061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067  done
7068IFS=$as_save_IFS
7069
7070fi
7071fi
7072ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7073if test -n "$ac_ct_NMEDIT"; then
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7075$as_echo "$ac_ct_NMEDIT" >&6; }
7076else
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081  if test "x$ac_ct_NMEDIT" = x; then
7082    NMEDIT=":"
7083  else
7084    case $cross_compiling:$ac_tool_warned in
7085yes:)
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088ac_tool_warned=yes ;;
7089esac
7090    NMEDIT=$ac_ct_NMEDIT
7091  fi
7092else
7093  NMEDIT="$ac_cv_prog_NMEDIT"
7094fi
7095
7096    if test -n "$ac_tool_prefix"; then
7097  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}lipo; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_LIPO+set}" = set; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$LIPO"; then
7105  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119  done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124LIPO=$ac_cv_prog_LIPO
7125if test -n "$LIPO"; then
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7127$as_echo "$LIPO" >&6; }
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133
7134fi
7135if test -z "$ac_cv_prog_LIPO"; then
7136  ac_ct_LIPO=$LIPO
7137  # Extract the first word of "lipo", so it can be a program name with args.
7138set dummy lipo; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  if test -n "$ac_ct_LIPO"; then
7145  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  test -z "$as_dir" && as_dir=.
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154    ac_cv_prog_ac_ct_LIPO="lipo"
7155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7165if test -n "$ac_ct_LIPO"; then
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7167$as_echo "$ac_ct_LIPO" >&6; }
7168else
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173  if test "x$ac_ct_LIPO" = x; then
7174    LIPO=":"
7175  else
7176    case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182    LIPO=$ac_ct_LIPO
7183  fi
7184else
7185  LIPO="$ac_cv_prog_LIPO"
7186fi
7187
7188    if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}otool; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if test "${ac_cv_prog_OTOOL+set}" = set; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$OTOOL"; then
7197  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216OTOOL=$ac_cv_prog_OTOOL
7217if test -n "$OTOOL"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7219$as_echo "$OTOOL" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_OTOOL"; then
7228  ac_ct_OTOOL=$OTOOL
7229  # Extract the first word of "otool", so it can be a program name with args.
7230set dummy otool; ac_word=$2
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232$as_echo_n "checking for $ac_word... " >&6; }
7233if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  if test -n "$ac_ct_OTOOL"; then
7237  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244    for ac_exec_ext in '' $ac_executable_extensions; do
7245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246    ac_cv_prog_ac_ct_OTOOL="otool"
7247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251  done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7257if test -n "$ac_ct_OTOOL"; then
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7259$as_echo "$ac_ct_OTOOL" >&6; }
7260else
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262$as_echo "no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_OTOOL" = x; then
7266    OTOOL=":"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272ac_tool_warned=yes ;;
7273esac
7274    OTOOL=$ac_ct_OTOOL
7275  fi
7276else
7277  OTOOL="$ac_cv_prog_OTOOL"
7278fi
7279
7280    if test -n "$ac_tool_prefix"; then
7281  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7282set dummy ${ac_tool_prefix}otool64; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  if test -n "$OTOOL64"; then
7289  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296    for ac_exec_ext in '' $ac_executable_extensions; do
7297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303  done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308OTOOL64=$ac_cv_prog_OTOOL64
7309if test -n "$OTOOL64"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7311$as_echo "$OTOOL64" >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318fi
7319if test -z "$ac_cv_prog_OTOOL64"; then
7320  ac_ct_OTOOL64=$OTOOL64
7321  # Extract the first word of "otool64", so it can be a program name with args.
7322set dummy otool64; ac_word=$2
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  if test -n "$ac_ct_OTOOL64"; then
7329  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336    for ac_exec_ext in '' $ac_executable_extensions; do
7337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338    ac_cv_prog_ac_ct_OTOOL64="otool64"
7339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343  done
7344IFS=$as_save_IFS
7345
7346fi
7347fi
7348ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7349if test -n "$ac_ct_OTOOL64"; then
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7351$as_echo "$ac_ct_OTOOL64" >&6; }
7352else
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354$as_echo "no" >&6; }
7355fi
7356
7357  if test "x$ac_ct_OTOOL64" = x; then
7358    OTOOL64=":"
7359  else
7360    case $cross_compiling:$ac_tool_warned in
7361yes:)
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364ac_tool_warned=yes ;;
7365esac
7366    OTOOL64=$ac_ct_OTOOL64
7367  fi
7368else
7369  OTOOL64="$ac_cv_prog_OTOOL64"
7370fi
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7399$as_echo_n "checking for -single_module linker flag... " >&6; }
7400if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  lt_cv_apple_cc_single_mod=no
7404      if test -z "${LT_MULTI_MODULE}"; then
7405	# By default we will add the -single_module flag. You can override
7406	# by either setting the environment variable LT_MULTI_MODULE
7407	# non-empty at configure time, or by adding -multi_module to the
7408	# link flags.
7409	rm -rf libconftest.dylib*
7410	echo "int foo(void){return 1;}" > conftest.c
7411	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7412-dynamiclib -Wl,-single_module conftest.c" >&5
7413	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7414	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7415        _lt_result=$?
7416	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7417	  lt_cv_apple_cc_single_mod=yes
7418	else
7419	  cat conftest.err >&5
7420	fi
7421	rm -rf libconftest.dylib*
7422	rm -f conftest.*
7423      fi
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7426$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7428$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7429if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  lt_cv_ld_exported_symbols_list=no
7433      save_LDFLAGS=$LDFLAGS
7434      echo "_main" > conftest.sym
7435      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438
7439int
7440main ()
7441{
7442
7443  ;
7444  return 0;
7445}
7446_ACEOF
7447if ac_fn_c_try_link "$LINENO"; then :
7448  lt_cv_ld_exported_symbols_list=yes
7449else
7450  lt_cv_ld_exported_symbols_list=no
7451fi
7452rm -f core conftest.err conftest.$ac_objext \
7453    conftest$ac_exeext conftest.$ac_ext
7454	LDFLAGS="$save_LDFLAGS"
7455
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7458$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7459    case $host_os in
7460    rhapsody* | darwin1.[012])
7461      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7462    darwin1.*)
7463      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7464    darwin*) # darwin 5.x on
7465      # if running on 10.5 or later, the deployment target defaults
7466      # to the OS version, if on x86, and 10.4, the deployment
7467      # target defaults to 10.4. Don't you love it?
7468      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7469	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7470	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7471	10.[012]*)
7472	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7473	10.*)
7474	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7475      esac
7476    ;;
7477  esac
7478    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7479      _lt_dar_single_mod='$single_module'
7480    fi
7481    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7482      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7483    else
7484      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7485    fi
7486    if test "$DSYMUTIL" != ":"; then
7487      _lt_dsymutil='~$DSYMUTIL $lib || :'
7488    else
7489      _lt_dsymutil=
7490    fi
7491    ;;
7492  esac
7493
7494# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7495for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7496		  inttypes.h stdint.h unistd.h
7497do :
7498  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7500"
7501eval as_val=\$$as_ac_Header
7502   if test "x$as_val" = x""yes; then :
7503  cat >>confdefs.h <<_ACEOF
7504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7505_ACEOF
7506
7507fi
7508
7509done
7510
7511
7512for ac_header in dlfcn.h
7513do :
7514  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7515"
7516if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7517  cat >>confdefs.h <<_ACEOF
7518#define HAVE_DLFCN_H 1
7519_ACEOF
7520
7521fi
7522
7523done
7524
7525
7526
7527# Set options
7528
7529
7530
7531        enable_dlopen=no
7532
7533
7534  enable_win32_dll=no
7535
7536
7537            # Check whether --enable-shared was given.
7538if test "${enable_shared+set}" = set; then :
7539  enableval=$enable_shared; p=${PACKAGE-default}
7540    case $enableval in
7541    yes) enable_shared=yes ;;
7542    no) enable_shared=no ;;
7543    *)
7544      enable_shared=no
7545      # Look at the argument we got.  We use all the common list separators.
7546      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7547      for pkg in $enableval; do
7548	IFS="$lt_save_ifs"
7549	if test "X$pkg" = "X$p"; then
7550	  enable_shared=yes
7551	fi
7552      done
7553      IFS="$lt_save_ifs"
7554      ;;
7555    esac
7556else
7557  enable_shared=yes
7558fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568  # Check whether --enable-static was given.
7569if test "${enable_static+set}" = set; then :
7570  enableval=$enable_static; p=${PACKAGE-default}
7571    case $enableval in
7572    yes) enable_static=yes ;;
7573    no) enable_static=no ;;
7574    *)
7575     enable_static=no
7576      # Look at the argument we got.  We use all the common list separators.
7577      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7578      for pkg in $enableval; do
7579	IFS="$lt_save_ifs"
7580	if test "X$pkg" = "X$p"; then
7581	  enable_static=yes
7582	fi
7583      done
7584      IFS="$lt_save_ifs"
7585      ;;
7586    esac
7587else
7588  enable_static=yes
7589fi
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600# Check whether --with-pic was given.
7601if test "${with_pic+set}" = set; then :
7602  withval=$with_pic; pic_mode="$withval"
7603else
7604  pic_mode=default
7605fi
7606
7607
7608test -z "$pic_mode" && pic_mode=default
7609
7610
7611
7612
7613
7614
7615
7616  # Check whether --enable-fast-install was given.
7617if test "${enable_fast_install+set}" = set; then :
7618  enableval=$enable_fast_install; p=${PACKAGE-default}
7619    case $enableval in
7620    yes) enable_fast_install=yes ;;
7621    no) enable_fast_install=no ;;
7622    *)
7623      enable_fast_install=no
7624      # Look at the argument we got.  We use all the common list separators.
7625      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626      for pkg in $enableval; do
7627	IFS="$lt_save_ifs"
7628	if test "X$pkg" = "X$p"; then
7629	  enable_fast_install=yes
7630	fi
7631      done
7632      IFS="$lt_save_ifs"
7633      ;;
7634    esac
7635else
7636  enable_fast_install=yes
7637fi
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649# This can be used to rebuild libtool when needed
7650LIBTOOL_DEPS="$ltmain"
7651
7652# Always use our own libtool.
7653LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679test -z "$LN_S" && LN_S="ln -s"
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694if test -n "${ZSH_VERSION+set}" ; then
7695   setopt NO_GLOB_SUBST
7696fi
7697
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7699$as_echo_n "checking for objdir... " >&6; }
7700if test "${lt_cv_objdir+set}" = set; then :
7701  $as_echo_n "(cached) " >&6
7702else
7703  rm -f .libs 2>/dev/null
7704mkdir .libs 2>/dev/null
7705if test -d .libs; then
7706  lt_cv_objdir=.libs
7707else
7708  # MS-DOS does not allow filenames that begin with a dot.
7709  lt_cv_objdir=_libs
7710fi
7711rmdir .libs 2>/dev/null
7712fi
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7714$as_echo "$lt_cv_objdir" >&6; }
7715objdir=$lt_cv_objdir
7716
7717
7718
7719
7720
7721cat >>confdefs.h <<_ACEOF
7722#define LT_OBJDIR "$lt_cv_objdir/"
7723_ACEOF
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741case $host_os in
7742aix3*)
7743  # AIX sometimes has problems with the GCC collect2 program.  For some
7744  # reason, if we set the COLLECT_NAMES environment variable, the problems
7745  # vanish in a puff of smoke.
7746  if test "X${COLLECT_NAMES+set}" != Xset; then
7747    COLLECT_NAMES=
7748    export COLLECT_NAMES
7749  fi
7750  ;;
7751esac
7752
7753# Sed substitution that helps us do robust quoting.  It backslashifies
7754# metacharacters that are still active within double-quoted strings.
7755sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7756
7757# Same as above, but do not quote variable references.
7758double_quote_subst='s/\(["`\\]\)/\\\1/g'
7759
7760# Sed substitution to delay expansion of an escaped shell variable in a
7761# double_quote_subst'ed string.
7762delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7763
7764# Sed substitution to delay expansion of an escaped single quote.
7765delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7766
7767# Sed substitution to avoid accidental globbing in evaled expressions
7768no_glob_subst='s/\*/\\\*/g'
7769
7770# Global variables:
7771ofile=libtool
7772can_build_shared=yes
7773
7774# All known linkers require a `.a' archive for static linking (except MSVC,
7775# which needs '.lib').
7776libext=a
7777
7778with_gnu_ld="$lt_cv_prog_gnu_ld"
7779
7780old_CC="$CC"
7781old_CFLAGS="$CFLAGS"
7782
7783# Set sane defaults for various variables
7784test -z "$CC" && CC=cc
7785test -z "$LTCC" && LTCC=$CC
7786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7787test -z "$LD" && LD=ld
7788test -z "$ac_objext" && ac_objext=o
7789
7790for cc_temp in $compiler""; do
7791  case $cc_temp in
7792    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7793    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7794    \-*) ;;
7795    *) break;;
7796  esac
7797done
7798cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7799
7800
7801# Only perform the check for file, if the check method requires it
7802test -z "$MAGIC_CMD" && MAGIC_CMD=file
7803case $deplibs_check_method in
7804file_magic*)
7805  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7806    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7807$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7808if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7809  $as_echo_n "(cached) " >&6
7810else
7811  case $MAGIC_CMD in
7812[\\/*] |  ?:[\\/]*)
7813  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7814  ;;
7815*)
7816  lt_save_MAGIC_CMD="$MAGIC_CMD"
7817  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7818  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7819  for ac_dir in $ac_dummy; do
7820    IFS="$lt_save_ifs"
7821    test -z "$ac_dir" && ac_dir=.
7822    if test -f $ac_dir/${ac_tool_prefix}file; then
7823      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7824      if test -n "$file_magic_test_file"; then
7825	case $deplibs_check_method in
7826	"file_magic "*)
7827	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7828	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7829	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7830	    $EGREP "$file_magic_regex" > /dev/null; then
7831	    :
7832	  else
7833	    cat <<_LT_EOF 1>&2
7834
7835*** Warning: the command libtool uses to detect shared libraries,
7836*** $file_magic_cmd, produces output that libtool cannot recognize.
7837*** The result is that libtool may fail to recognize shared libraries
7838*** as such.  This will affect the creation of libtool libraries that
7839*** depend on shared libraries, but programs linked with such libtool
7840*** libraries will work regardless of this problem.  Nevertheless, you
7841*** may want to report the problem to your system manager and/or to
7842*** bug-libtool@gnu.org
7843
7844_LT_EOF
7845	  fi ;;
7846	esac
7847      fi
7848      break
7849    fi
7850  done
7851  IFS="$lt_save_ifs"
7852  MAGIC_CMD="$lt_save_MAGIC_CMD"
7853  ;;
7854esac
7855fi
7856
7857MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7858if test -n "$MAGIC_CMD"; then
7859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7860$as_echo "$MAGIC_CMD" >&6; }
7861else
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863$as_echo "no" >&6; }
7864fi
7865
7866
7867
7868
7869
7870if test -z "$lt_cv_path_MAGIC_CMD"; then
7871  if test -n "$ac_tool_prefix"; then
7872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7873$as_echo_n "checking for file... " >&6; }
7874if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7875  $as_echo_n "(cached) " >&6
7876else
7877  case $MAGIC_CMD in
7878[\\/*] |  ?:[\\/]*)
7879  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7880  ;;
7881*)
7882  lt_save_MAGIC_CMD="$MAGIC_CMD"
7883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7884  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7885  for ac_dir in $ac_dummy; do
7886    IFS="$lt_save_ifs"
7887    test -z "$ac_dir" && ac_dir=.
7888    if test -f $ac_dir/file; then
7889      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7890      if test -n "$file_magic_test_file"; then
7891	case $deplibs_check_method in
7892	"file_magic "*)
7893	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7894	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7895	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7896	    $EGREP "$file_magic_regex" > /dev/null; then
7897	    :
7898	  else
7899	    cat <<_LT_EOF 1>&2
7900
7901*** Warning: the command libtool uses to detect shared libraries,
7902*** $file_magic_cmd, produces output that libtool cannot recognize.
7903*** The result is that libtool may fail to recognize shared libraries
7904*** as such.  This will affect the creation of libtool libraries that
7905*** depend on shared libraries, but programs linked with such libtool
7906*** libraries will work regardless of this problem.  Nevertheless, you
7907*** may want to report the problem to your system manager and/or to
7908*** bug-libtool@gnu.org
7909
7910_LT_EOF
7911	  fi ;;
7912	esac
7913      fi
7914      break
7915    fi
7916  done
7917  IFS="$lt_save_ifs"
7918  MAGIC_CMD="$lt_save_MAGIC_CMD"
7919  ;;
7920esac
7921fi
7922
7923MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7924if test -n "$MAGIC_CMD"; then
7925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7926$as_echo "$MAGIC_CMD" >&6; }
7927else
7928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
7931
7932
7933  else
7934    MAGIC_CMD=:
7935  fi
7936fi
7937
7938  fi
7939  ;;
7940esac
7941
7942# Use C for the default configuration in the libtool script
7943
7944lt_save_CC="$CC"
7945ac_ext=c
7946ac_cpp='$CPP $CPPFLAGS'
7947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7949ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950
7951
7952# Source file extension for C test sources.
7953ac_ext=c
7954
7955# Object file extension for compiled C test sources.
7956objext=o
7957objext=$objext
7958
7959# Code to be used in simple compile tests
7960lt_simple_compile_test_code="int some_variable = 0;"
7961
7962# Code to be used in simple link tests
7963lt_simple_link_test_code='int main(){return(0);}'
7964
7965
7966
7967
7968
7969
7970
7971# If no C compiler was specified, use CC.
7972LTCC=${LTCC-"$CC"}
7973
7974# If no C compiler flags were specified, use CFLAGS.
7975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7976
7977# Allow CC to be a program name with arguments.
7978compiler=$CC
7979
7980# Save the default compiler, since it gets overwritten when the other
7981# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7982compiler_DEFAULT=$CC
7983
7984# save warnings/boilerplate of simple test code
7985ac_outfile=conftest.$ac_objext
7986echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7987eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7988_lt_compiler_boilerplate=`cat conftest.err`
7989$RM conftest*
7990
7991ac_outfile=conftest.$ac_objext
7992echo "$lt_simple_link_test_code" >conftest.$ac_ext
7993eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7994_lt_linker_boilerplate=`cat conftest.err`
7995$RM -r conftest*
7996
7997
7998if test -n "$compiler"; then
7999
8000lt_prog_compiler_no_builtin_flag=
8001
8002if test "$GCC" = yes; then
8003  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8004
8005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8006$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8007if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8008  $as_echo_n "(cached) " >&6
8009else
8010  lt_cv_prog_compiler_rtti_exceptions=no
8011   ac_outfile=conftest.$ac_objext
8012   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8013   lt_compiler_flag="-fno-rtti -fno-exceptions"
8014   # Insert the option either (1) after the last *FLAGS variable, or
8015   # (2) before a word containing "conftest.", or (3) at the end.
8016   # Note that $ac_compile itself does not contain backslashes and begins
8017   # with a dollar sign (not a hyphen), so the echo should work correctly.
8018   # The option is referenced via a variable to avoid confusing sed.
8019   lt_compile=`echo "$ac_compile" | $SED \
8020   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8022   -e 's:$: $lt_compiler_flag:'`
8023   (eval echo "\"\$as_me:8023: $lt_compile\"" >&5)
8024   (eval "$lt_compile" 2>conftest.err)
8025   ac_status=$?
8026   cat conftest.err >&5
8027   echo "$as_me:8027: \$? = $ac_status" >&5
8028   if (exit $ac_status) && test -s "$ac_outfile"; then
8029     # The compiler can only warn and ignore the option if not recognized
8030     # So say no if there are warnings other than the usual output.
8031     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8032     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8033     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8034       lt_cv_prog_compiler_rtti_exceptions=yes
8035     fi
8036   fi
8037   $RM conftest*
8038
8039fi
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8041$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8042
8043if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8044    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8045else
8046    :
8047fi
8048
8049fi
8050
8051
8052
8053
8054
8055
8056  lt_prog_compiler_wl=
8057lt_prog_compiler_pic=
8058lt_prog_compiler_static=
8059
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8061$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8062
8063  if test "$GCC" = yes; then
8064    lt_prog_compiler_wl='-Wl,'
8065    lt_prog_compiler_static='-static'
8066
8067    case $host_os in
8068      aix*)
8069      # All AIX code is PIC.
8070      if test "$host_cpu" = ia64; then
8071	# AIX 5 now supports IA64 processor
8072	lt_prog_compiler_static='-Bstatic'
8073      fi
8074      ;;
8075
8076    amigaos*)
8077      case $host_cpu in
8078      powerpc)
8079            # see comment about AmigaOS4 .so support
8080            lt_prog_compiler_pic='-fPIC'
8081        ;;
8082      m68k)
8083            # FIXME: we need at least 68020 code to build shared libraries, but
8084            # adding the `-m68020' flag to GCC prevents building anything better,
8085            # like `-m68040'.
8086            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8087        ;;
8088      esac
8089      ;;
8090
8091    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8092      # PIC is the default for these OSes.
8093      ;;
8094
8095    mingw* | cygwin* | pw32* | os2* | cegcc*)
8096      # This hack is so that the source file can tell whether it is being
8097      # built for inclusion in a dll (and should export symbols for example).
8098      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8099      # (--disable-auto-import) libraries
8100      lt_prog_compiler_pic='-DDLL_EXPORT'
8101      ;;
8102
8103    darwin* | rhapsody*)
8104      # PIC is the default on this platform
8105      # Common symbols not allowed in MH_DYLIB files
8106      lt_prog_compiler_pic='-fno-common'
8107      ;;
8108
8109    hpux*)
8110      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8111      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8112      # sets the default TLS model and affects inlining.
8113      case $host_cpu in
8114      hppa*64*)
8115	# +Z the default
8116	;;
8117      *)
8118	lt_prog_compiler_pic='-fPIC'
8119	;;
8120      esac
8121      ;;
8122
8123    interix[3-9]*)
8124      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8125      # Instead, we relocate shared libraries at runtime.
8126      ;;
8127
8128    msdosdjgpp*)
8129      # Just because we use GCC doesn't mean we suddenly get shared libraries
8130      # on systems that don't support them.
8131      lt_prog_compiler_can_build_shared=no
8132      enable_shared=no
8133      ;;
8134
8135    *nto* | *qnx*)
8136      # QNX uses GNU C++, but need to define -shared option too, otherwise
8137      # it will coredump.
8138      lt_prog_compiler_pic='-fPIC -shared'
8139      ;;
8140
8141    sysv4*MP*)
8142      if test -d /usr/nec; then
8143	lt_prog_compiler_pic=-Kconform_pic
8144      fi
8145      ;;
8146
8147    *)
8148      lt_prog_compiler_pic='-fPIC'
8149      ;;
8150    esac
8151  else
8152    # PORTME Check for flag to pass linker flags through the system compiler.
8153    case $host_os in
8154    aix*)
8155      lt_prog_compiler_wl='-Wl,'
8156      if test "$host_cpu" = ia64; then
8157	# AIX 5 now supports IA64 processor
8158	lt_prog_compiler_static='-Bstatic'
8159      else
8160	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8161      fi
8162      ;;
8163
8164    mingw* | cygwin* | pw32* | os2* | cegcc*)
8165      # This hack is so that the source file can tell whether it is being
8166      # built for inclusion in a dll (and should export symbols for example).
8167      lt_prog_compiler_pic='-DDLL_EXPORT'
8168      ;;
8169
8170    hpux9* | hpux10* | hpux11*)
8171      lt_prog_compiler_wl='-Wl,'
8172      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8173      # not for PA HP-UX.
8174      case $host_cpu in
8175      hppa*64*|ia64*)
8176	# +Z the default
8177	;;
8178      *)
8179	lt_prog_compiler_pic='+Z'
8180	;;
8181      esac
8182      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8183      lt_prog_compiler_static='${wl}-a ${wl}archive'
8184      ;;
8185
8186    irix5* | irix6* | nonstopux*)
8187      lt_prog_compiler_wl='-Wl,'
8188      # PIC (with -KPIC) is the default.
8189      lt_prog_compiler_static='-non_shared'
8190      ;;
8191
8192    linux* | k*bsd*-gnu)
8193      case $cc_basename in
8194      # old Intel for x86_64 which still supported -KPIC.
8195      ecc*)
8196	lt_prog_compiler_wl='-Wl,'
8197	lt_prog_compiler_pic='-KPIC'
8198	lt_prog_compiler_static='-static'
8199        ;;
8200      # icc used to be incompatible with GCC.
8201      # ICC 10 doesn't accept -KPIC any more.
8202      icc* | ifort*)
8203	lt_prog_compiler_wl='-Wl,'
8204	lt_prog_compiler_pic='-fPIC'
8205	lt_prog_compiler_static='-static'
8206        ;;
8207      # Lahey Fortran 8.1.
8208      lf95*)
8209	lt_prog_compiler_wl='-Wl,'
8210	lt_prog_compiler_pic='--shared'
8211	lt_prog_compiler_static='--static'
8212	;;
8213      pgcc* | pgf77* | pgf90* | pgf95*)
8214        # Portland Group compilers (*not* the Pentium gcc compiler,
8215	# which looks to be a dead project)
8216	lt_prog_compiler_wl='-Wl,'
8217	lt_prog_compiler_pic='-fpic'
8218	lt_prog_compiler_static='-Bstatic'
8219        ;;
8220      ccc*)
8221        lt_prog_compiler_wl='-Wl,'
8222        # All Alpha code is PIC.
8223        lt_prog_compiler_static='-non_shared'
8224        ;;
8225      xl*)
8226	# IBM XL C 8.0/Fortran 10.1 on PPC
8227	lt_prog_compiler_wl='-Wl,'
8228	lt_prog_compiler_pic='-qpic'
8229	lt_prog_compiler_static='-qstaticlink'
8230	;;
8231      *)
8232	case `$CC -V 2>&1 | sed 5q` in
8233	*Sun\ C*)
8234	  # Sun C 5.9
8235	  lt_prog_compiler_pic='-KPIC'
8236	  lt_prog_compiler_static='-Bstatic'
8237	  lt_prog_compiler_wl='-Wl,'
8238	  ;;
8239	*Sun\ F*)
8240	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8241	  lt_prog_compiler_pic='-KPIC'
8242	  lt_prog_compiler_static='-Bstatic'
8243	  lt_prog_compiler_wl=''
8244	  ;;
8245	esac
8246	;;
8247      esac
8248      ;;
8249
8250    newsos6)
8251      lt_prog_compiler_pic='-KPIC'
8252      lt_prog_compiler_static='-Bstatic'
8253      ;;
8254
8255    *nto* | *qnx*)
8256      # QNX uses GNU C++, but need to define -shared option too, otherwise
8257      # it will coredump.
8258      lt_prog_compiler_pic='-fPIC -shared'
8259      ;;
8260
8261    osf3* | osf4* | osf5*)
8262      lt_prog_compiler_wl='-Wl,'
8263      # All OSF/1 code is PIC.
8264      lt_prog_compiler_static='-non_shared'
8265      ;;
8266
8267    rdos*)
8268      lt_prog_compiler_static='-non_shared'
8269      ;;
8270
8271    solaris*)
8272      lt_prog_compiler_pic='-KPIC'
8273      lt_prog_compiler_static='-Bstatic'
8274      case $cc_basename in
8275      f77* | f90* | f95*)
8276	lt_prog_compiler_wl='-Qoption ld ';;
8277      *)
8278	lt_prog_compiler_wl='-Wl,';;
8279      esac
8280      ;;
8281
8282    sunos4*)
8283      lt_prog_compiler_wl='-Qoption ld '
8284      lt_prog_compiler_pic='-PIC'
8285      lt_prog_compiler_static='-Bstatic'
8286      ;;
8287
8288    sysv4 | sysv4.2uw2* | sysv4.3*)
8289      lt_prog_compiler_wl='-Wl,'
8290      lt_prog_compiler_pic='-KPIC'
8291      lt_prog_compiler_static='-Bstatic'
8292      ;;
8293
8294    sysv4*MP*)
8295      if test -d /usr/nec ;then
8296	lt_prog_compiler_pic='-Kconform_pic'
8297	lt_prog_compiler_static='-Bstatic'
8298      fi
8299      ;;
8300
8301    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8302      lt_prog_compiler_wl='-Wl,'
8303      lt_prog_compiler_pic='-KPIC'
8304      lt_prog_compiler_static='-Bstatic'
8305      ;;
8306
8307    unicos*)
8308      lt_prog_compiler_wl='-Wl,'
8309      lt_prog_compiler_can_build_shared=no
8310      ;;
8311
8312    uts4*)
8313      lt_prog_compiler_pic='-pic'
8314      lt_prog_compiler_static='-Bstatic'
8315      ;;
8316
8317    *)
8318      lt_prog_compiler_can_build_shared=no
8319      ;;
8320    esac
8321  fi
8322
8323case $host_os in
8324  # For platforms which do not support PIC, -DPIC is meaningless:
8325  *djgpp*)
8326    lt_prog_compiler_pic=
8327    ;;
8328  *)
8329    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8330    ;;
8331esac
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8333$as_echo "$lt_prog_compiler_pic" >&6; }
8334
8335
8336
8337
8338
8339
8340#
8341# Check to make sure the PIC flag actually works.
8342#
8343if test -n "$lt_prog_compiler_pic"; then
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8345$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8346if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  lt_cv_prog_compiler_pic_works=no
8350   ac_outfile=conftest.$ac_objext
8351   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8352   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8353   # Insert the option either (1) after the last *FLAGS variable, or
8354   # (2) before a word containing "conftest.", or (3) at the end.
8355   # Note that $ac_compile itself does not contain backslashes and begins
8356   # with a dollar sign (not a hyphen), so the echo should work correctly.
8357   # The option is referenced via a variable to avoid confusing sed.
8358   lt_compile=`echo "$ac_compile" | $SED \
8359   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8360   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8361   -e 's:$: $lt_compiler_flag:'`
8362   (eval echo "\"\$as_me:8362: $lt_compile\"" >&5)
8363   (eval "$lt_compile" 2>conftest.err)
8364   ac_status=$?
8365   cat conftest.err >&5
8366   echo "$as_me:8366: \$? = $ac_status" >&5
8367   if (exit $ac_status) && test -s "$ac_outfile"; then
8368     # The compiler can only warn and ignore the option if not recognized
8369     # So say no if there are warnings other than the usual output.
8370     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8371     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8372     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8373       lt_cv_prog_compiler_pic_works=yes
8374     fi
8375   fi
8376   $RM conftest*
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8380$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8381
8382if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8383    case $lt_prog_compiler_pic in
8384     "" | " "*) ;;
8385     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8386     esac
8387else
8388    lt_prog_compiler_pic=
8389     lt_prog_compiler_can_build_shared=no
8390fi
8391
8392fi
8393
8394
8395
8396
8397
8398
8399#
8400# Check to make sure the static flag actually works.
8401#
8402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8404$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8405if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8406  $as_echo_n "(cached) " >&6
8407else
8408  lt_cv_prog_compiler_static_works=no
8409   save_LDFLAGS="$LDFLAGS"
8410   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8411   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8412   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8413     # The linker can only warn and ignore the option if not recognized
8414     # So say no if there are warnings
8415     if test -s conftest.err; then
8416       # Append any errors to the config.log.
8417       cat conftest.err 1>&5
8418       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8419       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8420       if diff conftest.exp conftest.er2 >/dev/null; then
8421         lt_cv_prog_compiler_static_works=yes
8422       fi
8423     else
8424       lt_cv_prog_compiler_static_works=yes
8425     fi
8426   fi
8427   $RM -r conftest*
8428   LDFLAGS="$save_LDFLAGS"
8429
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8432$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8433
8434if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8435    :
8436else
8437    lt_prog_compiler_static=
8438fi
8439
8440
8441
8442
8443
8444
8445
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8447$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8448if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  lt_cv_prog_compiler_c_o=no
8452   $RM -r conftest 2>/dev/null
8453   mkdir conftest
8454   cd conftest
8455   mkdir out
8456   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457
8458   lt_compiler_flag="-o out/conftest2.$ac_objext"
8459   # Insert the option either (1) after the last *FLAGS variable, or
8460   # (2) before a word containing "conftest.", or (3) at the end.
8461   # Note that $ac_compile itself does not contain backslashes and begins
8462   # with a dollar sign (not a hyphen), so the echo should work correctly.
8463   lt_compile=`echo "$ac_compile" | $SED \
8464   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466   -e 's:$: $lt_compiler_flag:'`
8467   (eval echo "\"\$as_me:8467: $lt_compile\"" >&5)
8468   (eval "$lt_compile" 2>out/conftest.err)
8469   ac_status=$?
8470   cat out/conftest.err >&5
8471   echo "$as_me:8471: \$? = $ac_status" >&5
8472   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8473   then
8474     # The compiler can only warn and ignore the option if not recognized
8475     # So say no if there are warnings
8476     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8477     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8478     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8479       lt_cv_prog_compiler_c_o=yes
8480     fi
8481   fi
8482   chmod u+w . 2>&5
8483   $RM conftest*
8484   # SGI C++ compiler will create directory out/ii_files/ for
8485   # template instantiation
8486   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8487   $RM out/* && rmdir out
8488   cd ..
8489   $RM -r conftest
8490   $RM conftest*
8491
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8494$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8495
8496
8497
8498
8499
8500
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8502$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8503if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8504  $as_echo_n "(cached) " >&6
8505else
8506  lt_cv_prog_compiler_c_o=no
8507   $RM -r conftest 2>/dev/null
8508   mkdir conftest
8509   cd conftest
8510   mkdir out
8511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512
8513   lt_compiler_flag="-o out/conftest2.$ac_objext"
8514   # Insert the option either (1) after the last *FLAGS variable, or
8515   # (2) before a word containing "conftest.", or (3) at the end.
8516   # Note that $ac_compile itself does not contain backslashes and begins
8517   # with a dollar sign (not a hyphen), so the echo should work correctly.
8518   lt_compile=`echo "$ac_compile" | $SED \
8519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521   -e 's:$: $lt_compiler_flag:'`
8522   (eval echo "\"\$as_me:8522: $lt_compile\"" >&5)
8523   (eval "$lt_compile" 2>out/conftest.err)
8524   ac_status=$?
8525   cat out/conftest.err >&5
8526   echo "$as_me:8526: \$? = $ac_status" >&5
8527   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8528   then
8529     # The compiler can only warn and ignore the option if not recognized
8530     # So say no if there are warnings
8531     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8532     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8533     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8534       lt_cv_prog_compiler_c_o=yes
8535     fi
8536   fi
8537   chmod u+w . 2>&5
8538   $RM conftest*
8539   # SGI C++ compiler will create directory out/ii_files/ for
8540   # template instantiation
8541   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8542   $RM out/* && rmdir out
8543   cd ..
8544   $RM -r conftest
8545   $RM conftest*
8546
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8549$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8550
8551
8552
8553
8554hard_links="nottested"
8555if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8556  # do not overwrite the value of need_locks provided by the user
8557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8558$as_echo_n "checking if we can lock with hard links... " >&6; }
8559  hard_links=yes
8560  $RM conftest*
8561  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562  touch conftest.a
8563  ln conftest.a conftest.b 2>&5 || hard_links=no
8564  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8566$as_echo "$hard_links" >&6; }
8567  if test "$hard_links" = no; then
8568    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8569$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8570    need_locks=warn
8571  fi
8572else
8573  need_locks=no
8574fi
8575
8576
8577
8578
8579
8580
8581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8583
8584  runpath_var=
8585  allow_undefined_flag=
8586  always_export_symbols=no
8587  archive_cmds=
8588  archive_expsym_cmds=
8589  compiler_needs_object=no
8590  enable_shared_with_static_runtimes=no
8591  export_dynamic_flag_spec=
8592  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8593  hardcode_automatic=no
8594  hardcode_direct=no
8595  hardcode_direct_absolute=no
8596  hardcode_libdir_flag_spec=
8597  hardcode_libdir_flag_spec_ld=
8598  hardcode_libdir_separator=
8599  hardcode_minus_L=no
8600  hardcode_shlibpath_var=unsupported
8601  inherit_rpath=no
8602  link_all_deplibs=unknown
8603  module_cmds=
8604  module_expsym_cmds=
8605  old_archive_from_new_cmds=
8606  old_archive_from_expsyms_cmds=
8607  thread_safe_flag_spec=
8608  whole_archive_flag_spec=
8609  # include_expsyms should be a list of space-separated symbols to be *always*
8610  # included in the symbol list
8611  include_expsyms=
8612  # exclude_expsyms can be an extended regexp of symbols to exclude
8613  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8614  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8615  # as well as any symbol that contains `d'.
8616  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8617  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8618  # platforms (ab)use it in PIC code, but their linkers get confused if
8619  # the symbol is explicitly referenced.  Since portable code cannot
8620  # rely on this symbol name, it's probably fine to never include it in
8621  # preloaded symbol tables.
8622  # Exclude shared library initialization/finalization symbols.
8623  extract_expsyms_cmds=
8624
8625  case $host_os in
8626  cygwin* | mingw* | pw32* | cegcc*)
8627    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8628    # When not using gcc, we currently assume that we are using
8629    # Microsoft Visual C++.
8630    if test "$GCC" != yes; then
8631      with_gnu_ld=no
8632    fi
8633    ;;
8634  interix*)
8635    # we just hope/assume this is gcc and not c89 (= MSVC++)
8636    with_gnu_ld=yes
8637    ;;
8638  openbsd*)
8639    with_gnu_ld=no
8640    ;;
8641  esac
8642
8643  ld_shlibs=yes
8644  if test "$with_gnu_ld" = yes; then
8645    # If archive_cmds runs LD, not CC, wlarc should be empty
8646    wlarc='${wl}'
8647
8648    # Set some defaults for GNU ld with shared library support. These
8649    # are reset later if shared libraries are not supported. Putting them
8650    # here allows them to be overridden if necessary.
8651    runpath_var=LD_RUN_PATH
8652    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653    export_dynamic_flag_spec='${wl}--export-dynamic'
8654    # ancient GNU ld didn't support --whole-archive et. al.
8655    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657    else
8658      whole_archive_flag_spec=
8659    fi
8660    supports_anon_versioning=no
8661    case `$LD -v 2>&1` in
8662      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8663      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8664      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8665      *\ 2.11.*) ;; # other 2.11 versions
8666      *) supports_anon_versioning=yes ;;
8667    esac
8668
8669    # See if GNU ld supports shared libraries.
8670    case $host_os in
8671    aix[3-9]*)
8672      # On AIX/PPC, the GNU linker is very broken
8673      if test "$host_cpu" != ia64; then
8674	ld_shlibs=no
8675	cat <<_LT_EOF 1>&2
8676
8677*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8678*** to be unable to reliably create shared libraries on AIX.
8679*** Therefore, libtool is disabling shared libraries support.  If you
8680*** really care for shared libraries, you may want to modify your PATH
8681*** so that a non-GNU linker is found, and then restart.
8682
8683_LT_EOF
8684      fi
8685      ;;
8686
8687    amigaos*)
8688      case $host_cpu in
8689      powerpc)
8690            # see comment about AmigaOS4 .so support
8691            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692            archive_expsym_cmds=''
8693        ;;
8694      m68k)
8695            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)'
8696            hardcode_libdir_flag_spec='-L$libdir'
8697            hardcode_minus_L=yes
8698        ;;
8699      esac
8700      ;;
8701
8702    beos*)
8703      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8704	allow_undefined_flag=unsupported
8705	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8706	# support --undefined.  This deserves some investigation.  FIXME
8707	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708      else
8709	ld_shlibs=no
8710      fi
8711      ;;
8712
8713    cygwin* | mingw* | pw32* | cegcc*)
8714      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8715      # as there is no search path for DLLs.
8716      hardcode_libdir_flag_spec='-L$libdir'
8717      allow_undefined_flag=unsupported
8718      always_export_symbols=no
8719      enable_shared_with_static_runtimes=yes
8720      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8721
8722      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8723        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8724	# If the export-symbols file already is a .def file (1st line
8725	# is EXPORTS), use it as is; otherwise, prepend...
8726	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8727	  cp $export_symbols $output_objdir/$soname.def;
8728	else
8729	  echo EXPORTS > $output_objdir/$soname.def;
8730	  cat $export_symbols >> $output_objdir/$soname.def;
8731	fi~
8732	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8733      else
8734	ld_shlibs=no
8735      fi
8736      ;;
8737
8738    interix[3-9]*)
8739      hardcode_direct=no
8740      hardcode_shlibpath_var=no
8741      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742      export_dynamic_flag_spec='${wl}-E'
8743      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8744      # Instead, shared libraries are loaded at an image base (0x10000000 by
8745      # default) and relocated if they conflict, which is a slow very memory
8746      # consuming and fragmenting process.  To avoid this, we pick a random,
8747      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8748      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8749      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8750      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'
8751      ;;
8752
8753    gnu* | linux* | tpf* | k*bsd*-gnu)
8754      tmp_diet=no
8755      if test "$host_os" = linux-dietlibc; then
8756	case $cc_basename in
8757	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8758	esac
8759      fi
8760      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8761	 && test "$tmp_diet" = no
8762      then
8763	tmp_addflag=
8764	tmp_sharedflag='-shared'
8765	case $cc_basename,$host_cpu in
8766        pgcc*)				# Portland Group C compiler
8767	  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'
8768	  tmp_addflag=' $pic_flag'
8769	  ;;
8770	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8771	  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'
8772	  tmp_addflag=' $pic_flag -Mnomain' ;;
8773	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8774	  tmp_addflag=' -i_dynamic' ;;
8775	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8776	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8777	ifc* | ifort*)			# Intel Fortran compiler
8778	  tmp_addflag=' -nofor_main' ;;
8779	lf95*)				# Lahey Fortran 8.1
8780	  whole_archive_flag_spec=
8781	  tmp_sharedflag='--shared' ;;
8782	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8783	  tmp_sharedflag='-qmkshrobj'
8784	  tmp_addflag= ;;
8785	esac
8786	case `$CC -V 2>&1 | sed 5q` in
8787	*Sun\ C*)			# Sun C 5.9
8788	  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'
8789	  compiler_needs_object=yes
8790	  tmp_sharedflag='-G' ;;
8791	*Sun\ F*)			# Sun Fortran 8.3
8792	  tmp_sharedflag='-G' ;;
8793	esac
8794	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795
8796        if test "x$supports_anon_versioning" = xyes; then
8797          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8798	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8799	    echo "local: *; };" >> $output_objdir/$libname.ver~
8800	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8801        fi
8802
8803	case $cc_basename in
8804	xlf*)
8805	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8806	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8807	  hardcode_libdir_flag_spec=
8808	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8809	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8810	  if test "x$supports_anon_versioning" = xyes; then
8811	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8812	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8813	      echo "local: *; };" >> $output_objdir/$libname.ver~
8814	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8815	  fi
8816	  ;;
8817	esac
8818      else
8819        ld_shlibs=no
8820      fi
8821      ;;
8822
8823    netbsd*)
8824      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8825	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8826	wlarc=
8827      else
8828	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830      fi
8831      ;;
8832
8833    solaris*)
8834      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8835	ld_shlibs=no
8836	cat <<_LT_EOF 1>&2
8837
8838*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8839*** create shared libraries on Solaris systems.  Therefore, libtool
8840*** is disabling shared libraries support.  We urge you to upgrade GNU
8841*** binutils to release 2.9.1 or newer.  Another option is to modify
8842*** your PATH or compiler configuration so that the native linker is
8843*** used, and then restart.
8844
8845_LT_EOF
8846      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8847	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8849      else
8850	ld_shlibs=no
8851      fi
8852      ;;
8853
8854    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8855      case `$LD -v 2>&1` in
8856        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8857	ld_shlibs=no
8858	cat <<_LT_EOF 1>&2
8859
8860*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8861*** reliably create shared libraries on SCO systems.  Therefore, libtool
8862*** is disabling shared libraries support.  We urge you to upgrade GNU
8863*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8864*** your PATH or compiler configuration so that the native linker is
8865*** used, and then restart.
8866
8867_LT_EOF
8868	;;
8869	*)
8870	  # For security reasons, it is highly recommended that you always
8871	  # use absolute paths for naming shared libraries, and exclude the
8872	  # DT_RUNPATH tag from executables and libraries.  But doing so
8873	  # requires that you compile everything twice, which is a pain.
8874	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8875	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8876	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878	  else
8879	    ld_shlibs=no
8880	  fi
8881	;;
8882      esac
8883      ;;
8884
8885    sunos4*)
8886      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8887      wlarc=
8888      hardcode_direct=yes
8889      hardcode_shlibpath_var=no
8890      ;;
8891
8892    *)
8893      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8894	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8896      else
8897	ld_shlibs=no
8898      fi
8899      ;;
8900    esac
8901
8902    if test "$ld_shlibs" = no; then
8903      runpath_var=
8904      hardcode_libdir_flag_spec=
8905      export_dynamic_flag_spec=
8906      whole_archive_flag_spec=
8907    fi
8908  else
8909    # PORTME fill in a description of your system's linker (not GNU ld)
8910    case $host_os in
8911    aix3*)
8912      allow_undefined_flag=unsupported
8913      always_export_symbols=yes
8914      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'
8915      # Note: this linker hardcodes the directories in LIBPATH if there
8916      # are no directories specified by -L.
8917      hardcode_minus_L=yes
8918      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8919	# Neither direct hardcoding nor static linking is supported with a
8920	# broken collect2.
8921	hardcode_direct=unsupported
8922      fi
8923      ;;
8924
8925    aix[4-9]*)
8926      if test "$host_cpu" = ia64; then
8927	# On IA64, the linker does run time linking by default, so we don't
8928	# have to do anything special.
8929	aix_use_runtimelinking=no
8930	exp_sym_flag='-Bexport'
8931	no_entry_flag=""
8932      else
8933	# If we're using GNU nm, then we don't want the "-C" option.
8934	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8935	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8936	  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'
8937	else
8938	  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'
8939	fi
8940	aix_use_runtimelinking=no
8941
8942	# Test if we are trying to use run time linking or normal
8943	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8944	# need to do runtime linking.
8945	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8946	  for ld_flag in $LDFLAGS; do
8947	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8948	    aix_use_runtimelinking=yes
8949	    break
8950	  fi
8951	  done
8952	  ;;
8953	esac
8954
8955	exp_sym_flag='-bexport'
8956	no_entry_flag='-bnoentry'
8957      fi
8958
8959      # When large executables or shared objects are built, AIX ld can
8960      # have problems creating the table of contents.  If linking a library
8961      # or program results in "error TOC overflow" add -mminimal-toc to
8962      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8963      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8964
8965      archive_cmds=''
8966      hardcode_direct=yes
8967      hardcode_direct_absolute=yes
8968      hardcode_libdir_separator=':'
8969      link_all_deplibs=yes
8970      file_list_spec='${wl}-f,'
8971
8972      if test "$GCC" = yes; then
8973	case $host_os in aix4.[012]|aix4.[012].*)
8974	# We only want to do this on AIX 4.2 and lower, the check
8975	# below for broken collect2 doesn't work under 4.3+
8976	  collect2name=`${CC} -print-prog-name=collect2`
8977	  if test -f "$collect2name" &&
8978	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8979	  then
8980	  # We have reworked collect2
8981	  :
8982	  else
8983	  # We have old collect2
8984	  hardcode_direct=unsupported
8985	  # It fails to find uninstalled libraries when the uninstalled
8986	  # path is not listed in the libpath.  Setting hardcode_minus_L
8987	  # to unsupported forces relinking
8988	  hardcode_minus_L=yes
8989	  hardcode_libdir_flag_spec='-L$libdir'
8990	  hardcode_libdir_separator=
8991	  fi
8992	  ;;
8993	esac
8994	shared_flag='-shared'
8995	if test "$aix_use_runtimelinking" = yes; then
8996	  shared_flag="$shared_flag "'${wl}-G'
8997	fi
8998      else
8999	# not using gcc
9000	if test "$host_cpu" = ia64; then
9001	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9002	# chokes on -Wl,-G. The following line is correct:
9003	  shared_flag='-G'
9004	else
9005	  if test "$aix_use_runtimelinking" = yes; then
9006	    shared_flag='${wl}-G'
9007	  else
9008	    shared_flag='${wl}-bM:SRE'
9009	  fi
9010	fi
9011      fi
9012
9013      export_dynamic_flag_spec='${wl}-bexpall'
9014      # It seems that -bexpall does not export symbols beginning with
9015      # underscore (_), so it is better to generate a list of symbols to export.
9016      always_export_symbols=yes
9017      if test "$aix_use_runtimelinking" = yes; then
9018	# Warning - without using the other runtime loading flags (-brtl),
9019	# -berok will link without error, but may produce a broken library.
9020	allow_undefined_flag='-berok'
9021        # Determine the default libpath from the value encoded in an
9022        # empty executable.
9023        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h.  */
9025
9026int
9027main ()
9028{
9029
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035
9036lt_aix_libpath_sed='
9037    /Import File Strings/,/^$/ {
9038	/^0/ {
9039	    s/^0  *\(.*\)$/\1/
9040	    p
9041	}
9042    }'
9043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9044# Check for a 64-bit object if we didn't find anything.
9045if test -z "$aix_libpath"; then
9046  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9047fi
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050    conftest$ac_exeext conftest.$ac_ext
9051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9052
9053        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9054        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"
9055      else
9056	if test "$host_cpu" = ia64; then
9057	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9058	  allow_undefined_flag="-z nodefs"
9059	  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"
9060	else
9061	 # Determine the default libpath from the value encoded in an
9062	 # empty executable.
9063	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h.  */
9065
9066int
9067main ()
9068{
9069
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074if ac_fn_c_try_link "$LINENO"; then :
9075
9076lt_aix_libpath_sed='
9077    /Import File Strings/,/^$/ {
9078	/^0/ {
9079	    s/^0  *\(.*\)$/\1/
9080	    p
9081	}
9082    }'
9083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9084# Check for a 64-bit object if we didn't find anything.
9085if test -z "$aix_libpath"; then
9086  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9087fi
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090    conftest$ac_exeext conftest.$ac_ext
9091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9092
9093	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9094	  # Warning - without using the other run time loading flags,
9095	  # -berok will link without error, but may produce a broken library.
9096	  no_undefined_flag=' ${wl}-bernotok'
9097	  allow_undefined_flag=' ${wl}-berok'
9098	  # Exported symbols can be pulled into shared objects from archives
9099	  whole_archive_flag_spec='$convenience'
9100	  archive_cmds_need_lc=yes
9101	  # This is similar to how AIX traditionally builds its shared libraries.
9102	  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'
9103	fi
9104      fi
9105      ;;
9106
9107    amigaos*)
9108      case $host_cpu in
9109      powerpc)
9110            # see comment about AmigaOS4 .so support
9111            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112            archive_expsym_cmds=''
9113        ;;
9114      m68k)
9115            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)'
9116            hardcode_libdir_flag_spec='-L$libdir'
9117            hardcode_minus_L=yes
9118        ;;
9119      esac
9120      ;;
9121
9122    bsdi[45]*)
9123      export_dynamic_flag_spec=-rdynamic
9124      ;;
9125
9126    cygwin* | mingw* | pw32* | cegcc*)
9127      # When not using gcc, we currently assume that we are using
9128      # Microsoft Visual C++.
9129      # hardcode_libdir_flag_spec is actually meaningless, as there is
9130      # no search path for DLLs.
9131      hardcode_libdir_flag_spec=' '
9132      allow_undefined_flag=unsupported
9133      # Tell ltmain to make .lib files, not .a files.
9134      libext=lib
9135      # Tell ltmain to make .dll files, not .so files.
9136      shrext_cmds=".dll"
9137      # FIXME: Setting linknames here is a bad hack.
9138      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9139      # The linker will automatically build a .lib file if we build a DLL.
9140      old_archive_from_new_cmds='true'
9141      # FIXME: Should let the user specify the lib program.
9142      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9143      fix_srcfile_path='`cygpath -w "$srcfile"`'
9144      enable_shared_with_static_runtimes=yes
9145      ;;
9146
9147    darwin* | rhapsody*)
9148
9149
9150  archive_cmds_need_lc=no
9151  hardcode_direct=no
9152  hardcode_automatic=yes
9153  hardcode_shlibpath_var=unsupported
9154  whole_archive_flag_spec=''
9155  link_all_deplibs=yes
9156  allow_undefined_flag="$_lt_dar_allow_undefined"
9157  case $cc_basename in
9158     ifort*) _lt_dar_can_shared=yes ;;
9159     *) _lt_dar_can_shared=$GCC ;;
9160  esac
9161  if test "$_lt_dar_can_shared" = "yes"; then
9162    output_verbose_link_cmd=echo
9163    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9164    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9165    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}"
9166    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}"
9167
9168  else
9169  ld_shlibs=no
9170  fi
9171
9172      ;;
9173
9174    dgux*)
9175      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9176      hardcode_libdir_flag_spec='-L$libdir'
9177      hardcode_shlibpath_var=no
9178      ;;
9179
9180    freebsd1*)
9181      ld_shlibs=no
9182      ;;
9183
9184    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9185    # support.  Future versions do this automatically, but an explicit c++rt0.o
9186    # does not break anything, and helps significantly (at the cost of a little
9187    # extra space).
9188    freebsd2.2*)
9189      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9190      hardcode_libdir_flag_spec='-R$libdir'
9191      hardcode_direct=yes
9192      hardcode_shlibpath_var=no
9193      ;;
9194
9195    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9196    freebsd2*)
9197      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198      hardcode_direct=yes
9199      hardcode_minus_L=yes
9200      hardcode_shlibpath_var=no
9201      ;;
9202
9203    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9204    freebsd* | dragonfly*)
9205      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9206      hardcode_libdir_flag_spec='-R$libdir'
9207      hardcode_direct=yes
9208      hardcode_shlibpath_var=no
9209      ;;
9210
9211    hpux9*)
9212      if test "$GCC" = yes; then
9213	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'
9214      else
9215	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'
9216      fi
9217      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9218      hardcode_libdir_separator=:
9219      hardcode_direct=yes
9220
9221      # hardcode_minus_L: Not really in the search PATH,
9222      # but as the default location of the library.
9223      hardcode_minus_L=yes
9224      export_dynamic_flag_spec='${wl}-E'
9225      ;;
9226
9227    hpux10*)
9228      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9229	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9230      else
9231	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9232      fi
9233      if test "$with_gnu_ld" = no; then
9234	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9235	hardcode_libdir_flag_spec_ld='+b $libdir'
9236	hardcode_libdir_separator=:
9237	hardcode_direct=yes
9238	hardcode_direct_absolute=yes
9239	export_dynamic_flag_spec='${wl}-E'
9240	# hardcode_minus_L: Not really in the search PATH,
9241	# but as the default location of the library.
9242	hardcode_minus_L=yes
9243      fi
9244      ;;
9245
9246    hpux11*)
9247      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9248	case $host_cpu in
9249	hppa*64*)
9250	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9251	  ;;
9252	ia64*)
9253	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9254	  ;;
9255	*)
9256	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9257	  ;;
9258	esac
9259      else
9260	case $host_cpu in
9261	hppa*64*)
9262	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9263	  ;;
9264	ia64*)
9265	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9266	  ;;
9267	*)
9268	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9269	  ;;
9270	esac
9271      fi
9272      if test "$with_gnu_ld" = no; then
9273	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9274	hardcode_libdir_separator=:
9275
9276	case $host_cpu in
9277	hppa*64*|ia64*)
9278	  hardcode_direct=no
9279	  hardcode_shlibpath_var=no
9280	  ;;
9281	*)
9282	  hardcode_direct=yes
9283	  hardcode_direct_absolute=yes
9284	  export_dynamic_flag_spec='${wl}-E'
9285
9286	  # hardcode_minus_L: Not really in the search PATH,
9287	  # but as the default location of the library.
9288	  hardcode_minus_L=yes
9289	  ;;
9290	esac
9291      fi
9292      ;;
9293
9294    irix5* | irix6* | nonstopux*)
9295      if test "$GCC" = yes; then
9296	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'
9297	# Try to use the -exported_symbol ld option, if it does not
9298	# work, assume that -exports_file does not work either and
9299	# implicitly export all symbols.
9300        save_LDFLAGS="$LDFLAGS"
9301        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9302        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int foo(void) {}
9305_ACEOF
9306if ac_fn_c_try_link "$LINENO"; then :
9307  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'
9308
9309fi
9310rm -f core conftest.err conftest.$ac_objext \
9311    conftest$ac_exeext conftest.$ac_ext
9312        LDFLAGS="$save_LDFLAGS"
9313      else
9314	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'
9315	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'
9316      fi
9317      archive_cmds_need_lc='no'
9318      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319      hardcode_libdir_separator=:
9320      inherit_rpath=yes
9321      link_all_deplibs=yes
9322      ;;
9323
9324    netbsd*)
9325      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9326	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9327      else
9328	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9329      fi
9330      hardcode_libdir_flag_spec='-R$libdir'
9331      hardcode_direct=yes
9332      hardcode_shlibpath_var=no
9333      ;;
9334
9335    newsos6)
9336      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337      hardcode_direct=yes
9338      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339      hardcode_libdir_separator=:
9340      hardcode_shlibpath_var=no
9341      ;;
9342
9343    *nto* | *qnx*)
9344      ;;
9345
9346    openbsd*)
9347      if test -f /usr/libexec/ld.so; then
9348	hardcode_direct=yes
9349	hardcode_shlibpath_var=no
9350	hardcode_direct_absolute=yes
9351	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9352	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9353	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9354	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9355	  export_dynamic_flag_spec='${wl}-E'
9356	else
9357	  case $host_os in
9358	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9359	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9360	     hardcode_libdir_flag_spec='-R$libdir'
9361	     ;;
9362	   *)
9363	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9364	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9365	     ;;
9366	  esac
9367	fi
9368      else
9369	ld_shlibs=no
9370      fi
9371      ;;
9372
9373    os2*)
9374      hardcode_libdir_flag_spec='-L$libdir'
9375      hardcode_minus_L=yes
9376      allow_undefined_flag=unsupported
9377      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'
9378      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9379      ;;
9380
9381    osf3*)
9382      if test "$GCC" = yes; then
9383	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9384	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'
9385      else
9386	allow_undefined_flag=' -expect_unresolved \*'
9387	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'
9388      fi
9389      archive_cmds_need_lc='no'
9390      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391      hardcode_libdir_separator=:
9392      ;;
9393
9394    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9395      if test "$GCC" = yes; then
9396	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9397	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'
9398	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9399      else
9400	allow_undefined_flag=' -expect_unresolved \*'
9401	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'
9402	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~
9403	$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'
9404
9405	# Both c and cxx compiler support -rpath directly
9406	hardcode_libdir_flag_spec='-rpath $libdir'
9407      fi
9408      archive_cmds_need_lc='no'
9409      hardcode_libdir_separator=:
9410      ;;
9411
9412    solaris*)
9413      no_undefined_flag=' -z defs'
9414      if test "$GCC" = yes; then
9415	wlarc='${wl}'
9416	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9419      else
9420	case `$CC -V 2>&1` in
9421	*"Compilers 5.0"*)
9422	  wlarc=''
9423	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9425	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9426	  ;;
9427	*)
9428	  wlarc='${wl}'
9429	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9430	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9431	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9432	  ;;
9433	esac
9434      fi
9435      hardcode_libdir_flag_spec='-R$libdir'
9436      hardcode_shlibpath_var=no
9437      case $host_os in
9438      solaris2.[0-5] | solaris2.[0-5].*) ;;
9439      *)
9440	# The compiler driver will combine and reorder linker options,
9441	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9442	# but is careful enough not to reorder.
9443	# Supported since Solaris 2.6 (maybe 2.5.1?)
9444	if test "$GCC" = yes; then
9445	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9446	else
9447	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9448	fi
9449	;;
9450      esac
9451      link_all_deplibs=yes
9452      ;;
9453
9454    sunos4*)
9455      if test "x$host_vendor" = xsequent; then
9456	# Use $CC to link under sequent, because it throws in some extra .o
9457	# files that make .init and .fini sections work.
9458	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9459      else
9460	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9461      fi
9462      hardcode_libdir_flag_spec='-L$libdir'
9463      hardcode_direct=yes
9464      hardcode_minus_L=yes
9465      hardcode_shlibpath_var=no
9466      ;;
9467
9468    sysv4)
9469      case $host_vendor in
9470	sni)
9471	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472	  hardcode_direct=yes # is this really true???
9473	;;
9474	siemens)
9475	  ## LD is ld it makes a PLAMLIB
9476	  ## CC just makes a GrossModule.
9477	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9478	  reload_cmds='$CC -r -o $output$reload_objs'
9479	  hardcode_direct=no
9480        ;;
9481	motorola)
9482	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9484	;;
9485      esac
9486      runpath_var='LD_RUN_PATH'
9487      hardcode_shlibpath_var=no
9488      ;;
9489
9490    sysv4.3*)
9491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492      hardcode_shlibpath_var=no
9493      export_dynamic_flag_spec='-Bexport'
9494      ;;
9495
9496    sysv4*MP*)
9497      if test -d /usr/nec; then
9498	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499	hardcode_shlibpath_var=no
9500	runpath_var=LD_RUN_PATH
9501	hardcode_runpath_var=yes
9502	ld_shlibs=yes
9503      fi
9504      ;;
9505
9506    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9507      no_undefined_flag='${wl}-z,text'
9508      archive_cmds_need_lc=no
9509      hardcode_shlibpath_var=no
9510      runpath_var='LD_RUN_PATH'
9511
9512      if test "$GCC" = yes; then
9513	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515      else
9516	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518      fi
9519      ;;
9520
9521    sysv5* | sco3.2v5* | sco5v6*)
9522      # Note: We can NOT use -z defs as we might desire, because we do not
9523      # link with -lc, and that would cause any symbols used from libc to
9524      # always be unresolved, which means just about no library would
9525      # ever link correctly.  If we're not using GNU ld we use -z text
9526      # though, which does catch some bad symbols but isn't as heavy-handed
9527      # as -z defs.
9528      no_undefined_flag='${wl}-z,text'
9529      allow_undefined_flag='${wl}-z,nodefs'
9530      archive_cmds_need_lc=no
9531      hardcode_shlibpath_var=no
9532      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9533      hardcode_libdir_separator=':'
9534      link_all_deplibs=yes
9535      export_dynamic_flag_spec='${wl}-Bexport'
9536      runpath_var='LD_RUN_PATH'
9537
9538      if test "$GCC" = yes; then
9539	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9541      else
9542	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9544      fi
9545      ;;
9546
9547    uts4*)
9548      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549      hardcode_libdir_flag_spec='-L$libdir'
9550      hardcode_shlibpath_var=no
9551      ;;
9552
9553    *)
9554      ld_shlibs=no
9555      ;;
9556    esac
9557
9558    if test x$host_vendor = xsni; then
9559      case $host in
9560      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9561	export_dynamic_flag_spec='${wl}-Blargedynsym'
9562	;;
9563      esac
9564    fi
9565  fi
9566
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9568$as_echo "$ld_shlibs" >&6; }
9569test "$ld_shlibs" = no && can_build_shared=no
9570
9571with_gnu_ld=$with_gnu_ld
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587#
9588# Do we need to explicitly link libc?
9589#
9590case "x$archive_cmds_need_lc" in
9591x|xyes)
9592  # Assume -lc should be added
9593  archive_cmds_need_lc=yes
9594
9595  if test "$enable_shared" = yes && test "$GCC" = yes; then
9596    case $archive_cmds in
9597    *'~'*)
9598      # FIXME: we may have to deal with multi-command sequences.
9599      ;;
9600    '$CC '*)
9601      # Test whether the compiler implicitly links with -lc since on some
9602      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9603      # to ld, don't add -lc before -lgcc.
9604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9605$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9606      $RM conftest*
9607      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9608
9609      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9610  (eval $ac_compile) 2>&5
9611  ac_status=$?
9612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613  test $ac_status = 0; } 2>conftest.err; then
9614        soname=conftest
9615        lib=conftest
9616        libobjs=conftest.$ac_objext
9617        deplibs=
9618        wl=$lt_prog_compiler_wl
9619	pic_flag=$lt_prog_compiler_pic
9620        compiler_flags=-v
9621        linker_flags=-v
9622        verstring=
9623        output_objdir=.
9624        libname=conftest
9625        lt_save_allow_undefined_flag=$allow_undefined_flag
9626        allow_undefined_flag=
9627        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9628  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9629  ac_status=$?
9630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631  test $ac_status = 0; }
9632        then
9633	  archive_cmds_need_lc=no
9634        else
9635	  archive_cmds_need_lc=yes
9636        fi
9637        allow_undefined_flag=$lt_save_allow_undefined_flag
9638      else
9639        cat conftest.err 1>&5
9640      fi
9641      $RM conftest*
9642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9643$as_echo "$archive_cmds_need_lc" >&6; }
9644      ;;
9645    esac
9646  fi
9647  ;;
9648esac
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9807$as_echo_n "checking dynamic linker characteristics... " >&6; }
9808
9809if test "$GCC" = yes; then
9810  case $host_os in
9811    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9812    *) lt_awk_arg="/^libraries:/" ;;
9813  esac
9814  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9815  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9816    # if the path contains ";" then we assume it to be the separator
9817    # otherwise default to the standard path separator (i.e. ":") - it is
9818    # assumed that no part of a normal pathname contains ";" but that should
9819    # okay in the real world where ";" in dirpaths is itself problematic.
9820    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9821  else
9822    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9823  fi
9824  # Ok, now we have the path, separated by spaces, we can step through it
9825  # and add multilib dir if necessary.
9826  lt_tmp_lt_search_path_spec=
9827  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9828  for lt_sys_path in $lt_search_path_spec; do
9829    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9830      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9831    else
9832      test -d "$lt_sys_path" && \
9833	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9834    fi
9835  done
9836  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9837BEGIN {RS=" "; FS="/|\n";} {
9838  lt_foo="";
9839  lt_count=0;
9840  for (lt_i = NF; lt_i > 0; lt_i--) {
9841    if ($lt_i != "" && $lt_i != ".") {
9842      if ($lt_i == "..") {
9843        lt_count++;
9844      } else {
9845        if (lt_count == 0) {
9846          lt_foo="/" $lt_i lt_foo;
9847        } else {
9848          lt_count--;
9849        }
9850      }
9851    }
9852  }
9853  if (lt_foo != "") { lt_freq[lt_foo]++; }
9854  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9855}'`
9856  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9857else
9858  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9859fi
9860library_names_spec=
9861libname_spec='lib$name'
9862soname_spec=
9863shrext_cmds=".so"
9864postinstall_cmds=
9865postuninstall_cmds=
9866finish_cmds=
9867finish_eval=
9868shlibpath_var=
9869shlibpath_overrides_runpath=unknown
9870version_type=none
9871dynamic_linker="$host_os ld.so"
9872sys_lib_dlsearch_path_spec="/lib /usr/lib"
9873need_lib_prefix=unknown
9874hardcode_into_libs=no
9875
9876# when you set need_version to no, make sure it does not cause -set_version
9877# flags to be left without arguments
9878need_version=unknown
9879
9880case $host_os in
9881aix3*)
9882  version_type=linux
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9884  shlibpath_var=LIBPATH
9885
9886  # AIX 3 has no versioning support, so we append a major version to the name.
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  ;;
9889
9890aix[4-9]*)
9891  version_type=linux
9892  need_lib_prefix=no
9893  need_version=no
9894  hardcode_into_libs=yes
9895  if test "$host_cpu" = ia64; then
9896    # AIX 5 supports IA64
9897    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9898    shlibpath_var=LD_LIBRARY_PATH
9899  else
9900    # With GCC up to 2.95.x, collect2 would create an import file
9901    # for dependence libraries.  The import file would start with
9902    # the line `#! .'.  This would cause the generated library to
9903    # depend on `.', always an invalid library.  This was fixed in
9904    # development snapshots of GCC prior to 3.0.
9905    case $host_os in
9906      aix4 | aix4.[01] | aix4.[01].*)
9907      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9908	   echo ' yes '
9909	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9910	:
9911      else
9912	can_build_shared=no
9913      fi
9914      ;;
9915    esac
9916    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9917    # soname into executable. Probably we can add versioning support to
9918    # collect2, so additional links can be useful in future.
9919    if test "$aix_use_runtimelinking" = yes; then
9920      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9921      # instead of lib<name>.a to let people know that these are not
9922      # typical AIX shared libraries.
9923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924    else
9925      # We preserve .a as extension for shared libraries through AIX4.2
9926      # and later when we are not doing run time linking.
9927      library_names_spec='${libname}${release}.a $libname.a'
9928      soname_spec='${libname}${release}${shared_ext}$major'
9929    fi
9930    shlibpath_var=LIBPATH
9931  fi
9932  ;;
9933
9934amigaos*)
9935  case $host_cpu in
9936  powerpc)
9937    # Since July 2007 AmigaOS4 officially supports .so libraries.
9938    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9939    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940    ;;
9941  m68k)
9942    library_names_spec='$libname.ixlibrary $libname.a'
9943    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9944    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'
9945    ;;
9946  esac
9947  ;;
9948
9949beos*)
9950  library_names_spec='${libname}${shared_ext}'
9951  dynamic_linker="$host_os ld.so"
9952  shlibpath_var=LIBRARY_PATH
9953  ;;
9954
9955bsdi[45]*)
9956  version_type=linux
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9961  shlibpath_var=LD_LIBRARY_PATH
9962  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9963  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9964  # the default ld.so.conf also contains /usr/contrib/lib and
9965  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9966  # libtool to hard-code these into programs
9967  ;;
9968
9969cygwin* | mingw* | pw32* | cegcc*)
9970  version_type=windows
9971  shrext_cmds=".dll"
9972  need_version=no
9973  need_lib_prefix=no
9974
9975  case $GCC,$host_os in
9976  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9977    library_names_spec='$libname.dll.a'
9978    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9979    postinstall_cmds='base_file=`basename \${file}`~
9980      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9981      dldir=$destdir/`dirname \$dlpath`~
9982      test -d \$dldir || mkdir -p \$dldir~
9983      $install_prog $dir/$dlname \$dldir/$dlname~
9984      chmod a+x \$dldir/$dlname~
9985      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9986        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9987      fi'
9988    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989      dlpath=$dir/\$dldll~
9990       $RM \$dlpath'
9991    shlibpath_overrides_runpath=yes
9992
9993    case $host_os in
9994    cygwin*)
9995      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9997      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9998      ;;
9999    mingw* | cegcc*)
10000      # MinGW DLLs use traditional 'lib' prefix
10001      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10003      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10004        # It is most probably a Windows format PATH printed by
10005        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10006        # path with ; separators, and with drive letters. We can handle the
10007        # drive letters (cygwin fileutils understands them), so leave them,
10008        # especially as we might pass files found there to a mingw objdump,
10009        # which wouldn't understand a cygwinified path. Ahh.
10010        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10011      else
10012        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10013      fi
10014      ;;
10015    pw32*)
10016      # pw32 DLLs use 'pw' prefix rather than 'lib'
10017      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018      ;;
10019    esac
10020    ;;
10021
10022  *)
10023    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10024    ;;
10025  esac
10026  dynamic_linker='Win32 ld.exe'
10027  # FIXME: first we should search . and the directory the executable is in
10028  shlibpath_var=PATH
10029  ;;
10030
10031darwin* | rhapsody*)
10032  dynamic_linker="$host_os dyld"
10033  version_type=darwin
10034  need_lib_prefix=no
10035  need_version=no
10036  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037  soname_spec='${libname}${release}${major}$shared_ext'
10038  shlibpath_overrides_runpath=yes
10039  shlibpath_var=DYLD_LIBRARY_PATH
10040  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10041
10042  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10043  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10044  ;;
10045
10046dgux*)
10047  version_type=linux
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  ;;
10054
10055freebsd1*)
10056  dynamic_linker=no
10057  ;;
10058
10059freebsd* | dragonfly*)
10060  # DragonFly does not have aout.  When/if they implement a new
10061  # versioning mechanism, adjust this.
10062  if test -x /usr/bin/objformat; then
10063    objformat=`/usr/bin/objformat`
10064  else
10065    case $host_os in
10066    freebsd[123]*) objformat=aout ;;
10067    *) objformat=elf ;;
10068    esac
10069  fi
10070  version_type=freebsd-$objformat
10071  case $version_type in
10072    freebsd-elf*)
10073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10074      need_version=no
10075      need_lib_prefix=no
10076      ;;
10077    freebsd-*)
10078      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10079      need_version=yes
10080      ;;
10081  esac
10082  shlibpath_var=LD_LIBRARY_PATH
10083  case $host_os in
10084  freebsd2*)
10085    shlibpath_overrides_runpath=yes
10086    ;;
10087  freebsd3.[01]* | freebsdelf3.[01]*)
10088    shlibpath_overrides_runpath=yes
10089    hardcode_into_libs=yes
10090    ;;
10091  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10092  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10093    shlibpath_overrides_runpath=no
10094    hardcode_into_libs=yes
10095    ;;
10096  *) # from 4.6 on, and DragonFly
10097    shlibpath_overrides_runpath=yes
10098    hardcode_into_libs=yes
10099    ;;
10100  esac
10101  ;;
10102
10103gnu*)
10104  version_type=linux
10105  need_lib_prefix=no
10106  need_version=no
10107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10108  soname_spec='${libname}${release}${shared_ext}$major'
10109  shlibpath_var=LD_LIBRARY_PATH
10110  hardcode_into_libs=yes
10111  ;;
10112
10113hpux9* | hpux10* | hpux11*)
10114  # Give a soname corresponding to the major version so that dld.sl refuses to
10115  # link against other versions.
10116  version_type=sunos
10117  need_lib_prefix=no
10118  need_version=no
10119  case $host_cpu in
10120  ia64*)
10121    shrext_cmds='.so'
10122    hardcode_into_libs=yes
10123    dynamic_linker="$host_os dld.so"
10124    shlibpath_var=LD_LIBRARY_PATH
10125    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127    soname_spec='${libname}${release}${shared_ext}$major'
10128    if test "X$HPUX_IA64_MODE" = X32; then
10129      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10130    else
10131      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10132    fi
10133    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10134    ;;
10135  hppa*64*)
10136    shrext_cmds='.sl'
10137    hardcode_into_libs=yes
10138    dynamic_linker="$host_os dld.sl"
10139    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10140    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142    soname_spec='${libname}${release}${shared_ext}$major'
10143    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10144    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10145    ;;
10146  *)
10147    shrext_cmds='.sl'
10148    dynamic_linker="$host_os dld.sl"
10149    shlibpath_var=SHLIB_PATH
10150    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152    soname_spec='${libname}${release}${shared_ext}$major'
10153    ;;
10154  esac
10155  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10156  postinstall_cmds='chmod 555 $lib'
10157  ;;
10158
10159interix[3-9]*)
10160  version_type=linux
10161  need_lib_prefix=no
10162  need_version=no
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10166  shlibpath_var=LD_LIBRARY_PATH
10167  shlibpath_overrides_runpath=no
10168  hardcode_into_libs=yes
10169  ;;
10170
10171irix5* | irix6* | nonstopux*)
10172  case $host_os in
10173    nonstopux*) version_type=nonstopux ;;
10174    *)
10175	if test "$lt_cv_prog_gnu_ld" = yes; then
10176		version_type=linux
10177	else
10178		version_type=irix
10179	fi ;;
10180  esac
10181  need_lib_prefix=no
10182  need_version=no
10183  soname_spec='${libname}${release}${shared_ext}$major'
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10185  case $host_os in
10186  irix5* | nonstopux*)
10187    libsuff= shlibsuff=
10188    ;;
10189  *)
10190    case $LD in # libtool.m4 will add one of these switches to LD
10191    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10192      libsuff= shlibsuff= libmagic=32-bit;;
10193    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10194      libsuff=32 shlibsuff=N32 libmagic=N32;;
10195    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10196      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10197    *) libsuff= shlibsuff= libmagic=never-match;;
10198    esac
10199    ;;
10200  esac
10201  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10202  shlibpath_overrides_runpath=no
10203  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10204  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10205  hardcode_into_libs=yes
10206  ;;
10207
10208# No shared lib support for Linux oldld, aout, or coff.
10209linux*oldld* | linux*aout* | linux*coff*)
10210  dynamic_linker=no
10211  ;;
10212
10213# This must be Linux ELF.
10214linux* | k*bsd*-gnu)
10215  version_type=linux
10216  need_lib_prefix=no
10217  need_version=no
10218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219  soname_spec='${libname}${release}${shared_ext}$major'
10220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10221  shlibpath_var=LD_LIBRARY_PATH
10222  shlibpath_overrides_runpath=no
10223  # Some binutils ld are patched to set DT_RUNPATH
10224  save_LDFLAGS=$LDFLAGS
10225  save_libdir=$libdir
10226  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10227       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229/* end confdefs.h.  */
10230
10231int
10232main ()
10233{
10234
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239if ac_fn_c_try_link "$LINENO"; then :
10240  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10241  shlibpath_overrides_runpath=yes
10242fi
10243fi
10244rm -f core conftest.err conftest.$ac_objext \
10245    conftest$ac_exeext conftest.$ac_ext
10246  LDFLAGS=$save_LDFLAGS
10247  libdir=$save_libdir
10248
10249  # This implies no fast_install, which is unacceptable.
10250  # Some rework will be needed to allow for fast_install
10251  # before this can be enabled.
10252  hardcode_into_libs=yes
10253
10254  # Add ABI-specific directories to the system library path.
10255  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10256
10257  # Append ld.so.conf contents to the search path
10258  if test -f /etc/ld.so.conf; then
10259    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' ' '`
10260    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10261  fi
10262
10263  # We used to test for /lib/ld.so.1 and disable shared libraries on
10264  # powerpc, because MkLinux only supported shared libraries with the
10265  # GNU dynamic linker.  Since this was broken with cross compilers,
10266  # most powerpc-linux boxes support dynamic linking these days and
10267  # people can always --disable-shared, the test was removed, and we
10268  # assume the GNU/Linux dynamic linker is in use.
10269  dynamic_linker='GNU/Linux ld.so'
10270  ;;
10271
10272netbsd*)
10273  version_type=sunos
10274  need_lib_prefix=no
10275  need_version=no
10276  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279    dynamic_linker='NetBSD (a.out) ld.so'
10280  else
10281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282    soname_spec='${libname}${release}${shared_ext}$major'
10283    dynamic_linker='NetBSD ld.elf_so'
10284  fi
10285  shlibpath_var=LD_LIBRARY_PATH
10286  shlibpath_overrides_runpath=yes
10287  hardcode_into_libs=yes
10288  ;;
10289
10290newsos6)
10291  version_type=linux
10292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293  shlibpath_var=LD_LIBRARY_PATH
10294  shlibpath_overrides_runpath=yes
10295  ;;
10296
10297*nto* | *qnx*)
10298  version_type=qnx
10299  need_lib_prefix=no
10300  need_version=no
10301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302  soname_spec='${libname}${release}${shared_ext}$major'
10303  shlibpath_var=LD_LIBRARY_PATH
10304  shlibpath_overrides_runpath=no
10305  hardcode_into_libs=yes
10306  dynamic_linker='ldqnx.so'
10307  ;;
10308
10309openbsd*)
10310  version_type=sunos
10311  sys_lib_dlsearch_path_spec="/usr/lib"
10312  need_lib_prefix=no
10313  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10314  case $host_os in
10315    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10316    *)				need_version=no  ;;
10317  esac
10318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320  shlibpath_var=LD_LIBRARY_PATH
10321  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10322    case $host_os in
10323      openbsd2.[89] | openbsd2.[89].*)
10324	shlibpath_overrides_runpath=no
10325	;;
10326      *)
10327	shlibpath_overrides_runpath=yes
10328	;;
10329      esac
10330  else
10331    shlibpath_overrides_runpath=yes
10332  fi
10333  ;;
10334
10335os2*)
10336  libname_spec='$name'
10337  shrext_cmds=".dll"
10338  need_lib_prefix=no
10339  library_names_spec='$libname${shared_ext} $libname.a'
10340  dynamic_linker='OS/2 ld.exe'
10341  shlibpath_var=LIBPATH
10342  ;;
10343
10344osf3* | osf4* | osf5*)
10345  version_type=osf
10346  need_lib_prefix=no
10347  need_version=no
10348  soname_spec='${libname}${release}${shared_ext}$major'
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353  ;;
10354
10355rdos*)
10356  dynamic_linker=no
10357  ;;
10358
10359solaris*)
10360  version_type=linux
10361  need_lib_prefix=no
10362  need_version=no
10363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364  soname_spec='${libname}${release}${shared_ext}$major'
10365  shlibpath_var=LD_LIBRARY_PATH
10366  shlibpath_overrides_runpath=yes
10367  hardcode_into_libs=yes
10368  # ldd complains unless libraries are executable
10369  postinstall_cmds='chmod +x $lib'
10370  ;;
10371
10372sunos4*)
10373  version_type=sunos
10374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376  shlibpath_var=LD_LIBRARY_PATH
10377  shlibpath_overrides_runpath=yes
10378  if test "$with_gnu_ld" = yes; then
10379    need_lib_prefix=no
10380  fi
10381  need_version=yes
10382  ;;
10383
10384sysv4 | sysv4.3*)
10385  version_type=linux
10386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387  soname_spec='${libname}${release}${shared_ext}$major'
10388  shlibpath_var=LD_LIBRARY_PATH
10389  case $host_vendor in
10390    sni)
10391      shlibpath_overrides_runpath=no
10392      need_lib_prefix=no
10393      runpath_var=LD_RUN_PATH
10394      ;;
10395    siemens)
10396      need_lib_prefix=no
10397      ;;
10398    motorola)
10399      need_lib_prefix=no
10400      need_version=no
10401      shlibpath_overrides_runpath=no
10402      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403      ;;
10404  esac
10405  ;;
10406
10407sysv4*MP*)
10408  if test -d /usr/nec ;then
10409    version_type=linux
10410    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411    soname_spec='$libname${shared_ext}.$major'
10412    shlibpath_var=LD_LIBRARY_PATH
10413  fi
10414  ;;
10415
10416sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10417  version_type=freebsd-elf
10418  need_lib_prefix=no
10419  need_version=no
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  shlibpath_overrides_runpath=yes
10424  hardcode_into_libs=yes
10425  if test "$with_gnu_ld" = yes; then
10426    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10427  else
10428    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10429    case $host_os in
10430      sco3.2v5*)
10431        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10432	;;
10433    esac
10434  fi
10435  sys_lib_dlsearch_path_spec='/usr/lib'
10436  ;;
10437
10438tpf*)
10439  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10440  version_type=linux
10441  need_lib_prefix=no
10442  need_version=no
10443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=no
10446  hardcode_into_libs=yes
10447  ;;
10448
10449uts4*)
10450  version_type=linux
10451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452  soname_spec='${libname}${release}${shared_ext}$major'
10453  shlibpath_var=LD_LIBRARY_PATH
10454  ;;
10455
10456*)
10457  dynamic_linker=no
10458  ;;
10459esac
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10461$as_echo "$dynamic_linker" >&6; }
10462test "$dynamic_linker" = no && can_build_shared=no
10463
10464variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10465if test "$GCC" = yes; then
10466  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10467fi
10468
10469if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10470  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10471fi
10472if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10473  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10474fi
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
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
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10563$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10564hardcode_action=
10565if test -n "$hardcode_libdir_flag_spec" ||
10566   test -n "$runpath_var" ||
10567   test "X$hardcode_automatic" = "Xyes" ; then
10568
10569  # We can hardcode non-existent directories.
10570  if test "$hardcode_direct" != no &&
10571     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572     # have to relink, otherwise we might link with an installed library
10573     # when we should be linking with a yet-to-be-installed one
10574     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575     test "$hardcode_minus_L" != no; then
10576    # Linking always hardcodes the temporary library directory.
10577    hardcode_action=relink
10578  else
10579    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580    hardcode_action=immediate
10581  fi
10582else
10583  # We cannot hardcode anything, or else we can only hardcode existing
10584  # directories.
10585  hardcode_action=unsupported
10586fi
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10588$as_echo "$hardcode_action" >&6; }
10589
10590if test "$hardcode_action" = relink ||
10591   test "$inherit_rpath" = yes; then
10592  # Fast installation is not supported
10593  enable_fast_install=no
10594elif test "$shlibpath_overrides_runpath" = yes ||
10595     test "$enable_shared" = no; then
10596  # Fast installation is not necessary
10597  enable_fast_install=needless
10598fi
10599
10600
10601
10602
10603
10604
10605  if test "x$enable_dlopen" != xyes; then
10606  enable_dlopen=unknown
10607  enable_dlopen_self=unknown
10608  enable_dlopen_self_static=unknown
10609else
10610  lt_cv_dlopen=no
10611  lt_cv_dlopen_libs=
10612
10613  case $host_os in
10614  beos*)
10615    lt_cv_dlopen="load_add_on"
10616    lt_cv_dlopen_libs=
10617    lt_cv_dlopen_self=yes
10618    ;;
10619
10620  mingw* | pw32* | cegcc*)
10621    lt_cv_dlopen="LoadLibrary"
10622    lt_cv_dlopen_libs=
10623    ;;
10624
10625  cygwin*)
10626    lt_cv_dlopen="dlopen"
10627    lt_cv_dlopen_libs=
10628    ;;
10629
10630  darwin*)
10631  # if libdl is installed we need to link against it
10632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10633$as_echo_n "checking for dlopen in -ldl... " >&6; }
10634if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10635  $as_echo_n "(cached) " >&6
10636else
10637  ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldl  $LIBS"
10639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h.  */
10641
10642/* Override any GCC internal prototype to avoid an error.
10643   Use char because int might match the return type of a GCC
10644   builtin and then its argument prototype would still apply.  */
10645#ifdef __cplusplus
10646extern "C"
10647#endif
10648char dlopen ();
10649int
10650main ()
10651{
10652return dlopen ();
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657if ac_fn_c_try_link "$LINENO"; then :
10658  ac_cv_lib_dl_dlopen=yes
10659else
10660  ac_cv_lib_dl_dlopen=no
10661fi
10662rm -f core conftest.err conftest.$ac_objext \
10663    conftest$ac_exeext conftest.$ac_ext
10664LIBS=$ac_check_lib_save_LIBS
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10667$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10668if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10669  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10670else
10671
10672    lt_cv_dlopen="dyld"
10673    lt_cv_dlopen_libs=
10674    lt_cv_dlopen_self=yes
10675
10676fi
10677
10678    ;;
10679
10680  *)
10681    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10682if test "x$ac_cv_func_shl_load" = x""yes; then :
10683  lt_cv_dlopen="shl_load"
10684else
10685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10686$as_echo_n "checking for shl_load in -ldld... " >&6; }
10687if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10688  $as_echo_n "(cached) " >&6
10689else
10690  ac_check_lib_save_LIBS=$LIBS
10691LIBS="-ldld  $LIBS"
10692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693/* end confdefs.h.  */
10694
10695/* Override any GCC internal prototype to avoid an error.
10696   Use char because int might match the return type of a GCC
10697   builtin and then its argument prototype would still apply.  */
10698#ifdef __cplusplus
10699extern "C"
10700#endif
10701char shl_load ();
10702int
10703main ()
10704{
10705return shl_load ();
10706  ;
10707  return 0;
10708}
10709_ACEOF
10710if ac_fn_c_try_link "$LINENO"; then :
10711  ac_cv_lib_dld_shl_load=yes
10712else
10713  ac_cv_lib_dld_shl_load=no
10714fi
10715rm -f core conftest.err conftest.$ac_objext \
10716    conftest$ac_exeext conftest.$ac_ext
10717LIBS=$ac_check_lib_save_LIBS
10718fi
10719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10720$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10721if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10722  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10723else
10724  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10725if test "x$ac_cv_func_dlopen" = x""yes; then :
10726  lt_cv_dlopen="dlopen"
10727else
10728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10729$as_echo_n "checking for dlopen in -ldl... " >&6; }
10730if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  ac_check_lib_save_LIBS=$LIBS
10734LIBS="-ldl  $LIBS"
10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739   Use char because int might match the return type of a GCC
10740   builtin and then its argument prototype would still apply.  */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char dlopen ();
10745int
10746main ()
10747{
10748return dlopen ();
10749  ;
10750  return 0;
10751}
10752_ACEOF
10753if ac_fn_c_try_link "$LINENO"; then :
10754  ac_cv_lib_dl_dlopen=yes
10755else
10756  ac_cv_lib_dl_dlopen=no
10757fi
10758rm -f core conftest.err conftest.$ac_objext \
10759    conftest$ac_exeext conftest.$ac_ext
10760LIBS=$ac_check_lib_save_LIBS
10761fi
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10763$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10764if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10765  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10766else
10767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10768$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10769if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  ac_check_lib_save_LIBS=$LIBS
10773LIBS="-lsvld  $LIBS"
10774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775/* end confdefs.h.  */
10776
10777/* Override any GCC internal prototype to avoid an error.
10778   Use char because int might match the return type of a GCC
10779   builtin and then its argument prototype would still apply.  */
10780#ifdef __cplusplus
10781extern "C"
10782#endif
10783char dlopen ();
10784int
10785main ()
10786{
10787return dlopen ();
10788  ;
10789  return 0;
10790}
10791_ACEOF
10792if ac_fn_c_try_link "$LINENO"; then :
10793  ac_cv_lib_svld_dlopen=yes
10794else
10795  ac_cv_lib_svld_dlopen=no
10796fi
10797rm -f core conftest.err conftest.$ac_objext \
10798    conftest$ac_exeext conftest.$ac_ext
10799LIBS=$ac_check_lib_save_LIBS
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10802$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10803if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10804  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10805else
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10807$as_echo_n "checking for dld_link in -ldld... " >&6; }
10808if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10809  $as_echo_n "(cached) " >&6
10810else
10811  ac_check_lib_save_LIBS=$LIBS
10812LIBS="-ldld  $LIBS"
10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817   Use char because int might match the return type of a GCC
10818   builtin and then its argument prototype would still apply.  */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char dld_link ();
10823int
10824main ()
10825{
10826return dld_link ();
10827  ;
10828  return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"; then :
10832  ac_cv_lib_dld_dld_link=yes
10833else
10834  ac_cv_lib_dld_dld_link=no
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837    conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10841$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10842if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10843  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10844fi
10845
10846
10847fi
10848
10849
10850fi
10851
10852
10853fi
10854
10855
10856fi
10857
10858
10859fi
10860
10861    ;;
10862  esac
10863
10864  if test "x$lt_cv_dlopen" != xno; then
10865    enable_dlopen=yes
10866  else
10867    enable_dlopen=no
10868  fi
10869
10870  case $lt_cv_dlopen in
10871  dlopen)
10872    save_CPPFLAGS="$CPPFLAGS"
10873    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10874
10875    save_LDFLAGS="$LDFLAGS"
10876    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10877
10878    save_LIBS="$LIBS"
10879    LIBS="$lt_cv_dlopen_libs $LIBS"
10880
10881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10882$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10883if test "${lt_cv_dlopen_self+set}" = set; then :
10884  $as_echo_n "(cached) " >&6
10885else
10886  	  if test "$cross_compiling" = yes; then :
10887  lt_cv_dlopen_self=cross
10888else
10889  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890  lt_status=$lt_dlunknown
10891  cat > conftest.$ac_ext <<_LT_EOF
10892#line 10892 "configure"
10893#include "confdefs.h"
10894
10895#if HAVE_DLFCN_H
10896#include <dlfcn.h>
10897#endif
10898
10899#include <stdio.h>
10900
10901#ifdef RTLD_GLOBAL
10902#  define LT_DLGLOBAL		RTLD_GLOBAL
10903#else
10904#  ifdef DL_GLOBAL
10905#    define LT_DLGLOBAL		DL_GLOBAL
10906#  else
10907#    define LT_DLGLOBAL		0
10908#  endif
10909#endif
10910
10911/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912   find out it does not work in some platform. */
10913#ifndef LT_DLLAZY_OR_NOW
10914#  ifdef RTLD_LAZY
10915#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10916#  else
10917#    ifdef DL_LAZY
10918#      define LT_DLLAZY_OR_NOW		DL_LAZY
10919#    else
10920#      ifdef RTLD_NOW
10921#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10922#      else
10923#        ifdef DL_NOW
10924#          define LT_DLLAZY_OR_NOW	DL_NOW
10925#        else
10926#          define LT_DLLAZY_OR_NOW	0
10927#        endif
10928#      endif
10929#    endif
10930#  endif
10931#endif
10932
10933void fnord() { int i=42;}
10934int main ()
10935{
10936  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937  int status = $lt_dlunknown;
10938
10939  if (self)
10940    {
10941      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10942      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943      /* dlclose (self); */
10944    }
10945  else
10946    puts (dlerror ());
10947
10948  return status;
10949}
10950_LT_EOF
10951  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10952  (eval $ac_link) 2>&5
10953  ac_status=$?
10954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10956    (./conftest; exit; ) >&5 2>/dev/null
10957    lt_status=$?
10958    case x$lt_status in
10959      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10960      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10961      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10962    esac
10963  else :
10964    # compilation failed
10965    lt_cv_dlopen_self=no
10966  fi
10967fi
10968rm -fr conftest*
10969
10970
10971fi
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10973$as_echo "$lt_cv_dlopen_self" >&6; }
10974
10975    if test "x$lt_cv_dlopen_self" = xyes; then
10976      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10977      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10978$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10979if test "${lt_cv_dlopen_self_static+set}" = set; then :
10980  $as_echo_n "(cached) " >&6
10981else
10982  	  if test "$cross_compiling" = yes; then :
10983  lt_cv_dlopen_self_static=cross
10984else
10985  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10986  lt_status=$lt_dlunknown
10987  cat > conftest.$ac_ext <<_LT_EOF
10988#line 10988 "configure"
10989#include "confdefs.h"
10990
10991#if HAVE_DLFCN_H
10992#include <dlfcn.h>
10993#endif
10994
10995#include <stdio.h>
10996
10997#ifdef RTLD_GLOBAL
10998#  define LT_DLGLOBAL		RTLD_GLOBAL
10999#else
11000#  ifdef DL_GLOBAL
11001#    define LT_DLGLOBAL		DL_GLOBAL
11002#  else
11003#    define LT_DLGLOBAL		0
11004#  endif
11005#endif
11006
11007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11008   find out it does not work in some platform. */
11009#ifndef LT_DLLAZY_OR_NOW
11010#  ifdef RTLD_LAZY
11011#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11012#  else
11013#    ifdef DL_LAZY
11014#      define LT_DLLAZY_OR_NOW		DL_LAZY
11015#    else
11016#      ifdef RTLD_NOW
11017#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11018#      else
11019#        ifdef DL_NOW
11020#          define LT_DLLAZY_OR_NOW	DL_NOW
11021#        else
11022#          define LT_DLLAZY_OR_NOW	0
11023#        endif
11024#      endif
11025#    endif
11026#  endif
11027#endif
11028
11029void fnord() { int i=42;}
11030int main ()
11031{
11032  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11033  int status = $lt_dlunknown;
11034
11035  if (self)
11036    {
11037      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11038      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11039      /* dlclose (self); */
11040    }
11041  else
11042    puts (dlerror ());
11043
11044  return status;
11045}
11046_LT_EOF
11047  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11048  (eval $ac_link) 2>&5
11049  ac_status=$?
11050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11052    (./conftest; exit; ) >&5 2>/dev/null
11053    lt_status=$?
11054    case x$lt_status in
11055      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11056      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11057      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11058    esac
11059  else :
11060    # compilation failed
11061    lt_cv_dlopen_self_static=no
11062  fi
11063fi
11064rm -fr conftest*
11065
11066
11067fi
11068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11069$as_echo "$lt_cv_dlopen_self_static" >&6; }
11070    fi
11071
11072    CPPFLAGS="$save_CPPFLAGS"
11073    LDFLAGS="$save_LDFLAGS"
11074    LIBS="$save_LIBS"
11075    ;;
11076  esac
11077
11078  case $lt_cv_dlopen_self in
11079  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11080  *) enable_dlopen_self=unknown ;;
11081  esac
11082
11083  case $lt_cv_dlopen_self_static in
11084  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11085  *) enable_dlopen_self_static=unknown ;;
11086  esac
11087fi
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105striplib=
11106old_striplib=
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11108$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11109if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11110  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11111  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113$as_echo "yes" >&6; }
11114else
11115# FIXME - insert some real tests, host_os isn't really good enough
11116  case $host_os in
11117  darwin*)
11118    if test -n "$STRIP" ; then
11119      striplib="$STRIP -x"
11120      old_striplib="$STRIP -S"
11121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11122$as_echo "yes" >&6; }
11123    else
11124      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126    fi
11127    ;;
11128  *)
11129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131    ;;
11132  esac
11133fi
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146  # Report which library types will actually be built
11147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11148$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11150$as_echo "$can_build_shared" >&6; }
11151
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11153$as_echo_n "checking whether to build shared libraries... " >&6; }
11154  test "$can_build_shared" = "no" && enable_shared=no
11155
11156  # On AIX, shared libraries and static libraries use the same namespace, and
11157  # are all built from PIC.
11158  case $host_os in
11159  aix3*)
11160    test "$enable_shared" = yes && enable_static=no
11161    if test -n "$RANLIB"; then
11162      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11163      postinstall_cmds='$RANLIB $lib'
11164    fi
11165    ;;
11166
11167  aix[4-9]*)
11168    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11169      test "$enable_shared" = yes && enable_static=no
11170    fi
11171    ;;
11172  esac
11173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11174$as_echo "$enable_shared" >&6; }
11175
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11177$as_echo_n "checking whether to build static libraries... " >&6; }
11178  # Make sure either enable_shared or enable_static is yes.
11179  test "$enable_shared" = yes || enable_static=yes
11180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11181$as_echo "$enable_static" >&6; }
11182
11183
11184
11185
11186fi
11187ac_ext=c
11188ac_cpp='$CPP $CPPFLAGS'
11189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192
11193CC="$lt_save_CC"
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207        ac_config_commands="$ac_config_commands libtool"
11208
11209
11210
11211
11212# Only expand once:
11213
11214
11215
11216pkg_modules="gtk+-2.0 >= 2.12.0 glib-2.0 >= 2.10.0 cairo >= 1.4.0"
11217
11218
11219if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11220	if test -n "$ac_tool_prefix"; then
11221  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11222set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11226  $as_echo_n "(cached) " >&6
11227else
11228  case $PKG_CONFIG in
11229  [\\/]* | ?:[\\/]*)
11230  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11231  ;;
11232  *)
11233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236  IFS=$as_save_IFS
11237  test -z "$as_dir" && as_dir=.
11238    for ac_exec_ext in '' $ac_executable_extensions; do
11239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11240    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242    break 2
11243  fi
11244done
11245  done
11246IFS=$as_save_IFS
11247
11248  ;;
11249esac
11250fi
11251PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11252if test -n "$PKG_CONFIG"; then
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11254$as_echo "$PKG_CONFIG" >&6; }
11255else
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257$as_echo "no" >&6; }
11258fi
11259
11260
11261fi
11262if test -z "$ac_cv_path_PKG_CONFIG"; then
11263  ac_pt_PKG_CONFIG=$PKG_CONFIG
11264  # Extract the first word of "pkg-config", so it can be a program name with args.
11265set dummy pkg-config; ac_word=$2
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267$as_echo_n "checking for $ac_word... " >&6; }
11268if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271  case $ac_pt_PKG_CONFIG in
11272  [\\/]* | ?:[\\/]*)
11273  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11274  ;;
11275  *)
11276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
11278do
11279  IFS=$as_save_IFS
11280  test -z "$as_dir" && as_dir=.
11281    for ac_exec_ext in '' $ac_executable_extensions; do
11282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285    break 2
11286  fi
11287done
11288  done
11289IFS=$as_save_IFS
11290
11291  ;;
11292esac
11293fi
11294ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11295if test -n "$ac_pt_PKG_CONFIG"; then
11296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11297$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11298else
11299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300$as_echo "no" >&6; }
11301fi
11302
11303  if test "x$ac_pt_PKG_CONFIG" = x; then
11304    PKG_CONFIG=""
11305  else
11306    case $cross_compiling:$ac_tool_warned in
11307yes:)
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11310ac_tool_warned=yes ;;
11311esac
11312    PKG_CONFIG=$ac_pt_PKG_CONFIG
11313  fi
11314else
11315  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11316fi
11317
11318fi
11319if test -n "$PKG_CONFIG"; then
11320	_pkg_min_version=0.9.0
11321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11322$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11323	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11324		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325$as_echo "yes" >&6; }
11326	else
11327		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328$as_echo "no" >&6; }
11329		PKG_CONFIG=""
11330	fi
11331
11332fi
11333
11334pkg_failed=no
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5
11336$as_echo_n "checking for PACKAGE... " >&6; }
11337
11338if test -n "$PACKAGE_CFLAGS"; then
11339    pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
11340 elif test -n "$PKG_CONFIG"; then
11341    if test -n "$PKG_CONFIG" && \
11342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
11343  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
11344  ac_status=$?
11345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11346  test $ac_status = 0; }; then
11347  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
11348else
11349  pkg_failed=yes
11350fi
11351 else
11352    pkg_failed=untried
11353fi
11354if test -n "$PACKAGE_LIBS"; then
11355    pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
11356 elif test -n "$PKG_CONFIG"; then
11357    if test -n "$PKG_CONFIG" && \
11358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
11359  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
11360  ac_status=$?
11361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11362  test $ac_status = 0; }; then
11363  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
11364else
11365  pkg_failed=yes
11366fi
11367 else
11368    pkg_failed=untried
11369fi
11370
11371
11372
11373if test $pkg_failed = yes; then
11374
11375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11376        _pkg_short_errors_supported=yes
11377else
11378        _pkg_short_errors_supported=no
11379fi
11380        if test $_pkg_short_errors_supported = yes; then
11381	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
11382        else
11383	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
11384        fi
11385	# Put the nasty error message in config.log where it belongs
11386	echo "$PACKAGE_PKG_ERRORS" >&5
11387
11388	as_fn_error "Package requirements ($pkg_modules) were not met:
11389
11390$PACKAGE_PKG_ERRORS
11391
11392Consider adjusting the PKG_CONFIG_PATH environment variable if you
11393installed software in a non-standard prefix.
11394
11395Alternatively, you may set the environment variables PACKAGE_CFLAGS
11396and PACKAGE_LIBS to avoid the need to call pkg-config.
11397See the pkg-config man page for more details.
11398" "$LINENO" 5
11399elif test $pkg_failed = untried; then
11400	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11402as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
11403is in your PATH or set the PKG_CONFIG environment variable to the full
11404path to pkg-config.
11405
11406Alternatively, you may set the environment variables PACKAGE_CFLAGS
11407and PACKAGE_LIBS to avoid the need to call pkg-config.
11408See the pkg-config man page for more details.
11409
11410To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11411See \`config.log' for more details." "$LINENO" 5; }
11412else
11413	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
11414	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
11415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11416$as_echo "yes" >&6; }
11417	:
11418fi
11419
11420
11421
11422GETTEXT_PACKAGE=goocanvas
11423
11424
11425cat >>confdefs.h <<_ACEOF
11426#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11427_ACEOF
11428
11429
11430ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
11431
11432   for ac_header in locale.h
11433do :
11434  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11435if test "x$ac_cv_header_locale_h" = x""yes; then :
11436  cat >>confdefs.h <<_ACEOF
11437#define HAVE_LOCALE_H 1
11438_ACEOF
11439
11440fi
11441
11442done
11443
11444    if test $ac_cv_header_locale_h = yes; then
11445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11446$as_echo_n "checking for LC_MESSAGES... " >&6; }
11447if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11448  $as_echo_n "(cached) " >&6
11449else
11450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451/* end confdefs.h.  */
11452#include <locale.h>
11453int
11454main ()
11455{
11456return LC_MESSAGES
11457  ;
11458  return 0;
11459}
11460_ACEOF
11461if ac_fn_c_try_link "$LINENO"; then :
11462  am_cv_val_LC_MESSAGES=yes
11463else
11464  am_cv_val_LC_MESSAGES=no
11465fi
11466rm -f core conftest.err conftest.$ac_objext \
11467    conftest$ac_exeext conftest.$ac_ext
11468fi
11469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11470$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11471    if test $am_cv_val_LC_MESSAGES = yes; then
11472
11473$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11474
11475    fi
11476  fi
11477     USE_NLS=yes
11478
11479
11480    gt_cv_have_gettext=no
11481
11482    CATOBJEXT=NONE
11483    XGETTEXT=:
11484    INTLLIBS=
11485
11486    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11487if test "x$ac_cv_header_libintl_h" = x""yes; then :
11488  gt_cv_func_dgettext_libintl="no"
11489      libintl_extra_libs=""
11490
11491      #
11492      # First check in libc
11493      #
11494      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
11495$as_echo_n "checking for ngettext in libc... " >&6; }
11496if test "${gt_cv_func_ngettext_libc+set}" = set; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500/* end confdefs.h.  */
11501
11502#include <libintl.h>
11503
11504int
11505main ()
11506{
11507return !ngettext ("","", 1)
11508  ;
11509  return 0;
11510}
11511_ACEOF
11512if ac_fn_c_try_link "$LINENO"; then :
11513  gt_cv_func_ngettext_libc=yes
11514else
11515  gt_cv_func_ngettext_libc=no
11516fi
11517rm -f core conftest.err conftest.$ac_objext \
11518    conftest$ac_exeext conftest.$ac_ext
11519
11520fi
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
11522$as_echo "$gt_cv_func_ngettext_libc" >&6; }
11523
11524      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11525	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
11526$as_echo_n "checking for dgettext in libc... " >&6; }
11527if test "${gt_cv_func_dgettext_libc+set}" = set; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531/* end confdefs.h.  */
11532
11533#include <libintl.h>
11534
11535int
11536main ()
11537{
11538return !dgettext ("","")
11539  ;
11540  return 0;
11541}
11542_ACEOF
11543if ac_fn_c_try_link "$LINENO"; then :
11544  gt_cv_func_dgettext_libc=yes
11545else
11546  gt_cv_func_dgettext_libc=no
11547fi
11548rm -f core conftest.err conftest.$ac_objext \
11549    conftest$ac_exeext conftest.$ac_ext
11550
11551fi
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
11553$as_echo "$gt_cv_func_dgettext_libc" >&6; }
11554      fi
11555
11556      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11557        for ac_func in bind_textdomain_codeset
11558do :
11559  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11560if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11561  cat >>confdefs.h <<_ACEOF
11562#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11563_ACEOF
11564
11565fi
11566done
11567
11568      fi
11569
11570      #
11571      # If we don't have everything we want, check in libintl
11572      #
11573      if test "$gt_cv_func_dgettext_libc" != "yes" \
11574	 || test "$gt_cv_func_ngettext_libc" != "yes" \
11575         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11576
11577        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
11578$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11579if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
11580  $as_echo_n "(cached) " >&6
11581else
11582  ac_check_lib_save_LIBS=$LIBS
11583LIBS="-lintl  $LIBS"
11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585/* end confdefs.h.  */
11586
11587/* Override any GCC internal prototype to avoid an error.
11588   Use char because int might match the return type of a GCC
11589   builtin and then its argument prototype would still apply.  */
11590#ifdef __cplusplus
11591extern "C"
11592#endif
11593char bindtextdomain ();
11594int
11595main ()
11596{
11597return bindtextdomain ();
11598  ;
11599  return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_link "$LINENO"; then :
11603  ac_cv_lib_intl_bindtextdomain=yes
11604else
11605  ac_cv_lib_intl_bindtextdomain=no
11606fi
11607rm -f core conftest.err conftest.$ac_objext \
11608    conftest$ac_exeext conftest.$ac_ext
11609LIBS=$ac_check_lib_save_LIBS
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11612$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11613if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
11614  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11615$as_echo_n "checking for ngettext in -lintl... " >&6; }
11616if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11617  $as_echo_n "(cached) " >&6
11618else
11619  ac_check_lib_save_LIBS=$LIBS
11620LIBS="-lintl  $LIBS"
11621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623
11624/* Override any GCC internal prototype to avoid an error.
11625   Use char because int might match the return type of a GCC
11626   builtin and then its argument prototype would still apply.  */
11627#ifdef __cplusplus
11628extern "C"
11629#endif
11630char ngettext ();
11631int
11632main ()
11633{
11634return ngettext ();
11635  ;
11636  return 0;
11637}
11638_ACEOF
11639if ac_fn_c_try_link "$LINENO"; then :
11640  ac_cv_lib_intl_ngettext=yes
11641else
11642  ac_cv_lib_intl_ngettext=no
11643fi
11644rm -f core conftest.err conftest.$ac_objext \
11645    conftest$ac_exeext conftest.$ac_ext
11646LIBS=$ac_check_lib_save_LIBS
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11649$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11650if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11652$as_echo_n "checking for dgettext in -lintl... " >&6; }
11653if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
11654  $as_echo_n "(cached) " >&6
11655else
11656  ac_check_lib_save_LIBS=$LIBS
11657LIBS="-lintl  $LIBS"
11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660
11661/* Override any GCC internal prototype to avoid an error.
11662   Use char because int might match the return type of a GCC
11663   builtin and then its argument prototype would still apply.  */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667char dgettext ();
11668int
11669main ()
11670{
11671return dgettext ();
11672  ;
11673  return 0;
11674}
11675_ACEOF
11676if ac_fn_c_try_link "$LINENO"; then :
11677  ac_cv_lib_intl_dgettext=yes
11678else
11679  ac_cv_lib_intl_dgettext=no
11680fi
11681rm -f core conftest.err conftest.$ac_objext \
11682    conftest$ac_exeext conftest.$ac_ext
11683LIBS=$ac_check_lib_save_LIBS
11684fi
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11686$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11687if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
11688  gt_cv_func_dgettext_libintl=yes
11689fi
11690
11691fi
11692
11693fi
11694
11695
11696	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11697	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
11698$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11699	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11700$as_echo "" >&6; }
11701  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11702$as_echo_n "checking for ngettext in -lintl... " >&6; }
11703if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11704  $as_echo_n "(cached) " >&6
11705else
11706  ac_check_lib_save_LIBS=$LIBS
11707LIBS="-lintl -liconv $LIBS"
11708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709/* end confdefs.h.  */
11710
11711/* Override any GCC internal prototype to avoid an error.
11712   Use char because int might match the return type of a GCC
11713   builtin and then its argument prototype would still apply.  */
11714#ifdef __cplusplus
11715extern "C"
11716#endif
11717char ngettext ();
11718int
11719main ()
11720{
11721return ngettext ();
11722  ;
11723  return 0;
11724}
11725_ACEOF
11726if ac_fn_c_try_link "$LINENO"; then :
11727  ac_cv_lib_intl_ngettext=yes
11728else
11729  ac_cv_lib_intl_ngettext=no
11730fi
11731rm -f core conftest.err conftest.$ac_objext \
11732    conftest$ac_exeext conftest.$ac_ext
11733LIBS=$ac_check_lib_save_LIBS
11734fi
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11736$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11737if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
11739$as_echo_n "checking for dcgettext in -lintl... " >&6; }
11740if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  ac_check_lib_save_LIBS=$LIBS
11744LIBS="-lintl -liconv $LIBS"
11745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746/* end confdefs.h.  */
11747
11748/* Override any GCC internal prototype to avoid an error.
11749   Use char because int might match the return type of a GCC
11750   builtin and then its argument prototype would still apply.  */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
11754char dcgettext ();
11755int
11756main ()
11757{
11758return dcgettext ();
11759  ;
11760  return 0;
11761}
11762_ACEOF
11763if ac_fn_c_try_link "$LINENO"; then :
11764  ac_cv_lib_intl_dcgettext=yes
11765else
11766  ac_cv_lib_intl_dcgettext=no
11767fi
11768rm -f core conftest.err conftest.$ac_objext \
11769    conftest$ac_exeext conftest.$ac_ext
11770LIBS=$ac_check_lib_save_LIBS
11771fi
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
11773$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11774if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
11775  gt_cv_func_dgettext_libintl=yes
11776			libintl_extra_libs=-liconv
11777else
11778  :
11779fi
11780
11781else
11782  :
11783fi
11784
11785        fi
11786
11787        #
11788        # If we found libintl, then check in it for bind_textdomain_codeset();
11789        # we'll prefer libc if neither have bind_textdomain_codeset(),
11790        # and both have dgettext and ngettext
11791        #
11792        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11793          glib_save_LIBS="$LIBS"
11794          LIBS="$LIBS -lintl $libintl_extra_libs"
11795          unset ac_cv_func_bind_textdomain_codeset
11796          for ac_func in bind_textdomain_codeset
11797do :
11798  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11799if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11800  cat >>confdefs.h <<_ACEOF
11801#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11802_ACEOF
11803
11804fi
11805done
11806
11807          LIBS="$glib_save_LIBS"
11808
11809          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11810            gt_cv_func_dgettext_libc=no
11811          else
11812            if test "$gt_cv_func_dgettext_libc" = "yes" \
11813		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
11814              gt_cv_func_dgettext_libintl=no
11815            fi
11816          fi
11817        fi
11818      fi
11819
11820      if test "$gt_cv_func_dgettext_libc" = "yes" \
11821	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
11822        gt_cv_have_gettext=yes
11823      fi
11824
11825      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11826        INTLLIBS="-lintl $libintl_extra_libs"
11827      fi
11828
11829      if test "$gt_cv_have_gettext" = "yes"; then
11830
11831$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11832
11833	# Extract the first word of "msgfmt", so it can be a program name with args.
11834set dummy msgfmt; ac_word=$2
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11836$as_echo_n "checking for $ac_word... " >&6; }
11837if test "${ac_cv_path_MSGFMT+set}" = set; then :
11838  $as_echo_n "(cached) " >&6
11839else
11840  case "$MSGFMT" in
11841  /*)
11842  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11843  ;;
11844  *)
11845  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11846  for ac_dir in $PATH; do
11847    test -z "$ac_dir" && ac_dir=.
11848    if test -f $ac_dir/$ac_word; then
11849      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
11850	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11851	break
11852      fi
11853    fi
11854  done
11855  IFS="$ac_save_ifs"
11856  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
11857  ;;
11858esac
11859fi
11860MSGFMT="$ac_cv_path_MSGFMT"
11861if test "$MSGFMT" != "no"; then
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11863$as_echo "$MSGFMT" >&6; }
11864else
11865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
11867fi
11868	if test "$MSGFMT" != "no"; then
11869          glib_save_LIBS="$LIBS"
11870          LIBS="$LIBS $INTLLIBS"
11871	  for ac_func in dcgettext
11872do :
11873  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
11874if test "x$ac_cv_func_dcgettext" = x""yes; then :
11875  cat >>confdefs.h <<_ACEOF
11876#define HAVE_DCGETTEXT 1
11877_ACEOF
11878
11879fi
11880done
11881
11882	  MSGFMT_OPTS=
11883	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
11884$as_echo_n "checking if msgfmt accepts -c... " >&6; }
11885	  cat >conftest.foo <<_ACEOF
11886
11887msgid ""
11888msgstr ""
11889"Content-Type: text/plain; charset=UTF-8\n"
11890"Project-Id-Version: test 1.0\n"
11891"PO-Revision-Date: 2007-02-15 12:01+0100\n"
11892"Last-Translator: test <foo@bar.xx>\n"
11893"Language-Team: C <LL@li.org>\n"
11894"MIME-Version: 1.0\n"
11895"Content-Transfer-Encoding: 8bit\n"
11896
11897_ACEOF
11898if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
11899  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
11900  ac_status=$?
11901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902  test $ac_status = 0; }; then
11903  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904$as_echo "yes" >&6; }
11905else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
11907echo "$as_me: failed input was:" >&5
11908sed 's/^/| /' conftest.foo >&5
11909fi
11910
11911	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11912set dummy gmsgfmt; ac_word=$2
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  case $GMSGFMT in
11919  [\\/]* | ?:[\\/]*)
11920  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11921  ;;
11922  *)
11923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926  IFS=$as_save_IFS
11927  test -z "$as_dir" && as_dir=.
11928    for ac_exec_ext in '' $ac_executable_extensions; do
11929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11930    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11932    break 2
11933  fi
11934done
11935  done
11936IFS=$as_save_IFS
11937
11938  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11939  ;;
11940esac
11941fi
11942GMSGFMT=$ac_cv_path_GMSGFMT
11943if test -n "$GMSGFMT"; then
11944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11945$as_echo "$GMSGFMT" >&6; }
11946else
11947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
11949fi
11950
11951
11952	  # Extract the first word of "xgettext", so it can be a program name with args.
11953set dummy xgettext; ac_word=$2
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
11956if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  case "$XGETTEXT" in
11960  /*)
11961  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11962  ;;
11963  *)
11964  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11965  for ac_dir in $PATH; do
11966    test -z "$ac_dir" && ac_dir=.
11967    if test -f $ac_dir/$ac_word; then
11968      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
11969	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11970	break
11971      fi
11972    fi
11973  done
11974  IFS="$ac_save_ifs"
11975  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11976  ;;
11977esac
11978fi
11979XGETTEXT="$ac_cv_path_XGETTEXT"
11980if test "$XGETTEXT" != ":"; then
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11982$as_echo "$XGETTEXT" >&6; }
11983else
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986fi
11987
11988	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989/* end confdefs.h.  */
11990
11991int
11992main ()
11993{
11994extern int _nl_msg_cat_cntr;
11995			 return _nl_msg_cat_cntr
11996  ;
11997  return 0;
11998}
11999_ACEOF
12000if ac_fn_c_try_link "$LINENO"; then :
12001  CATOBJEXT=.gmo
12002             DATADIRNAME=share
12003else
12004  case $host in
12005	    *-*-solaris*)
12006	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12007if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
12008  CATOBJEXT=.gmo
12009               DATADIRNAME=share
12010else
12011  CATOBJEXT=.mo
12012               DATADIRNAME=lib
12013fi
12014
12015	    ;;
12016	    *)
12017	    CATOBJEXT=.mo
12018            DATADIRNAME=lib
12019	    ;;
12020	    esac
12021fi
12022rm -f core conftest.err conftest.$ac_objext \
12023    conftest$ac_exeext conftest.$ac_ext
12024          LIBS="$glib_save_LIBS"
12025	  INSTOBJEXT=.mo
12026	else
12027	  gt_cv_have_gettext=no
12028	fi
12029      fi
12030
12031fi
12032
12033
12034
12035    if test "$gt_cv_have_gettext" = "yes" ; then
12036
12037$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12038
12039    fi
12040
12041        if test "$XGETTEXT" != ":"; then
12042                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12043        : ;
12044      else
12045        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12046$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12047        XGETTEXT=":"
12048      fi
12049    fi
12050
12051    # We need to process the po/ directory.
12052    POSUB=po
12053
12054    ac_config_commands="$ac_config_commands default-1"
12055
12056
12057                for lang in $ALL_LINGUAS; do
12058      GMOFILES="$GMOFILES $lang.gmo"
12059      POFILES="$POFILES $lang.po"
12060    done
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074   if test "$gt_cv_have_gettext" = "yes"; then
12075     if test "x$ALL_LINGUAS" = "x"; then
12076       LINGUAS=
12077     else
12078       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12079$as_echo_n "checking for catalogs to be installed... " >&6; }
12080       NEW_LINGUAS=
12081       for presentlang in $ALL_LINGUAS; do
12082         useit=no
12083         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12084           desiredlanguages="$LINGUAS"
12085         else
12086           desiredlanguages="$ALL_LINGUAS"
12087         fi
12088         for desiredlang in $desiredlanguages; do
12089 	   # Use the presentlang catalog if desiredlang is
12090           #   a. equal to presentlang, or
12091           #   b. a variant of presentlang (because in this case,
12092           #      presentlang can be used as a fallback for messages
12093           #      which are not translated in the desiredlang catalog).
12094           case "$desiredlang" in
12095             "$presentlang"*) useit=yes;;
12096           esac
12097         done
12098         if test $useit = yes; then
12099           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12100         fi
12101       done
12102       LINGUAS=$NEW_LINGUAS
12103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12104$as_echo "$LINGUAS" >&6; }
12105     fi
12106
12107          if test -n "$LINGUAS"; then
12108       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12109     fi
12110   fi
12111
12112            MKINSTALLDIRS=
12113   if test -n "$ac_aux_dir"; then
12114     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12115   fi
12116   if test -z "$MKINSTALLDIRS"; then
12117     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12118   fi
12119
12120
12121         test -d po || mkdir po
12122   if test "x$srcdir" != "x."; then
12123     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12124       posrcprefix="$srcdir/"
12125     else
12126       posrcprefix="../$srcdir/"
12127     fi
12128   else
12129     posrcprefix="../"
12130   fi
12131   rm -f po/POTFILES
12132   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12133	< $srcdir/po/POTFILES.in > po/POTFILES
12134
12135
12136GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
12137
12138
12139GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
12140
12141
12142# Check whether --enable-rebuilds was given.
12143if test "${enable_rebuilds+set}" = set; then :
12144  enableval=$enable_rebuilds;
12145else
12146  enable_rebuilds=yes
12147fi
12148
12149
12150# define a MAINT-like variable REBUILD which is set if Perl
12151# and awk are found, so autogenerated sources can be rebuilt
12152for ac_prog in perl5 perl
12153do
12154  # Extract the first word of "$ac_prog", so it can be a program name with args.
12155set dummy $ac_prog; ac_word=$2
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
12158if test "${ac_cv_path_PERL+set}" = set; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161  case $PERL in
12162  [\\/]* | ?:[\\/]*)
12163  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12164  ;;
12165  *)
12166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169  IFS=$as_save_IFS
12170  test -z "$as_dir" && as_dir=.
12171    for ac_exec_ext in '' $ac_executable_extensions; do
12172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175    break 2
12176  fi
12177done
12178  done
12179IFS=$as_save_IFS
12180
12181  ;;
12182esac
12183fi
12184PERL=$ac_cv_path_PERL
12185if test -n "$PERL"; then
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12187$as_echo "$PERL" >&6; }
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191fi
12192
12193
12194  test -n "$PERL" && break
12195done
12196
12197REBUILD=\#
12198if test "x$enable_rebuilds" = "xyes" && \
12199     test -n "$PERL" && \
12200     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
12201  REBUILD=
12202fi
12203
12204
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
12206$as_echo_n "checking for some Win32 platform... " >&6; }
12207case "$host" in
12208  *-*-mingw*|*-*-cygwin*)
12209    platform_win32=yes
12210    ;;
12211  *)
12212    platform_win32=no
12213    ;;
12214esac
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
12216$as_echo "$platform_win32" >&6; }
12217 if test "$platform_win32" = "yes"; then
12218  PLATFORM_WIN32_TRUE=
12219  PLATFORM_WIN32_FALSE='#'
12220else
12221  PLATFORM_WIN32_TRUE='#'
12222  PLATFORM_WIN32_FALSE=
12223fi
12224
12225
12226
12227
12228    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12229set dummy gtkdoc-check; ac_word=$2
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231$as_echo_n "checking for $ac_word... " >&6; }
12232if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  case $GTKDOC_CHECK in
12236  [\\/]* | ?:[\\/]*)
12237  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12238  ;;
12239  *)
12240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241for as_dir in $PATH
12242do
12243  IFS=$as_save_IFS
12244  test -z "$as_dir" && as_dir=.
12245    for ac_exec_ext in '' $ac_executable_extensions; do
12246  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249    break 2
12250  fi
12251done
12252  done
12253IFS=$as_save_IFS
12254
12255  ;;
12256esac
12257fi
12258GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12259if test -n "$GTKDOC_CHECK"; then
12260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12261$as_echo "$GTKDOC_CHECK" >&6; }
12262else
12263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264$as_echo "no" >&6; }
12265fi
12266
12267
12268  for ac_prog in gtkdoc-rebase
12269do
12270  # Extract the first word of "$ac_prog", so it can be a program name with args.
12271set dummy $ac_prog; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277  case $GTKDOC_REBASE in
12278  [\\/]* | ?:[\\/]*)
12279  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12280  ;;
12281  *)
12282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285  IFS=$as_save_IFS
12286  test -z "$as_dir" && as_dir=.
12287    for ac_exec_ext in '' $ac_executable_extensions; do
12288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291    break 2
12292  fi
12293done
12294  done
12295IFS=$as_save_IFS
12296
12297  ;;
12298esac
12299fi
12300GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12301if test -n "$GTKDOC_REBASE"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12303$as_echo "$GTKDOC_REBASE" >&6; }
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310  test -n "$GTKDOC_REBASE" && break
12311done
12312test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12313
12314  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12315set dummy gtkdoc-mkpdf; ac_word=$2
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
12318if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  case $GTKDOC_MKPDF in
12322  [\\/]* | ?:[\\/]*)
12323  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12324  ;;
12325  *)
12326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329  IFS=$as_save_IFS
12330  test -z "$as_dir" && as_dir=.
12331    for ac_exec_ext in '' $ac_executable_extensions; do
12332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12333    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335    break 2
12336  fi
12337done
12338  done
12339IFS=$as_save_IFS
12340
12341  ;;
12342esac
12343fi
12344GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12345if test -n "$GTKDOC_MKPDF"; then
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12347$as_echo "$GTKDOC_MKPDF" >&6; }
12348else
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351fi
12352
12353
12354
12355
12356# Check whether --with-html-dir was given.
12357if test "${with_html_dir+set}" = set; then :
12358  withval=$with_html_dir;
12359else
12360  with_html_dir='/usr/local/share/doc'
12361fi
12362
12363  HTML_DIR="$with_html_dir"
12364
12365
12366    # Check whether --enable-gtk-doc was given.
12367if test "${enable_gtk_doc+set}" = set; then :
12368  enableval=$enable_gtk_doc;
12369else
12370  enable_gtk_doc=no
12371fi
12372
12373
12374  if test x$enable_gtk_doc = xyes; then
12375    if test -n "$PKG_CONFIG" && \
12376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.8\""; } >&5
12377  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.8") 2>&5
12378  ac_status=$?
12379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12380  test $ac_status = 0; }; then
12381  :
12382else
12383  as_fn_error "You need to have gtk-doc >= 1.8 installed to build $PACKAGE_NAME" "$LINENO" 5
12384fi
12385  fi
12386
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12388$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12390$as_echo "$enable_gtk_doc" >&6; }
12391
12392    # Check whether --enable-gtk-doc-html was given.
12393if test "${enable_gtk_doc_html+set}" = set; then :
12394  enableval=$enable_gtk_doc_html;
12395else
12396  enable_gtk_doc_html=yes
12397fi
12398
12399    # Check whether --enable-gtk-doc-pdf was given.
12400if test "${enable_gtk_doc_pdf+set}" = set; then :
12401  enableval=$enable_gtk_doc_pdf;
12402else
12403  enable_gtk_doc_pdf=no
12404fi
12405
12406
12407  if test -z "$GTKDOC_MKPDF"; then
12408    enable_gtk_doc_pdf=no
12409  fi
12410
12411
12412   if test x$enable_gtk_doc = xyes; then
12413  ENABLE_GTK_DOC_TRUE=
12414  ENABLE_GTK_DOC_FALSE='#'
12415else
12416  ENABLE_GTK_DOC_TRUE='#'
12417  ENABLE_GTK_DOC_FALSE=
12418fi
12419
12420   if test x$enable_gtk_doc_html = xyes; then
12421  GTK_DOC_BUILD_HTML_TRUE=
12422  GTK_DOC_BUILD_HTML_FALSE='#'
12423else
12424  GTK_DOC_BUILD_HTML_TRUE='#'
12425  GTK_DOC_BUILD_HTML_FALSE=
12426fi
12427
12428   if test x$enable_gtk_doc_pdf = xyes; then
12429  GTK_DOC_BUILD_PDF_TRUE=
12430  GTK_DOC_BUILD_PDF_FALSE='#'
12431else
12432  GTK_DOC_BUILD_PDF_TRUE='#'
12433  GTK_DOC_BUILD_PDF_FALSE=
12434fi
12435
12436   if test -n "$LIBTOOL"; then
12437  GTK_DOC_USE_LIBTOOL_TRUE=
12438  GTK_DOC_USE_LIBTOOL_FALSE='#'
12439else
12440  GTK_DOC_USE_LIBTOOL_TRUE='#'
12441  GTK_DOC_USE_LIBTOOL_FALSE=
12442fi
12443
12444   if test -n "$GTKDOC_REBASE"; then
12445  GTK_DOC_USE_REBASE_TRUE=
12446  GTK_DOC_USE_REBASE_FALSE='#'
12447else
12448  GTK_DOC_USE_REBASE_TRUE='#'
12449  GTK_DOC_USE_REBASE_FALSE=
12450fi
12451
12452
12453
12454ac_config_files="$ac_config_files Makefile src/Makefile demo/Makefile docs/Makefile po/Makefile.in goocanvas.pc"
12455
12456cat >confcache <<\_ACEOF
12457# This file is a shell script that caches the results of configure
12458# tests run on this system so they can be shared between configure
12459# scripts and configure runs, see configure's option --config-cache.
12460# It is not useful on other systems.  If it contains results you don't
12461# want to keep, you may remove or edit it.
12462#
12463# config.status only pays attention to the cache file if you give it
12464# the --recheck option to rerun configure.
12465#
12466# `ac_cv_env_foo' variables (set or unset) will be overridden when
12467# loading this file, other *unset* `ac_cv_foo' will be assigned the
12468# following values.
12469
12470_ACEOF
12471
12472# The following way of writing the cache mishandles newlines in values,
12473# but we know of no workaround that is simple, portable, and efficient.
12474# So, we kill variables containing newlines.
12475# Ultrix sh set writes to stderr and can't be redirected directly,
12476# and sets the high bit in the cache file unless we assign to the vars.
12477(
12478  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12479    eval ac_val=\$$ac_var
12480    case $ac_val in #(
12481    *${as_nl}*)
12482      case $ac_var in #(
12483      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12484$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12485      esac
12486      case $ac_var in #(
12487      _ | IFS | as_nl) ;; #(
12488      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12489      *) { eval $ac_var=; unset $ac_var;} ;;
12490      esac ;;
12491    esac
12492  done
12493
12494  (set) 2>&1 |
12495    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12496    *${as_nl}ac_space=\ *)
12497      # `set' does not quote correctly, so add quotes: double-quote
12498      # substitution turns \\\\ into \\, and sed turns \\ into \.
12499      sed -n \
12500	"s/'/'\\\\''/g;
12501	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12502      ;; #(
12503    *)
12504      # `set' quotes correctly as required by POSIX, so do not add quotes.
12505      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12506      ;;
12507    esac |
12508    sort
12509) |
12510  sed '
12511     /^ac_cv_env_/b end
12512     t clear
12513     :clear
12514     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12515     t end
12516     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12517     :end' >>confcache
12518if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12519  if test -w "$cache_file"; then
12520    test "x$cache_file" != "x/dev/null" &&
12521      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12522$as_echo "$as_me: updating cache $cache_file" >&6;}
12523    cat confcache >$cache_file
12524  else
12525    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12526$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12527  fi
12528fi
12529rm -f confcache
12530
12531test "x$prefix" = xNONE && prefix=$ac_default_prefix
12532# Let make expand exec_prefix.
12533test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12534
12535DEFS=-DHAVE_CONFIG_H
12536
12537ac_libobjs=
12538ac_ltlibobjs=
12539for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12540  # 1. Remove the extension, and $U if already installed.
12541  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12542  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12543  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12544  #    will be set to the directory where LIBOBJS objects are built.
12545  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12546  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12547done
12548LIBOBJS=$ac_libobjs
12549
12550LTLIBOBJS=$ac_ltlibobjs
12551
12552
12553 if test -n "$EXEEXT"; then
12554  am__EXEEXT_TRUE=
12555  am__EXEEXT_FALSE='#'
12556else
12557  am__EXEEXT_TRUE='#'
12558  am__EXEEXT_FALSE=
12559fi
12560
12561if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12562  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12563Usually this means the macro was only invoked conditionally." "$LINENO" 5
12564fi
12565if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12566  as_fn_error "conditional \"AMDEP\" was never defined.
12567Usually this means the macro was only invoked conditionally." "$LINENO" 5
12568fi
12569if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12570  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12571Usually this means the macro was only invoked conditionally." "$LINENO" 5
12572fi
12573if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12574  as_fn_error "conditional \"am__fastdepCC\" was never defined.
12575Usually this means the macro was only invoked conditionally." "$LINENO" 5
12576fi
12577if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
12578  as_fn_error "conditional \"PLATFORM_WIN32\" was never defined.
12579Usually this means the macro was only invoked conditionally." "$LINENO" 5
12580fi
12581if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12582  as_fn_error "conditional \"ENABLE_GTK_DOC\" was never defined.
12583Usually this means the macro was only invoked conditionally." "$LINENO" 5
12584fi
12585if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12586  as_fn_error "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12587Usually this means the macro was only invoked conditionally." "$LINENO" 5
12588fi
12589if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12590  as_fn_error "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12591Usually this means the macro was only invoked conditionally." "$LINENO" 5
12592fi
12593if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12594  as_fn_error "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12595Usually this means the macro was only invoked conditionally." "$LINENO" 5
12596fi
12597if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12598  as_fn_error "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12599Usually this means the macro was only invoked conditionally." "$LINENO" 5
12600fi
12601
12602: ${CONFIG_STATUS=./config.status}
12603ac_write_fail=0
12604ac_clean_files_save=$ac_clean_files
12605ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12607$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12608as_write_fail=0
12609cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12610#! $SHELL
12611# Generated by $as_me.
12612# Run this file to recreate the current configuration.
12613# Compiler output produced by configure, useful for debugging
12614# configure, is in config.log if it exists.
12615
12616debug=false
12617ac_cs_recheck=false
12618ac_cs_silent=false
12619
12620SHELL=\${CONFIG_SHELL-$SHELL}
12621export SHELL
12622_ASEOF
12623cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12624## -------------------- ##
12625## M4sh Initialization. ##
12626## -------------------- ##
12627
12628# Be more Bourne compatible
12629DUALCASE=1; export DUALCASE # for MKS sh
12630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12631  emulate sh
12632  NULLCMD=:
12633  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12634  # is contrary to our usage.  Disable this feature.
12635  alias -g '${1+"$@"}'='"$@"'
12636  setopt NO_GLOB_SUBST
12637else
12638  case `(set -o) 2>/dev/null` in #(
12639  *posix*) :
12640    set -o posix ;; #(
12641  *) :
12642     ;;
12643esac
12644fi
12645
12646
12647as_nl='
12648'
12649export as_nl
12650# Printing a long string crashes Solaris 7 /usr/bin/printf.
12651as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12654# Prefer a ksh shell builtin over an external printf program on Solaris,
12655# but without wasting forks for bash or zsh.
12656if test -z "$BASH_VERSION$ZSH_VERSION" \
12657    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12658  as_echo='print -r --'
12659  as_echo_n='print -rn --'
12660elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12661  as_echo='printf %s\n'
12662  as_echo_n='printf %s'
12663else
12664  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12665    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12666    as_echo_n='/usr/ucb/echo -n'
12667  else
12668    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12669    as_echo_n_body='eval
12670      arg=$1;
12671      case $arg in #(
12672      *"$as_nl"*)
12673	expr "X$arg" : "X\\(.*\\)$as_nl";
12674	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12675      esac;
12676      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12677    '
12678    export as_echo_n_body
12679    as_echo_n='sh -c $as_echo_n_body as_echo'
12680  fi
12681  export as_echo_body
12682  as_echo='sh -c $as_echo_body as_echo'
12683fi
12684
12685# The user is always right.
12686if test "${PATH_SEPARATOR+set}" != set; then
12687  PATH_SEPARATOR=:
12688  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12689    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12690      PATH_SEPARATOR=';'
12691  }
12692fi
12693
12694
12695# IFS
12696# We need space, tab and new line, in precisely that order.  Quoting is
12697# there to prevent editors from complaining about space-tab.
12698# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12699# splitting by setting IFS to empty value.)
12700IFS=" ""	$as_nl"
12701
12702# Find who we are.  Look in the path if we contain no directory separator.
12703case $0 in #((
12704  *[\\/]* ) as_myself=$0 ;;
12705  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708  IFS=$as_save_IFS
12709  test -z "$as_dir" && as_dir=.
12710    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12711  done
12712IFS=$as_save_IFS
12713
12714     ;;
12715esac
12716# We did not find ourselves, most probably we were run as `sh COMMAND'
12717# in which case we are not to be found in the path.
12718if test "x$as_myself" = x; then
12719  as_myself=$0
12720fi
12721if test ! -f "$as_myself"; then
12722  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12723  exit 1
12724fi
12725
12726# Unset variables that we do not need and which cause bugs (e.g. in
12727# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12728# suppresses any "Segmentation fault" message there.  '((' could
12729# trigger a bug in pdksh 5.2.14.
12730for as_var in BASH_ENV ENV MAIL MAILPATH
12731do eval test x\${$as_var+set} = xset \
12732  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12733done
12734PS1='$ '
12735PS2='> '
12736PS4='+ '
12737
12738# NLS nuisances.
12739LC_ALL=C
12740export LC_ALL
12741LANGUAGE=C
12742export LANGUAGE
12743
12744# CDPATH.
12745(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12746
12747
12748# as_fn_error ERROR [LINENO LOG_FD]
12749# ---------------------------------
12750# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12751# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12752# script with status $?, using 1 if that was 0.
12753as_fn_error ()
12754{
12755  as_status=$?; test $as_status -eq 0 && as_status=1
12756  if test "$3"; then
12757    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12758    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12759  fi
12760  $as_echo "$as_me: error: $1" >&2
12761  as_fn_exit $as_status
12762} # as_fn_error
12763
12764
12765# as_fn_set_status STATUS
12766# -----------------------
12767# Set $? to STATUS, without forking.
12768as_fn_set_status ()
12769{
12770  return $1
12771} # as_fn_set_status
12772
12773# as_fn_exit STATUS
12774# -----------------
12775# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12776as_fn_exit ()
12777{
12778  set +e
12779  as_fn_set_status $1
12780  exit $1
12781} # as_fn_exit
12782
12783# as_fn_unset VAR
12784# ---------------
12785# Portably unset VAR.
12786as_fn_unset ()
12787{
12788  { eval $1=; unset $1;}
12789}
12790as_unset=as_fn_unset
12791# as_fn_append VAR VALUE
12792# ----------------------
12793# Append the text in VALUE to the end of the definition contained in VAR. Take
12794# advantage of any shell optimizations that allow amortized linear growth over
12795# repeated appends, instead of the typical quadratic growth present in naive
12796# implementations.
12797if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12798  eval 'as_fn_append ()
12799  {
12800    eval $1+=\$2
12801  }'
12802else
12803  as_fn_append ()
12804  {
12805    eval $1=\$$1\$2
12806  }
12807fi # as_fn_append
12808
12809# as_fn_arith ARG...
12810# ------------------
12811# Perform arithmetic evaluation on the ARGs, and store the result in the
12812# global $as_val. Take advantage of shells that can avoid forks. The arguments
12813# must be portable across $(()) and expr.
12814if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12815  eval 'as_fn_arith ()
12816  {
12817    as_val=$(( $* ))
12818  }'
12819else
12820  as_fn_arith ()
12821  {
12822    as_val=`expr "$@" || test $? -eq 1`
12823  }
12824fi # as_fn_arith
12825
12826
12827if expr a : '\(a\)' >/dev/null 2>&1 &&
12828   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12829  as_expr=expr
12830else
12831  as_expr=false
12832fi
12833
12834if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12835  as_basename=basename
12836else
12837  as_basename=false
12838fi
12839
12840if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12841  as_dirname=dirname
12842else
12843  as_dirname=false
12844fi
12845
12846as_me=`$as_basename -- "$0" ||
12847$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12848	 X"$0" : 'X\(//\)$' \| \
12849	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12850$as_echo X/"$0" |
12851    sed '/^.*\/\([^/][^/]*\)\/*$/{
12852	    s//\1/
12853	    q
12854	  }
12855	  /^X\/\(\/\/\)$/{
12856	    s//\1/
12857	    q
12858	  }
12859	  /^X\/\(\/\).*/{
12860	    s//\1/
12861	    q
12862	  }
12863	  s/.*/./; q'`
12864
12865# Avoid depending upon Character Ranges.
12866as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12867as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12868as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12869as_cr_digits='0123456789'
12870as_cr_alnum=$as_cr_Letters$as_cr_digits
12871
12872ECHO_C= ECHO_N= ECHO_T=
12873case `echo -n x` in #(((((
12874-n*)
12875  case `echo 'xy\c'` in
12876  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12877  xy)  ECHO_C='\c';;
12878  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12879       ECHO_T='	';;
12880  esac;;
12881*)
12882  ECHO_N='-n';;
12883esac
12884
12885rm -f conf$$ conf$$.exe conf$$.file
12886if test -d conf$$.dir; then
12887  rm -f conf$$.dir/conf$$.file
12888else
12889  rm -f conf$$.dir
12890  mkdir conf$$.dir 2>/dev/null
12891fi
12892if (echo >conf$$.file) 2>/dev/null; then
12893  if ln -s conf$$.file conf$$ 2>/dev/null; then
12894    as_ln_s='ln -s'
12895    # ... but there are two gotchas:
12896    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12897    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12898    # In both cases, we have to default to `cp -p'.
12899    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12900      as_ln_s='cp -p'
12901  elif ln conf$$.file conf$$ 2>/dev/null; then
12902    as_ln_s=ln
12903  else
12904    as_ln_s='cp -p'
12905  fi
12906else
12907  as_ln_s='cp -p'
12908fi
12909rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12910rmdir conf$$.dir 2>/dev/null
12911
12912
12913# as_fn_mkdir_p
12914# -------------
12915# Create "$as_dir" as a directory, including parents if necessary.
12916as_fn_mkdir_p ()
12917{
12918
12919  case $as_dir in #(
12920  -*) as_dir=./$as_dir;;
12921  esac
12922  test -d "$as_dir" || eval $as_mkdir_p || {
12923    as_dirs=
12924    while :; do
12925      case $as_dir in #(
12926      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12927      *) as_qdir=$as_dir;;
12928      esac
12929      as_dirs="'$as_qdir' $as_dirs"
12930      as_dir=`$as_dirname -- "$as_dir" ||
12931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12932	 X"$as_dir" : 'X\(//\)[^/]' \| \
12933	 X"$as_dir" : 'X\(//\)$' \| \
12934	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12935$as_echo X"$as_dir" |
12936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12937	    s//\1/
12938	    q
12939	  }
12940	  /^X\(\/\/\)[^/].*/{
12941	    s//\1/
12942	    q
12943	  }
12944	  /^X\(\/\/\)$/{
12945	    s//\1/
12946	    q
12947	  }
12948	  /^X\(\/\).*/{
12949	    s//\1/
12950	    q
12951	  }
12952	  s/.*/./; q'`
12953      test -d "$as_dir" && break
12954    done
12955    test -z "$as_dirs" || eval "mkdir $as_dirs"
12956  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12957
12958
12959} # as_fn_mkdir_p
12960if mkdir -p . 2>/dev/null; then
12961  as_mkdir_p='mkdir -p "$as_dir"'
12962else
12963  test -d ./-p && rmdir ./-p
12964  as_mkdir_p=false
12965fi
12966
12967if test -x / >/dev/null 2>&1; then
12968  as_test_x='test -x'
12969else
12970  if ls -dL / >/dev/null 2>&1; then
12971    as_ls_L_option=L
12972  else
12973    as_ls_L_option=
12974  fi
12975  as_test_x='
12976    eval sh -c '\''
12977      if test -d "$1"; then
12978	test -d "$1/.";
12979      else
12980	case $1 in #(
12981	-*)set "./$1";;
12982	esac;
12983	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12984	???[sx]*):;;*)false;;esac;fi
12985    '\'' sh
12986  '
12987fi
12988as_executable_p=$as_test_x
12989
12990# Sed expression to map a string onto a valid CPP name.
12991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12992
12993# Sed expression to map a string onto a valid variable name.
12994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12995
12996
12997exec 6>&1
12998## ----------------------------------- ##
12999## Main body of $CONFIG_STATUS script. ##
13000## ----------------------------------- ##
13001_ASEOF
13002test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13003
13004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13005# Save the log message, to keep $0 and so on meaningful, and to
13006# report actual input values of CONFIG_FILES etc. instead of their
13007# values after options handling.
13008ac_log="
13009This file was extended by goocanvas $as_me 1.0.0, which was
13010generated by GNU Autoconf 2.65.  Invocation command line was
13011
13012  CONFIG_FILES    = $CONFIG_FILES
13013  CONFIG_HEADERS  = $CONFIG_HEADERS
13014  CONFIG_LINKS    = $CONFIG_LINKS
13015  CONFIG_COMMANDS = $CONFIG_COMMANDS
13016  $ $0 $@
13017
13018on `(hostname || uname -n) 2>/dev/null | sed 1q`
13019"
13020
13021_ACEOF
13022
13023case $ac_config_files in *"
13024"*) set x $ac_config_files; shift; ac_config_files=$*;;
13025esac
13026
13027case $ac_config_headers in *"
13028"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13029esac
13030
13031
13032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13033# Files that config.status was made for.
13034config_files="$ac_config_files"
13035config_headers="$ac_config_headers"
13036config_commands="$ac_config_commands"
13037
13038_ACEOF
13039
13040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13041ac_cs_usage="\
13042\`$as_me' instantiates files and other configuration actions
13043from templates according to the current configuration.  Unless the files
13044and actions are specified as TAGs, all are instantiated by default.
13045
13046Usage: $0 [OPTION]... [TAG]...
13047
13048  -h, --help       print this help, then exit
13049  -V, --version    print version number and configuration settings, then exit
13050      --config     print configuration, then exit
13051  -q, --quiet, --silent
13052                   do not print progress messages
13053  -d, --debug      don't remove temporary files
13054      --recheck    update $as_me by reconfiguring in the same conditions
13055      --file=FILE[:TEMPLATE]
13056                   instantiate the configuration file FILE
13057      --header=FILE[:TEMPLATE]
13058                   instantiate the configuration header FILE
13059
13060Configuration files:
13061$config_files
13062
13063Configuration headers:
13064$config_headers
13065
13066Configuration commands:
13067$config_commands
13068
13069Report bugs to the package provider."
13070
13071_ACEOF
13072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13074ac_cs_version="\\
13075goocanvas config.status 1.0.0
13076configured by $0, generated by GNU Autoconf 2.65,
13077  with options \\"\$ac_cs_config\\"
13078
13079Copyright (C) 2009 Free Software Foundation, Inc.
13080This config.status script is free software; the Free Software Foundation
13081gives unlimited permission to copy, distribute and modify it."
13082
13083ac_pwd='$ac_pwd'
13084srcdir='$srcdir'
13085INSTALL='$INSTALL'
13086MKDIR_P='$MKDIR_P'
13087AWK='$AWK'
13088test -n "\$AWK" || AWK=awk
13089_ACEOF
13090
13091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092# The default lists apply if the user does not specify any file.
13093ac_need_defaults=:
13094while test $# != 0
13095do
13096  case $1 in
13097  --*=*)
13098    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13099    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13100    ac_shift=:
13101    ;;
13102  *)
13103    ac_option=$1
13104    ac_optarg=$2
13105    ac_shift=shift
13106    ;;
13107  esac
13108
13109  case $ac_option in
13110  # Handling of the options.
13111  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13112    ac_cs_recheck=: ;;
13113  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13114    $as_echo "$ac_cs_version"; exit ;;
13115  --config | --confi | --conf | --con | --co | --c )
13116    $as_echo "$ac_cs_config"; exit ;;
13117  --debug | --debu | --deb | --de | --d | -d )
13118    debug=: ;;
13119  --file | --fil | --fi | --f )
13120    $ac_shift
13121    case $ac_optarg in
13122    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13123    esac
13124    as_fn_append CONFIG_FILES " '$ac_optarg'"
13125    ac_need_defaults=false;;
13126  --header | --heade | --head | --hea )
13127    $ac_shift
13128    case $ac_optarg in
13129    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13130    esac
13131    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13132    ac_need_defaults=false;;
13133  --he | --h)
13134    # Conflict between --help and --header
13135    as_fn_error "ambiguous option: \`$1'
13136Try \`$0 --help' for more information.";;
13137  --help | --hel | -h )
13138    $as_echo "$ac_cs_usage"; exit ;;
13139  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13140  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13141    ac_cs_silent=: ;;
13142
13143  # This is an error.
13144  -*) as_fn_error "unrecognized option: \`$1'
13145Try \`$0 --help' for more information." ;;
13146
13147  *) as_fn_append ac_config_targets " $1"
13148     ac_need_defaults=false ;;
13149
13150  esac
13151  shift
13152done
13153
13154ac_configure_extra_args=
13155
13156if $ac_cs_silent; then
13157  exec 6>/dev/null
13158  ac_configure_extra_args="$ac_configure_extra_args --silent"
13159fi
13160
13161_ACEOF
13162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163if \$ac_cs_recheck; then
13164  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13165  shift
13166  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13167  CONFIG_SHELL='$SHELL'
13168  export CONFIG_SHELL
13169  exec "\$@"
13170fi
13171
13172_ACEOF
13173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13174exec 5>>config.log
13175{
13176  echo
13177  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13178## Running $as_me. ##
13179_ASBOX
13180  $as_echo "$ac_log"
13181} >&5
13182
13183_ACEOF
13184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13185#
13186# INIT-COMMANDS
13187#
13188AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13189
13190
13191# The HP-UX ksh and POSIX shell print the target directory to stdout
13192# if CDPATH is set.
13193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13194
13195sed_quote_subst='$sed_quote_subst'
13196double_quote_subst='$double_quote_subst'
13197delay_variable_subst='$delay_variable_subst'
13198macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13199macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13200enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13201enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13202pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13203enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13204host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13205host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13206host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13207build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13208build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13209build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13210SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13211Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13212GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13213EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13214FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13215LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13216NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13217LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13218max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13219ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13220exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13221lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13222lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13223lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13224reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13225reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13226OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13227deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13228file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13229AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13230AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13231STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13232RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13233old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13234old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13235old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13236CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13237CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13238compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13239GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13240lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13241lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13242lt_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"`'
13243lt_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"`'
13244objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13245SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13246ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13247MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13248lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13249lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13250lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13251lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13252lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13253need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13254DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13255NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13256LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13257OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13258OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13259libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13260shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13261extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13262archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13263enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13264export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13265whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13266compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13267old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13268old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13269archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13270archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13271module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13272module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13273with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13274allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13275no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13276hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13277hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13278hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13279hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13280hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13281hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13282hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13283hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13284inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13285link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13286fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13287always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13288export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13289exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13290include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13291prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13292file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13293variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13294need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13295need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13296version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13297runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13298shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13299shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13300libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13301library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13302soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13303postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13304postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13305finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13306finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13307hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13308sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13309sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13310hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13311enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13312enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13313enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13314old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13315striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13316
13317LTCC='$LTCC'
13318LTCFLAGS='$LTCFLAGS'
13319compiler='$compiler_DEFAULT'
13320
13321# Quote evaled strings.
13322for var in SED \
13323GREP \
13324EGREP \
13325FGREP \
13326LD \
13327NM \
13328LN_S \
13329lt_SP2NL \
13330lt_NL2SP \
13331reload_flag \
13332OBJDUMP \
13333deplibs_check_method \
13334file_magic_cmd \
13335AR \
13336AR_FLAGS \
13337STRIP \
13338RANLIB \
13339CC \
13340CFLAGS \
13341compiler \
13342lt_cv_sys_global_symbol_pipe \
13343lt_cv_sys_global_symbol_to_cdecl \
13344lt_cv_sys_global_symbol_to_c_name_address \
13345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13346SHELL \
13347ECHO \
13348lt_prog_compiler_no_builtin_flag \
13349lt_prog_compiler_wl \
13350lt_prog_compiler_pic \
13351lt_prog_compiler_static \
13352lt_cv_prog_compiler_c_o \
13353need_locks \
13354DSYMUTIL \
13355NMEDIT \
13356LIPO \
13357OTOOL \
13358OTOOL64 \
13359shrext_cmds \
13360export_dynamic_flag_spec \
13361whole_archive_flag_spec \
13362compiler_needs_object \
13363with_gnu_ld \
13364allow_undefined_flag \
13365no_undefined_flag \
13366hardcode_libdir_flag_spec \
13367hardcode_libdir_flag_spec_ld \
13368hardcode_libdir_separator \
13369fix_srcfile_path \
13370exclude_expsyms \
13371include_expsyms \
13372file_list_spec \
13373variables_saved_for_relink \
13374libname_spec \
13375library_names_spec \
13376soname_spec \
13377finish_eval \
13378old_striplib \
13379striplib; do
13380    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13381    *[\\\\\\\`\\"\\\$]*)
13382      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13383      ;;
13384    *)
13385      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13386      ;;
13387    esac
13388done
13389
13390# Double-quote double-evaled strings.
13391for var in reload_cmds \
13392old_postinstall_cmds \
13393old_postuninstall_cmds \
13394old_archive_cmds \
13395extract_expsyms_cmds \
13396old_archive_from_new_cmds \
13397old_archive_from_expsyms_cmds \
13398archive_cmds \
13399archive_expsym_cmds \
13400module_cmds \
13401module_expsym_cmds \
13402export_symbols_cmds \
13403prelink_cmds \
13404postinstall_cmds \
13405postuninstall_cmds \
13406finish_cmds \
13407sys_lib_search_path_spec \
13408sys_lib_dlsearch_path_spec; do
13409    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13410    *[\\\\\\\`\\"\\\$]*)
13411      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13412      ;;
13413    *)
13414      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13415      ;;
13416    esac
13417done
13418
13419# Fix-up fallback echo if it was mangled by the above quoting rules.
13420case \$lt_ECHO in
13421*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13422  ;;
13423esac
13424
13425ac_aux_dir='$ac_aux_dir'
13426xsi_shell='$xsi_shell'
13427lt_shell_append='$lt_shell_append'
13428
13429# See if we are running on zsh, and set the options which allow our
13430# commands through without removal of \ escapes INIT.
13431if test -n "\${ZSH_VERSION+set}" ; then
13432   setopt NO_GLOB_SUBST
13433fi
13434
13435
13436    PACKAGE='$PACKAGE'
13437    VERSION='$VERSION'
13438    TIMESTAMP='$TIMESTAMP'
13439    RM='$RM'
13440    ofile='$ofile'
13441
13442
13443
13444
13445
13446_ACEOF
13447
13448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449
13450# Handling of arguments.
13451for ac_config_target in $ac_config_targets
13452do
13453  case $ac_config_target in
13454    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13455    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13456    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13457    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13458    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13459    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13460    "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
13461    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
13462    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13463    "goocanvas.pc") CONFIG_FILES="$CONFIG_FILES goocanvas.pc" ;;
13464
13465  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13466  esac
13467done
13468
13469
13470# If the user did not use the arguments to specify the items to instantiate,
13471# then the envvar interface is used.  Set only those that are not.
13472# We use the long form for the default assignment because of an extremely
13473# bizarre bug on SunOS 4.1.3.
13474if $ac_need_defaults; then
13475  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13476  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13477  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13478fi
13479
13480# Have a temporary directory for convenience.  Make it in the build tree
13481# simply because there is no reason against having it here, and in addition,
13482# creating and moving files from /tmp can sometimes cause problems.
13483# Hook for its removal unless debugging.
13484# Note that there is a small window in which the directory will not be cleaned:
13485# after its creation but before its name has been assigned to `$tmp'.
13486$debug ||
13487{
13488  tmp=
13489  trap 'exit_status=$?
13490  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13491' 0
13492  trap 'as_fn_exit 1' 1 2 13 15
13493}
13494# Create a (secure) tmp directory for tmp files.
13495
13496{
13497  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13498  test -n "$tmp" && test -d "$tmp"
13499}  ||
13500{
13501  tmp=./conf$$-$RANDOM
13502  (umask 077 && mkdir "$tmp")
13503} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13504
13505# Set up the scripts for CONFIG_FILES section.
13506# No need to generate them if there are no CONFIG_FILES.
13507# This happens for instance with `./config.status config.h'.
13508if test -n "$CONFIG_FILES"; then
13509
13510
13511ac_cr=`echo X | tr X '\015'`
13512# On cygwin, bash can eat \r inside `` if the user requested igncr.
13513# But we know of no other shell where ac_cr would be empty at this
13514# point, so we can use a bashism as a fallback.
13515if test "x$ac_cr" = x; then
13516  eval ac_cr=\$\'\\r\'
13517fi
13518ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13519if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13520  ac_cs_awk_cr='\r'
13521else
13522  ac_cs_awk_cr=$ac_cr
13523fi
13524
13525echo 'BEGIN {' >"$tmp/subs1.awk" &&
13526_ACEOF
13527
13528
13529{
13530  echo "cat >conf$$subs.awk <<_ACEOF" &&
13531  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13532  echo "_ACEOF"
13533} >conf$$subs.sh ||
13534  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13535ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13536ac_delim='%!_!# '
13537for ac_last_try in false false false false false :; do
13538  . ./conf$$subs.sh ||
13539    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13540
13541  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13542  if test $ac_delim_n = $ac_delim_num; then
13543    break
13544  elif $ac_last_try; then
13545    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13546  else
13547    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13548  fi
13549done
13550rm -f conf$$subs.sh
13551
13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13553cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13554_ACEOF
13555sed -n '
13556h
13557s/^/S["/; s/!.*/"]=/
13558p
13559g
13560s/^[^!]*!//
13561:repl
13562t repl
13563s/'"$ac_delim"'$//
13564t delim
13565:nl
13566h
13567s/\(.\{148\}\)..*/\1/
13568t more1
13569s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13570p
13571n
13572b repl
13573:more1
13574s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13575p
13576g
13577s/.\{148\}//
13578t nl
13579:delim
13580h
13581s/\(.\{148\}\)..*/\1/
13582t more2
13583s/["\\]/\\&/g; s/^/"/; s/$/"/
13584p
13585b
13586:more2
13587s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13588p
13589g
13590s/.\{148\}//
13591t delim
13592' <conf$$subs.awk | sed '
13593/^[^""]/{
13594  N
13595  s/\n//
13596}
13597' >>$CONFIG_STATUS || ac_write_fail=1
13598rm -f conf$$subs.awk
13599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13600_ACAWK
13601cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13602  for (key in S) S_is_set[key] = 1
13603  FS = ""
13604
13605}
13606{
13607  line = $ 0
13608  nfields = split(line, field, "@")
13609  substed = 0
13610  len = length(field[1])
13611  for (i = 2; i < nfields; i++) {
13612    key = field[i]
13613    keylen = length(key)
13614    if (S_is_set[key]) {
13615      value = S[key]
13616      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13617      len += length(value) + length(field[++i])
13618      substed = 1
13619    } else
13620      len += 1 + keylen
13621  }
13622
13623  print line
13624}
13625
13626_ACAWK
13627_ACEOF
13628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13629if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13630  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13631else
13632  cat
13633fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13634  || as_fn_error "could not setup config files machinery" "$LINENO" 5
13635_ACEOF
13636
13637# VPATH may cause trouble with some makes, so we remove $(srcdir),
13638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13639# trailing colons and then remove the whole line if VPATH becomes empty
13640# (actually we leave an empty line to preserve line numbers).
13641if test "x$srcdir" = x.; then
13642  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
13643s/:*\$(srcdir):*/:/
13644s/:*\${srcdir}:*/:/
13645s/:*@srcdir@:*/:/
13646s/^\([^=]*=[	 ]*\):*/\1/
13647s/:*$//
13648s/^[^=]*=[	 ]*$//
13649}'
13650fi
13651
13652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13653fi # test -n "$CONFIG_FILES"
13654
13655# Set up the scripts for CONFIG_HEADERS section.
13656# No need to generate them if there are no CONFIG_HEADERS.
13657# This happens for instance with `./config.status Makefile'.
13658if test -n "$CONFIG_HEADERS"; then
13659cat >"$tmp/defines.awk" <<\_ACAWK ||
13660BEGIN {
13661_ACEOF
13662
13663# Transform confdefs.h into an awk script `defines.awk', embedded as
13664# here-document in config.status, that substitutes the proper values into
13665# config.h.in to produce config.h.
13666
13667# Create a delimiter string that does not exist in confdefs.h, to ease
13668# handling of long lines.
13669ac_delim='%!_!# '
13670for ac_last_try in false false :; do
13671  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13672  if test -z "$ac_t"; then
13673    break
13674  elif $ac_last_try; then
13675    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13676  else
13677    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13678  fi
13679done
13680
13681# For the awk script, D is an array of macro values keyed by name,
13682# likewise P contains macro parameters if any.  Preserve backslash
13683# newline sequences.
13684
13685ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13686sed -n '
13687s/.\{148\}/&'"$ac_delim"'/g
13688t rset
13689:rset
13690s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13691t def
13692d
13693:def
13694s/\\$//
13695t bsnl
13696s/["\\]/\\&/g
13697s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13698D["\1"]=" \3"/p
13699s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13700d
13701:bsnl
13702s/["\\]/\\&/g
13703s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13704D["\1"]=" \3\\\\\\n"\\/p
13705t cont
13706s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13707t cont
13708d
13709:cont
13710n
13711s/.\{148\}/&'"$ac_delim"'/g
13712t clear
13713:clear
13714s/\\$//
13715t bsnlc
13716s/["\\]/\\&/g; s/^/"/; s/$/"/p
13717d
13718:bsnlc
13719s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13720b cont
13721' <confdefs.h | sed '
13722s/'"$ac_delim"'/"\\\
13723"/g' >>$CONFIG_STATUS || ac_write_fail=1
13724
13725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13726  for (key in D) D_is_set[key] = 1
13727  FS = ""
13728}
13729/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13730  line = \$ 0
13731  split(line, arg, " ")
13732  if (arg[1] == "#") {
13733    defundef = arg[2]
13734    mac1 = arg[3]
13735  } else {
13736    defundef = substr(arg[1], 2)
13737    mac1 = arg[2]
13738  }
13739  split(mac1, mac2, "(") #)
13740  macro = mac2[1]
13741  prefix = substr(line, 1, index(line, defundef) - 1)
13742  if (D_is_set[macro]) {
13743    # Preserve the white space surrounding the "#".
13744    print prefix "define", macro P[macro] D[macro]
13745    next
13746  } else {
13747    # Replace #undef with comments.  This is necessary, for example,
13748    # in the case of _POSIX_SOURCE, which is predefined and required
13749    # on some systems where configure will not decide to define it.
13750    if (defundef == "undef") {
13751      print "/*", prefix defundef, macro, "*/"
13752      next
13753    }
13754  }
13755}
13756{ print }
13757_ACAWK
13758_ACEOF
13759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13760  as_fn_error "could not setup config headers machinery" "$LINENO" 5
13761fi # test -n "$CONFIG_HEADERS"
13762
13763
13764eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13765shift
13766for ac_tag
13767do
13768  case $ac_tag in
13769  :[FHLC]) ac_mode=$ac_tag; continue;;
13770  esac
13771  case $ac_mode$ac_tag in
13772  :[FHL]*:*);;
13773  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13774  :[FH]-) ac_tag=-:-;;
13775  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13776  esac
13777  ac_save_IFS=$IFS
13778  IFS=:
13779  set x $ac_tag
13780  IFS=$ac_save_IFS
13781  shift
13782  ac_file=$1
13783  shift
13784
13785  case $ac_mode in
13786  :L) ac_source=$1;;
13787  :[FH])
13788    ac_file_inputs=
13789    for ac_f
13790    do
13791      case $ac_f in
13792      -) ac_f="$tmp/stdin";;
13793      *) # Look for the file first in the build tree, then in the source tree
13794	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13795	 # because $ac_f cannot contain `:'.
13796	 test -f "$ac_f" ||
13797	   case $ac_f in
13798	   [\\/$]*) false;;
13799	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13800	   esac ||
13801	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13802      esac
13803      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13804      as_fn_append ac_file_inputs " '$ac_f'"
13805    done
13806
13807    # Let's still pretend it is `configure' which instantiates (i.e., don't
13808    # use $as_me), people would be surprised to read:
13809    #    /* config.h.  Generated by config.status.  */
13810    configure_input='Generated from '`
13811	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13812	`' by configure.'
13813    if test x"$ac_file" != x-; then
13814      configure_input="$ac_file.  $configure_input"
13815      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13816$as_echo "$as_me: creating $ac_file" >&6;}
13817    fi
13818    # Neutralize special characters interpreted by sed in replacement strings.
13819    case $configure_input in #(
13820    *\&* | *\|* | *\\* )
13821       ac_sed_conf_input=`$as_echo "$configure_input" |
13822       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13823    *) ac_sed_conf_input=$configure_input;;
13824    esac
13825
13826    case $ac_tag in
13827    *:-:* | *:-) cat >"$tmp/stdin" \
13828      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13829    esac
13830    ;;
13831  esac
13832
13833  ac_dir=`$as_dirname -- "$ac_file" ||
13834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13835	 X"$ac_file" : 'X\(//\)[^/]' \| \
13836	 X"$ac_file" : 'X\(//\)$' \| \
13837	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13838$as_echo X"$ac_file" |
13839    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13840	    s//\1/
13841	    q
13842	  }
13843	  /^X\(\/\/\)[^/].*/{
13844	    s//\1/
13845	    q
13846	  }
13847	  /^X\(\/\/\)$/{
13848	    s//\1/
13849	    q
13850	  }
13851	  /^X\(\/\).*/{
13852	    s//\1/
13853	    q
13854	  }
13855	  s/.*/./; q'`
13856  as_dir="$ac_dir"; as_fn_mkdir_p
13857  ac_builddir=.
13858
13859case "$ac_dir" in
13860.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13861*)
13862  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13863  # A ".." for each directory in $ac_dir_suffix.
13864  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13865  case $ac_top_builddir_sub in
13866  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13867  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13868  esac ;;
13869esac
13870ac_abs_top_builddir=$ac_pwd
13871ac_abs_builddir=$ac_pwd$ac_dir_suffix
13872# for backward compatibility:
13873ac_top_builddir=$ac_top_build_prefix
13874
13875case $srcdir in
13876  .)  # We are building in place.
13877    ac_srcdir=.
13878    ac_top_srcdir=$ac_top_builddir_sub
13879    ac_abs_top_srcdir=$ac_pwd ;;
13880  [\\/]* | ?:[\\/]* )  # Absolute name.
13881    ac_srcdir=$srcdir$ac_dir_suffix;
13882    ac_top_srcdir=$srcdir
13883    ac_abs_top_srcdir=$srcdir ;;
13884  *) # Relative name.
13885    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13886    ac_top_srcdir=$ac_top_build_prefix$srcdir
13887    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13888esac
13889ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13890
13891
13892  case $ac_mode in
13893  :F)
13894  #
13895  # CONFIG_FILE
13896  #
13897
13898  case $INSTALL in
13899  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13900  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13901  esac
13902  ac_MKDIR_P=$MKDIR_P
13903  case $MKDIR_P in
13904  [\\/$]* | ?:[\\/]* ) ;;
13905  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13906  esac
13907_ACEOF
13908
13909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13910# If the template does not know about datarootdir, expand it.
13911# FIXME: This hack should be removed a few years after 2.60.
13912ac_datarootdir_hack=; ac_datarootdir_seen=
13913ac_sed_dataroot='
13914/datarootdir/ {
13915  p
13916  q
13917}
13918/@datadir@/p
13919/@docdir@/p
13920/@infodir@/p
13921/@localedir@/p
13922/@mandir@/p'
13923case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13924*datarootdir*) ac_datarootdir_seen=yes;;
13925*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13927$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13928_ACEOF
13929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930  ac_datarootdir_hack='
13931  s&@datadir@&$datadir&g
13932  s&@docdir@&$docdir&g
13933  s&@infodir@&$infodir&g
13934  s&@localedir@&$localedir&g
13935  s&@mandir@&$mandir&g
13936  s&\\\${datarootdir}&$datarootdir&g' ;;
13937esac
13938_ACEOF
13939
13940# Neutralize VPATH when `$srcdir' = `.'.
13941# Shell code in configure.ac might set extrasub.
13942# FIXME: do we really want to maintain this feature?
13943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13944ac_sed_extra="$ac_vpsub
13945$extrasub
13946_ACEOF
13947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13948:t
13949/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13950s|@configure_input@|$ac_sed_conf_input|;t t
13951s&@top_builddir@&$ac_top_builddir_sub&;t t
13952s&@top_build_prefix@&$ac_top_build_prefix&;t t
13953s&@srcdir@&$ac_srcdir&;t t
13954s&@abs_srcdir@&$ac_abs_srcdir&;t t
13955s&@top_srcdir@&$ac_top_srcdir&;t t
13956s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13957s&@builddir@&$ac_builddir&;t t
13958s&@abs_builddir@&$ac_abs_builddir&;t t
13959s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13960s&@INSTALL@&$ac_INSTALL&;t t
13961s&@MKDIR_P@&$ac_MKDIR_P&;t t
13962$ac_datarootdir_hack
13963"
13964eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13965  || as_fn_error "could not create $ac_file" "$LINENO" 5
13966
13967test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13968  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13969  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13970  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13971which seems to be undefined.  Please make sure it is defined." >&5
13972$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13973which seems to be undefined.  Please make sure it is defined." >&2;}
13974
13975  rm -f "$tmp/stdin"
13976  case $ac_file in
13977  -) cat "$tmp/out" && rm -f "$tmp/out";;
13978  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13979  esac \
13980  || as_fn_error "could not create $ac_file" "$LINENO" 5
13981 ;;
13982  :H)
13983  #
13984  # CONFIG_HEADER
13985  #
13986  if test x"$ac_file" != x-; then
13987    {
13988      $as_echo "/* $configure_input  */" \
13989      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13990    } >"$tmp/config.h" \
13991      || as_fn_error "could not create $ac_file" "$LINENO" 5
13992    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13993      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13994$as_echo "$as_me: $ac_file is unchanged" >&6;}
13995    else
13996      rm -f "$ac_file"
13997      mv "$tmp/config.h" "$ac_file" \
13998	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13999    fi
14000  else
14001    $as_echo "/* $configure_input  */" \
14002      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14003      || as_fn_error "could not create -" "$LINENO" 5
14004  fi
14005# Compute "$ac_file"'s index in $config_headers.
14006_am_arg="$ac_file"
14007_am_stamp_count=1
14008for _am_header in $config_headers :; do
14009  case $_am_header in
14010    $_am_arg | $_am_arg:* )
14011      break ;;
14012    * )
14013      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14014  esac
14015done
14016echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14017$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14018	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14019	 X"$_am_arg" : 'X\(//\)$' \| \
14020	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14021$as_echo X"$_am_arg" |
14022    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14023	    s//\1/
14024	    q
14025	  }
14026	  /^X\(\/\/\)[^/].*/{
14027	    s//\1/
14028	    q
14029	  }
14030	  /^X\(\/\/\)$/{
14031	    s//\1/
14032	    q
14033	  }
14034	  /^X\(\/\).*/{
14035	    s//\1/
14036	    q
14037	  }
14038	  s/.*/./; q'`/stamp-h$_am_stamp_count
14039 ;;
14040
14041  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14042$as_echo "$as_me: executing $ac_file commands" >&6;}
14043 ;;
14044  esac
14045
14046
14047  case $ac_file$ac_mode in
14048    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14049  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14050  # are listed without --file.  Let's play safe and only enable the eval
14051  # if we detect the quoting.
14052  case $CONFIG_FILES in
14053  *\'*) eval set x "$CONFIG_FILES" ;;
14054  *)   set x $CONFIG_FILES ;;
14055  esac
14056  shift
14057  for mf
14058  do
14059    # Strip MF so we end up with the name of the file.
14060    mf=`echo "$mf" | sed -e 's/:.*$//'`
14061    # Check whether this is an Automake generated Makefile or not.
14062    # We used to match only the files named `Makefile.in', but
14063    # some people rename them; so instead we look at the file content.
14064    # Grep'ing the first line is not enough: some people post-process
14065    # each Makefile.in and add a new line on top of each file to say so.
14066    # Grep'ing the whole file is not good either: AIX grep has a line
14067    # limit of 2048, but all sed's we know have understand at least 4000.
14068    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14069      dirpart=`$as_dirname -- "$mf" ||
14070$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071	 X"$mf" : 'X\(//\)[^/]' \| \
14072	 X"$mf" : 'X\(//\)$' \| \
14073	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14074$as_echo X"$mf" |
14075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14076	    s//\1/
14077	    q
14078	  }
14079	  /^X\(\/\/\)[^/].*/{
14080	    s//\1/
14081	    q
14082	  }
14083	  /^X\(\/\/\)$/{
14084	    s//\1/
14085	    q
14086	  }
14087	  /^X\(\/\).*/{
14088	    s//\1/
14089	    q
14090	  }
14091	  s/.*/./; q'`
14092    else
14093      continue
14094    fi
14095    # Extract the definition of DEPDIR, am__include, and am__quote
14096    # from the Makefile without running `make'.
14097    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14098    test -z "$DEPDIR" && continue
14099    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14100    test -z "am__include" && continue
14101    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14102    # When using ansi2knr, U may be empty or an underscore; expand it
14103    U=`sed -n 's/^U = //p' < "$mf"`
14104    # Find all dependency output files, they are included files with
14105    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14106    # simplest approach to changing $(DEPDIR) to its actual value in the
14107    # expansion.
14108    for file in `sed -n "
14109      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14110	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14111      # Make sure the directory exists.
14112      test -f "$dirpart/$file" && continue
14113      fdir=`$as_dirname -- "$file" ||
14114$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14115	 X"$file" : 'X\(//\)[^/]' \| \
14116	 X"$file" : 'X\(//\)$' \| \
14117	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14118$as_echo X"$file" |
14119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14120	    s//\1/
14121	    q
14122	  }
14123	  /^X\(\/\/\)[^/].*/{
14124	    s//\1/
14125	    q
14126	  }
14127	  /^X\(\/\/\)$/{
14128	    s//\1/
14129	    q
14130	  }
14131	  /^X\(\/\).*/{
14132	    s//\1/
14133	    q
14134	  }
14135	  s/.*/./; q'`
14136      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14137      # echo "creating $dirpart/$file"
14138      echo '# dummy' > "$dirpart/$file"
14139    done
14140  done
14141}
14142 ;;
14143    "libtool":C)
14144
14145    # See if we are running on zsh, and set the options which allow our
14146    # commands through without removal of \ escapes.
14147    if test -n "${ZSH_VERSION+set}" ; then
14148      setopt NO_GLOB_SUBST
14149    fi
14150
14151    cfgfile="${ofile}T"
14152    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14153    $RM "$cfgfile"
14154
14155    cat <<_LT_EOF >> "$cfgfile"
14156#! $SHELL
14157
14158# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14159# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14160# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14161# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14162#
14163#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14164#                 2006, 2007, 2008 Free Software Foundation, Inc.
14165#   Written by Gordon Matzigkeit, 1996
14166#
14167#   This file is part of GNU Libtool.
14168#
14169# GNU Libtool is free software; you can redistribute it and/or
14170# modify it under the terms of the GNU General Public License as
14171# published by the Free Software Foundation; either version 2 of
14172# the License, or (at your option) any later version.
14173#
14174# As a special exception to the GNU General Public License,
14175# if you distribute this file as part of a program or library that
14176# is built using GNU Libtool, you may include this file under the
14177# same distribution terms that you use for the rest of that program.
14178#
14179# GNU Libtool is distributed in the hope that it will be useful,
14180# but WITHOUT ANY WARRANTY; without even the implied warranty of
14181# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14182# GNU General Public License for more details.
14183#
14184# You should have received a copy of the GNU General Public License
14185# along with GNU Libtool; see the file COPYING.  If not, a copy
14186# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14187# obtained by writing to the Free Software Foundation, Inc.,
14188# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14189
14190
14191# The names of the tagged configurations supported by this script.
14192available_tags=""
14193
14194# ### BEGIN LIBTOOL CONFIG
14195
14196# Which release of libtool.m4 was used?
14197macro_version=$macro_version
14198macro_revision=$macro_revision
14199
14200# Whether or not to build shared libraries.
14201build_libtool_libs=$enable_shared
14202
14203# Whether or not to build static libraries.
14204build_old_libs=$enable_static
14205
14206# What type of objects to build.
14207pic_mode=$pic_mode
14208
14209# Whether or not to optimize for fast installation.
14210fast_install=$enable_fast_install
14211
14212# The host system.
14213host_alias=$host_alias
14214host=$host
14215host_os=$host_os
14216
14217# The build system.
14218build_alias=$build_alias
14219build=$build
14220build_os=$build_os
14221
14222# A sed program that does not truncate output.
14223SED=$lt_SED
14224
14225# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14226Xsed="\$SED -e 1s/^X//"
14227
14228# A grep program that handles long lines.
14229GREP=$lt_GREP
14230
14231# An ERE matcher.
14232EGREP=$lt_EGREP
14233
14234# A literal string matcher.
14235FGREP=$lt_FGREP
14236
14237# A BSD- or MS-compatible name lister.
14238NM=$lt_NM
14239
14240# Whether we need soft or hard links.
14241LN_S=$lt_LN_S
14242
14243# What is the maximum length of a command?
14244max_cmd_len=$max_cmd_len
14245
14246# Object file suffix (normally "o").
14247objext=$ac_objext
14248
14249# Executable file suffix (normally "").
14250exeext=$exeext
14251
14252# whether the shell understands "unset".
14253lt_unset=$lt_unset
14254
14255# turn spaces into newlines.
14256SP2NL=$lt_lt_SP2NL
14257
14258# turn newlines into spaces.
14259NL2SP=$lt_lt_NL2SP
14260
14261# How to create reloadable object files.
14262reload_flag=$lt_reload_flag
14263reload_cmds=$lt_reload_cmds
14264
14265# An object symbol dumper.
14266OBJDUMP=$lt_OBJDUMP
14267
14268# Method to check whether dependent libraries are shared objects.
14269deplibs_check_method=$lt_deplibs_check_method
14270
14271# Command to use when deplibs_check_method == "file_magic".
14272file_magic_cmd=$lt_file_magic_cmd
14273
14274# The archiver.
14275AR=$lt_AR
14276AR_FLAGS=$lt_AR_FLAGS
14277
14278# A symbol stripping program.
14279STRIP=$lt_STRIP
14280
14281# Commands used to install an old-style archive.
14282RANLIB=$lt_RANLIB
14283old_postinstall_cmds=$lt_old_postinstall_cmds
14284old_postuninstall_cmds=$lt_old_postuninstall_cmds
14285
14286# A C compiler.
14287LTCC=$lt_CC
14288
14289# LTCC compiler flags.
14290LTCFLAGS=$lt_CFLAGS
14291
14292# Take the output of nm and produce a listing of raw symbols and C names.
14293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14294
14295# Transform the output of nm in a proper C declaration.
14296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14297
14298# Transform the output of nm in a C name address pair.
14299global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14300
14301# Transform the output of nm in a C name address pair when lib prefix is needed.
14302global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14303
14304# The name of the directory that contains temporary libtool files.
14305objdir=$objdir
14306
14307# Shell to use when invoking shell scripts.
14308SHELL=$lt_SHELL
14309
14310# An echo program that does not interpret backslashes.
14311ECHO=$lt_ECHO
14312
14313# Used to examine libraries when file_magic_cmd begins with "file".
14314MAGIC_CMD=$MAGIC_CMD
14315
14316# Must we lock files when doing compilation?
14317need_locks=$lt_need_locks
14318
14319# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14320DSYMUTIL=$lt_DSYMUTIL
14321
14322# Tool to change global to local symbols on Mac OS X.
14323NMEDIT=$lt_NMEDIT
14324
14325# Tool to manipulate fat objects and archives on Mac OS X.
14326LIPO=$lt_LIPO
14327
14328# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14329OTOOL=$lt_OTOOL
14330
14331# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14332OTOOL64=$lt_OTOOL64
14333
14334# Old archive suffix (normally "a").
14335libext=$libext
14336
14337# Shared library suffix (normally ".so").
14338shrext_cmds=$lt_shrext_cmds
14339
14340# The commands to extract the exported symbol list from a shared archive.
14341extract_expsyms_cmds=$lt_extract_expsyms_cmds
14342
14343# Variables whose values should be saved in libtool wrapper scripts and
14344# restored at link time.
14345variables_saved_for_relink=$lt_variables_saved_for_relink
14346
14347# Do we need the "lib" prefix for modules?
14348need_lib_prefix=$need_lib_prefix
14349
14350# Do we need a version for libraries?
14351need_version=$need_version
14352
14353# Library versioning type.
14354version_type=$version_type
14355
14356# Shared library runtime path variable.
14357runpath_var=$runpath_var
14358
14359# Shared library path variable.
14360shlibpath_var=$shlibpath_var
14361
14362# Is shlibpath searched before the hard-coded library search path?
14363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14364
14365# Format of library name prefix.
14366libname_spec=$lt_libname_spec
14367
14368# List of archive names.  First name is the real one, the rest are links.
14369# The last name is the one that the linker finds with -lNAME
14370library_names_spec=$lt_library_names_spec
14371
14372# The coded name of the library, if different from the real name.
14373soname_spec=$lt_soname_spec
14374
14375# Command to use after installation of a shared archive.
14376postinstall_cmds=$lt_postinstall_cmds
14377
14378# Command to use after uninstallation of a shared archive.
14379postuninstall_cmds=$lt_postuninstall_cmds
14380
14381# Commands used to finish a libtool library installation in a directory.
14382finish_cmds=$lt_finish_cmds
14383
14384# As "finish_cmds", except a single script fragment to be evaled but
14385# not shown.
14386finish_eval=$lt_finish_eval
14387
14388# Whether we should hardcode library paths into libraries.
14389hardcode_into_libs=$hardcode_into_libs
14390
14391# Compile-time system search path for libraries.
14392sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14393
14394# Run-time system search path for libraries.
14395sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14396
14397# Whether dlopen is supported.
14398dlopen_support=$enable_dlopen
14399
14400# Whether dlopen of programs is supported.
14401dlopen_self=$enable_dlopen_self
14402
14403# Whether dlopen of statically linked programs is supported.
14404dlopen_self_static=$enable_dlopen_self_static
14405
14406# Commands to strip libraries.
14407old_striplib=$lt_old_striplib
14408striplib=$lt_striplib
14409
14410
14411# The linker used to build libraries.
14412LD=$lt_LD
14413
14414# Commands used to build an old-style archive.
14415old_archive_cmds=$lt_old_archive_cmds
14416
14417# A language specific compiler.
14418CC=$lt_compiler
14419
14420# Is the compiler the GNU compiler?
14421with_gcc=$GCC
14422
14423# Compiler flag to turn off builtin functions.
14424no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14425
14426# How to pass a linker flag through the compiler.
14427wl=$lt_lt_prog_compiler_wl
14428
14429# Additional compiler flags for building library objects.
14430pic_flag=$lt_lt_prog_compiler_pic
14431
14432# Compiler flag to prevent dynamic linking.
14433link_static_flag=$lt_lt_prog_compiler_static
14434
14435# Does compiler simultaneously support -c and -o options?
14436compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14437
14438# Whether or not to add -lc for building shared libraries.
14439build_libtool_need_lc=$archive_cmds_need_lc
14440
14441# Whether or not to disallow shared libs when runtime libs are static.
14442allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14443
14444# Compiler flag to allow reflexive dlopens.
14445export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14446
14447# Compiler flag to generate shared objects directly from archives.
14448whole_archive_flag_spec=$lt_whole_archive_flag_spec
14449
14450# Whether the compiler copes with passing no objects directly.
14451compiler_needs_object=$lt_compiler_needs_object
14452
14453# Create an old-style archive from a shared archive.
14454old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14455
14456# Create a temporary old-style archive to link instead of a shared archive.
14457old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14458
14459# Commands used to build a shared archive.
14460archive_cmds=$lt_archive_cmds
14461archive_expsym_cmds=$lt_archive_expsym_cmds
14462
14463# Commands used to build a loadable module if different from building
14464# a shared archive.
14465module_cmds=$lt_module_cmds
14466module_expsym_cmds=$lt_module_expsym_cmds
14467
14468# Whether we are building with GNU ld or not.
14469with_gnu_ld=$lt_with_gnu_ld
14470
14471# Flag that allows shared libraries with undefined symbols to be built.
14472allow_undefined_flag=$lt_allow_undefined_flag
14473
14474# Flag that enforces no undefined symbols.
14475no_undefined_flag=$lt_no_undefined_flag
14476
14477# Flag to hardcode \$libdir into a binary during linking.
14478# This must work even if \$libdir does not exist
14479hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14480
14481# If ld is used when linking, flag to hardcode \$libdir into a binary
14482# during linking.  This must work even if \$libdir does not exist.
14483hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14484
14485# Whether we need a single "-rpath" flag with a separated argument.
14486hardcode_libdir_separator=$lt_hardcode_libdir_separator
14487
14488# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14489# DIR into the resulting binary.
14490hardcode_direct=$hardcode_direct
14491
14492# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14493# DIR into the resulting binary and the resulting library dependency is
14494# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14495# library is relocated.
14496hardcode_direct_absolute=$hardcode_direct_absolute
14497
14498# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14499# into the resulting binary.
14500hardcode_minus_L=$hardcode_minus_L
14501
14502# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14503# into the resulting binary.
14504hardcode_shlibpath_var=$hardcode_shlibpath_var
14505
14506# Set to "yes" if building a shared library automatically hardcodes DIR
14507# into the library and all subsequent libraries and executables linked
14508# against it.
14509hardcode_automatic=$hardcode_automatic
14510
14511# Set to yes if linker adds runtime paths of dependent libraries
14512# to runtime path list.
14513inherit_rpath=$inherit_rpath
14514
14515# Whether libtool must link a program against all its dependency libraries.
14516link_all_deplibs=$link_all_deplibs
14517
14518# Fix the shell variable \$srcfile for the compiler.
14519fix_srcfile_path=$lt_fix_srcfile_path
14520
14521# Set to "yes" if exported symbols are required.
14522always_export_symbols=$always_export_symbols
14523
14524# The commands to list exported symbols.
14525export_symbols_cmds=$lt_export_symbols_cmds
14526
14527# Symbols that should not be listed in the preloaded symbols.
14528exclude_expsyms=$lt_exclude_expsyms
14529
14530# Symbols that must always be exported.
14531include_expsyms=$lt_include_expsyms
14532
14533# Commands necessary for linking programs (against libraries) with templates.
14534prelink_cmds=$lt_prelink_cmds
14535
14536# Specify filename containing input files.
14537file_list_spec=$lt_file_list_spec
14538
14539# How to hardcode a shared library path into an executable.
14540hardcode_action=$hardcode_action
14541
14542# ### END LIBTOOL CONFIG
14543
14544_LT_EOF
14545
14546  case $host_os in
14547  aix3*)
14548    cat <<\_LT_EOF >> "$cfgfile"
14549# AIX sometimes has problems with the GCC collect2 program.  For some
14550# reason, if we set the COLLECT_NAMES environment variable, the problems
14551# vanish in a puff of smoke.
14552if test "X${COLLECT_NAMES+set}" != Xset; then
14553  COLLECT_NAMES=
14554  export COLLECT_NAMES
14555fi
14556_LT_EOF
14557    ;;
14558  esac
14559
14560
14561ltmain="$ac_aux_dir/ltmain.sh"
14562
14563
14564  # We use sed instead of cat because bash on DJGPP gets confused if
14565  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14566  # text mode, it properly converts lines to CR/LF.  This bash problem
14567  # is reportedly fixed, but why not run on old versions too?
14568  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14569    || (rm -f "$cfgfile"; exit 1)
14570
14571  case $xsi_shell in
14572  yes)
14573    cat << \_LT_EOF >> "$cfgfile"
14574
14575# func_dirname file append nondir_replacement
14576# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14577# otherwise set result to NONDIR_REPLACEMENT.
14578func_dirname ()
14579{
14580  case ${1} in
14581    */*) func_dirname_result="${1%/*}${2}" ;;
14582    *  ) func_dirname_result="${3}" ;;
14583  esac
14584}
14585
14586# func_basename file
14587func_basename ()
14588{
14589  func_basename_result="${1##*/}"
14590}
14591
14592# func_dirname_and_basename file append nondir_replacement
14593# perform func_basename and func_dirname in a single function
14594# call:
14595#   dirname:  Compute the dirname of FILE.  If nonempty,
14596#             add APPEND to the result, otherwise set result
14597#             to NONDIR_REPLACEMENT.
14598#             value returned in "$func_dirname_result"
14599#   basename: Compute filename of FILE.
14600#             value retuned in "$func_basename_result"
14601# Implementation must be kept synchronized with func_dirname
14602# and func_basename. For efficiency, we do not delegate to
14603# those functions but instead duplicate the functionality here.
14604func_dirname_and_basename ()
14605{
14606  case ${1} in
14607    */*) func_dirname_result="${1%/*}${2}" ;;
14608    *  ) func_dirname_result="${3}" ;;
14609  esac
14610  func_basename_result="${1##*/}"
14611}
14612
14613# func_stripname prefix suffix name
14614# strip PREFIX and SUFFIX off of NAME.
14615# PREFIX and SUFFIX must not contain globbing or regex special
14616# characters, hashes, percent signs, but SUFFIX may contain a leading
14617# dot (in which case that matches only a dot).
14618func_stripname ()
14619{
14620  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14621  # positional parameters, so assign one to ordinary parameter first.
14622  func_stripname_result=${3}
14623  func_stripname_result=${func_stripname_result#"${1}"}
14624  func_stripname_result=${func_stripname_result%"${2}"}
14625}
14626
14627# func_opt_split
14628func_opt_split ()
14629{
14630  func_opt_split_opt=${1%%=*}
14631  func_opt_split_arg=${1#*=}
14632}
14633
14634# func_lo2o object
14635func_lo2o ()
14636{
14637  case ${1} in
14638    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14639    *)    func_lo2o_result=${1} ;;
14640  esac
14641}
14642
14643# func_xform libobj-or-source
14644func_xform ()
14645{
14646  func_xform_result=${1%.*}.lo
14647}
14648
14649# func_arith arithmetic-term...
14650func_arith ()
14651{
14652  func_arith_result=$(( $* ))
14653}
14654
14655# func_len string
14656# STRING may not start with a hyphen.
14657func_len ()
14658{
14659  func_len_result=${#1}
14660}
14661
14662_LT_EOF
14663    ;;
14664  *) # Bourne compatible functions.
14665    cat << \_LT_EOF >> "$cfgfile"
14666
14667# func_dirname file append nondir_replacement
14668# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14669# otherwise set result to NONDIR_REPLACEMENT.
14670func_dirname ()
14671{
14672  # Extract subdirectory from the argument.
14673  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14674  if test "X$func_dirname_result" = "X${1}"; then
14675    func_dirname_result="${3}"
14676  else
14677    func_dirname_result="$func_dirname_result${2}"
14678  fi
14679}
14680
14681# func_basename file
14682func_basename ()
14683{
14684  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14685}
14686
14687
14688# func_stripname prefix suffix name
14689# strip PREFIX and SUFFIX off of NAME.
14690# PREFIX and SUFFIX must not contain globbing or regex special
14691# characters, hashes, percent signs, but SUFFIX may contain a leading
14692# dot (in which case that matches only a dot).
14693# func_strip_suffix prefix name
14694func_stripname ()
14695{
14696  case ${2} in
14697    .*) func_stripname_result=`$ECHO "X${3}" \
14698           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14699    *)  func_stripname_result=`$ECHO "X${3}" \
14700           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14701  esac
14702}
14703
14704# sed scripts:
14705my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14706my_sed_long_arg='1s/^-[^=]*=//'
14707
14708# func_opt_split
14709func_opt_split ()
14710{
14711  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14712  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14713}
14714
14715# func_lo2o object
14716func_lo2o ()
14717{
14718  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14719}
14720
14721# func_xform libobj-or-source
14722func_xform ()
14723{
14724  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14725}
14726
14727# func_arith arithmetic-term...
14728func_arith ()
14729{
14730  func_arith_result=`expr "$@"`
14731}
14732
14733# func_len string
14734# STRING may not start with a hyphen.
14735func_len ()
14736{
14737  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14738}
14739
14740_LT_EOF
14741esac
14742
14743case $lt_shell_append in
14744  yes)
14745    cat << \_LT_EOF >> "$cfgfile"
14746
14747# func_append var value
14748# Append VALUE to the end of shell variable VAR.
14749func_append ()
14750{
14751  eval "$1+=\$2"
14752}
14753_LT_EOF
14754    ;;
14755  *)
14756    cat << \_LT_EOF >> "$cfgfile"
14757
14758# func_append var value
14759# Append VALUE to the end of shell variable VAR.
14760func_append ()
14761{
14762  eval "$1=\$$1\$2"
14763}
14764
14765_LT_EOF
14766    ;;
14767  esac
14768
14769
14770  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14771    || (rm -f "$cfgfile"; exit 1)
14772
14773  mv -f "$cfgfile" "$ofile" ||
14774    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14775  chmod +x "$ofile"
14776
14777 ;;
14778    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
14779        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14780      esac ;;
14781
14782  esac
14783done # for ac_tag
14784
14785
14786as_fn_exit 0
14787_ACEOF
14788ac_clean_files=$ac_clean_files_save
14789
14790test $ac_write_fail = 0 ||
14791  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14792
14793
14794# configure is writing to config.log, and then calls config.status.
14795# config.status does its own redirection, appending to config.log.
14796# Unfortunately, on DOS this fails, as config.log is still kept open
14797# by configure, so config.status won't be able to write to it; its
14798# output is simply discarded.  So we exec the FD to /dev/null,
14799# effectively closing config.log, so it can be properly (re)opened and
14800# appended to by config.status.  When coming back to configure, we
14801# need to make the FD available again.
14802if test "$no_create" != yes; then
14803  ac_cs_success=:
14804  ac_config_status_args=
14805  test "$silent" = yes &&
14806    ac_config_status_args="$ac_config_status_args --quiet"
14807  exec 5>/dev/null
14808  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14809  exec 5>>config.log
14810  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14811  # would make configure fail if this is the last instruction.
14812  $ac_cs_success || as_fn_exit $?
14813fi
14814if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14815  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14816$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14817fi
14818
14819
14820