1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for polylib 5.22.5.
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='polylib'
700PACKAGE_TARNAME='polylib'
701PACKAGE_VERSION='5.22.5'
702PACKAGE_STRING='polylib 5.22.5'
703PACKAGE_BUGREPORT=''
704PACKAGE_URL=''
705
706ac_unique_file="include/polylib/polylib.h.in"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746pkgconfig_libfile
747pkgconfig_libdir
748BITS
749DOXYGEN
750multi_noinst_programs
751multi_bin_programs
752polylib
753LIBOBJS
754ALL_BITS
755polylibs
756polylib128_defs
757polylib64_defs
758polylib32_defs
759CPP
760OTOOL64
761OTOOL
762LIPO
763NMEDIT
764DSYMUTIL
765lt_ECHO
766RANLIB
767AR
768OBJDUMP
769NM
770ac_ct_DUMPBIN
771DUMPBIN
772LD
773FGREP
774EGREP
775GREP
776SED
777host_os
778host_vendor
779host_cpu
780host
781build_os
782build_vendor
783build_cpu
784build
785LIBTOOL
786LN_S
787am__fastdepCC_FALSE
788am__fastdepCC_TRUE
789CCDEPMODE
790AMDEPBACKSLASH
791AMDEP_FALSE
792AMDEP_TRUE
793am__quote
794am__include
795DEPDIR
796OBJEXT
797EXEEXT
798ac_ct_CC
799CPPFLAGS
800LDFLAGS
801CFLAGS
802CC
803versioninfo
804am__untar
805am__tar
806AMTAR
807am__leading_dot
808SET_MAKE
809AWK
810mkdir_p
811MKDIR_P
812INSTALL_STRIP_PROGRAM
813STRIP
814install_sh
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823am__isrc
824INSTALL_DATA
825INSTALL_SCRIPT
826INSTALL_PROGRAM
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846localstatedir
847sharedstatedir
848sysconfdir
849datadir
850datarootdir
851libexecdir
852sbindir
853bindir
854program_transform_name
855prefix
856exec_prefix
857PACKAGE_URL
858PACKAGE_BUGREPORT
859PACKAGE_STRING
860PACKAGE_VERSION
861PACKAGE_TARNAME
862PACKAGE_NAME
863PATH_SEPARATOR
864SHELL'
865ac_subst_files=''
866ac_user_opts='
867enable_option_checking
868enable_dependency_tracking
869enable_shared
870enable_static
871with_pic
872enable_fast_install
873with_gnu_ld
874enable_libtool_lock
875enable_int_lib
876enable_longint_lib
877enable_longlongint_lib
878with_libgmp
879enable_extra_suffix
880with_doxygen
881'
882      ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
888LIBS
889CPPFLAGS
890CPP'
891
892
893# Initialize some variables set by options.
894ac_init_help=
895ac_init_version=false
896ac_unrecognized_opts=
897ac_unrecognized_sep=
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error "invalid feature name: $ac_useropt"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=no ;;
1010
1011  -docdir | --docdir | --docdi | --doc | --do)
1012    ac_prev=docdir ;;
1013  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014    docdir=$ac_optarg ;;
1015
1016  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017    ac_prev=dvidir ;;
1018  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019    dvidir=$ac_optarg ;;
1020
1021  -enable-* | --enable-*)
1022    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025      as_fn_error "invalid feature name: $ac_useropt"
1026    ac_useropt_orig=$ac_useropt
1027    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028    case $ac_user_opts in
1029      *"
1030"enable_$ac_useropt"
1031"*) ;;
1032      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033	 ac_unrecognized_sep=', ';;
1034    esac
1035    eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039  | --exec | --exe | --ex)
1040    ac_prev=exec_prefix ;;
1041  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043  | --exec=* | --exe=* | --ex=*)
1044    exec_prefix=$ac_optarg ;;
1045
1046  -gas | --gas | --ga | --g)
1047    # Obsolete; use --with-gas.
1048    with_gas=yes ;;
1049
1050  -help | --help | --hel | --he | -h)
1051    ac_init_help=long ;;
1052  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053    ac_init_help=recursive ;;
1054  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055    ac_init_help=short ;;
1056
1057  -host | --host | --hos | --ho)
1058    ac_prev=host_alias ;;
1059  -host=* | --host=* | --hos=* | --ho=*)
1060    host_alias=$ac_optarg ;;
1061
1062  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063    ac_prev=htmldir ;;
1064  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065  | --ht=*)
1066    htmldir=$ac_optarg ;;
1067
1068  -includedir | --includedir | --includedi | --included | --include \
1069  | --includ | --inclu | --incl | --inc)
1070    ac_prev=includedir ;;
1071  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072  | --includ=* | --inclu=* | --incl=* | --inc=*)
1073    includedir=$ac_optarg ;;
1074
1075  -infodir | --infodir | --infodi | --infod | --info | --inf)
1076    ac_prev=infodir ;;
1077  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078    infodir=$ac_optarg ;;
1079
1080  -libdir | --libdir | --libdi | --libd)
1081    ac_prev=libdir ;;
1082  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083    libdir=$ac_optarg ;;
1084
1085  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086  | --libexe | --libex | --libe)
1087    ac_prev=libexecdir ;;
1088  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089  | --libexe=* | --libex=* | --libe=*)
1090    libexecdir=$ac_optarg ;;
1091
1092  -localedir | --localedir | --localedi | --localed | --locale)
1093    ac_prev=localedir ;;
1094  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095    localedir=$ac_optarg ;;
1096
1097  -localstatedir | --localstatedir | --localstatedi | --localstated \
1098  | --localstate | --localstat | --localsta | --localst | --locals)
1099    ac_prev=localstatedir ;;
1100  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102    localstatedir=$ac_optarg ;;
1103
1104  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105    ac_prev=mandir ;;
1106  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107    mandir=$ac_optarg ;;
1108
1109  -nfp | --nfp | --nf)
1110    # Obsolete; use --without-fp.
1111    with_fp=no ;;
1112
1113  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114  | --no-cr | --no-c | -n)
1115    no_create=yes ;;
1116
1117  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119    no_recursion=yes ;;
1120
1121  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123  | --oldin | --oldi | --old | --ol | --o)
1124    ac_prev=oldincludedir ;;
1125  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128    oldincludedir=$ac_optarg ;;
1129
1130  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131    ac_prev=prefix ;;
1132  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133    prefix=$ac_optarg ;;
1134
1135  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136  | --program-pre | --program-pr | --program-p)
1137    ac_prev=program_prefix ;;
1138  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140    program_prefix=$ac_optarg ;;
1141
1142  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143  | --program-suf | --program-su | --program-s)
1144    ac_prev=program_suffix ;;
1145  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147    program_suffix=$ac_optarg ;;
1148
1149  -program-transform-name | --program-transform-name \
1150  | --program-transform-nam | --program-transform-na \
1151  | --program-transform-n | --program-transform- \
1152  | --program-transform | --program-transfor \
1153  | --program-transfo | --program-transf \
1154  | --program-trans | --program-tran \
1155  | --progr-tra | --program-tr | --program-t)
1156    ac_prev=program_transform_name ;;
1157  -program-transform-name=* | --program-transform-name=* \
1158  | --program-transform-nam=* | --program-transform-na=* \
1159  | --program-transform-n=* | --program-transform-=* \
1160  | --program-transform=* | --program-transfor=* \
1161  | --program-transfo=* | --program-transf=* \
1162  | --program-trans=* | --program-tran=* \
1163  | --progr-tra=* | --program-tr=* | --program-t=*)
1164    program_transform_name=$ac_optarg ;;
1165
1166  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167    ac_prev=pdfdir ;;
1168  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169    pdfdir=$ac_optarg ;;
1170
1171  -psdir | --psdir | --psdi | --psd | --ps)
1172    ac_prev=psdir ;;
1173  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174    psdir=$ac_optarg ;;
1175
1176  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177  | -silent | --silent | --silen | --sile | --sil)
1178    silent=yes ;;
1179
1180  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181    ac_prev=sbindir ;;
1182  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183  | --sbi=* | --sb=*)
1184    sbindir=$ac_optarg ;;
1185
1186  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188  | --sharedst | --shareds | --shared | --share | --shar \
1189  | --sha | --sh)
1190    ac_prev=sharedstatedir ;;
1191  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194  | --sha=* | --sh=*)
1195    sharedstatedir=$ac_optarg ;;
1196
1197  -site | --site | --sit)
1198    ac_prev=site ;;
1199  -site=* | --site=* | --sit=*)
1200    site=$ac_optarg ;;
1201
1202  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203    ac_prev=srcdir ;;
1204  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205    srcdir=$ac_optarg ;;
1206
1207  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208  | --syscon | --sysco | --sysc | --sys | --sy)
1209    ac_prev=sysconfdir ;;
1210  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212    sysconfdir=$ac_optarg ;;
1213
1214  -target | --target | --targe | --targ | --tar | --ta | --t)
1215    ac_prev=target_alias ;;
1216  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217    target_alias=$ac_optarg ;;
1218
1219  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220    verbose=yes ;;
1221
1222  -version | --version | --versio | --versi | --vers | -V)
1223    ac_init_version=: ;;
1224
1225  -with-* | --with-*)
1226    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229      as_fn_error "invalid package name: $ac_useropt"
1230    ac_useropt_orig=$ac_useropt
1231    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232    case $ac_user_opts in
1233      *"
1234"with_$ac_useropt"
1235"*) ;;
1236      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237	 ac_unrecognized_sep=', ';;
1238    esac
1239    eval with_$ac_useropt=\$ac_optarg ;;
1240
1241  -without-* | --without-*)
1242    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245      as_fn_error "invalid package name: $ac_useropt"
1246    ac_useropt_orig=$ac_useropt
1247    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248    case $ac_user_opts in
1249      *"
1250"with_$ac_useropt"
1251"*) ;;
1252      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253	 ac_unrecognized_sep=', ';;
1254    esac
1255    eval with_$ac_useropt=no ;;
1256
1257  --x)
1258    # Obsolete; use --with-x.
1259    with_x=yes ;;
1260
1261  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262  | --x-incl | --x-inc | --x-in | --x-i)
1263    ac_prev=x_includes ;;
1264  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266    x_includes=$ac_optarg ;;
1267
1268  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270    ac_prev=x_libraries ;;
1271  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273    x_libraries=$ac_optarg ;;
1274
1275  -*) as_fn_error "unrecognized option: \`$ac_option'
1276Try \`$0 --help' for more information."
1277    ;;
1278
1279  *=*)
1280    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281    # Reject names that are not valid shell variable names.
1282    case $ac_envvar in #(
1283      '' | [0-9]* | *[!_$as_cr_alnum]* )
1284      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1285    esac
1286    eval $ac_envvar=\$ac_optarg
1287    export $ac_envvar ;;
1288
1289  *)
1290    # FIXME: should be removed in autoconf 3.0.
1291    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295    ;;
1296
1297  esac
1298done
1299
1300if test -n "$ac_prev"; then
1301  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302  as_fn_error "missing argument to $ac_option"
1303fi
1304
1305if test -n "$ac_unrecognized_opts"; then
1306  case $enable_option_checking in
1307    no) ;;
1308    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1309    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310  esac
1311fi
1312
1313# Check all directory arguments for consistency.
1314for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315		datadir sysconfdir sharedstatedir localstatedir includedir \
1316		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317		libdir localedir mandir
1318do
1319  eval ac_val=\$$ac_var
1320  # Remove trailing slashes.
1321  case $ac_val in
1322    */ )
1323      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324      eval $ac_var=\$ac_val;;
1325  esac
1326  # Be sure to have absolute directory names.
1327  case $ac_val in
1328    [\\/$]* | ?:[\\/]* )  continue;;
1329    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330  esac
1331  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1332done
1333
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
1340
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343  if test "x$build_alias" = x; then
1344    cross_compiling=maybe
1345    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346    If a cross compiler is detected then cross compile mode will be used." >&2
1347  elif test "x$build_alias" != "x$host_alias"; then
1348    cross_compiling=yes
1349  fi
1350fi
1351
1352ac_tool_prefix=
1353test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355test "$silent" = yes && exec 6>/dev/null
1356
1357
1358ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359ac_ls_di=`ls -di .` &&
1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361  as_fn_error "working directory cannot be determined"
1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363  as_fn_error "pwd does not report name of working directory"
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368  ac_srcdir_defaulted=yes
1369  # Try the directory containing this script, then the parent directory.
1370  ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372	 X"$as_myself" : 'X\(//\)[^/]' \| \
1373	 X"$as_myself" : 'X\(//\)$' \| \
1374	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)[^/].*/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\/\)$/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\).*/{
1389	    s//\1/
1390	    q
1391	  }
1392	  s/.*/./; q'`
1393  srcdir=$ac_confdir
1394  if test ! -r "$srcdir/$ac_unique_file"; then
1395    srcdir=..
1396  fi
1397else
1398  ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1403fi
1404ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405ac_abs_confdir=`(
1406	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1407	pwd)`
1408# When building in place, set srcdir=.
1409if test "$ac_abs_confdir" = "$ac_pwd"; then
1410  srcdir=.
1411fi
1412# Remove unnecessary trailing slashes from srcdir.
1413# Double slashes in file names in object file debugging info
1414# mess up M-x gdb in Emacs.
1415case $srcdir in
1416*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417esac
1418for ac_var in $ac_precious_vars; do
1419  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420  eval ac_env_${ac_var}_value=\$${ac_var}
1421  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423done
1424
1425#
1426# Report the --help message.
1427#
1428if test "$ac_init_help" = "long"; then
1429  # Omit some internal or obsolete options to make the list less imposing.
1430  # This message is too long to be a string in the A/UX 3.1 sh.
1431  cat <<_ACEOF
1432\`configure' configures polylib 5.22.5 to adapt to many kinds of systems.
1433
1434Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439Defaults for the options are specified in brackets.
1440
1441Configuration:
1442  -h, --help              display this help and exit
1443      --help=short        display options specific to this package
1444      --help=recursive    display the short help of all the included packages
1445  -V, --version           display version information and exit
1446  -q, --quiet, --silent   do not print \`checking...' messages
1447      --cache-file=FILE   cache test results in FILE [disabled]
1448  -C, --config-cache      alias for \`--cache-file=config.cache'
1449  -n, --no-create         do not create output files
1450      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452Installation directories:
1453  --prefix=PREFIX         install architecture-independent files in PREFIX
1454                          [$ac_default_prefix]
1455  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                          [PREFIX]
1457
1458By default, \`make install' will install all the files in
1459\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461for instance \`--prefix=\$HOME'.
1462
1463For better control, use the options below.
1464
1465Fine tuning of the installation directories:
1466  --bindir=DIR            user executables [EPREFIX/bin]
1467  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1468  --libexecdir=DIR        program executables [EPREFIX/libexec]
1469  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1470  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1471  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1472  --libdir=DIR            object code libraries [EPREFIX/lib]
1473  --includedir=DIR        C header files [PREFIX/include]
1474  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1475  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1476  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1477  --infodir=DIR           info documentation [DATAROOTDIR/info]
1478  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1479  --mandir=DIR            man documentation [DATAROOTDIR/man]
1480  --docdir=DIR            documentation root [DATAROOTDIR/doc/polylib]
1481  --htmldir=DIR           html documentation [DOCDIR]
1482  --dvidir=DIR            dvi documentation [DOCDIR]
1483  --pdfdir=DIR            pdf documentation [DOCDIR]
1484  --psdir=DIR             ps documentation [DOCDIR]
1485_ACEOF
1486
1487  cat <<\_ACEOF
1488
1489Program names:
1490  --program-prefix=PREFIX            prepend PREFIX to installed program names
1491  --program-suffix=SUFFIX            append SUFFIX to installed program names
1492  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494System types:
1495  --build=BUILD     configure for building on BUILD [guessed]
1496  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497_ACEOF
1498fi
1499
1500if test -n "$ac_init_help"; then
1501  case $ac_init_help in
1502     short | recursive ) echo "Configuration of polylib 5.22.5:";;
1503   esac
1504  cat <<\_ACEOF
1505
1506Optional Features:
1507  --disable-option-checking  ignore unrecognized --enable/--with options
1508  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1509  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1510  --disable-dependency-tracking  speeds up one-time build
1511  --enable-dependency-tracking   do not reject slow dependency extractors
1512  --enable-shared[=PKGS]  build shared libraries [default=yes]
1513  --enable-static[=PKGS]  build static libraries [default=yes]
1514  --enable-fast-install[=PKGS]
1515                          optimize for fast installation [default=yes]
1516  --disable-libtool-lock  avoid locking (might break parallel builds)
1517  --enable-int-lib        Build an int library
1518  --enable-longint-lib    Build a long int library
1519  --enable-longlongint-lib Build a long long int library
1520  --enable-extra-suffix   Add bits size suffix to executables
1521
1522Optional Packages:
1523  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525  --with-pic              try to use only PIC/non-PIC objects [default=use
1526                          both]
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528  --with-libgmp           DIR Location of the GMP Distribution
1529  --with-doxygen          DIR Location of the Doxygen Distribution (http://www.doxygen.org)
1530
1531Some influential environment variables:
1532  CC          C compiler command
1533  CFLAGS      C compiler flags
1534  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535              nonstandard directory <lib dir>
1536  LIBS        libraries to pass to the linker, e.g. -l<library>
1537  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538              you have headers in a nonstandard directory <include dir>
1539  CPP         C preprocessor
1540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
1544Report bugs to the package provider.
1545_ACEOF
1546ac_status=$?
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550  # If there are subdirs, report their specific --help.
1551  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552    test -d "$ac_dir" ||
1553      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554      continue
1555    ac_builddir=.
1556
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561  # A ".." for each directory in $ac_dir_suffix.
1562  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563  case $ac_top_builddir_sub in
1564  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566  esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
1572
1573case $srcdir in
1574  .)  # We are building in place.
1575    ac_srcdir=.
1576    ac_top_srcdir=$ac_top_builddir_sub
1577    ac_abs_top_srcdir=$ac_pwd ;;
1578  [\\/]* | ?:[\\/]* )  # Absolute name.
1579    ac_srcdir=$srcdir$ac_dir_suffix;
1580    ac_top_srcdir=$srcdir
1581    ac_abs_top_srcdir=$srcdir ;;
1582  *) # Relative name.
1583    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584    ac_top_srcdir=$ac_top_build_prefix$srcdir
1585    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586esac
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589    cd "$ac_dir" || { ac_status=$?; continue; }
1590    # Check for guested configure.
1591    if test -f "$ac_srcdir/configure.gnu"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594    elif test -f "$ac_srcdir/configure"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure" --help=recursive
1597    else
1598      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599    fi || ac_status=$?
1600    cd "$ac_pwd" || { ac_status=$?; break; }
1601  done
1602fi
1603
1604test -n "$ac_init_help" && exit $ac_status
1605if $ac_init_version; then
1606  cat <<\_ACEOF
1607polylib configure 5.22.5
1608generated by GNU Autoconf 2.65
1609
1610Copyright (C) 2009 Free Software Foundation, Inc.
1611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
1613_ACEOF
1614  exit
1615fi
1616
1617## ------------------------ ##
1618## Autoconf initialization. ##
1619## ------------------------ ##
1620
1621# ac_fn_c_try_compile LINENO
1622# --------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_compile ()
1625{
1626  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627  rm -f conftest.$ac_objext
1628  if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_compile") 2>conftest.err
1636  ac_status=$?
1637  if test -s conftest.err; then
1638    grep -v '^ *+' conftest.err >conftest.er1
1639    cat conftest.er1 >&5
1640    mv -f conftest.er1 conftest.err
1641  fi
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; } && {
1644	 test -z "$ac_c_werror_flag" ||
1645	 test ! -s conftest.err
1646       } && test -s conftest.$ac_objext; then :
1647  ac_retval=0
1648else
1649  $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
1651
1652	ac_retval=1
1653fi
1654  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655  as_fn_set_status $ac_retval
1656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  rm -f conftest.$ac_objext conftest$ac_exeext
1666  if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_link") 2>conftest.err
1674  ac_status=$?
1675  if test -s conftest.err; then
1676    grep -v '^ *+' conftest.err >conftest.er1
1677    cat conftest.er1 >&5
1678    mv -f conftest.er1 conftest.err
1679  fi
1680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681  test $ac_status = 0; } && {
1682	 test -z "$ac_c_werror_flag" ||
1683	 test ! -s conftest.err
1684       } && test -s conftest$ac_exeext && {
1685	 test "$cross_compiling" = yes ||
1686	 $as_test_x conftest$ac_exeext
1687       }; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697  # interfere with the next link command; also delete a directory that is
1698  # left behind by Apple's compiler.  We do this before executing the actions.
1699  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_link
1704
1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706# -------------------------------------------------------
1707# Tests whether HEADER exists and can be compiled using the include files in
1708# INCLUDES, setting the cache variable VAR accordingly.
1709ac_fn_c_check_header_compile ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715  $as_echo_n "(cached) " >&6
1716else
1717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h.  */
1719$4
1720#include <$2>
1721_ACEOF
1722if ac_fn_c_try_compile "$LINENO"; then :
1723  eval "$3=yes"
1724else
1725  eval "$3=no"
1726fi
1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728fi
1729eval ac_res=\$$3
1730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733
1734} # ac_fn_c_check_header_compile
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } >/dev/null && {
1758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766    ac_retval=1
1767fi
1768  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791  { { case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_try") 2>&5
1798  ac_status=$?
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; }; }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: program exited with status $ac_status" >&5
1804       $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807       ac_retval=$ac_status
1808fi
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_func LINENO FUNC VAR
1816# ----------------------------------
1817# Tests whether FUNC exists, setting the cache variable VAR accordingly
1818ac_fn_c_check_func ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1830#define $2 innocuous_$2
1831
1832/* System header to define __stub macros and hopefully few prototypes,
1833    which can conflict with char $2 (); below.
1834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835    <limits.h> exists even on freestanding compilers.  */
1836
1837#ifdef __STDC__
1838# include <limits.h>
1839#else
1840# include <assert.h>
1841#endif
1842
1843#undef $2
1844
1845/* Override any GCC internal prototype to avoid an error.
1846   Use char because int might match the return type of a GCC
1847   builtin and then its argument prototype would still apply.  */
1848#ifdef __cplusplus
1849extern "C"
1850#endif
1851char $2 ();
1852/* The GNU C library defines this for functions which it implements
1853    to always fail with ENOSYS.  Some functions are actually named
1854    something starting with __ and the normal name is an alias.  */
1855#if defined __stub_$2 || defined __stub___$2
1856choke me
1857#endif
1858
1859int
1860main ()
1861{
1862return $2 ();
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_link "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext \
1873    conftest$ac_exeext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880} # ac_fn_c_check_func
1881
1882# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883# -------------------------------------------------------
1884# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885# the include files in INCLUDES and setting the cache variable VAR
1886# accordingly.
1887ac_fn_c_check_header_mongrel ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894  $as_echo_n "(cached) " >&6
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899else
1900  # Is the header compilable?
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902$as_echo_n "checking $2 usability... " >&6; }
1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906#include <$2>
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909  ac_header_compiler=yes
1910else
1911  ac_header_compiler=no
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915$as_echo "$ac_header_compiler" >&6; }
1916
1917# Is the header present?
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919$as_echo_n "checking $2 presence... " >&6; }
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_cpp "$LINENO"; then :
1925  ac_header_preproc=yes
1926else
1927  ac_header_preproc=no
1928fi
1929rm -f conftest.err conftest.$ac_ext
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931$as_echo "$ac_header_preproc" >&6; }
1932
1933# So?  What about this header?
1934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935  yes:no: )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940    ;;
1941  no:yes:* )
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1945$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1949$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952    ;;
1953esac
1954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955$as_echo_n "checking for $2... " >&6; }
1956if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957  $as_echo_n "(cached) " >&6
1958else
1959  eval "$3=\$ac_header_compiler"
1960fi
1961eval ac_res=\$$3
1962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964fi
1965  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966
1967} # ac_fn_c_check_header_mongrel
1968
1969# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970# --------------------------------------------
1971# Tries to find the compile-time value of EXPR in a program that includes
1972# INCLUDES, setting VAR accordingly. Returns whether the value could be
1973# computed
1974ac_fn_c_compute_int ()
1975{
1976  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977  if test "$cross_compiling" = yes; then
1978    # Depending upon the size, compute the lo and hi bounds.
1979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h.  */
1981$4
1982int
1983main ()
1984{
1985static int test_array [1 - 2 * !(($2) >= 0)];
1986test_array [0] = 0
1987
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  ac_lo=0 ac_mid=0
1994  while :; do
1995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h.  */
1997$4
1998int
1999main ()
2000{
2001static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2002test_array [0] = 0
2003
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009  ac_hi=$ac_mid; break
2010else
2011  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2012			if test $ac_lo -le $ac_mid; then
2013			  ac_lo= ac_hi=
2014			  break
2015			fi
2016			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019  done
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) < 0)];
2028test_array [0] = 0
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035  ac_hi=-1 ac_mid=-1
2036  while :; do
2037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044test_array [0] = 0
2045
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"; then :
2051  ac_lo=$ac_mid; break
2052else
2053  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2054			if test $ac_mid -le $ac_hi; then
2055			  ac_lo= ac_hi=
2056			  break
2057			fi
2058			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061  done
2062else
2063  ac_lo= ac_hi=
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068# Binary search between lo and hi bounds.
2069while test "x$ac_lo" != "x$ac_hi"; do
2070  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074int
2075main ()
2076{
2077static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2078test_array [0] = 0
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  ac_hi=$ac_mid
2086else
2087  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090done
2091case $ac_lo in #((
2092?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2093'') ac_retval=1 ;;
2094esac
2095  else
2096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h.  */
2098$4
2099static long int longval () { return $2; }
2100static unsigned long int ulongval () { return $2; }
2101#include <stdio.h>
2102#include <stdlib.h>
2103int
2104main ()
2105{
2106
2107  FILE *f = fopen ("conftest.val", "w");
2108  if (! f)
2109    return 1;
2110  if (($2) < 0)
2111    {
2112      long int i = longval ();
2113      if (i != ($2))
2114	return 1;
2115      fprintf (f, "%ld", i);
2116    }
2117  else
2118    {
2119      unsigned long int i = ulongval ();
2120      if (i != ($2))
2121	return 1;
2122      fprintf (f, "%lu", i);
2123    }
2124  /* Do not output a trailing newline, as this causes \r\n confusion
2125     on some platforms.  */
2126  return ferror (f) || fclose (f) != 0;
2127
2128  ;
2129  return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_run "$LINENO"; then :
2133  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2134else
2135  ac_retval=1
2136fi
2137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2138  conftest.$ac_objext conftest.beam conftest.$ac_ext
2139rm -f conftest.val
2140
2141  fi
2142  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143  as_fn_set_status $ac_retval
2144
2145} # ac_fn_c_compute_int
2146
2147# ac_fn_c_check_decl LINENO SYMBOL VAR
2148# ------------------------------------
2149# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2150ac_fn_c_check_decl ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2154$as_echo_n "checking whether $2 is declared... " >&6; }
2155if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156  $as_echo_n "(cached) " >&6
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164#ifndef $2
2165  (void) $2;
2166#endif
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  eval "$3=yes"
2174else
2175  eval "$3=no"
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
2184} # ac_fn_c_check_decl
2185cat >config.log <<_ACEOF
2186This file contains any messages produced by compilers while
2187running configure, to aid debugging if configure makes a mistake.
2188
2189It was created by polylib $as_me 5.22.5, which was
2190generated by GNU Autoconf 2.65.  Invocation command line was
2191
2192  $ $0 $@
2193
2194_ACEOF
2195exec 5>>config.log
2196{
2197cat <<_ASUNAME
2198## --------- ##
2199## Platform. ##
2200## --------- ##
2201
2202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2210
2211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2218
2219_ASUNAME
2220
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226    $as_echo "PATH: $as_dir"
2227  done
2228IFS=$as_save_IFS
2229
2230} >&5
2231
2232cat >&5 <<_ACEOF
2233
2234
2235## ----------- ##
2236## Core tests. ##
2237## ----------- ##
2238
2239_ACEOF
2240
2241
2242# Keep a trace of the command line.
2243# Strip out --no-create and --no-recursion so they do not pile up.
2244# Strip out --silent because we don't want to record it for future runs.
2245# Also quote any args containing shell meta-characters.
2246# Make two passes to allow for proper duplicate-argument suppression.
2247ac_configure_args=
2248ac_configure_args0=
2249ac_configure_args1=
2250ac_must_keep_next=false
2251for ac_pass in 1 2
2252do
2253  for ac_arg
2254  do
2255    case $ac_arg in
2256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258    | -silent | --silent | --silen | --sile | --sil)
2259      continue ;;
2260    *\'*)
2261      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262    esac
2263    case $ac_pass in
2264    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265    2)
2266      as_fn_append ac_configure_args1 " '$ac_arg'"
2267      if test $ac_must_keep_next = true; then
2268	ac_must_keep_next=false # Got value, back to normal.
2269      else
2270	case $ac_arg in
2271	  *=* | --config-cache | -C | -disable-* | --disable-* \
2272	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274	  | -with-* | --with-* | -without-* | --without-* | --x)
2275	    case "$ac_configure_args0 " in
2276	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277	    esac
2278	    ;;
2279	  -* ) ac_must_keep_next=true ;;
2280	esac
2281      fi
2282      as_fn_append ac_configure_args " '$ac_arg'"
2283      ;;
2284    esac
2285  done
2286done
2287{ ac_configure_args0=; unset ac_configure_args0;}
2288{ ac_configure_args1=; unset ac_configure_args1;}
2289
2290# When interrupted or exit'd, cleanup temporary files, and complete
2291# config.log.  We remove comments because anyway the quotes in there
2292# would cause problems or look ugly.
2293# WARNING: Use '\'' to represent an apostrophe within the trap.
2294# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295trap 'exit_status=$?
2296  # Save into config.log some information that might help in debugging.
2297  {
2298    echo
2299
2300    cat <<\_ASBOX
2301## ---------------- ##
2302## Cache variables. ##
2303## ---------------- ##
2304_ASBOX
2305    echo
2306    # The following way of writing the cache mishandles newlines in values,
2307(
2308  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2309    eval ac_val=\$$ac_var
2310    case $ac_val in #(
2311    *${as_nl}*)
2312      case $ac_var in #(
2313      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315      esac
2316      case $ac_var in #(
2317      _ | IFS | as_nl) ;; #(
2318      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2319      *) { eval $ac_var=; unset $ac_var;} ;;
2320      esac ;;
2321    esac
2322  done
2323  (set) 2>&1 |
2324    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2325    *${as_nl}ac_space=\ *)
2326      sed -n \
2327	"s/'\''/'\''\\\\'\'''\''/g;
2328	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329      ;; #(
2330    *)
2331      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2332      ;;
2333    esac |
2334    sort
2335)
2336    echo
2337
2338    cat <<\_ASBOX
2339## ----------------- ##
2340## Output variables. ##
2341## ----------------- ##
2342_ASBOX
2343    echo
2344    for ac_var in $ac_subst_vars
2345    do
2346      eval ac_val=\$$ac_var
2347      case $ac_val in
2348      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349      esac
2350      $as_echo "$ac_var='\''$ac_val'\''"
2351    done | sort
2352    echo
2353
2354    if test -n "$ac_subst_files"; then
2355      cat <<\_ASBOX
2356## ------------------- ##
2357## File substitutions. ##
2358## ------------------- ##
2359_ASBOX
2360      echo
2361      for ac_var in $ac_subst_files
2362      do
2363	eval ac_val=\$$ac_var
2364	case $ac_val in
2365	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366	esac
2367	$as_echo "$ac_var='\''$ac_val'\''"
2368      done | sort
2369      echo
2370    fi
2371
2372    if test -s confdefs.h; then
2373      cat <<\_ASBOX
2374## ----------- ##
2375## confdefs.h. ##
2376## ----------- ##
2377_ASBOX
2378      echo
2379      cat confdefs.h
2380      echo
2381    fi
2382    test "$ac_signal" != 0 &&
2383      $as_echo "$as_me: caught signal $ac_signal"
2384    $as_echo "$as_me: exit $exit_status"
2385  } >&5
2386  rm -f core *.core core.conftest.* &&
2387    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2388    exit $exit_status
2389' 0
2390for ac_signal in 1 2 13 15; do
2391  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2392done
2393ac_signal=0
2394
2395# confdefs.h avoids OS command line length limits that DEFS can exceed.
2396rm -f -r conftest* confdefs.h
2397
2398$as_echo "/* confdefs.h */" > confdefs.h
2399
2400# Predefined preprocessor variables.
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_NAME "$PACKAGE_NAME"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_VERSION "$PACKAGE_VERSION"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_STRING "$PACKAGE_STRING"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_URL "$PACKAGE_URL"
2424_ACEOF
2425
2426
2427# Let the site file select an alternate cache file if it wants to.
2428# Prefer an explicitly selected file to automatically selected ones.
2429ac_site_file1=NONE
2430ac_site_file2=NONE
2431if test -n "$CONFIG_SITE"; then
2432  ac_site_file1=$CONFIG_SITE
2433elif test "x$prefix" != xNONE; then
2434  ac_site_file1=$prefix/share/config.site
2435  ac_site_file2=$prefix/etc/config.site
2436else
2437  ac_site_file1=$ac_default_prefix/share/config.site
2438  ac_site_file2=$ac_default_prefix/etc/config.site
2439fi
2440for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441do
2442  test "x$ac_site_file" = xNONE && continue
2443  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446    sed 's/^/| /' "$ac_site_file" >&5
2447    . "$ac_site_file"
2448  fi
2449done
2450
2451if test -r "$cache_file"; then
2452  # Some versions of bash will fail to source /dev/null (special files
2453  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2454  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2455    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2456$as_echo "$as_me: loading cache $cache_file" >&6;}
2457    case $cache_file in
2458      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2459      *)                      . "./$cache_file";;
2460    esac
2461  fi
2462else
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2464$as_echo "$as_me: creating cache $cache_file" >&6;}
2465  >$cache_file
2466fi
2467
2468# Check that the precious variables saved in the cache have kept the same
2469# value.
2470ac_cache_corrupted=false
2471for ac_var in $ac_precious_vars; do
2472  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2473  eval ac_new_set=\$ac_env_${ac_var}_set
2474  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2475  eval ac_new_val=\$ac_env_${ac_var}_value
2476  case $ac_old_set,$ac_new_set in
2477    set,)
2478      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2479$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2480      ac_cache_corrupted=: ;;
2481    ,set)
2482      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2484      ac_cache_corrupted=: ;;
2485    ,);;
2486    *)
2487      if test "x$ac_old_val" != "x$ac_new_val"; then
2488	# differences in whitespace do not lead to failure.
2489	ac_old_val_w=`echo x $ac_old_val`
2490	ac_new_val_w=`echo x $ac_new_val`
2491	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2492	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2493$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2494	  ac_cache_corrupted=:
2495	else
2496	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2497$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2498	  eval $ac_var=\$ac_old_val
2499	fi
2500	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2501$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2502	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2503$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2504      fi;;
2505  esac
2506  # Pass precious variables to config.status.
2507  if test "$ac_new_set" = set; then
2508    case $ac_new_val in
2509    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2510    *) ac_arg=$ac_var=$ac_new_val ;;
2511    esac
2512    case " $ac_configure_args " in
2513      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2514      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515    esac
2516  fi
2517done
2518if $ac_cache_corrupted; then
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2522$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2523  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2524fi
2525## -------------------- ##
2526## Main body of script. ##
2527## -------------------- ##
2528
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536am__api_version='1.11'
2537
2538ac_aux_dir=
2539for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540  for ac_t in install-sh install.sh shtool; do
2541    if test -f "$ac_dir/$ac_t"; then
2542      ac_aux_dir=$ac_dir
2543      ac_install_sh="$ac_aux_dir/$ac_t -c"
2544      break 2
2545    fi
2546  done
2547done
2548if test -z "$ac_aux_dir"; then
2549  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2550fi
2551
2552# These three variables are undocumented and unsupported,
2553# and are intended to be withdrawn in a future Autoconf release.
2554# They can cause serious problems if a builder's source tree is in a directory
2555# whose full name contains unusual characters.
2556ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2557ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2558ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2559
2560
2561# Find a good install program.  We prefer a C program (faster),
2562# so one script is as good as another.  But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if test "${ac_cv_path_install+set}" = set; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588  ./ | .// | /[cC]/* | \
2589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591  /usr/ucb/* ) ;;
2592  *)
2593    # OSF1 and SCO ODT 3.0 have their own names for install.
2594    # Don't use installbsd from OSF since it installs stuff as root
2595    # by default.
2596    for ac_prog in ginstall scoinst install; do
2597      for ac_exec_ext in '' $ac_executable_extensions; do
2598	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2599	  if test $ac_prog = install &&
2600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601	    # AIX install.  It has an incompatible calling convention.
2602	    :
2603	  elif test $ac_prog = install &&
2604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605	    # program-specific install script used by HP pwplus--don't use.
2606	    :
2607	  else
2608	    rm -rf conftest.one conftest.two conftest.dir
2609	    echo one > conftest.one
2610	    echo two > conftest.two
2611	    mkdir conftest.dir
2612	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613	      test -s conftest.one && test -s conftest.two &&
2614	      test -s conftest.dir/conftest.one &&
2615	      test -s conftest.dir/conftest.two
2616	    then
2617	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618	      break 3
2619	    fi
2620	  fi
2621	fi
2622      done
2623    done
2624    ;;
2625esac
2626
2627  done
2628IFS=$as_save_IFS
2629
2630rm -rf conftest.one conftest.two conftest.dir
2631
2632fi
2633  if test "${ac_cv_path_install+set}" = set; then
2634    INSTALL=$ac_cv_path_install
2635  else
2636    # As a last resort, use the slow shell script.  Don't cache a
2637    # value for INSTALL within a source directory, because that will
2638    # break other packages using the cache if that directory is
2639    # removed, or if the value is a relative name.
2640    INSTALL=$ac_install_sh
2641  fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
2645
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Just in case
2657sleep 1
2658echo timestamp > conftest.file
2659# Reject unsafe characters in $srcdir or the absolute working directory
2660# name.  Accept space and tab only in the latter.
2661am_lf='
2662'
2663case `pwd` in
2664  *[\\\"\#\$\&\'\`$am_lf]*)
2665    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2666esac
2667case $srcdir in
2668  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2669    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2670esac
2671
2672# Do `set' in a subshell so we don't clobber the current shell's
2673# arguments.  Must try -L first in case configure is actually a
2674# symlink; some systems play weird games with the mod time of symlinks
2675# (eg FreeBSD returns the mod time of the symlink's containing
2676# directory).
2677if (
2678   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679   if test "$*" = "X"; then
2680      # -L didn't work.
2681      set X `ls -t "$srcdir/configure" conftest.file`
2682   fi
2683   rm -f conftest.file
2684   if test "$*" != "X $srcdir/configure conftest.file" \
2685      && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687      # If neither matched, then we have a broken ls.  This can happen
2688      # if, for instance, CONFIG_SHELL is bash and it inherits a
2689      # broken ls alias from the environment.  This has actually
2690      # happened.  Such a system could not be considered "sane".
2691      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2692alias in your environment" "$LINENO" 5
2693   fi
2694
2695   test "$2" = conftest.file
2696   )
2697then
2698   # Ok.
2699   :
2700else
2701   as_fn_error "newly created file is older than distributed files!
2702Check your system clock" "$LINENO" 5
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705$as_echo "yes" >&6; }
2706test "$program_prefix" != NONE &&
2707  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708# Use a double $ so make ignores it.
2709test "$program_suffix" != NONE &&
2710  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711# Double any \ or $.
2712# By default was `s,x,x', remove it if useless.
2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2715
2716# expand $ac_aux_dir to an absolute path
2717am_aux_dir=`cd $ac_aux_dir && pwd`
2718
2719if test x"${MISSING+set}" != xset; then
2720  case $am_aux_dir in
2721  *\ * | *\	*)
2722    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2723  *)
2724    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725  esac
2726fi
2727# Use eval to expand $SHELL
2728if eval "$MISSING --run true"; then
2729  am_missing_run="$MISSING --run "
2730else
2731  am_missing_run=
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2733$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2734fi
2735
2736if test x"${install_sh}" != xset; then
2737  case $am_aux_dir in
2738  *\ * | *\	*)
2739    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2740  *)
2741    install_sh="\${SHELL} $am_aux_dir/install-sh"
2742  esac
2743fi
2744
2745# Installed binaries are usually stripped using `strip' when the user
2746# run `make install-strip'.  However `strip' might not be the right
2747# tool to use in cross-compilation environments, therefore Automake
2748# will honor the `STRIP' environment variable to overrule this program.
2749if test "$cross_compiling" != no; then
2750  if test -n "$ac_tool_prefix"; then
2751  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}strip; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_STRIP+set}" = set; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$STRIP"; then
2759  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778STRIP=$ac_cv_prog_STRIP
2779if test -n "$STRIP"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781$as_echo "$STRIP" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_STRIP"; then
2790  ac_ct_STRIP=$STRIP
2791  # Extract the first word of "strip", so it can be a program name with args.
2792set dummy strip; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$ac_ct_STRIP"; then
2799  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_ac_ct_STRIP="strip"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819if test -n "$ac_ct_STRIP"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821$as_echo "$ac_ct_STRIP" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827  if test "x$ac_ct_STRIP" = x; then
2828    STRIP=":"
2829  else
2830    case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836    STRIP=$ac_ct_STRIP
2837  fi
2838else
2839  STRIP="$ac_cv_prog_STRIP"
2840fi
2841
2842fi
2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847if test -z "$MKDIR_P"; then
2848  if test "${ac_cv_path_mkdir+set}" = set; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_prog in mkdir gmkdir; do
2857	 for ac_exec_ext in '' $ac_executable_extensions; do
2858	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2859	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860	     'mkdir (GNU coreutils) '* | \
2861	     'mkdir (coreutils) '* | \
2862	     'mkdir (fileutils) '4.1*)
2863	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864	       break 3;;
2865	   esac
2866	 done
2867       done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872
2873  test -d ./--version && rmdir ./--version
2874  if test "${ac_cv_path_mkdir+set}" = set; then
2875    MKDIR_P="$ac_cv_path_mkdir -p"
2876  else
2877    # As a last resort, use the slow shell script.  Don't cache a
2878    # value for MKDIR_P within a source directory, because that will
2879    # break other packages using the cache if that directory is
2880    # removed, or if the value is a relative name.
2881    MKDIR_P="$ac_install_sh -d"
2882  fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885$as_echo "$MKDIR_P" >&6; }
2886
2887mkdir_p="$MKDIR_P"
2888case $mkdir_p in
2889  [\\/$]* | ?:[\\/]*) ;;
2890  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2891esac
2892
2893for ac_prog in gawk mawk nawk awk
2894do
2895  # Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if test "${ac_cv_prog_AWK+set}" = set; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$AWK"; then
2903  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912    ac_cv_prog_AWK="$ac_prog"
2913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922AWK=$ac_cv_prog_AWK
2923if test -n "$AWK"; then
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2925$as_echo "$AWK" >&6; }
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
2931
2932  test -n "$AWK" && break
2933done
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2937set x ${MAKE-make}
2938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  cat >conftest.make <<\_ACEOF
2943SHELL = /bin/sh
2944all:
2945	@echo '@@@%%%=$(MAKE)=@@@%%%'
2946_ACEOF
2947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2948case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949  *@@@%%%=?*=@@@%%%*)
2950    eval ac_cv_prog_make_${ac_make}_set=yes;;
2951  *)
2952    eval ac_cv_prog_make_${ac_make}_set=no;;
2953esac
2954rm -f conftest.make
2955fi
2956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958$as_echo "yes" >&6; }
2959  SET_MAKE=
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963  SET_MAKE="MAKE=${MAKE-make}"
2964fi
2965
2966rm -rf .tst 2>/dev/null
2967mkdir .tst 2>/dev/null
2968if test -d .tst; then
2969  am__leading_dot=.
2970else
2971  am__leading_dot=_
2972fi
2973rmdir .tst 2>/dev/null
2974
2975if test "`cd $srcdir && pwd`" != "`pwd`"; then
2976  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2977  # is not polluted with repeated "-I."
2978  am__isrc=' -I$(srcdir)'
2979  # test to see if srcdir already configured
2980  if test -f $srcdir/config.status; then
2981    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2982  fi
2983fi
2984
2985# test whether we have cygpath
2986if test -z "$CYGPATH_W"; then
2987  if (cygpath --version) >/dev/null 2>/dev/null; then
2988    CYGPATH_W='cygpath -w'
2989  else
2990    CYGPATH_W=echo
2991  fi
2992fi
2993
2994
2995# Define the identity of the package.
2996 PACKAGE='polylib'
2997 VERSION='5.22.5'
2998
2999
3000cat >>confdefs.h <<_ACEOF
3001#define PACKAGE "$PACKAGE"
3002_ACEOF
3003
3004
3005cat >>confdefs.h <<_ACEOF
3006#define VERSION "$VERSION"
3007_ACEOF
3008
3009# Some tools Automake needs.
3010
3011ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3012
3013
3014AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015
3016
3017AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018
3019
3020AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021
3022
3023MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3024
3025# We need awk for the "check" target.  The system "awk" is bad on
3026# some platforms.
3027# Always define AMTAR for backward compatibility.
3028
3029AMTAR=${AMTAR-"${am_missing_run}tar"}
3030
3031am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043versioninfo=9:0:1
3044
3045if test "x$prefix" != "xNONE"; then
3046    prefix_wd=`cd $prefix && pwd`
3047    srcdir_wd=`cd $srcdir && pwd`
3048    wd=`pwd`
3049    if test "x$prefix_wd" = "x$srcdir_wd"; then
3050	as_fn_error "Installation in source directory not supported" "$LINENO" 5
3051    fi
3052    if test "x$prefix_wd" = "x$wd"; then
3053	as_fn_error "Installation in build directory not supported" "$LINENO" 5
3054    fi
3055fi
3056
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062if test -n "$ac_tool_prefix"; then
3063  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}gcc; 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}gcc"
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
3100fi
3101if test -z "$ac_cv_prog_CC"; then
3102  ac_ct_CC=$CC
3103  # Extract the first word of "gcc", so it can be a program name with args.
3104set dummy gcc; 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_ac_ct_CC+set}" = set; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$ac_ct_CC"; then
3111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120    ac_cv_prog_ac_ct_CC="gcc"
3121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131if test -n "$ac_ct_CC"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133$as_echo "$ac_ct_CC" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139  if test "x$ac_ct_CC" = x; then
3140    CC=""
3141  else
3142    case $cross_compiling:$ac_tool_warned in
3143yes:)
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146ac_tool_warned=yes ;;
3147esac
3148    CC=$ac_ct_CC
3149  fi
3150else
3151  CC="$ac_cv_prog_CC"
3152fi
3153
3154if test -z "$CC"; then
3155          if test -n "$ac_tool_prefix"; then
3156    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3157set dummy ${ac_tool_prefix}cc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if test "${ac_cv_prog_CC+set}" = set; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$CC"; then
3164  ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    ac_cv_prog_CC="${ac_tool_prefix}cc"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183CC=$ac_cv_prog_CC
3184if test -n "$CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186$as_echo "$CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193  fi
3194fi
3195if test -z "$CC"; then
3196  # Extract the first word of "cc", so it can be a program name with args.
3197set dummy cc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_CC+set}" = set; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$CC"; then
3204  ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206  ac_prog_rejected=no
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3215       ac_prog_rejected=yes
3216       continue
3217     fi
3218    ac_cv_prog_CC="cc"
3219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220    break 2
3221  fi
3222done
3223  done
3224IFS=$as_save_IFS
3225
3226if test $ac_prog_rejected = yes; then
3227  # We found a bogon in the path, so make sure we never use it.
3228  set dummy $ac_cv_prog_CC
3229  shift
3230  if test $# != 0; then
3231    # We chose a different compiler from the bogus one.
3232    # However, it has the same basename, so the bogon will be chosen
3233    # first if we set CC to just the basename; use the full file name.
3234    shift
3235    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3236  fi
3237fi
3238fi
3239fi
3240CC=$ac_cv_prog_CC
3241if test -n "$CC"; then
3242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243$as_echo "$CC" >&6; }
3244else
3245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246$as_echo "no" >&6; }
3247fi
3248
3249
3250fi
3251if test -z "$CC"; then
3252  if test -n "$ac_tool_prefix"; then
3253  for ac_prog in cl.exe
3254  do
3255    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if test "${ac_cv_prog_CC+set}" = set; then :
3260  $as_echo_n "(cached) " >&6
3261else
3262  if test -n "$CC"; then
3263  ac_cv_prog_CC="$CC" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270    for ac_exec_ext in '' $ac_executable_extensions; do
3271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277  done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282CC=$ac_cv_prog_CC
3283if test -n "$CC"; then
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285$as_echo "$CC" >&6; }
3286else
3287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292    test -n "$CC" && break
3293  done
3294fi
3295if test -z "$CC"; then
3296  ac_ct_CC=$CC
3297  for ac_prog in cl.exe
3298do
3299  # Extract the first word of "$ac_prog", so it can be a program name with args.
3300set dummy $ac_prog; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3304  $as_echo_n "(cached) " >&6
3305else
3306  if test -n "$ac_ct_CC"; then
3307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312  IFS=$as_save_IFS
3313  test -z "$as_dir" && as_dir=.
3314    for ac_exec_ext in '' $ac_executable_extensions; do
3315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316    ac_cv_prog_ac_ct_CC="$ac_prog"
3317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318    break 2
3319  fi
3320done
3321  done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327if test -n "$ac_ct_CC"; then
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329$as_echo "$ac_ct_CC" >&6; }
3330else
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336  test -n "$ac_ct_CC" && break
3337done
3338
3339  if test "x$ac_ct_CC" = x; then
3340    CC=""
3341  else
3342    case $cross_compiling:$ac_tool_warned in
3343yes:)
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346ac_tool_warned=yes ;;
3347esac
3348    CC=$ac_ct_CC
3349  fi
3350fi
3351
3352fi
3353
3354
3355test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357as_fn_error "no acceptable C compiler found in \$PATH
3358See \`config.log' for more details." "$LINENO" 5; }
3359
3360# Provide some information about the compiler.
3361$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3362set X $ac_compile
3363ac_compiler=$2
3364for ac_option in --version -v -V -qversion; do
3365  { { ac_try="$ac_compiler $ac_option >&5"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3373  ac_status=$?
3374  if test -s conftest.err; then
3375    sed '10a\
3376... rest of stderr output deleted ...
3377         10q' conftest.err >conftest.er1
3378    cat conftest.er1 >&5
3379  fi
3380  rm -f conftest.er1 conftest.err
3381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382  test $ac_status = 0; }
3383done
3384
3385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386/* end confdefs.h.  */
3387
3388int
3389main ()
3390{
3391
3392  ;
3393  return 0;
3394}
3395_ACEOF
3396ac_clean_files_save=$ac_clean_files
3397ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398# Try to create an executable without -o first, disregard a.out.
3399# It will help us diagnose broken compilers, and finding out an intuition
3400# of exeext.
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402$as_echo_n "checking whether the C compiler works... " >&6; }
3403ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404
3405# The possible output files:
3406ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407
3408ac_rmfiles=
3409for ac_file in $ac_files
3410do
3411  case $ac_file in
3412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3414  esac
3415done
3416rm -f $ac_rmfiles
3417
3418if { { ac_try="$ac_link_default"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424$as_echo "$ac_try_echo"; } >&5
3425  (eval "$ac_link_default") 2>&5
3426  ac_status=$?
3427  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }; then :
3429  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3432# so that the user can short-circuit this test for compilers unknown to
3433# Autoconf.
3434for ac_file in $ac_files ''
3435do
3436  test -f "$ac_file" || continue
3437  case $ac_file in
3438    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439	;;
3440    [ab].out )
3441	# We found the default executable, but exeext='' is most
3442	# certainly right.
3443	break;;
3444    *.* )
3445	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3446	then :; else
3447	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448	fi
3449	# We set ac_cv_exeext here because the later test for it is not
3450	# safe: cross compilers may not add the suffix if given an `-o'
3451	# argument, so we may need to know it at that point already.
3452	# Even if this section looks crufty: it has the advantage of
3453	# actually working.
3454	break;;
3455    * )
3456	break;;
3457  esac
3458done
3459test "$ac_cv_exeext" = no && ac_cv_exeext=
3460
3461else
3462  ac_file=''
3463fi
3464if test -z "$ac_file"; then :
3465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
3467$as_echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472{ as_fn_set_status 77
3473as_fn_error "C compiler cannot create executables
3474See \`config.log' for more details." "$LINENO" 5; }; }
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477$as_echo "yes" >&6; }
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480$as_echo_n "checking for C compiler default output file name... " >&6; }
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482$as_echo "$ac_file" >&6; }
3483ac_exeext=$ac_cv_exeext
3484
3485rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3486ac_clean_files=$ac_clean_files_save
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488$as_echo_n "checking for suffix of executables... " >&6; }
3489if { { ac_try="$ac_link"
3490case "(($ac_try" in
3491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492  *) ac_try_echo=$ac_try;;
3493esac
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496  (eval "$ac_link") 2>&5
3497  ac_status=$?
3498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499  test $ac_status = 0; }; then :
3500  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3501# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3502# work properly (i.e., refer to `conftest.exe'), while it won't with
3503# `rm'.
3504for ac_file in conftest.exe conftest conftest.*; do
3505  test -f "$ac_file" || continue
3506  case $ac_file in
3507    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509	  break;;
3510    * ) break;;
3511  esac
3512done
3513else
3514  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516as_fn_error "cannot compute suffix of executables: cannot compile and link
3517See \`config.log' for more details." "$LINENO" 5; }
3518fi
3519rm -f conftest conftest$ac_cv_exeext
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521$as_echo "$ac_cv_exeext" >&6; }
3522
3523rm -f conftest.$ac_ext
3524EXEEXT=$ac_cv_exeext
3525ac_exeext=$EXEEXT
3526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528#include <stdio.h>
3529int
3530main ()
3531{
3532FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3534
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539ac_clean_files="$ac_clean_files conftest.out"
3540# Check that the compiler produces executables we can run.  If not, either
3541# the compiler is broken, or we cross compile.
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543$as_echo_n "checking whether we are cross compiling... " >&6; }
3544if test "$cross_compiling" != yes; then
3545  { { ac_try="$ac_link"
3546case "(($ac_try" in
3547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548  *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551$as_echo "$ac_try_echo"; } >&5
3552  (eval "$ac_link") 2>&5
3553  ac_status=$?
3554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555  test $ac_status = 0; }
3556  if { ac_try='./conftest$ac_cv_exeext'
3557  { { case "(($ac_try" in
3558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559  *) ac_try_echo=$ac_try;;
3560esac
3561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562$as_echo "$ac_try_echo"; } >&5
3563  (eval "$ac_try") 2>&5
3564  ac_status=$?
3565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566  test $ac_status = 0; }; }; then
3567    cross_compiling=no
3568  else
3569    if test "$cross_compiling" = maybe; then
3570	cross_compiling=yes
3571    else
3572	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error "cannot run C compiled programs.
3575If you meant to cross compile, use \`--host'.
3576See \`config.log' for more details." "$LINENO" 5; }
3577    fi
3578  fi
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581$as_echo "$cross_compiling" >&6; }
3582
3583rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3584ac_clean_files=$ac_clean_files_save
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586$as_echo_n "checking for suffix of object files... " >&6; }
3587if test "${ac_cv_objext+set}" = set; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.o conftest.obj
3602if { { ac_try="$ac_compile"
3603case "(($ac_try" in
3604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605  *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609  (eval "$ac_compile") 2>&5
3610  ac_status=$?
3611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612  test $ac_status = 0; }; then :
3613  for ac_file in conftest.o conftest.obj conftest.*; do
3614  test -f "$ac_file" || continue;
3615  case $ac_file in
3616    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618       break;;
3619  esac
3620done
3621else
3622  $as_echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error "cannot compute suffix of object files: cannot compile
3628See \`config.log' for more details." "$LINENO" 5; }
3629fi
3630rm -f conftest.$ac_cv_objext conftest.$ac_ext
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633$as_echo "$ac_cv_objext" >&6; }
3634OBJEXT=$ac_cv_objext
3635ac_objext=$OBJEXT
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3637$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3638if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3639  $as_echo_n "(cached) " >&6
3640else
3641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643
3644int
3645main ()
3646{
3647#ifndef __GNUC__
3648       choke me
3649#endif
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656  ac_compiler_gnu=yes
3657else
3658  ac_compiler_gnu=no
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3665$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666if test $ac_compiler_gnu = yes; then
3667  GCC=yes
3668else
3669  GCC=
3670fi
3671ac_test_CFLAGS=${CFLAGS+set}
3672ac_save_CFLAGS=$CFLAGS
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3674$as_echo_n "checking whether $CC accepts -g... " >&6; }
3675if test "${ac_cv_prog_cc_g+set}" = set; then :
3676  $as_echo_n "(cached) " >&6
3677else
3678  ac_save_c_werror_flag=$ac_c_werror_flag
3679   ac_c_werror_flag=yes
3680   ac_cv_prog_cc_g=no
3681   CFLAGS="-g"
3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693if ac_fn_c_try_compile "$LINENO"; then :
3694  ac_cv_prog_cc_g=yes
3695else
3696  CFLAGS=""
3697      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_compile "$LINENO"; then :
3709
3710else
3711  ac_c_werror_flag=$ac_save_c_werror_flag
3712	 CFLAGS="-g"
3713	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714/* end confdefs.h.  */
3715
3716int
3717main ()
3718{
3719
3720  ;
3721  return 0;
3722}
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725  ac_cv_prog_cc_g=yes
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732   ac_c_werror_flag=$ac_save_c_werror_flag
3733fi
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3735$as_echo "$ac_cv_prog_cc_g" >&6; }
3736if test "$ac_test_CFLAGS" = set; then
3737  CFLAGS=$ac_save_CFLAGS
3738elif test $ac_cv_prog_cc_g = yes; then
3739  if test "$GCC" = yes; then
3740    CFLAGS="-g -O2"
3741  else
3742    CFLAGS="-g"
3743  fi
3744else
3745  if test "$GCC" = yes; then
3746    CFLAGS="-O2"
3747  else
3748    CFLAGS=
3749  fi
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753if test "${ac_cv_prog_cc_c89+set}" = set; then :
3754  $as_echo_n "(cached) " >&6
3755else
3756  ac_cv_prog_cc_c89=no
3757ac_save_CC=$CC
3758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759/* end confdefs.h.  */
3760#include <stdarg.h>
3761#include <stdio.h>
3762#include <sys/types.h>
3763#include <sys/stat.h>
3764/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3765struct buf { int x; };
3766FILE * (*rcsopen) (struct buf *, struct stat *, int);
3767static char *e (p, i)
3768     char **p;
3769     int i;
3770{
3771  return p[i];
3772}
3773static char *f (char * (*g) (char **, int), char **p, ...)
3774{
3775  char *s;
3776  va_list v;
3777  va_start (v,p);
3778  s = g (p, va_arg (v,int));
3779  va_end (v);
3780  return s;
3781}
3782
3783/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3784   function prototypes and stuff, but not '\xHH' hex character constants.
3785   These don't provoke an error unfortunately, instead are silently treated
3786   as 'x'.  The following induces an error, until -std is added to get
3787   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3788   array size at least.  It's necessary to write '\x00'==0 to get something
3789   that's true only with -std.  */
3790int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791
3792/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3793   inside strings and character constants.  */
3794#define FOO(x) 'x'
3795int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796
3797int test (int i, double x);
3798struct s1 {int (*f) (int a);};
3799struct s2 {int (*f) (double a);};
3800int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801int argc;
3802char **argv;
3803int
3804main ()
3805{
3806return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3812	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813do
3814  CC="$ac_save_CC $ac_arg"
3815  if ac_fn_c_try_compile "$LINENO"; then :
3816  ac_cv_prog_cc_c89=$ac_arg
3817fi
3818rm -f core conftest.err conftest.$ac_objext
3819  test "x$ac_cv_prog_cc_c89" != "xno" && break
3820done
3821rm -f conftest.$ac_ext
3822CC=$ac_save_CC
3823
3824fi
3825# AC_CACHE_VAL
3826case "x$ac_cv_prog_cc_c89" in
3827  x)
3828    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829$as_echo "none needed" >&6; } ;;
3830  xno)
3831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3832$as_echo "unsupported" >&6; } ;;
3833  *)
3834    CC="$CC $ac_cv_prog_cc_c89"
3835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3836$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3837esac
3838if test "x$ac_cv_prog_cc_c89" != xno; then :
3839
3840fi
3841
3842ac_ext=c
3843ac_cpp='$CPP $CPPFLAGS'
3844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847DEPDIR="${am__leading_dot}deps"
3848
3849ac_config_commands="$ac_config_commands depfiles"
3850
3851
3852am_make=${MAKE-make}
3853cat > confinc << 'END'
3854am__doit:
3855	@echo this is the am__doit target
3856.PHONY: am__doit
3857END
3858# If we don't find an include directive, just comment out the code.
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3860$as_echo_n "checking for style of include used by $am_make... " >&6; }
3861am__include="#"
3862am__quote=
3863_am_result=none
3864# First try GNU make style include.
3865echo "include confinc" > confmf
3866# Ignore all kinds of additional output from `make'.
3867case `$am_make -s -f confmf 2> /dev/null` in #(
3868*the\ am__doit\ target*)
3869  am__include=include
3870  am__quote=
3871  _am_result=GNU
3872  ;;
3873esac
3874# Now try BSD make style include.
3875if test "$am__include" = "#"; then
3876   echo '.include "confinc"' > confmf
3877   case `$am_make -s -f confmf 2> /dev/null` in #(
3878   *the\ am__doit\ target*)
3879     am__include=.include
3880     am__quote="\""
3881     _am_result=BSD
3882     ;;
3883   esac
3884fi
3885
3886
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3888$as_echo "$_am_result" >&6; }
3889rm -f confinc confmf
3890
3891# Check whether --enable-dependency-tracking was given.
3892if test "${enable_dependency_tracking+set}" = set; then :
3893  enableval=$enable_dependency_tracking;
3894fi
3895
3896if test "x$enable_dependency_tracking" != xno; then
3897  am_depcomp="$ac_aux_dir/depcomp"
3898  AMDEPBACKSLASH='\'
3899fi
3900 if test "x$enable_dependency_tracking" != xno; then
3901  AMDEP_TRUE=
3902  AMDEP_FALSE='#'
3903else
3904  AMDEP_TRUE='#'
3905  AMDEP_FALSE=
3906fi
3907
3908
3909
3910depcc="$CC"   am_compiler_list=
3911
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3913$as_echo_n "checking dependency style of $depcc... " >&6; }
3914if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3918  # We make a subdir and do the tests there.  Otherwise we can end up
3919  # making bogus files that we don't know about and never remove.  For
3920  # instance it was reported that on HP-UX the gcc test will end up
3921  # making a dummy file named `D' -- because `-MD' means `put the output
3922  # in D'.
3923  mkdir conftest.dir
3924  # Copy depcomp to subdir because otherwise we won't find it if we're
3925  # using a relative directory.
3926  cp "$am_depcomp" conftest.dir
3927  cd conftest.dir
3928  # We will build objects and dependencies in a subdirectory because
3929  # it helps to detect inapplicable dependency modes.  For instance
3930  # both Tru64's cc and ICC support -MD to output dependencies as a
3931  # side effect of compilation, but ICC will put the dependencies in
3932  # the current directory while Tru64 will put them in the object
3933  # directory.
3934  mkdir sub
3935
3936  am_cv_CC_dependencies_compiler_type=none
3937  if test "$am_compiler_list" = ""; then
3938     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3939  fi
3940  am__universal=false
3941  case " $depcc " in #(
3942     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3943     esac
3944
3945  for depmode in $am_compiler_list; do
3946    # Setup a source with many dependencies, because some compilers
3947    # like to wrap large dependency lists on column 80 (with \), and
3948    # we should not choose a depcomp mode which is confused by this.
3949    #
3950    # We need to recreate these files for each test, as the compiler may
3951    # overwrite some of them when testing with obscure command lines.
3952    # This happens at least with the AIX C compiler.
3953    : > sub/conftest.c
3954    for i in 1 2 3 4 5 6; do
3955      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3956      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3957      # Solaris 8's {/usr,}/bin/sh.
3958      touch sub/conftst$i.h
3959    done
3960    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3961
3962    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3963    # mode.  It turns out that the SunPro C++ compiler does not properly
3964    # handle `-M -o', and we need to detect this.  Also, some Intel
3965    # versions had trouble with output in subdirs
3966    am__obj=sub/conftest.${OBJEXT-o}
3967    am__minus_obj="-o $am__obj"
3968    case $depmode in
3969    gcc)
3970      # This depmode causes a compiler race in universal mode.
3971      test "$am__universal" = false || continue
3972      ;;
3973    nosideeffect)
3974      # after this tag, mechanisms are not by side-effect, so they'll
3975      # only be used when explicitly requested
3976      if test "x$enable_dependency_tracking" = xyes; then
3977	continue
3978      else
3979	break
3980      fi
3981      ;;
3982    msvisualcpp | msvcmsys)
3983      # This compiler won't grok `-c -o', but also, the minuso test has
3984      # not run yet.  These depmodes are late enough in the game, and
3985      # so weak that their functioning should not be impacted.
3986      am__obj=conftest.${OBJEXT-o}
3987      am__minus_obj=
3988      ;;
3989    none) break ;;
3990    esac
3991    if depmode=$depmode \
3992       source=sub/conftest.c object=$am__obj \
3993       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3995         >/dev/null 2>conftest.err &&
3996       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3997       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3999       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000      # icc doesn't choke on unknown options, it will just issue warnings
4001      # or remarks (even with -Werror).  So we grep stderr for any message
4002      # that says an option was ignored or not supported.
4003      # When given -MP, icc 7.0 and 7.1 complain thusly:
4004      #   icc: Command line warning: ignoring option '-M'; no argument required
4005      # The diagnosis changed in icc 8.0:
4006      #   icc: Command line remark: option '-MP' not supported
4007      if (grep 'ignoring option' conftest.err ||
4008          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009        am_cv_CC_dependencies_compiler_type=$depmode
4010        break
4011      fi
4012    fi
4013  done
4014
4015  cd ..
4016  rm -rf conftest.dir
4017else
4018  am_cv_CC_dependencies_compiler_type=none
4019fi
4020
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4023$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4024CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4025
4026 if
4027  test "x$enable_dependency_tracking" != xno \
4028  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4029  am__fastdepCC_TRUE=
4030  am__fastdepCC_FALSE='#'
4031else
4032  am__fastdepCC_TRUE='#'
4033  am__fastdepCC_FALSE=
4034fi
4035
4036
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4038$as_echo_n "checking whether ln -s works... " >&6; }
4039LN_S=$as_ln_s
4040if test "$LN_S" = "ln -s"; then
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042$as_echo "yes" >&6; }
4043else
4044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4045$as_echo "no, using $LN_S" >&6; }
4046fi
4047
4048
4049case `pwd` in
4050  *\ * | *\	*)
4051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4052$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4053esac
4054
4055
4056
4057macro_version='2.2.6b'
4058macro_revision='1.3017'
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072ltmain="$ac_aux_dir/ltmain.sh"
4073
4074# Make sure we can run config.sub.
4075$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4076  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4079$as_echo_n "checking build system type... " >&6; }
4080if test "${ac_cv_build+set}" = set; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  ac_build_alias=$build_alias
4084test "x$ac_build_alias" = x &&
4085  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4086test "x$ac_build_alias" = x &&
4087  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4088ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4089  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4093$as_echo "$ac_cv_build" >&6; }
4094case $ac_cv_build in
4095*-*-*) ;;
4096*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4097esac
4098build=$ac_cv_build
4099ac_save_IFS=$IFS; IFS='-'
4100set x $ac_cv_build
4101shift
4102build_cpu=$1
4103build_vendor=$2
4104shift; shift
4105# Remember, the first character of IFS is used to create $*,
4106# except with old shells:
4107build_os=$*
4108IFS=$ac_save_IFS
4109case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4110
4111
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4113$as_echo_n "checking host system type... " >&6; }
4114if test "${ac_cv_host+set}" = set; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  if test "x$host_alias" = x; then
4118  ac_cv_host=$ac_cv_build
4119else
4120  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4121    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4122fi
4123
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4126$as_echo "$ac_cv_host" >&6; }
4127case $ac_cv_host in
4128*-*-*) ;;
4129*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4130esac
4131host=$ac_cv_host
4132ac_save_IFS=$IFS; IFS='-'
4133set x $ac_cv_host
4134shift
4135host_cpu=$1
4136host_vendor=$2
4137shift; shift
4138# Remember, the first character of IFS is used to create $*,
4139# except with old shells:
4140host_os=$*
4141IFS=$ac_save_IFS
4142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4143
4144
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4146$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4147if test "${ac_cv_path_SED+set}" = set; then :
4148  $as_echo_n "(cached) " >&6
4149else
4150            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4151     for ac_i in 1 2 3 4 5 6 7; do
4152       ac_script="$ac_script$as_nl$ac_script"
4153     done
4154     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4155     { ac_script=; unset ac_script;}
4156     if test -z "$SED"; then
4157  ac_path_SED_found=false
4158  # Loop through the user's path and test for each of PROGNAME-LIST
4159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_prog in sed gsed; do
4165    for ac_exec_ext in '' $ac_executable_extensions; do
4166      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4167      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4168# Check for GNU ac_path_SED and select it if it is found.
4169  # Check for GNU $ac_path_SED
4170case `"$ac_path_SED" --version 2>&1` in
4171*GNU*)
4172  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4173*)
4174  ac_count=0
4175  $as_echo_n 0123456789 >"conftest.in"
4176  while :
4177  do
4178    cat "conftest.in" "conftest.in" >"conftest.tmp"
4179    mv "conftest.tmp" "conftest.in"
4180    cp "conftest.in" "conftest.nl"
4181    $as_echo '' >> "conftest.nl"
4182    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184    as_fn_arith $ac_count + 1 && ac_count=$as_val
4185    if test $ac_count -gt ${ac_path_SED_max-0}; then
4186      # Best one so far, save it but keep looking for a better one
4187      ac_cv_path_SED="$ac_path_SED"
4188      ac_path_SED_max=$ac_count
4189    fi
4190    # 10*(2^10) chars as input seems more than enough
4191    test $ac_count -gt 10 && break
4192  done
4193  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194esac
4195
4196      $ac_path_SED_found && break 3
4197    done
4198  done
4199  done
4200IFS=$as_save_IFS
4201  if test -z "$ac_cv_path_SED"; then
4202    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4203  fi
4204else
4205  ac_cv_path_SED=$SED
4206fi
4207
4208fi
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4210$as_echo "$ac_cv_path_SED" >&6; }
4211 SED="$ac_cv_path_SED"
4212  rm -f conftest.sed
4213
4214test -z "$SED" && SED=sed
4215Xsed="$SED -e 1s/^X//"
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229if test "${ac_cv_path_GREP+set}" = set; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if test -z "$GREP"; then
4233  ac_path_GREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in grep ggrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4244# Check for GNU ac_path_GREP and select it if it is found.
4245  # Check for GNU $ac_path_GREP
4246case `"$ac_path_GREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'GREP' >> "conftest.nl"
4258    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_GREP="$ac_path_GREP"
4264      ac_path_GREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_GREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_GREP"; then
4278    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_GREP=$GREP
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286$as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291$as_echo_n "checking for egrep... " >&6; }
4292if test "${ac_cv_path_EGREP+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296   then ac_cv_path_EGREP="$GREP -E"
4297   else
4298     if test -z "$EGREP"; then
4299  ac_path_EGREP_found=false
4300  # Loop through the user's path and test for each of PROGNAME-LIST
4301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_prog in egrep; do
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4310# Check for GNU ac_path_EGREP and select it if it is found.
4311  # Check for GNU $ac_path_EGREP
4312case `"$ac_path_EGREP" --version 2>&1` in
4313*GNU*)
4314  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315*)
4316  ac_count=0
4317  $as_echo_n 0123456789 >"conftest.in"
4318  while :
4319  do
4320    cat "conftest.in" "conftest.in" >"conftest.tmp"
4321    mv "conftest.tmp" "conftest.in"
4322    cp "conftest.in" "conftest.nl"
4323    $as_echo 'EGREP' >> "conftest.nl"
4324    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326    as_fn_arith $ac_count + 1 && ac_count=$as_val
4327    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328      # Best one so far, save it but keep looking for a better one
4329      ac_cv_path_EGREP="$ac_path_EGREP"
4330      ac_path_EGREP_max=$ac_count
4331    fi
4332    # 10*(2^10) chars as input seems more than enough
4333    test $ac_count -gt 10 && break
4334  done
4335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338      $ac_path_EGREP_found && break 3
4339    done
4340  done
4341  done
4342IFS=$as_save_IFS
4343  if test -z "$ac_cv_path_EGREP"; then
4344    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345  fi
4346else
4347  ac_cv_path_EGREP=$EGREP
4348fi
4349
4350   fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353$as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4358$as_echo_n "checking for fgrep... " >&6; }
4359if test "${ac_cv_path_FGREP+set}" = set; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4363   then ac_cv_path_FGREP="$GREP -F"
4364   else
4365     if test -z "$FGREP"; then
4366  ac_path_FGREP_found=false
4367  # Loop through the user's path and test for each of PROGNAME-LIST
4368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4370do
4371  IFS=$as_save_IFS
4372  test -z "$as_dir" && as_dir=.
4373    for ac_prog in fgrep; do
4374    for ac_exec_ext in '' $ac_executable_extensions; do
4375      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4376      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4377# Check for GNU ac_path_FGREP and select it if it is found.
4378  # Check for GNU $ac_path_FGREP
4379case `"$ac_path_FGREP" --version 2>&1` in
4380*GNU*)
4381  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4382*)
4383  ac_count=0
4384  $as_echo_n 0123456789 >"conftest.in"
4385  while :
4386  do
4387    cat "conftest.in" "conftest.in" >"conftest.tmp"
4388    mv "conftest.tmp" "conftest.in"
4389    cp "conftest.in" "conftest.nl"
4390    $as_echo 'FGREP' >> "conftest.nl"
4391    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393    as_fn_arith $ac_count + 1 && ac_count=$as_val
4394    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4395      # Best one so far, save it but keep looking for a better one
4396      ac_cv_path_FGREP="$ac_path_FGREP"
4397      ac_path_FGREP_max=$ac_count
4398    fi
4399    # 10*(2^10) chars as input seems more than enough
4400    test $ac_count -gt 10 && break
4401  done
4402  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403esac
4404
4405      $ac_path_FGREP_found && break 3
4406    done
4407  done
4408  done
4409IFS=$as_save_IFS
4410  if test -z "$ac_cv_path_FGREP"; then
4411    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412  fi
4413else
4414  ac_cv_path_FGREP=$FGREP
4415fi
4416
4417   fi
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4420$as_echo "$ac_cv_path_FGREP" >&6; }
4421 FGREP="$ac_cv_path_FGREP"
4422
4423
4424test -z "$GREP" && GREP=grep
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444# Check whether --with-gnu-ld was given.
4445if test "${with_gnu_ld+set}" = set; then :
4446  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4447else
4448  with_gnu_ld=no
4449fi
4450
4451ac_prog=ld
4452if test "$GCC" = yes; then
4453  # Check if gcc -print-prog-name=ld gives a path.
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4455$as_echo_n "checking for ld used by $CC... " >&6; }
4456  case $host in
4457  *-*-mingw*)
4458    # gcc leaves a trailing carriage return which upsets mingw
4459    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4460  *)
4461    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4462  esac
4463  case $ac_prog in
4464    # Accept absolute paths.
4465    [\\/]* | ?:[\\/]*)
4466      re_direlt='/[^/][^/]*/\.\./'
4467      # Canonicalize the pathname of ld
4468      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4469      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4470	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4471      done
4472      test -z "$LD" && LD="$ac_prog"
4473      ;;
4474  "")
4475    # If it fails, then pretend we aren't using GCC.
4476    ac_prog=ld
4477    ;;
4478  *)
4479    # If it is relative, then search for the first ld in PATH.
4480    with_gnu_ld=unknown
4481    ;;
4482  esac
4483elif test "$with_gnu_ld" = yes; then
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4485$as_echo_n "checking for GNU ld... " >&6; }
4486else
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4488$as_echo_n "checking for non-GNU ld... " >&6; }
4489fi
4490if test "${lt_cv_path_LD+set}" = set; then :
4491  $as_echo_n "(cached) " >&6
4492else
4493  if test -z "$LD"; then
4494  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495  for ac_dir in $PATH; do
4496    IFS="$lt_save_ifs"
4497    test -z "$ac_dir" && ac_dir=.
4498    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4499      lt_cv_path_LD="$ac_dir/$ac_prog"
4500      # Check to see if the program is GNU ld.  I'd rather use --version,
4501      # but apparently some variants of GNU ld only accept -v.
4502      # Break only if it was the GNU/non-GNU ld that we prefer.
4503      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4504      *GNU* | *'with BFD'*)
4505	test "$with_gnu_ld" != no && break
4506	;;
4507      *)
4508	test "$with_gnu_ld" != yes && break
4509	;;
4510      esac
4511    fi
4512  done
4513  IFS="$lt_save_ifs"
4514else
4515  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4516fi
4517fi
4518
4519LD="$lt_cv_path_LD"
4520if test -n "$LD"; then
4521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4522$as_echo "$LD" >&6; }
4523else
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4529$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4530if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4534case `$LD -v 2>&1 </dev/null` in
4535*GNU* | *'with BFD'*)
4536  lt_cv_prog_gnu_ld=yes
4537  ;;
4538*)
4539  lt_cv_prog_gnu_ld=no
4540  ;;
4541esac
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4544$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4545with_gnu_ld=$lt_cv_prog_gnu_ld
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4556$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4557if test "${lt_cv_path_NM+set}" = set; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -n "$NM"; then
4561  # Let the user override the test.
4562  lt_cv_path_NM="$NM"
4563else
4564  lt_nm_to_check="${ac_tool_prefix}nm"
4565  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4566    lt_nm_to_check="$lt_nm_to_check nm"
4567  fi
4568  for lt_tmp_nm in $lt_nm_to_check; do
4569    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4570    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4571      IFS="$lt_save_ifs"
4572      test -z "$ac_dir" && ac_dir=.
4573      tmp_nm="$ac_dir/$lt_tmp_nm"
4574      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4575	# Check to see if the nm accepts a BSD-compat flag.
4576	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4577	#   nm: unknown option "B" ignored
4578	# Tru64's nm complains that /dev/null is an invalid object file
4579	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4580	*/dev/null* | *'Invalid file or object type'*)
4581	  lt_cv_path_NM="$tmp_nm -B"
4582	  break
4583	  ;;
4584	*)
4585	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4586	  */dev/null*)
4587	    lt_cv_path_NM="$tmp_nm -p"
4588	    break
4589	    ;;
4590	  *)
4591	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4592	    continue # so that we can try to find one that supports BSD flags
4593	    ;;
4594	  esac
4595	  ;;
4596	esac
4597      fi
4598    done
4599    IFS="$lt_save_ifs"
4600  done
4601  : ${lt_cv_path_NM=no}
4602fi
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4605$as_echo "$lt_cv_path_NM" >&6; }
4606if test "$lt_cv_path_NM" != "no"; then
4607  NM="$lt_cv_path_NM"
4608else
4609  # Didn't find any BSD compatible name lister, look for dumpbin.
4610  if test -n "$ac_tool_prefix"; then
4611  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4612  do
4613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  if test -n "$DUMPBIN"; then
4621  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640DUMPBIN=$ac_cv_prog_DUMPBIN
4641if test -n "$DUMPBIN"; then
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4643$as_echo "$DUMPBIN" >&6; }
4644else
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650    test -n "$DUMPBIN" && break
4651  done
4652fi
4653if test -z "$DUMPBIN"; then
4654  ac_ct_DUMPBIN=$DUMPBIN
4655  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4656do
4657  # Extract the first word of "$ac_prog", so it can be a program name with args.
4658set dummy $ac_prog; ac_word=$2
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  if test -n "$ac_ct_DUMPBIN"; then
4665  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  test -z "$as_dir" && as_dir=.
4672    for ac_exec_ext in '' $ac_executable_extensions; do
4673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676    break 2
4677  fi
4678done
4679  done
4680IFS=$as_save_IFS
4681
4682fi
4683fi
4684ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4685if test -n "$ac_ct_DUMPBIN"; then
4686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4687$as_echo "$ac_ct_DUMPBIN" >&6; }
4688else
4689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
4691fi
4692
4693
4694  test -n "$ac_ct_DUMPBIN" && break
4695done
4696
4697  if test "x$ac_ct_DUMPBIN" = x; then
4698    DUMPBIN=":"
4699  else
4700    case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704ac_tool_warned=yes ;;
4705esac
4706    DUMPBIN=$ac_ct_DUMPBIN
4707  fi
4708fi
4709
4710
4711  if test "$DUMPBIN" != ":"; then
4712    NM="$DUMPBIN"
4713  fi
4714fi
4715test -z "$NM" && NM=nm
4716
4717
4718
4719
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4723$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4724if test "${lt_cv_nm_interface+set}" = set; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  lt_cv_nm_interface="BSD nm"
4728  echo "int some_variable = 0;" > conftest.$ac_ext
4729  (eval echo "\"\$as_me:4729: $ac_compile\"" >&5)
4730  (eval "$ac_compile" 2>conftest.err)
4731  cat conftest.err >&5
4732  (eval echo "\"\$as_me:4732: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4733  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4734  cat conftest.err >&5
4735  (eval echo "\"\$as_me:4735: output\"" >&5)
4736  cat conftest.out >&5
4737  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4738    lt_cv_nm_interface="MS dumpbin"
4739  fi
4740  rm -f conftest*
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4743$as_echo "$lt_cv_nm_interface" >&6; }
4744
4745# find the maximum length of command line arguments
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4747$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4748if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751    i=0
4752  teststring="ABCD"
4753
4754  case $build_os in
4755  msdosdjgpp*)
4756    # On DJGPP, this test can blow up pretty badly due to problems in libc
4757    # (any single argument exceeding 2000 bytes causes a buffer overrun
4758    # during glob expansion).  Even if it were fixed, the result of this
4759    # check would be larger than it should be.
4760    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4761    ;;
4762
4763  gnu*)
4764    # Under GNU Hurd, this test is not required because there is
4765    # no limit to the length of command line arguments.
4766    # Libtool will interpret -1 as no limit whatsoever
4767    lt_cv_sys_max_cmd_len=-1;
4768    ;;
4769
4770  cygwin* | mingw* | cegcc*)
4771    # On Win9x/ME, this test blows up -- it succeeds, but takes
4772    # about 5 minutes as the teststring grows exponentially.
4773    # Worse, since 9x/ME are not pre-emptively multitasking,
4774    # you end up with a "frozen" computer, even though with patience
4775    # the test eventually succeeds (with a max line length of 256k).
4776    # Instead, let's just punt: use the minimum linelength reported by
4777    # all of the supported platforms: 8192 (on NT/2K/XP).
4778    lt_cv_sys_max_cmd_len=8192;
4779    ;;
4780
4781  amigaos*)
4782    # On AmigaOS with pdksh, this test takes hours, literally.
4783    # So we just punt and use a minimum line length of 8192.
4784    lt_cv_sys_max_cmd_len=8192;
4785    ;;
4786
4787  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4788    # This has been around since 386BSD, at least.  Likely further.
4789    if test -x /sbin/sysctl; then
4790      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4791    elif test -x /usr/sbin/sysctl; then
4792      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4793    else
4794      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4795    fi
4796    # And add a safety zone
4797    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4798    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4799    ;;
4800
4801  interix*)
4802    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4803    lt_cv_sys_max_cmd_len=196608
4804    ;;
4805
4806  osf*)
4807    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4808    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4809    # nice to cause kernel panics so lets avoid the loop below.
4810    # First set a reasonable default.
4811    lt_cv_sys_max_cmd_len=16384
4812    #
4813    if test -x /sbin/sysconfig; then
4814      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4815        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4816      esac
4817    fi
4818    ;;
4819  sco3.2v5*)
4820    lt_cv_sys_max_cmd_len=102400
4821    ;;
4822  sysv5* | sco5v6* | sysv4.2uw2*)
4823    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4824    if test -n "$kargmax"; then
4825      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4826    else
4827      lt_cv_sys_max_cmd_len=32768
4828    fi
4829    ;;
4830  *)
4831    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4832    if test -n "$lt_cv_sys_max_cmd_len"; then
4833      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4834      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835    else
4836      # Make teststring a little bigger before we do anything with it.
4837      # a 1K string should be a reasonable start.
4838      for i in 1 2 3 4 5 6 7 8 ; do
4839        teststring=$teststring$teststring
4840      done
4841      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4842      # If test is not a shell built-in, we'll probably end up computing a
4843      # maximum length that is only half of the actual maximum length, but
4844      # we can't tell.
4845      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4846	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4847	      test $i != 17 # 1/2 MB should be enough
4848      do
4849        i=`expr $i + 1`
4850        teststring=$teststring$teststring
4851      done
4852      # Only check the string length outside the loop.
4853      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4854      teststring=
4855      # Add a significant safety factor because C++ compilers can tack on
4856      # massive amounts of additional arguments before passing them to the
4857      # linker.  It appears as though 1/2 is a usable value.
4858      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4859    fi
4860    ;;
4861  esac
4862
4863fi
4864
4865if test -n $lt_cv_sys_max_cmd_len ; then
4866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4867$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4868else
4869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4870$as_echo "none" >&6; }
4871fi
4872max_cmd_len=$lt_cv_sys_max_cmd_len
4873
4874
4875
4876
4877
4878
4879: ${CP="cp -f"}
4880: ${MV="mv -f"}
4881: ${RM="rm -f"}
4882
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4884$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4885# Try some XSI features
4886xsi_shell=no
4887( _lt_dummy="a/b/c"
4888  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4889      = c,a/b,, \
4890    && eval 'test $(( 1 + 1 )) -eq 2 \
4891    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4892  && xsi_shell=yes
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4894$as_echo "$xsi_shell" >&6; }
4895
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4898$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4899lt_shell_append=no
4900( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4901    >/dev/null 2>&1 \
4902  && lt_shell_append=yes
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4904$as_echo "$lt_shell_append" >&6; }
4905
4906
4907if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4908  lt_unset=unset
4909else
4910  lt_unset=false
4911fi
4912
4913
4914
4915
4916
4917# test EBCDIC or ASCII
4918case `echo X|tr X '\101'` in
4919 A) # ASCII based system
4920    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4921  lt_SP2NL='tr \040 \012'
4922  lt_NL2SP='tr \015\012 \040\040'
4923  ;;
4924 *) # EBCDIC based system
4925  lt_SP2NL='tr \100 \n'
4926  lt_NL2SP='tr \r\n \100\100'
4927  ;;
4928esac
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4939$as_echo_n "checking for $LD option to reload object files... " >&6; }
4940if test "${lt_cv_ld_reload_flag+set}" = set; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  lt_cv_ld_reload_flag='-r'
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4946$as_echo "$lt_cv_ld_reload_flag" >&6; }
4947reload_flag=$lt_cv_ld_reload_flag
4948case $reload_flag in
4949"" | " "*) ;;
4950*) reload_flag=" $reload_flag" ;;
4951esac
4952reload_cmds='$LD$reload_flag -o $output$reload_objs'
4953case $host_os in
4954  darwin*)
4955    if test "$GCC" = yes; then
4956      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4957    else
4958      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4959    fi
4960    ;;
4961esac
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971if test -n "$ac_tool_prefix"; then
4972  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4973set dummy ${ac_tool_prefix}objdump; ac_word=$2
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975$as_echo_n "checking for $ac_word... " >&6; }
4976if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4977  $as_echo_n "(cached) " >&6
4978else
4979  if test -n "$OBJDUMP"; then
4980  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985  IFS=$as_save_IFS
4986  test -z "$as_dir" && as_dir=.
4987    for ac_exec_ext in '' $ac_executable_extensions; do
4988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991    break 2
4992  fi
4993done
4994  done
4995IFS=$as_save_IFS
4996
4997fi
4998fi
4999OBJDUMP=$ac_cv_prog_OBJDUMP
5000if test -n "$OBJDUMP"; then
5001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5002$as_echo "$OBJDUMP" >&6; }
5003else
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005$as_echo "no" >&6; }
5006fi
5007
5008
5009fi
5010if test -z "$ac_cv_prog_OBJDUMP"; then
5011  ac_ct_OBJDUMP=$OBJDUMP
5012  # Extract the first word of "objdump", so it can be a program name with args.
5013set dummy objdump; ac_word=$2
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
5016if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  if test -n "$ac_ct_OBJDUMP"; then
5020  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  test -z "$as_dir" && as_dir=.
5027    for ac_exec_ext in '' $ac_executable_extensions; do
5028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031    break 2
5032  fi
5033done
5034  done
5035IFS=$as_save_IFS
5036
5037fi
5038fi
5039ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5040if test -n "$ac_ct_OBJDUMP"; then
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5042$as_echo "$ac_ct_OBJDUMP" >&6; }
5043else
5044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048  if test "x$ac_ct_OBJDUMP" = x; then
5049    OBJDUMP="false"
5050  else
5051    case $cross_compiling:$ac_tool_warned in
5052yes:)
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5055ac_tool_warned=yes ;;
5056esac
5057    OBJDUMP=$ac_ct_OBJDUMP
5058  fi
5059else
5060  OBJDUMP="$ac_cv_prog_OBJDUMP"
5061fi
5062
5063test -z "$OBJDUMP" && OBJDUMP=objdump
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5074$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5075if test "${lt_cv_deplibs_check_method+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077else
5078  lt_cv_file_magic_cmd='$MAGIC_CMD'
5079lt_cv_file_magic_test_file=
5080lt_cv_deplibs_check_method='unknown'
5081# Need to set the preceding variable on all platforms that support
5082# interlibrary dependencies.
5083# 'none' -- dependencies not supported.
5084# `unknown' -- same as none, but documents that we really don't know.
5085# 'pass_all' -- all dependencies passed with no checks.
5086# 'test_compile' -- check by making test program.
5087# 'file_magic [[regex]]' -- check by looking for files in library path
5088# which responds to the $file_magic_cmd with a given extended regex.
5089# If you have `file' or equivalent on your system and you're not sure
5090# whether `pass_all' will *always* work, you probably want this one.
5091
5092case $host_os in
5093aix[4-9]*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097beos*)
5098  lt_cv_deplibs_check_method=pass_all
5099  ;;
5100
5101bsdi[45]*)
5102  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5103  lt_cv_file_magic_cmd='/usr/bin/file -L'
5104  lt_cv_file_magic_test_file=/shlib/libc.so
5105  ;;
5106
5107cygwin*)
5108  # func_win32_libid is a shell function defined in ltmain.sh
5109  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5110  lt_cv_file_magic_cmd='func_win32_libid'
5111  ;;
5112
5113mingw* | pw32*)
5114  # Base MSYS/MinGW do not provide the 'file' command needed by
5115  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5116  # unless we find 'file', for example because we are cross-compiling.
5117  if ( file / ) >/dev/null 2>&1; then
5118    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5119    lt_cv_file_magic_cmd='func_win32_libid'
5120  else
5121    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5122    lt_cv_file_magic_cmd='$OBJDUMP -f'
5123  fi
5124  ;;
5125
5126cegcc)
5127  # use the weaker test based on 'objdump'. See mingw*.
5128  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5129  lt_cv_file_magic_cmd='$OBJDUMP -f'
5130  ;;
5131
5132darwin* | rhapsody*)
5133  lt_cv_deplibs_check_method=pass_all
5134  ;;
5135
5136freebsd* | dragonfly*)
5137  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5138    case $host_cpu in
5139    i*86 )
5140      # Not sure whether the presence of OpenBSD here was a mistake.
5141      # Let's accept both of them until this is cleared up.
5142      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5143      lt_cv_file_magic_cmd=/usr/bin/file
5144      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5145      ;;
5146    esac
5147  else
5148    lt_cv_deplibs_check_method=pass_all
5149  fi
5150  ;;
5151
5152gnu*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156hpux10.20* | hpux11*)
5157  lt_cv_file_magic_cmd=/usr/bin/file
5158  case $host_cpu in
5159  ia64*)
5160    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5161    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162    ;;
5163  hppa*64*)
5164    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]'
5165    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166    ;;
5167  *)
5168    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5169    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5170    ;;
5171  esac
5172  ;;
5173
5174interix[3-9]*)
5175  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5176  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177  ;;
5178
5179irix5* | irix6* | nonstopux*)
5180  case $LD in
5181  *-32|*"-32 ") libmagic=32-bit;;
5182  *-n32|*"-n32 ") libmagic=N32;;
5183  *-64|*"-64 ") libmagic=64-bit;;
5184  *) libmagic=never-match;;
5185  esac
5186  lt_cv_deplibs_check_method=pass_all
5187  ;;
5188
5189# This must be Linux ELF.
5190linux* | k*bsd*-gnu)
5191  lt_cv_deplibs_check_method=pass_all
5192  ;;
5193
5194netbsd* | netbsdelf*-gnu)
5195  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197  else
5198    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5199  fi
5200  ;;
5201
5202newos6*)
5203  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5204  lt_cv_file_magic_cmd=/usr/bin/file
5205  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206  ;;
5207
5208*nto* | *qnx*)
5209  lt_cv_deplibs_check_method=pass_all
5210  ;;
5211
5212openbsd*)
5213  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5214    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215  else
5216    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217  fi
5218  ;;
5219
5220osf3* | osf4* | osf5*)
5221  lt_cv_deplibs_check_method=pass_all
5222  ;;
5223
5224rdos*)
5225  lt_cv_deplibs_check_method=pass_all
5226  ;;
5227
5228solaris*)
5229  lt_cv_deplibs_check_method=pass_all
5230  ;;
5231
5232sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5233  lt_cv_deplibs_check_method=pass_all
5234  ;;
5235
5236sysv4 | sysv4.3*)
5237  case $host_vendor in
5238  motorola)
5239    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]'
5240    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241    ;;
5242  ncr)
5243    lt_cv_deplibs_check_method=pass_all
5244    ;;
5245  sequent)
5246    lt_cv_file_magic_cmd='/bin/file'
5247    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248    ;;
5249  sni)
5250    lt_cv_file_magic_cmd='/bin/file'
5251    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5252    lt_cv_file_magic_test_file=/lib/libc.so
5253    ;;
5254  siemens)
5255    lt_cv_deplibs_check_method=pass_all
5256    ;;
5257  pc)
5258    lt_cv_deplibs_check_method=pass_all
5259    ;;
5260  esac
5261  ;;
5262
5263tpf*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266esac
5267
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5270$as_echo "$lt_cv_deplibs_check_method" >&6; }
5271file_magic_cmd=$lt_cv_file_magic_cmd
5272deplibs_check_method=$lt_cv_deplibs_check_method
5273test -z "$deplibs_check_method" && deplibs_check_method=unknown
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286if test -n "$ac_tool_prefix"; then
5287  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5288set dummy ${ac_tool_prefix}ar; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if test "${ac_cv_prog_AR+set}" = set; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  if test -n "$AR"; then
5295  ac_cv_prog_AR="$AR" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300  IFS=$as_save_IFS
5301  test -z "$as_dir" && as_dir=.
5302    for ac_exec_ext in '' $ac_executable_extensions; do
5303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304    ac_cv_prog_AR="${ac_tool_prefix}ar"
5305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306    break 2
5307  fi
5308done
5309  done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314AR=$ac_cv_prog_AR
5315if test -n "$AR"; then
5316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5317$as_echo "$AR" >&6; }
5318else
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324fi
5325if test -z "$ac_cv_prog_AR"; then
5326  ac_ct_AR=$AR
5327  # Extract the first word of "ar", so it can be a program name with args.
5328set dummy ar; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  if test -n "$ac_ct_AR"; then
5335  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340  IFS=$as_save_IFS
5341  test -z "$as_dir" && as_dir=.
5342    for ac_exec_ext in '' $ac_executable_extensions; do
5343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344    ac_cv_prog_ac_ct_AR="ar"
5345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346    break 2
5347  fi
5348done
5349  done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354ac_ct_AR=$ac_cv_prog_ac_ct_AR
5355if test -n "$ac_ct_AR"; then
5356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5357$as_echo "$ac_ct_AR" >&6; }
5358else
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363  if test "x$ac_ct_AR" = x; then
5364    AR="false"
5365  else
5366    case $cross_compiling:$ac_tool_warned in
5367yes:)
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370ac_tool_warned=yes ;;
5371esac
5372    AR=$ac_ct_AR
5373  fi
5374else
5375  AR="$ac_cv_prog_AR"
5376fi
5377
5378test -z "$AR" && AR=ar
5379test -z "$AR_FLAGS" && AR_FLAGS=cru
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391if test -n "$ac_tool_prefix"; then
5392  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}strip; ac_word=$2
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if test "${ac_cv_prog_STRIP+set}" = set; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  if test -n "$STRIP"; then
5400  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405  IFS=$as_save_IFS
5406  test -z "$as_dir" && as_dir=.
5407    for ac_exec_ext in '' $ac_executable_extensions; do
5408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411    break 2
5412  fi
5413done
5414  done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419STRIP=$ac_cv_prog_STRIP
5420if test -n "$STRIP"; then
5421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5422$as_echo "$STRIP" >&6; }
5423else
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428
5429fi
5430if test -z "$ac_cv_prog_STRIP"; then
5431  ac_ct_STRIP=$STRIP
5432  # Extract the first word of "strip", so it can be a program name with args.
5433set dummy strip; ac_word=$2
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  if test -n "$ac_ct_STRIP"; then
5440  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445  IFS=$as_save_IFS
5446  test -z "$as_dir" && as_dir=.
5447    for ac_exec_ext in '' $ac_executable_extensions; do
5448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449    ac_cv_prog_ac_ct_STRIP="strip"
5450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451    break 2
5452  fi
5453done
5454  done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5460if test -n "$ac_ct_STRIP"; then
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5462$as_echo "$ac_ct_STRIP" >&6; }
5463else
5464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468  if test "x$ac_ct_STRIP" = x; then
5469    STRIP=":"
5470  else
5471    case $cross_compiling:$ac_tool_warned in
5472yes:)
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477    STRIP=$ac_ct_STRIP
5478  fi
5479else
5480  STRIP="$ac_cv_prog_STRIP"
5481fi
5482
5483test -z "$STRIP" && STRIP=:
5484
5485
5486
5487
5488
5489
5490if test -n "$ac_tool_prefix"; then
5491  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5492set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494$as_echo_n "checking for $ac_word... " >&6; }
5495if test "${ac_cv_prog_RANLIB+set}" = set; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  if test -n "$RANLIB"; then
5499  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504  IFS=$as_save_IFS
5505  test -z "$as_dir" && as_dir=.
5506    for ac_exec_ext in '' $ac_executable_extensions; do
5507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510    break 2
5511  fi
5512done
5513  done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518RANLIB=$ac_cv_prog_RANLIB
5519if test -n "$RANLIB"; then
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5521$as_echo "$RANLIB" >&6; }
5522else
5523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524$as_echo "no" >&6; }
5525fi
5526
5527
5528fi
5529if test -z "$ac_cv_prog_RANLIB"; then
5530  ac_ct_RANLIB=$RANLIB
5531  # Extract the first word of "ranlib", so it can be a program name with args.
5532set dummy ranlib; ac_word=$2
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534$as_echo_n "checking for $ac_word... " >&6; }
5535if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5536  $as_echo_n "(cached) " >&6
5537else
5538  if test -n "$ac_ct_RANLIB"; then
5539  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544  IFS=$as_save_IFS
5545  test -z "$as_dir" && as_dir=.
5546    for ac_exec_ext in '' $ac_executable_extensions; do
5547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548    ac_cv_prog_ac_ct_RANLIB="ranlib"
5549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550    break 2
5551  fi
5552done
5553  done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5559if test -n "$ac_ct_RANLIB"; then
5560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5561$as_echo "$ac_ct_RANLIB" >&6; }
5562else
5563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564$as_echo "no" >&6; }
5565fi
5566
5567  if test "x$ac_ct_RANLIB" = x; then
5568    RANLIB=":"
5569  else
5570    case $cross_compiling:$ac_tool_warned in
5571yes:)
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5574ac_tool_warned=yes ;;
5575esac
5576    RANLIB=$ac_ct_RANLIB
5577  fi
5578else
5579  RANLIB="$ac_cv_prog_RANLIB"
5580fi
5581
5582test -z "$RANLIB" && RANLIB=:
5583
5584
5585
5586
5587
5588
5589# Determine commands to create old-style static archives.
5590old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5591old_postinstall_cmds='chmod 644 $oldlib'
5592old_postuninstall_cmds=
5593
5594if test -n "$RANLIB"; then
5595  case $host_os in
5596  openbsd*)
5597    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5598    ;;
5599  *)
5600    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5601    ;;
5602  esac
5603  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5604fi
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639# If no C compiler was specified, use CC.
5640LTCC=${LTCC-"$CC"}
5641
5642# If no C compiler flags were specified, use CFLAGS.
5643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5644
5645# Allow CC to be a program name with arguments.
5646compiler=$CC
5647
5648
5649# Check for command to grab the raw symbol name followed by C symbol from nm.
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5651$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5652if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5653  $as_echo_n "(cached) " >&6
5654else
5655
5656# These are sane defaults that work on at least a few old systems.
5657# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5658
5659# Character class describing NM global symbol codes.
5660symcode='[BCDEGRST]'
5661
5662# Regexp to match symbols that can be accessed directly from C.
5663sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5664
5665# Define system-specific variables.
5666case $host_os in
5667aix*)
5668  symcode='[BCDT]'
5669  ;;
5670cygwin* | mingw* | pw32* | cegcc*)
5671  symcode='[ABCDGISTW]'
5672  ;;
5673hpux*)
5674  if test "$host_cpu" = ia64; then
5675    symcode='[ABCDEGRST]'
5676  fi
5677  ;;
5678irix* | nonstopux*)
5679  symcode='[BCDEGRST]'
5680  ;;
5681osf*)
5682  symcode='[BCDEGQRST]'
5683  ;;
5684solaris*)
5685  symcode='[BDRT]'
5686  ;;
5687sco3.2v5*)
5688  symcode='[DT]'
5689  ;;
5690sysv4.2uw2*)
5691  symcode='[DT]'
5692  ;;
5693sysv5* | sco5v6* | unixware* | OpenUNIX*)
5694  symcode='[ABDT]'
5695  ;;
5696sysv4)
5697  symcode='[DFNSTU]'
5698  ;;
5699esac
5700
5701# If we're using GNU nm, then use its standard symbol codes.
5702case `$NM -V 2>&1` in
5703*GNU* | *'with BFD'*)
5704  symcode='[ABCDGIRSTW]' ;;
5705esac
5706
5707# Transform an extracted symbol line into a proper C declaration.
5708# Some systems (esp. on ia64) link data and code symbols differently,
5709# so use this general approach.
5710lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5711
5712# Transform an extracted symbol line into symbol name and symbol address
5713lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5714lt_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'"
5715
5716# Handle CRLF in mingw tool chain
5717opt_cr=
5718case $build_os in
5719mingw*)
5720  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5721  ;;
5722esac
5723
5724# Try without a prefix underscore, then with it.
5725for ac_symprfx in "" "_"; do
5726
5727  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5728  symxfrm="\\1 $ac_symprfx\\2 \\2"
5729
5730  # Write the raw and C identifiers.
5731  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5732    # Fake it for dumpbin and say T for any non-static function
5733    # and D for any global variable.
5734    # Also find C++ and __fastcall symbols from MSVC++,
5735    # which start with @ or ?.
5736    lt_cv_sys_global_symbol_pipe="$AWK '"\
5737"     {last_section=section; section=\$ 3};"\
5738"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5739"     \$ 0!~/External *\|/{next};"\
5740"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5741"     {if(hide[section]) next};"\
5742"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5743"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5744"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5745"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5746"     ' prfx=^$ac_symprfx"
5747  else
5748    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5749  fi
5750
5751  # Check to see that the pipe works correctly.
5752  pipe_works=no
5753
5754  rm -f conftest*
5755  cat > conftest.$ac_ext <<_LT_EOF
5756#ifdef __cplusplus
5757extern "C" {
5758#endif
5759char nm_test_var;
5760void nm_test_func(void);
5761void nm_test_func(void){}
5762#ifdef __cplusplus
5763}
5764#endif
5765int main(){nm_test_var='a';nm_test_func();return(0);}
5766_LT_EOF
5767
5768  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5769  (eval $ac_compile) 2>&5
5770  ac_status=$?
5771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5772  test $ac_status = 0; }; then
5773    # Now try to grab the symbols.
5774    nlist=conftest.nm
5775    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5776  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5777  ac_status=$?
5778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779  test $ac_status = 0; } && test -s "$nlist"; then
5780      # Try sorting and uniquifying the output.
5781      if sort "$nlist" | uniq > "$nlist"T; then
5782	mv -f "$nlist"T "$nlist"
5783      else
5784	rm -f "$nlist"T
5785      fi
5786
5787      # Make sure that we snagged all the symbols we need.
5788      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5789	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5790	  cat <<_LT_EOF > conftest.$ac_ext
5791#ifdef __cplusplus
5792extern "C" {
5793#endif
5794
5795_LT_EOF
5796	  # Now generate the symbol file.
5797	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5798
5799	  cat <<_LT_EOF >> conftest.$ac_ext
5800
5801/* The mapping between symbol names and symbols.  */
5802const struct {
5803  const char *name;
5804  void       *address;
5805}
5806lt__PROGRAM__LTX_preloaded_symbols[] =
5807{
5808  { "@PROGRAM@", (void *) 0 },
5809_LT_EOF
5810	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5811	  cat <<\_LT_EOF >> conftest.$ac_ext
5812  {0, (void *) 0}
5813};
5814
5815/* This works around a problem in FreeBSD linker */
5816#ifdef FREEBSD_WORKAROUND
5817static const void *lt_preloaded_setup() {
5818  return lt__PROGRAM__LTX_preloaded_symbols;
5819}
5820#endif
5821
5822#ifdef __cplusplus
5823}
5824#endif
5825_LT_EOF
5826	  # Now try linking the two files.
5827	  mv conftest.$ac_objext conftstm.$ac_objext
5828	  lt_save_LIBS="$LIBS"
5829	  lt_save_CFLAGS="$CFLAGS"
5830	  LIBS="conftstm.$ac_objext"
5831	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5832	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5833  (eval $ac_link) 2>&5
5834  ac_status=$?
5835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5836  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5837	    pipe_works=yes
5838	  fi
5839	  LIBS="$lt_save_LIBS"
5840	  CFLAGS="$lt_save_CFLAGS"
5841	else
5842	  echo "cannot find nm_test_func in $nlist" >&5
5843	fi
5844      else
5845	echo "cannot find nm_test_var in $nlist" >&5
5846      fi
5847    else
5848      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5849    fi
5850  else
5851    echo "$progname: failed program was:" >&5
5852    cat conftest.$ac_ext >&5
5853  fi
5854  rm -rf conftest* conftst*
5855
5856  # Do not use the global_symbol_pipe unless it works.
5857  if test "$pipe_works" = yes; then
5858    break
5859  else
5860    lt_cv_sys_global_symbol_pipe=
5861  fi
5862done
5863
5864fi
5865
5866if test -z "$lt_cv_sys_global_symbol_pipe"; then
5867  lt_cv_sys_global_symbol_to_cdecl=
5868fi
5869if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5871$as_echo "failed" >&6; }
5872else
5873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5874$as_echo "ok" >&6; }
5875fi
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899# Check whether --enable-libtool-lock was given.
5900if test "${enable_libtool_lock+set}" = set; then :
5901  enableval=$enable_libtool_lock;
5902fi
5903
5904test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5905
5906# Some flags need to be propagated to the compiler or linker for good
5907# libtool support.
5908case $host in
5909ia64-*-hpux*)
5910  # Find out which ABI we are using.
5911  echo 'int i;' > conftest.$ac_ext
5912  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913  (eval $ac_compile) 2>&5
5914  ac_status=$?
5915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916  test $ac_status = 0; }; then
5917    case `/usr/bin/file conftest.$ac_objext` in
5918      *ELF-32*)
5919	HPUX_IA64_MODE="32"
5920	;;
5921      *ELF-64*)
5922	HPUX_IA64_MODE="64"
5923	;;
5924    esac
5925  fi
5926  rm -rf conftest*
5927  ;;
5928*-*-irix6*)
5929  # Find out which ABI we are using.
5930  echo '#line 5930 "configure"' > conftest.$ac_ext
5931  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932  (eval $ac_compile) 2>&5
5933  ac_status=$?
5934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935  test $ac_status = 0; }; then
5936    if test "$lt_cv_prog_gnu_ld" = yes; then
5937      case `/usr/bin/file conftest.$ac_objext` in
5938	*32-bit*)
5939	  LD="${LD-ld} -melf32bsmip"
5940	  ;;
5941	*N32*)
5942	  LD="${LD-ld} -melf32bmipn32"
5943	  ;;
5944	*64-bit*)
5945	  LD="${LD-ld} -melf64bmip"
5946	;;
5947      esac
5948    else
5949      case `/usr/bin/file conftest.$ac_objext` in
5950	*32-bit*)
5951	  LD="${LD-ld} -32"
5952	  ;;
5953	*N32*)
5954	  LD="${LD-ld} -n32"
5955	  ;;
5956	*64-bit*)
5957	  LD="${LD-ld} -64"
5958	  ;;
5959      esac
5960    fi
5961  fi
5962  rm -rf conftest*
5963  ;;
5964
5965x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5966s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5967  # Find out which ABI we are using.
5968  echo 'int i;' > conftest.$ac_ext
5969  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5970  (eval $ac_compile) 2>&5
5971  ac_status=$?
5972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973  test $ac_status = 0; }; then
5974    case `/usr/bin/file conftest.o` in
5975      *32-bit*)
5976	case $host in
5977	  x86_64-*kfreebsd*-gnu)
5978	    LD="${LD-ld} -m elf_i386_fbsd"
5979	    ;;
5980	  x86_64-*linux*)
5981	    LD="${LD-ld} -m elf_i386"
5982	    ;;
5983	  ppc64-*linux*|powerpc64-*linux*)
5984	    LD="${LD-ld} -m elf32ppclinux"
5985	    ;;
5986	  s390x-*linux*)
5987	    LD="${LD-ld} -m elf_s390"
5988	    ;;
5989	  sparc64-*linux*)
5990	    LD="${LD-ld} -m elf32_sparc"
5991	    ;;
5992	esac
5993	;;
5994      *64-bit*)
5995	case $host in
5996	  x86_64-*kfreebsd*-gnu)
5997	    LD="${LD-ld} -m elf_x86_64_fbsd"
5998	    ;;
5999	  x86_64-*linux*)
6000	    LD="${LD-ld} -m elf_x86_64"
6001	    ;;
6002	  ppc*-*linux*|powerpc*-*linux*)
6003	    LD="${LD-ld} -m elf64ppc"
6004	    ;;
6005	  s390*-*linux*|s390*-*tpf*)
6006	    LD="${LD-ld} -m elf64_s390"
6007	    ;;
6008	  sparc*-*linux*)
6009	    LD="${LD-ld} -m elf64_sparc"
6010	    ;;
6011	esac
6012	;;
6013    esac
6014  fi
6015  rm -rf conftest*
6016  ;;
6017
6018*-*-sco3.2v5*)
6019  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6020  SAVE_CFLAGS="$CFLAGS"
6021  CFLAGS="$CFLAGS -belf"
6022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6023$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6024if test "${lt_cv_cc_needs_belf+set}" = set; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027  ac_ext=c
6028ac_cpp='$CPP $CPPFLAGS'
6029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
6033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035
6036int
6037main ()
6038{
6039
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_link "$LINENO"; then :
6045  lt_cv_cc_needs_belf=yes
6046else
6047  lt_cv_cc_needs_belf=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext \
6050    conftest$ac_exeext conftest.$ac_ext
6051     ac_ext=c
6052ac_cpp='$CPP $CPPFLAGS'
6053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057fi
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6059$as_echo "$lt_cv_cc_needs_belf" >&6; }
6060  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6061    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6062    CFLAGS="$SAVE_CFLAGS"
6063  fi
6064  ;;
6065sparc*-*solaris*)
6066  # Find out which ABI we are using.
6067  echo 'int i;' > conftest.$ac_ext
6068  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6069  (eval $ac_compile) 2>&5
6070  ac_status=$?
6071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072  test $ac_status = 0; }; then
6073    case `/usr/bin/file conftest.o` in
6074    *64-bit*)
6075      case $lt_cv_prog_gnu_ld in
6076      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6077      *)
6078	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6079	  LD="${LD-ld} -64"
6080	fi
6081	;;
6082      esac
6083      ;;
6084    esac
6085  fi
6086  rm -rf conftest*
6087  ;;
6088esac
6089
6090need_locks="$enable_libtool_lock"
6091
6092
6093  case $host_os in
6094    rhapsody* | darwin*)
6095    if test -n "$ac_tool_prefix"; then
6096  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6097set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099$as_echo_n "checking for $ac_word... " >&6; }
6100if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  if test -n "$DSYMUTIL"; then
6104  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6105else
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109  IFS=$as_save_IFS
6110  test -z "$as_dir" && as_dir=.
6111    for ac_exec_ext in '' $ac_executable_extensions; do
6112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115    break 2
6116  fi
6117done
6118  done
6119IFS=$as_save_IFS
6120
6121fi
6122fi
6123DSYMUTIL=$ac_cv_prog_DSYMUTIL
6124if test -n "$DSYMUTIL"; then
6125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6126$as_echo "$DSYMUTIL" >&6; }
6127else
6128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129$as_echo "no" >&6; }
6130fi
6131
6132
6133fi
6134if test -z "$ac_cv_prog_DSYMUTIL"; then
6135  ac_ct_DSYMUTIL=$DSYMUTIL
6136  # Extract the first word of "dsymutil", so it can be a program name with args.
6137set dummy dsymutil; ac_word=$2
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139$as_echo_n "checking for $ac_word... " >&6; }
6140if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  if test -n "$ac_ct_DSYMUTIL"; then
6144  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6145else
6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149  IFS=$as_save_IFS
6150  test -z "$as_dir" && as_dir=.
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155    break 2
6156  fi
6157done
6158  done
6159IFS=$as_save_IFS
6160
6161fi
6162fi
6163ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6164if test -n "$ac_ct_DSYMUTIL"; then
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6166$as_echo "$ac_ct_DSYMUTIL" >&6; }
6167else
6168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169$as_echo "no" >&6; }
6170fi
6171
6172  if test "x$ac_ct_DSYMUTIL" = x; then
6173    DSYMUTIL=":"
6174  else
6175    case $cross_compiling:$ac_tool_warned in
6176yes:)
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179ac_tool_warned=yes ;;
6180esac
6181    DSYMUTIL=$ac_ct_DSYMUTIL
6182  fi
6183else
6184  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6185fi
6186
6187    if test -n "$ac_tool_prefix"; then
6188  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$NMEDIT"; then
6196  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215NMEDIT=$ac_cv_prog_NMEDIT
6216if test -n "$NMEDIT"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6218$as_echo "$NMEDIT" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_NMEDIT"; then
6227  ac_ct_NMEDIT=$NMEDIT
6228  # Extract the first word of "nmedit", so it can be a program name with args.
6229set dummy nmedit; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$ac_ct_NMEDIT"; then
6236  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6256if test -n "$ac_ct_NMEDIT"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6258$as_echo "$ac_ct_NMEDIT" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264  if test "x$ac_ct_NMEDIT" = x; then
6265    NMEDIT=":"
6266  else
6267    case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273    NMEDIT=$ac_ct_NMEDIT
6274  fi
6275else
6276  NMEDIT="$ac_cv_prog_NMEDIT"
6277fi
6278
6279    if test -n "$ac_tool_prefix"; then
6280  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}lipo; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if test "${ac_cv_prog_LIPO+set}" = set; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$LIPO"; then
6288  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302  done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307LIPO=$ac_cv_prog_LIPO
6308if test -n "$LIPO"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6310$as_echo "$LIPO" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_LIPO"; then
6319  ac_ct_LIPO=$LIPO
6320  # Extract the first word of "lipo", so it can be a program name with args.
6321set dummy lipo; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$ac_ct_LIPO"; then
6328  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337    ac_cv_prog_ac_ct_LIPO="lipo"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6348if test -n "$ac_ct_LIPO"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6350$as_echo "$ac_ct_LIPO" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_LIPO" = x; then
6357    LIPO=":"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365    LIPO=$ac_ct_LIPO
6366  fi
6367else
6368  LIPO="$ac_cv_prog_LIPO"
6369fi
6370
6371    if test -n "$ac_tool_prefix"; then
6372  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6373set dummy ${ac_tool_prefix}otool; ac_word=$2
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375$as_echo_n "checking for $ac_word... " >&6; }
6376if test "${ac_cv_prog_OTOOL+set}" = set; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  if test -n "$OTOOL"; then
6380  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385  IFS=$as_save_IFS
6386  test -z "$as_dir" && as_dir=.
6387    for ac_exec_ext in '' $ac_executable_extensions; do
6388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391    break 2
6392  fi
6393done
6394  done
6395IFS=$as_save_IFS
6396
6397fi
6398fi
6399OTOOL=$ac_cv_prog_OTOOL
6400if test -n "$OTOOL"; then
6401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6402$as_echo "$OTOOL" >&6; }
6403else
6404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405$as_echo "no" >&6; }
6406fi
6407
6408
6409fi
6410if test -z "$ac_cv_prog_OTOOL"; then
6411  ac_ct_OTOOL=$OTOOL
6412  # Extract the first word of "otool", so it can be a program name with args.
6413set dummy otool; ac_word=$2
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415$as_echo_n "checking for $ac_word... " >&6; }
6416if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6417  $as_echo_n "(cached) " >&6
6418else
6419  if test -n "$ac_ct_OTOOL"; then
6420  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427    for ac_exec_ext in '' $ac_executable_extensions; do
6428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429    ac_cv_prog_ac_ct_OTOOL="otool"
6430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434  done
6435IFS=$as_save_IFS
6436
6437fi
6438fi
6439ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6440if test -n "$ac_ct_OTOOL"; then
6441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6442$as_echo "$ac_ct_OTOOL" >&6; }
6443else
6444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445$as_echo "no" >&6; }
6446fi
6447
6448  if test "x$ac_ct_OTOOL" = x; then
6449    OTOOL=":"
6450  else
6451    case $cross_compiling:$ac_tool_warned in
6452yes:)
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455ac_tool_warned=yes ;;
6456esac
6457    OTOOL=$ac_ct_OTOOL
6458  fi
6459else
6460  OTOOL="$ac_cv_prog_OTOOL"
6461fi
6462
6463    if test -n "$ac_tool_prefix"; then
6464  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6465set dummy ${ac_tool_prefix}otool64; ac_word=$2
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467$as_echo_n "checking for $ac_word... " >&6; }
6468if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6469  $as_echo_n "(cached) " >&6
6470else
6471  if test -n "$OTOOL64"; then
6472  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477  IFS=$as_save_IFS
6478  test -z "$as_dir" && as_dir=.
6479    for ac_exec_ext in '' $ac_executable_extensions; do
6480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483    break 2
6484  fi
6485done
6486  done
6487IFS=$as_save_IFS
6488
6489fi
6490fi
6491OTOOL64=$ac_cv_prog_OTOOL64
6492if test -n "$OTOOL64"; then
6493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6494$as_echo "$OTOOL64" >&6; }
6495else
6496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498fi
6499
6500
6501fi
6502if test -z "$ac_cv_prog_OTOOL64"; then
6503  ac_ct_OTOOL64=$OTOOL64
6504  # Extract the first word of "otool64", so it can be a program name with args.
6505set dummy otool64; ac_word=$2
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  if test -n "$ac_ct_OTOOL64"; then
6512  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517  IFS=$as_save_IFS
6518  test -z "$as_dir" && as_dir=.
6519    for ac_exec_ext in '' $ac_executable_extensions; do
6520  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521    ac_cv_prog_ac_ct_OTOOL64="otool64"
6522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526  done
6527IFS=$as_save_IFS
6528
6529fi
6530fi
6531ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6532if test -n "$ac_ct_OTOOL64"; then
6533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6534$as_echo "$ac_ct_OTOOL64" >&6; }
6535else
6536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538fi
6539
6540  if test "x$ac_ct_OTOOL64" = x; then
6541    OTOOL64=":"
6542  else
6543    case $cross_compiling:$ac_tool_warned in
6544yes:)
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547ac_tool_warned=yes ;;
6548esac
6549    OTOOL64=$ac_ct_OTOOL64
6550  fi
6551else
6552  OTOOL64="$ac_cv_prog_OTOOL64"
6553fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6582$as_echo_n "checking for -single_module linker flag... " >&6; }
6583if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6584  $as_echo_n "(cached) " >&6
6585else
6586  lt_cv_apple_cc_single_mod=no
6587      if test -z "${LT_MULTI_MODULE}"; then
6588	# By default we will add the -single_module flag. You can override
6589	# by either setting the environment variable LT_MULTI_MODULE
6590	# non-empty at configure time, or by adding -multi_module to the
6591	# link flags.
6592	rm -rf libconftest.dylib*
6593	echo "int foo(void){return 1;}" > conftest.c
6594	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6595-dynamiclib -Wl,-single_module conftest.c" >&5
6596	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6597	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6598        _lt_result=$?
6599	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6600	  lt_cv_apple_cc_single_mod=yes
6601	else
6602	  cat conftest.err >&5
6603	fi
6604	rm -rf libconftest.dylib*
6605	rm -f conftest.*
6606      fi
6607fi
6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6609$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6611$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6612if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  lt_cv_ld_exported_symbols_list=no
6616      save_LDFLAGS=$LDFLAGS
6617      echo "_main" > conftest.sym
6618      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621
6622int
6623main ()
6624{
6625
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630if ac_fn_c_try_link "$LINENO"; then :
6631  lt_cv_ld_exported_symbols_list=yes
6632else
6633  lt_cv_ld_exported_symbols_list=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext \
6636    conftest$ac_exeext conftest.$ac_ext
6637	LDFLAGS="$save_LDFLAGS"
6638
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6641$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6642    case $host_os in
6643    rhapsody* | darwin1.[012])
6644      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6645    darwin1.*)
6646      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6647    darwin*) # darwin 5.x on
6648      # if running on 10.5 or later, the deployment target defaults
6649      # to the OS version, if on x86, and 10.4, the deployment
6650      # target defaults to 10.4. Don't you love it?
6651      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6652	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6653	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6654	10.[012]*)
6655	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6656	10.*)
6657	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6658      esac
6659    ;;
6660  esac
6661    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6662      _lt_dar_single_mod='$single_module'
6663    fi
6664    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6665      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6666    else
6667      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6668    fi
6669    if test "$DSYMUTIL" != ":"; then
6670      _lt_dsymutil='~$DSYMUTIL $lib || :'
6671    else
6672      _lt_dsymutil=
6673    fi
6674    ;;
6675  esac
6676
6677ac_ext=c
6678ac_cpp='$CPP $CPPFLAGS'
6679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6683$as_echo_n "checking how to run the C preprocessor... " >&6; }
6684# On Suns, sometimes $CPP names a directory.
6685if test -n "$CPP" && test -d "$CPP"; then
6686  CPP=
6687fi
6688if test -z "$CPP"; then
6689  if test "${ac_cv_prog_CPP+set}" = set; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692      # Double quotes because CPP needs to be expanded
6693    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6694    do
6695      ac_preproc_ok=false
6696for ac_c_preproc_warn_flag in '' yes
6697do
6698  # Use a header file that comes with gcc, so configuring glibc
6699  # with a fresh cross-compiler works.
6700  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6701  # <limits.h> exists even on freestanding compilers.
6702  # On the NeXT, cc -E runs the code through the compiler's parser,
6703  # not just through cpp. "Syntax error" is here to catch this case.
6704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706#ifdef __STDC__
6707# include <limits.h>
6708#else
6709# include <assert.h>
6710#endif
6711		     Syntax error
6712_ACEOF
6713if ac_fn_c_try_cpp "$LINENO"; then :
6714
6715else
6716  # Broken: fails on valid input.
6717continue
6718fi
6719rm -f conftest.err conftest.$ac_ext
6720
6721  # OK, works on sane cases.  Now check whether nonexistent headers
6722  # can be detected and how.
6723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725#include <ac_nonexistent.h>
6726_ACEOF
6727if ac_fn_c_try_cpp "$LINENO"; then :
6728  # Broken: success on invalid input.
6729continue
6730else
6731  # Passes both tests.
6732ac_preproc_ok=:
6733break
6734fi
6735rm -f conftest.err conftest.$ac_ext
6736
6737done
6738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6739rm -f conftest.err conftest.$ac_ext
6740if $ac_preproc_ok; then :
6741  break
6742fi
6743
6744    done
6745    ac_cv_prog_CPP=$CPP
6746
6747fi
6748  CPP=$ac_cv_prog_CPP
6749else
6750  ac_cv_prog_CPP=$CPP
6751fi
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6753$as_echo "$CPP" >&6; }
6754ac_preproc_ok=false
6755for ac_c_preproc_warn_flag in '' yes
6756do
6757  # Use a header file that comes with gcc, so configuring glibc
6758  # with a fresh cross-compiler works.
6759  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6760  # <limits.h> exists even on freestanding compilers.
6761  # On the NeXT, cc -E runs the code through the compiler's parser,
6762  # not just through cpp. "Syntax error" is here to catch this case.
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765#ifdef __STDC__
6766# include <limits.h>
6767#else
6768# include <assert.h>
6769#endif
6770		     Syntax error
6771_ACEOF
6772if ac_fn_c_try_cpp "$LINENO"; then :
6773
6774else
6775  # Broken: fails on valid input.
6776continue
6777fi
6778rm -f conftest.err conftest.$ac_ext
6779
6780  # OK, works on sane cases.  Now check whether nonexistent headers
6781  # can be detected and how.
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784#include <ac_nonexistent.h>
6785_ACEOF
6786if ac_fn_c_try_cpp "$LINENO"; then :
6787  # Broken: success on invalid input.
6788continue
6789else
6790  # Passes both tests.
6791ac_preproc_ok=:
6792break
6793fi
6794rm -f conftest.err conftest.$ac_ext
6795
6796done
6797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6798rm -f conftest.err conftest.$ac_ext
6799if $ac_preproc_ok; then :
6800
6801else
6802  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6804as_fn_error "C preprocessor \"$CPP\" fails sanity check
6805See \`config.log' for more details." "$LINENO" 5; }
6806fi
6807
6808ac_ext=c
6809ac_cpp='$CPP $CPPFLAGS'
6810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812ac_compiler_gnu=$ac_cv_c_compiler_gnu
6813
6814
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6816$as_echo_n "checking for ANSI C header files... " >&6; }
6817if test "${ac_cv_header_stdc+set}" = set; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822#include <stdlib.h>
6823#include <stdarg.h>
6824#include <string.h>
6825#include <float.h>
6826
6827int
6828main ()
6829{
6830
6831  ;
6832  return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_compile "$LINENO"; then :
6836  ac_cv_header_stdc=yes
6837else
6838  ac_cv_header_stdc=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841
6842if test $ac_cv_header_stdc = yes; then
6843  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846#include <string.h>
6847
6848_ACEOF
6849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850  $EGREP "memchr" >/dev/null 2>&1; then :
6851
6852else
6853  ac_cv_header_stdc=no
6854fi
6855rm -f conftest*
6856
6857fi
6858
6859if test $ac_cv_header_stdc = yes; then
6860  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863#include <stdlib.h>
6864
6865_ACEOF
6866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867  $EGREP "free" >/dev/null 2>&1; then :
6868
6869else
6870  ac_cv_header_stdc=no
6871fi
6872rm -f conftest*
6873
6874fi
6875
6876if test $ac_cv_header_stdc = yes; then
6877  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6878  if test "$cross_compiling" = yes; then :
6879  :
6880else
6881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h.  */
6883#include <ctype.h>
6884#include <stdlib.h>
6885#if ((' ' & 0x0FF) == 0x020)
6886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888#else
6889# define ISLOWER(c) \
6890		   (('a' <= (c) && (c) <= 'i') \
6891		     || ('j' <= (c) && (c) <= 'r') \
6892		     || ('s' <= (c) && (c) <= 'z'))
6893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894#endif
6895
6896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897int
6898main ()
6899{
6900  int i;
6901  for (i = 0; i < 256; i++)
6902    if (XOR (islower (i), ISLOWER (i))
6903	|| toupper (i) != TOUPPER (i))
6904      return 2;
6905  return 0;
6906}
6907_ACEOF
6908if ac_fn_c_try_run "$LINENO"; then :
6909
6910else
6911  ac_cv_header_stdc=no
6912fi
6913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6914  conftest.$ac_objext conftest.beam conftest.$ac_ext
6915fi
6916
6917fi
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6920$as_echo "$ac_cv_header_stdc" >&6; }
6921if test $ac_cv_header_stdc = yes; then
6922
6923$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6924
6925fi
6926
6927# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6928for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6929		  inttypes.h stdint.h unistd.h
6930do :
6931  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6933"
6934eval as_val=\$$as_ac_Header
6935   if test "x$as_val" = x""yes; then :
6936  cat >>confdefs.h <<_ACEOF
6937#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6938_ACEOF
6939
6940fi
6941
6942done
6943
6944
6945for ac_header in dlfcn.h
6946do :
6947  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6948"
6949if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6950  cat >>confdefs.h <<_ACEOF
6951#define HAVE_DLFCN_H 1
6952_ACEOF
6953
6954fi
6955
6956done
6957
6958
6959
6960# Set options
6961
6962
6963
6964        enable_dlopen=no
6965
6966
6967  enable_win32_dll=no
6968
6969
6970            # Check whether --enable-shared was given.
6971if test "${enable_shared+set}" = set; then :
6972  enableval=$enable_shared; p=${PACKAGE-default}
6973    case $enableval in
6974    yes) enable_shared=yes ;;
6975    no) enable_shared=no ;;
6976    *)
6977      enable_shared=no
6978      # Look at the argument we got.  We use all the common list separators.
6979      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6980      for pkg in $enableval; do
6981	IFS="$lt_save_ifs"
6982	if test "X$pkg" = "X$p"; then
6983	  enable_shared=yes
6984	fi
6985      done
6986      IFS="$lt_save_ifs"
6987      ;;
6988    esac
6989else
6990  enable_shared=yes
6991fi
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001  # Check whether --enable-static was given.
7002if test "${enable_static+set}" = set; then :
7003  enableval=$enable_static; p=${PACKAGE-default}
7004    case $enableval in
7005    yes) enable_static=yes ;;
7006    no) enable_static=no ;;
7007    *)
7008     enable_static=no
7009      # Look at the argument we got.  We use all the common list separators.
7010      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7011      for pkg in $enableval; do
7012	IFS="$lt_save_ifs"
7013	if test "X$pkg" = "X$p"; then
7014	  enable_static=yes
7015	fi
7016      done
7017      IFS="$lt_save_ifs"
7018      ;;
7019    esac
7020else
7021  enable_static=yes
7022fi
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033# Check whether --with-pic was given.
7034if test "${with_pic+set}" = set; then :
7035  withval=$with_pic; pic_mode="$withval"
7036else
7037  pic_mode=default
7038fi
7039
7040
7041test -z "$pic_mode" && pic_mode=default
7042
7043
7044
7045
7046
7047
7048
7049  # Check whether --enable-fast-install was given.
7050if test "${enable_fast_install+set}" = set; then :
7051  enableval=$enable_fast_install; p=${PACKAGE-default}
7052    case $enableval in
7053    yes) enable_fast_install=yes ;;
7054    no) enable_fast_install=no ;;
7055    *)
7056      enable_fast_install=no
7057      # Look at the argument we got.  We use all the common list separators.
7058      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7059      for pkg in $enableval; do
7060	IFS="$lt_save_ifs"
7061	if test "X$pkg" = "X$p"; then
7062	  enable_fast_install=yes
7063	fi
7064      done
7065      IFS="$lt_save_ifs"
7066      ;;
7067    esac
7068else
7069  enable_fast_install=yes
7070fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082# This can be used to rebuild libtool when needed
7083LIBTOOL_DEPS="$ltmain"
7084
7085# Always use our own libtool.
7086LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112test -z "$LN_S" && LN_S="ln -s"
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127if test -n "${ZSH_VERSION+set}" ; then
7128   setopt NO_GLOB_SUBST
7129fi
7130
7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7132$as_echo_n "checking for objdir... " >&6; }
7133if test "${lt_cv_objdir+set}" = set; then :
7134  $as_echo_n "(cached) " >&6
7135else
7136  rm -f .libs 2>/dev/null
7137mkdir .libs 2>/dev/null
7138if test -d .libs; then
7139  lt_cv_objdir=.libs
7140else
7141  # MS-DOS does not allow filenames that begin with a dot.
7142  lt_cv_objdir=_libs
7143fi
7144rmdir .libs 2>/dev/null
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7147$as_echo "$lt_cv_objdir" >&6; }
7148objdir=$lt_cv_objdir
7149
7150
7151
7152
7153
7154cat >>confdefs.h <<_ACEOF
7155#define LT_OBJDIR "$lt_cv_objdir/"
7156_ACEOF
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174case $host_os in
7175aix3*)
7176  # AIX sometimes has problems with the GCC collect2 program.  For some
7177  # reason, if we set the COLLECT_NAMES environment variable, the problems
7178  # vanish in a puff of smoke.
7179  if test "X${COLLECT_NAMES+set}" != Xset; then
7180    COLLECT_NAMES=
7181    export COLLECT_NAMES
7182  fi
7183  ;;
7184esac
7185
7186# Sed substitution that helps us do robust quoting.  It backslashifies
7187# metacharacters that are still active within double-quoted strings.
7188sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7189
7190# Same as above, but do not quote variable references.
7191double_quote_subst='s/\(["`\\]\)/\\\1/g'
7192
7193# Sed substitution to delay expansion of an escaped shell variable in a
7194# double_quote_subst'ed string.
7195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7196
7197# Sed substitution to delay expansion of an escaped single quote.
7198delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7199
7200# Sed substitution to avoid accidental globbing in evaled expressions
7201no_glob_subst='s/\*/\\\*/g'
7202
7203# Global variables:
7204ofile=libtool
7205can_build_shared=yes
7206
7207# All known linkers require a `.a' archive for static linking (except MSVC,
7208# which needs '.lib').
7209libext=a
7210
7211with_gnu_ld="$lt_cv_prog_gnu_ld"
7212
7213old_CC="$CC"
7214old_CFLAGS="$CFLAGS"
7215
7216# Set sane defaults for various variables
7217test -z "$CC" && CC=cc
7218test -z "$LTCC" && LTCC=$CC
7219test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7220test -z "$LD" && LD=ld
7221test -z "$ac_objext" && ac_objext=o
7222
7223for cc_temp in $compiler""; do
7224  case $cc_temp in
7225    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7226    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7227    \-*) ;;
7228    *) break;;
7229  esac
7230done
7231cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7232
7233
7234# Only perform the check for file, if the check method requires it
7235test -z "$MAGIC_CMD" && MAGIC_CMD=file
7236case $deplibs_check_method in
7237file_magic*)
7238  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7240$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7241if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  case $MAGIC_CMD in
7245[\\/*] |  ?:[\\/]*)
7246  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7247  ;;
7248*)
7249  lt_save_MAGIC_CMD="$MAGIC_CMD"
7250  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7251  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7252  for ac_dir in $ac_dummy; do
7253    IFS="$lt_save_ifs"
7254    test -z "$ac_dir" && ac_dir=.
7255    if test -f $ac_dir/${ac_tool_prefix}file; then
7256      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7257      if test -n "$file_magic_test_file"; then
7258	case $deplibs_check_method in
7259	"file_magic "*)
7260	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7261	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7262	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7263	    $EGREP "$file_magic_regex" > /dev/null; then
7264	    :
7265	  else
7266	    cat <<_LT_EOF 1>&2
7267
7268*** Warning: the command libtool uses to detect shared libraries,
7269*** $file_magic_cmd, produces output that libtool cannot recognize.
7270*** The result is that libtool may fail to recognize shared libraries
7271*** as such.  This will affect the creation of libtool libraries that
7272*** depend on shared libraries, but programs linked with such libtool
7273*** libraries will work regardless of this problem.  Nevertheless, you
7274*** may want to report the problem to your system manager and/or to
7275*** bug-libtool@gnu.org
7276
7277_LT_EOF
7278	  fi ;;
7279	esac
7280      fi
7281      break
7282    fi
7283  done
7284  IFS="$lt_save_ifs"
7285  MAGIC_CMD="$lt_save_MAGIC_CMD"
7286  ;;
7287esac
7288fi
7289
7290MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7291if test -n "$MAGIC_CMD"; then
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7293$as_echo "$MAGIC_CMD" >&6; }
7294else
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296$as_echo "no" >&6; }
7297fi
7298
7299
7300
7301
7302
7303if test -z "$lt_cv_path_MAGIC_CMD"; then
7304  if test -n "$ac_tool_prefix"; then
7305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7306$as_echo_n "checking for file... " >&6; }
7307if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7308  $as_echo_n "(cached) " >&6
7309else
7310  case $MAGIC_CMD in
7311[\\/*] |  ?:[\\/]*)
7312  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7313  ;;
7314*)
7315  lt_save_MAGIC_CMD="$MAGIC_CMD"
7316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7317  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7318  for ac_dir in $ac_dummy; do
7319    IFS="$lt_save_ifs"
7320    test -z "$ac_dir" && ac_dir=.
7321    if test -f $ac_dir/file; then
7322      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7323      if test -n "$file_magic_test_file"; then
7324	case $deplibs_check_method in
7325	"file_magic "*)
7326	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7327	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7328	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7329	    $EGREP "$file_magic_regex" > /dev/null; then
7330	    :
7331	  else
7332	    cat <<_LT_EOF 1>&2
7333
7334*** Warning: the command libtool uses to detect shared libraries,
7335*** $file_magic_cmd, produces output that libtool cannot recognize.
7336*** The result is that libtool may fail to recognize shared libraries
7337*** as such.  This will affect the creation of libtool libraries that
7338*** depend on shared libraries, but programs linked with such libtool
7339*** libraries will work regardless of this problem.  Nevertheless, you
7340*** may want to report the problem to your system manager and/or to
7341*** bug-libtool@gnu.org
7342
7343_LT_EOF
7344	  fi ;;
7345	esac
7346      fi
7347      break
7348    fi
7349  done
7350  IFS="$lt_save_ifs"
7351  MAGIC_CMD="$lt_save_MAGIC_CMD"
7352  ;;
7353esac
7354fi
7355
7356MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357if test -n "$MAGIC_CMD"; then
7358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7359$as_echo "$MAGIC_CMD" >&6; }
7360else
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365
7366  else
7367    MAGIC_CMD=:
7368  fi
7369fi
7370
7371  fi
7372  ;;
7373esac
7374
7375# Use C for the default configuration in the libtool script
7376
7377lt_save_CC="$CC"
7378ac_ext=c
7379ac_cpp='$CPP $CPPFLAGS'
7380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385# Source file extension for C test sources.
7386ac_ext=c
7387
7388# Object file extension for compiled C test sources.
7389objext=o
7390objext=$objext
7391
7392# Code to be used in simple compile tests
7393lt_simple_compile_test_code="int some_variable = 0;"
7394
7395# Code to be used in simple link tests
7396lt_simple_link_test_code='int main(){return(0);}'
7397
7398
7399
7400
7401
7402
7403
7404# If no C compiler was specified, use CC.
7405LTCC=${LTCC-"$CC"}
7406
7407# If no C compiler flags were specified, use CFLAGS.
7408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7409
7410# Allow CC to be a program name with arguments.
7411compiler=$CC
7412
7413# Save the default compiler, since it gets overwritten when the other
7414# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7415compiler_DEFAULT=$CC
7416
7417# save warnings/boilerplate of simple test code
7418ac_outfile=conftest.$ac_objext
7419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7421_lt_compiler_boilerplate=`cat conftest.err`
7422$RM conftest*
7423
7424ac_outfile=conftest.$ac_objext
7425echo "$lt_simple_link_test_code" >conftest.$ac_ext
7426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7427_lt_linker_boilerplate=`cat conftest.err`
7428$RM -r conftest*
7429
7430
7431## CAVEAT EMPTOR:
7432## There is no encapsulation within the following macros, do not change
7433## the running order or otherwise move them around unless you know exactly
7434## what you are doing...
7435if test -n "$compiler"; then
7436
7437lt_prog_compiler_no_builtin_flag=
7438
7439if test "$GCC" = yes; then
7440  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7441
7442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7443$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7444if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  lt_cv_prog_compiler_rtti_exceptions=no
7448   ac_outfile=conftest.$ac_objext
7449   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7450   lt_compiler_flag="-fno-rtti -fno-exceptions"
7451   # Insert the option either (1) after the last *FLAGS variable, or
7452   # (2) before a word containing "conftest.", or (3) at the end.
7453   # Note that $ac_compile itself does not contain backslashes and begins
7454   # with a dollar sign (not a hyphen), so the echo should work correctly.
7455   # The option is referenced via a variable to avoid confusing sed.
7456   lt_compile=`echo "$ac_compile" | $SED \
7457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7459   -e 's:$: $lt_compiler_flag:'`
7460   (eval echo "\"\$as_me:7460: $lt_compile\"" >&5)
7461   (eval "$lt_compile" 2>conftest.err)
7462   ac_status=$?
7463   cat conftest.err >&5
7464   echo "$as_me:7464: \$? = $ac_status" >&5
7465   if (exit $ac_status) && test -s "$ac_outfile"; then
7466     # The compiler can only warn and ignore the option if not recognized
7467     # So say no if there are warnings other than the usual output.
7468     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7469     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7470     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7471       lt_cv_prog_compiler_rtti_exceptions=yes
7472     fi
7473   fi
7474   $RM conftest*
7475
7476fi
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7478$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7479
7480if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7481    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7482else
7483    :
7484fi
7485
7486fi
7487
7488
7489
7490
7491
7492
7493  lt_prog_compiler_wl=
7494lt_prog_compiler_pic=
7495lt_prog_compiler_static=
7496
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7499
7500  if test "$GCC" = yes; then
7501    lt_prog_compiler_wl='-Wl,'
7502    lt_prog_compiler_static='-static'
7503
7504    case $host_os in
7505      aix*)
7506      # All AIX code is PIC.
7507      if test "$host_cpu" = ia64; then
7508	# AIX 5 now supports IA64 processor
7509	lt_prog_compiler_static='-Bstatic'
7510      fi
7511      ;;
7512
7513    amigaos*)
7514      case $host_cpu in
7515      powerpc)
7516            # see comment about AmigaOS4 .so support
7517            lt_prog_compiler_pic='-fPIC'
7518        ;;
7519      m68k)
7520            # FIXME: we need at least 68020 code to build shared libraries, but
7521            # adding the `-m68020' flag to GCC prevents building anything better,
7522            # like `-m68040'.
7523            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7524        ;;
7525      esac
7526      ;;
7527
7528    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7529      # PIC is the default for these OSes.
7530      ;;
7531
7532    mingw* | cygwin* | pw32* | os2* | cegcc*)
7533      # This hack is so that the source file can tell whether it is being
7534      # built for inclusion in a dll (and should export symbols for example).
7535      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7536      # (--disable-auto-import) libraries
7537      lt_prog_compiler_pic='-DDLL_EXPORT'
7538      ;;
7539
7540    darwin* | rhapsody*)
7541      # PIC is the default on this platform
7542      # Common symbols not allowed in MH_DYLIB files
7543      lt_prog_compiler_pic='-fno-common'
7544      ;;
7545
7546    hpux*)
7547      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7548      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7549      # sets the default TLS model and affects inlining.
7550      case $host_cpu in
7551      hppa*64*)
7552	# +Z the default
7553	;;
7554      *)
7555	lt_prog_compiler_pic='-fPIC'
7556	;;
7557      esac
7558      ;;
7559
7560    interix[3-9]*)
7561      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7562      # Instead, we relocate shared libraries at runtime.
7563      ;;
7564
7565    msdosdjgpp*)
7566      # Just because we use GCC doesn't mean we suddenly get shared libraries
7567      # on systems that don't support them.
7568      lt_prog_compiler_can_build_shared=no
7569      enable_shared=no
7570      ;;
7571
7572    *nto* | *qnx*)
7573      # QNX uses GNU C++, but need to define -shared option too, otherwise
7574      # it will coredump.
7575      lt_prog_compiler_pic='-fPIC -shared'
7576      ;;
7577
7578    sysv4*MP*)
7579      if test -d /usr/nec; then
7580	lt_prog_compiler_pic=-Kconform_pic
7581      fi
7582      ;;
7583
7584    *)
7585      lt_prog_compiler_pic='-fPIC'
7586      ;;
7587    esac
7588  else
7589    # PORTME Check for flag to pass linker flags through the system compiler.
7590    case $host_os in
7591    aix*)
7592      lt_prog_compiler_wl='-Wl,'
7593      if test "$host_cpu" = ia64; then
7594	# AIX 5 now supports IA64 processor
7595	lt_prog_compiler_static='-Bstatic'
7596      else
7597	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7598      fi
7599      ;;
7600
7601    mingw* | cygwin* | pw32* | os2* | cegcc*)
7602      # This hack is so that the source file can tell whether it is being
7603      # built for inclusion in a dll (and should export symbols for example).
7604      lt_prog_compiler_pic='-DDLL_EXPORT'
7605      ;;
7606
7607    hpux9* | hpux10* | hpux11*)
7608      lt_prog_compiler_wl='-Wl,'
7609      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7610      # not for PA HP-UX.
7611      case $host_cpu in
7612      hppa*64*|ia64*)
7613	# +Z the default
7614	;;
7615      *)
7616	lt_prog_compiler_pic='+Z'
7617	;;
7618      esac
7619      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7620      lt_prog_compiler_static='${wl}-a ${wl}archive'
7621      ;;
7622
7623    irix5* | irix6* | nonstopux*)
7624      lt_prog_compiler_wl='-Wl,'
7625      # PIC (with -KPIC) is the default.
7626      lt_prog_compiler_static='-non_shared'
7627      ;;
7628
7629    linux* | k*bsd*-gnu)
7630      case $cc_basename in
7631      # old Intel for x86_64 which still supported -KPIC.
7632      ecc*)
7633	lt_prog_compiler_wl='-Wl,'
7634	lt_prog_compiler_pic='-KPIC'
7635	lt_prog_compiler_static='-static'
7636        ;;
7637      # icc used to be incompatible with GCC.
7638      # ICC 10 doesn't accept -KPIC any more.
7639      icc* | ifort*)
7640	lt_prog_compiler_wl='-Wl,'
7641	lt_prog_compiler_pic='-fPIC'
7642	lt_prog_compiler_static='-static'
7643        ;;
7644      # Lahey Fortran 8.1.
7645      lf95*)
7646	lt_prog_compiler_wl='-Wl,'
7647	lt_prog_compiler_pic='--shared'
7648	lt_prog_compiler_static='--static'
7649	;;
7650      pgcc* | pgf77* | pgf90* | pgf95*)
7651        # Portland Group compilers (*not* the Pentium gcc compiler,
7652	# which looks to be a dead project)
7653	lt_prog_compiler_wl='-Wl,'
7654	lt_prog_compiler_pic='-fpic'
7655	lt_prog_compiler_static='-Bstatic'
7656        ;;
7657      ccc*)
7658        lt_prog_compiler_wl='-Wl,'
7659        # All Alpha code is PIC.
7660        lt_prog_compiler_static='-non_shared'
7661        ;;
7662      xl*)
7663	# IBM XL C 8.0/Fortran 10.1 on PPC
7664	lt_prog_compiler_wl='-Wl,'
7665	lt_prog_compiler_pic='-qpic'
7666	lt_prog_compiler_static='-qstaticlink'
7667	;;
7668      *)
7669	case `$CC -V 2>&1 | sed 5q` in
7670	*Sun\ C*)
7671	  # Sun C 5.9
7672	  lt_prog_compiler_pic='-KPIC'
7673	  lt_prog_compiler_static='-Bstatic'
7674	  lt_prog_compiler_wl='-Wl,'
7675	  ;;
7676	*Sun\ F*)
7677	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7678	  lt_prog_compiler_pic='-KPIC'
7679	  lt_prog_compiler_static='-Bstatic'
7680	  lt_prog_compiler_wl=''
7681	  ;;
7682	esac
7683	;;
7684      esac
7685      ;;
7686
7687    newsos6)
7688      lt_prog_compiler_pic='-KPIC'
7689      lt_prog_compiler_static='-Bstatic'
7690      ;;
7691
7692    *nto* | *qnx*)
7693      # QNX uses GNU C++, but need to define -shared option too, otherwise
7694      # it will coredump.
7695      lt_prog_compiler_pic='-fPIC -shared'
7696      ;;
7697
7698    osf3* | osf4* | osf5*)
7699      lt_prog_compiler_wl='-Wl,'
7700      # All OSF/1 code is PIC.
7701      lt_prog_compiler_static='-non_shared'
7702      ;;
7703
7704    rdos*)
7705      lt_prog_compiler_static='-non_shared'
7706      ;;
7707
7708    solaris*)
7709      lt_prog_compiler_pic='-KPIC'
7710      lt_prog_compiler_static='-Bstatic'
7711      case $cc_basename in
7712      f77* | f90* | f95*)
7713	lt_prog_compiler_wl='-Qoption ld ';;
7714      *)
7715	lt_prog_compiler_wl='-Wl,';;
7716      esac
7717      ;;
7718
7719    sunos4*)
7720      lt_prog_compiler_wl='-Qoption ld '
7721      lt_prog_compiler_pic='-PIC'
7722      lt_prog_compiler_static='-Bstatic'
7723      ;;
7724
7725    sysv4 | sysv4.2uw2* | sysv4.3*)
7726      lt_prog_compiler_wl='-Wl,'
7727      lt_prog_compiler_pic='-KPIC'
7728      lt_prog_compiler_static='-Bstatic'
7729      ;;
7730
7731    sysv4*MP*)
7732      if test -d /usr/nec ;then
7733	lt_prog_compiler_pic='-Kconform_pic'
7734	lt_prog_compiler_static='-Bstatic'
7735      fi
7736      ;;
7737
7738    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7739      lt_prog_compiler_wl='-Wl,'
7740      lt_prog_compiler_pic='-KPIC'
7741      lt_prog_compiler_static='-Bstatic'
7742      ;;
7743
7744    unicos*)
7745      lt_prog_compiler_wl='-Wl,'
7746      lt_prog_compiler_can_build_shared=no
7747      ;;
7748
7749    uts4*)
7750      lt_prog_compiler_pic='-pic'
7751      lt_prog_compiler_static='-Bstatic'
7752      ;;
7753
7754    *)
7755      lt_prog_compiler_can_build_shared=no
7756      ;;
7757    esac
7758  fi
7759
7760case $host_os in
7761  # For platforms which do not support PIC, -DPIC is meaningless:
7762  *djgpp*)
7763    lt_prog_compiler_pic=
7764    ;;
7765  *)
7766    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7767    ;;
7768esac
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7770$as_echo "$lt_prog_compiler_pic" >&6; }
7771
7772
7773
7774
7775
7776
7777#
7778# Check to make sure the PIC flag actually works.
7779#
7780if test -n "$lt_prog_compiler_pic"; then
7781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7782$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7783if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  lt_cv_prog_compiler_pic_works=no
7787   ac_outfile=conftest.$ac_objext
7788   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7789   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7790   # Insert the option either (1) after the last *FLAGS variable, or
7791   # (2) before a word containing "conftest.", or (3) at the end.
7792   # Note that $ac_compile itself does not contain backslashes and begins
7793   # with a dollar sign (not a hyphen), so the echo should work correctly.
7794   # The option is referenced via a variable to avoid confusing sed.
7795   lt_compile=`echo "$ac_compile" | $SED \
7796   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7797   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7798   -e 's:$: $lt_compiler_flag:'`
7799   (eval echo "\"\$as_me:7799: $lt_compile\"" >&5)
7800   (eval "$lt_compile" 2>conftest.err)
7801   ac_status=$?
7802   cat conftest.err >&5
7803   echo "$as_me:7803: \$? = $ac_status" >&5
7804   if (exit $ac_status) && test -s "$ac_outfile"; then
7805     # The compiler can only warn and ignore the option if not recognized
7806     # So say no if there are warnings other than the usual output.
7807     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7808     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7809     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7810       lt_cv_prog_compiler_pic_works=yes
7811     fi
7812   fi
7813   $RM conftest*
7814
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7817$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7818
7819if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7820    case $lt_prog_compiler_pic in
7821     "" | " "*) ;;
7822     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7823     esac
7824else
7825    lt_prog_compiler_pic=
7826     lt_prog_compiler_can_build_shared=no
7827fi
7828
7829fi
7830
7831
7832
7833
7834
7835
7836#
7837# Check to make sure the static flag actually works.
7838#
7839wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7841$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7842if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  lt_cv_prog_compiler_static_works=no
7846   save_LDFLAGS="$LDFLAGS"
7847   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7848   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7849   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7850     # The linker can only warn and ignore the option if not recognized
7851     # So say no if there are warnings
7852     if test -s conftest.err; then
7853       # Append any errors to the config.log.
7854       cat conftest.err 1>&5
7855       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7856       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7857       if diff conftest.exp conftest.er2 >/dev/null; then
7858         lt_cv_prog_compiler_static_works=yes
7859       fi
7860     else
7861       lt_cv_prog_compiler_static_works=yes
7862     fi
7863   fi
7864   $RM -r conftest*
7865   LDFLAGS="$save_LDFLAGS"
7866
7867fi
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7869$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7870
7871if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7872    :
7873else
7874    lt_prog_compiler_static=
7875fi
7876
7877
7878
7879
7880
7881
7882
7883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7884$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7885if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7886  $as_echo_n "(cached) " >&6
7887else
7888  lt_cv_prog_compiler_c_o=no
7889   $RM -r conftest 2>/dev/null
7890   mkdir conftest
7891   cd conftest
7892   mkdir out
7893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7894
7895   lt_compiler_flag="-o out/conftest2.$ac_objext"
7896   # Insert the option either (1) after the last *FLAGS variable, or
7897   # (2) before a word containing "conftest.", or (3) at the end.
7898   # Note that $ac_compile itself does not contain backslashes and begins
7899   # with a dollar sign (not a hyphen), so the echo should work correctly.
7900   lt_compile=`echo "$ac_compile" | $SED \
7901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7903   -e 's:$: $lt_compiler_flag:'`
7904   (eval echo "\"\$as_me:7904: $lt_compile\"" >&5)
7905   (eval "$lt_compile" 2>out/conftest.err)
7906   ac_status=$?
7907   cat out/conftest.err >&5
7908   echo "$as_me:7908: \$? = $ac_status" >&5
7909   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7910   then
7911     # The compiler can only warn and ignore the option if not recognized
7912     # So say no if there are warnings
7913     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7914     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7915     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7916       lt_cv_prog_compiler_c_o=yes
7917     fi
7918   fi
7919   chmod u+w . 2>&5
7920   $RM conftest*
7921   # SGI C++ compiler will create directory out/ii_files/ for
7922   # template instantiation
7923   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7924   $RM out/* && rmdir out
7925   cd ..
7926   $RM -r conftest
7927   $RM conftest*
7928
7929fi
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7931$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7932
7933
7934
7935
7936
7937
7938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7939$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7940if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7941  $as_echo_n "(cached) " >&6
7942else
7943  lt_cv_prog_compiler_c_o=no
7944   $RM -r conftest 2>/dev/null
7945   mkdir conftest
7946   cd conftest
7947   mkdir out
7948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7949
7950   lt_compiler_flag="-o out/conftest2.$ac_objext"
7951   # Insert the option either (1) after the last *FLAGS variable, or
7952   # (2) before a word containing "conftest.", or (3) at the end.
7953   # Note that $ac_compile itself does not contain backslashes and begins
7954   # with a dollar sign (not a hyphen), so the echo should work correctly.
7955   lt_compile=`echo "$ac_compile" | $SED \
7956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958   -e 's:$: $lt_compiler_flag:'`
7959   (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960   (eval "$lt_compile" 2>out/conftest.err)
7961   ac_status=$?
7962   cat out/conftest.err >&5
7963   echo "$as_me:7963: \$? = $ac_status" >&5
7964   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7965   then
7966     # The compiler can only warn and ignore the option if not recognized
7967     # So say no if there are warnings
7968     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7969     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7970     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7971       lt_cv_prog_compiler_c_o=yes
7972     fi
7973   fi
7974   chmod u+w . 2>&5
7975   $RM conftest*
7976   # SGI C++ compiler will create directory out/ii_files/ for
7977   # template instantiation
7978   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7979   $RM out/* && rmdir out
7980   cd ..
7981   $RM -r conftest
7982   $RM conftest*
7983
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7986$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7987
7988
7989
7990
7991hard_links="nottested"
7992if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7993  # do not overwrite the value of need_locks provided by the user
7994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7995$as_echo_n "checking if we can lock with hard links... " >&6; }
7996  hard_links=yes
7997  $RM conftest*
7998  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7999  touch conftest.a
8000  ln conftest.a conftest.b 2>&5 || hard_links=no
8001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8003$as_echo "$hard_links" >&6; }
8004  if test "$hard_links" = no; then
8005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8006$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8007    need_locks=warn
8008  fi
8009else
8010  need_locks=no
8011fi
8012
8013
8014
8015
8016
8017
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8019$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8020
8021  runpath_var=
8022  allow_undefined_flag=
8023  always_export_symbols=no
8024  archive_cmds=
8025  archive_expsym_cmds=
8026  compiler_needs_object=no
8027  enable_shared_with_static_runtimes=no
8028  export_dynamic_flag_spec=
8029  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8030  hardcode_automatic=no
8031  hardcode_direct=no
8032  hardcode_direct_absolute=no
8033  hardcode_libdir_flag_spec=
8034  hardcode_libdir_flag_spec_ld=
8035  hardcode_libdir_separator=
8036  hardcode_minus_L=no
8037  hardcode_shlibpath_var=unsupported
8038  inherit_rpath=no
8039  link_all_deplibs=unknown
8040  module_cmds=
8041  module_expsym_cmds=
8042  old_archive_from_new_cmds=
8043  old_archive_from_expsyms_cmds=
8044  thread_safe_flag_spec=
8045  whole_archive_flag_spec=
8046  # include_expsyms should be a list of space-separated symbols to be *always*
8047  # included in the symbol list
8048  include_expsyms=
8049  # exclude_expsyms can be an extended regexp of symbols to exclude
8050  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8051  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8052  # as well as any symbol that contains `d'.
8053  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8054  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8055  # platforms (ab)use it in PIC code, but their linkers get confused if
8056  # the symbol is explicitly referenced.  Since portable code cannot
8057  # rely on this symbol name, it's probably fine to never include it in
8058  # preloaded symbol tables.
8059  # Exclude shared library initialization/finalization symbols.
8060  extract_expsyms_cmds=
8061
8062  case $host_os in
8063  cygwin* | mingw* | pw32* | cegcc*)
8064    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8065    # When not using gcc, we currently assume that we are using
8066    # Microsoft Visual C++.
8067    if test "$GCC" != yes; then
8068      with_gnu_ld=no
8069    fi
8070    ;;
8071  interix*)
8072    # we just hope/assume this is gcc and not c89 (= MSVC++)
8073    with_gnu_ld=yes
8074    ;;
8075  openbsd*)
8076    with_gnu_ld=no
8077    ;;
8078  linux* | k*bsd*-gnu)
8079    link_all_deplibs=no
8080    ;;
8081  esac
8082
8083  ld_shlibs=yes
8084  if test "$with_gnu_ld" = yes; then
8085    # If archive_cmds runs LD, not CC, wlarc should be empty
8086    wlarc='${wl}'
8087
8088    # Set some defaults for GNU ld with shared library support. These
8089    # are reset later if shared libraries are not supported. Putting them
8090    # here allows them to be overridden if necessary.
8091    runpath_var=LD_RUN_PATH
8092    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8093    export_dynamic_flag_spec='${wl}--export-dynamic'
8094    # ancient GNU ld didn't support --whole-archive et. al.
8095    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8096      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8097    else
8098      whole_archive_flag_spec=
8099    fi
8100    supports_anon_versioning=no
8101    case `$LD -v 2>&1` in
8102      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8103      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8104      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8105      *\ 2.11.*) ;; # other 2.11 versions
8106      *) supports_anon_versioning=yes ;;
8107    esac
8108
8109    # See if GNU ld supports shared libraries.
8110    case $host_os in
8111    aix[3-9]*)
8112      # On AIX/PPC, the GNU linker is very broken
8113      if test "$host_cpu" != ia64; then
8114	ld_shlibs=no
8115	cat <<_LT_EOF 1>&2
8116
8117*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8118*** to be unable to reliably create shared libraries on AIX.
8119*** Therefore, libtool is disabling shared libraries support.  If you
8120*** really care for shared libraries, you may want to modify your PATH
8121*** so that a non-GNU linker is found, and then restart.
8122
8123_LT_EOF
8124      fi
8125      ;;
8126
8127    amigaos*)
8128      case $host_cpu in
8129      powerpc)
8130            # see comment about AmigaOS4 .so support
8131            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132            archive_expsym_cmds=''
8133        ;;
8134      m68k)
8135            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)'
8136            hardcode_libdir_flag_spec='-L$libdir'
8137            hardcode_minus_L=yes
8138        ;;
8139      esac
8140      ;;
8141
8142    beos*)
8143      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8144	allow_undefined_flag=unsupported
8145	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8146	# support --undefined.  This deserves some investigation.  FIXME
8147	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8148      else
8149	ld_shlibs=no
8150      fi
8151      ;;
8152
8153    cygwin* | mingw* | pw32* | cegcc*)
8154      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8155      # as there is no search path for DLLs.
8156      hardcode_libdir_flag_spec='-L$libdir'
8157      allow_undefined_flag=unsupported
8158      always_export_symbols=no
8159      enable_shared_with_static_runtimes=yes
8160      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8161
8162      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8163        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8164	# If the export-symbols file already is a .def file (1st line
8165	# is EXPORTS), use it as is; otherwise, prepend...
8166	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8167	  cp $export_symbols $output_objdir/$soname.def;
8168	else
8169	  echo EXPORTS > $output_objdir/$soname.def;
8170	  cat $export_symbols >> $output_objdir/$soname.def;
8171	fi~
8172	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8173      else
8174	ld_shlibs=no
8175      fi
8176      ;;
8177
8178    interix[3-9]*)
8179      hardcode_direct=no
8180      hardcode_shlibpath_var=no
8181      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8182      export_dynamic_flag_spec='${wl}-E'
8183      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8184      # Instead, shared libraries are loaded at an image base (0x10000000 by
8185      # default) and relocated if they conflict, which is a slow very memory
8186      # consuming and fragmenting process.  To avoid this, we pick a random,
8187      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8188      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8189      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8190      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'
8191      ;;
8192
8193    gnu* | linux* | tpf* | k*bsd*-gnu)
8194      tmp_diet=no
8195      if test "$host_os" = linux-dietlibc; then
8196	case $cc_basename in
8197	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8198	esac
8199      fi
8200      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8201	 && test "$tmp_diet" = no
8202      then
8203	tmp_addflag=
8204	tmp_sharedflag='-shared'
8205	case $cc_basename,$host_cpu in
8206        pgcc*)				# Portland Group C compiler
8207	  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'
8208	  tmp_addflag=' $pic_flag'
8209	  ;;
8210	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8211	  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'
8212	  tmp_addflag=' $pic_flag -Mnomain' ;;
8213	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8214	  tmp_addflag=' -i_dynamic' ;;
8215	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8216	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8217	ifc* | ifort*)			# Intel Fortran compiler
8218	  tmp_addflag=' -nofor_main' ;;
8219	lf95*)				# Lahey Fortran 8.1
8220	  whole_archive_flag_spec=
8221	  tmp_sharedflag='--shared' ;;
8222	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8223	  tmp_sharedflag='-qmkshrobj'
8224	  tmp_addflag= ;;
8225	esac
8226	case `$CC -V 2>&1 | sed 5q` in
8227	*Sun\ C*)			# Sun C 5.9
8228	  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'
8229	  compiler_needs_object=yes
8230	  tmp_sharedflag='-G' ;;
8231	*Sun\ F*)			# Sun Fortran 8.3
8232	  tmp_sharedflag='-G' ;;
8233	esac
8234	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235
8236        if test "x$supports_anon_versioning" = xyes; then
8237          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8238	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8239	    echo "local: *; };" >> $output_objdir/$libname.ver~
8240	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8241        fi
8242
8243	case $cc_basename in
8244	xlf*)
8245	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8246	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8247	  hardcode_libdir_flag_spec=
8248	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8249	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8250	  if test "x$supports_anon_versioning" = xyes; then
8251	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8252	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253	      echo "local: *; };" >> $output_objdir/$libname.ver~
8254	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8255	  fi
8256	  ;;
8257	esac
8258      else
8259        ld_shlibs=no
8260      fi
8261      ;;
8262
8263    netbsd* | netbsdelf*-gnu)
8264      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8265	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8266	wlarc=
8267      else
8268	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8269	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8270      fi
8271      ;;
8272
8273    solaris*)
8274      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8275	ld_shlibs=no
8276	cat <<_LT_EOF 1>&2
8277
8278*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8279*** create shared libraries on Solaris systems.  Therefore, libtool
8280*** is disabling shared libraries support.  We urge you to upgrade GNU
8281*** binutils to release 2.9.1 or newer.  Another option is to modify
8282*** your PATH or compiler configuration so that the native linker is
8283*** used, and then restart.
8284
8285_LT_EOF
8286      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8287	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289      else
8290	ld_shlibs=no
8291      fi
8292      ;;
8293
8294    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8295      case `$LD -v 2>&1` in
8296        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8297	ld_shlibs=no
8298	cat <<_LT_EOF 1>&2
8299
8300*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8301*** reliably create shared libraries on SCO systems.  Therefore, libtool
8302*** is disabling shared libraries support.  We urge you to upgrade GNU
8303*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8304*** your PATH or compiler configuration so that the native linker is
8305*** used, and then restart.
8306
8307_LT_EOF
8308	;;
8309	*)
8310	  # For security reasons, it is highly recommended that you always
8311	  # use absolute paths for naming shared libraries, and exclude the
8312	  # DT_RUNPATH tag from executables and libraries.  But doing so
8313	  # requires that you compile everything twice, which is a pain.
8314	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8315	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318	  else
8319	    ld_shlibs=no
8320	  fi
8321	;;
8322      esac
8323      ;;
8324
8325    sunos4*)
8326      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8327      wlarc=
8328      hardcode_direct=yes
8329      hardcode_shlibpath_var=no
8330      ;;
8331
8332    *)
8333      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8334	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8336      else
8337	ld_shlibs=no
8338      fi
8339      ;;
8340    esac
8341
8342    if test "$ld_shlibs" = no; then
8343      runpath_var=
8344      hardcode_libdir_flag_spec=
8345      export_dynamic_flag_spec=
8346      whole_archive_flag_spec=
8347    fi
8348  else
8349    # PORTME fill in a description of your system's linker (not GNU ld)
8350    case $host_os in
8351    aix3*)
8352      allow_undefined_flag=unsupported
8353      always_export_symbols=yes
8354      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'
8355      # Note: this linker hardcodes the directories in LIBPATH if there
8356      # are no directories specified by -L.
8357      hardcode_minus_L=yes
8358      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8359	# Neither direct hardcoding nor static linking is supported with a
8360	# broken collect2.
8361	hardcode_direct=unsupported
8362      fi
8363      ;;
8364
8365    aix[4-9]*)
8366      if test "$host_cpu" = ia64; then
8367	# On IA64, the linker does run time linking by default, so we don't
8368	# have to do anything special.
8369	aix_use_runtimelinking=no
8370	exp_sym_flag='-Bexport'
8371	no_entry_flag=""
8372      else
8373	# If we're using GNU nm, then we don't want the "-C" option.
8374	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8375	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8376	  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'
8377	else
8378	  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'
8379	fi
8380	aix_use_runtimelinking=no
8381
8382	# Test if we are trying to use run time linking or normal
8383	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8384	# need to do runtime linking.
8385	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8386	  for ld_flag in $LDFLAGS; do
8387	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8388	    aix_use_runtimelinking=yes
8389	    break
8390	  fi
8391	  done
8392	  ;;
8393	esac
8394
8395	exp_sym_flag='-bexport'
8396	no_entry_flag='-bnoentry'
8397      fi
8398
8399      # When large executables or shared objects are built, AIX ld can
8400      # have problems creating the table of contents.  If linking a library
8401      # or program results in "error TOC overflow" add -mminimal-toc to
8402      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8403      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8404
8405      archive_cmds=''
8406      hardcode_direct=yes
8407      hardcode_direct_absolute=yes
8408      hardcode_libdir_separator=':'
8409      link_all_deplibs=yes
8410      file_list_spec='${wl}-f,'
8411
8412      if test "$GCC" = yes; then
8413	case $host_os in aix4.[012]|aix4.[012].*)
8414	# We only want to do this on AIX 4.2 and lower, the check
8415	# below for broken collect2 doesn't work under 4.3+
8416	  collect2name=`${CC} -print-prog-name=collect2`
8417	  if test -f "$collect2name" &&
8418	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8419	  then
8420	  # We have reworked collect2
8421	  :
8422	  else
8423	  # We have old collect2
8424	  hardcode_direct=unsupported
8425	  # It fails to find uninstalled libraries when the uninstalled
8426	  # path is not listed in the libpath.  Setting hardcode_minus_L
8427	  # to unsupported forces relinking
8428	  hardcode_minus_L=yes
8429	  hardcode_libdir_flag_spec='-L$libdir'
8430	  hardcode_libdir_separator=
8431	  fi
8432	  ;;
8433	esac
8434	shared_flag='-shared'
8435	if test "$aix_use_runtimelinking" = yes; then
8436	  shared_flag="$shared_flag "'${wl}-G'
8437	fi
8438	link_all_deplibs=no
8439      else
8440	# not using gcc
8441	if test "$host_cpu" = ia64; then
8442	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8443	# chokes on -Wl,-G. The following line is correct:
8444	  shared_flag='-G'
8445	else
8446	  if test "$aix_use_runtimelinking" = yes; then
8447	    shared_flag='${wl}-G'
8448	  else
8449	    shared_flag='${wl}-bM:SRE'
8450	  fi
8451	fi
8452      fi
8453
8454      export_dynamic_flag_spec='${wl}-bexpall'
8455      # It seems that -bexpall does not export symbols beginning with
8456      # underscore (_), so it is better to generate a list of symbols to export.
8457      always_export_symbols=yes
8458      if test "$aix_use_runtimelinking" = yes; then
8459	# Warning - without using the other runtime loading flags (-brtl),
8460	# -berok will link without error, but may produce a broken library.
8461	allow_undefined_flag='-berok'
8462        # Determine the default libpath from the value encoded in an
8463        # empty executable.
8464        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465/* end confdefs.h.  */
8466
8467int
8468main ()
8469{
8470
8471  ;
8472  return 0;
8473}
8474_ACEOF
8475if ac_fn_c_try_link "$LINENO"; then :
8476
8477lt_aix_libpath_sed='
8478    /Import File Strings/,/^$/ {
8479	/^0/ {
8480	    s/^0  *\(.*\)$/\1/
8481	    p
8482	}
8483    }'
8484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8485# Check for a 64-bit object if we didn't find anything.
8486if test -z "$aix_libpath"; then
8487  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8488fi
8489fi
8490rm -f core conftest.err conftest.$ac_objext \
8491    conftest$ac_exeext conftest.$ac_ext
8492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8493
8494        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8495        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"
8496      else
8497	if test "$host_cpu" = ia64; then
8498	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8499	  allow_undefined_flag="-z nodefs"
8500	  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"
8501	else
8502	 # Determine the default libpath from the value encoded in an
8503	 # empty executable.
8504	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h.  */
8506
8507int
8508main ()
8509{
8510
8511  ;
8512  return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_link "$LINENO"; then :
8516
8517lt_aix_libpath_sed='
8518    /Import File Strings/,/^$/ {
8519	/^0/ {
8520	    s/^0  *\(.*\)$/\1/
8521	    p
8522	}
8523    }'
8524aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8525# Check for a 64-bit object if we didn't find anything.
8526if test -z "$aix_libpath"; then
8527  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8528fi
8529fi
8530rm -f core conftest.err conftest.$ac_objext \
8531    conftest$ac_exeext conftest.$ac_ext
8532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8533
8534	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8535	  # Warning - without using the other run time loading flags,
8536	  # -berok will link without error, but may produce a broken library.
8537	  no_undefined_flag=' ${wl}-bernotok'
8538	  allow_undefined_flag=' ${wl}-berok'
8539	  # Exported symbols can be pulled into shared objects from archives
8540	  whole_archive_flag_spec='$convenience'
8541	  archive_cmds_need_lc=yes
8542	  # This is similar to how AIX traditionally builds its shared libraries.
8543	  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'
8544	fi
8545      fi
8546      ;;
8547
8548    amigaos*)
8549      case $host_cpu in
8550      powerpc)
8551            # see comment about AmigaOS4 .so support
8552            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8553            archive_expsym_cmds=''
8554        ;;
8555      m68k)
8556            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)'
8557            hardcode_libdir_flag_spec='-L$libdir'
8558            hardcode_minus_L=yes
8559        ;;
8560      esac
8561      ;;
8562
8563    bsdi[45]*)
8564      export_dynamic_flag_spec=-rdynamic
8565      ;;
8566
8567    cygwin* | mingw* | pw32* | cegcc*)
8568      # When not using gcc, we currently assume that we are using
8569      # Microsoft Visual C++.
8570      # hardcode_libdir_flag_spec is actually meaningless, as there is
8571      # no search path for DLLs.
8572      hardcode_libdir_flag_spec=' '
8573      allow_undefined_flag=unsupported
8574      # Tell ltmain to make .lib files, not .a files.
8575      libext=lib
8576      # Tell ltmain to make .dll files, not .so files.
8577      shrext_cmds=".dll"
8578      # FIXME: Setting linknames here is a bad hack.
8579      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8580      # The linker will automatically build a .lib file if we build a DLL.
8581      old_archive_from_new_cmds='true'
8582      # FIXME: Should let the user specify the lib program.
8583      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8584      fix_srcfile_path='`cygpath -w "$srcfile"`'
8585      enable_shared_with_static_runtimes=yes
8586      ;;
8587
8588    darwin* | rhapsody*)
8589
8590
8591  archive_cmds_need_lc=no
8592  hardcode_direct=no
8593  hardcode_automatic=yes
8594  hardcode_shlibpath_var=unsupported
8595  whole_archive_flag_spec=''
8596  link_all_deplibs=yes
8597  allow_undefined_flag="$_lt_dar_allow_undefined"
8598  case $cc_basename in
8599     ifort*) _lt_dar_can_shared=yes ;;
8600     *) _lt_dar_can_shared=$GCC ;;
8601  esac
8602  if test "$_lt_dar_can_shared" = "yes"; then
8603    output_verbose_link_cmd=echo
8604    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8605    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8606    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}"
8607    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}"
8608
8609  else
8610  ld_shlibs=no
8611  fi
8612
8613      ;;
8614
8615    dgux*)
8616      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617      hardcode_libdir_flag_spec='-L$libdir'
8618      hardcode_shlibpath_var=no
8619      ;;
8620
8621    freebsd1*)
8622      ld_shlibs=no
8623      ;;
8624
8625    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8626    # support.  Future versions do this automatically, but an explicit c++rt0.o
8627    # does not break anything, and helps significantly (at the cost of a little
8628    # extra space).
8629    freebsd2.2*)
8630      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8631      hardcode_libdir_flag_spec='-R$libdir'
8632      hardcode_direct=yes
8633      hardcode_shlibpath_var=no
8634      ;;
8635
8636    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8637    freebsd2*)
8638      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8639      hardcode_direct=yes
8640      hardcode_minus_L=yes
8641      hardcode_shlibpath_var=no
8642      ;;
8643
8644    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8645    freebsd* | dragonfly*)
8646      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8647      hardcode_libdir_flag_spec='-R$libdir'
8648      hardcode_direct=yes
8649      hardcode_shlibpath_var=no
8650      ;;
8651
8652    hpux9*)
8653      if test "$GCC" = yes; then
8654	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'
8655      else
8656	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'
8657      fi
8658      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659      hardcode_libdir_separator=:
8660      hardcode_direct=yes
8661
8662      # hardcode_minus_L: Not really in the search PATH,
8663      # but as the default location of the library.
8664      hardcode_minus_L=yes
8665      export_dynamic_flag_spec='${wl}-E'
8666      ;;
8667
8668    hpux10*)
8669      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8670	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671      else
8672	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8673      fi
8674      if test "$with_gnu_ld" = no; then
8675	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676	hardcode_libdir_flag_spec_ld='+b $libdir'
8677	hardcode_libdir_separator=:
8678	hardcode_direct=yes
8679	hardcode_direct_absolute=yes
8680	export_dynamic_flag_spec='${wl}-E'
8681	# hardcode_minus_L: Not really in the search PATH,
8682	# but as the default location of the library.
8683	hardcode_minus_L=yes
8684      fi
8685      ;;
8686
8687    hpux11*)
8688      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8689	case $host_cpu in
8690	hppa*64*)
8691	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692	  ;;
8693	ia64*)
8694	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695	  ;;
8696	*)
8697	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698	  ;;
8699	esac
8700      else
8701	case $host_cpu in
8702	hppa*64*)
8703	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8704	  ;;
8705	ia64*)
8706	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8707	  ;;
8708	*)
8709	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710	  ;;
8711	esac
8712      fi
8713      if test "$with_gnu_ld" = no; then
8714	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8715	hardcode_libdir_separator=:
8716
8717	case $host_cpu in
8718	hppa*64*|ia64*)
8719	  hardcode_direct=no
8720	  hardcode_shlibpath_var=no
8721	  ;;
8722	*)
8723	  hardcode_direct=yes
8724	  hardcode_direct_absolute=yes
8725	  export_dynamic_flag_spec='${wl}-E'
8726
8727	  # hardcode_minus_L: Not really in the search PATH,
8728	  # but as the default location of the library.
8729	  hardcode_minus_L=yes
8730	  ;;
8731	esac
8732      fi
8733      ;;
8734
8735    irix5* | irix6* | nonstopux*)
8736      if test "$GCC" = yes; then
8737	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'
8738	# Try to use the -exported_symbol ld option, if it does not
8739	# work, assume that -exports_file does not work either and
8740	# implicitly export all symbols.
8741        save_LDFLAGS="$LDFLAGS"
8742        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8743        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int foo(void) {}
8746_ACEOF
8747if ac_fn_c_try_link "$LINENO"; then :
8748  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'
8749
8750fi
8751rm -f core conftest.err conftest.$ac_objext \
8752    conftest$ac_exeext conftest.$ac_ext
8753        LDFLAGS="$save_LDFLAGS"
8754      else
8755	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'
8756	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'
8757      fi
8758      archive_cmds_need_lc='no'
8759      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760      hardcode_libdir_separator=:
8761      inherit_rpath=yes
8762      link_all_deplibs=yes
8763      ;;
8764
8765    netbsd* | netbsdelf*-gnu)
8766      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8767	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8768      else
8769	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8770      fi
8771      hardcode_libdir_flag_spec='-R$libdir'
8772      hardcode_direct=yes
8773      hardcode_shlibpath_var=no
8774      ;;
8775
8776    newsos6)
8777      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8778      hardcode_direct=yes
8779      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780      hardcode_libdir_separator=:
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    *nto* | *qnx*)
8785      ;;
8786
8787    openbsd*)
8788      if test -f /usr/libexec/ld.so; then
8789	hardcode_direct=yes
8790	hardcode_shlibpath_var=no
8791	hardcode_direct_absolute=yes
8792	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8793	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8794	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8795	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796	  export_dynamic_flag_spec='${wl}-E'
8797	else
8798	  case $host_os in
8799	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8800	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801	     hardcode_libdir_flag_spec='-R$libdir'
8802	     ;;
8803	   *)
8804	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8805	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806	     ;;
8807	  esac
8808	fi
8809      else
8810	ld_shlibs=no
8811      fi
8812      ;;
8813
8814    os2*)
8815      hardcode_libdir_flag_spec='-L$libdir'
8816      hardcode_minus_L=yes
8817      allow_undefined_flag=unsupported
8818      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'
8819      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8820      ;;
8821
8822    osf3*)
8823      if test "$GCC" = yes; then
8824	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8825	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'
8826      else
8827	allow_undefined_flag=' -expect_unresolved \*'
8828	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'
8829      fi
8830      archive_cmds_need_lc='no'
8831      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832      hardcode_libdir_separator=:
8833      ;;
8834
8835    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8836      if test "$GCC" = yes; then
8837	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8838	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'
8839	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8840      else
8841	allow_undefined_flag=' -expect_unresolved \*'
8842	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'
8843	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~
8844	$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'
8845
8846	# Both c and cxx compiler support -rpath directly
8847	hardcode_libdir_flag_spec='-rpath $libdir'
8848      fi
8849      archive_cmds_need_lc='no'
8850      hardcode_libdir_separator=:
8851      ;;
8852
8853    solaris*)
8854      no_undefined_flag=' -z defs'
8855      if test "$GCC" = yes; then
8856	wlarc='${wl}'
8857	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8859	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8860      else
8861	case `$CC -V 2>&1` in
8862	*"Compilers 5.0"*)
8863	  wlarc=''
8864	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8866	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8867	  ;;
8868	*)
8869	  wlarc='${wl}'
8870	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8871	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8872	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8873	  ;;
8874	esac
8875      fi
8876      hardcode_libdir_flag_spec='-R$libdir'
8877      hardcode_shlibpath_var=no
8878      case $host_os in
8879      solaris2.[0-5] | solaris2.[0-5].*) ;;
8880      *)
8881	# The compiler driver will combine and reorder linker options,
8882	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8883	# but is careful enough not to reorder.
8884	# Supported since Solaris 2.6 (maybe 2.5.1?)
8885	if test "$GCC" = yes; then
8886	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8887	else
8888	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8889	fi
8890	;;
8891      esac
8892      link_all_deplibs=yes
8893      ;;
8894
8895    sunos4*)
8896      if test "x$host_vendor" = xsequent; then
8897	# Use $CC to link under sequent, because it throws in some extra .o
8898	# files that make .init and .fini sections work.
8899	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8900      else
8901	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8902      fi
8903      hardcode_libdir_flag_spec='-L$libdir'
8904      hardcode_direct=yes
8905      hardcode_minus_L=yes
8906      hardcode_shlibpath_var=no
8907      ;;
8908
8909    sysv4)
8910      case $host_vendor in
8911	sni)
8912	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913	  hardcode_direct=yes # is this really true???
8914	;;
8915	siemens)
8916	  ## LD is ld it makes a PLAMLIB
8917	  ## CC just makes a GrossModule.
8918	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8919	  reload_cmds='$CC -r -o $output$reload_objs'
8920	  hardcode_direct=no
8921        ;;
8922	motorola)
8923	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8925	;;
8926      esac
8927      runpath_var='LD_RUN_PATH'
8928      hardcode_shlibpath_var=no
8929      ;;
8930
8931    sysv4.3*)
8932      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933      hardcode_shlibpath_var=no
8934      export_dynamic_flag_spec='-Bexport'
8935      ;;
8936
8937    sysv4*MP*)
8938      if test -d /usr/nec; then
8939	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940	hardcode_shlibpath_var=no
8941	runpath_var=LD_RUN_PATH
8942	hardcode_runpath_var=yes
8943	ld_shlibs=yes
8944      fi
8945      ;;
8946
8947    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8948      no_undefined_flag='${wl}-z,text'
8949      archive_cmds_need_lc=no
8950      hardcode_shlibpath_var=no
8951      runpath_var='LD_RUN_PATH'
8952
8953      if test "$GCC" = yes; then
8954	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8955	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8956      else
8957	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8958	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8959      fi
8960      ;;
8961
8962    sysv5* | sco3.2v5* | sco5v6*)
8963      # Note: We can NOT use -z defs as we might desire, because we do not
8964      # link with -lc, and that would cause any symbols used from libc to
8965      # always be unresolved, which means just about no library would
8966      # ever link correctly.  If we're not using GNU ld we use -z text
8967      # though, which does catch some bad symbols but isn't as heavy-handed
8968      # as -z defs.
8969      no_undefined_flag='${wl}-z,text'
8970      allow_undefined_flag='${wl}-z,nodefs'
8971      archive_cmds_need_lc=no
8972      hardcode_shlibpath_var=no
8973      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8974      hardcode_libdir_separator=':'
8975      link_all_deplibs=yes
8976      export_dynamic_flag_spec='${wl}-Bexport'
8977      runpath_var='LD_RUN_PATH'
8978
8979      if test "$GCC" = yes; then
8980	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8982      else
8983	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8985      fi
8986      ;;
8987
8988    uts4*)
8989      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990      hardcode_libdir_flag_spec='-L$libdir'
8991      hardcode_shlibpath_var=no
8992      ;;
8993
8994    *)
8995      ld_shlibs=no
8996      ;;
8997    esac
8998
8999    if test x$host_vendor = xsni; then
9000      case $host in
9001      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9002	export_dynamic_flag_spec='${wl}-Blargedynsym'
9003	;;
9004      esac
9005    fi
9006  fi
9007
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9009$as_echo "$ld_shlibs" >&6; }
9010test "$ld_shlibs" = no && can_build_shared=no
9011
9012with_gnu_ld=$with_gnu_ld
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028#
9029# Do we need to explicitly link libc?
9030#
9031case "x$archive_cmds_need_lc" in
9032x|xyes)
9033  # Assume -lc should be added
9034  archive_cmds_need_lc=yes
9035
9036  if test "$enable_shared" = yes && test "$GCC" = yes; then
9037    case $archive_cmds in
9038    *'~'*)
9039      # FIXME: we may have to deal with multi-command sequences.
9040      ;;
9041    '$CC '*)
9042      # Test whether the compiler implicitly links with -lc since on some
9043      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9044      # to ld, don't add -lc before -lgcc.
9045      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9047      $RM conftest*
9048      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9051  (eval $ac_compile) 2>&5
9052  ac_status=$?
9053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9054  test $ac_status = 0; } 2>conftest.err; then
9055        soname=conftest
9056        lib=conftest
9057        libobjs=conftest.$ac_objext
9058        deplibs=
9059        wl=$lt_prog_compiler_wl
9060	pic_flag=$lt_prog_compiler_pic
9061        compiler_flags=-v
9062        linker_flags=-v
9063        verstring=
9064        output_objdir=.
9065        libname=conftest
9066        lt_save_allow_undefined_flag=$allow_undefined_flag
9067        allow_undefined_flag=
9068        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9069  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9070  ac_status=$?
9071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072  test $ac_status = 0; }
9073        then
9074	  archive_cmds_need_lc=no
9075        else
9076	  archive_cmds_need_lc=yes
9077        fi
9078        allow_undefined_flag=$lt_save_allow_undefined_flag
9079      else
9080        cat conftest.err 1>&5
9081      fi
9082      $RM conftest*
9083      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9084$as_echo "$archive_cmds_need_lc" >&6; }
9085      ;;
9086    esac
9087  fi
9088  ;;
9089esac
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9248$as_echo_n "checking dynamic linker characteristics... " >&6; }
9249
9250if test "$GCC" = yes; then
9251  case $host_os in
9252    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9253    *) lt_awk_arg="/^libraries:/" ;;
9254  esac
9255  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9257    # if the path contains ";" then we assume it to be the separator
9258    # otherwise default to the standard path separator (i.e. ":") - it is
9259    # assumed that no part of a normal pathname contains ";" but that should
9260    # okay in the real world where ";" in dirpaths is itself problematic.
9261    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9262  else
9263    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264  fi
9265  # Ok, now we have the path, separated by spaces, we can step through it
9266  # and add multilib dir if necessary.
9267  lt_tmp_lt_search_path_spec=
9268  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9269  for lt_sys_path in $lt_search_path_spec; do
9270    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9271      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9272    else
9273      test -d "$lt_sys_path" && \
9274	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9275    fi
9276  done
9277  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9278BEGIN {RS=" "; FS="/|\n";} {
9279  lt_foo="";
9280  lt_count=0;
9281  for (lt_i = NF; lt_i > 0; lt_i--) {
9282    if ($lt_i != "" && $lt_i != ".") {
9283      if ($lt_i == "..") {
9284        lt_count++;
9285      } else {
9286        if (lt_count == 0) {
9287          lt_foo="/" $lt_i lt_foo;
9288        } else {
9289          lt_count--;
9290        }
9291      }
9292    }
9293  }
9294  if (lt_foo != "") { lt_freq[lt_foo]++; }
9295  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9296}'`
9297  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9298else
9299  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9300fi
9301library_names_spec=
9302libname_spec='lib$name'
9303soname_spec=
9304shrext_cmds=".so"
9305postinstall_cmds=
9306postuninstall_cmds=
9307finish_cmds=
9308finish_eval=
9309shlibpath_var=
9310shlibpath_overrides_runpath=unknown
9311version_type=none
9312dynamic_linker="$host_os ld.so"
9313sys_lib_dlsearch_path_spec="/lib /usr/lib"
9314need_lib_prefix=unknown
9315hardcode_into_libs=no
9316
9317# when you set need_version to no, make sure it does not cause -set_version
9318# flags to be left without arguments
9319need_version=unknown
9320
9321case $host_os in
9322aix3*)
9323  version_type=linux
9324  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9325  shlibpath_var=LIBPATH
9326
9327  # AIX 3 has no versioning support, so we append a major version to the name.
9328  soname_spec='${libname}${release}${shared_ext}$major'
9329  ;;
9330
9331aix[4-9]*)
9332  version_type=linux
9333  need_lib_prefix=no
9334  need_version=no
9335  hardcode_into_libs=yes
9336  if test "$host_cpu" = ia64; then
9337    # AIX 5 supports IA64
9338    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9339    shlibpath_var=LD_LIBRARY_PATH
9340  else
9341    # With GCC up to 2.95.x, collect2 would create an import file
9342    # for dependence libraries.  The import file would start with
9343    # the line `#! .'.  This would cause the generated library to
9344    # depend on `.', always an invalid library.  This was fixed in
9345    # development snapshots of GCC prior to 3.0.
9346    case $host_os in
9347      aix4 | aix4.[01] | aix4.[01].*)
9348      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9349	   echo ' yes '
9350	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9351	:
9352      else
9353	can_build_shared=no
9354      fi
9355      ;;
9356    esac
9357    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9358    # soname into executable. Probably we can add versioning support to
9359    # collect2, so additional links can be useful in future.
9360    if test "$aix_use_runtimelinking" = yes; then
9361      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9362      # instead of lib<name>.a to let people know that these are not
9363      # typical AIX shared libraries.
9364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365    else
9366      # We preserve .a as extension for shared libraries through AIX4.2
9367      # and later when we are not doing run time linking.
9368      library_names_spec='${libname}${release}.a $libname.a'
9369      soname_spec='${libname}${release}${shared_ext}$major'
9370    fi
9371    shlibpath_var=LIBPATH
9372  fi
9373  ;;
9374
9375amigaos*)
9376  case $host_cpu in
9377  powerpc)
9378    # Since July 2007 AmigaOS4 officially supports .so libraries.
9379    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9380    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381    ;;
9382  m68k)
9383    library_names_spec='$libname.ixlibrary $libname.a'
9384    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9385    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'
9386    ;;
9387  esac
9388  ;;
9389
9390beos*)
9391  library_names_spec='${libname}${shared_ext}'
9392  dynamic_linker="$host_os ld.so"
9393  shlibpath_var=LIBRARY_PATH
9394  ;;
9395
9396bsdi[45]*)
9397  version_type=linux
9398  need_version=no
9399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400  soname_spec='${libname}${release}${shared_ext}$major'
9401  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9402  shlibpath_var=LD_LIBRARY_PATH
9403  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9404  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9405  # the default ld.so.conf also contains /usr/contrib/lib and
9406  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9407  # libtool to hard-code these into programs
9408  ;;
9409
9410cygwin* | mingw* | pw32* | cegcc*)
9411  version_type=windows
9412  shrext_cmds=".dll"
9413  need_version=no
9414  need_lib_prefix=no
9415
9416  case $GCC,$host_os in
9417  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9418    library_names_spec='$libname.dll.a'
9419    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9420    postinstall_cmds='base_file=`basename \${file}`~
9421      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9422      dldir=$destdir/`dirname \$dlpath`~
9423      test -d \$dldir || mkdir -p \$dldir~
9424      $install_prog $dir/$dlname \$dldir/$dlname~
9425      chmod a+x \$dldir/$dlname~
9426      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9427        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9428      fi'
9429    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430      dlpath=$dir/\$dldll~
9431       $RM \$dlpath'
9432    shlibpath_overrides_runpath=yes
9433
9434    case $host_os in
9435    cygwin*)
9436      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439      ;;
9440    mingw* | cegcc*)
9441      # MinGW DLLs use traditional 'lib' prefix
9442      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9445        # It is most probably a Windows format PATH printed by
9446        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447        # path with ; separators, and with drive letters. We can handle the
9448        # drive letters (cygwin fileutils understands them), so leave them,
9449        # especially as we might pass files found there to a mingw objdump,
9450        # which wouldn't understand a cygwinified path. Ahh.
9451        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452      else
9453        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9454      fi
9455      ;;
9456    pw32*)
9457      # pw32 DLLs use 'pw' prefix rather than 'lib'
9458      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9459      ;;
9460    esac
9461    ;;
9462
9463  *)
9464    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465    ;;
9466  esac
9467  dynamic_linker='Win32 ld.exe'
9468  # FIXME: first we should search . and the directory the executable is in
9469  shlibpath_var=PATH
9470  ;;
9471
9472darwin* | rhapsody*)
9473  dynamic_linker="$host_os dyld"
9474  version_type=darwin
9475  need_lib_prefix=no
9476  need_version=no
9477  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478  soname_spec='${libname}${release}${major}$shared_ext'
9479  shlibpath_overrides_runpath=yes
9480  shlibpath_var=DYLD_LIBRARY_PATH
9481  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9482
9483  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9484  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9485  ;;
9486
9487dgux*)
9488  version_type=linux
9489  need_lib_prefix=no
9490  need_version=no
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9492  soname_spec='${libname}${release}${shared_ext}$major'
9493  shlibpath_var=LD_LIBRARY_PATH
9494  ;;
9495
9496freebsd1*)
9497  dynamic_linker=no
9498  ;;
9499
9500freebsd* | dragonfly*)
9501  # DragonFly does not have aout.  When/if they implement a new
9502  # versioning mechanism, adjust this.
9503  if test -x /usr/bin/objformat; then
9504    objformat=`/usr/bin/objformat`
9505  else
9506    case $host_os in
9507    freebsd[123]*) objformat=aout ;;
9508    *) objformat=elf ;;
9509    esac
9510  fi
9511  version_type=freebsd-$objformat
9512  case $version_type in
9513    freebsd-elf*)
9514      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9515      need_version=no
9516      need_lib_prefix=no
9517      ;;
9518    freebsd-*)
9519      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520      need_version=yes
9521      ;;
9522  esac
9523  shlibpath_var=LD_LIBRARY_PATH
9524  case $host_os in
9525  freebsd2*)
9526    shlibpath_overrides_runpath=yes
9527    ;;
9528  freebsd3.[01]* | freebsdelf3.[01]*)
9529    shlibpath_overrides_runpath=yes
9530    hardcode_into_libs=yes
9531    ;;
9532  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9533  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9534    shlibpath_overrides_runpath=no
9535    hardcode_into_libs=yes
9536    ;;
9537  *) # from 4.6 on, and DragonFly
9538    shlibpath_overrides_runpath=yes
9539    hardcode_into_libs=yes
9540    ;;
9541  esac
9542  ;;
9543
9544gnu*)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  shlibpath_var=LD_LIBRARY_PATH
9551  hardcode_into_libs=yes
9552  ;;
9553
9554hpux9* | hpux10* | hpux11*)
9555  # Give a soname corresponding to the major version so that dld.sl refuses to
9556  # link against other versions.
9557  version_type=sunos
9558  need_lib_prefix=no
9559  need_version=no
9560  case $host_cpu in
9561  ia64*)
9562    shrext_cmds='.so'
9563    hardcode_into_libs=yes
9564    dynamic_linker="$host_os dld.so"
9565    shlibpath_var=LD_LIBRARY_PATH
9566    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568    soname_spec='${libname}${release}${shared_ext}$major'
9569    if test "X$HPUX_IA64_MODE" = X32; then
9570      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9571    else
9572      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9573    fi
9574    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575    ;;
9576  hppa*64*)
9577    shrext_cmds='.sl'
9578    hardcode_into_libs=yes
9579    dynamic_linker="$host_os dld.sl"
9580    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9581    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583    soname_spec='${libname}${release}${shared_ext}$major'
9584    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9585    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586    ;;
9587  *)
9588    shrext_cmds='.sl'
9589    dynamic_linker="$host_os dld.sl"
9590    shlibpath_var=SHLIB_PATH
9591    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9592    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593    soname_spec='${libname}${release}${shared_ext}$major'
9594    ;;
9595  esac
9596  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9597  postinstall_cmds='chmod 555 $lib'
9598  ;;
9599
9600interix[3-9]*)
9601  version_type=linux
9602  need_lib_prefix=no
9603  need_version=no
9604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605  soname_spec='${libname}${release}${shared_ext}$major'
9606  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9607  shlibpath_var=LD_LIBRARY_PATH
9608  shlibpath_overrides_runpath=no
9609  hardcode_into_libs=yes
9610  ;;
9611
9612irix5* | irix6* | nonstopux*)
9613  case $host_os in
9614    nonstopux*) version_type=nonstopux ;;
9615    *)
9616	if test "$lt_cv_prog_gnu_ld" = yes; then
9617		version_type=linux
9618	else
9619		version_type=irix
9620	fi ;;
9621  esac
9622  need_lib_prefix=no
9623  need_version=no
9624  soname_spec='${libname}${release}${shared_ext}$major'
9625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9626  case $host_os in
9627  irix5* | nonstopux*)
9628    libsuff= shlibsuff=
9629    ;;
9630  *)
9631    case $LD in # libtool.m4 will add one of these switches to LD
9632    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9633      libsuff= shlibsuff= libmagic=32-bit;;
9634    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9635      libsuff=32 shlibsuff=N32 libmagic=N32;;
9636    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9637      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9638    *) libsuff= shlibsuff= libmagic=never-match;;
9639    esac
9640    ;;
9641  esac
9642  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9643  shlibpath_overrides_runpath=no
9644  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9645  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9646  hardcode_into_libs=yes
9647  ;;
9648
9649# No shared lib support for Linux oldld, aout, or coff.
9650linux*oldld* | linux*aout* | linux*coff*)
9651  dynamic_linker=no
9652  ;;
9653
9654# This must be Linux ELF.
9655linux* | k*bsd*-gnu)
9656  version_type=linux
9657  need_lib_prefix=no
9658  need_version=no
9659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9660  soname_spec='${libname}${release}${shared_ext}$major'
9661  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9662  shlibpath_var=LD_LIBRARY_PATH
9663  shlibpath_overrides_runpath=no
9664  # Some binutils ld are patched to set DT_RUNPATH
9665  save_LDFLAGS=$LDFLAGS
9666  save_libdir=$libdir
9667  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9668       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670/* end confdefs.h.  */
9671
9672int
9673main ()
9674{
9675
9676  ;
9677  return 0;
9678}
9679_ACEOF
9680if ac_fn_c_try_link "$LINENO"; then :
9681  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9682  shlibpath_overrides_runpath=yes
9683fi
9684fi
9685rm -f core conftest.err conftest.$ac_objext \
9686    conftest$ac_exeext conftest.$ac_ext
9687  LDFLAGS=$save_LDFLAGS
9688  libdir=$save_libdir
9689
9690  # This implies no fast_install, which is unacceptable.
9691  # Some rework will be needed to allow for fast_install
9692  # before this can be enabled.
9693  hardcode_into_libs=yes
9694
9695  # Append ld.so.conf contents to the search path
9696  if test -f /etc/ld.so.conf; then
9697    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' ' '`
9698    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9699  fi
9700
9701  # We used to test for /lib/ld.so.1 and disable shared libraries on
9702  # powerpc, because MkLinux only supported shared libraries with the
9703  # GNU dynamic linker.  Since this was broken with cross compilers,
9704  # most powerpc-linux boxes support dynamic linking these days and
9705  # people can always --disable-shared, the test was removed, and we
9706  # assume the GNU/Linux dynamic linker is in use.
9707  dynamic_linker='GNU/Linux ld.so'
9708  ;;
9709
9710netbsdelf*-gnu)
9711  version_type=linux
9712  need_lib_prefix=no
9713  need_version=no
9714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9715  soname_spec='${libname}${release}${shared_ext}$major'
9716  shlibpath_var=LD_LIBRARY_PATH
9717  shlibpath_overrides_runpath=no
9718  hardcode_into_libs=yes
9719  dynamic_linker='NetBSD ld.elf_so'
9720  ;;
9721
9722netbsd*)
9723  version_type=sunos
9724  need_lib_prefix=no
9725  need_version=no
9726  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9727    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9728    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9729    dynamic_linker='NetBSD (a.out) ld.so'
9730  else
9731    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732    soname_spec='${libname}${release}${shared_ext}$major'
9733    dynamic_linker='NetBSD ld.elf_so'
9734  fi
9735  shlibpath_var=LD_LIBRARY_PATH
9736  shlibpath_overrides_runpath=yes
9737  hardcode_into_libs=yes
9738  ;;
9739
9740newsos6)
9741  version_type=linux
9742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743  shlibpath_var=LD_LIBRARY_PATH
9744  shlibpath_overrides_runpath=yes
9745  ;;
9746
9747*nto* | *qnx*)
9748  version_type=qnx
9749  need_lib_prefix=no
9750  need_version=no
9751  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752  soname_spec='${libname}${release}${shared_ext}$major'
9753  shlibpath_var=LD_LIBRARY_PATH
9754  shlibpath_overrides_runpath=no
9755  hardcode_into_libs=yes
9756  dynamic_linker='ldqnx.so'
9757  ;;
9758
9759openbsd*)
9760  version_type=sunos
9761  sys_lib_dlsearch_path_spec="/usr/lib"
9762  need_lib_prefix=no
9763  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9764  case $host_os in
9765    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9766    *)				need_version=no  ;;
9767  esac
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9769  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9772    case $host_os in
9773      openbsd2.[89] | openbsd2.[89].*)
9774	shlibpath_overrides_runpath=no
9775	;;
9776      *)
9777	shlibpath_overrides_runpath=yes
9778	;;
9779      esac
9780  else
9781    shlibpath_overrides_runpath=yes
9782  fi
9783  ;;
9784
9785os2*)
9786  libname_spec='$name'
9787  shrext_cmds=".dll"
9788  need_lib_prefix=no
9789  library_names_spec='$libname${shared_ext} $libname.a'
9790  dynamic_linker='OS/2 ld.exe'
9791  shlibpath_var=LIBPATH
9792  ;;
9793
9794osf3* | osf4* | osf5*)
9795  version_type=osf
9796  need_lib_prefix=no
9797  need_version=no
9798  soname_spec='${libname}${release}${shared_ext}$major'
9799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800  shlibpath_var=LD_LIBRARY_PATH
9801  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9802  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9803  ;;
9804
9805rdos*)
9806  dynamic_linker=no
9807  ;;
9808
9809solaris*)
9810  version_type=linux
9811  need_lib_prefix=no
9812  need_version=no
9813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814  soname_spec='${libname}${release}${shared_ext}$major'
9815  shlibpath_var=LD_LIBRARY_PATH
9816  shlibpath_overrides_runpath=yes
9817  hardcode_into_libs=yes
9818  # ldd complains unless libraries are executable
9819  postinstall_cmds='chmod +x $lib'
9820  ;;
9821
9822sunos4*)
9823  version_type=sunos
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9825  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9826  shlibpath_var=LD_LIBRARY_PATH
9827  shlibpath_overrides_runpath=yes
9828  if test "$with_gnu_ld" = yes; then
9829    need_lib_prefix=no
9830  fi
9831  need_version=yes
9832  ;;
9833
9834sysv4 | sysv4.3*)
9835  version_type=linux
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837  soname_spec='${libname}${release}${shared_ext}$major'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  case $host_vendor in
9840    sni)
9841      shlibpath_overrides_runpath=no
9842      need_lib_prefix=no
9843      runpath_var=LD_RUN_PATH
9844      ;;
9845    siemens)
9846      need_lib_prefix=no
9847      ;;
9848    motorola)
9849      need_lib_prefix=no
9850      need_version=no
9851      shlibpath_overrides_runpath=no
9852      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9853      ;;
9854  esac
9855  ;;
9856
9857sysv4*MP*)
9858  if test -d /usr/nec ;then
9859    version_type=linux
9860    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9861    soname_spec='$libname${shared_ext}.$major'
9862    shlibpath_var=LD_LIBRARY_PATH
9863  fi
9864  ;;
9865
9866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9867  version_type=freebsd-elf
9868  need_lib_prefix=no
9869  need_version=no
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  shlibpath_overrides_runpath=yes
9874  hardcode_into_libs=yes
9875  if test "$with_gnu_ld" = yes; then
9876    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9877  else
9878    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9879    case $host_os in
9880      sco3.2v5*)
9881        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9882	;;
9883    esac
9884  fi
9885  sys_lib_dlsearch_path_spec='/usr/lib'
9886  ;;
9887
9888tpf*)
9889  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9890  version_type=linux
9891  need_lib_prefix=no
9892  need_version=no
9893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894  shlibpath_var=LD_LIBRARY_PATH
9895  shlibpath_overrides_runpath=no
9896  hardcode_into_libs=yes
9897  ;;
9898
9899uts4*)
9900  version_type=linux
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  shlibpath_var=LD_LIBRARY_PATH
9904  ;;
9905
9906*)
9907  dynamic_linker=no
9908  ;;
9909esac
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9911$as_echo "$dynamic_linker" >&6; }
9912test "$dynamic_linker" = no && can_build_shared=no
9913
9914variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9915if test "$GCC" = yes; then
9916  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9917fi
9918
9919if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9920  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9921fi
9922if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9923  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9924fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10013$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10014hardcode_action=
10015if test -n "$hardcode_libdir_flag_spec" ||
10016   test -n "$runpath_var" ||
10017   test "X$hardcode_automatic" = "Xyes" ; then
10018
10019  # We can hardcode non-existent directories.
10020  if test "$hardcode_direct" != no &&
10021     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10022     # have to relink, otherwise we might link with an installed library
10023     # when we should be linking with a yet-to-be-installed one
10024     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10025     test "$hardcode_minus_L" != no; then
10026    # Linking always hardcodes the temporary library directory.
10027    hardcode_action=relink
10028  else
10029    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10030    hardcode_action=immediate
10031  fi
10032else
10033  # We cannot hardcode anything, or else we can only hardcode existing
10034  # directories.
10035  hardcode_action=unsupported
10036fi
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10038$as_echo "$hardcode_action" >&6; }
10039
10040if test "$hardcode_action" = relink ||
10041   test "$inherit_rpath" = yes; then
10042  # Fast installation is not supported
10043  enable_fast_install=no
10044elif test "$shlibpath_overrides_runpath" = yes ||
10045     test "$enable_shared" = no; then
10046  # Fast installation is not necessary
10047  enable_fast_install=needless
10048fi
10049
10050
10051
10052
10053
10054
10055  if test "x$enable_dlopen" != xyes; then
10056  enable_dlopen=unknown
10057  enable_dlopen_self=unknown
10058  enable_dlopen_self_static=unknown
10059else
10060  lt_cv_dlopen=no
10061  lt_cv_dlopen_libs=
10062
10063  case $host_os in
10064  beos*)
10065    lt_cv_dlopen="load_add_on"
10066    lt_cv_dlopen_libs=
10067    lt_cv_dlopen_self=yes
10068    ;;
10069
10070  mingw* | pw32* | cegcc*)
10071    lt_cv_dlopen="LoadLibrary"
10072    lt_cv_dlopen_libs=
10073    ;;
10074
10075  cygwin*)
10076    lt_cv_dlopen="dlopen"
10077    lt_cv_dlopen_libs=
10078    ;;
10079
10080  darwin*)
10081  # if libdl is installed we need to link against it
10082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10083$as_echo_n "checking for dlopen in -ldl... " >&6; }
10084if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  ac_check_lib_save_LIBS=$LIBS
10088LIBS="-ldl  $LIBS"
10089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091
10092/* Override any GCC internal prototype to avoid an error.
10093   Use char because int might match the return type of a GCC
10094   builtin and then its argument prototype would still apply.  */
10095#ifdef __cplusplus
10096extern "C"
10097#endif
10098char dlopen ();
10099int
10100main ()
10101{
10102return dlopen ();
10103  ;
10104  return 0;
10105}
10106_ACEOF
10107if ac_fn_c_try_link "$LINENO"; then :
10108  ac_cv_lib_dl_dlopen=yes
10109else
10110  ac_cv_lib_dl_dlopen=no
10111fi
10112rm -f core conftest.err conftest.$ac_objext \
10113    conftest$ac_exeext conftest.$ac_ext
10114LIBS=$ac_check_lib_save_LIBS
10115fi
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10117$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10118if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10119  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10120else
10121
10122    lt_cv_dlopen="dyld"
10123    lt_cv_dlopen_libs=
10124    lt_cv_dlopen_self=yes
10125
10126fi
10127
10128    ;;
10129
10130  *)
10131    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10132if test "x$ac_cv_func_shl_load" = x""yes; then :
10133  lt_cv_dlopen="shl_load"
10134else
10135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10136$as_echo_n "checking for shl_load in -ldld... " >&6; }
10137if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  ac_check_lib_save_LIBS=$LIBS
10141LIBS="-ldld  $LIBS"
10142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h.  */
10144
10145/* Override any GCC internal prototype to avoid an error.
10146   Use char because int might match the return type of a GCC
10147   builtin and then its argument prototype would still apply.  */
10148#ifdef __cplusplus
10149extern "C"
10150#endif
10151char shl_load ();
10152int
10153main ()
10154{
10155return shl_load ();
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160if ac_fn_c_try_link "$LINENO"; then :
10161  ac_cv_lib_dld_shl_load=yes
10162else
10163  ac_cv_lib_dld_shl_load=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext \
10166    conftest$ac_exeext conftest.$ac_ext
10167LIBS=$ac_check_lib_save_LIBS
10168fi
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10170$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10171if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10172  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10173else
10174  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10175if test "x$ac_cv_func_dlopen" = x""yes; then :
10176  lt_cv_dlopen="dlopen"
10177else
10178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10179$as_echo_n "checking for dlopen in -ldl... " >&6; }
10180if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10181  $as_echo_n "(cached) " >&6
10182else
10183  ac_check_lib_save_LIBS=$LIBS
10184LIBS="-ldl  $LIBS"
10185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186/* end confdefs.h.  */
10187
10188/* Override any GCC internal prototype to avoid an error.
10189   Use char because int might match the return type of a GCC
10190   builtin and then its argument prototype would still apply.  */
10191#ifdef __cplusplus
10192extern "C"
10193#endif
10194char dlopen ();
10195int
10196main ()
10197{
10198return dlopen ();
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203if ac_fn_c_try_link "$LINENO"; then :
10204  ac_cv_lib_dl_dlopen=yes
10205else
10206  ac_cv_lib_dl_dlopen=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext \
10209    conftest$ac_exeext conftest.$ac_ext
10210LIBS=$ac_check_lib_save_LIBS
10211fi
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10213$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10214if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10215  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10216else
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10218$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10219if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10220  $as_echo_n "(cached) " >&6
10221else
10222  ac_check_lib_save_LIBS=$LIBS
10223LIBS="-lsvld  $LIBS"
10224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225/* end confdefs.h.  */
10226
10227/* Override any GCC internal prototype to avoid an error.
10228   Use char because int might match the return type of a GCC
10229   builtin and then its argument prototype would still apply.  */
10230#ifdef __cplusplus
10231extern "C"
10232#endif
10233char dlopen ();
10234int
10235main ()
10236{
10237return dlopen ();
10238  ;
10239  return 0;
10240}
10241_ACEOF
10242if ac_fn_c_try_link "$LINENO"; then :
10243  ac_cv_lib_svld_dlopen=yes
10244else
10245  ac_cv_lib_svld_dlopen=no
10246fi
10247rm -f core conftest.err conftest.$ac_objext \
10248    conftest$ac_exeext conftest.$ac_ext
10249LIBS=$ac_check_lib_save_LIBS
10250fi
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10252$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10253if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10254  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10255else
10256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10257$as_echo_n "checking for dld_link in -ldld... " >&6; }
10258if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10259  $as_echo_n "(cached) " >&6
10260else
10261  ac_check_lib_save_LIBS=$LIBS
10262LIBS="-ldld  $LIBS"
10263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265
10266/* Override any GCC internal prototype to avoid an error.
10267   Use char because int might match the return type of a GCC
10268   builtin and then its argument prototype would still apply.  */
10269#ifdef __cplusplus
10270extern "C"
10271#endif
10272char dld_link ();
10273int
10274main ()
10275{
10276return dld_link ();
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281if ac_fn_c_try_link "$LINENO"; then :
10282  ac_cv_lib_dld_dld_link=yes
10283else
10284  ac_cv_lib_dld_dld_link=no
10285fi
10286rm -f core conftest.err conftest.$ac_objext \
10287    conftest$ac_exeext conftest.$ac_ext
10288LIBS=$ac_check_lib_save_LIBS
10289fi
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10291$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10292if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10293  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10294fi
10295
10296
10297fi
10298
10299
10300fi
10301
10302
10303fi
10304
10305
10306fi
10307
10308
10309fi
10310
10311    ;;
10312  esac
10313
10314  if test "x$lt_cv_dlopen" != xno; then
10315    enable_dlopen=yes
10316  else
10317    enable_dlopen=no
10318  fi
10319
10320  case $lt_cv_dlopen in
10321  dlopen)
10322    save_CPPFLAGS="$CPPFLAGS"
10323    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10324
10325    save_LDFLAGS="$LDFLAGS"
10326    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10327
10328    save_LIBS="$LIBS"
10329    LIBS="$lt_cv_dlopen_libs $LIBS"
10330
10331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10332$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10333if test "${lt_cv_dlopen_self+set}" = set; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  	  if test "$cross_compiling" = yes; then :
10337  lt_cv_dlopen_self=cross
10338else
10339  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10340  lt_status=$lt_dlunknown
10341  cat > conftest.$ac_ext <<_LT_EOF
10342#line 10342 "configure"
10343#include "confdefs.h"
10344
10345#if HAVE_DLFCN_H
10346#include <dlfcn.h>
10347#endif
10348
10349#include <stdio.h>
10350
10351#ifdef RTLD_GLOBAL
10352#  define LT_DLGLOBAL		RTLD_GLOBAL
10353#else
10354#  ifdef DL_GLOBAL
10355#    define LT_DLGLOBAL		DL_GLOBAL
10356#  else
10357#    define LT_DLGLOBAL		0
10358#  endif
10359#endif
10360
10361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10362   find out it does not work in some platform. */
10363#ifndef LT_DLLAZY_OR_NOW
10364#  ifdef RTLD_LAZY
10365#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10366#  else
10367#    ifdef DL_LAZY
10368#      define LT_DLLAZY_OR_NOW		DL_LAZY
10369#    else
10370#      ifdef RTLD_NOW
10371#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10372#      else
10373#        ifdef DL_NOW
10374#          define LT_DLLAZY_OR_NOW	DL_NOW
10375#        else
10376#          define LT_DLLAZY_OR_NOW	0
10377#        endif
10378#      endif
10379#    endif
10380#  endif
10381#endif
10382
10383void fnord() { int i=42;}
10384int main ()
10385{
10386  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10387  int status = $lt_dlunknown;
10388
10389  if (self)
10390    {
10391      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10392      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10393      /* dlclose (self); */
10394    }
10395  else
10396    puts (dlerror ());
10397
10398  return status;
10399}
10400_LT_EOF
10401  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10402  (eval $ac_link) 2>&5
10403  ac_status=$?
10404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10406    (./conftest; exit; ) >&5 2>/dev/null
10407    lt_status=$?
10408    case x$lt_status in
10409      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10410      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10411      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10412    esac
10413  else :
10414    # compilation failed
10415    lt_cv_dlopen_self=no
10416  fi
10417fi
10418rm -fr conftest*
10419
10420
10421fi
10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10423$as_echo "$lt_cv_dlopen_self" >&6; }
10424
10425    if test "x$lt_cv_dlopen_self" = xyes; then
10426      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10427      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10428$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10429if test "${lt_cv_dlopen_self_static+set}" = set; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432  	  if test "$cross_compiling" = yes; then :
10433  lt_cv_dlopen_self_static=cross
10434else
10435  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10436  lt_status=$lt_dlunknown
10437  cat > conftest.$ac_ext <<_LT_EOF
10438#line 10438 "configure"
10439#include "confdefs.h"
10440
10441#if HAVE_DLFCN_H
10442#include <dlfcn.h>
10443#endif
10444
10445#include <stdio.h>
10446
10447#ifdef RTLD_GLOBAL
10448#  define LT_DLGLOBAL		RTLD_GLOBAL
10449#else
10450#  ifdef DL_GLOBAL
10451#    define LT_DLGLOBAL		DL_GLOBAL
10452#  else
10453#    define LT_DLGLOBAL		0
10454#  endif
10455#endif
10456
10457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10458   find out it does not work in some platform. */
10459#ifndef LT_DLLAZY_OR_NOW
10460#  ifdef RTLD_LAZY
10461#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10462#  else
10463#    ifdef DL_LAZY
10464#      define LT_DLLAZY_OR_NOW		DL_LAZY
10465#    else
10466#      ifdef RTLD_NOW
10467#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10468#      else
10469#        ifdef DL_NOW
10470#          define LT_DLLAZY_OR_NOW	DL_NOW
10471#        else
10472#          define LT_DLLAZY_OR_NOW	0
10473#        endif
10474#      endif
10475#    endif
10476#  endif
10477#endif
10478
10479void fnord() { int i=42;}
10480int main ()
10481{
10482  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10483  int status = $lt_dlunknown;
10484
10485  if (self)
10486    {
10487      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10488      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10489      /* dlclose (self); */
10490    }
10491  else
10492    puts (dlerror ());
10493
10494  return status;
10495}
10496_LT_EOF
10497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10498  (eval $ac_link) 2>&5
10499  ac_status=$?
10500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10501  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10502    (./conftest; exit; ) >&5 2>/dev/null
10503    lt_status=$?
10504    case x$lt_status in
10505      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10506      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10507      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10508    esac
10509  else :
10510    # compilation failed
10511    lt_cv_dlopen_self_static=no
10512  fi
10513fi
10514rm -fr conftest*
10515
10516
10517fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10519$as_echo "$lt_cv_dlopen_self_static" >&6; }
10520    fi
10521
10522    CPPFLAGS="$save_CPPFLAGS"
10523    LDFLAGS="$save_LDFLAGS"
10524    LIBS="$save_LIBS"
10525    ;;
10526  esac
10527
10528  case $lt_cv_dlopen_self in
10529  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10530  *) enable_dlopen_self=unknown ;;
10531  esac
10532
10533  case $lt_cv_dlopen_self_static in
10534  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10535  *) enable_dlopen_self_static=unknown ;;
10536  esac
10537fi
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555striplib=
10556old_striplib=
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10558$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10559if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10560  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10561  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564else
10565# FIXME - insert some real tests, host_os isn't really good enough
10566  case $host_os in
10567  darwin*)
10568    if test -n "$STRIP" ; then
10569      striplib="$STRIP -x"
10570      old_striplib="$STRIP -S"
10571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572$as_echo "yes" >&6; }
10573    else
10574      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575$as_echo "no" >&6; }
10576    fi
10577    ;;
10578  *)
10579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
10581    ;;
10582  esac
10583fi
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596  # Report which library types will actually be built
10597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10598$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10600$as_echo "$can_build_shared" >&6; }
10601
10602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10603$as_echo_n "checking whether to build shared libraries... " >&6; }
10604  test "$can_build_shared" = "no" && enable_shared=no
10605
10606  # On AIX, shared libraries and static libraries use the same namespace, and
10607  # are all built from PIC.
10608  case $host_os in
10609  aix3*)
10610    test "$enable_shared" = yes && enable_static=no
10611    if test -n "$RANLIB"; then
10612      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10613      postinstall_cmds='$RANLIB $lib'
10614    fi
10615    ;;
10616
10617  aix[4-9]*)
10618    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10619      test "$enable_shared" = yes && enable_static=no
10620    fi
10621    ;;
10622  esac
10623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10624$as_echo "$enable_shared" >&6; }
10625
10626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10627$as_echo_n "checking whether to build static libraries... " >&6; }
10628  # Make sure either enable_shared or enable_static is yes.
10629  test "$enable_shared" = yes || enable_static=yes
10630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10631$as_echo "$enable_static" >&6; }
10632
10633
10634
10635
10636fi
10637ac_ext=c
10638ac_cpp='$CPP $CPPFLAGS'
10639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10641ac_compiler_gnu=$ac_cv_c_compiler_gnu
10642
10643CC="$lt_save_CC"
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657        ac_config_commands="$ac_config_commands libtool"
10658
10659
10660
10661
10662# Only expand once:
10663
10664
10665if test "x$CC" != xcc; then
10666  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10667$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10668else
10669  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10670$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10671fi
10672set dummy $CC; ac_cc=`$as_echo "$2" |
10673		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10674if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10675  $as_echo_n "(cached) " >&6
10676else
10677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h.  */
10679
10680int
10681main ()
10682{
10683
10684  ;
10685  return 0;
10686}
10687_ACEOF
10688# Make sure it works both with $CC and with simple cc.
10689# We do the test twice because some compilers refuse to overwrite an
10690# existing .o file with -o, though they will create one.
10691ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10692rm -f conftest2.*
10693if { { case "(($ac_try" in
10694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695  *) ac_try_echo=$ac_try;;
10696esac
10697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10698$as_echo "$ac_try_echo"; } >&5
10699  (eval "$ac_try") 2>&5
10700  ac_status=$?
10701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10702  test $ac_status = 0; } &&
10703   test -f conftest2.$ac_objext && { { case "(($ac_try" in
10704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705  *) ac_try_echo=$ac_try;;
10706esac
10707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10708$as_echo "$ac_try_echo"; } >&5
10709  (eval "$ac_try") 2>&5
10710  ac_status=$?
10711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10712  test $ac_status = 0; };
10713then
10714  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10715  if test "x$CC" != xcc; then
10716    # Test first that cc exists at all.
10717    if { ac_try='cc -c conftest.$ac_ext >&5'
10718  { { case "(($ac_try" in
10719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720  *) ac_try_echo=$ac_try;;
10721esac
10722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10723$as_echo "$ac_try_echo"; } >&5
10724  (eval "$ac_try") 2>&5
10725  ac_status=$?
10726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10727  test $ac_status = 0; }; }; then
10728      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10729      rm -f conftest2.*
10730      if { { case "(($ac_try" in
10731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732  *) ac_try_echo=$ac_try;;
10733esac
10734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10735$as_echo "$ac_try_echo"; } >&5
10736  (eval "$ac_try") 2>&5
10737  ac_status=$?
10738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10739  test $ac_status = 0; } &&
10740	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742  *) ac_try_echo=$ac_try;;
10743esac
10744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10745$as_echo "$ac_try_echo"; } >&5
10746  (eval "$ac_try") 2>&5
10747  ac_status=$?
10748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749  test $ac_status = 0; };
10750      then
10751	# cc works too.
10752	:
10753      else
10754	# cc exists but doesn't like -o.
10755	eval ac_cv_prog_cc_${ac_cc}_c_o=no
10756      fi
10757    fi
10758  fi
10759else
10760  eval ac_cv_prog_cc_${ac_cc}_c_o=no
10761fi
10762rm -f core conftest*
10763
10764fi
10765if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
10766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767$as_echo "yes" >&6; }
10768else
10769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
10771
10772$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
10773
10774fi
10775
10776# FIXME: we rely on the cache variable name because
10777# there is no other way.
10778set dummy $CC
10779am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10780eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10781if test "$am_t" != yes; then
10782   # Losing compiler, so override with the script.
10783   # FIXME: It is wrong to rewrite CC.
10784   # But if we don't then we get into trouble of one sort or another.
10785   # A longer-term fix would be to have automake use am__CC in this case,
10786   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10787   CC="$am_aux_dir/compile $CC"
10788fi
10789
10790
10791
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10793$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10794if test "${ac_cv_c_const+set}" = set; then :
10795  $as_echo_n "(cached) " >&6
10796else
10797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799
10800int
10801main ()
10802{
10803/* FIXME: Include the comments suggested by Paul. */
10804#ifndef __cplusplus
10805  /* Ultrix mips cc rejects this.  */
10806  typedef int charset[2];
10807  const charset cs;
10808  /* SunOS 4.1.1 cc rejects this.  */
10809  char const *const *pcpcc;
10810  char **ppc;
10811  /* NEC SVR4.0.2 mips cc rejects this.  */
10812  struct point {int x, y;};
10813  static struct point const zero = {0,0};
10814  /* AIX XL C 1.02.0.0 rejects this.
10815     It does not let you subtract one const X* pointer from another in
10816     an arm of an if-expression whose if-part is not a constant
10817     expression */
10818  const char *g = "string";
10819  pcpcc = &g + (g ? g-g : 0);
10820  /* HPUX 7.0 cc rejects these. */
10821  ++pcpcc;
10822  ppc = (char**) pcpcc;
10823  pcpcc = (char const *const *) ppc;
10824  { /* SCO 3.2v4 cc rejects this.  */
10825    char *t;
10826    char const *s = 0 ? (char *) 0 : (char const *) 0;
10827
10828    *t++ = 0;
10829    if (s) return 0;
10830  }
10831  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10832    int x[] = {25, 17};
10833    const int *foo = &x[0];
10834    ++foo;
10835  }
10836  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10837    typedef const int *iptr;
10838    iptr p = 0;
10839    ++p;
10840  }
10841  { /* AIX XL C 1.02.0.0 rejects this saying
10842       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10843    struct s { int j; const int *ap[3]; };
10844    struct s *b; b->j = 5;
10845  }
10846  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10847    const int foo = 10;
10848    if (!foo) return 0;
10849  }
10850  return !cs[0] && !zero.x;
10851#endif
10852
10853  ;
10854  return 0;
10855}
10856_ACEOF
10857if ac_fn_c_try_compile "$LINENO"; then :
10858  ac_cv_c_const=yes
10859else
10860  ac_cv_c_const=no
10861fi
10862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863fi
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10865$as_echo "$ac_cv_c_const" >&6; }
10866if test $ac_cv_c_const = no; then
10867
10868$as_echo "#define const /**/" >>confdefs.h
10869
10870fi
10871
10872
10873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10874$as_echo_n "checking for ANSI C header files... " >&6; }
10875if test "${ac_cv_header_stdc+set}" = set; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880#include <stdlib.h>
10881#include <stdarg.h>
10882#include <string.h>
10883#include <float.h>
10884
10885int
10886main ()
10887{
10888
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_compile "$LINENO"; then :
10894  ac_cv_header_stdc=yes
10895else
10896  ac_cv_header_stdc=no
10897fi
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899
10900if test $ac_cv_header_stdc = yes; then
10901  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904#include <string.h>
10905
10906_ACEOF
10907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10908  $EGREP "memchr" >/dev/null 2>&1; then :
10909
10910else
10911  ac_cv_header_stdc=no
10912fi
10913rm -f conftest*
10914
10915fi
10916
10917if test $ac_cv_header_stdc = yes; then
10918  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920/* end confdefs.h.  */
10921#include <stdlib.h>
10922
10923_ACEOF
10924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10925  $EGREP "free" >/dev/null 2>&1; then :
10926
10927else
10928  ac_cv_header_stdc=no
10929fi
10930rm -f conftest*
10931
10932fi
10933
10934if test $ac_cv_header_stdc = yes; then
10935  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10936  if test "$cross_compiling" = yes; then :
10937  :
10938else
10939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h.  */
10941#include <ctype.h>
10942#include <stdlib.h>
10943#if ((' ' & 0x0FF) == 0x020)
10944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10946#else
10947# define ISLOWER(c) \
10948		   (('a' <= (c) && (c) <= 'i') \
10949		     || ('j' <= (c) && (c) <= 'r') \
10950		     || ('s' <= (c) && (c) <= 'z'))
10951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10952#endif
10953
10954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10955int
10956main ()
10957{
10958  int i;
10959  for (i = 0; i < 256; i++)
10960    if (XOR (islower (i), ISLOWER (i))
10961	|| toupper (i) != TOUPPER (i))
10962      return 2;
10963  return 0;
10964}
10965_ACEOF
10966if ac_fn_c_try_run "$LINENO"; then :
10967
10968else
10969  ac_cv_header_stdc=no
10970fi
10971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10972  conftest.$ac_objext conftest.beam conftest.$ac_ext
10973fi
10974
10975fi
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10978$as_echo "$ac_cv_header_stdc" >&6; }
10979if test $ac_cv_header_stdc = yes; then
10980
10981$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10982
10983fi
10984
10985for ac_header in limits.h unistd.h
10986do :
10987  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10988ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10989eval as_val=\$$as_ac_Header
10990   if test "x$as_val" = x""yes; then :
10991  cat >>confdefs.h <<_ACEOF
10992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993_ACEOF
10994
10995fi
10996
10997done
10998
10999for ac_header in getopt.h
11000do :
11001  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11002if test "x$ac_cv_header_getopt_h" = x""yes; then :
11003  cat >>confdefs.h <<_ACEOF
11004#define HAVE_GETOPT_H 1
11005_ACEOF
11006
11007fi
11008
11009done
11010
11011
11012
11013
11014# The cast to long int works around a bug in the HP C Compiler
11015# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11016# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11017# This bug is HP SR number 8606223364.
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11019$as_echo_n "checking size of int... " >&6; }
11020if test "${ac_cv_sizeof_int+set}" = set; then :
11021  $as_echo_n "(cached) " >&6
11022else
11023  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11024
11025else
11026  if test "$ac_cv_type_int" = yes; then
11027     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11029{ as_fn_set_status 77
11030as_fn_error "cannot compute sizeof (int)
11031See \`config.log' for more details." "$LINENO" 5; }; }
11032   else
11033     ac_cv_sizeof_int=0
11034   fi
11035fi
11036
11037fi
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11039$as_echo "$ac_cv_sizeof_int" >&6; }
11040
11041
11042
11043cat >>confdefs.h <<_ACEOF
11044#define SIZEOF_INT $ac_cv_sizeof_int
11045_ACEOF
11046
11047
11048# The cast to long int works around a bug in the HP C Compiler
11049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11051# This bug is HP SR number 8606223364.
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11053$as_echo_n "checking size of long int... " >&6; }
11054if test "${ac_cv_sizeof_long_int+set}" = set; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
11058
11059else
11060  if test "$ac_cv_type_long_int" = yes; then
11061     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11063{ as_fn_set_status 77
11064as_fn_error "cannot compute sizeof (long int)
11065See \`config.log' for more details." "$LINENO" 5; }; }
11066   else
11067     ac_cv_sizeof_long_int=0
11068   fi
11069fi
11070
11071fi
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11073$as_echo "$ac_cv_sizeof_long_int" >&6; }
11074
11075
11076
11077cat >>confdefs.h <<_ACEOF
11078#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11079_ACEOF
11080
11081
11082# The cast to long int works around a bug in the HP C Compiler
11083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11085# This bug is HP SR number 8606223364.
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11087$as_echo_n "checking size of long long int... " >&6; }
11088if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11089  $as_echo_n "(cached) " >&6
11090else
11091  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
11092
11093else
11094  if test "$ac_cv_type_long_long_int" = yes; then
11095     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11097{ as_fn_set_status 77
11098as_fn_error "cannot compute sizeof (long long int)
11099See \`config.log' for more details." "$LINENO" 5; }; }
11100   else
11101     ac_cv_sizeof_long_long_int=0
11102   fi
11103fi
11104
11105fi
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11107$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11108
11109
11110
11111cat >>confdefs.h <<_ACEOF
11112#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11113_ACEOF
11114
11115
11116
11117
11118
11119
11120
11121for type in long_long_int long_int int; do
11122    case "$type" in
11123	int)
11124	    bits=`expr $ac_cv_sizeof_int \* 8`
11125	    defs="#define LINEAR_VALUE_IS_INT"
11126	    ;;
11127	long_int)
11128	    bits=`expr $ac_cv_sizeof_long_int \* 8`
11129	    defs="#define LINEAR_VALUE_IS_LONG
11130#define LINEAR_VALUE_PROTECT_MULTIPLY"
11131	    ;;
11132	long_long_int)
11133	    bits=`expr $ac_cv_sizeof_long_long_int \* 8`
11134	    defs="#define LINEAR_VALUE_IS_LONGLONG
11135#define LINEAR_VALUE_PROTECT_MULTIPLY
11136#define LINEAR_VALUE_ASSUME_SOFTWARE_IDIV"
11137	    ;;
11138    esac
11139    case "$bits" in
11140	32)
11141	    polylib32_defs=$defs
11142	    ;;
11143	64)
11144	    polylib64_defs=$defs
11145	    ;;
11146	128)
11147	    polylib128_defs=$defs
11148	    ;;
11149    esac
11150done
11151
11152
11153
11154
11155
11156# Check whether --enable-int-lib was given.
11157if test "${enable_int_lib+set}" = set; then :
11158  enableval=$enable_int_lib; lib_type=int
11159	 bits=`expr $ac_cv_sizeof_int \* 8`
11160	 polylibs="libpolylib$bits.la $polylibs"
11161	 ALL_BITS="$bits $ALL_BITS"
11162
11163fi
11164
11165# Check whether --enable-longint-lib was given.
11166if test "${enable_longint_lib+set}" = set; then :
11167  enableval=$enable_longint_lib; lib_type=longint
11168	 bits=`expr $ac_cv_sizeof_long_int \* 8`
11169	 polylibs="libpolylib$bits.la $polylibs"
11170	 ALL_BITS="$bits $ALL_BITS"
11171
11172fi
11173
11174# Check whether --enable-longlongint-lib was given.
11175if test "${enable_longlongint_lib+set}" = set; then :
11176  enableval=$enable_longlongint_lib; lib_type=longlongint
11177	 bits=`expr $ac_cv_sizeof_long_long_int \* 8`
11178	 polylibs="libpolylib$bits.la $polylibs"
11179	 ALL_BITS="$bits $ALL_BITS"
11180
11181fi
11182
11183
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GMP" >&5
11185$as_echo_n "checking whether to use GMP... " >&6; }
11186
11187# Check whether --with-libgmp was given.
11188if test "${with_libgmp+set}" = set; then :
11189  withval=$with_libgmp; gmp_package=$withval
11190else
11191  gmp_package=no
11192fi
11193
11194if test "x$gmp_package" = "xno"; then
11195	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
11197else
11198	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199$as_echo "yes" >&6; }
11200	if test "x$gmp_package" != "xyes"; then
11201	    GMP_DIR=$gmp_package
11202	    if test ! -d "$GMP_DIR"; then
11203	    	as_fn_error "Directory given for GMP Distribution is not a directory" "$LINENO" 5
11204	    fi
11205	    CPPFLAGS="-I$GMP_DIR/include $CPPFLAGS"
11206	    LDFLAGS="-L$GMP_DIR/lib $LDFLAGS"
11207	fi
11208	ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
11209if test "x$ac_cv_header_gmp_h" = x""yes; then :
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
11211$as_echo_n "checking for main in -lgmp... " >&6; }
11212if test "${ac_cv_lib_gmp_main+set}" = set; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215  ac_check_lib_save_LIBS=$LIBS
11216LIBS="-lgmp  $LIBS"
11217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h.  */
11219
11220
11221int
11222main ()
11223{
11224return main ();
11225  ;
11226  return 0;
11227}
11228_ACEOF
11229if ac_fn_c_try_link "$LINENO"; then :
11230  ac_cv_lib_gmp_main=yes
11231else
11232  ac_cv_lib_gmp_main=no
11233fi
11234rm -f core conftest.err conftest.$ac_objext \
11235    conftest$ac_exeext conftest.$ac_ext
11236LIBS=$ac_check_lib_save_LIBS
11237fi
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
11239$as_echo "$ac_cv_lib_gmp_main" >&6; }
11240if test "x$ac_cv_lib_gmp_main" = x""yes; then :
11241  poly_cv_gmpfatal="no"
11242else
11243  poly_cv_gmpfatal="yes"
11244fi
11245
11246else
11247  poly_cv_gmpfatal="yes"
11248fi
11249
11250
11251	if test "$poly_cv_gmpfatal" = "yes"; then
11252		as_fn_error "GMP not found" "$LINENO" 5
11253	else
11254		ac_fn_c_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h>
11255"
11256if test "x$ac_cv_have_decl_mp_get_memory_functions" = x""yes; then :
11257  ac_have_decl=1
11258else
11259  ac_have_decl=0
11260fi
11261
11262cat >>confdefs.h <<_ACEOF
11263#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl
11264_ACEOF
11265if test $ac_have_decl = 1; then :
11266
11267else
11268
11269			case " $LIBOBJS " in
11270  *" mp_get_memory_functions.$ac_objext "* ) ;;
11271  *) LIBOBJS="$LIBOBJS mp_get_memory_functions.$ac_objext"
11272 ;;
11273esac
11274
11275
11276fi
11277
11278	fi
11279
11280	lib_type=gmp
11281	BITS=`expr gmp`
11282	LIBS="-lgmp $LIBS"
11283	polylibs="libpolylib$BITS.la $polylibs"
11284	ALL_BITS="$BITS $ALL_BITS"
11285fi
11286
11287if test "X$lib_type" = "X"; then
11288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what the LONG representation is" >&5
11289$as_echo_n "checking what the LONG representation is... " >&6; }
11290    if test "$ac_cv_sizeof_long_long_int" -gt "$ac_cv_sizeof_int"; then
11291	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: long long int" >&5
11292$as_echo "long long int" >&6; }
11293	lib_type=longlongint
11294	bits=`expr $ac_cv_sizeof_long_long_int \* 8`
11295	polylibs="libpolylib$bits.la $polylibs"
11296	ALL_BITS="$bits $ALL_BITS"
11297    elif test "$ac_cv_sizeof_long_int" -gt "$ac_cv_sizeof_int"; then
11298	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: long int" >&5
11299$as_echo "long int" >&6; }
11300	lib_type=longint
11301	bits=`expr $ac_cv_sizeof_long_int \* 8`
11302	polylibs="libpolylib$bits.la $polylibs"
11303	ALL_BITS="$bits $ALL_BITS"
11304    else
11305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: NONE!" >&5
11306$as_echo "NONE!" >&6; }
11307	lib_type=int
11308	bits=`expr $ac_cv_sizeof_int \* 8`
11309	polylibs="libpolylib$bits.la $polylibs"
11310	ALL_BITS="$bits $ALL_BITS"
11311    fi
11312fi
11313
11314case "$lib_type" in
11315	int)
11316	    BITS=`expr $ac_cv_sizeof_int \* 8`
11317	    ;;
11318	longint)
11319	    BITS=`expr $ac_cv_sizeof_long_int \* 8`
11320	    ;;
11321	longlongint)
11322	    BITS=`expr $ac_cv_sizeof_long_long_int \* 8`
11323	    ;;
11324esac
11325
11326
11327
11328polylib="libpolylib$BITS.la"
11329
11330
11331
11332for pl_bit in $ALL_BITS ; do
11333	multi_bin_programs="$multi_bin_programs \$(multi_bin_programs_${pl_bit})"
11334	multi_noinst_programs="$multi_noinst_programs \$(no_inst_programs_${pl_bit})"
11335done
11336
11337# Check whether --enable-extra-suffix was given.
11338if test "${enable_extra_suffix+set}" = set; then :
11339  enableval=$enable_extra_suffix;  if test "$enableval" = yes; then
11340		program_transform_name="s/\$\$/$BITS/;$program_transform_name"
11341    fi
11342fi
11343
11344
11345
11346# Check whether --with-doxygen was given.
11347if test "${with_doxygen+set}" = set; then :
11348  withval=$with_doxygen; doxygen_package=$withval
11349fi
11350
11351
11352# Extract the first word of "doxygen", so it can be a program name with args.
11353set dummy doxygen; ac_word=$2
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355$as_echo_n "checking for $ac_word... " >&6; }
11356if test "${ac_cv_prog_DOXYGEN+set}" = set; then :
11357  $as_echo_n "(cached) " >&6
11358else
11359  if test -n "$DOXYGEN"; then
11360  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11361else
11362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363as_dummy="$PATH:$doxygen_package/bin:/usr/local/bin"
11364for as_dir in $as_dummy
11365do
11366  IFS=$as_save_IFS
11367  test -z "$as_dir" && as_dir=.
11368    for ac_exec_ext in '' $ac_executable_extensions; do
11369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370    ac_cv_prog_DOXYGEN="doxygen"
11371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372    break 2
11373  fi
11374done
11375  done
11376IFS=$as_save_IFS
11377
11378  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="test"
11379fi
11380fi
11381DOXYGEN=$ac_cv_prog_DOXYGEN
11382if test -n "$DOXYGEN"; then
11383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11384$as_echo "$DOXYGEN" >&6; }
11385else
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
11388fi
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399PACKAGE_NAME=polylib$BITS
11400
11401# we need the expanded forms...
11402test "x$prefix" = xNONE && prefix=$ac_default_prefix
11403test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11404
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
11406$as_echo_n "checking our pkgconfig libname... " >&6; }
11407test ".$ax_create_pkgconfig_libname" != "." || \
11408ax_create_pkgconfig_libname="${PACKAGE_NAME}"
11409test ".$ax_create_pkgconfig_libname" != "." || \
11410ax_create_pkgconfig_libname="$PACKAGE"
11411ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
11412ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
11414$as_echo "$ax_create_pkgconfig_libname" >&6; }
11415
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
11417$as_echo_n "checking our pkgconfig version... " >&6; }
11418test ".$ax_create_pkgconfig_version" != "." || \
11419ax_create_pkgconfig_version="${PACKAGE_VERSION}"
11420test ".$ax_create_pkgconfig_version" != "." || \
11421ax_create_pkgconfig_version="$VERSION"
11422ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
11423ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
11425$as_echo "$ax_create_pkgconfig_version" >&6; }
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
11428$as_echo_n "checking our pkgconfig_libdir... " >&6; }
11429test ".$pkgconfig_libdir" = "." && \
11430pkgconfig_libdir='${libdir}/pkgconfig'
11431ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
11432ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
11433ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
11435$as_echo "$pkgconfig_libdir" >&6; }
11436test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
11438$as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
11439
11440
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
11442$as_echo_n "checking our pkgconfig_libfile... " >&6; }
11443test ".$pkgconfig_libfile" != "." || \
11444pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
11445ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
11446ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
11448$as_echo "$pkgconfig_libfile" >&6; }
11449test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
11451$as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
11452
11453
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
11455$as_echo_n "checking our package / suffix... " >&6; }
11456ax_create_pkgconfig_suffix="$program_suffix"
11457test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
11459$as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
11460
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
11462$as_echo_n "checking our pkgconfig description... " >&6; }
11463ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
11464test ".$ax_create_pkgconfig_description" != "." || \
11465ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
11466ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
11467ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
11469$as_echo "$ax_create_pkgconfig_description" >&6; }
11470
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
11472$as_echo_n "checking our pkgconfig requires... " >&6; }
11473ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
11474ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
11475ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
11477$as_echo "$ax_create_pkgconfig_requires" >&6; }
11478
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
11480$as_echo_n "checking our pkgconfig ext libs... " >&6; }
11481ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
11482test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
11483ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
11484ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
11485ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
11487$as_echo "$ax_create_pkgconfig_libs" >&6; }
11488
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
11490$as_echo_n "checking our pkgconfig cppflags... " >&6; }
11491ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
11492ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
11493ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
11495$as_echo "$ax_create_pkgconfig_cppflags" >&6; }
11496
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
11498$as_echo_n "checking our pkgconfig ldflags... " >&6; }
11499ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
11500ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
11501ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
11503$as_echo "$ax_create_pkgconfig_ldflags" >&6; }
11504
11505test ".$ax_create_pkgconfig_generate" != "." || \
11506ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
11507ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
11508ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
11509test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
11511$as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
11512
11513if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
11514ax_create_pkgconfig_src_libdir=`pwd`
11515ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
11516$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11517	 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
11518	 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
11519	 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
11520$as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
11521    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11522	    s//\1/
11523	    q
11524	  }
11525	  /^X\(\/\/\)[^/].*/{
11526	    s//\1/
11527	    q
11528	  }
11529	  /^X\(\/\/\)$/{
11530	    s//\1/
11531	    q
11532	  }
11533	  /^X\(\/\).*/{
11534	    s//\1/
11535	    q
11536	  }
11537	  s/.*/./; q'`
11538test ! -d $ax_create_pkgconfig_src_libdir/src || \
11539ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
11540case ".$objdir" in
11541*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
11543$as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
11544fi
11545
11546if test ".$ax_create_pkgconfig_src_headers" = "." ; then
11547ax_create_pkgconfig_src_headers=`pwd`
11548v="$ac_top_srcdir" ;
11549test ".$v" != "." || v="$ax_spec_dir"
11550test ".$v" != "." || v="$srcdir"
11551case "$v" in /*) PKG_CONFIG_src_headers="" ;; esac
11552ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
11553$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11554	 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
11555	 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
11556	 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
11557$as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
11558    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11559	    s//\1/
11560	    q
11561	  }
11562	  /^X\(\/\/\)[^/].*/{
11563	    s//\1/
11564	    q
11565	  }
11566	  /^X\(\/\/\)$/{
11567	    s//\1/
11568	    q
11569	  }
11570	  /^X\(\/\).*/{
11571	    s//\1/
11572	    q
11573	  }
11574	  s/.*/./; q'`
11575test ! -d $ax_create_pkgconfig_src_headers/include || \
11576ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
11578$as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
11579fi
11580
11581
11582ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
11583
11584
11585ac_config_headers="$ac_config_headers config.h"
11586
11587ac_config_files="$ac_config_files Makefile include/Makefile include/polylib/Makefile include/polylib/polylib.h Test/Makefile Test/Zpolytest/Makefile Test/ehrhart/Makefile Test/ehrhart_union/Makefile Test/ranking/Makefile Test/general/Makefile Test/pp/Makefile polylib.doxygen"
11588
11589cat >confcache <<\_ACEOF
11590# This file is a shell script that caches the results of configure
11591# tests run on this system so they can be shared between configure
11592# scripts and configure runs, see configure's option --config-cache.
11593# It is not useful on other systems.  If it contains results you don't
11594# want to keep, you may remove or edit it.
11595#
11596# config.status only pays attention to the cache file if you give it
11597# the --recheck option to rerun configure.
11598#
11599# `ac_cv_env_foo' variables (set or unset) will be overridden when
11600# loading this file, other *unset* `ac_cv_foo' will be assigned the
11601# following values.
11602
11603_ACEOF
11604
11605# The following way of writing the cache mishandles newlines in values,
11606# but we know of no workaround that is simple, portable, and efficient.
11607# So, we kill variables containing newlines.
11608# Ultrix sh set writes to stderr and can't be redirected directly,
11609# and sets the high bit in the cache file unless we assign to the vars.
11610(
11611  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11612    eval ac_val=\$$ac_var
11613    case $ac_val in #(
11614    *${as_nl}*)
11615      case $ac_var in #(
11616      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11618      esac
11619      case $ac_var in #(
11620      _ | IFS | as_nl) ;; #(
11621      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11622      *) { eval $ac_var=; unset $ac_var;} ;;
11623      esac ;;
11624    esac
11625  done
11626
11627  (set) 2>&1 |
11628    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11629    *${as_nl}ac_space=\ *)
11630      # `set' does not quote correctly, so add quotes: double-quote
11631      # substitution turns \\\\ into \\, and sed turns \\ into \.
11632      sed -n \
11633	"s/'/'\\\\''/g;
11634	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11635      ;; #(
11636    *)
11637      # `set' quotes correctly as required by POSIX, so do not add quotes.
11638      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11639      ;;
11640    esac |
11641    sort
11642) |
11643  sed '
11644     /^ac_cv_env_/b end
11645     t clear
11646     :clear
11647     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11648     t end
11649     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11650     :end' >>confcache
11651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11652  if test -w "$cache_file"; then
11653    test "x$cache_file" != "x/dev/null" &&
11654      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11655$as_echo "$as_me: updating cache $cache_file" >&6;}
11656    cat confcache >$cache_file
11657  else
11658    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11659$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11660  fi
11661fi
11662rm -f confcache
11663
11664test "x$prefix" = xNONE && prefix=$ac_default_prefix
11665# Let make expand exec_prefix.
11666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11667
11668DEFS=-DHAVE_CONFIG_H
11669
11670ac_libobjs=
11671ac_ltlibobjs=
11672for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11673  # 1. Remove the extension, and $U if already installed.
11674  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11675  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11676  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11677  #    will be set to the directory where LIBOBJS objects are built.
11678  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11679  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11680done
11681LIBOBJS=$ac_libobjs
11682
11683LTLIBOBJS=$ac_ltlibobjs
11684
11685
11686 if test -n "$EXEEXT"; then
11687  am__EXEEXT_TRUE=
11688  am__EXEEXT_FALSE='#'
11689else
11690  am__EXEEXT_TRUE='#'
11691  am__EXEEXT_FALSE=
11692fi
11693
11694if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11695  as_fn_error "conditional \"AMDEP\" was never defined.
11696Usually this means the macro was only invoked conditionally." "$LINENO" 5
11697fi
11698if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11699  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11700Usually this means the macro was only invoked conditionally." "$LINENO" 5
11701fi
11702
11703: ${CONFIG_STATUS=./config.status}
11704ac_write_fail=0
11705ac_clean_files_save=$ac_clean_files
11706ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11708$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11709as_write_fail=0
11710cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11711#! $SHELL
11712# Generated by $as_me.
11713# Run this file to recreate the current configuration.
11714# Compiler output produced by configure, useful for debugging
11715# configure, is in config.log if it exists.
11716
11717debug=false
11718ac_cs_recheck=false
11719ac_cs_silent=false
11720
11721SHELL=\${CONFIG_SHELL-$SHELL}
11722export SHELL
11723_ASEOF
11724cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11725## -------------------- ##
11726## M4sh Initialization. ##
11727## -------------------- ##
11728
11729# Be more Bourne compatible
11730DUALCASE=1; export DUALCASE # for MKS sh
11731if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11732  emulate sh
11733  NULLCMD=:
11734  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11735  # is contrary to our usage.  Disable this feature.
11736  alias -g '${1+"$@"}'='"$@"'
11737  setopt NO_GLOB_SUBST
11738else
11739  case `(set -o) 2>/dev/null` in #(
11740  *posix*) :
11741    set -o posix ;; #(
11742  *) :
11743     ;;
11744esac
11745fi
11746
11747
11748as_nl='
11749'
11750export as_nl
11751# Printing a long string crashes Solaris 7 /usr/bin/printf.
11752as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11754as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11755# Prefer a ksh shell builtin over an external printf program on Solaris,
11756# but without wasting forks for bash or zsh.
11757if test -z "$BASH_VERSION$ZSH_VERSION" \
11758    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11759  as_echo='print -r --'
11760  as_echo_n='print -rn --'
11761elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11762  as_echo='printf %s\n'
11763  as_echo_n='printf %s'
11764else
11765  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11766    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11767    as_echo_n='/usr/ucb/echo -n'
11768  else
11769    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11770    as_echo_n_body='eval
11771      arg=$1;
11772      case $arg in #(
11773      *"$as_nl"*)
11774	expr "X$arg" : "X\\(.*\\)$as_nl";
11775	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11776      esac;
11777      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11778    '
11779    export as_echo_n_body
11780    as_echo_n='sh -c $as_echo_n_body as_echo'
11781  fi
11782  export as_echo_body
11783  as_echo='sh -c $as_echo_body as_echo'
11784fi
11785
11786# The user is always right.
11787if test "${PATH_SEPARATOR+set}" != set; then
11788  PATH_SEPARATOR=:
11789  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11790    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11791      PATH_SEPARATOR=';'
11792  }
11793fi
11794
11795
11796# IFS
11797# We need space, tab and new line, in precisely that order.  Quoting is
11798# there to prevent editors from complaining about space-tab.
11799# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11800# splitting by setting IFS to empty value.)
11801IFS=" ""	$as_nl"
11802
11803# Find who we are.  Look in the path if we contain no directory separator.
11804case $0 in #((
11805  *[\\/]* ) as_myself=$0 ;;
11806  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
11808do
11809  IFS=$as_save_IFS
11810  test -z "$as_dir" && as_dir=.
11811    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11812  done
11813IFS=$as_save_IFS
11814
11815     ;;
11816esac
11817# We did not find ourselves, most probably we were run as `sh COMMAND'
11818# in which case we are not to be found in the path.
11819if test "x$as_myself" = x; then
11820  as_myself=$0
11821fi
11822if test ! -f "$as_myself"; then
11823  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11824  exit 1
11825fi
11826
11827# Unset variables that we do not need and which cause bugs (e.g. in
11828# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11829# suppresses any "Segmentation fault" message there.  '((' could
11830# trigger a bug in pdksh 5.2.14.
11831for as_var in BASH_ENV ENV MAIL MAILPATH
11832do eval test x\${$as_var+set} = xset \
11833  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11834done
11835PS1='$ '
11836PS2='> '
11837PS4='+ '
11838
11839# NLS nuisances.
11840LC_ALL=C
11841export LC_ALL
11842LANGUAGE=C
11843export LANGUAGE
11844
11845# CDPATH.
11846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11847
11848
11849# as_fn_error ERROR [LINENO LOG_FD]
11850# ---------------------------------
11851# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11852# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11853# script with status $?, using 1 if that was 0.
11854as_fn_error ()
11855{
11856  as_status=$?; test $as_status -eq 0 && as_status=1
11857  if test "$3"; then
11858    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11859    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11860  fi
11861  $as_echo "$as_me: error: $1" >&2
11862  as_fn_exit $as_status
11863} # as_fn_error
11864
11865
11866# as_fn_set_status STATUS
11867# -----------------------
11868# Set $? to STATUS, without forking.
11869as_fn_set_status ()
11870{
11871  return $1
11872} # as_fn_set_status
11873
11874# as_fn_exit STATUS
11875# -----------------
11876# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11877as_fn_exit ()
11878{
11879  set +e
11880  as_fn_set_status $1
11881  exit $1
11882} # as_fn_exit
11883
11884# as_fn_unset VAR
11885# ---------------
11886# Portably unset VAR.
11887as_fn_unset ()
11888{
11889  { eval $1=; unset $1;}
11890}
11891as_unset=as_fn_unset
11892# as_fn_append VAR VALUE
11893# ----------------------
11894# Append the text in VALUE to the end of the definition contained in VAR. Take
11895# advantage of any shell optimizations that allow amortized linear growth over
11896# repeated appends, instead of the typical quadratic growth present in naive
11897# implementations.
11898if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11899  eval 'as_fn_append ()
11900  {
11901    eval $1+=\$2
11902  }'
11903else
11904  as_fn_append ()
11905  {
11906    eval $1=\$$1\$2
11907  }
11908fi # as_fn_append
11909
11910# as_fn_arith ARG...
11911# ------------------
11912# Perform arithmetic evaluation on the ARGs, and store the result in the
11913# global $as_val. Take advantage of shells that can avoid forks. The arguments
11914# must be portable across $(()) and expr.
11915if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11916  eval 'as_fn_arith ()
11917  {
11918    as_val=$(( $* ))
11919  }'
11920else
11921  as_fn_arith ()
11922  {
11923    as_val=`expr "$@" || test $? -eq 1`
11924  }
11925fi # as_fn_arith
11926
11927
11928if expr a : '\(a\)' >/dev/null 2>&1 &&
11929   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11930  as_expr=expr
11931else
11932  as_expr=false
11933fi
11934
11935if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11936  as_basename=basename
11937else
11938  as_basename=false
11939fi
11940
11941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11942  as_dirname=dirname
11943else
11944  as_dirname=false
11945fi
11946
11947as_me=`$as_basename -- "$0" ||
11948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11949	 X"$0" : 'X\(//\)$' \| \
11950	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11951$as_echo X/"$0" |
11952    sed '/^.*\/\([^/][^/]*\)\/*$/{
11953	    s//\1/
11954	    q
11955	  }
11956	  /^X\/\(\/\/\)$/{
11957	    s//\1/
11958	    q
11959	  }
11960	  /^X\/\(\/\).*/{
11961	    s//\1/
11962	    q
11963	  }
11964	  s/.*/./; q'`
11965
11966# Avoid depending upon Character Ranges.
11967as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11968as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11969as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11970as_cr_digits='0123456789'
11971as_cr_alnum=$as_cr_Letters$as_cr_digits
11972
11973ECHO_C= ECHO_N= ECHO_T=
11974case `echo -n x` in #(((((
11975-n*)
11976  case `echo 'xy\c'` in
11977  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11978  xy)  ECHO_C='\c';;
11979  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11980       ECHO_T='	';;
11981  esac;;
11982*)
11983  ECHO_N='-n';;
11984esac
11985
11986rm -f conf$$ conf$$.exe conf$$.file
11987if test -d conf$$.dir; then
11988  rm -f conf$$.dir/conf$$.file
11989else
11990  rm -f conf$$.dir
11991  mkdir conf$$.dir 2>/dev/null
11992fi
11993if (echo >conf$$.file) 2>/dev/null; then
11994  if ln -s conf$$.file conf$$ 2>/dev/null; then
11995    as_ln_s='ln -s'
11996    # ... but there are two gotchas:
11997    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11998    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11999    # In both cases, we have to default to `cp -p'.
12000    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12001      as_ln_s='cp -p'
12002  elif ln conf$$.file conf$$ 2>/dev/null; then
12003    as_ln_s=ln
12004  else
12005    as_ln_s='cp -p'
12006  fi
12007else
12008  as_ln_s='cp -p'
12009fi
12010rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12011rmdir conf$$.dir 2>/dev/null
12012
12013
12014# as_fn_mkdir_p
12015# -------------
12016# Create "$as_dir" as a directory, including parents if necessary.
12017as_fn_mkdir_p ()
12018{
12019
12020  case $as_dir in #(
12021  -*) as_dir=./$as_dir;;
12022  esac
12023  test -d "$as_dir" || eval $as_mkdir_p || {
12024    as_dirs=
12025    while :; do
12026      case $as_dir in #(
12027      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12028      *) as_qdir=$as_dir;;
12029      esac
12030      as_dirs="'$as_qdir' $as_dirs"
12031      as_dir=`$as_dirname -- "$as_dir" ||
12032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033	 X"$as_dir" : 'X\(//\)[^/]' \| \
12034	 X"$as_dir" : 'X\(//\)$' \| \
12035	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12036$as_echo X"$as_dir" |
12037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12038	    s//\1/
12039	    q
12040	  }
12041	  /^X\(\/\/\)[^/].*/{
12042	    s//\1/
12043	    q
12044	  }
12045	  /^X\(\/\/\)$/{
12046	    s//\1/
12047	    q
12048	  }
12049	  /^X\(\/\).*/{
12050	    s//\1/
12051	    q
12052	  }
12053	  s/.*/./; q'`
12054      test -d "$as_dir" && break
12055    done
12056    test -z "$as_dirs" || eval "mkdir $as_dirs"
12057  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12058
12059
12060} # as_fn_mkdir_p
12061if mkdir -p . 2>/dev/null; then
12062  as_mkdir_p='mkdir -p "$as_dir"'
12063else
12064  test -d ./-p && rmdir ./-p
12065  as_mkdir_p=false
12066fi
12067
12068if test -x / >/dev/null 2>&1; then
12069  as_test_x='test -x'
12070else
12071  if ls -dL / >/dev/null 2>&1; then
12072    as_ls_L_option=L
12073  else
12074    as_ls_L_option=
12075  fi
12076  as_test_x='
12077    eval sh -c '\''
12078      if test -d "$1"; then
12079	test -d "$1/.";
12080      else
12081	case $1 in #(
12082	-*)set "./$1";;
12083	esac;
12084	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12085	???[sx]*):;;*)false;;esac;fi
12086    '\'' sh
12087  '
12088fi
12089as_executable_p=$as_test_x
12090
12091# Sed expression to map a string onto a valid CPP name.
12092as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12093
12094# Sed expression to map a string onto a valid variable name.
12095as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12096
12097
12098exec 6>&1
12099## ----------------------------------- ##
12100## Main body of $CONFIG_STATUS script. ##
12101## ----------------------------------- ##
12102_ASEOF
12103test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12104
12105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12106# Save the log message, to keep $0 and so on meaningful, and to
12107# report actual input values of CONFIG_FILES etc. instead of their
12108# values after options handling.
12109ac_log="
12110This file was extended by polylib $as_me 5.22.5, which was
12111generated by GNU Autoconf 2.65.  Invocation command line was
12112
12113  CONFIG_FILES    = $CONFIG_FILES
12114  CONFIG_HEADERS  = $CONFIG_HEADERS
12115  CONFIG_LINKS    = $CONFIG_LINKS
12116  CONFIG_COMMANDS = $CONFIG_COMMANDS
12117  $ $0 $@
12118
12119on `(hostname || uname -n) 2>/dev/null | sed 1q`
12120"
12121
12122_ACEOF
12123
12124case $ac_config_files in *"
12125"*) set x $ac_config_files; shift; ac_config_files=$*;;
12126esac
12127
12128case $ac_config_headers in *"
12129"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12130esac
12131
12132
12133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12134# Files that config.status was made for.
12135config_files="$ac_config_files"
12136config_headers="$ac_config_headers"
12137config_commands="$ac_config_commands"
12138
12139_ACEOF
12140
12141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12142ac_cs_usage="\
12143\`$as_me' instantiates files and other configuration actions
12144from templates according to the current configuration.  Unless the files
12145and actions are specified as TAGs, all are instantiated by default.
12146
12147Usage: $0 [OPTION]... [TAG]...
12148
12149  -h, --help       print this help, then exit
12150  -V, --version    print version number and configuration settings, then exit
12151      --config     print configuration, then exit
12152  -q, --quiet, --silent
12153                   do not print progress messages
12154  -d, --debug      don't remove temporary files
12155      --recheck    update $as_me by reconfiguring in the same conditions
12156      --file=FILE[:TEMPLATE]
12157                   instantiate the configuration file FILE
12158      --header=FILE[:TEMPLATE]
12159                   instantiate the configuration header FILE
12160
12161Configuration files:
12162$config_files
12163
12164Configuration headers:
12165$config_headers
12166
12167Configuration commands:
12168$config_commands
12169
12170Report bugs to the package provider."
12171
12172_ACEOF
12173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12175ac_cs_version="\\
12176polylib config.status 5.22.5
12177configured by $0, generated by GNU Autoconf 2.65,
12178  with options \\"\$ac_cs_config\\"
12179
12180Copyright (C) 2009 Free Software Foundation, Inc.
12181This config.status script is free software; the Free Software Foundation
12182gives unlimited permission to copy, distribute and modify it."
12183
12184ac_pwd='$ac_pwd'
12185srcdir='$srcdir'
12186INSTALL='$INSTALL'
12187MKDIR_P='$MKDIR_P'
12188AWK='$AWK'
12189test -n "\$AWK" || AWK=awk
12190_ACEOF
12191
12192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12193# The default lists apply if the user does not specify any file.
12194ac_need_defaults=:
12195while test $# != 0
12196do
12197  case $1 in
12198  --*=*)
12199    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12200    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12201    ac_shift=:
12202    ;;
12203  *)
12204    ac_option=$1
12205    ac_optarg=$2
12206    ac_shift=shift
12207    ;;
12208  esac
12209
12210  case $ac_option in
12211  # Handling of the options.
12212  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12213    ac_cs_recheck=: ;;
12214  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12215    $as_echo "$ac_cs_version"; exit ;;
12216  --config | --confi | --conf | --con | --co | --c )
12217    $as_echo "$ac_cs_config"; exit ;;
12218  --debug | --debu | --deb | --de | --d | -d )
12219    debug=: ;;
12220  --file | --fil | --fi | --f )
12221    $ac_shift
12222    case $ac_optarg in
12223    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12224    esac
12225    as_fn_append CONFIG_FILES " '$ac_optarg'"
12226    ac_need_defaults=false;;
12227  --header | --heade | --head | --hea )
12228    $ac_shift
12229    case $ac_optarg in
12230    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12231    esac
12232    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12233    ac_need_defaults=false;;
12234  --he | --h)
12235    # Conflict between --help and --header
12236    as_fn_error "ambiguous option: \`$1'
12237Try \`$0 --help' for more information.";;
12238  --help | --hel | -h )
12239    $as_echo "$ac_cs_usage"; exit ;;
12240  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12241  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12242    ac_cs_silent=: ;;
12243
12244  # This is an error.
12245  -*) as_fn_error "unrecognized option: \`$1'
12246Try \`$0 --help' for more information." ;;
12247
12248  *) as_fn_append ac_config_targets " $1"
12249     ac_need_defaults=false ;;
12250
12251  esac
12252  shift
12253done
12254
12255ac_configure_extra_args=
12256
12257if $ac_cs_silent; then
12258  exec 6>/dev/null
12259  ac_configure_extra_args="$ac_configure_extra_args --silent"
12260fi
12261
12262_ACEOF
12263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12264if \$ac_cs_recheck; then
12265  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12266  shift
12267  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12268  CONFIG_SHELL='$SHELL'
12269  export CONFIG_SHELL
12270  exec "\$@"
12271fi
12272
12273_ACEOF
12274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12275exec 5>>config.log
12276{
12277  echo
12278  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12279## Running $as_me. ##
12280_ASBOX
12281  $as_echo "$ac_log"
12282} >&5
12283
12284_ACEOF
12285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12286#
12287# INIT-COMMANDS
12288#
12289AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12290
12291
12292# The HP-UX ksh and POSIX shell print the target directory to stdout
12293# if CDPATH is set.
12294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12295
12296sed_quote_subst='$sed_quote_subst'
12297double_quote_subst='$double_quote_subst'
12298delay_variable_subst='$delay_variable_subst'
12299macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12300macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12301enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12302enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12303pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12304enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12305host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12306host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12307host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12308build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12309build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12310build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12311SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12312Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12313GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12314EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12315FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12316LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12317NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12318LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12319max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12320ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12321exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12322lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12323lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12324lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12325reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12326reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12328deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12329file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12330AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12331AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12332STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12333RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12334old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12335old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12336old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12338CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12339compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12340GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12341lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12343lt_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"`'
12344lt_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"`'
12345objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12346SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12347ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12348MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12349lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12350lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12351lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12352lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12353lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12354need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12355DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12356NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12357LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12358OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12359OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12360libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12361shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12362extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12363archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12364enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12365export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12366whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12367compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12368old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12369old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12370archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12371archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12372module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12373module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12374with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12375allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12376no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12377hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12378hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12379hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12380hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12381hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12382hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12383hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12384hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12385inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12386link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12387fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12388always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12389export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12390exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12391include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12392prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12393file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12394variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12395need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12396need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12397version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12398runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12399shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12400shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12401libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12402library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12403soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12404postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12405postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12406finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12407finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12408hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12409sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12410sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12411hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12412enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12413enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12414enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12415old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12416striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12417
12418LTCC='$LTCC'
12419LTCFLAGS='$LTCFLAGS'
12420compiler='$compiler_DEFAULT'
12421
12422# Quote evaled strings.
12423for var in SED \
12424GREP \
12425EGREP \
12426FGREP \
12427LD \
12428NM \
12429LN_S \
12430lt_SP2NL \
12431lt_NL2SP \
12432reload_flag \
12433OBJDUMP \
12434deplibs_check_method \
12435file_magic_cmd \
12436AR \
12437AR_FLAGS \
12438STRIP \
12439RANLIB \
12440CC \
12441CFLAGS \
12442compiler \
12443lt_cv_sys_global_symbol_pipe \
12444lt_cv_sys_global_symbol_to_cdecl \
12445lt_cv_sys_global_symbol_to_c_name_address \
12446lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12447SHELL \
12448ECHO \
12449lt_prog_compiler_no_builtin_flag \
12450lt_prog_compiler_wl \
12451lt_prog_compiler_pic \
12452lt_prog_compiler_static \
12453lt_cv_prog_compiler_c_o \
12454need_locks \
12455DSYMUTIL \
12456NMEDIT \
12457LIPO \
12458OTOOL \
12459OTOOL64 \
12460shrext_cmds \
12461export_dynamic_flag_spec \
12462whole_archive_flag_spec \
12463compiler_needs_object \
12464with_gnu_ld \
12465allow_undefined_flag \
12466no_undefined_flag \
12467hardcode_libdir_flag_spec \
12468hardcode_libdir_flag_spec_ld \
12469hardcode_libdir_separator \
12470fix_srcfile_path \
12471exclude_expsyms \
12472include_expsyms \
12473file_list_spec \
12474variables_saved_for_relink \
12475libname_spec \
12476library_names_spec \
12477soname_spec \
12478finish_eval \
12479old_striplib \
12480striplib; do
12481    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12482    *[\\\\\\\`\\"\\\$]*)
12483      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12484      ;;
12485    *)
12486      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12487      ;;
12488    esac
12489done
12490
12491# Double-quote double-evaled strings.
12492for var in reload_cmds \
12493old_postinstall_cmds \
12494old_postuninstall_cmds \
12495old_archive_cmds \
12496extract_expsyms_cmds \
12497old_archive_from_new_cmds \
12498old_archive_from_expsyms_cmds \
12499archive_cmds \
12500archive_expsym_cmds \
12501module_cmds \
12502module_expsym_cmds \
12503export_symbols_cmds \
12504prelink_cmds \
12505postinstall_cmds \
12506postuninstall_cmds \
12507finish_cmds \
12508sys_lib_search_path_spec \
12509sys_lib_dlsearch_path_spec; do
12510    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12511    *[\\\\\\\`\\"\\\$]*)
12512      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12513      ;;
12514    *)
12515      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12516      ;;
12517    esac
12518done
12519
12520# Fix-up fallback echo if it was mangled by the above quoting rules.
12521case \$lt_ECHO in
12522*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12523  ;;
12524esac
12525
12526ac_aux_dir='$ac_aux_dir'
12527xsi_shell='$xsi_shell'
12528lt_shell_append='$lt_shell_append'
12529
12530# See if we are running on zsh, and set the options which allow our
12531# commands through without removal of \ escapes INIT.
12532if test -n "\${ZSH_VERSION+set}" ; then
12533   setopt NO_GLOB_SUBST
12534fi
12535
12536
12537    PACKAGE='$PACKAGE'
12538    VERSION='$VERSION'
12539    TIMESTAMP='$TIMESTAMP'
12540    RM='$RM'
12541    ofile='$ofile'
12542
12543
12544
12545
12546ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
12547pkgconfig_prefix='$prefix'
12548pkgconfig_execprefix='$exec_prefix'
12549pkgconfig_bindir='$bindir'
12550pkgconfig_libdir='$libdir'
12551pkgconfig_includedir='$includedir'
12552pkgconfig_datarootdir='$datarootdir'
12553pkgconfig_datadir='$datadir'
12554pkgconfig_sysconfdir='$sysconfdir'
12555pkgconfig_suffix='$ax_create_pkgconfig_suffix'
12556pkgconfig_package='$PACKAGE_NAME'
12557pkgconfig_libname='$ax_create_pkgconfig_libname'
12558pkgconfig_description='$ax_create_pkgconfig_description'
12559pkgconfig_version='$ax_create_pkgconfig_version'
12560pkgconfig_requires='$ax_create_pkgconfig_requires'
12561pkgconfig_libs='$ax_create_pkgconfig_libs'
12562pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
12563pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
12564pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
12565pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
12566
12567
12568_ACEOF
12569
12570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12571
12572# Handling of arguments.
12573for ac_config_target in $ac_config_targets
12574do
12575  case $ac_config_target in
12576    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12577    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12578    "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
12579    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12580    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12581    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12582    "include/polylib/Makefile") CONFIG_FILES="$CONFIG_FILES include/polylib/Makefile" ;;
12583    "include/polylib/polylib.h") CONFIG_FILES="$CONFIG_FILES include/polylib/polylib.h" ;;
12584    "Test/Makefile") CONFIG_FILES="$CONFIG_FILES Test/Makefile" ;;
12585    "Test/Zpolytest/Makefile") CONFIG_FILES="$CONFIG_FILES Test/Zpolytest/Makefile" ;;
12586    "Test/ehrhart/Makefile") CONFIG_FILES="$CONFIG_FILES Test/ehrhart/Makefile" ;;
12587    "Test/ehrhart_union/Makefile") CONFIG_FILES="$CONFIG_FILES Test/ehrhart_union/Makefile" ;;
12588    "Test/ranking/Makefile") CONFIG_FILES="$CONFIG_FILES Test/ranking/Makefile" ;;
12589    "Test/general/Makefile") CONFIG_FILES="$CONFIG_FILES Test/general/Makefile" ;;
12590    "Test/pp/Makefile") CONFIG_FILES="$CONFIG_FILES Test/pp/Makefile" ;;
12591    "polylib.doxygen") CONFIG_FILES="$CONFIG_FILES polylib.doxygen" ;;
12592
12593  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12594  esac
12595done
12596
12597
12598# If the user did not use the arguments to specify the items to instantiate,
12599# then the envvar interface is used.  Set only those that are not.
12600# We use the long form for the default assignment because of an extremely
12601# bizarre bug on SunOS 4.1.3.
12602if $ac_need_defaults; then
12603  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12604  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12605  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12606fi
12607
12608# Have a temporary directory for convenience.  Make it in the build tree
12609# simply because there is no reason against having it here, and in addition,
12610# creating and moving files from /tmp can sometimes cause problems.
12611# Hook for its removal unless debugging.
12612# Note that there is a small window in which the directory will not be cleaned:
12613# after its creation but before its name has been assigned to `$tmp'.
12614$debug ||
12615{
12616  tmp=
12617  trap 'exit_status=$?
12618  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12619' 0
12620  trap 'as_fn_exit 1' 1 2 13 15
12621}
12622# Create a (secure) tmp directory for tmp files.
12623
12624{
12625  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12626  test -n "$tmp" && test -d "$tmp"
12627}  ||
12628{
12629  tmp=./conf$$-$RANDOM
12630  (umask 077 && mkdir "$tmp")
12631} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12632
12633# Set up the scripts for CONFIG_FILES section.
12634# No need to generate them if there are no CONFIG_FILES.
12635# This happens for instance with `./config.status config.h'.
12636if test -n "$CONFIG_FILES"; then
12637
12638
12639ac_cr=`echo X | tr X '\015'`
12640# On cygwin, bash can eat \r inside `` if the user requested igncr.
12641# But we know of no other shell where ac_cr would be empty at this
12642# point, so we can use a bashism as a fallback.
12643if test "x$ac_cr" = x; then
12644  eval ac_cr=\$\'\\r\'
12645fi
12646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12648  ac_cs_awk_cr='\r'
12649else
12650  ac_cs_awk_cr=$ac_cr
12651fi
12652
12653echo 'BEGIN {' >"$tmp/subs1.awk" &&
12654_ACEOF
12655
12656
12657{
12658  echo "cat >conf$$subs.awk <<_ACEOF" &&
12659  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12660  echo "_ACEOF"
12661} >conf$$subs.sh ||
12662  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12663ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12664ac_delim='%!_!# '
12665for ac_last_try in false false false false false :; do
12666  . ./conf$$subs.sh ||
12667    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12668
12669  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12670  if test $ac_delim_n = $ac_delim_num; then
12671    break
12672  elif $ac_last_try; then
12673    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12674  else
12675    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12676  fi
12677done
12678rm -f conf$$subs.sh
12679
12680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12681cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12682_ACEOF
12683sed -n '
12684h
12685s/^/S["/; s/!.*/"]=/
12686p
12687g
12688s/^[^!]*!//
12689:repl
12690t repl
12691s/'"$ac_delim"'$//
12692t delim
12693:nl
12694h
12695s/\(.\{148\}\)..*/\1/
12696t more1
12697s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12698p
12699n
12700b repl
12701:more1
12702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12703p
12704g
12705s/.\{148\}//
12706t nl
12707:delim
12708h
12709s/\(.\{148\}\)..*/\1/
12710t more2
12711s/["\\]/\\&/g; s/^/"/; s/$/"/
12712p
12713b
12714:more2
12715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12716p
12717g
12718s/.\{148\}//
12719t delim
12720' <conf$$subs.awk | sed '
12721/^[^""]/{
12722  N
12723  s/\n//
12724}
12725' >>$CONFIG_STATUS || ac_write_fail=1
12726rm -f conf$$subs.awk
12727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12728_ACAWK
12729cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12730  for (key in S) S_is_set[key] = 1
12731  FS = ""
12732
12733}
12734{
12735  line = $ 0
12736  nfields = split(line, field, "@")
12737  substed = 0
12738  len = length(field[1])
12739  for (i = 2; i < nfields; i++) {
12740    key = field[i]
12741    keylen = length(key)
12742    if (S_is_set[key]) {
12743      value = S[key]
12744      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12745      len += length(value) + length(field[++i])
12746      substed = 1
12747    } else
12748      len += 1 + keylen
12749  }
12750
12751  print line
12752}
12753
12754_ACAWK
12755_ACEOF
12756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12758  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12759else
12760  cat
12761fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12762  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12763_ACEOF
12764
12765# VPATH may cause trouble with some makes, so we remove $(srcdir),
12766# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12767# trailing colons and then remove the whole line if VPATH becomes empty
12768# (actually we leave an empty line to preserve line numbers).
12769if test "x$srcdir" = x.; then
12770  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12771s/:*\$(srcdir):*/:/
12772s/:*\${srcdir}:*/:/
12773s/:*@srcdir@:*/:/
12774s/^\([^=]*=[	 ]*\):*/\1/
12775s/:*$//
12776s/^[^=]*=[	 ]*$//
12777}'
12778fi
12779
12780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781fi # test -n "$CONFIG_FILES"
12782
12783# Set up the scripts for CONFIG_HEADERS section.
12784# No need to generate them if there are no CONFIG_HEADERS.
12785# This happens for instance with `./config.status Makefile'.
12786if test -n "$CONFIG_HEADERS"; then
12787cat >"$tmp/defines.awk" <<\_ACAWK ||
12788BEGIN {
12789_ACEOF
12790
12791# Transform confdefs.h into an awk script `defines.awk', embedded as
12792# here-document in config.status, that substitutes the proper values into
12793# config.h.in to produce config.h.
12794
12795# Create a delimiter string that does not exist in confdefs.h, to ease
12796# handling of long lines.
12797ac_delim='%!_!# '
12798for ac_last_try in false false :; do
12799  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12800  if test -z "$ac_t"; then
12801    break
12802  elif $ac_last_try; then
12803    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12804  else
12805    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12806  fi
12807done
12808
12809# For the awk script, D is an array of macro values keyed by name,
12810# likewise P contains macro parameters if any.  Preserve backslash
12811# newline sequences.
12812
12813ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12814sed -n '
12815s/.\{148\}/&'"$ac_delim"'/g
12816t rset
12817:rset
12818s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12819t def
12820d
12821:def
12822s/\\$//
12823t bsnl
12824s/["\\]/\\&/g
12825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12826D["\1"]=" \3"/p
12827s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12828d
12829:bsnl
12830s/["\\]/\\&/g
12831s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12832D["\1"]=" \3\\\\\\n"\\/p
12833t cont
12834s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12835t cont
12836d
12837:cont
12838n
12839s/.\{148\}/&'"$ac_delim"'/g
12840t clear
12841:clear
12842s/\\$//
12843t bsnlc
12844s/["\\]/\\&/g; s/^/"/; s/$/"/p
12845d
12846:bsnlc
12847s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12848b cont
12849' <confdefs.h | sed '
12850s/'"$ac_delim"'/"\\\
12851"/g' >>$CONFIG_STATUS || ac_write_fail=1
12852
12853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12854  for (key in D) D_is_set[key] = 1
12855  FS = ""
12856}
12857/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12858  line = \$ 0
12859  split(line, arg, " ")
12860  if (arg[1] == "#") {
12861    defundef = arg[2]
12862    mac1 = arg[3]
12863  } else {
12864    defundef = substr(arg[1], 2)
12865    mac1 = arg[2]
12866  }
12867  split(mac1, mac2, "(") #)
12868  macro = mac2[1]
12869  prefix = substr(line, 1, index(line, defundef) - 1)
12870  if (D_is_set[macro]) {
12871    # Preserve the white space surrounding the "#".
12872    print prefix "define", macro P[macro] D[macro]
12873    next
12874  } else {
12875    # Replace #undef with comments.  This is necessary, for example,
12876    # in the case of _POSIX_SOURCE, which is predefined and required
12877    # on some systems where configure will not decide to define it.
12878    if (defundef == "undef") {
12879      print "/*", prefix defundef, macro, "*/"
12880      next
12881    }
12882  }
12883}
12884{ print }
12885_ACAWK
12886_ACEOF
12887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12888  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12889fi # test -n "$CONFIG_HEADERS"
12890
12891
12892eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12893shift
12894for ac_tag
12895do
12896  case $ac_tag in
12897  :[FHLC]) ac_mode=$ac_tag; continue;;
12898  esac
12899  case $ac_mode$ac_tag in
12900  :[FHL]*:*);;
12901  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12902  :[FH]-) ac_tag=-:-;;
12903  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12904  esac
12905  ac_save_IFS=$IFS
12906  IFS=:
12907  set x $ac_tag
12908  IFS=$ac_save_IFS
12909  shift
12910  ac_file=$1
12911  shift
12912
12913  case $ac_mode in
12914  :L) ac_source=$1;;
12915  :[FH])
12916    ac_file_inputs=
12917    for ac_f
12918    do
12919      case $ac_f in
12920      -) ac_f="$tmp/stdin";;
12921      *) # Look for the file first in the build tree, then in the source tree
12922	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12923	 # because $ac_f cannot contain `:'.
12924	 test -f "$ac_f" ||
12925	   case $ac_f in
12926	   [\\/$]*) false;;
12927	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12928	   esac ||
12929	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12930      esac
12931      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12932      as_fn_append ac_file_inputs " '$ac_f'"
12933    done
12934
12935    # Let's still pretend it is `configure' which instantiates (i.e., don't
12936    # use $as_me), people would be surprised to read:
12937    #    /* config.h.  Generated by config.status.  */
12938    configure_input='Generated from '`
12939	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12940	`' by configure.'
12941    if test x"$ac_file" != x-; then
12942      configure_input="$ac_file.  $configure_input"
12943      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12944$as_echo "$as_me: creating $ac_file" >&6;}
12945    fi
12946    # Neutralize special characters interpreted by sed in replacement strings.
12947    case $configure_input in #(
12948    *\&* | *\|* | *\\* )
12949       ac_sed_conf_input=`$as_echo "$configure_input" |
12950       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12951    *) ac_sed_conf_input=$configure_input;;
12952    esac
12953
12954    case $ac_tag in
12955    *:-:* | *:-) cat >"$tmp/stdin" \
12956      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12957    esac
12958    ;;
12959  esac
12960
12961  ac_dir=`$as_dirname -- "$ac_file" ||
12962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12963	 X"$ac_file" : 'X\(//\)[^/]' \| \
12964	 X"$ac_file" : 'X\(//\)$' \| \
12965	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12966$as_echo X"$ac_file" |
12967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12968	    s//\1/
12969	    q
12970	  }
12971	  /^X\(\/\/\)[^/].*/{
12972	    s//\1/
12973	    q
12974	  }
12975	  /^X\(\/\/\)$/{
12976	    s//\1/
12977	    q
12978	  }
12979	  /^X\(\/\).*/{
12980	    s//\1/
12981	    q
12982	  }
12983	  s/.*/./; q'`
12984  as_dir="$ac_dir"; as_fn_mkdir_p
12985  ac_builddir=.
12986
12987case "$ac_dir" in
12988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12989*)
12990  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12991  # A ".." for each directory in $ac_dir_suffix.
12992  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12993  case $ac_top_builddir_sub in
12994  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12995  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12996  esac ;;
12997esac
12998ac_abs_top_builddir=$ac_pwd
12999ac_abs_builddir=$ac_pwd$ac_dir_suffix
13000# for backward compatibility:
13001ac_top_builddir=$ac_top_build_prefix
13002
13003case $srcdir in
13004  .)  # We are building in place.
13005    ac_srcdir=.
13006    ac_top_srcdir=$ac_top_builddir_sub
13007    ac_abs_top_srcdir=$ac_pwd ;;
13008  [\\/]* | ?:[\\/]* )  # Absolute name.
13009    ac_srcdir=$srcdir$ac_dir_suffix;
13010    ac_top_srcdir=$srcdir
13011    ac_abs_top_srcdir=$srcdir ;;
13012  *) # Relative name.
13013    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13014    ac_top_srcdir=$ac_top_build_prefix$srcdir
13015    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13016esac
13017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13018
13019
13020  case $ac_mode in
13021  :F)
13022  #
13023  # CONFIG_FILE
13024  #
13025
13026  case $INSTALL in
13027  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13028  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13029  esac
13030  ac_MKDIR_P=$MKDIR_P
13031  case $MKDIR_P in
13032  [\\/$]* | ?:[\\/]* ) ;;
13033  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13034  esac
13035_ACEOF
13036
13037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13038# If the template does not know about datarootdir, expand it.
13039# FIXME: This hack should be removed a few years after 2.60.
13040ac_datarootdir_hack=; ac_datarootdir_seen=
13041ac_sed_dataroot='
13042/datarootdir/ {
13043  p
13044  q
13045}
13046/@datadir@/p
13047/@docdir@/p
13048/@infodir@/p
13049/@localedir@/p
13050/@mandir@/p'
13051case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13052*datarootdir*) ac_datarootdir_seen=yes;;
13053*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13054  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13055$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13056_ACEOF
13057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13058  ac_datarootdir_hack='
13059  s&@datadir@&$datadir&g
13060  s&@docdir@&$docdir&g
13061  s&@infodir@&$infodir&g
13062  s&@localedir@&$localedir&g
13063  s&@mandir@&$mandir&g
13064  s&\\\${datarootdir}&$datarootdir&g' ;;
13065esac
13066_ACEOF
13067
13068# Neutralize VPATH when `$srcdir' = `.'.
13069# Shell code in configure.ac might set extrasub.
13070# FIXME: do we really want to maintain this feature?
13071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072ac_sed_extra="$ac_vpsub
13073$extrasub
13074_ACEOF
13075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13076:t
13077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13078s|@configure_input@|$ac_sed_conf_input|;t t
13079s&@top_builddir@&$ac_top_builddir_sub&;t t
13080s&@top_build_prefix@&$ac_top_build_prefix&;t t
13081s&@srcdir@&$ac_srcdir&;t t
13082s&@abs_srcdir@&$ac_abs_srcdir&;t t
13083s&@top_srcdir@&$ac_top_srcdir&;t t
13084s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13085s&@builddir@&$ac_builddir&;t t
13086s&@abs_builddir@&$ac_abs_builddir&;t t
13087s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13088s&@INSTALL@&$ac_INSTALL&;t t
13089s&@MKDIR_P@&$ac_MKDIR_P&;t t
13090$ac_datarootdir_hack
13091"
13092eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13093  || as_fn_error "could not create $ac_file" "$LINENO" 5
13094
13095test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13096  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13097  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13098  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13099which seems to be undefined.  Please make sure it is defined." >&5
13100$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13101which seems to be undefined.  Please make sure it is defined." >&2;}
13102
13103  rm -f "$tmp/stdin"
13104  case $ac_file in
13105  -) cat "$tmp/out" && rm -f "$tmp/out";;
13106  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13107  esac \
13108  || as_fn_error "could not create $ac_file" "$LINENO" 5
13109 ;;
13110  :H)
13111  #
13112  # CONFIG_HEADER
13113  #
13114  if test x"$ac_file" != x-; then
13115    {
13116      $as_echo "/* $configure_input  */" \
13117      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13118    } >"$tmp/config.h" \
13119      || as_fn_error "could not create $ac_file" "$LINENO" 5
13120    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13121      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13122$as_echo "$as_me: $ac_file is unchanged" >&6;}
13123    else
13124      rm -f "$ac_file"
13125      mv "$tmp/config.h" "$ac_file" \
13126	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13127    fi
13128  else
13129    $as_echo "/* $configure_input  */" \
13130      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13131      || as_fn_error "could not create -" "$LINENO" 5
13132  fi
13133# Compute "$ac_file"'s index in $config_headers.
13134_am_arg="$ac_file"
13135_am_stamp_count=1
13136for _am_header in $config_headers :; do
13137  case $_am_header in
13138    $_am_arg | $_am_arg:* )
13139      break ;;
13140    * )
13141      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13142  esac
13143done
13144echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13145$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13146	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13147	 X"$_am_arg" : 'X\(//\)$' \| \
13148	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13149$as_echo X"$_am_arg" |
13150    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13151	    s//\1/
13152	    q
13153	  }
13154	  /^X\(\/\/\)[^/].*/{
13155	    s//\1/
13156	    q
13157	  }
13158	  /^X\(\/\/\)$/{
13159	    s//\1/
13160	    q
13161	  }
13162	  /^X\(\/\).*/{
13163	    s//\1/
13164	    q
13165	  }
13166	  s/.*/./; q'`/stamp-h$_am_stamp_count
13167 ;;
13168
13169  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13170$as_echo "$as_me: executing $ac_file commands" >&6;}
13171 ;;
13172  esac
13173
13174
13175  case $ac_file$ac_mode in
13176    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13177  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13178  # are listed without --file.  Let's play safe and only enable the eval
13179  # if we detect the quoting.
13180  case $CONFIG_FILES in
13181  *\'*) eval set x "$CONFIG_FILES" ;;
13182  *)   set x $CONFIG_FILES ;;
13183  esac
13184  shift
13185  for mf
13186  do
13187    # Strip MF so we end up with the name of the file.
13188    mf=`echo "$mf" | sed -e 's/:.*$//'`
13189    # Check whether this is an Automake generated Makefile or not.
13190    # We used to match only the files named `Makefile.in', but
13191    # some people rename them; so instead we look at the file content.
13192    # Grep'ing the first line is not enough: some people post-process
13193    # each Makefile.in and add a new line on top of each file to say so.
13194    # Grep'ing the whole file is not good either: AIX grep has a line
13195    # limit of 2048, but all sed's we know have understand at least 4000.
13196    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13197      dirpart=`$as_dirname -- "$mf" ||
13198$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199	 X"$mf" : 'X\(//\)[^/]' \| \
13200	 X"$mf" : 'X\(//\)$' \| \
13201	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13202$as_echo X"$mf" |
13203    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13204	    s//\1/
13205	    q
13206	  }
13207	  /^X\(\/\/\)[^/].*/{
13208	    s//\1/
13209	    q
13210	  }
13211	  /^X\(\/\/\)$/{
13212	    s//\1/
13213	    q
13214	  }
13215	  /^X\(\/\).*/{
13216	    s//\1/
13217	    q
13218	  }
13219	  s/.*/./; q'`
13220    else
13221      continue
13222    fi
13223    # Extract the definition of DEPDIR, am__include, and am__quote
13224    # from the Makefile without running `make'.
13225    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13226    test -z "$DEPDIR" && continue
13227    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13228    test -z "am__include" && continue
13229    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13230    # When using ansi2knr, U may be empty or an underscore; expand it
13231    U=`sed -n 's/^U = //p' < "$mf"`
13232    # Find all dependency output files, they are included files with
13233    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13234    # simplest approach to changing $(DEPDIR) to its actual value in the
13235    # expansion.
13236    for file in `sed -n "
13237      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13238	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13239      # Make sure the directory exists.
13240      test -f "$dirpart/$file" && continue
13241      fdir=`$as_dirname -- "$file" ||
13242$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13243	 X"$file" : 'X\(//\)[^/]' \| \
13244	 X"$file" : 'X\(//\)$' \| \
13245	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13246$as_echo X"$file" |
13247    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13248	    s//\1/
13249	    q
13250	  }
13251	  /^X\(\/\/\)[^/].*/{
13252	    s//\1/
13253	    q
13254	  }
13255	  /^X\(\/\/\)$/{
13256	    s//\1/
13257	    q
13258	  }
13259	  /^X\(\/\).*/{
13260	    s//\1/
13261	    q
13262	  }
13263	  s/.*/./; q'`
13264      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13265      # echo "creating $dirpart/$file"
13266      echo '# dummy' > "$dirpart/$file"
13267    done
13268  done
13269}
13270 ;;
13271    "libtool":C)
13272
13273    # See if we are running on zsh, and set the options which allow our
13274    # commands through without removal of \ escapes.
13275    if test -n "${ZSH_VERSION+set}" ; then
13276      setopt NO_GLOB_SUBST
13277    fi
13278
13279    cfgfile="${ofile}T"
13280    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13281    $RM "$cfgfile"
13282
13283    cat <<_LT_EOF >> "$cfgfile"
13284#! $SHELL
13285
13286# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13287# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13288# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13289# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13290#
13291#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13292#                 2006, 2007, 2008 Free Software Foundation, Inc.
13293#   Written by Gordon Matzigkeit, 1996
13294#
13295#   This file is part of GNU Libtool.
13296#
13297# GNU Libtool is free software; you can redistribute it and/or
13298# modify it under the terms of the GNU General Public License as
13299# published by the Free Software Foundation; either version 2 of
13300# the License, or (at your option) any later version.
13301#
13302# As a special exception to the GNU General Public License,
13303# if you distribute this file as part of a program or library that
13304# is built using GNU Libtool, you may include this file under the
13305# same distribution terms that you use for the rest of that program.
13306#
13307# GNU Libtool is distributed in the hope that it will be useful,
13308# but WITHOUT ANY WARRANTY; without even the implied warranty of
13309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13310# GNU General Public License for more details.
13311#
13312# You should have received a copy of the GNU General Public License
13313# along with GNU Libtool; see the file COPYING.  If not, a copy
13314# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13315# obtained by writing to the Free Software Foundation, Inc.,
13316# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13317
13318
13319# The names of the tagged configurations supported by this script.
13320available_tags=""
13321
13322# ### BEGIN LIBTOOL CONFIG
13323
13324# Which release of libtool.m4 was used?
13325macro_version=$macro_version
13326macro_revision=$macro_revision
13327
13328# Whether or not to build shared libraries.
13329build_libtool_libs=$enable_shared
13330
13331# Whether or not to build static libraries.
13332build_old_libs=$enable_static
13333
13334# What type of objects to build.
13335pic_mode=$pic_mode
13336
13337# Whether or not to optimize for fast installation.
13338fast_install=$enable_fast_install
13339
13340# The host system.
13341host_alias=$host_alias
13342host=$host
13343host_os=$host_os
13344
13345# The build system.
13346build_alias=$build_alias
13347build=$build
13348build_os=$build_os
13349
13350# A sed program that does not truncate output.
13351SED=$lt_SED
13352
13353# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13354Xsed="\$SED -e 1s/^X//"
13355
13356# A grep program that handles long lines.
13357GREP=$lt_GREP
13358
13359# An ERE matcher.
13360EGREP=$lt_EGREP
13361
13362# A literal string matcher.
13363FGREP=$lt_FGREP
13364
13365# A BSD- or MS-compatible name lister.
13366NM=$lt_NM
13367
13368# Whether we need soft or hard links.
13369LN_S=$lt_LN_S
13370
13371# What is the maximum length of a command?
13372max_cmd_len=$max_cmd_len
13373
13374# Object file suffix (normally "o").
13375objext=$ac_objext
13376
13377# Executable file suffix (normally "").
13378exeext=$exeext
13379
13380# whether the shell understands "unset".
13381lt_unset=$lt_unset
13382
13383# turn spaces into newlines.
13384SP2NL=$lt_lt_SP2NL
13385
13386# turn newlines into spaces.
13387NL2SP=$lt_lt_NL2SP
13388
13389# How to create reloadable object files.
13390reload_flag=$lt_reload_flag
13391reload_cmds=$lt_reload_cmds
13392
13393# An object symbol dumper.
13394OBJDUMP=$lt_OBJDUMP
13395
13396# Method to check whether dependent libraries are shared objects.
13397deplibs_check_method=$lt_deplibs_check_method
13398
13399# Command to use when deplibs_check_method == "file_magic".
13400file_magic_cmd=$lt_file_magic_cmd
13401
13402# The archiver.
13403AR=$lt_AR
13404AR_FLAGS=$lt_AR_FLAGS
13405
13406# A symbol stripping program.
13407STRIP=$lt_STRIP
13408
13409# Commands used to install an old-style archive.
13410RANLIB=$lt_RANLIB
13411old_postinstall_cmds=$lt_old_postinstall_cmds
13412old_postuninstall_cmds=$lt_old_postuninstall_cmds
13413
13414# A C compiler.
13415LTCC=$lt_CC
13416
13417# LTCC compiler flags.
13418LTCFLAGS=$lt_CFLAGS
13419
13420# Take the output of nm and produce a listing of raw symbols and C names.
13421global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13422
13423# Transform the output of nm in a proper C declaration.
13424global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13425
13426# Transform the output of nm in a C name address pair.
13427global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13428
13429# Transform the output of nm in a C name address pair when lib prefix is needed.
13430global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13431
13432# The name of the directory that contains temporary libtool files.
13433objdir=$objdir
13434
13435# Shell to use when invoking shell scripts.
13436SHELL=$lt_SHELL
13437
13438# An echo program that does not interpret backslashes.
13439ECHO=$lt_ECHO
13440
13441# Used to examine libraries when file_magic_cmd begins with "file".
13442MAGIC_CMD=$MAGIC_CMD
13443
13444# Must we lock files when doing compilation?
13445need_locks=$lt_need_locks
13446
13447# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13448DSYMUTIL=$lt_DSYMUTIL
13449
13450# Tool to change global to local symbols on Mac OS X.
13451NMEDIT=$lt_NMEDIT
13452
13453# Tool to manipulate fat objects and archives on Mac OS X.
13454LIPO=$lt_LIPO
13455
13456# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13457OTOOL=$lt_OTOOL
13458
13459# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13460OTOOL64=$lt_OTOOL64
13461
13462# Old archive suffix (normally "a").
13463libext=$libext
13464
13465# Shared library suffix (normally ".so").
13466shrext_cmds=$lt_shrext_cmds
13467
13468# The commands to extract the exported symbol list from a shared archive.
13469extract_expsyms_cmds=$lt_extract_expsyms_cmds
13470
13471# Variables whose values should be saved in libtool wrapper scripts and
13472# restored at link time.
13473variables_saved_for_relink=$lt_variables_saved_for_relink
13474
13475# Do we need the "lib" prefix for modules?
13476need_lib_prefix=$need_lib_prefix
13477
13478# Do we need a version for libraries?
13479need_version=$need_version
13480
13481# Library versioning type.
13482version_type=$version_type
13483
13484# Shared library runtime path variable.
13485runpath_var=$runpath_var
13486
13487# Shared library path variable.
13488shlibpath_var=$shlibpath_var
13489
13490# Is shlibpath searched before the hard-coded library search path?
13491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13492
13493# Format of library name prefix.
13494libname_spec=$lt_libname_spec
13495
13496# List of archive names.  First name is the real one, the rest are links.
13497# The last name is the one that the linker finds with -lNAME
13498library_names_spec=$lt_library_names_spec
13499
13500# The coded name of the library, if different from the real name.
13501soname_spec=$lt_soname_spec
13502
13503# Command to use after installation of a shared archive.
13504postinstall_cmds=$lt_postinstall_cmds
13505
13506# Command to use after uninstallation of a shared archive.
13507postuninstall_cmds=$lt_postuninstall_cmds
13508
13509# Commands used to finish a libtool library installation in a directory.
13510finish_cmds=$lt_finish_cmds
13511
13512# As "finish_cmds", except a single script fragment to be evaled but
13513# not shown.
13514finish_eval=$lt_finish_eval
13515
13516# Whether we should hardcode library paths into libraries.
13517hardcode_into_libs=$hardcode_into_libs
13518
13519# Compile-time system search path for libraries.
13520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13521
13522# Run-time system search path for libraries.
13523sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13524
13525# Whether dlopen is supported.
13526dlopen_support=$enable_dlopen
13527
13528# Whether dlopen of programs is supported.
13529dlopen_self=$enable_dlopen_self
13530
13531# Whether dlopen of statically linked programs is supported.
13532dlopen_self_static=$enable_dlopen_self_static
13533
13534# Commands to strip libraries.
13535old_striplib=$lt_old_striplib
13536striplib=$lt_striplib
13537
13538
13539# The linker used to build libraries.
13540LD=$lt_LD
13541
13542# Commands used to build an old-style archive.
13543old_archive_cmds=$lt_old_archive_cmds
13544
13545# A language specific compiler.
13546CC=$lt_compiler
13547
13548# Is the compiler the GNU compiler?
13549with_gcc=$GCC
13550
13551# Compiler flag to turn off builtin functions.
13552no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13553
13554# How to pass a linker flag through the compiler.
13555wl=$lt_lt_prog_compiler_wl
13556
13557# Additional compiler flags for building library objects.
13558pic_flag=$lt_lt_prog_compiler_pic
13559
13560# Compiler flag to prevent dynamic linking.
13561link_static_flag=$lt_lt_prog_compiler_static
13562
13563# Does compiler simultaneously support -c and -o options?
13564compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13565
13566# Whether or not to add -lc for building shared libraries.
13567build_libtool_need_lc=$archive_cmds_need_lc
13568
13569# Whether or not to disallow shared libs when runtime libs are static.
13570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13571
13572# Compiler flag to allow reflexive dlopens.
13573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13574
13575# Compiler flag to generate shared objects directly from archives.
13576whole_archive_flag_spec=$lt_whole_archive_flag_spec
13577
13578# Whether the compiler copes with passing no objects directly.
13579compiler_needs_object=$lt_compiler_needs_object
13580
13581# Create an old-style archive from a shared archive.
13582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13583
13584# Create a temporary old-style archive to link instead of a shared archive.
13585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13586
13587# Commands used to build a shared archive.
13588archive_cmds=$lt_archive_cmds
13589archive_expsym_cmds=$lt_archive_expsym_cmds
13590
13591# Commands used to build a loadable module if different from building
13592# a shared archive.
13593module_cmds=$lt_module_cmds
13594module_expsym_cmds=$lt_module_expsym_cmds
13595
13596# Whether we are building with GNU ld or not.
13597with_gnu_ld=$lt_with_gnu_ld
13598
13599# Flag that allows shared libraries with undefined symbols to be built.
13600allow_undefined_flag=$lt_allow_undefined_flag
13601
13602# Flag that enforces no undefined symbols.
13603no_undefined_flag=$lt_no_undefined_flag
13604
13605# Flag to hardcode \$libdir into a binary during linking.
13606# This must work even if \$libdir does not exist
13607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13608
13609# If ld is used when linking, flag to hardcode \$libdir into a binary
13610# during linking.  This must work even if \$libdir does not exist.
13611hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13612
13613# Whether we need a single "-rpath" flag with a separated argument.
13614hardcode_libdir_separator=$lt_hardcode_libdir_separator
13615
13616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13617# DIR into the resulting binary.
13618hardcode_direct=$hardcode_direct
13619
13620# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13621# DIR into the resulting binary and the resulting library dependency is
13622# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13623# library is relocated.
13624hardcode_direct_absolute=$hardcode_direct_absolute
13625
13626# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13627# into the resulting binary.
13628hardcode_minus_L=$hardcode_minus_L
13629
13630# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13631# into the resulting binary.
13632hardcode_shlibpath_var=$hardcode_shlibpath_var
13633
13634# Set to "yes" if building a shared library automatically hardcodes DIR
13635# into the library and all subsequent libraries and executables linked
13636# against it.
13637hardcode_automatic=$hardcode_automatic
13638
13639# Set to yes if linker adds runtime paths of dependent libraries
13640# to runtime path list.
13641inherit_rpath=$inherit_rpath
13642
13643# Whether libtool must link a program against all its dependency libraries.
13644link_all_deplibs=$link_all_deplibs
13645
13646# Fix the shell variable \$srcfile for the compiler.
13647fix_srcfile_path=$lt_fix_srcfile_path
13648
13649# Set to "yes" if exported symbols are required.
13650always_export_symbols=$always_export_symbols
13651
13652# The commands to list exported symbols.
13653export_symbols_cmds=$lt_export_symbols_cmds
13654
13655# Symbols that should not be listed in the preloaded symbols.
13656exclude_expsyms=$lt_exclude_expsyms
13657
13658# Symbols that must always be exported.
13659include_expsyms=$lt_include_expsyms
13660
13661# Commands necessary for linking programs (against libraries) with templates.
13662prelink_cmds=$lt_prelink_cmds
13663
13664# Specify filename containing input files.
13665file_list_spec=$lt_file_list_spec
13666
13667# How to hardcode a shared library path into an executable.
13668hardcode_action=$hardcode_action
13669
13670# ### END LIBTOOL CONFIG
13671
13672_LT_EOF
13673
13674  case $host_os in
13675  aix3*)
13676    cat <<\_LT_EOF >> "$cfgfile"
13677# AIX sometimes has problems with the GCC collect2 program.  For some
13678# reason, if we set the COLLECT_NAMES environment variable, the problems
13679# vanish in a puff of smoke.
13680if test "X${COLLECT_NAMES+set}" != Xset; then
13681  COLLECT_NAMES=
13682  export COLLECT_NAMES
13683fi
13684_LT_EOF
13685    ;;
13686  esac
13687
13688
13689ltmain="$ac_aux_dir/ltmain.sh"
13690
13691
13692  # We use sed instead of cat because bash on DJGPP gets confused if
13693  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13694  # text mode, it properly converts lines to CR/LF.  This bash problem
13695  # is reportedly fixed, but why not run on old versions too?
13696  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13697    || (rm -f "$cfgfile"; exit 1)
13698
13699  case $xsi_shell in
13700  yes)
13701    cat << \_LT_EOF >> "$cfgfile"
13702
13703# func_dirname file append nondir_replacement
13704# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13705# otherwise set result to NONDIR_REPLACEMENT.
13706func_dirname ()
13707{
13708  case ${1} in
13709    */*) func_dirname_result="${1%/*}${2}" ;;
13710    *  ) func_dirname_result="${3}" ;;
13711  esac
13712}
13713
13714# func_basename file
13715func_basename ()
13716{
13717  func_basename_result="${1##*/}"
13718}
13719
13720# func_dirname_and_basename file append nondir_replacement
13721# perform func_basename and func_dirname in a single function
13722# call:
13723#   dirname:  Compute the dirname of FILE.  If nonempty,
13724#             add APPEND to the result, otherwise set result
13725#             to NONDIR_REPLACEMENT.
13726#             value returned in "$func_dirname_result"
13727#   basename: Compute filename of FILE.
13728#             value retuned in "$func_basename_result"
13729# Implementation must be kept synchronized with func_dirname
13730# and func_basename. For efficiency, we do not delegate to
13731# those functions but instead duplicate the functionality here.
13732func_dirname_and_basename ()
13733{
13734  case ${1} in
13735    */*) func_dirname_result="${1%/*}${2}" ;;
13736    *  ) func_dirname_result="${3}" ;;
13737  esac
13738  func_basename_result="${1##*/}"
13739}
13740
13741# func_stripname prefix suffix name
13742# strip PREFIX and SUFFIX off of NAME.
13743# PREFIX and SUFFIX must not contain globbing or regex special
13744# characters, hashes, percent signs, but SUFFIX may contain a leading
13745# dot (in which case that matches only a dot).
13746func_stripname ()
13747{
13748  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13749  # positional parameters, so assign one to ordinary parameter first.
13750  func_stripname_result=${3}
13751  func_stripname_result=${func_stripname_result#"${1}"}
13752  func_stripname_result=${func_stripname_result%"${2}"}
13753}
13754
13755# func_opt_split
13756func_opt_split ()
13757{
13758  func_opt_split_opt=${1%%=*}
13759  func_opt_split_arg=${1#*=}
13760}
13761
13762# func_lo2o object
13763func_lo2o ()
13764{
13765  case ${1} in
13766    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13767    *)    func_lo2o_result=${1} ;;
13768  esac
13769}
13770
13771# func_xform libobj-or-source
13772func_xform ()
13773{
13774  func_xform_result=${1%.*}.lo
13775}
13776
13777# func_arith arithmetic-term...
13778func_arith ()
13779{
13780  func_arith_result=$(( $* ))
13781}
13782
13783# func_len string
13784# STRING may not start with a hyphen.
13785func_len ()
13786{
13787  func_len_result=${#1}
13788}
13789
13790_LT_EOF
13791    ;;
13792  *) # Bourne compatible functions.
13793    cat << \_LT_EOF >> "$cfgfile"
13794
13795# func_dirname file append nondir_replacement
13796# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13797# otherwise set result to NONDIR_REPLACEMENT.
13798func_dirname ()
13799{
13800  # Extract subdirectory from the argument.
13801  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13802  if test "X$func_dirname_result" = "X${1}"; then
13803    func_dirname_result="${3}"
13804  else
13805    func_dirname_result="$func_dirname_result${2}"
13806  fi
13807}
13808
13809# func_basename file
13810func_basename ()
13811{
13812  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13813}
13814
13815
13816# func_stripname prefix suffix name
13817# strip PREFIX and SUFFIX off of NAME.
13818# PREFIX and SUFFIX must not contain globbing or regex special
13819# characters, hashes, percent signs, but SUFFIX may contain a leading
13820# dot (in which case that matches only a dot).
13821# func_strip_suffix prefix name
13822func_stripname ()
13823{
13824  case ${2} in
13825    .*) func_stripname_result=`$ECHO "X${3}" \
13826           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13827    *)  func_stripname_result=`$ECHO "X${3}" \
13828           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13829  esac
13830}
13831
13832# sed scripts:
13833my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13834my_sed_long_arg='1s/^-[^=]*=//'
13835
13836# func_opt_split
13837func_opt_split ()
13838{
13839  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13840  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13841}
13842
13843# func_lo2o object
13844func_lo2o ()
13845{
13846  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13847}
13848
13849# func_xform libobj-or-source
13850func_xform ()
13851{
13852  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13853}
13854
13855# func_arith arithmetic-term...
13856func_arith ()
13857{
13858  func_arith_result=`expr "$@"`
13859}
13860
13861# func_len string
13862# STRING may not start with a hyphen.
13863func_len ()
13864{
13865  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13866}
13867
13868_LT_EOF
13869esac
13870
13871case $lt_shell_append in
13872  yes)
13873    cat << \_LT_EOF >> "$cfgfile"
13874
13875# func_append var value
13876# Append VALUE to the end of shell variable VAR.
13877func_append ()
13878{
13879  eval "$1+=\$2"
13880}
13881_LT_EOF
13882    ;;
13883  *)
13884    cat << \_LT_EOF >> "$cfgfile"
13885
13886# func_append var value
13887# Append VALUE to the end of shell variable VAR.
13888func_append ()
13889{
13890  eval "$1=\$$1\$2"
13891}
13892
13893_LT_EOF
13894    ;;
13895  esac
13896
13897
13898  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13899    || (rm -f "$cfgfile"; exit 1)
13900
13901  mv -f "$cfgfile" "$ofile" ||
13902    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13903  chmod +x "$ofile"
13904
13905 ;;
13906    "$ax_create_pkgconfig_generate":C)
13907pkgconfig_generate="$ax_create_pkgconfig_generate"
13908if test ! -f "$pkgconfig_generate.in"
13909then generate="true"
13910elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
13911then generate="true"
13912else generate="false";
13913fi
13914if $generate ; then
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
13916$as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
13917cat > $pkgconfig_generate.in <<AXEOF
13918# generated by configure / remove this line to disable regeneration
13919prefix=@prefix@
13920exec_prefix=@exec_prefix@
13921bindir=@bindir@
13922libdir=@libdir@
13923datarootdir=@datarootdir@
13924datadir=@datadir@
13925sysconfdir=@sysconfdir@
13926includedir=@includedir@
13927package=@PACKAGE@
13928suffix=@suffix@
13929
13930Name: @PACKAGE_NAME@
13931Description: @PACKAGE_DESCRIPTION@
13932Version: @PACKAGE_VERSION@
13933Requires: @PACKAGE_REQUIRES@
13934Libs: -L\${libdir} @LDFLAGS@ @LIBS@
13935Cflags: -I\${includedir} @CPPFLAGS@
13936AXEOF
13937fi # DONE generate $pkgconfig_generate.in
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
13939$as_echo "$as_me: creating $pkgconfig_generate" >&6;}
13940cat >conftest.sed <<AXEOF
13941s|@prefix@|${pkgconfig_prefix}|
13942s|@exec_prefix@|${pkgconfig_execprefix}|
13943s|@bindir@|${pkgconfig_bindir}|
13944s|@libdir@|${pkgconfig_libdir}|
13945s|@datarootdir@|${pkgconfig_datarootdir}|
13946s|@datadir@|${pkgconfig_datadir}|
13947s|@sysconfdir@|${pkgconfig_sysconfdir}|
13948s|@includedir@|${pkgconfig_includedir}|
13949s|@suffix@|${pkgconfig_suffix}|
13950s|@PACKAGE@|${pkgconfig_package}|
13951s|@PACKAGE_NAME@|${pkgconfig_libname}|
13952s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
13953s|@PACKAGE_VERSION@|${pkgconfig_version}|
13954s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
13955s|@LIBS@|${pkgconfig_libs}|
13956s|@LDFLAGS@|${pkgconfig_ldflags}|
13957s|@CPPFLAGS@|${pkgconfig_cppflags}|
13958AXEOF
13959sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
13960if test ! -s $pkgconfig_generate ; then
13961    as_fn_error "$pkgconfig_generate is empty" "$LINENO" 5
13962fi ; rm conftest.sed # DONE generate $pkgconfig_generate
13963pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
13965$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
13966cat >conftest.sed <<AXEOF
13967s|@prefix@|${pkgconfig_prefix}|
13968s|@exec_prefix@|${pkgconfig_execprefix}|
13969s|@bindir@|${pkgconfig_bindir}|
13970s|@libdir@|${pkgconfig_src_libdir}|
13971s|@datarootdir@|${pkgconfig_datarootdir}|
13972s|@datadir@|${pkgconfig_datadir}|
13973s|@sysconfdir@|${pkgconfig_sysconfdir}|
13974s|@includedir@|${pkgconfig_src_headers}|
13975s|@suffix@|${pkgconfig_suffix}|
13976s|@PACKAGE@|${pkgconfig_package}|
13977s|@PACKAGE_NAME@|${pkgconfig_libname}|
13978s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
13979s|@PACKAGE_VERSION@|${pkgconfig_version}|
13980s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
13981s|@LIBS@|${pkgconfig_libs}|
13982s|@LDFLAGS@|${pkgconfig_ldflags}|
13983s|@CPPFLAGS@|${pkgconfig_cppflags}|
13984AXEOF
13985sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
13986if test ! -s $pkgconfig_uninstalled ; then
13987    as_fn_error "$pkgconfig_uninstalled is empty" "$LINENO" 5
13988fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
13989           pkgconfig_requires_add=`echo ${pkgconfig_requires}`
13990if test ".$pkgconfig_requires_add" != "." ; then
13991           pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
13992    else   pkgconfig_requires_add=":" ; fi
13993pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
13995$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
13996cat >conftest.sed <<AXEOF
13997s|@prefix@|\"${pkgconfig_prefix}\"|
13998s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
13999s|@bindir@|\"${pkgconfig_bindir}\"|
14000s|@libdir@|\"${pkgconfig_src_libdir}\"|
14001s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
14002s|@datadir@|\"${pkgconfig_datadir}\"|
14003s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
14004s|@includedir@|\"${pkgconfig_src_headers}\"|
14005s|@suffix@|\"${pkgconfig_suffix}\"|
14006s|@PACKAGE@|\"${pkgconfig_package}\"|
14007s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
14008s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
14009s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
14010s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
14011s|@LIBS@|\"${pkgconfig_libs}\"|
14012s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
14013s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
14014s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
14015s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
14016s>Version: *>\\;\\; --modversion|--version) echo >
14017s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
14018s>Libs: *>\\;\\; --libs) echo >
14019s>Cflags: *>\\;\\; --cflags) echo >
14020/--libs)/a\\
14021       $pkgconfig_requires_add
14022/--cflags)/a\\
14023       $pkgconfig_requires_add\\
14024;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
14025;; --uninstalled) exit 0 \\
14026;; *) ;; esac done
14027AXEOF
14028sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
14029if test ! -s $pkgconfig_uninstalled ; then
14030    as_fn_error "$pkgconfig_uninstalled is empty" "$LINENO" 5
14031fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
14032 ;;
14033
14034  esac
14035done # for ac_tag
14036
14037
14038as_fn_exit 0
14039_ACEOF
14040ac_clean_files=$ac_clean_files_save
14041
14042test $ac_write_fail = 0 ||
14043  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14044
14045
14046# configure is writing to config.log, and then calls config.status.
14047# config.status does its own redirection, appending to config.log.
14048# Unfortunately, on DOS this fails, as config.log is still kept open
14049# by configure, so config.status won't be able to write to it; its
14050# output is simply discarded.  So we exec the FD to /dev/null,
14051# effectively closing config.log, so it can be properly (re)opened and
14052# appended to by config.status.  When coming back to configure, we
14053# need to make the FD available again.
14054if test "$no_create" != yes; then
14055  ac_cs_success=:
14056  ac_config_status_args=
14057  test "$silent" = yes &&
14058    ac_config_status_args="$ac_config_status_args --quiet"
14059  exec 5>/dev/null
14060  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14061  exec 5>>config.log
14062  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14063  # would make configure fail if this is the last instruction.
14064  $ac_cs_success || as_fn_exit $?
14065fi
14066if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14067  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14068$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14069fi
14070
14071
14072
14073echo "Polylib will be built with " $ALL_BITS "integer size(s)"
14074echo "---------------------------------------------------"
14075echo "You can proceed with:"
14076echo "make               :to build the libs and the executables"
14077echo "make tests         :to test the library"
14078echo "make install       :to install them (to $prefix)"
14079echo "---------------------------------------------------"
14080