1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for dvipng (TeX Live) 1.15.
4#
5# Report bugs to <tex-k@tug.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='dvipng (TeX Live)'
592PACKAGE_TARNAME='dvipng--tex-live-'
593PACKAGE_VERSION='1.15'
594PACKAGE_STRING='dvipng (TeX Live) 1.15'
595PACKAGE_BUGREPORT='tex-k@tug.org'
596PACKAGE_URL=''
597
598ac_unique_file="dvipng-1.15/dvipng.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639WIN32_CALL_FALSE
640WIN32_CALL_TRUE
641WIN32_FALSE
642WIN32_TRUE
643DVIPNG_TREE
644have_gif_FALSE
645have_gif_TRUE
646have_ft2_FALSE
647have_ft2_TRUE
648GD_RULE
649GD_DEPEND
650GD_LIBS
651GD_INCLUDES
652FREETYPE2_RULE
653FREETYPE2_DEPEND
654FREETYPE2_LIBS
655FREETYPE2_INCLUDES
656FT2_CONFIG
657LIBPNG_RULE
658LIBPNG_DEPEND
659LIBPNG_LIBS
660LIBPNG_INCLUDES
661ZLIB_RULE
662ZLIB_DEPEND
663ZLIB_LIBS
664ZLIB_INCLUDES
665KPATHSEA_RULE
666KPATHSEA_DEPEND
667KPATHSEA_LIBS
668KPATHSEA_INCLUDES
669PKG_CONFIG
670INSTALL_INFO
671AM_MAKEINFOFLAGS
672LIBOBJS
673POW_LIB
674GS
675cross_FALSE
676cross_TRUE
677CPP
678LT_SYS_LIBRARY_PATH
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
684MANIFEST_TOOL
685RANLIB
686ac_ct_AR
687AR
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696SED
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
705LIBTOOL
706OBJDUMP
707DLLTOOL
708AS
709WARNING_CFLAGS
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__quote
718am__include
719DEPDIR
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727MAINT
728MAINTAINER_MODE_FALSE
729MAINTAINER_MODE_TRUE
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_URL
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
795ac_subst_files=''
796ac_user_opts='
797enable_option_checking
798enable_silent_rules
799enable_maintainer_mode
800enable_dependency_tracking
801enable_compiler_warnings
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_aix_soname
807with_gnu_ld
808with_sysroot
809enable_libtool_lock
810enable_largefile
811enable_debug
812enable_timing
813with_gs
814with_system_kpathsea
815with_system_zlib
816with_zlib_includes
817with_zlib_libdir
818with_system_libpng
819with_system_freetype2
820with_system_gd
821with_gd_includes
822with_gd_libdir
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832LT_SYS_LIBRARY_PATH
833CPP'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
883
884ac_prev=
885ac_dashdash=
886for ac_option
887do
888  # If the previous option needs an argument, assign it.
889  if test -n "$ac_prev"; then
890    eval $ac_prev=\$ac_option
891    ac_prev=
892    continue
893  fi
894
895  case $ac_option in
896  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897  *=)   ac_optarg= ;;
898  *)    ac_optarg=yes ;;
899  esac
900
901  # Accept the important Cygnus configure options, so we can diagnose typos.
902
903  case $ac_dashdash$ac_option in
904  --)
905    ac_dashdash=yes ;;
906
907  -bindir | --bindir | --bindi | --bind | --bin | --bi)
908    ac_prev=bindir ;;
909  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910    bindir=$ac_optarg ;;
911
912  -build | --build | --buil | --bui | --bu)
913    ac_prev=build_alias ;;
914  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915    build_alias=$ac_optarg ;;
916
917  -cache-file | --cache-file | --cache-fil | --cache-fi \
918  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919    ac_prev=cache_file ;;
920  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922    cache_file=$ac_optarg ;;
923
924  --config-cache | -C)
925    cache_file=config.cache ;;
926
927  -datadir | --datadir | --datadi | --datad)
928    ac_prev=datadir ;;
929  -datadir=* | --datadir=* | --datadi=* | --datad=*)
930    datadir=$ac_optarg ;;
931
932  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933  | --dataroo | --dataro | --datar)
934    ac_prev=datarootdir ;;
935  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937    datarootdir=$ac_optarg ;;
938
939  -disable-* | --disable-*)
940    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941    # Reject names that are not valid shell variable names.
942    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943      as_fn_error $? "invalid feature name: $ac_useropt"
944    ac_useropt_orig=$ac_useropt
945    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946    case $ac_user_opts in
947      *"
948"enable_$ac_useropt"
949"*) ;;
950      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951	 ac_unrecognized_sep=', ';;
952    esac
953    eval enable_$ac_useropt=no ;;
954
955  -docdir | --docdir | --docdi | --doc | --do)
956    ac_prev=docdir ;;
957  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958    docdir=$ac_optarg ;;
959
960  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961    ac_prev=dvidir ;;
962  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963    dvidir=$ac_optarg ;;
964
965  -enable-* | --enable-*)
966    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967    # Reject names that are not valid shell variable names.
968    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969      as_fn_error $? "invalid feature name: $ac_useropt"
970    ac_useropt_orig=$ac_useropt
971    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972    case $ac_user_opts in
973      *"
974"enable_$ac_useropt"
975"*) ;;
976      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977	 ac_unrecognized_sep=', ';;
978    esac
979    eval enable_$ac_useropt=\$ac_optarg ;;
980
981  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983  | --exec | --exe | --ex)
984    ac_prev=exec_prefix ;;
985  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987  | --exec=* | --exe=* | --ex=*)
988    exec_prefix=$ac_optarg ;;
989
990  -gas | --gas | --ga | --g)
991    # Obsolete; use --with-gas.
992    with_gas=yes ;;
993
994  -help | --help | --hel | --he | -h)
995    ac_init_help=long ;;
996  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997    ac_init_help=recursive ;;
998  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999    ac_init_help=short ;;
1000
1001  -host | --host | --hos | --ho)
1002    ac_prev=host_alias ;;
1003  -host=* | --host=* | --hos=* | --ho=*)
1004    host_alias=$ac_optarg ;;
1005
1006  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007    ac_prev=htmldir ;;
1008  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009  | --ht=*)
1010    htmldir=$ac_optarg ;;
1011
1012  -includedir | --includedir | --includedi | --included | --include \
1013  | --includ | --inclu | --incl | --inc)
1014    ac_prev=includedir ;;
1015  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016  | --includ=* | --inclu=* | --incl=* | --inc=*)
1017    includedir=$ac_optarg ;;
1018
1019  -infodir | --infodir | --infodi | --infod | --info | --inf)
1020    ac_prev=infodir ;;
1021  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022    infodir=$ac_optarg ;;
1023
1024  -libdir | --libdir | --libdi | --libd)
1025    ac_prev=libdir ;;
1026  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027    libdir=$ac_optarg ;;
1028
1029  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030  | --libexe | --libex | --libe)
1031    ac_prev=libexecdir ;;
1032  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033  | --libexe=* | --libex=* | --libe=*)
1034    libexecdir=$ac_optarg ;;
1035
1036  -localedir | --localedir | --localedi | --localed | --locale)
1037    ac_prev=localedir ;;
1038  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039    localedir=$ac_optarg ;;
1040
1041  -localstatedir | --localstatedir | --localstatedi | --localstated \
1042  | --localstate | --localstat | --localsta | --localst | --locals)
1043    ac_prev=localstatedir ;;
1044  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046    localstatedir=$ac_optarg ;;
1047
1048  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049    ac_prev=mandir ;;
1050  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051    mandir=$ac_optarg ;;
1052
1053  -nfp | --nfp | --nf)
1054    # Obsolete; use --without-fp.
1055    with_fp=no ;;
1056
1057  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058  | --no-cr | --no-c | -n)
1059    no_create=yes ;;
1060
1061  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063    no_recursion=yes ;;
1064
1065  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067  | --oldin | --oldi | --old | --ol | --o)
1068    ac_prev=oldincludedir ;;
1069  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072    oldincludedir=$ac_optarg ;;
1073
1074  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075    ac_prev=prefix ;;
1076  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077    prefix=$ac_optarg ;;
1078
1079  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080  | --program-pre | --program-pr | --program-p)
1081    ac_prev=program_prefix ;;
1082  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084    program_prefix=$ac_optarg ;;
1085
1086  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087  | --program-suf | --program-su | --program-s)
1088    ac_prev=program_suffix ;;
1089  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091    program_suffix=$ac_optarg ;;
1092
1093  -program-transform-name | --program-transform-name \
1094  | --program-transform-nam | --program-transform-na \
1095  | --program-transform-n | --program-transform- \
1096  | --program-transform | --program-transfor \
1097  | --program-transfo | --program-transf \
1098  | --program-trans | --program-tran \
1099  | --progr-tra | --program-tr | --program-t)
1100    ac_prev=program_transform_name ;;
1101  -program-transform-name=* | --program-transform-name=* \
1102  | --program-transform-nam=* | --program-transform-na=* \
1103  | --program-transform-n=* | --program-transform-=* \
1104  | --program-transform=* | --program-transfor=* \
1105  | --program-transfo=* | --program-transf=* \
1106  | --program-trans=* | --program-tran=* \
1107  | --progr-tra=* | --program-tr=* | --program-t=*)
1108    program_transform_name=$ac_optarg ;;
1109
1110  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111    ac_prev=pdfdir ;;
1112  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113    pdfdir=$ac_optarg ;;
1114
1115  -psdir | --psdir | --psdi | --psd | --ps)
1116    ac_prev=psdir ;;
1117  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118    psdir=$ac_optarg ;;
1119
1120  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121  | -silent | --silent | --silen | --sile | --sil)
1122    silent=yes ;;
1123
1124  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125    ac_prev=sbindir ;;
1126  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127  | --sbi=* | --sb=*)
1128    sbindir=$ac_optarg ;;
1129
1130  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132  | --sharedst | --shareds | --shared | --share | --shar \
1133  | --sha | --sh)
1134    ac_prev=sharedstatedir ;;
1135  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138  | --sha=* | --sh=*)
1139    sharedstatedir=$ac_optarg ;;
1140
1141  -site | --site | --sit)
1142    ac_prev=site ;;
1143  -site=* | --site=* | --sit=*)
1144    site=$ac_optarg ;;
1145
1146  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147    ac_prev=srcdir ;;
1148  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149    srcdir=$ac_optarg ;;
1150
1151  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152  | --syscon | --sysco | --sysc | --sys | --sy)
1153    ac_prev=sysconfdir ;;
1154  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156    sysconfdir=$ac_optarg ;;
1157
1158  -target | --target | --targe | --targ | --tar | --ta | --t)
1159    ac_prev=target_alias ;;
1160  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161    target_alias=$ac_optarg ;;
1162
1163  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164    verbose=yes ;;
1165
1166  -version | --version | --versio | --versi | --vers | -V)
1167    ac_init_version=: ;;
1168
1169  -with-* | --with-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error $? "invalid package name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"with_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval with_$ac_useropt=\$ac_optarg ;;
1184
1185  -without-* | --without-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=no ;;
1200
1201  --x)
1202    # Obsolete; use --with-x.
1203    with_x=yes ;;
1204
1205  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206  | --x-incl | --x-inc | --x-in | --x-i)
1207    ac_prev=x_includes ;;
1208  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210    x_includes=$ac_optarg ;;
1211
1212  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214    ac_prev=x_libraries ;;
1215  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217    x_libraries=$ac_optarg ;;
1218
1219  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
1221    ;;
1222
1223  *=*)
1224    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225    # Reject names that are not valid shell variable names.
1226    case $ac_envvar in #(
1227      '' | [0-9]* | *[!_$as_cr_alnum]* )
1228      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229    esac
1230    eval $ac_envvar=\$ac_optarg
1231    export $ac_envvar ;;
1232
1233  *)
1234    # FIXME: should be removed in autoconf 3.0.
1235    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239    ;;
1240
1241  esac
1242done
1243
1244if test -n "$ac_prev"; then
1245  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246  as_fn_error $? "missing argument to $ac_option"
1247fi
1248
1249if test -n "$ac_unrecognized_opts"; then
1250  case $enable_option_checking in
1251    no) ;;
1252    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254  esac
1255fi
1256
1257# Check all directory arguments for consistency.
1258for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259		datadir sysconfdir sharedstatedir localstatedir includedir \
1260		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261		libdir localedir mandir
1262do
1263  eval ac_val=\$$ac_var
1264  # Remove trailing slashes.
1265  case $ac_val in
1266    */ )
1267      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268      eval $ac_var=\$ac_val;;
1269  esac
1270  # Be sure to have absolute directory names.
1271  case $ac_val in
1272    [\\/$]* | ?:[\\/]* )  continue;;
1273    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274  esac
1275  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276done
1277
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287  if test "x$build_alias" = x; then
1288    cross_compiling=maybe
1289  elif test "x$build_alias" != "x$host_alias"; then
1290    cross_compiling=yes
1291  fi
1292fi
1293
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
1298
1299
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303  as_fn_error $? "working directory cannot be determined"
1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305  as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310  ac_srcdir_defaulted=yes
1311  # Try the directory containing this script, then the parent directory.
1312  ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314	 X"$as_myself" : 'X\(//\)[^/]' \| \
1315	 X"$as_myself" : 'X\(//\)$' \| \
1316	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)[^/].*/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\/\)$/{
1327	    s//\1/
1328	    q
1329	  }
1330	  /^X\(\/\).*/{
1331	    s//\1/
1332	    q
1333	  }
1334	  s/.*/./; q'`
1335  srcdir=$ac_confdir
1336  if test ! -r "$srcdir/$ac_unique_file"; then
1337    srcdir=..
1338  fi
1339else
1340  ac_srcdir_defaulted=no
1341fi
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
1348	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349	pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352  srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_env_${ac_var}_value=\$${ac_var}
1363  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
1366
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371  # Omit some internal or obsolete options to make the list less imposing.
1372  # This message is too long to be a string in the A/UX 3.1 sh.
1373  cat <<_ACEOF
1374\`configure' configures dvipng (TeX Live) 1.15 to adapt to many kinds of systems.
1375
1376Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE.  See below for descriptions of some of the useful variables.
1380
1381Defaults for the options are specified in brackets.
1382
1383Configuration:
1384  -h, --help              display this help and exit
1385      --help=short        display options specific to this package
1386      --help=recursive    display the short help of all the included packages
1387  -V, --version           display version information and exit
1388  -q, --quiet, --silent   do not print \`checking ...' messages
1389      --cache-file=FILE   cache test results in FILE [disabled]
1390  -C, --config-cache      alias for \`--cache-file=config.cache'
1391  -n, --no-create         do not create output files
1392      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1393
1394Installation directories:
1395  --prefix=PREFIX         install architecture-independent files in PREFIX
1396                          [$ac_default_prefix]
1397  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1398                          [PREFIX]
1399
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
1404
1405For better control, use the options below.
1406
1407Fine tuning of the installation directories:
1408  --bindir=DIR            user executables [EPREFIX/bin]
1409  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1410  --libexecdir=DIR        program executables [EPREFIX/libexec]
1411  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1412  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1413  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1414  --libdir=DIR            object code libraries [EPREFIX/lib]
1415  --includedir=DIR        C header files [PREFIX/include]
1416  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1417  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1418  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1419  --infodir=DIR           info documentation [DATAROOTDIR/info]
1420  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1421  --mandir=DIR            man documentation [DATAROOTDIR/man]
1422  --docdir=DIR            documentation root
1423                          [DATAROOTDIR/doc/dvipng--tex-live-]
1424  --htmldir=DIR           html documentation [DOCDIR]
1425  --dvidir=DIR            dvi documentation [DOCDIR]
1426  --pdfdir=DIR            pdf documentation [DOCDIR]
1427  --psdir=DIR             ps documentation [DOCDIR]
1428_ACEOF
1429
1430  cat <<\_ACEOF
1431
1432Program names:
1433  --program-prefix=PREFIX            prepend PREFIX to installed program names
1434  --program-suffix=SUFFIX            append SUFFIX to installed program names
1435  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437System types:
1438  --build=BUILD     configure for building on BUILD [guessed]
1439  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440_ACEOF
1441fi
1442
1443if test -n "$ac_init_help"; then
1444  case $ac_init_help in
1445     short | recursive ) echo "Configuration of dvipng (TeX Live) 1.15:";;
1446   esac
1447  cat <<\_ACEOF
1448
1449Optional Features:
1450  --disable-option-checking  ignore unrecognized --enable/--with options
1451  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453  --enable-silent-rules   less verbose build output (undo: "make V=1")
1454  --disable-silent-rules  verbose build output (undo: "make V=0")
1455  --enable-maintainer-mode
1456                          enable make rules and dependencies not useful (and
1457                          sometimes confusing) to the casual installer
1458  --enable-dependency-tracking
1459                          do not reject slow dependency extractors
1460  --disable-dependency-tracking
1461                          speeds up one-time build
1462  --enable-compiler-warnings=[no|min|yes|max|all]
1463                          Turn on compiler warnings [default: yes if
1464                          maintainer-mode, min otherwise]
1465  --enable-shared[=PKGS]  build shared libraries [default=yes]
1466  --enable-static[=PKGS]  build static libraries [default=yes]
1467  --enable-fast-install[=PKGS]
1468                          optimize for fast installation [default=yes]
1469  --disable-libtool-lock  avoid locking (might break parallel builds)
1470  --disable-largefile     omit support for large files
1471  --disable-debug         Compile without debug (-d) option
1472  --enable-timing         Output execution time of dvipng
1473
1474Optional Packages:
1475  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1476  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1477  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                          both]
1479  --with-aix-soname=aix|svr4|both
1480                          shared library versioning (aka "SONAME") variant to
1481                          provide on AIX, [default=aix].
1482  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1484                          compiler's sysroot if not specified).
1485  --with-gs=/PATH/TO/gs   Hard-wire the location of GhostScript
1486  --with-system-kpathsea  use installed kpathsea headers and library (requires
1487                          pkg-config)
1488  --with-system-zlib      use installed zlib headers and library
1489  --with-zlib-includes=DIR
1490                          zlib headers installed in DIR
1491  --with-zlib-libdir=DIR  zlib library installed in DIR
1492  --with-system-libpng    use installed libpng headers and library (requires
1493                          pkg-config)
1494  --with-system-freetype2 use installed freetype2 headers and library
1495                          (requires freetype-config)
1496  --with-system-gd        use installed gd headers and library
1497  --with-gd-includes=DIR  gd headers installed in DIR
1498  --with-gd-libdir=DIR    gd library installed in DIR
1499
1500Some influential environment variables:
1501  CC          C compiler command
1502  CFLAGS      C compiler flags
1503  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504              nonstandard directory <lib dir>
1505  LIBS        libraries to pass to the linker, e.g. -l<library>
1506  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507              you have headers in a nonstandard directory <include dir>
1508  LT_SYS_LIBRARY_PATH
1509              User-defined run-time library search path.
1510  CPP         C preprocessor
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to <tex-k@tug.org>.
1516_ACEOF
1517ac_status=$?
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521  # If there are subdirs, report their specific --help.
1522  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523    test -d "$ac_dir" ||
1524      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525      continue
1526    ac_builddir=.
1527
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532  # A ".." for each directory in $ac_dir_suffix.
1533  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534  case $ac_top_builddir_sub in
1535  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537  esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
1543
1544case $srcdir in
1545  .)  # We are building in place.
1546    ac_srcdir=.
1547    ac_top_srcdir=$ac_top_builddir_sub
1548    ac_abs_top_srcdir=$ac_pwd ;;
1549  [\\/]* | ?:[\\/]* )  # Absolute name.
1550    ac_srcdir=$srcdir$ac_dir_suffix;
1551    ac_top_srcdir=$srcdir
1552    ac_abs_top_srcdir=$srcdir ;;
1553  *) # Relative name.
1554    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555    ac_top_srcdir=$ac_top_build_prefix$srcdir
1556    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557esac
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560    cd "$ac_dir" || { ac_status=$?; continue; }
1561    # Check for guested configure.
1562    if test -f "$ac_srcdir/configure.gnu"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565    elif test -f "$ac_srcdir/configure"; then
1566      echo &&
1567      $SHELL "$ac_srcdir/configure" --help=recursive
1568    else
1569      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570    fi || ac_status=$?
1571    cd "$ac_pwd" || { ac_status=$?; break; }
1572  done
1573fi
1574
1575test -n "$ac_init_help" && exit $ac_status
1576if $ac_init_version; then
1577  cat <<\_ACEOF
1578dvipng (TeX Live) configure 1.15
1579generated by GNU Autoconf 2.69
1580
1581Copyright (C) 2012 Free Software Foundation, Inc.
1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
1585  exit
1586fi
1587
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598  rm -f conftest.$ac_objext
1599  if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602  *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606  (eval "$ac_compile") 2>conftest.err
1607  ac_status=$?
1608  if test -s conftest.err; then
1609    grep -v '^ *+' conftest.err >conftest.er1
1610    cat conftest.er1 >&5
1611    mv -f conftest.er1 conftest.err
1612  fi
1613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614  test $ac_status = 0; } && {
1615	 test -z "$ac_c_werror_flag" ||
1616	 test ! -s conftest.err
1617       } && test -s conftest.$ac_objext; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623	ac_retval=1
1624fi
1625  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626  as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_try_link LINENO
1631# -----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_link ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  rm -f conftest.$ac_objext conftest$ac_exeext
1637  if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640  *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644  (eval "$ac_link") 2>conftest.err
1645  ac_status=$?
1646  if test -s conftest.err; then
1647    grep -v '^ *+' conftest.err >conftest.er1
1648    cat conftest.er1 >&5
1649    mv -f conftest.er1 conftest.err
1650  fi
1651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652  test $ac_status = 0; } && {
1653	 test -z "$ac_c_werror_flag" ||
1654	 test ! -s conftest.err
1655       } && test -s conftest$ac_exeext && {
1656	 test "$cross_compiling" = yes ||
1657	 test -x conftest$ac_exeext
1658       }; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664	ac_retval=1
1665fi
1666  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668  # interfere with the next link command; also delete a directory that is
1669  # left behind by Apple's compiler.  We do this before executing the actions.
1670  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_link
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686  $as_echo_n "(cached) " >&6
1687else
1688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694  eval "$3=yes"
1695else
1696  eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } > conftest.i && {
1729	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       }; then :
1732  ac_retval=0
1733else
1734  $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737    ac_retval=1
1738fi
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_link") 2>&5
1759  ac_status=$?
1760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762  { { case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_try") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; }; }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: program exited with status $ac_status" >&5
1775       $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778       ac_retval=$ac_status
1779fi
1780  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_run
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795  $as_echo_n "(cached) " >&6
1796else
1797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h.  */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804    which can conflict with char $2 (); below.
1805    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806    <limits.h> exists even on freestanding compilers.  */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817   Use char because int might match the return type of a GCC
1818   builtin and then its argument prototype would still apply.  */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824    to always fail with ENOSYS.  Some functions are actually named
1825    something starting with __ and the normal name is an alias.  */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834  ;
1835  return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839  eval "$3=yes"
1840else
1841  eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844    conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854# -------------------------------------------------------
1855# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856# the include files in INCLUDES and setting the cache variable VAR
1857# accordingly.
1858ac_fn_c_check_header_mongrel ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if eval \${$3+:} false; then :
1862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
1864if eval \${$3+:} false; then :
1865  $as_echo_n "(cached) " >&6
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870else
1871  # Is the header compilable?
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873$as_echo_n "checking $2 usability... " >&6; }
1874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880  ac_header_compiler=yes
1881else
1882  ac_header_compiler=no
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886$as_echo "$ac_header_compiler" >&6; }
1887
1888# Is the header present?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890$as_echo_n "checking $2 presence... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893#include <$2>
1894_ACEOF
1895if ac_fn_c_try_cpp "$LINENO"; then :
1896  ac_header_preproc=yes
1897else
1898  ac_header_preproc=no
1899fi
1900rm -f conftest.err conftest.i conftest.$ac_ext
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902$as_echo "$ac_header_preproc" >&6; }
1903
1904# So?  What about this header?
1905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906  yes:no: )
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911    ;;
1912  no:yes:* )
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1916$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1917    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1920$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923( $as_echo "## ---------------------------- ##
1924## Report this to tex-k@tug.org ##
1925## ---------------------------- ##"
1926     ) | sed "s/^/$as_me: WARNING:     /" >&2
1927    ;;
1928esac
1929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930$as_echo_n "checking for $2... " >&6; }
1931if eval \${$3+:} false; then :
1932  $as_echo_n "(cached) " >&6
1933else
1934  eval "$3=\$ac_header_compiler"
1935fi
1936eval ac_res=\$$3
1937	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938$as_echo "$ac_res" >&6; }
1939fi
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942} # ac_fn_c_check_header_mongrel
1943
1944# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1945# -------------------------------------------
1946# Tests whether TYPE exists after having included INCLUDES, setting cache
1947# variable VAR accordingly.
1948ac_fn_c_check_type ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=no"
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960int
1961main ()
1962{
1963if (sizeof ($2))
1964	 return 0;
1965  ;
1966  return 0;
1967}
1968_ACEOF
1969if ac_fn_c_try_compile "$LINENO"; then :
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972$4
1973int
1974main ()
1975{
1976if (sizeof (($2)))
1977	    return 0;
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_compile "$LINENO"; then :
1983
1984else
1985  eval "$3=yes"
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_type
1997
1998# ac_fn_c_find_intX_t LINENO BITS VAR
1999# -----------------------------------
2000# Finds a signed integer type with width BITS, setting cache variable VAR
2001# accordingly.
2002ac_fn_c_find_intX_t ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2006$as_echo_n "checking for int$2_t... " >&6; }
2007if eval \${$3+:} false; then :
2008  $as_echo_n "(cached) " >&6
2009else
2010  eval "$3=no"
2011     # Order is important - never check a type that is potentially smaller
2012     # than half of the expected target width.
2013     for ac_type in int$2_t 'int' 'long int' \
2014	 'long long int' 'short int' 'signed char'; do
2015       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$ac_includes_default
2018	     enum { N = $2 / 2 - 1 };
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2023test_array [0] = 0;
2024return test_array [0];
2025
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033$ac_includes_default
2034	        enum { N = $2 / 2 - 1 };
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2039		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2040test_array [0] = 0;
2041return test_array [0];
2042
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048
2049else
2050  case $ac_type in #(
2051  int$2_t) :
2052    eval "$3=yes" ;; #(
2053  *) :
2054    eval "$3=\$ac_type" ;;
2055esac
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060       if eval test \"x\$"$3"\" = x"no"; then :
2061
2062else
2063  break
2064fi
2065     done
2066fi
2067eval ac_res=\$$3
2068	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069$as_echo "$ac_res" >&6; }
2070  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072} # ac_fn_c_find_intX_t
2073
2074# ac_fn_c_find_uintX_t LINENO BITS VAR
2075# ------------------------------------
2076# Finds an unsigned integer type with width BITS, setting cache variable VAR
2077# accordingly.
2078ac_fn_c_find_uintX_t ()
2079{
2080  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2082$as_echo_n "checking for uint$2_t... " >&6; }
2083if eval \${$3+:} false; then :
2084  $as_echo_n "(cached) " >&6
2085else
2086  eval "$3=no"
2087     # Order is important - never check a type that is potentially smaller
2088     # than half of the expected target width.
2089     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2090	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h.  */
2093$ac_includes_default
2094int
2095main ()
2096{
2097static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2098test_array [0] = 0;
2099return test_array [0];
2100
2101  ;
2102  return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  case $ac_type in #(
2107  uint$2_t) :
2108    eval "$3=yes" ;; #(
2109  *) :
2110    eval "$3=\$ac_type" ;;
2111esac
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114       if eval test \"x\$"$3"\" = x"no"; then :
2115
2116else
2117  break
2118fi
2119     done
2120fi
2121eval ac_res=\$$3
2122	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126} # ac_fn_c_find_uintX_t
2127
2128# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2129# ----------------------------------------------------
2130# Tries to find if the field MEMBER exists in type AGGR, after including
2131# INCLUDES, setting cache variable VAR accordingly.
2132ac_fn_c_check_member ()
2133{
2134  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2136$as_echo_n "checking for $2.$3... " >&6; }
2137if eval \${$4+:} false; then :
2138  $as_echo_n "(cached) " >&6
2139else
2140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h.  */
2142$5
2143int
2144main ()
2145{
2146static $2 ac_aggr;
2147if (ac_aggr.$3)
2148return 0;
2149  ;
2150  return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154  eval "$4=yes"
2155else
2156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h.  */
2158$5
2159int
2160main ()
2161{
2162static $2 ac_aggr;
2163if (sizeof ac_aggr.$3)
2164return 0;
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170  eval "$4=yes"
2171else
2172  eval "$4=no"
2173fi
2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178eval ac_res=\$$4
2179	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180$as_echo "$ac_res" >&6; }
2181  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182
2183} # ac_fn_c_check_member
2184cat >config.log <<_ACEOF
2185This file contains any messages produced by compilers while
2186running configure, to aid debugging if configure makes a mistake.
2187
2188It was created by dvipng (TeX Live) $as_me 1.15, which was
2189generated by GNU Autoconf 2.69.  Invocation command line was
2190
2191  $ $0 $@
2192
2193_ACEOF
2194exec 5>>config.log
2195{
2196cat <<_ASUNAME
2197## --------- ##
2198## Platform. ##
2199## --------- ##
2200
2201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2202uname -m = `(uname -m) 2>/dev/null || echo unknown`
2203uname -r = `(uname -r) 2>/dev/null || echo unknown`
2204uname -s = `(uname -s) 2>/dev/null || echo unknown`
2205uname -v = `(uname -v) 2>/dev/null || echo unknown`
2206
2207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2208/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2209
2210/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2211/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2213/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2214/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2215/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2216/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2217
2218_ASUNAME
2219
2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221for as_dir in $PATH
2222do
2223  IFS=$as_save_IFS
2224  test -z "$as_dir" && as_dir=.
2225    $as_echo "PATH: $as_dir"
2226  done
2227IFS=$as_save_IFS
2228
2229} >&5
2230
2231cat >&5 <<_ACEOF
2232
2233
2234## ----------- ##
2235## Core tests. ##
2236## ----------- ##
2237
2238_ACEOF
2239
2240
2241# Keep a trace of the command line.
2242# Strip out --no-create and --no-recursion so they do not pile up.
2243# Strip out --silent because we don't want to record it for future runs.
2244# Also quote any args containing shell meta-characters.
2245# Make two passes to allow for proper duplicate-argument suppression.
2246ac_configure_args=
2247ac_configure_args0=
2248ac_configure_args1=
2249ac_must_keep_next=false
2250for ac_pass in 1 2
2251do
2252  for ac_arg
2253  do
2254    case $ac_arg in
2255    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2256    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2257    | -silent | --silent | --silen | --sile | --sil)
2258      continue ;;
2259    *\'*)
2260      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2261    esac
2262    case $ac_pass in
2263    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264    2)
2265      as_fn_append ac_configure_args1 " '$ac_arg'"
2266      if test $ac_must_keep_next = true; then
2267	ac_must_keep_next=false # Got value, back to normal.
2268      else
2269	case $ac_arg in
2270	  *=* | --config-cache | -C | -disable-* | --disable-* \
2271	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2272	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2273	  | -with-* | --with-* | -without-* | --without-* | --x)
2274	    case "$ac_configure_args0 " in
2275	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2276	    esac
2277	    ;;
2278	  -* ) ac_must_keep_next=true ;;
2279	esac
2280      fi
2281      as_fn_append ac_configure_args " '$ac_arg'"
2282      ;;
2283    esac
2284  done
2285done
2286{ ac_configure_args0=; unset ac_configure_args0;}
2287{ ac_configure_args1=; unset ac_configure_args1;}
2288
2289# When interrupted or exit'd, cleanup temporary files, and complete
2290# config.log.  We remove comments because anyway the quotes in there
2291# would cause problems or look ugly.
2292# WARNING: Use '\'' to represent an apostrophe within the trap.
2293# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2294trap 'exit_status=$?
2295  # Save into config.log some information that might help in debugging.
2296  {
2297    echo
2298
2299    $as_echo "## ---------------- ##
2300## Cache variables. ##
2301## ---------------- ##"
2302    echo
2303    # The following way of writing the cache mishandles newlines in values,
2304(
2305  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2306    eval ac_val=\$$ac_var
2307    case $ac_val in #(
2308    *${as_nl}*)
2309      case $ac_var in #(
2310      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2312      esac
2313      case $ac_var in #(
2314      _ | IFS | as_nl) ;; #(
2315      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2316      *) { eval $ac_var=; unset $ac_var;} ;;
2317      esac ;;
2318    esac
2319  done
2320  (set) 2>&1 |
2321    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2322    *${as_nl}ac_space=\ *)
2323      sed -n \
2324	"s/'\''/'\''\\\\'\'''\''/g;
2325	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2326      ;; #(
2327    *)
2328      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329      ;;
2330    esac |
2331    sort
2332)
2333    echo
2334
2335    $as_echo "## ----------------- ##
2336## Output variables. ##
2337## ----------------- ##"
2338    echo
2339    for ac_var in $ac_subst_vars
2340    do
2341      eval ac_val=\$$ac_var
2342      case $ac_val in
2343      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2344      esac
2345      $as_echo "$ac_var='\''$ac_val'\''"
2346    done | sort
2347    echo
2348
2349    if test -n "$ac_subst_files"; then
2350      $as_echo "## ------------------- ##
2351## File substitutions. ##
2352## ------------------- ##"
2353      echo
2354      for ac_var in $ac_subst_files
2355      do
2356	eval ac_val=\$$ac_var
2357	case $ac_val in
2358	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359	esac
2360	$as_echo "$ac_var='\''$ac_val'\''"
2361      done | sort
2362      echo
2363    fi
2364
2365    if test -s confdefs.h; then
2366      $as_echo "## ----------- ##
2367## confdefs.h. ##
2368## ----------- ##"
2369      echo
2370      cat confdefs.h
2371      echo
2372    fi
2373    test "$ac_signal" != 0 &&
2374      $as_echo "$as_me: caught signal $ac_signal"
2375    $as_echo "$as_me: exit $exit_status"
2376  } >&5
2377  rm -f core *.core core.conftest.* &&
2378    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2379    exit $exit_status
2380' 0
2381for ac_signal in 1 2 13 15; do
2382  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2383done
2384ac_signal=0
2385
2386# confdefs.h avoids OS command line length limits that DEFS can exceed.
2387rm -f -r conftest* confdefs.h
2388
2389$as_echo "/* confdefs.h */" > confdefs.h
2390
2391# Predefined preprocessor variables.
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_NAME "$PACKAGE_NAME"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2399_ACEOF
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_VERSION "$PACKAGE_VERSION"
2403_ACEOF
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE_STRING "$PACKAGE_STRING"
2407_ACEOF
2408
2409cat >>confdefs.h <<_ACEOF
2410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2411_ACEOF
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_URL "$PACKAGE_URL"
2415_ACEOF
2416
2417
2418# Let the site file select an alternate cache file if it wants to.
2419# Prefer an explicitly selected file to automatically selected ones.
2420ac_site_file1=NONE
2421ac_site_file2=NONE
2422if test -n "$CONFIG_SITE"; then
2423  # We do not want a PATH search for config.site.
2424  case $CONFIG_SITE in #((
2425    -*)  ac_site_file1=./$CONFIG_SITE;;
2426    */*) ac_site_file1=$CONFIG_SITE;;
2427    *)   ac_site_file1=./$CONFIG_SITE;;
2428  esac
2429elif test "x$prefix" != xNONE; then
2430  ac_site_file1=$prefix/share/config.site
2431  ac_site_file2=$prefix/etc/config.site
2432else
2433  ac_site_file1=$ac_default_prefix/share/config.site
2434  ac_site_file2=$ac_default_prefix/etc/config.site
2435fi
2436for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2437do
2438  test "x$ac_site_file" = xNONE && continue
2439  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2440    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2441$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2442    sed 's/^/| /' "$ac_site_file" >&5
2443    . "$ac_site_file" \
2444      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446as_fn_error $? "failed to load site script $ac_site_file
2447See \`config.log' for more details" "$LINENO" 5; }
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
2468as_fn_append ac_header_list " stdlib.h"
2469as_fn_append ac_header_list " unistd.h"
2470as_fn_append ac_header_list " sys/param.h"
2471# Check that the precious variables saved in the cache have kept the same
2472# value.
2473ac_cache_corrupted=false
2474for ac_var in $ac_precious_vars; do
2475  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476  eval ac_new_set=\$ac_env_${ac_var}_set
2477  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478  eval ac_new_val=\$ac_env_${ac_var}_value
2479  case $ac_old_set,$ac_new_set in
2480    set,)
2481      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483      ac_cache_corrupted=: ;;
2484    ,set)
2485      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487      ac_cache_corrupted=: ;;
2488    ,);;
2489    *)
2490      if test "x$ac_old_val" != "x$ac_new_val"; then
2491	# differences in whitespace do not lead to failure.
2492	ac_old_val_w=`echo x $ac_old_val`
2493	ac_new_val_w=`echo x $ac_new_val`
2494	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497	  ac_cache_corrupted=:
2498	else
2499	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501	  eval $ac_var=\$ac_old_val
2502	fi
2503	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2504$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2505	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2506$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2507      fi;;
2508  esac
2509  # Pass precious variables to config.status.
2510  if test "$ac_new_set" = set; then
2511    case $ac_new_val in
2512    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513    *) ac_arg=$ac_var=$ac_new_val ;;
2514    esac
2515    case " $ac_configure_args " in
2516      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2517      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518    esac
2519  fi
2520done
2521if $ac_cache_corrupted; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527fi
2528## -------------------- ##
2529## Main body of script. ##
2530## -------------------- ##
2531
2532ac_ext=c
2533ac_cpp='$CPP $CPPFLAGS'
2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539
2540
2541ac_aux_dir=
2542for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2543  if test -f "$ac_dir/install-sh"; then
2544    ac_aux_dir=$ac_dir
2545    ac_install_sh="$ac_aux_dir/install-sh -c"
2546    break
2547  elif test -f "$ac_dir/install.sh"; then
2548    ac_aux_dir=$ac_dir
2549    ac_install_sh="$ac_aux_dir/install.sh -c"
2550    break
2551  elif test -f "$ac_dir/shtool"; then
2552    ac_aux_dir=$ac_dir
2553    ac_install_sh="$ac_aux_dir/shtool install -c"
2554    break
2555  fi
2556done
2557if test -z "$ac_aux_dir"; then
2558  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2559fi
2560
2561# These three variables are undocumented and unsupported,
2562# and are intended to be withdrawn in a future Autoconf release.
2563# They can cause serious problems if a builder's source tree is in a directory
2564# whose full name contains unusual characters.
2565ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2566ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2567ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2568
2569
2570
2571
2572# Common code for all programs using libkpathsea.
2573am__api_version='1.15'
2574
2575# Find a good install program.  We prefer a C program (faster),
2576# so one script is as good as another.  But avoid the broken or
2577# incompatible versions:
2578# SysV /etc/install, /usr/sbin/install
2579# SunOS /usr/etc/install
2580# IRIX /sbin/install
2581# AIX /bin/install
2582# AmigaOS /C/install, which installs bootblocks on floppy discs
2583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2586# OS/2's system install, which has a completely different semantic
2587# ./install, which can be erroneously created by make from ./install.sh.
2588# Reject install programs that cannot install multiple files.
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590$as_echo_n "checking for a BSD-compatible install... " >&6; }
2591if test -z "$INSTALL"; then
2592if ${ac_cv_path_install+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    # Account for people who put trailing slashes in PATH elements.
2601case $as_dir/ in #((
2602  ./ | .// | /[cC]/* | \
2603  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2604  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605  /usr/ucb/* ) ;;
2606  *)
2607    # OSF1 and SCO ODT 3.0 have their own names for install.
2608    # Don't use installbsd from OSF since it installs stuff as root
2609    # by default.
2610    for ac_prog in ginstall scoinst install; do
2611      for ac_exec_ext in '' $ac_executable_extensions; do
2612	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2613	  if test $ac_prog = install &&
2614	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615	    # AIX install.  It has an incompatible calling convention.
2616	    :
2617	  elif test $ac_prog = install &&
2618	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619	    # program-specific install script used by HP pwplus--don't use.
2620	    :
2621	  else
2622	    rm -rf conftest.one conftest.two conftest.dir
2623	    echo one > conftest.one
2624	    echo two > conftest.two
2625	    mkdir conftest.dir
2626	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627	      test -s conftest.one && test -s conftest.two &&
2628	      test -s conftest.dir/conftest.one &&
2629	      test -s conftest.dir/conftest.two
2630	    then
2631	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632	      break 3
2633	    fi
2634	  fi
2635	fi
2636      done
2637    done
2638    ;;
2639esac
2640
2641  done
2642IFS=$as_save_IFS
2643
2644rm -rf conftest.one conftest.two conftest.dir
2645
2646fi
2647  if test "${ac_cv_path_install+set}" = set; then
2648    INSTALL=$ac_cv_path_install
2649  else
2650    # As a last resort, use the slow shell script.  Don't cache a
2651    # value for INSTALL within a source directory, because that will
2652    # break other packages using the cache if that directory is
2653    # removed, or if the value is a relative name.
2654    INSTALL=$ac_install_sh
2655  fi
2656fi
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658$as_echo "$INSTALL" >&6; }
2659
2660# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661# It thinks the first close brace ends the variable substitution.
2662test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2663
2664test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2665
2666test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2669$as_echo_n "checking whether build environment is sane... " >&6; }
2670# Reject unsafe characters in $srcdir or the absolute working directory
2671# name.  Accept space and tab only in the latter.
2672am_lf='
2673'
2674case `pwd` in
2675  *[\\\"\#\$\&\'\`$am_lf]*)
2676    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2677esac
2678case $srcdir in
2679  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2680    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2681esac
2682
2683# Do 'set' in a subshell so we don't clobber the current shell's
2684# arguments.  Must try -L first in case configure is actually a
2685# symlink; some systems play weird games with the mod time of symlinks
2686# (eg FreeBSD returns the mod time of the symlink's containing
2687# directory).
2688if (
2689   am_has_slept=no
2690   for am_try in 1 2; do
2691     echo "timestamp, slept: $am_has_slept" > conftest.file
2692     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2693     if test "$*" = "X"; then
2694	# -L didn't work.
2695	set X `ls -t "$srcdir/configure" conftest.file`
2696     fi
2697     if test "$*" != "X $srcdir/configure conftest.file" \
2698	&& test "$*" != "X conftest.file $srcdir/configure"; then
2699
2700	# If neither matched, then we have a broken ls.  This can happen
2701	# if, for instance, CONFIG_SHELL is bash and it inherits a
2702	# broken ls alias from the environment.  This has actually
2703	# happened.  Such a system could not be considered "sane".
2704	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2705  alias in your environment" "$LINENO" 5
2706     fi
2707     if test "$2" = conftest.file || test $am_try -eq 2; then
2708       break
2709     fi
2710     # Just in case.
2711     sleep 1
2712     am_has_slept=yes
2713   done
2714   test "$2" = conftest.file
2715   )
2716then
2717   # Ok.
2718   :
2719else
2720   as_fn_error $? "newly created file is older than distributed files!
2721Check your system clock" "$LINENO" 5
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724$as_echo "yes" >&6; }
2725# If we didn't sleep, we still need to ensure time stamps of config.status and
2726# generated files are strictly newer.
2727am_sleep_pid=
2728if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2729  ( sleep 1 ) &
2730  am_sleep_pid=$!
2731fi
2732
2733rm -f conftest.file
2734
2735test "$program_prefix" != NONE &&
2736  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2737# Use a double $ so make ignores it.
2738test "$program_suffix" != NONE &&
2739  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2740# Double any \ or $.
2741# By default was `s,x,x', remove it if useless.
2742ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2743program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2744
2745# Expand $ac_aux_dir to an absolute path.
2746am_aux_dir=`cd "$ac_aux_dir" && pwd`
2747
2748if test x"${MISSING+set}" != xset; then
2749  case $am_aux_dir in
2750  *\ * | *\	*)
2751    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2752  *)
2753    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754  esac
2755fi
2756# Use eval to expand $SHELL
2757if eval "$MISSING --is-lightweight"; then
2758  am_missing_run="$MISSING "
2759else
2760  am_missing_run=
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2762$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763fi
2764
2765if test x"${install_sh+set}" != xset; then
2766  case $am_aux_dir in
2767  *\ * | *\	*)
2768    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2769  *)
2770    install_sh="\${SHELL} $am_aux_dir/install-sh"
2771  esac
2772fi
2773
2774# Installed binaries are usually stripped using 'strip' when the user
2775# run "make install-strip".  However 'strip' might not be the right
2776# tool to use in cross-compilation environments, therefore Automake
2777# will honor the 'STRIP' environment variable to overrule this program.
2778if test "$cross_compiling" != no; then
2779  if test -n "$ac_tool_prefix"; then
2780  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}strip; ac_word=$2
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if ${ac_cv_prog_STRIP+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  if test -n "$STRIP"; then
2788  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795    for ac_exec_ext in '' $ac_executable_extensions; do
2796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802  done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807STRIP=$ac_cv_prog_STRIP
2808if test -n "$STRIP"; then
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2810$as_echo "$STRIP" >&6; }
2811else
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
2815
2816
2817fi
2818if test -z "$ac_cv_prog_STRIP"; then
2819  ac_ct_STRIP=$STRIP
2820  # Extract the first word of "strip", so it can be a program name with args.
2821set dummy strip; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  if test -n "$ac_ct_STRIP"; then
2828  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835    for ac_exec_ext in '' $ac_executable_extensions; do
2836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837    ac_cv_prog_ac_ct_STRIP="strip"
2838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842  done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2848if test -n "$ac_ct_STRIP"; then
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2850$as_echo "$ac_ct_STRIP" >&6; }
2851else
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856  if test "x$ac_ct_STRIP" = x; then
2857    STRIP=":"
2858  else
2859    case $cross_compiling:$ac_tool_warned in
2860yes:)
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863ac_tool_warned=yes ;;
2864esac
2865    STRIP=$ac_ct_STRIP
2866  fi
2867else
2868  STRIP="$ac_cv_prog_STRIP"
2869fi
2870
2871fi
2872INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2873
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2875$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2876if test -z "$MKDIR_P"; then
2877  if ${ac_cv_path_mkdir+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882do
2883  IFS=$as_save_IFS
2884  test -z "$as_dir" && as_dir=.
2885    for ac_prog in mkdir gmkdir; do
2886	 for ac_exec_ext in '' $ac_executable_extensions; do
2887	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2888	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2889	     'mkdir (GNU coreutils) '* | \
2890	     'mkdir (coreutils) '* | \
2891	     'mkdir (fileutils) '4.1*)
2892	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2893	       break 3;;
2894	   esac
2895	 done
2896       done
2897  done
2898IFS=$as_save_IFS
2899
2900fi
2901
2902  test -d ./--version && rmdir ./--version
2903  if test "${ac_cv_path_mkdir+set}" = set; then
2904    MKDIR_P="$ac_cv_path_mkdir -p"
2905  else
2906    # As a last resort, use the slow shell script.  Don't cache a
2907    # value for MKDIR_P within a source directory, because that will
2908    # break other packages using the cache if that directory is
2909    # removed, or if the value is a relative name.
2910    MKDIR_P="$ac_install_sh -d"
2911  fi
2912fi
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2914$as_echo "$MKDIR_P" >&6; }
2915
2916for ac_prog in gawk mawk nawk awk
2917do
2918  # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_AWK+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$AWK"; then
2926  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2935    ac_cv_prog_AWK="$ac_prog"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945AWK=$ac_cv_prog_AWK
2946if test -n "$AWK"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2948$as_echo "$AWK" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955  test -n "$AWK" && break
2956done
2957
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2959$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2960set x ${MAKE-make}
2961ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2962if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  cat >conftest.make <<\_ACEOF
2966SHELL = /bin/sh
2967all:
2968	@echo '@@@%%%=$(MAKE)=@@@%%%'
2969_ACEOF
2970# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2971case `${MAKE-make} -f conftest.make 2>/dev/null` in
2972  *@@@%%%=?*=@@@%%%*)
2973    eval ac_cv_prog_make_${ac_make}_set=yes;;
2974  *)
2975    eval ac_cv_prog_make_${ac_make}_set=no;;
2976esac
2977rm -f conftest.make
2978fi
2979if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981$as_echo "yes" >&6; }
2982  SET_MAKE=
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986  SET_MAKE="MAKE=${MAKE-make}"
2987fi
2988
2989rm -rf .tst 2>/dev/null
2990mkdir .tst 2>/dev/null
2991if test -d .tst; then
2992  am__leading_dot=.
2993else
2994  am__leading_dot=_
2995fi
2996rmdir .tst 2>/dev/null
2997
2998# Check whether --enable-silent-rules was given.
2999if test "${enable_silent_rules+set}" = set; then :
3000  enableval=$enable_silent_rules;
3001fi
3002
3003case $enable_silent_rules in # (((
3004  yes) AM_DEFAULT_VERBOSITY=0;;
3005   no) AM_DEFAULT_VERBOSITY=1;;
3006    *) AM_DEFAULT_VERBOSITY=1;;
3007esac
3008am_make=${MAKE-make}
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3010$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3011if ${am_cv_make_support_nested_variables+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if $as_echo 'TRUE=$(BAR$(V))
3015BAR0=false
3016BAR1=true
3017V=1
3018am__doit:
3019	@$(TRUE)
3020.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3021  am_cv_make_support_nested_variables=yes
3022else
3023  am_cv_make_support_nested_variables=no
3024fi
3025fi
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3027$as_echo "$am_cv_make_support_nested_variables" >&6; }
3028if test $am_cv_make_support_nested_variables = yes; then
3029    AM_V='$(V)'
3030  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3031else
3032  AM_V=$AM_DEFAULT_VERBOSITY
3033  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3034fi
3035AM_BACKSLASH='\'
3036
3037DEPDIR="${am__leading_dot}deps"
3038
3039ac_config_commands="$ac_config_commands depfiles"
3040
3041
3042am_make=${MAKE-make}
3043cat > confinc << 'END'
3044am__doit:
3045	@echo this is the am__doit target
3046.PHONY: am__doit
3047END
3048# If we don't find an include directive, just comment out the code.
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3050$as_echo_n "checking for style of include used by $am_make... " >&6; }
3051am__include="#"
3052am__quote=
3053_am_result=none
3054# First try GNU make style include.
3055echo "include confinc" > confmf
3056# Ignore all kinds of additional output from 'make'.
3057case `$am_make -s -f confmf 2> /dev/null` in #(
3058*the\ am__doit\ target*)
3059  am__include=include
3060  am__quote=
3061  _am_result=GNU
3062  ;;
3063esac
3064# Now try BSD make style include.
3065if test "$am__include" = "#"; then
3066   echo '.include "confinc"' > confmf
3067   case `$am_make -s -f confmf 2> /dev/null` in #(
3068   *the\ am__doit\ target*)
3069     am__include=.include
3070     am__quote="\""
3071     _am_result=BSD
3072     ;;
3073   esac
3074fi
3075
3076
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3078$as_echo "$_am_result" >&6; }
3079rm -f confinc confmf
3080
3081# Check whether --enable-dependency-tracking was given.
3082if test "${enable_dependency_tracking+set}" = set; then :
3083  enableval=$enable_dependency_tracking;
3084fi
3085
3086if test "x$enable_dependency_tracking" != xno; then
3087  am_depcomp="$ac_aux_dir/depcomp"
3088  AMDEPBACKSLASH='\'
3089  am__nodep='_no'
3090fi
3091 if test "x$enable_dependency_tracking" != xno; then
3092  AMDEP_TRUE=
3093  AMDEP_FALSE='#'
3094else
3095  AMDEP_TRUE='#'
3096  AMDEP_FALSE=
3097fi
3098
3099
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105if test -n "$ac_tool_prefix"; then
3106  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3107set dummy ${ac_tool_prefix}gcc; ac_word=$2
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
3110if ${ac_cv_prog_CC+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test -n "$CC"; then
3114  ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136$as_echo "$CC" >&6; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
3143fi
3144if test -z "$ac_cv_prog_CC"; then
3145  ac_ct_CC=$CC
3146  # Extract the first word of "gcc", so it can be a program name with args.
3147set dummy gcc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  if test -n "$ac_ct_CC"; then
3154  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159  IFS=$as_save_IFS
3160  test -z "$as_dir" && as_dir=.
3161    for ac_exec_ext in '' $ac_executable_extensions; do
3162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163    ac_cv_prog_ac_ct_CC="gcc"
3164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165    break 2
3166  fi
3167done
3168  done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174if test -n "$ac_ct_CC"; then
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176$as_echo "$ac_ct_CC" >&6; }
3177else
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182  if test "x$ac_ct_CC" = x; then
3183    CC=""
3184  else
3185    case $cross_compiling:$ac_tool_warned in
3186yes:)
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189ac_tool_warned=yes ;;
3190esac
3191    CC=$ac_ct_CC
3192  fi
3193else
3194  CC="$ac_cv_prog_CC"
3195fi
3196
3197if test -z "$CC"; then
3198          if test -n "$ac_tool_prefix"; then
3199    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3200set dummy ${ac_tool_prefix}cc; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$CC"; then
3207  ac_cv_prog_CC="$CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_CC="${ac_tool_prefix}cc"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226CC=$ac_cv_prog_CC
3227if test -n "$CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229$as_echo "$CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236  fi
3237fi
3238if test -z "$CC"; then
3239  # Extract the first word of "cc", so it can be a program name with args.
3240set dummy cc; ac_word=$2
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
3243if ${ac_cv_prog_CC+:} false; then :
3244  $as_echo_n "(cached) " >&6
3245else
3246  if test -n "$CC"; then
3247  ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249  ac_prog_rejected=no
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3258       ac_prog_rejected=yes
3259       continue
3260     fi
3261    ac_cv_prog_CC="cc"
3262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266  done
3267IFS=$as_save_IFS
3268
3269if test $ac_prog_rejected = yes; then
3270  # We found a bogon in the path, so make sure we never use it.
3271  set dummy $ac_cv_prog_CC
3272  shift
3273  if test $# != 0; then
3274    # We chose a different compiler from the bogus one.
3275    # However, it has the same basename, so the bogon will be chosen
3276    # first if we set CC to just the basename; use the full file name.
3277    shift
3278    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279  fi
3280fi
3281fi
3282fi
3283CC=$ac_cv_prog_CC
3284if test -n "$CC"; then
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286$as_echo "$CC" >&6; }
3287else
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290fi
3291
3292
3293fi
3294if test -z "$CC"; then
3295  if test -n "$ac_tool_prefix"; then
3296  for ac_prog in cl.exe
3297  do
3298    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_CC+:} false; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$CC"; then
3306  ac_cv_prog_CC="$CC" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  test -z "$as_dir" && as_dir=.
3313    for ac_exec_ext in '' $ac_executable_extensions; do
3314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317    break 2
3318  fi
3319done
3320  done
3321IFS=$as_save_IFS
3322
3323fi
3324fi
3325CC=$ac_cv_prog_CC
3326if test -n "$CC"; then
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328$as_echo "$CC" >&6; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335    test -n "$CC" && break
3336  done
3337fi
3338if test -z "$CC"; then
3339  ac_ct_CC=$CC
3340  for ac_prog in cl.exe
3341do
3342  # Extract the first word of "$ac_prog", so it can be a program name with args.
3343set dummy $ac_prog; ac_word=$2
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345$as_echo_n "checking for $ac_word... " >&6; }
3346if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347  $as_echo_n "(cached) " >&6
3348else
3349  if test -n "$ac_ct_CC"; then
3350  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  test -z "$as_dir" && as_dir=.
3357    for ac_exec_ext in '' $ac_executable_extensions; do
3358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359    ac_cv_prog_ac_ct_CC="$ac_prog"
3360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361    break 2
3362  fi
3363done
3364  done
3365IFS=$as_save_IFS
3366
3367fi
3368fi
3369ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370if test -n "$ac_ct_CC"; then
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372$as_echo "$ac_ct_CC" >&6; }
3373else
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375$as_echo "no" >&6; }
3376fi
3377
3378
3379  test -n "$ac_ct_CC" && break
3380done
3381
3382  if test "x$ac_ct_CC" = x; then
3383    CC=""
3384  else
3385    case $cross_compiling:$ac_tool_warned in
3386yes:)
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389ac_tool_warned=yes ;;
3390esac
3391    CC=$ac_ct_CC
3392  fi
3393fi
3394
3395fi
3396
3397
3398test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error $? "no acceptable C compiler found in \$PATH
3401See \`config.log' for more details" "$LINENO" 5; }
3402
3403# Provide some information about the compiler.
3404$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3405set X $ac_compile
3406ac_compiler=$2
3407for ac_option in --version -v -V -qversion; do
3408  { { ac_try="$ac_compiler $ac_option >&5"
3409case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3416  ac_status=$?
3417  if test -s conftest.err; then
3418    sed '10a\
3419... rest of stderr output deleted ...
3420         10q' conftest.err >conftest.er1
3421    cat conftest.er1 >&5
3422  fi
3423  rm -f conftest.er1 conftest.err
3424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425  test $ac_status = 0; }
3426done
3427
3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439ac_clean_files_save=$ac_clean_files
3440ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3441# Try to create an executable without -o first, disregard a.out.
3442# It will help us diagnose broken compilers, and finding out an intuition
3443# of exeext.
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3445$as_echo_n "checking whether the C compiler works... " >&6; }
3446ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3447
3448# The possible output files:
3449ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3450
3451ac_rmfiles=
3452for ac_file in $ac_files
3453do
3454  case $ac_file in
3455    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3457  esac
3458done
3459rm -f $ac_rmfiles
3460
3461if { { ac_try="$ac_link_default"
3462case "(($ac_try" in
3463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464  *) ac_try_echo=$ac_try;;
3465esac
3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467$as_echo "$ac_try_echo"; } >&5
3468  (eval "$ac_link_default") 2>&5
3469  ac_status=$?
3470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471  test $ac_status = 0; }; then :
3472  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3475# so that the user can short-circuit this test for compilers unknown to
3476# Autoconf.
3477for ac_file in $ac_files ''
3478do
3479  test -f "$ac_file" || continue
3480  case $ac_file in
3481    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3482	;;
3483    [ab].out )
3484	# We found the default executable, but exeext='' is most
3485	# certainly right.
3486	break;;
3487    *.* )
3488	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3489	then :; else
3490	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491	fi
3492	# We set ac_cv_exeext here because the later test for it is not
3493	# safe: cross compilers may not add the suffix if given an `-o'
3494	# argument, so we may need to know it at that point already.
3495	# Even if this section looks crufty: it has the advantage of
3496	# actually working.
3497	break;;
3498    * )
3499	break;;
3500  esac
3501done
3502test "$ac_cv_exeext" = no && ac_cv_exeext=
3503
3504else
3505  ac_file=''
3506fi
3507if test -z "$ac_file"; then :
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510$as_echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error 77 "C compiler cannot create executables
3516See \`config.log' for more details" "$LINENO" 5; }
3517else
3518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519$as_echo "yes" >&6; }
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3522$as_echo_n "checking for C compiler default output file name... " >&6; }
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3524$as_echo "$ac_file" >&6; }
3525ac_exeext=$ac_cv_exeext
3526
3527rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3528ac_clean_files=$ac_clean_files_save
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3530$as_echo_n "checking for suffix of executables... " >&6; }
3531if { { ac_try="$ac_link"
3532case "(($ac_try" in
3533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534  *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538  (eval "$ac_link") 2>&5
3539  ac_status=$?
3540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541  test $ac_status = 0; }; then :
3542  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3543# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3544# work properly (i.e., refer to `conftest.exe'), while it won't with
3545# `rm'.
3546for ac_file in conftest.exe conftest conftest.*; do
3547  test -f "$ac_file" || continue
3548  case $ac_file in
3549    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3550    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551	  break;;
3552    * ) break;;
3553  esac
3554done
3555else
3556  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3559See \`config.log' for more details" "$LINENO" 5; }
3560fi
3561rm -f conftest conftest$ac_cv_exeext
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3563$as_echo "$ac_cv_exeext" >&6; }
3564
3565rm -f conftest.$ac_ext
3566EXEEXT=$ac_cv_exeext
3567ac_exeext=$EXEEXT
3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570#include <stdio.h>
3571int
3572main ()
3573{
3574FILE *f = fopen ("conftest.out", "w");
3575 return ferror (f) || fclose (f) != 0;
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581ac_clean_files="$ac_clean_files conftest.out"
3582# Check that the compiler produces executables we can run.  If not, either
3583# the compiler is broken, or we cross compile.
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3585$as_echo_n "checking whether we are cross compiling... " >&6; }
3586if test "$cross_compiling" != yes; then
3587  { { ac_try="$ac_link"
3588case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593$as_echo "$ac_try_echo"; } >&5
3594  (eval "$ac_link") 2>&5
3595  ac_status=$?
3596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597  test $ac_status = 0; }
3598  if { ac_try='./conftest$ac_cv_exeext'
3599  { { case "(($ac_try" in
3600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601  *) ac_try_echo=$ac_try;;
3602esac
3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604$as_echo "$ac_try_echo"; } >&5
3605  (eval "$ac_try") 2>&5
3606  ac_status=$?
3607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608  test $ac_status = 0; }; }; then
3609    cross_compiling=no
3610  else
3611    if test "$cross_compiling" = maybe; then
3612	cross_compiling=yes
3613    else
3614	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error $? "cannot run C compiled programs.
3617If you meant to cross compile, use \`--host'.
3618See \`config.log' for more details" "$LINENO" 5; }
3619    fi
3620  fi
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3623$as_echo "$cross_compiling" >&6; }
3624
3625rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3626ac_clean_files=$ac_clean_files_save
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3628$as_echo_n "checking for suffix of object files... " >&6; }
3629if ${ac_cv_objext+:} false; then :
3630  $as_echo_n "(cached) " >&6
3631else
3632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643rm -f conftest.o conftest.obj
3644if { { ac_try="$ac_compile"
3645case "(($ac_try" in
3646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647  *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651  (eval "$ac_compile") 2>&5
3652  ac_status=$?
3653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654  test $ac_status = 0; }; then :
3655  for ac_file in conftest.o conftest.obj conftest.*; do
3656  test -f "$ac_file" || continue;
3657  case $ac_file in
3658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3659    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3660       break;;
3661  esac
3662done
3663else
3664  $as_echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669as_fn_error $? "cannot compute suffix of object files: cannot compile
3670See \`config.log' for more details" "$LINENO" 5; }
3671fi
3672rm -f conftest.$ac_cv_objext conftest.$ac_ext
3673fi
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3675$as_echo "$ac_cv_objext" >&6; }
3676OBJEXT=$ac_cv_objext
3677ac_objext=$OBJEXT
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3679$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680if ${ac_cv_c_compiler_gnu+:} false; then :
3681  $as_echo_n "(cached) " >&6
3682else
3683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684/* end confdefs.h.  */
3685
3686int
3687main ()
3688{
3689#ifndef __GNUC__
3690       choke me
3691#endif
3692
3693  ;
3694  return 0;
3695}
3696_ACEOF
3697if ac_fn_c_try_compile "$LINENO"; then :
3698  ac_compiler_gnu=yes
3699else
3700  ac_compiler_gnu=no
3701fi
3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703ac_cv_c_compiler_gnu=$ac_compiler_gnu
3704
3705fi
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3707$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3708if test $ac_compiler_gnu = yes; then
3709  GCC=yes
3710else
3711  GCC=
3712fi
3713ac_test_CFLAGS=${CFLAGS+set}
3714ac_save_CFLAGS=$CFLAGS
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716$as_echo_n "checking whether $CC accepts -g... " >&6; }
3717if ${ac_cv_prog_cc_g+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  ac_save_c_werror_flag=$ac_c_werror_flag
3721   ac_c_werror_flag=yes
3722   ac_cv_prog_cc_g=no
3723   CFLAGS="-g"
3724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726
3727int
3728main ()
3729{
3730
3731  ;
3732  return 0;
3733}
3734_ACEOF
3735if ac_fn_c_try_compile "$LINENO"; then :
3736  ac_cv_prog_cc_g=yes
3737else
3738  CFLAGS=""
3739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741
3742int
3743main ()
3744{
3745
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751
3752else
3753  ac_c_werror_flag=$ac_save_c_werror_flag
3754	 CFLAGS="-g"
3755	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_c_try_compile "$LINENO"; then :
3767  ac_cv_prog_cc_g=yes
3768fi
3769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772fi
3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774   ac_c_werror_flag=$ac_save_c_werror_flag
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3777$as_echo "$ac_cv_prog_cc_g" >&6; }
3778if test "$ac_test_CFLAGS" = set; then
3779  CFLAGS=$ac_save_CFLAGS
3780elif test $ac_cv_prog_cc_g = yes; then
3781  if test "$GCC" = yes; then
3782    CFLAGS="-g -O2"
3783  else
3784    CFLAGS="-g"
3785  fi
3786else
3787  if test "$GCC" = yes; then
3788    CFLAGS="-O2"
3789  else
3790    CFLAGS=
3791  fi
3792fi
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3794$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3795if ${ac_cv_prog_cc_c89+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  ac_cv_prog_cc_c89=no
3799ac_save_CC=$CC
3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h.  */
3802#include <stdarg.h>
3803#include <stdio.h>
3804struct stat;
3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3806struct buf { int x; };
3807FILE * (*rcsopen) (struct buf *, struct stat *, int);
3808static char *e (p, i)
3809     char **p;
3810     int i;
3811{
3812  return p[i];
3813}
3814static char *f (char * (*g) (char **, int), char **p, ...)
3815{
3816  char *s;
3817  va_list v;
3818  va_start (v,p);
3819  s = g (p, va_arg (v,int));
3820  va_end (v);
3821  return s;
3822}
3823
3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3825   function prototypes and stuff, but not '\xHH' hex character constants.
3826   These don't provoke an error unfortunately, instead are silently treated
3827   as 'x'.  The following induces an error, until -std is added to get
3828   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3829   array size at least.  It's necessary to write '\x00'==0 to get something
3830   that's true only with -std.  */
3831int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3832
3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3834   inside strings and character constants.  */
3835#define FOO(x) 'x'
3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3837
3838int test (int i, double x);
3839struct s1 {int (*f) (int a);};
3840struct s2 {int (*f) (double a);};
3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842int argc;
3843char **argv;
3844int
3845main ()
3846{
3847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3853	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3854do
3855  CC="$ac_save_CC $ac_arg"
3856  if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_cv_prog_cc_c89=$ac_arg
3858fi
3859rm -f core conftest.err conftest.$ac_objext
3860  test "x$ac_cv_prog_cc_c89" != "xno" && break
3861done
3862rm -f conftest.$ac_ext
3863CC=$ac_save_CC
3864
3865fi
3866# AC_CACHE_VAL
3867case "x$ac_cv_prog_cc_c89" in
3868  x)
3869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3870$as_echo "none needed" >&6; } ;;
3871  xno)
3872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3873$as_echo "unsupported" >&6; } ;;
3874  *)
3875    CC="$CC $ac_cv_prog_cc_c89"
3876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3878esac
3879if test "x$ac_cv_prog_cc_c89" != xno; then :
3880
3881fi
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3895$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3896if ${am_cv_prog_cc_c_o+:} false; then :
3897  $as_echo_n "(cached) " >&6
3898else
3899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901
3902int
3903main ()
3904{
3905
3906  ;
3907  return 0;
3908}
3909_ACEOF
3910  # Make sure it works both with $CC and with simple cc.
3911  # Following AC_PROG_CC_C_O, we do the test twice because some
3912  # compilers refuse to overwrite an existing .o file with -o,
3913  # though they will create one.
3914  am_cv_prog_cc_c_o=yes
3915  for am_i in 1 2; do
3916    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3917   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3918   ac_status=$?
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } \
3921         && test -f conftest2.$ac_objext; then
3922      : OK
3923    else
3924      am_cv_prog_cc_c_o=no
3925      break
3926    fi
3927  done
3928  rm -f core conftest*
3929  unset am_i
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3932$as_echo "$am_cv_prog_cc_c_o" >&6; }
3933if test "$am_cv_prog_cc_c_o" != yes; then
3934   # Losing compiler, so override with the script.
3935   # FIXME: It is wrong to rewrite CC.
3936   # But if we don't then we get into trouble of one sort or another.
3937   # A longer-term fix would be to have automake use am__CC in this case,
3938   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3939   CC="$am_aux_dir/compile $CC"
3940fi
3941ac_ext=c
3942ac_cpp='$CPP $CPPFLAGS'
3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947
3948depcc="$CC"   am_compiler_list=
3949
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3951$as_echo_n "checking dependency style of $depcc... " >&6; }
3952if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3953  $as_echo_n "(cached) " >&6
3954else
3955  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3956  # We make a subdir and do the tests there.  Otherwise we can end up
3957  # making bogus files that we don't know about and never remove.  For
3958  # instance it was reported that on HP-UX the gcc test will end up
3959  # making a dummy file named 'D' -- because '-MD' means "put the output
3960  # in D".
3961  rm -rf conftest.dir
3962  mkdir conftest.dir
3963  # Copy depcomp to subdir because otherwise we won't find it if we're
3964  # using a relative directory.
3965  cp "$am_depcomp" conftest.dir
3966  cd conftest.dir
3967  # We will build objects and dependencies in a subdirectory because
3968  # it helps to detect inapplicable dependency modes.  For instance
3969  # both Tru64's cc and ICC support -MD to output dependencies as a
3970  # side effect of compilation, but ICC will put the dependencies in
3971  # the current directory while Tru64 will put them in the object
3972  # directory.
3973  mkdir sub
3974
3975  am_cv_CC_dependencies_compiler_type=none
3976  if test "$am_compiler_list" = ""; then
3977     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3978  fi
3979  am__universal=false
3980  case " $depcc " in #(
3981     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3982     esac
3983
3984  for depmode in $am_compiler_list; do
3985    # Setup a source with many dependencies, because some compilers
3986    # like to wrap large dependency lists on column 80 (with \), and
3987    # we should not choose a depcomp mode which is confused by this.
3988    #
3989    # We need to recreate these files for each test, as the compiler may
3990    # overwrite some of them when testing with obscure command lines.
3991    # This happens at least with the AIX C compiler.
3992    : > sub/conftest.c
3993    for i in 1 2 3 4 5 6; do
3994      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3995      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3996      # Solaris 10 /bin/sh.
3997      echo '/* dummy */' > sub/conftst$i.h
3998    done
3999    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4000
4001    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4002    # mode.  It turns out that the SunPro C++ compiler does not properly
4003    # handle '-M -o', and we need to detect this.  Also, some Intel
4004    # versions had trouble with output in subdirs.
4005    am__obj=sub/conftest.${OBJEXT-o}
4006    am__minus_obj="-o $am__obj"
4007    case $depmode in
4008    gcc)
4009      # This depmode causes a compiler race in universal mode.
4010      test "$am__universal" = false || continue
4011      ;;
4012    nosideeffect)
4013      # After this tag, mechanisms are not by side-effect, so they'll
4014      # only be used when explicitly requested.
4015      if test "x$enable_dependency_tracking" = xyes; then
4016	continue
4017      else
4018	break
4019      fi
4020      ;;
4021    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4022      # This compiler won't grok '-c -o', but also, the minuso test has
4023      # not run yet.  These depmodes are late enough in the game, and
4024      # so weak that their functioning should not be impacted.
4025      am__obj=conftest.${OBJEXT-o}
4026      am__minus_obj=
4027      ;;
4028    none) break ;;
4029    esac
4030    if depmode=$depmode \
4031       source=sub/conftest.c object=$am__obj \
4032       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4033       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4034         >/dev/null 2>conftest.err &&
4035       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4036       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4037       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4038       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4039      # icc doesn't choke on unknown options, it will just issue warnings
4040      # or remarks (even with -Werror).  So we grep stderr for any message
4041      # that says an option was ignored or not supported.
4042      # When given -MP, icc 7.0 and 7.1 complain thusly:
4043      #   icc: Command line warning: ignoring option '-M'; no argument required
4044      # The diagnosis changed in icc 8.0:
4045      #   icc: Command line remark: option '-MP' not supported
4046      if (grep 'ignoring option' conftest.err ||
4047          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4048        am_cv_CC_dependencies_compiler_type=$depmode
4049        break
4050      fi
4051    fi
4052  done
4053
4054  cd ..
4055  rm -rf conftest.dir
4056else
4057  am_cv_CC_dependencies_compiler_type=none
4058fi
4059
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4062$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4063CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4064
4065 if
4066  test "x$enable_dependency_tracking" != xno \
4067  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4068  am__fastdepCC_TRUE=
4069  am__fastdepCC_FALSE='#'
4070else
4071  am__fastdepCC_TRUE='#'
4072  am__fastdepCC_FALSE=
4073fi
4074
4075
4076
4077# Check whether --enable-compiler-warnings was given.
4078if test "${enable_compiler_warnings+set}" = set; then :
4079  enableval=$enable_compiler_warnings;
4080fi
4081case $enable_compiler_warnings in #(
4082  no | min | yes | max | all) :
4083     ;; #(
4084  *) :
4085    if test "x$enable_maintainer_mode" = xyes; then :
4086  enable_compiler_warnings=yes
4087else
4088  enable_compiler_warnings=min
4089fi ;;
4090esac
4091
4092case `pwd` in
4093  *\ * | *\	*)
4094    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4095$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4096esac
4097
4098
4099
4100macro_version='2.4.6'
4101macro_revision='2.4.6'
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115ltmain=$ac_aux_dir/ltmain.sh
4116
4117# Make sure we can run config.sub.
4118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4119  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4122$as_echo_n "checking build system type... " >&6; }
4123if ${ac_cv_build+:} false; then :
4124  $as_echo_n "(cached) " >&6
4125else
4126  ac_build_alias=$build_alias
4127test "x$ac_build_alias" = x &&
4128  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4129test "x$ac_build_alias" = x &&
4130  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4131ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4132  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4136$as_echo "$ac_cv_build" >&6; }
4137case $ac_cv_build in
4138*-*-*) ;;
4139*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4140esac
4141build=$ac_cv_build
4142ac_save_IFS=$IFS; IFS='-'
4143set x $ac_cv_build
4144shift
4145build_cpu=$1
4146build_vendor=$2
4147shift; shift
4148# Remember, the first character of IFS is used to create $*,
4149# except with old shells:
4150build_os=$*
4151IFS=$ac_save_IFS
4152case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4156$as_echo_n "checking host system type... " >&6; }
4157if ${ac_cv_host+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test "x$host_alias" = x; then
4161  ac_cv_host=$ac_cv_build
4162else
4163  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4164    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4165fi
4166
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4169$as_echo "$ac_cv_host" >&6; }
4170case $ac_cv_host in
4171*-*-*) ;;
4172*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4173esac
4174host=$ac_cv_host
4175ac_save_IFS=$IFS; IFS='-'
4176set x $ac_cv_host
4177shift
4178host_cpu=$1
4179host_vendor=$2
4180shift; shift
4181# Remember, the first character of IFS is used to create $*,
4182# except with old shells:
4183host_os=$*
4184IFS=$ac_save_IFS
4185case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4186
4187
4188# Backslashify metacharacters that are still active within
4189# double-quoted strings.
4190sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4191
4192# Same as above, but do not quote variable references.
4193double_quote_subst='s/\(["`\\]\)/\\\1/g'
4194
4195# Sed substitution to delay expansion of an escaped shell variable in a
4196# double_quote_subst'ed string.
4197delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4198
4199# Sed substitution to delay expansion of an escaped single quote.
4200delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4201
4202# Sed substitution to avoid accidental globbing in evaled expressions
4203no_glob_subst='s/\*/\\\*/g'
4204
4205ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4206ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4207ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4210$as_echo_n "checking how to print strings... " >&6; }
4211# Test print first, because it will be a builtin if present.
4212if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4213   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4214  ECHO='print -r --'
4215elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4216  ECHO='printf %s\n'
4217else
4218  # Use this function as a fallback that always works.
4219  func_fallback_echo ()
4220  {
4221    eval 'cat <<_LTECHO_EOF
4222$1
4223_LTECHO_EOF'
4224  }
4225  ECHO='func_fallback_echo'
4226fi
4227
4228# func_echo_all arg...
4229# Invoke $ECHO with all args, space-separated.
4230func_echo_all ()
4231{
4232    $ECHO ""
4233}
4234
4235case $ECHO in
4236  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4237$as_echo "printf" >&6; } ;;
4238  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4239$as_echo "print -r" >&6; } ;;
4240  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4241$as_echo "cat" >&6; } ;;
4242esac
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4258$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4259if ${ac_cv_path_SED+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4263     for ac_i in 1 2 3 4 5 6 7; do
4264       ac_script="$ac_script$as_nl$ac_script"
4265     done
4266     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4267     { ac_script=; unset ac_script;}
4268     if test -z "$SED"; then
4269  ac_path_SED_found=false
4270  # Loop through the user's path and test for each of PROGNAME-LIST
4271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_prog in sed gsed; do
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4279      as_fn_executable_p "$ac_path_SED" || continue
4280# Check for GNU ac_path_SED and select it if it is found.
4281  # Check for GNU $ac_path_SED
4282case `"$ac_path_SED" --version 2>&1` in
4283*GNU*)
4284  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4285*)
4286  ac_count=0
4287  $as_echo_n 0123456789 >"conftest.in"
4288  while :
4289  do
4290    cat "conftest.in" "conftest.in" >"conftest.tmp"
4291    mv "conftest.tmp" "conftest.in"
4292    cp "conftest.in" "conftest.nl"
4293    $as_echo '' >> "conftest.nl"
4294    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4295    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4296    as_fn_arith $ac_count + 1 && ac_count=$as_val
4297    if test $ac_count -gt ${ac_path_SED_max-0}; then
4298      # Best one so far, save it but keep looking for a better one
4299      ac_cv_path_SED="$ac_path_SED"
4300      ac_path_SED_max=$ac_count
4301    fi
4302    # 10*(2^10) chars as input seems more than enough
4303    test $ac_count -gt 10 && break
4304  done
4305  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306esac
4307
4308      $ac_path_SED_found && break 3
4309    done
4310  done
4311  done
4312IFS=$as_save_IFS
4313  if test -z "$ac_cv_path_SED"; then
4314    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4315  fi
4316else
4317  ac_cv_path_SED=$SED
4318fi
4319
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4322$as_echo "$ac_cv_path_SED" >&6; }
4323 SED="$ac_cv_path_SED"
4324  rm -f conftest.sed
4325
4326test -z "$SED" && SED=sed
4327Xsed="$SED -e 1s/^X//"
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4340$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4341if ${ac_cv_path_GREP+:} false; then :
4342  $as_echo_n "(cached) " >&6
4343else
4344  if test -z "$GREP"; then
4345  ac_path_GREP_found=false
4346  # Loop through the user's path and test for each of PROGNAME-LIST
4347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349do
4350  IFS=$as_save_IFS
4351  test -z "$as_dir" && as_dir=.
4352    for ac_prog in grep ggrep; do
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4355      as_fn_executable_p "$ac_path_GREP" || continue
4356# Check for GNU ac_path_GREP and select it if it is found.
4357  # Check for GNU $ac_path_GREP
4358case `"$ac_path_GREP" --version 2>&1` in
4359*GNU*)
4360  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4361*)
4362  ac_count=0
4363  $as_echo_n 0123456789 >"conftest.in"
4364  while :
4365  do
4366    cat "conftest.in" "conftest.in" >"conftest.tmp"
4367    mv "conftest.tmp" "conftest.in"
4368    cp "conftest.in" "conftest.nl"
4369    $as_echo 'GREP' >> "conftest.nl"
4370    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4371    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4372    as_fn_arith $ac_count + 1 && ac_count=$as_val
4373    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4374      # Best one so far, save it but keep looking for a better one
4375      ac_cv_path_GREP="$ac_path_GREP"
4376      ac_path_GREP_max=$ac_count
4377    fi
4378    # 10*(2^10) chars as input seems more than enough
4379    test $ac_count -gt 10 && break
4380  done
4381  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382esac
4383
4384      $ac_path_GREP_found && break 3
4385    done
4386  done
4387  done
4388IFS=$as_save_IFS
4389  if test -z "$ac_cv_path_GREP"; then
4390    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391  fi
4392else
4393  ac_cv_path_GREP=$GREP
4394fi
4395
4396fi
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4398$as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP="$ac_cv_path_GREP"
4400
4401
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4403$as_echo_n "checking for egrep... " >&6; }
4404if ${ac_cv_path_EGREP+:} false; then :
4405  $as_echo_n "(cached) " >&6
4406else
4407  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4408   then ac_cv_path_EGREP="$GREP -E"
4409   else
4410     if test -z "$EGREP"; then
4411  ac_path_EGREP_found=false
4412  # Loop through the user's path and test for each of PROGNAME-LIST
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_prog in egrep; do
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4421      as_fn_executable_p "$ac_path_EGREP" || continue
4422# Check for GNU ac_path_EGREP and select it if it is found.
4423  # Check for GNU $ac_path_EGREP
4424case `"$ac_path_EGREP" --version 2>&1` in
4425*GNU*)
4426  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4427*)
4428  ac_count=0
4429  $as_echo_n 0123456789 >"conftest.in"
4430  while :
4431  do
4432    cat "conftest.in" "conftest.in" >"conftest.tmp"
4433    mv "conftest.tmp" "conftest.in"
4434    cp "conftest.in" "conftest.nl"
4435    $as_echo 'EGREP' >> "conftest.nl"
4436    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438    as_fn_arith $ac_count + 1 && ac_count=$as_val
4439    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440      # Best one so far, save it but keep looking for a better one
4441      ac_cv_path_EGREP="$ac_path_EGREP"
4442      ac_path_EGREP_max=$ac_count
4443    fi
4444    # 10*(2^10) chars as input seems more than enough
4445    test $ac_count -gt 10 && break
4446  done
4447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450      $ac_path_EGREP_found && break 3
4451    done
4452  done
4453  done
4454IFS=$as_save_IFS
4455  if test -z "$ac_cv_path_EGREP"; then
4456    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457  fi
4458else
4459  ac_cv_path_EGREP=$EGREP
4460fi
4461
4462   fi
4463fi
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4465$as_echo "$ac_cv_path_EGREP" >&6; }
4466 EGREP="$ac_cv_path_EGREP"
4467
4468
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4470$as_echo_n "checking for fgrep... " >&6; }
4471if ${ac_cv_path_FGREP+:} false; then :
4472  $as_echo_n "(cached) " >&6
4473else
4474  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4475   then ac_cv_path_FGREP="$GREP -F"
4476   else
4477     if test -z "$FGREP"; then
4478  ac_path_FGREP_found=false
4479  # Loop through the user's path and test for each of PROGNAME-LIST
4480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485    for ac_prog in fgrep; do
4486    for ac_exec_ext in '' $ac_executable_extensions; do
4487      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4488      as_fn_executable_p "$ac_path_FGREP" || continue
4489# Check for GNU ac_path_FGREP and select it if it is found.
4490  # Check for GNU $ac_path_FGREP
4491case `"$ac_path_FGREP" --version 2>&1` in
4492*GNU*)
4493  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4494*)
4495  ac_count=0
4496  $as_echo_n 0123456789 >"conftest.in"
4497  while :
4498  do
4499    cat "conftest.in" "conftest.in" >"conftest.tmp"
4500    mv "conftest.tmp" "conftest.in"
4501    cp "conftest.in" "conftest.nl"
4502    $as_echo 'FGREP' >> "conftest.nl"
4503    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505    as_fn_arith $ac_count + 1 && ac_count=$as_val
4506    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4507      # Best one so far, save it but keep looking for a better one
4508      ac_cv_path_FGREP="$ac_path_FGREP"
4509      ac_path_FGREP_max=$ac_count
4510    fi
4511    # 10*(2^10) chars as input seems more than enough
4512    test $ac_count -gt 10 && break
4513  done
4514  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515esac
4516
4517      $ac_path_FGREP_found && break 3
4518    done
4519  done
4520  done
4521IFS=$as_save_IFS
4522  if test -z "$ac_cv_path_FGREP"; then
4523    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524  fi
4525else
4526  ac_cv_path_FGREP=$FGREP
4527fi
4528
4529   fi
4530fi
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4532$as_echo "$ac_cv_path_FGREP" >&6; }
4533 FGREP="$ac_cv_path_FGREP"
4534
4535
4536test -z "$GREP" && GREP=grep
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556# Check whether --with-gnu-ld was given.
4557if test "${with_gnu_ld+set}" = set; then :
4558  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4559else
4560  with_gnu_ld=no
4561fi
4562
4563ac_prog=ld
4564if test yes = "$GCC"; then
4565  # Check if gcc -print-prog-name=ld gives a path.
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4567$as_echo_n "checking for ld used by $CC... " >&6; }
4568  case $host in
4569  *-*-mingw*)
4570    # gcc leaves a trailing carriage return, which upsets mingw
4571    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4572  *)
4573    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4574  esac
4575  case $ac_prog in
4576    # Accept absolute paths.
4577    [\\/]* | ?:[\\/]*)
4578      re_direlt='/[^/][^/]*/\.\./'
4579      # Canonicalize the pathname of ld
4580      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4581      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4582	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4583      done
4584      test -z "$LD" && LD=$ac_prog
4585      ;;
4586  "")
4587    # If it fails, then pretend we aren't using GCC.
4588    ac_prog=ld
4589    ;;
4590  *)
4591    # If it is relative, then search for the first ld in PATH.
4592    with_gnu_ld=unknown
4593    ;;
4594  esac
4595elif test yes = "$with_gnu_ld"; then
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4597$as_echo_n "checking for GNU ld... " >&6; }
4598else
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4600$as_echo_n "checking for non-GNU ld... " >&6; }
4601fi
4602if ${lt_cv_path_LD+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if test -z "$LD"; then
4606  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4607  for ac_dir in $PATH; do
4608    IFS=$lt_save_ifs
4609    test -z "$ac_dir" && ac_dir=.
4610    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4611      lt_cv_path_LD=$ac_dir/$ac_prog
4612      # Check to see if the program is GNU ld.  I'd rather use --version,
4613      # but apparently some variants of GNU ld only accept -v.
4614      # Break only if it was the GNU/non-GNU ld that we prefer.
4615      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4616      *GNU* | *'with BFD'*)
4617	test no != "$with_gnu_ld" && break
4618	;;
4619      *)
4620	test yes != "$with_gnu_ld" && break
4621	;;
4622      esac
4623    fi
4624  done
4625  IFS=$lt_save_ifs
4626else
4627  lt_cv_path_LD=$LD # Let the user override the test with a path.
4628fi
4629fi
4630
4631LD=$lt_cv_path_LD
4632if test -n "$LD"; then
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4634$as_echo "$LD" >&6; }
4635else
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
4638fi
4639test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4641$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4642if ${lt_cv_prog_gnu_ld+:} false; then :
4643  $as_echo_n "(cached) " >&6
4644else
4645  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4646case `$LD -v 2>&1 </dev/null` in
4647*GNU* | *'with BFD'*)
4648  lt_cv_prog_gnu_ld=yes
4649  ;;
4650*)
4651  lt_cv_prog_gnu_ld=no
4652  ;;
4653esac
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4656$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4657with_gnu_ld=$lt_cv_prog_gnu_ld
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4668$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4669if ${lt_cv_path_NM+:} false; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  if test -n "$NM"; then
4673  # Let the user override the test.
4674  lt_cv_path_NM=$NM
4675else
4676  lt_nm_to_check=${ac_tool_prefix}nm
4677  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4678    lt_nm_to_check="$lt_nm_to_check nm"
4679  fi
4680  for lt_tmp_nm in $lt_nm_to_check; do
4681    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4682    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4683      IFS=$lt_save_ifs
4684      test -z "$ac_dir" && ac_dir=.
4685      tmp_nm=$ac_dir/$lt_tmp_nm
4686      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4687	# Check to see if the nm accepts a BSD-compat flag.
4688	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4689	#   nm: unknown option "B" ignored
4690	# Tru64's nm complains that /dev/null is an invalid object file
4691	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4692	case $build_os in
4693	mingw*) lt_bad_file=conftest.nm/nofile ;;
4694	*) lt_bad_file=/dev/null ;;
4695	esac
4696	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4697	*$lt_bad_file* | *'Invalid file or object type'*)
4698	  lt_cv_path_NM="$tmp_nm -B"
4699	  break 2
4700	  ;;
4701	*)
4702	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4703	  */dev/null*)
4704	    lt_cv_path_NM="$tmp_nm -p"
4705	    break 2
4706	    ;;
4707	  *)
4708	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4709	    continue # so that we can try to find one that supports BSD flags
4710	    ;;
4711	  esac
4712	  ;;
4713	esac
4714      fi
4715    done
4716    IFS=$lt_save_ifs
4717  done
4718  : ${lt_cv_path_NM=no}
4719fi
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4722$as_echo "$lt_cv_path_NM" >&6; }
4723if test no != "$lt_cv_path_NM"; then
4724  NM=$lt_cv_path_NM
4725else
4726  # Didn't find any BSD compatible name lister, look for dumpbin.
4727  if test -n "$DUMPBIN"; then :
4728    # Let the user override the test.
4729  else
4730    if test -n "$ac_tool_prefix"; then
4731  for ac_prog in dumpbin "link -dump"
4732  do
4733    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736$as_echo_n "checking for $ac_word... " >&6; }
4737if ${ac_cv_prog_DUMPBIN+:} false; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  if test -n "$DUMPBIN"; then
4741  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  test -z "$as_dir" && as_dir=.
4748    for ac_exec_ext in '' $ac_executable_extensions; do
4749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752    break 2
4753  fi
4754done
4755  done
4756IFS=$as_save_IFS
4757
4758fi
4759fi
4760DUMPBIN=$ac_cv_prog_DUMPBIN
4761if test -n "$DUMPBIN"; then
4762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4763$as_echo "$DUMPBIN" >&6; }
4764else
4765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770    test -n "$DUMPBIN" && break
4771  done
4772fi
4773if test -z "$DUMPBIN"; then
4774  ac_ct_DUMPBIN=$DUMPBIN
4775  for ac_prog in dumpbin "link -dump"
4776do
4777  # Extract the first word of "$ac_prog", so it can be a program name with args.
4778set dummy $ac_prog; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  if test -n "$ac_ct_DUMPBIN"; then
4785  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4805if test -n "$ac_ct_DUMPBIN"; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4807$as_echo "$ac_ct_DUMPBIN" >&6; }
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814  test -n "$ac_ct_DUMPBIN" && break
4815done
4816
4817  if test "x$ac_ct_DUMPBIN" = x; then
4818    DUMPBIN=":"
4819  else
4820    case $cross_compiling:$ac_tool_warned in
4821yes:)
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4824ac_tool_warned=yes ;;
4825esac
4826    DUMPBIN=$ac_ct_DUMPBIN
4827  fi
4828fi
4829
4830    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4831    *COFF*)
4832      DUMPBIN="$DUMPBIN -symbols -headers"
4833      ;;
4834    *)
4835      DUMPBIN=:
4836      ;;
4837    esac
4838  fi
4839
4840  if test : != "$DUMPBIN"; then
4841    NM=$DUMPBIN
4842  fi
4843fi
4844test -z "$NM" && NM=nm
4845
4846
4847
4848
4849
4850
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4852$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4853if ${lt_cv_nm_interface+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  lt_cv_nm_interface="BSD nm"
4857  echo "int some_variable = 0;" > conftest.$ac_ext
4858  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4859  (eval "$ac_compile" 2>conftest.err)
4860  cat conftest.err >&5
4861  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4862  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4863  cat conftest.err >&5
4864  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4865  cat conftest.out >&5
4866  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4867    lt_cv_nm_interface="MS dumpbin"
4868  fi
4869  rm -f conftest*
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4872$as_echo "$lt_cv_nm_interface" >&6; }
4873
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4875$as_echo_n "checking whether ln -s works... " >&6; }
4876LN_S=$as_ln_s
4877if test "$LN_S" = "ln -s"; then
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4879$as_echo "yes" >&6; }
4880else
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4882$as_echo "no, using $LN_S" >&6; }
4883fi
4884
4885# find the maximum length of command line arguments
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4887$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4888if ${lt_cv_sys_max_cmd_len+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891    i=0
4892  teststring=ABCD
4893
4894  case $build_os in
4895  msdosdjgpp*)
4896    # On DJGPP, this test can blow up pretty badly due to problems in libc
4897    # (any single argument exceeding 2000 bytes causes a buffer overrun
4898    # during glob expansion).  Even if it were fixed, the result of this
4899    # check would be larger than it should be.
4900    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4901    ;;
4902
4903  gnu*)
4904    # Under GNU Hurd, this test is not required because there is
4905    # no limit to the length of command line arguments.
4906    # Libtool will interpret -1 as no limit whatsoever
4907    lt_cv_sys_max_cmd_len=-1;
4908    ;;
4909
4910  cygwin* | mingw* | cegcc*)
4911    # On Win9x/ME, this test blows up -- it succeeds, but takes
4912    # about 5 minutes as the teststring grows exponentially.
4913    # Worse, since 9x/ME are not pre-emptively multitasking,
4914    # you end up with a "frozen" computer, even though with patience
4915    # the test eventually succeeds (with a max line length of 256k).
4916    # Instead, let's just punt: use the minimum linelength reported by
4917    # all of the supported platforms: 8192 (on NT/2K/XP).
4918    lt_cv_sys_max_cmd_len=8192;
4919    ;;
4920
4921  mint*)
4922    # On MiNT this can take a long time and run out of memory.
4923    lt_cv_sys_max_cmd_len=8192;
4924    ;;
4925
4926  amigaos*)
4927    # On AmigaOS with pdksh, this test takes hours, literally.
4928    # So we just punt and use a minimum line length of 8192.
4929    lt_cv_sys_max_cmd_len=8192;
4930    ;;
4931
4932  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4933    # This has been around since 386BSD, at least.  Likely further.
4934    if test -x /sbin/sysctl; then
4935      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4936    elif test -x /usr/sbin/sysctl; then
4937      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4938    else
4939      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4940    fi
4941    # And add a safety zone
4942    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4943    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4944    ;;
4945
4946  interix*)
4947    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4948    lt_cv_sys_max_cmd_len=196608
4949    ;;
4950
4951  os2*)
4952    # The test takes a long time on OS/2.
4953    lt_cv_sys_max_cmd_len=8192
4954    ;;
4955
4956  osf*)
4957    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4958    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4959    # nice to cause kernel panics so lets avoid the loop below.
4960    # First set a reasonable default.
4961    lt_cv_sys_max_cmd_len=16384
4962    #
4963    if test -x /sbin/sysconfig; then
4964      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4965        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4966      esac
4967    fi
4968    ;;
4969  sco3.2v5*)
4970    lt_cv_sys_max_cmd_len=102400
4971    ;;
4972  sysv5* | sco5v6* | sysv4.2uw2*)
4973    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4974    if test -n "$kargmax"; then
4975      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4976    else
4977      lt_cv_sys_max_cmd_len=32768
4978    fi
4979    ;;
4980  *)
4981    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4982    if test -n "$lt_cv_sys_max_cmd_len" && \
4983       test undefined != "$lt_cv_sys_max_cmd_len"; then
4984      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4985      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4986    else
4987      # Make teststring a little bigger before we do anything with it.
4988      # a 1K string should be a reasonable start.
4989      for i in 1 2 3 4 5 6 7 8; do
4990        teststring=$teststring$teststring
4991      done
4992      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4993      # If test is not a shell built-in, we'll probably end up computing a
4994      # maximum length that is only half of the actual maximum length, but
4995      # we can't tell.
4996      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4997	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4998	      test 17 != "$i" # 1/2 MB should be enough
4999      do
5000        i=`expr $i + 1`
5001        teststring=$teststring$teststring
5002      done
5003      # Only check the string length outside the loop.
5004      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5005      teststring=
5006      # Add a significant safety factor because C++ compilers can tack on
5007      # massive amounts of additional arguments before passing them to the
5008      # linker.  It appears as though 1/2 is a usable value.
5009      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5010    fi
5011    ;;
5012  esac
5013
5014fi
5015
5016if test -n "$lt_cv_sys_max_cmd_len"; then
5017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5018$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5019else
5020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5021$as_echo "none" >&6; }
5022fi
5023max_cmd_len=$lt_cv_sys_max_cmd_len
5024
5025
5026
5027
5028
5029
5030: ${CP="cp -f"}
5031: ${MV="mv -f"}
5032: ${RM="rm -f"}
5033
5034if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035  lt_unset=unset
5036else
5037  lt_unset=false
5038fi
5039
5040
5041
5042
5043
5044# test EBCDIC or ASCII
5045case `echo X|tr X '\101'` in
5046 A) # ASCII based system
5047    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048  lt_SP2NL='tr \040 \012'
5049  lt_NL2SP='tr \015\012 \040\040'
5050  ;;
5051 *) # EBCDIC based system
5052  lt_SP2NL='tr \100 \n'
5053  lt_NL2SP='tr \r\n \100\100'
5054  ;;
5055esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5066$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5067if ${lt_cv_to_host_file_cmd+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  case $host in
5071  *-*-mingw* )
5072    case $build in
5073      *-*-mingw* ) # actually msys
5074        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5075        ;;
5076      *-*-cygwin* )
5077        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5078        ;;
5079      * ) # otherwise, assume *nix
5080        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5081        ;;
5082    esac
5083    ;;
5084  *-*-cygwin* )
5085    case $build in
5086      *-*-mingw* ) # actually msys
5087        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5088        ;;
5089      *-*-cygwin* )
5090        lt_cv_to_host_file_cmd=func_convert_file_noop
5091        ;;
5092      * ) # otherwise, assume *nix
5093        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5094        ;;
5095    esac
5096    ;;
5097  * ) # unhandled hosts (and "normal" native builds)
5098    lt_cv_to_host_file_cmd=func_convert_file_noop
5099    ;;
5100esac
5101
5102fi
5103
5104to_host_file_cmd=$lt_cv_to_host_file_cmd
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5106$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5107
5108
5109
5110
5111
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5113$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5114if ${lt_cv_to_tool_file_cmd+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  #assume ordinary cross tools, or native build.
5118lt_cv_to_tool_file_cmd=func_convert_file_noop
5119case $host in
5120  *-*-mingw* )
5121    case $build in
5122      *-*-mingw* ) # actually msys
5123        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5124        ;;
5125    esac
5126    ;;
5127esac
5128
5129fi
5130
5131to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5133$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5134
5135
5136
5137
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5140$as_echo_n "checking for $LD option to reload object files... " >&6; }
5141if ${lt_cv_ld_reload_flag+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  lt_cv_ld_reload_flag='-r'
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5147$as_echo "$lt_cv_ld_reload_flag" >&6; }
5148reload_flag=$lt_cv_ld_reload_flag
5149case $reload_flag in
5150"" | " "*) ;;
5151*) reload_flag=" $reload_flag" ;;
5152esac
5153reload_cmds='$LD$reload_flag -o $output$reload_objs'
5154case $host_os in
5155  cygwin* | mingw* | pw32* | cegcc*)
5156    if test yes != "$GCC"; then
5157      reload_cmds=false
5158    fi
5159    ;;
5160  darwin*)
5161    if test yes = "$GCC"; then
5162      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5163    else
5164      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5165    fi
5166    ;;
5167esac
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177if test -n "$ac_tool_prefix"; then
5178  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5179set dummy ${ac_tool_prefix}objdump; ac_word=$2
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if ${ac_cv_prog_OBJDUMP+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  if test -n "$OBJDUMP"; then
5186  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193    for ac_exec_ext in '' $ac_executable_extensions; do
5194  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200  done
5201IFS=$as_save_IFS
5202
5203fi
5204fi
5205OBJDUMP=$ac_cv_prog_OBJDUMP
5206if test -n "$OBJDUMP"; then
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5208$as_echo "$OBJDUMP" >&6; }
5209else
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5212fi
5213
5214
5215fi
5216if test -z "$ac_cv_prog_OBJDUMP"; then
5217  ac_ct_OBJDUMP=$OBJDUMP
5218  # Extract the first word of "objdump", so it can be a program name with args.
5219set dummy objdump; ac_word=$2
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221$as_echo_n "checking for $ac_word... " >&6; }
5222if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  if test -n "$ac_ct_OBJDUMP"; then
5226  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231  IFS=$as_save_IFS
5232  test -z "$as_dir" && as_dir=.
5233    for ac_exec_ext in '' $ac_executable_extensions; do
5234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237    break 2
5238  fi
5239done
5240  done
5241IFS=$as_save_IFS
5242
5243fi
5244fi
5245ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5246if test -n "$ac_ct_OBJDUMP"; then
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5248$as_echo "$ac_ct_OBJDUMP" >&6; }
5249else
5250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251$as_echo "no" >&6; }
5252fi
5253
5254  if test "x$ac_ct_OBJDUMP" = x; then
5255    OBJDUMP="false"
5256  else
5257    case $cross_compiling:$ac_tool_warned in
5258yes:)
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261ac_tool_warned=yes ;;
5262esac
5263    OBJDUMP=$ac_ct_OBJDUMP
5264  fi
5265else
5266  OBJDUMP="$ac_cv_prog_OBJDUMP"
5267fi
5268
5269test -z "$OBJDUMP" && OBJDUMP=objdump
5270
5271
5272
5273
5274
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5277$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5278if ${lt_cv_deplibs_check_method+:} false; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  lt_cv_file_magic_cmd='$MAGIC_CMD'
5282lt_cv_file_magic_test_file=
5283lt_cv_deplibs_check_method='unknown'
5284# Need to set the preceding variable on all platforms that support
5285# interlibrary dependencies.
5286# 'none' -- dependencies not supported.
5287# 'unknown' -- same as none, but documents that we really don't know.
5288# 'pass_all' -- all dependencies passed with no checks.
5289# 'test_compile' -- check by making test program.
5290# 'file_magic [[regex]]' -- check by looking for files in library path
5291# that responds to the $file_magic_cmd with a given extended regex.
5292# If you have 'file' or equivalent on your system and you're not sure
5293# whether 'pass_all' will *always* work, you probably want this one.
5294
5295case $host_os in
5296aix[4-9]*)
5297  lt_cv_deplibs_check_method=pass_all
5298  ;;
5299
5300beos*)
5301  lt_cv_deplibs_check_method=pass_all
5302  ;;
5303
5304bsdi[45]*)
5305  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5306  lt_cv_file_magic_cmd='/usr/bin/file -L'
5307  lt_cv_file_magic_test_file=/shlib/libc.so
5308  ;;
5309
5310cygwin*)
5311  # func_win32_libid is a shell function defined in ltmain.sh
5312  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5313  lt_cv_file_magic_cmd='func_win32_libid'
5314  ;;
5315
5316mingw* | pw32*)
5317  # Base MSYS/MinGW do not provide the 'file' command needed by
5318  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5319  # unless we find 'file', for example because we are cross-compiling.
5320  if ( file / ) >/dev/null 2>&1; then
5321    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5322    lt_cv_file_magic_cmd='func_win32_libid'
5323  else
5324    # Keep this pattern in sync with the one in func_win32_libid.
5325    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5326    lt_cv_file_magic_cmd='$OBJDUMP -f'
5327  fi
5328  ;;
5329
5330cegcc*)
5331  # use the weaker test based on 'objdump'. See mingw*.
5332  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5333  lt_cv_file_magic_cmd='$OBJDUMP -f'
5334  ;;
5335
5336darwin* | rhapsody*)
5337  lt_cv_deplibs_check_method=pass_all
5338  ;;
5339
5340freebsd* | dragonfly*)
5341  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5342    case $host_cpu in
5343    i*86 )
5344      # Not sure whether the presence of OpenBSD here was a mistake.
5345      # Let's accept both of them until this is cleared up.
5346      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5347      lt_cv_file_magic_cmd=/usr/bin/file
5348      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5349      ;;
5350    esac
5351  else
5352    lt_cv_deplibs_check_method=pass_all
5353  fi
5354  ;;
5355
5356haiku*)
5357  lt_cv_deplibs_check_method=pass_all
5358  ;;
5359
5360hpux10.20* | hpux11*)
5361  lt_cv_file_magic_cmd=/usr/bin/file
5362  case $host_cpu in
5363  ia64*)
5364    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5365    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5366    ;;
5367  hppa*64*)
5368    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5369    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5370    ;;
5371  *)
5372    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5373    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5374    ;;
5375  esac
5376  ;;
5377
5378interix[3-9]*)
5379  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5380  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5381  ;;
5382
5383irix5* | irix6* | nonstopux*)
5384  case $LD in
5385  *-32|*"-32 ") libmagic=32-bit;;
5386  *-n32|*"-n32 ") libmagic=N32;;
5387  *-64|*"-64 ") libmagic=64-bit;;
5388  *) libmagic=never-match;;
5389  esac
5390  lt_cv_deplibs_check_method=pass_all
5391  ;;
5392
5393# This must be glibc/ELF.
5394linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5395  lt_cv_deplibs_check_method=pass_all
5396  ;;
5397
5398netbsd*)
5399  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5400    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5401  else
5402    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5403  fi
5404  ;;
5405
5406newos6*)
5407  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5408  lt_cv_file_magic_cmd=/usr/bin/file
5409  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5410  ;;
5411
5412*nto* | *qnx*)
5413  lt_cv_deplibs_check_method=pass_all
5414  ;;
5415
5416openbsd* | bitrig*)
5417  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5418    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5419  else
5420    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5421  fi
5422  ;;
5423
5424osf3* | osf4* | osf5*)
5425  lt_cv_deplibs_check_method=pass_all
5426  ;;
5427
5428rdos*)
5429  lt_cv_deplibs_check_method=pass_all
5430  ;;
5431
5432solaris*)
5433  lt_cv_deplibs_check_method=pass_all
5434  ;;
5435
5436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5437  lt_cv_deplibs_check_method=pass_all
5438  ;;
5439
5440sysv4 | sysv4.3*)
5441  case $host_vendor in
5442  motorola)
5443    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]'
5444    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5445    ;;
5446  ncr)
5447    lt_cv_deplibs_check_method=pass_all
5448    ;;
5449  sequent)
5450    lt_cv_file_magic_cmd='/bin/file'
5451    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5452    ;;
5453  sni)
5454    lt_cv_file_magic_cmd='/bin/file'
5455    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5456    lt_cv_file_magic_test_file=/lib/libc.so
5457    ;;
5458  siemens)
5459    lt_cv_deplibs_check_method=pass_all
5460    ;;
5461  pc)
5462    lt_cv_deplibs_check_method=pass_all
5463    ;;
5464  esac
5465  ;;
5466
5467tpf*)
5468  lt_cv_deplibs_check_method=pass_all
5469  ;;
5470os2*)
5471  lt_cv_deplibs_check_method=pass_all
5472  ;;
5473esac
5474
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5477$as_echo "$lt_cv_deplibs_check_method" >&6; }
5478
5479file_magic_glob=
5480want_nocaseglob=no
5481if test "$build" = "$host"; then
5482  case $host_os in
5483  mingw* | pw32*)
5484    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5485      want_nocaseglob=yes
5486    else
5487      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5488    fi
5489    ;;
5490  esac
5491fi
5492
5493file_magic_cmd=$lt_cv_file_magic_cmd
5494deplibs_check_method=$lt_cv_deplibs_check_method
5495test -z "$deplibs_check_method" && deplibs_check_method=unknown
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518if test -n "$ac_tool_prefix"; then
5519  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5520set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522$as_echo_n "checking for $ac_word... " >&6; }
5523if ${ac_cv_prog_DLLTOOL+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  if test -n "$DLLTOOL"; then
5527  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532  IFS=$as_save_IFS
5533  test -z "$as_dir" && as_dir=.
5534    for ac_exec_ext in '' $ac_executable_extensions; do
5535  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5537    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538    break 2
5539  fi
5540done
5541  done
5542IFS=$as_save_IFS
5543
5544fi
5545fi
5546DLLTOOL=$ac_cv_prog_DLLTOOL
5547if test -n "$DLLTOOL"; then
5548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5549$as_echo "$DLLTOOL" >&6; }
5550else
5551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555
5556fi
5557if test -z "$ac_cv_prog_DLLTOOL"; then
5558  ac_ct_DLLTOOL=$DLLTOOL
5559  # Extract the first word of "dlltool", so it can be a program name with args.
5560set dummy dlltool; ac_word=$2
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562$as_echo_n "checking for $ac_word... " >&6; }
5563if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5564  $as_echo_n "(cached) " >&6
5565else
5566  if test -n "$ac_ct_DLLTOOL"; then
5567  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572  IFS=$as_save_IFS
5573  test -z "$as_dir" && as_dir=.
5574    for ac_exec_ext in '' $ac_executable_extensions; do
5575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578    break 2
5579  fi
5580done
5581  done
5582IFS=$as_save_IFS
5583
5584fi
5585fi
5586ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5587if test -n "$ac_ct_DLLTOOL"; then
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5589$as_echo "$ac_ct_DLLTOOL" >&6; }
5590else
5591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592$as_echo "no" >&6; }
5593fi
5594
5595  if test "x$ac_ct_DLLTOOL" = x; then
5596    DLLTOOL="false"
5597  else
5598    case $cross_compiling:$ac_tool_warned in
5599yes:)
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602ac_tool_warned=yes ;;
5603esac
5604    DLLTOOL=$ac_ct_DLLTOOL
5605  fi
5606else
5607  DLLTOOL="$ac_cv_prog_DLLTOOL"
5608fi
5609
5610test -z "$DLLTOOL" && DLLTOOL=dlltool
5611
5612
5613
5614
5615
5616
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5619$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5620if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  lt_cv_sharedlib_from_linklib_cmd='unknown'
5624
5625case $host_os in
5626cygwin* | mingw* | pw32* | cegcc*)
5627  # two different shell functions defined in ltmain.sh;
5628  # decide which one to use based on capabilities of $DLLTOOL
5629  case `$DLLTOOL --help 2>&1` in
5630  *--identify-strict*)
5631    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5632    ;;
5633  *)
5634    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5635    ;;
5636  esac
5637  ;;
5638*)
5639  # fallback: assume linklib IS sharedlib
5640  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5641  ;;
5642esac
5643
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5646$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5647sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5648test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5649
5650
5651
5652
5653
5654
5655
5656if test -n "$ac_tool_prefix"; then
5657  for ac_prog in ar
5658  do
5659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
5663if ${ac_cv_prog_AR+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  if test -n "$AR"; then
5667  ac_cv_prog_AR="$AR" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672  IFS=$as_save_IFS
5673  test -z "$as_dir" && as_dir=.
5674    for ac_exec_ext in '' $ac_executable_extensions; do
5675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678    break 2
5679  fi
5680done
5681  done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686AR=$ac_cv_prog_AR
5687if test -n "$AR"; then
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5689$as_echo "$AR" >&6; }
5690else
5691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696    test -n "$AR" && break
5697  done
5698fi
5699if test -z "$AR"; then
5700  ac_ct_AR=$AR
5701  for ac_prog in ar
5702do
5703  # Extract the first word of "$ac_prog", so it can be a program name with args.
5704set dummy $ac_prog; ac_word=$2
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706$as_echo_n "checking for $ac_word... " >&6; }
5707if ${ac_cv_prog_ac_ct_AR+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -n "$ac_ct_AR"; then
5711  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716  IFS=$as_save_IFS
5717  test -z "$as_dir" && as_dir=.
5718    for ac_exec_ext in '' $ac_executable_extensions; do
5719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720    ac_cv_prog_ac_ct_AR="$ac_prog"
5721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722    break 2
5723  fi
5724done
5725  done
5726IFS=$as_save_IFS
5727
5728fi
5729fi
5730ac_ct_AR=$ac_cv_prog_ac_ct_AR
5731if test -n "$ac_ct_AR"; then
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5733$as_echo "$ac_ct_AR" >&6; }
5734else
5735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }
5737fi
5738
5739
5740  test -n "$ac_ct_AR" && break
5741done
5742
5743  if test "x$ac_ct_AR" = x; then
5744    AR="false"
5745  else
5746    case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752    AR=$ac_ct_AR
5753  fi
5754fi
5755
5756: ${AR=ar}
5757: ${AR_FLAGS=cru}
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5770$as_echo_n "checking for archiver @FILE support... " >&6; }
5771if ${lt_cv_ar_at_file+:} false; then :
5772  $as_echo_n "(cached) " >&6
5773else
5774  lt_cv_ar_at_file=no
5775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777
5778int
5779main ()
5780{
5781
5782  ;
5783  return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787  echo conftest.$ac_objext > conftest.lst
5788      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5789      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5790  (eval $lt_ar_try) 2>&5
5791  ac_status=$?
5792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793  test $ac_status = 0; }
5794      if test 0 -eq "$ac_status"; then
5795	# Ensure the archiver fails upon bogus file names.
5796	rm -f conftest.$ac_objext libconftest.a
5797	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5798  (eval $lt_ar_try) 2>&5
5799  ac_status=$?
5800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801  test $ac_status = 0; }
5802	if test 0 -ne "$ac_status"; then
5803          lt_cv_ar_at_file=@
5804        fi
5805      fi
5806      rm -f conftest.* libconftest.a
5807
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810
5811fi
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5813$as_echo "$lt_cv_ar_at_file" >&6; }
5814
5815if test no = "$lt_cv_ar_at_file"; then
5816  archiver_list_spec=
5817else
5818  archiver_list_spec=$lt_cv_ar_at_file
5819fi
5820
5821
5822
5823
5824
5825
5826
5827if test -n "$ac_tool_prefix"; then
5828  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5829set dummy ${ac_tool_prefix}strip; ac_word=$2
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831$as_echo_n "checking for $ac_word... " >&6; }
5832if ${ac_cv_prog_STRIP+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  if test -n "$STRIP"; then
5836  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843    for ac_exec_ext in '' $ac_executable_extensions; do
5844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847    break 2
5848  fi
5849done
5850  done
5851IFS=$as_save_IFS
5852
5853fi
5854fi
5855STRIP=$ac_cv_prog_STRIP
5856if test -n "$STRIP"; then
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5858$as_echo "$STRIP" >&6; }
5859else
5860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861$as_echo "no" >&6; }
5862fi
5863
5864
5865fi
5866if test -z "$ac_cv_prog_STRIP"; then
5867  ac_ct_STRIP=$STRIP
5868  # Extract the first word of "strip", so it can be a program name with args.
5869set dummy strip; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  if test -n "$ac_ct_STRIP"; then
5876  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881  IFS=$as_save_IFS
5882  test -z "$as_dir" && as_dir=.
5883    for ac_exec_ext in '' $ac_executable_extensions; do
5884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885    ac_cv_prog_ac_ct_STRIP="strip"
5886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887    break 2
5888  fi
5889done
5890  done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5896if test -n "$ac_ct_STRIP"; then
5897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5898$as_echo "$ac_ct_STRIP" >&6; }
5899else
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904  if test "x$ac_ct_STRIP" = x; then
5905    STRIP=":"
5906  else
5907    case $cross_compiling:$ac_tool_warned in
5908yes:)
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5911ac_tool_warned=yes ;;
5912esac
5913    STRIP=$ac_ct_STRIP
5914  fi
5915else
5916  STRIP="$ac_cv_prog_STRIP"
5917fi
5918
5919test -z "$STRIP" && STRIP=:
5920
5921
5922
5923
5924
5925
5926if test -n "$ac_tool_prefix"; then
5927  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5928set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930$as_echo_n "checking for $ac_word... " >&6; }
5931if ${ac_cv_prog_RANLIB+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934  if test -n "$RANLIB"; then
5935  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940  IFS=$as_save_IFS
5941  test -z "$as_dir" && as_dir=.
5942    for ac_exec_ext in '' $ac_executable_extensions; do
5943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946    break 2
5947  fi
5948done
5949  done
5950IFS=$as_save_IFS
5951
5952fi
5953fi
5954RANLIB=$ac_cv_prog_RANLIB
5955if test -n "$RANLIB"; then
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5957$as_echo "$RANLIB" >&6; }
5958else
5959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960$as_echo "no" >&6; }
5961fi
5962
5963
5964fi
5965if test -z "$ac_cv_prog_RANLIB"; then
5966  ac_ct_RANLIB=$RANLIB
5967  # Extract the first word of "ranlib", so it can be a program name with args.
5968set dummy ranlib; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  if test -n "$ac_ct_RANLIB"; then
5975  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982    for ac_exec_ext in '' $ac_executable_extensions; do
5983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984    ac_cv_prog_ac_ct_RANLIB="ranlib"
5985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989  done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5995if test -n "$ac_ct_RANLIB"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5997$as_echo "$ac_ct_RANLIB" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003  if test "x$ac_ct_RANLIB" = x; then
6004    RANLIB=":"
6005  else
6006    case $cross_compiling:$ac_tool_warned in
6007yes:)
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010ac_tool_warned=yes ;;
6011esac
6012    RANLIB=$ac_ct_RANLIB
6013  fi
6014else
6015  RANLIB="$ac_cv_prog_RANLIB"
6016fi
6017
6018test -z "$RANLIB" && RANLIB=:
6019
6020
6021
6022
6023
6024
6025# Determine commands to create old-style static archives.
6026old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6027old_postinstall_cmds='chmod 644 $oldlib'
6028old_postuninstall_cmds=
6029
6030if test -n "$RANLIB"; then
6031  case $host_os in
6032  bitrig* | openbsd*)
6033    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6034    ;;
6035  *)
6036    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6037    ;;
6038  esac
6039  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6040fi
6041
6042case $host_os in
6043  darwin*)
6044    lock_old_archive_extraction=yes ;;
6045  *)
6046    lock_old_archive_extraction=no ;;
6047esac
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087# If no C compiler was specified, use CC.
6088LTCC=${LTCC-"$CC"}
6089
6090# If no C compiler flags were specified, use CFLAGS.
6091LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6092
6093# Allow CC to be a program name with arguments.
6094compiler=$CC
6095
6096
6097# Check for command to grab the raw symbol name followed by C symbol from nm.
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6099$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6100if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103
6104# These are sane defaults that work on at least a few old systems.
6105# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6106
6107# Character class describing NM global symbol codes.
6108symcode='[BCDEGRST]'
6109
6110# Regexp to match symbols that can be accessed directly from C.
6111sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6112
6113# Define system-specific variables.
6114case $host_os in
6115aix*)
6116  symcode='[BCDT]'
6117  ;;
6118cygwin* | mingw* | pw32* | cegcc*)
6119  symcode='[ABCDGISTW]'
6120  ;;
6121hpux*)
6122  if test ia64 = "$host_cpu"; then
6123    symcode='[ABCDEGRST]'
6124  fi
6125  ;;
6126irix* | nonstopux*)
6127  symcode='[BCDEGRST]'
6128  ;;
6129osf*)
6130  symcode='[BCDEGQRST]'
6131  ;;
6132solaris*)
6133  symcode='[BDRT]'
6134  ;;
6135sco3.2v5*)
6136  symcode='[DT]'
6137  ;;
6138sysv4.2uw2*)
6139  symcode='[DT]'
6140  ;;
6141sysv5* | sco5v6* | unixware* | OpenUNIX*)
6142  symcode='[ABDT]'
6143  ;;
6144sysv4)
6145  symcode='[DFNSTU]'
6146  ;;
6147esac
6148
6149# If we're using GNU nm, then use its standard symbol codes.
6150case `$NM -V 2>&1` in
6151*GNU* | *'with BFD'*)
6152  symcode='[ABCDGIRSTW]' ;;
6153esac
6154
6155if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6156  # Gets list of data symbols to import.
6157  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6158  # Adjust the below global symbol transforms to fixup imported variables.
6159  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6160  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6161  lt_c_name_lib_hook="\
6162  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6163  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6164else
6165  # Disable hooks by default.
6166  lt_cv_sys_global_symbol_to_import=
6167  lt_cdecl_hook=
6168  lt_c_name_hook=
6169  lt_c_name_lib_hook=
6170fi
6171
6172# Transform an extracted symbol line into a proper C declaration.
6173# Some systems (esp. on ia64) link data and code symbols differently,
6174# so use this general approach.
6175lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6176$lt_cdecl_hook\
6177" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6178" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6179
6180# Transform an extracted symbol line into symbol name and symbol address
6181lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6182$lt_c_name_hook\
6183" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6184" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6185
6186# Transform an extracted symbol line into symbol name with lib prefix and
6187# symbol address.
6188lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6189$lt_c_name_lib_hook\
6190" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6191" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6192" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6193
6194# Handle CRLF in mingw tool chain
6195opt_cr=
6196case $build_os in
6197mingw*)
6198  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6199  ;;
6200esac
6201
6202# Try without a prefix underscore, then with it.
6203for ac_symprfx in "" "_"; do
6204
6205  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6206  symxfrm="\\1 $ac_symprfx\\2 \\2"
6207
6208  # Write the raw and C identifiers.
6209  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6210    # Fake it for dumpbin and say T for any non-static function,
6211    # D for any global variable and I for any imported variable.
6212    # Also find C++ and __fastcall symbols from MSVC++,
6213    # which start with @ or ?.
6214    lt_cv_sys_global_symbol_pipe="$AWK '"\
6215"     {last_section=section; section=\$ 3};"\
6216"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6217"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6218"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6219"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6220"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6221"     \$ 0!~/External *\|/{next};"\
6222"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6223"     {if(hide[section]) next};"\
6224"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6225"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6226"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6227"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6228"     ' prfx=^$ac_symprfx"
6229  else
6230    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6231  fi
6232  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6233
6234  # Check to see that the pipe works correctly.
6235  pipe_works=no
6236
6237  rm -f conftest*
6238  cat > conftest.$ac_ext <<_LT_EOF
6239#ifdef __cplusplus
6240extern "C" {
6241#endif
6242char nm_test_var;
6243void nm_test_func(void);
6244void nm_test_func(void){}
6245#ifdef __cplusplus
6246}
6247#endif
6248int main(){nm_test_var='a';nm_test_func();return(0);}
6249_LT_EOF
6250
6251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6252  (eval $ac_compile) 2>&5
6253  ac_status=$?
6254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255  test $ac_status = 0; }; then
6256    # Now try to grab the symbols.
6257    nlist=conftest.nm
6258    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6259  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6260  ac_status=$?
6261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262  test $ac_status = 0; } && test -s "$nlist"; then
6263      # Try sorting and uniquifying the output.
6264      if sort "$nlist" | uniq > "$nlist"T; then
6265	mv -f "$nlist"T "$nlist"
6266      else
6267	rm -f "$nlist"T
6268      fi
6269
6270      # Make sure that we snagged all the symbols we need.
6271      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6272	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6273	  cat <<_LT_EOF > conftest.$ac_ext
6274/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6275#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6276/* DATA imports from DLLs on WIN32 can't be const, because runtime
6277   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6278# define LT_DLSYM_CONST
6279#elif defined __osf__
6280/* This system does not cope well with relocations in const data.  */
6281# define LT_DLSYM_CONST
6282#else
6283# define LT_DLSYM_CONST const
6284#endif
6285
6286#ifdef __cplusplus
6287extern "C" {
6288#endif
6289
6290_LT_EOF
6291	  # Now generate the symbol file.
6292	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6293
6294	  cat <<_LT_EOF >> conftest.$ac_ext
6295
6296/* The mapping between symbol names and symbols.  */
6297LT_DLSYM_CONST struct {
6298  const char *name;
6299  void       *address;
6300}
6301lt__PROGRAM__LTX_preloaded_symbols[] =
6302{
6303  { "@PROGRAM@", (void *) 0 },
6304_LT_EOF
6305	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6306	  cat <<\_LT_EOF >> conftest.$ac_ext
6307  {0, (void *) 0}
6308};
6309
6310/* This works around a problem in FreeBSD linker */
6311#ifdef FREEBSD_WORKAROUND
6312static const void *lt_preloaded_setup() {
6313  return lt__PROGRAM__LTX_preloaded_symbols;
6314}
6315#endif
6316
6317#ifdef __cplusplus
6318}
6319#endif
6320_LT_EOF
6321	  # Now try linking the two files.
6322	  mv conftest.$ac_objext conftstm.$ac_objext
6323	  lt_globsym_save_LIBS=$LIBS
6324	  lt_globsym_save_CFLAGS=$CFLAGS
6325	  LIBS=conftstm.$ac_objext
6326	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6327	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6328  (eval $ac_link) 2>&5
6329  ac_status=$?
6330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6332	    pipe_works=yes
6333	  fi
6334	  LIBS=$lt_globsym_save_LIBS
6335	  CFLAGS=$lt_globsym_save_CFLAGS
6336	else
6337	  echo "cannot find nm_test_func in $nlist" >&5
6338	fi
6339      else
6340	echo "cannot find nm_test_var in $nlist" >&5
6341      fi
6342    else
6343      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6344    fi
6345  else
6346    echo "$progname: failed program was:" >&5
6347    cat conftest.$ac_ext >&5
6348  fi
6349  rm -rf conftest* conftst*
6350
6351  # Do not use the global_symbol_pipe unless it works.
6352  if test yes = "$pipe_works"; then
6353    break
6354  else
6355    lt_cv_sys_global_symbol_pipe=
6356  fi
6357done
6358
6359fi
6360
6361if test -z "$lt_cv_sys_global_symbol_pipe"; then
6362  lt_cv_sys_global_symbol_to_cdecl=
6363fi
6364if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6366$as_echo "failed" >&6; }
6367else
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6369$as_echo "ok" >&6; }
6370fi
6371
6372# Response file support.
6373if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6374  nm_file_list_spec='@'
6375elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6376  nm_file_list_spec='@'
6377fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6416$as_echo_n "checking for sysroot... " >&6; }
6417
6418# Check whether --with-sysroot was given.
6419if test "${with_sysroot+set}" = set; then :
6420  withval=$with_sysroot;
6421else
6422  with_sysroot=no
6423fi
6424
6425
6426lt_sysroot=
6427case $with_sysroot in #(
6428 yes)
6429   if test yes = "$GCC"; then
6430     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6431   fi
6432   ;; #(
6433 /*)
6434   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6435   ;; #(
6436 no|'')
6437   ;; #(
6438 *)
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6440$as_echo "$with_sysroot" >&6; }
6441   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6442   ;;
6443esac
6444
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6446$as_echo "${lt_sysroot:-no}" >&6; }
6447
6448
6449
6450
6451
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6453$as_echo_n "checking for a working dd... " >&6; }
6454if ${ac_cv_path_lt_DD+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  printf 0123456789abcdef0123456789abcdef >conftest.i
6458cat conftest.i conftest.i >conftest2.i
6459: ${lt_DD:=$DD}
6460if test -z "$lt_DD"; then
6461  ac_path_lt_DD_found=false
6462  # Loop through the user's path and test for each of PROGNAME-LIST
6463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468    for ac_prog in dd; do
6469    for ac_exec_ext in '' $ac_executable_extensions; do
6470      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6471      as_fn_executable_p "$ac_path_lt_DD" || continue
6472if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6473  cmp -s conftest.i conftest.out \
6474  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6475fi
6476      $ac_path_lt_DD_found && break 3
6477    done
6478  done
6479  done
6480IFS=$as_save_IFS
6481  if test -z "$ac_cv_path_lt_DD"; then
6482    :
6483  fi
6484else
6485  ac_cv_path_lt_DD=$lt_DD
6486fi
6487
6488rm -f conftest.i conftest2.i conftest.out
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6491$as_echo "$ac_cv_path_lt_DD" >&6; }
6492
6493
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6495$as_echo_n "checking how to truncate binary pipes... " >&6; }
6496if ${lt_cv_truncate_bin+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  printf 0123456789abcdef0123456789abcdef >conftest.i
6500cat conftest.i conftest.i >conftest2.i
6501lt_cv_truncate_bin=
6502if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6503  cmp -s conftest.i conftest.out \
6504  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6505fi
6506rm -f conftest.i conftest2.i conftest.out
6507test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6508fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6510$as_echo "$lt_cv_truncate_bin" >&6; }
6511
6512
6513
6514
6515
6516
6517
6518# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6519func_cc_basename ()
6520{
6521    for cc_temp in $*""; do
6522      case $cc_temp in
6523        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6524        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6525        \-*) ;;
6526        *) break;;
6527      esac
6528    done
6529    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6530}
6531
6532# Check whether --enable-libtool-lock was given.
6533if test "${enable_libtool_lock+set}" = set; then :
6534  enableval=$enable_libtool_lock;
6535fi
6536
6537test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6538
6539# Some flags need to be propagated to the compiler or linker for good
6540# libtool support.
6541case $host in
6542ia64-*-hpux*)
6543  # Find out what ABI is being produced by ac_compile, and set mode
6544  # options accordingly.
6545  echo 'int i;' > conftest.$ac_ext
6546  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6547  (eval $ac_compile) 2>&5
6548  ac_status=$?
6549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550  test $ac_status = 0; }; then
6551    case `/usr/bin/file conftest.$ac_objext` in
6552      *ELF-32*)
6553	HPUX_IA64_MODE=32
6554	;;
6555      *ELF-64*)
6556	HPUX_IA64_MODE=64
6557	;;
6558    esac
6559  fi
6560  rm -rf conftest*
6561  ;;
6562*-*-irix6*)
6563  # Find out what ABI is being produced by ac_compile, and set linker
6564  # options accordingly.
6565  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6566  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567  (eval $ac_compile) 2>&5
6568  ac_status=$?
6569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570  test $ac_status = 0; }; then
6571    if test yes = "$lt_cv_prog_gnu_ld"; then
6572      case `/usr/bin/file conftest.$ac_objext` in
6573	*32-bit*)
6574	  LD="${LD-ld} -melf32bsmip"
6575	  ;;
6576	*N32*)
6577	  LD="${LD-ld} -melf32bmipn32"
6578	  ;;
6579	*64-bit*)
6580	  LD="${LD-ld} -melf64bmip"
6581	;;
6582      esac
6583    else
6584      case `/usr/bin/file conftest.$ac_objext` in
6585	*32-bit*)
6586	  LD="${LD-ld} -32"
6587	  ;;
6588	*N32*)
6589	  LD="${LD-ld} -n32"
6590	  ;;
6591	*64-bit*)
6592	  LD="${LD-ld} -64"
6593	  ;;
6594      esac
6595    fi
6596  fi
6597  rm -rf conftest*
6598  ;;
6599
6600mips64*-*linux*)
6601  # Find out what ABI is being produced by ac_compile, and set linker
6602  # options accordingly.
6603  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6604  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605  (eval $ac_compile) 2>&5
6606  ac_status=$?
6607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608  test $ac_status = 0; }; then
6609    emul=elf
6610    case `/usr/bin/file conftest.$ac_objext` in
6611      *32-bit*)
6612	emul="${emul}32"
6613	;;
6614      *64-bit*)
6615	emul="${emul}64"
6616	;;
6617    esac
6618    case `/usr/bin/file conftest.$ac_objext` in
6619      *MSB*)
6620	emul="${emul}btsmip"
6621	;;
6622      *LSB*)
6623	emul="${emul}ltsmip"
6624	;;
6625    esac
6626    case `/usr/bin/file conftest.$ac_objext` in
6627      *N32*)
6628	emul="${emul}n32"
6629	;;
6630    esac
6631    LD="${LD-ld} -m $emul"
6632  fi
6633  rm -rf conftest*
6634  ;;
6635
6636x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6637s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6638  # Find out what ABI is being produced by ac_compile, and set linker
6639  # options accordingly.  Note that the listed cases only cover the
6640  # situations where additional linker options are needed (such as when
6641  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6642  # vice versa); the common cases where no linker options are needed do
6643  # not appear in the list.
6644  echo 'int i;' > conftest.$ac_ext
6645  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6646  (eval $ac_compile) 2>&5
6647  ac_status=$?
6648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649  test $ac_status = 0; }; then
6650    case `/usr/bin/file conftest.o` in
6651      *32-bit*)
6652	case $host in
6653	  x86_64-*kfreebsd*-gnu)
6654	    LD="${LD-ld} -m elf_i386_fbsd"
6655	    ;;
6656	  x86_64-*linux*)
6657	    case `/usr/bin/file conftest.o` in
6658	      *x86-64*)
6659		LD="${LD-ld} -m elf32_x86_64"
6660		;;
6661	      *)
6662		LD="${LD-ld} -m elf_i386"
6663		;;
6664	    esac
6665	    ;;
6666	  powerpc64le-*linux*)
6667	    LD="${LD-ld} -m elf32lppclinux"
6668	    ;;
6669	  powerpc64-*linux*)
6670	    LD="${LD-ld} -m elf32ppclinux"
6671	    ;;
6672	  s390x-*linux*)
6673	    LD="${LD-ld} -m elf_s390"
6674	    ;;
6675	  sparc64-*linux*)
6676	    LD="${LD-ld} -m elf32_sparc"
6677	    ;;
6678	esac
6679	;;
6680      *64-bit*)
6681	case $host in
6682	  x86_64-*kfreebsd*-gnu)
6683	    LD="${LD-ld} -m elf_x86_64_fbsd"
6684	    ;;
6685	  x86_64-*linux*)
6686	    LD="${LD-ld} -m elf_x86_64"
6687	    ;;
6688	  powerpcle-*linux*)
6689	    LD="${LD-ld} -m elf64lppc"
6690	    ;;
6691	  powerpc-*linux*)
6692	    LD="${LD-ld} -m elf64ppc"
6693	    ;;
6694	  s390*-*linux*|s390*-*tpf*)
6695	    LD="${LD-ld} -m elf64_s390"
6696	    ;;
6697	  sparc*-*linux*)
6698	    LD="${LD-ld} -m elf64_sparc"
6699	    ;;
6700	esac
6701	;;
6702    esac
6703  fi
6704  rm -rf conftest*
6705  ;;
6706
6707*-*-sco3.2v5*)
6708  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6709  SAVE_CFLAGS=$CFLAGS
6710  CFLAGS="$CFLAGS -belf"
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6712$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6713if ${lt_cv_cc_needs_belf+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  ac_ext=c
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723/* end confdefs.h.  */
6724
6725int
6726main ()
6727{
6728
6729  ;
6730  return 0;
6731}
6732_ACEOF
6733if ac_fn_c_try_link "$LINENO"; then :
6734  lt_cv_cc_needs_belf=yes
6735else
6736  lt_cv_cc_needs_belf=no
6737fi
6738rm -f core conftest.err conftest.$ac_objext \
6739    conftest$ac_exeext conftest.$ac_ext
6740     ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
6746fi
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6748$as_echo "$lt_cv_cc_needs_belf" >&6; }
6749  if test yes != "$lt_cv_cc_needs_belf"; then
6750    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6751    CFLAGS=$SAVE_CFLAGS
6752  fi
6753  ;;
6754*-*solaris*)
6755  # Find out what ABI is being produced by ac_compile, and set linker
6756  # options accordingly.
6757  echo 'int i;' > conftest.$ac_ext
6758  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6759  (eval $ac_compile) 2>&5
6760  ac_status=$?
6761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762  test $ac_status = 0; }; then
6763    case `/usr/bin/file conftest.o` in
6764    *64-bit*)
6765      case $lt_cv_prog_gnu_ld in
6766      yes*)
6767        case $host in
6768        i?86-*-solaris*|x86_64-*-solaris*)
6769          LD="${LD-ld} -m elf_x86_64"
6770          ;;
6771        sparc*-*-solaris*)
6772          LD="${LD-ld} -m elf64_sparc"
6773          ;;
6774        esac
6775        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6776        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6777          LD=${LD-ld}_sol2
6778        fi
6779        ;;
6780      *)
6781	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6782	  LD="${LD-ld} -64"
6783	fi
6784	;;
6785      esac
6786      ;;
6787    esac
6788  fi
6789  rm -rf conftest*
6790  ;;
6791esac
6792
6793need_locks=$enable_libtool_lock
6794
6795if test -n "$ac_tool_prefix"; then
6796  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6797set dummy ${ac_tool_prefix}mt; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$MANIFEST_TOOL"; then
6804  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6824if test -n "$MANIFEST_TOOL"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6826$as_echo "$MANIFEST_TOOL" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832
6833fi
6834if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6835  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6836  # Extract the first word of "mt", so it can be a program name with args.
6837set dummy mt; ac_word=$2
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839$as_echo_n "checking for $ac_word... " >&6; }
6840if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6841  $as_echo_n "(cached) " >&6
6842else
6843  if test -n "$ac_ct_MANIFEST_TOOL"; then
6844  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849  IFS=$as_save_IFS
6850  test -z "$as_dir" && as_dir=.
6851    for ac_exec_ext in '' $ac_executable_extensions; do
6852  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855    break 2
6856  fi
6857done
6858  done
6859IFS=$as_save_IFS
6860
6861fi
6862fi
6863ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6864if test -n "$ac_ct_MANIFEST_TOOL"; then
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6866$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6867else
6868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869$as_echo "no" >&6; }
6870fi
6871
6872  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6873    MANIFEST_TOOL=":"
6874  else
6875    case $cross_compiling:$ac_tool_warned in
6876yes:)
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879ac_tool_warned=yes ;;
6880esac
6881    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6882  fi
6883else
6884  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6885fi
6886
6887test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6889$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6890if ${lt_cv_path_mainfest_tool+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  lt_cv_path_mainfest_tool=no
6894  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6895  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6896  cat conftest.err >&5
6897  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6898    lt_cv_path_mainfest_tool=yes
6899  fi
6900  rm -f conftest*
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6903$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6904if test yes != "$lt_cv_path_mainfest_tool"; then
6905  MANIFEST_TOOL=:
6906fi
6907
6908
6909
6910
6911
6912
6913  case $host_os in
6914    rhapsody* | darwin*)
6915    if test -n "$ac_tool_prefix"; then
6916  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6917set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_prog_DSYMUTIL+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  if test -n "$DSYMUTIL"; then
6924  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931    for ac_exec_ext in '' $ac_executable_extensions; do
6932  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6933    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935    break 2
6936  fi
6937done
6938  done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943DSYMUTIL=$ac_cv_prog_DSYMUTIL
6944if test -n "$DSYMUTIL"; then
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6946$as_echo "$DSYMUTIL" >&6; }
6947else
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952
6953fi
6954if test -z "$ac_cv_prog_DSYMUTIL"; then
6955  ac_ct_DSYMUTIL=$DSYMUTIL
6956  # Extract the first word of "dsymutil", so it can be a program name with args.
6957set dummy dsymutil; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
6960if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6961  $as_echo_n "(cached) " >&6
6962else
6963  if test -n "$ac_ct_DSYMUTIL"; then
6964  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969  IFS=$as_save_IFS
6970  test -z "$as_dir" && as_dir=.
6971    for ac_exec_ext in '' $ac_executable_extensions; do
6972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975    break 2
6976  fi
6977done
6978  done
6979IFS=$as_save_IFS
6980
6981fi
6982fi
6983ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6984if test -n "$ac_ct_DSYMUTIL"; then
6985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6986$as_echo "$ac_ct_DSYMUTIL" >&6; }
6987else
6988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
6990fi
6991
6992  if test "x$ac_ct_DSYMUTIL" = x; then
6993    DSYMUTIL=":"
6994  else
6995    case $cross_compiling:$ac_tool_warned in
6996yes:)
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999ac_tool_warned=yes ;;
7000esac
7001    DSYMUTIL=$ac_ct_DSYMUTIL
7002  fi
7003else
7004  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7005fi
7006
7007    if test -n "$ac_tool_prefix"; then
7008  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7009set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if ${ac_cv_prog_NMEDIT+:} false; then :
7013  $as_echo_n "(cached) " >&6
7014else
7015  if test -n "$NMEDIT"; then
7016  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035NMEDIT=$ac_cv_prog_NMEDIT
7036if test -n "$NMEDIT"; then
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7038$as_echo "$NMEDIT" >&6; }
7039else
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044
7045fi
7046if test -z "$ac_cv_prog_NMEDIT"; then
7047  ac_ct_NMEDIT=$NMEDIT
7048  # Extract the first word of "nmedit", so it can be a program name with args.
7049set dummy nmedit; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
7052if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055  if test -n "$ac_ct_NMEDIT"; then
7056  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063    for ac_exec_ext in '' $ac_executable_extensions; do
7064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070  done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7076if test -n "$ac_ct_NMEDIT"; then
7077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7078$as_echo "$ac_ct_NMEDIT" >&6; }
7079else
7080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
7082fi
7083
7084  if test "x$ac_ct_NMEDIT" = x; then
7085    NMEDIT=":"
7086  else
7087    case $cross_compiling:$ac_tool_warned in
7088yes:)
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091ac_tool_warned=yes ;;
7092esac
7093    NMEDIT=$ac_ct_NMEDIT
7094  fi
7095else
7096  NMEDIT="$ac_cv_prog_NMEDIT"
7097fi
7098
7099    if test -n "$ac_tool_prefix"; then
7100  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7101set dummy ${ac_tool_prefix}lipo; ac_word=$2
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if ${ac_cv_prog_LIPO+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  if test -n "$LIPO"; then
7108  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127LIPO=$ac_cv_prog_LIPO
7128if test -n "$LIPO"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7130$as_echo "$LIPO" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136
7137fi
7138if test -z "$ac_cv_prog_LIPO"; then
7139  ac_ct_LIPO=$LIPO
7140  # Extract the first word of "lipo", so it can be a program name with args.
7141set dummy lipo; ac_word=$2
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143$as_echo_n "checking for $ac_word... " >&6; }
7144if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7145  $as_echo_n "(cached) " >&6
7146else
7147  if test -n "$ac_ct_LIPO"; then
7148  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  test -z "$as_dir" && as_dir=.
7155    for ac_exec_ext in '' $ac_executable_extensions; do
7156  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157    ac_cv_prog_ac_ct_LIPO="lipo"
7158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159    break 2
7160  fi
7161done
7162  done
7163IFS=$as_save_IFS
7164
7165fi
7166fi
7167ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7168if test -n "$ac_ct_LIPO"; then
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7170$as_echo "$ac_ct_LIPO" >&6; }
7171else
7172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173$as_echo "no" >&6; }
7174fi
7175
7176  if test "x$ac_ct_LIPO" = x; then
7177    LIPO=":"
7178  else
7179    case $cross_compiling:$ac_tool_warned in
7180yes:)
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183ac_tool_warned=yes ;;
7184esac
7185    LIPO=$ac_ct_LIPO
7186  fi
7187else
7188  LIPO="$ac_cv_prog_LIPO"
7189fi
7190
7191    if test -n "$ac_tool_prefix"; then
7192  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7193set dummy ${ac_tool_prefix}otool; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if ${ac_cv_prog_OTOOL+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  if test -n "$OTOOL"; then
7200  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207    for ac_exec_ext in '' $ac_executable_extensions; do
7208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214  done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219OTOOL=$ac_cv_prog_OTOOL
7220if test -n "$OTOOL"; then
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7222$as_echo "$OTOOL" >&6; }
7223else
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228
7229fi
7230if test -z "$ac_cv_prog_OTOOL"; then
7231  ac_ct_OTOOL=$OTOOL
7232  # Extract the first word of "otool", so it can be a program name with args.
7233set dummy otool; ac_word=$2
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235$as_echo_n "checking for $ac_word... " >&6; }
7236if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  if test -n "$ac_ct_OTOOL"; then
7240  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7241else
7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245  IFS=$as_save_IFS
7246  test -z "$as_dir" && as_dir=.
7247    for ac_exec_ext in '' $ac_executable_extensions; do
7248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249    ac_cv_prog_ac_ct_OTOOL="otool"
7250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251    break 2
7252  fi
7253done
7254  done
7255IFS=$as_save_IFS
7256
7257fi
7258fi
7259ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7260if test -n "$ac_ct_OTOOL"; then
7261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7262$as_echo "$ac_ct_OTOOL" >&6; }
7263else
7264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265$as_echo "no" >&6; }
7266fi
7267
7268  if test "x$ac_ct_OTOOL" = x; then
7269    OTOOL=":"
7270  else
7271    case $cross_compiling:$ac_tool_warned in
7272yes:)
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275ac_tool_warned=yes ;;
7276esac
7277    OTOOL=$ac_ct_OTOOL
7278  fi
7279else
7280  OTOOL="$ac_cv_prog_OTOOL"
7281fi
7282
7283    if test -n "$ac_tool_prefix"; then
7284  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7285set dummy ${ac_tool_prefix}otool64; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_prog_OTOOL64+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -n "$OTOOL64"; then
7292  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299    for ac_exec_ext in '' $ac_executable_extensions; do
7300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306  done
7307IFS=$as_save_IFS
7308
7309fi
7310fi
7311OTOOL64=$ac_cv_prog_OTOOL64
7312if test -n "$OTOOL64"; then
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7314$as_echo "$OTOOL64" >&6; }
7315else
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
7318fi
7319
7320
7321fi
7322if test -z "$ac_cv_prog_OTOOL64"; then
7323  ac_ct_OTOOL64=$OTOOL64
7324  # Extract the first word of "otool64", so it can be a program name with args.
7325set dummy otool64; ac_word=$2
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327$as_echo_n "checking for $ac_word... " >&6; }
7328if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  if test -n "$ac_ct_OTOOL64"; then
7332  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337  IFS=$as_save_IFS
7338  test -z "$as_dir" && as_dir=.
7339    for ac_exec_ext in '' $ac_executable_extensions; do
7340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341    ac_cv_prog_ac_ct_OTOOL64="otool64"
7342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343    break 2
7344  fi
7345done
7346  done
7347IFS=$as_save_IFS
7348
7349fi
7350fi
7351ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7352if test -n "$ac_ct_OTOOL64"; then
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7354$as_echo "$ac_ct_OTOOL64" >&6; }
7355else
7356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357$as_echo "no" >&6; }
7358fi
7359
7360  if test "x$ac_ct_OTOOL64" = x; then
7361    OTOOL64=":"
7362  else
7363    case $cross_compiling:$ac_tool_warned in
7364yes:)
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367ac_tool_warned=yes ;;
7368esac
7369    OTOOL64=$ac_ct_OTOOL64
7370  fi
7371else
7372  OTOOL64="$ac_cv_prog_OTOOL64"
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7402$as_echo_n "checking for -single_module linker flag... " >&6; }
7403if ${lt_cv_apple_cc_single_mod+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  lt_cv_apple_cc_single_mod=no
7407      if test -z "$LT_MULTI_MODULE"; then
7408	# By default we will add the -single_module flag. You can override
7409	# by either setting the environment variable LT_MULTI_MODULE
7410	# non-empty at configure time, or by adding -multi_module to the
7411	# link flags.
7412	rm -rf libconftest.dylib*
7413	echo "int foo(void){return 1;}" > conftest.c
7414	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7415-dynamiclib -Wl,-single_module conftest.c" >&5
7416	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7417	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7418        _lt_result=$?
7419	# If there is a non-empty error log, and "single_module"
7420	# appears in it, assume the flag caused a linker warning
7421        if test -s conftest.err && $GREP single_module conftest.err; then
7422	  cat conftest.err >&5
7423	# Otherwise, if the output was created with a 0 exit code from
7424	# the compiler, it worked.
7425	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7426	  lt_cv_apple_cc_single_mod=yes
7427	else
7428	  cat conftest.err >&5
7429	fi
7430	rm -rf libconftest.dylib*
7431	rm -f conftest.*
7432      fi
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7435$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7436
7437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7438$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7439if ${lt_cv_ld_exported_symbols_list+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442  lt_cv_ld_exported_symbols_list=no
7443      save_LDFLAGS=$LDFLAGS
7444      echo "_main" > conftest.sym
7445      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448
7449int
7450main ()
7451{
7452
7453  ;
7454  return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_link "$LINENO"; then :
7458  lt_cv_ld_exported_symbols_list=yes
7459else
7460  lt_cv_ld_exported_symbols_list=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext \
7463    conftest$ac_exeext conftest.$ac_ext
7464	LDFLAGS=$save_LDFLAGS
7465
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7468$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7469
7470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7471$as_echo_n "checking for -force_load linker flag... " >&6; }
7472if ${lt_cv_ld_force_load+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  lt_cv_ld_force_load=no
7476      cat > conftest.c << _LT_EOF
7477int forced_loaded() { return 2;}
7478_LT_EOF
7479      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7480      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7481      echo "$AR cru libconftest.a conftest.o" >&5
7482      $AR cru libconftest.a conftest.o 2>&5
7483      echo "$RANLIB libconftest.a" >&5
7484      $RANLIB libconftest.a 2>&5
7485      cat > conftest.c << _LT_EOF
7486int main() { return 0;}
7487_LT_EOF
7488      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7489      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7490      _lt_result=$?
7491      if test -s conftest.err && $GREP force_load conftest.err; then
7492	cat conftest.err >&5
7493      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7494	lt_cv_ld_force_load=yes
7495      else
7496	cat conftest.err >&5
7497      fi
7498        rm -f conftest.err libconftest.a conftest conftest.c
7499        rm -rf conftest.dSYM
7500
7501fi
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7503$as_echo "$lt_cv_ld_force_load" >&6; }
7504    case $host_os in
7505    rhapsody* | darwin1.[012])
7506      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7507    darwin1.*)
7508      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7509    darwin*) # darwin 5.x on
7510      # if running on 10.5 or later, the deployment target defaults
7511      # to the OS version, if on x86, and 10.4, the deployment
7512      # target defaults to 10.4. Don't you love it?
7513      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7514	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7515	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7516	10.[012][,.]*)
7517	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7518	10.*)
7519	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7520      esac
7521    ;;
7522  esac
7523    if test yes = "$lt_cv_apple_cc_single_mod"; then
7524      _lt_dar_single_mod='$single_module'
7525    fi
7526    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7527      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7528    else
7529      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7530    fi
7531    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7532      _lt_dsymutil='~$DSYMUTIL $lib || :'
7533    else
7534      _lt_dsymutil=
7535    fi
7536    ;;
7537  esac
7538
7539# func_munge_path_list VARIABLE PATH
7540# -----------------------------------
7541# VARIABLE is name of variable containing _space_ separated list of
7542# directories to be munged by the contents of PATH, which is string
7543# having a format:
7544# "DIR[:DIR]:"
7545#       string "DIR[ DIR]" will be prepended to VARIABLE
7546# ":DIR[:DIR]"
7547#       string "DIR[ DIR]" will be appended to VARIABLE
7548# "DIRP[:DIRP]::[DIRA:]DIRA"
7549#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7550#       "DIRA[ DIRA]" will be appended to VARIABLE
7551# "DIR[:DIR]"
7552#       VARIABLE will be replaced by "DIR[ DIR]"
7553func_munge_path_list ()
7554{
7555    case x$2 in
7556    x)
7557        ;;
7558    *:)
7559        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7560        ;;
7561    x:*)
7562        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7563        ;;
7564    *::*)
7565        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7566        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7567        ;;
7568    *)
7569        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7570        ;;
7571    esac
7572}
7573
7574ac_ext=c
7575ac_cpp='$CPP $CPPFLAGS'
7576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7580$as_echo_n "checking how to run the C preprocessor... " >&6; }
7581# On Suns, sometimes $CPP names a directory.
7582if test -n "$CPP" && test -d "$CPP"; then
7583  CPP=
7584fi
7585if test -z "$CPP"; then
7586  if ${ac_cv_prog_CPP+:} false; then :
7587  $as_echo_n "(cached) " >&6
7588else
7589      # Double quotes because CPP needs to be expanded
7590    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7591    do
7592      ac_preproc_ok=false
7593for ac_c_preproc_warn_flag in '' yes
7594do
7595  # Use a header file that comes with gcc, so configuring glibc
7596  # with a fresh cross-compiler works.
7597  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7598  # <limits.h> exists even on freestanding compilers.
7599  # On the NeXT, cc -E runs the code through the compiler's parser,
7600  # not just through cpp. "Syntax error" is here to catch this case.
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603#ifdef __STDC__
7604# include <limits.h>
7605#else
7606# include <assert.h>
7607#endif
7608		     Syntax error
7609_ACEOF
7610if ac_fn_c_try_cpp "$LINENO"; then :
7611
7612else
7613  # Broken: fails on valid input.
7614continue
7615fi
7616rm -f conftest.err conftest.i conftest.$ac_ext
7617
7618  # OK, works on sane cases.  Now check whether nonexistent headers
7619  # can be detected and how.
7620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h.  */
7622#include <ac_nonexistent.h>
7623_ACEOF
7624if ac_fn_c_try_cpp "$LINENO"; then :
7625  # Broken: success on invalid input.
7626continue
7627else
7628  # Passes both tests.
7629ac_preproc_ok=:
7630break
7631fi
7632rm -f conftest.err conftest.i conftest.$ac_ext
7633
7634done
7635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7636rm -f conftest.i conftest.err conftest.$ac_ext
7637if $ac_preproc_ok; then :
7638  break
7639fi
7640
7641    done
7642    ac_cv_prog_CPP=$CPP
7643
7644fi
7645  CPP=$ac_cv_prog_CPP
7646else
7647  ac_cv_prog_CPP=$CPP
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7650$as_echo "$CPP" >&6; }
7651ac_preproc_ok=false
7652for ac_c_preproc_warn_flag in '' yes
7653do
7654  # Use a header file that comes with gcc, so configuring glibc
7655  # with a fresh cross-compiler works.
7656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7657  # <limits.h> exists even on freestanding compilers.
7658  # On the NeXT, cc -E runs the code through the compiler's parser,
7659  # not just through cpp. "Syntax error" is here to catch this case.
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662#ifdef __STDC__
7663# include <limits.h>
7664#else
7665# include <assert.h>
7666#endif
7667		     Syntax error
7668_ACEOF
7669if ac_fn_c_try_cpp "$LINENO"; then :
7670
7671else
7672  # Broken: fails on valid input.
7673continue
7674fi
7675rm -f conftest.err conftest.i conftest.$ac_ext
7676
7677  # OK, works on sane cases.  Now check whether nonexistent headers
7678  # can be detected and how.
7679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681#include <ac_nonexistent.h>
7682_ACEOF
7683if ac_fn_c_try_cpp "$LINENO"; then :
7684  # Broken: success on invalid input.
7685continue
7686else
7687  # Passes both tests.
7688ac_preproc_ok=:
7689break
7690fi
7691rm -f conftest.err conftest.i conftest.$ac_ext
7692
7693done
7694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7695rm -f conftest.i conftest.err conftest.$ac_ext
7696if $ac_preproc_ok; then :
7697
7698else
7699  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7701as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7702See \`config.log' for more details" "$LINENO" 5; }
7703fi
7704
7705ac_ext=c
7706ac_cpp='$CPP $CPPFLAGS'
7707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710
7711
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7713$as_echo_n "checking for ANSI C header files... " >&6; }
7714if ${ac_cv_header_stdc+:} false; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719#include <stdlib.h>
7720#include <stdarg.h>
7721#include <string.h>
7722#include <float.h>
7723
7724int
7725main ()
7726{
7727
7728  ;
7729  return 0;
7730}
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"; then :
7733  ac_cv_header_stdc=yes
7734else
7735  ac_cv_header_stdc=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738
7739if test $ac_cv_header_stdc = yes; then
7740  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743#include <string.h>
7744
7745_ACEOF
7746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7747  $EGREP "memchr" >/dev/null 2>&1; then :
7748
7749else
7750  ac_cv_header_stdc=no
7751fi
7752rm -f conftest*
7753
7754fi
7755
7756if test $ac_cv_header_stdc = yes; then
7757  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760#include <stdlib.h>
7761
7762_ACEOF
7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764  $EGREP "free" >/dev/null 2>&1; then :
7765
7766else
7767  ac_cv_header_stdc=no
7768fi
7769rm -f conftest*
7770
7771fi
7772
7773if test $ac_cv_header_stdc = yes; then
7774  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7775  if test "$cross_compiling" = yes; then :
7776  :
7777else
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780#include <ctype.h>
7781#include <stdlib.h>
7782#if ((' ' & 0x0FF) == 0x020)
7783# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7784# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7785#else
7786# define ISLOWER(c) \
7787		   (('a' <= (c) && (c) <= 'i') \
7788		     || ('j' <= (c) && (c) <= 'r') \
7789		     || ('s' <= (c) && (c) <= 'z'))
7790# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7791#endif
7792
7793#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7794int
7795main ()
7796{
7797  int i;
7798  for (i = 0; i < 256; i++)
7799    if (XOR (islower (i), ISLOWER (i))
7800	|| toupper (i) != TOUPPER (i))
7801      return 2;
7802  return 0;
7803}
7804_ACEOF
7805if ac_fn_c_try_run "$LINENO"; then :
7806
7807else
7808  ac_cv_header_stdc=no
7809fi
7810rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7811  conftest.$ac_objext conftest.beam conftest.$ac_ext
7812fi
7813
7814fi
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7817$as_echo "$ac_cv_header_stdc" >&6; }
7818if test $ac_cv_header_stdc = yes; then
7819
7820$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7821
7822fi
7823
7824# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7825for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7826		  inttypes.h stdint.h unistd.h
7827do :
7828  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7829ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7830"
7831if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7832  cat >>confdefs.h <<_ACEOF
7833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7834_ACEOF
7835
7836fi
7837
7838done
7839
7840
7841for ac_header in dlfcn.h
7842do :
7843  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7844"
7845if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7846  cat >>confdefs.h <<_ACEOF
7847#define HAVE_DLFCN_H 1
7848_ACEOF
7849
7850fi
7851
7852done
7853
7854
7855if test "`cd $srcdir && pwd`" != "`pwd`"; then
7856  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7857  # is not polluted with repeated "-I."
7858  am__isrc=' -I$(srcdir)'
7859  # test to see if srcdir already configured
7860  if test -f $srcdir/config.status; then
7861    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7862  fi
7863fi
7864
7865# test whether we have cygpath
7866if test -z "$CYGPATH_W"; then
7867  if (cygpath --version) >/dev/null 2>/dev/null; then
7868    CYGPATH_W='cygpath -w'
7869  else
7870    CYGPATH_W=echo
7871  fi
7872fi
7873
7874
7875# Define the identity of the package.
7876 PACKAGE='dvipng--tex-live-'
7877 VERSION='1.15'
7878
7879
7880cat >>confdefs.h <<_ACEOF
7881#define PACKAGE "$PACKAGE"
7882_ACEOF
7883
7884
7885cat >>confdefs.h <<_ACEOF
7886#define VERSION "$VERSION"
7887_ACEOF
7888
7889# Some tools Automake needs.
7890
7891ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7892
7893
7894AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7895
7896
7897AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7898
7899
7900AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7901
7902
7903MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7904
7905# For better backward compatibility.  To be removed once Automake 1.9.x
7906# dies out for good.  For more background, see:
7907# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
7908# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
7909mkdir_p='$(MKDIR_P)'
7910
7911# We need awk for the "check" target (and possibly the TAP driver).  The
7912# system "awk" is bad on some platforms.
7913# Always define AMTAR for backward compatibility.  Yes, it's still used
7914# in the wild :-(  We should find a proper way to deprecate it ...
7915AMTAR='$${TAR-tar}'
7916
7917
7918# We'll loop over all known methods to create a tar archive until one works.
7919_am_tools='gnutar  pax cpio none'
7920
7921am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7922
7923
7924
7925
7926
7927
7928# POSIX will say in a future version that running "rm -f" with no argument
7929# is OK; and we want to be able to make that assumption in our Makefile
7930# recipes.  So use an aggressive probe to check that the usage we want is
7931# actually supported "in the wild" to an acceptable degree.
7932# See automake bug#10828.
7933# To make any issue more visible, cause the running configure to be aborted
7934# by default if the 'rm' program in use doesn't match our expectations; the
7935# user can still override this though.
7936if rm -f && rm -fr && rm -rf; then : OK; else
7937  cat >&2 <<'END'
7938Oops!
7939
7940Your 'rm' program seems unable to run without file operands specified
7941on the command line, even when the '-f' option is present.  This is contrary
7942to the behaviour of most rm programs out there, and not conforming with
7943the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
7944
7945Please tell bug-automake@gnu.org about your system, including the value
7946of your $PATH and any error possibly output before this message.  This
7947can help us improve future automake versions.
7948
7949END
7950  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
7951    echo 'Configuration will proceed anyway, since you have set the' >&2
7952    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
7953    echo >&2
7954  else
7955    cat >&2 <<'END'
7956Aborting the configuration process, to ensure you take notice of the issue.
7957
7958You can download and install GNU coreutils to get an 'rm' implementation
7959that behaves properly: <http://www.gnu.org/software/coreutils/>.
7960
7961If you want to complete the configuration process using your problematic
7962'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
7963to "yes", and re-run configure.
7964
7965END
7966    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
7967  fi
7968fi
7969
7970
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7972$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7973    # Check whether --enable-maintainer-mode was given.
7974if test "${enable_maintainer_mode+set}" = set; then :
7975  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7976else
7977  USE_MAINTAINER_MODE=no
7978fi
7979
7980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7981$as_echo "$USE_MAINTAINER_MODE" >&6; }
7982   if test $USE_MAINTAINER_MODE = yes; then
7983  MAINTAINER_MODE_TRUE=
7984  MAINTAINER_MODE_FALSE='#'
7985else
7986  MAINTAINER_MODE_TRUE='#'
7987  MAINTAINER_MODE_FALSE=
7988fi
7989
7990  MAINT=$MAINTAINER_MODE_TRUE
7991
7992
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
7994$as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
7995if ${kb_cv_c_prototypes+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000#include <stdarg.h>
8001int
8002main ()
8003{
8004extern void foo(int i,...);
8005  ;
8006  return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_link "$LINENO"; then :
8010  kb_cv_c_prototypes=yes
8011else
8012  kb_cv_c_prototypes=no
8013fi
8014rm -f core conftest.err conftest.$ac_objext \
8015    conftest$ac_exeext conftest.$ac_ext
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
8018$as_echo "$kb_cv_c_prototypes" >&6; }
8019if test "x$kb_cv_c_prototypes" = xno; then
8020  as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
8023$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
8024if ${kpse_cv_warning_cflags+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  if test "x$GCC" = xyes; then
8028  kpse_cv_warning_cflags=
8029if test "x$enable_compiler_warnings" != xno; then
8030  kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
8031  case `$CC -dumpversion` in #(
8032  3.4.* | 4.*) :
8033    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
8034  *) :
8035     ;;
8036esac
8037  case `$CC -dumpversion` in #(
8038  3.[234].* | 4.*) :
8039    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
8040  *) :
8041     ;;
8042esac
8043  if test "x$enable_compiler_warnings" != xmin; then
8044    kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
8045    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
8046    if test "x$enable_compiler_warnings" != xyes; then
8047      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
8048      kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
8049      case `$CC -dumpversion` in #(
8050  3.4.* | 4.*) :
8051    kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
8052  *) :
8053     ;;
8054esac
8055      if test "x$enable_compiler_warnings" != xmax; then
8056        kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
8057      fi
8058    fi
8059  fi
8060fi
8061elif test "x$enable_compiler_warnings" = xno; then
8062  kpse_cv_warning_cflags=
8063else
8064  kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
8065fi
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
8068$as_echo "$kpse_cv_warning_cflags" >&6; }
8069WARNING_CFLAGS=$kpse_cv_warning_cflags
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082# Set options
8083enable_win32_dll=yes
8084
8085case $host in
8086*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8087  if test -n "$ac_tool_prefix"; then
8088  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8089set dummy ${ac_tool_prefix}as; ac_word=$2
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if ${ac_cv_prog_AS+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  if test -n "$AS"; then
8096  ac_cv_prog_AS="$AS" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  test -z "$as_dir" && as_dir=.
8103    for ac_exec_ext in '' $ac_executable_extensions; do
8104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105    ac_cv_prog_AS="${ac_tool_prefix}as"
8106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107    break 2
8108  fi
8109done
8110  done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115AS=$ac_cv_prog_AS
8116if test -n "$AS"; then
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8118$as_echo "$AS" >&6; }
8119else
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125fi
8126if test -z "$ac_cv_prog_AS"; then
8127  ac_ct_AS=$AS
8128  # Extract the first word of "as", so it can be a program name with args.
8129set dummy as; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_prog_ac_ct_AS+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  if test -n "$ac_ct_AS"; then
8136  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141  IFS=$as_save_IFS
8142  test -z "$as_dir" && as_dir=.
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145    ac_cv_prog_ac_ct_AS="as"
8146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155ac_ct_AS=$ac_cv_prog_ac_ct_AS
8156if test -n "$ac_ct_AS"; then
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8158$as_echo "$ac_ct_AS" >&6; }
8159else
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164  if test "x$ac_ct_AS" = x; then
8165    AS="false"
8166  else
8167    case $cross_compiling:$ac_tool_warned in
8168yes:)
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171ac_tool_warned=yes ;;
8172esac
8173    AS=$ac_ct_AS
8174  fi
8175else
8176  AS="$ac_cv_prog_AS"
8177fi
8178
8179  if test -n "$ac_tool_prefix"; then
8180  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8181set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if ${ac_cv_prog_DLLTOOL+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$DLLTOOL"; then
8188  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195    for ac_exec_ext in '' $ac_executable_extensions; do
8196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202  done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207DLLTOOL=$ac_cv_prog_DLLTOOL
8208if test -n "$DLLTOOL"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8210$as_echo "$DLLTOOL" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217fi
8218if test -z "$ac_cv_prog_DLLTOOL"; then
8219  ac_ct_DLLTOOL=$DLLTOOL
8220  # Extract the first word of "dlltool", so it can be a program name with args.
8221set dummy dlltool; ac_word=$2
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  if test -n "$ac_ct_DLLTOOL"; then
8228  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8248if test -n "$ac_ct_DLLTOOL"; then
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8250$as_echo "$ac_ct_DLLTOOL" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256  if test "x$ac_ct_DLLTOOL" = x; then
8257    DLLTOOL="false"
8258  else
8259    case $cross_compiling:$ac_tool_warned in
8260yes:)
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8263ac_tool_warned=yes ;;
8264esac
8265    DLLTOOL=$ac_ct_DLLTOOL
8266  fi
8267else
8268  DLLTOOL="$ac_cv_prog_DLLTOOL"
8269fi
8270
8271  if test -n "$ac_tool_prefix"; then
8272  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8273set dummy ${ac_tool_prefix}objdump; ac_word=$2
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if ${ac_cv_prog_OBJDUMP+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$OBJDUMP"; then
8280  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287    for ac_exec_ext in '' $ac_executable_extensions; do
8288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294  done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299OBJDUMP=$ac_cv_prog_OBJDUMP
8300if test -n "$OBJDUMP"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8302$as_echo "$OBJDUMP" >&6; }
8303else
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309fi
8310if test -z "$ac_cv_prog_OBJDUMP"; then
8311  ac_ct_OBJDUMP=$OBJDUMP
8312  # Extract the first word of "objdump", so it can be a program name with args.
8313set dummy objdump; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  if test -n "$ac_ct_OBJDUMP"; then
8320  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  test -z "$as_dir" && as_dir=.
8327    for ac_exec_ext in '' $ac_executable_extensions; do
8328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331    break 2
8332  fi
8333done
8334  done
8335IFS=$as_save_IFS
8336
8337fi
8338fi
8339ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8340if test -n "$ac_ct_OBJDUMP"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8342$as_echo "$ac_ct_OBJDUMP" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348  if test "x$ac_ct_OBJDUMP" = x; then
8349    OBJDUMP="false"
8350  else
8351    case $cross_compiling:$ac_tool_warned in
8352yes:)
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8355ac_tool_warned=yes ;;
8356esac
8357    OBJDUMP=$ac_ct_OBJDUMP
8358  fi
8359else
8360  OBJDUMP="$ac_cv_prog_OBJDUMP"
8361fi
8362
8363  ;;
8364esac
8365
8366test -z "$AS" && AS=as
8367
8368
8369
8370
8371
8372test -z "$DLLTOOL" && DLLTOOL=dlltool
8373
8374
8375
8376
8377
8378test -z "$OBJDUMP" && OBJDUMP=objdump
8379
8380
8381
8382
8383
8384
8385
8386        enable_dlopen=no
8387
8388
8389
8390            # Check whether --enable-shared was given.
8391if test "${enable_shared+set}" = set; then :
8392  enableval=$enable_shared; p=${PACKAGE-default}
8393    case $enableval in
8394    yes) enable_shared=yes ;;
8395    no) enable_shared=no ;;
8396    *)
8397      enable_shared=no
8398      # Look at the argument we got.  We use all the common list separators.
8399      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8400      for pkg in $enableval; do
8401	IFS=$lt_save_ifs
8402	if test "X$pkg" = "X$p"; then
8403	  enable_shared=yes
8404	fi
8405      done
8406      IFS=$lt_save_ifs
8407      ;;
8408    esac
8409else
8410  enable_shared=yes
8411fi
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421  # Check whether --enable-static was given.
8422if test "${enable_static+set}" = set; then :
8423  enableval=$enable_static; p=${PACKAGE-default}
8424    case $enableval in
8425    yes) enable_static=yes ;;
8426    no) enable_static=no ;;
8427    *)
8428     enable_static=no
8429      # Look at the argument we got.  We use all the common list separators.
8430      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8431      for pkg in $enableval; do
8432	IFS=$lt_save_ifs
8433	if test "X$pkg" = "X$p"; then
8434	  enable_static=yes
8435	fi
8436      done
8437      IFS=$lt_save_ifs
8438      ;;
8439    esac
8440else
8441  enable_static=yes
8442fi
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453# Check whether --with-pic was given.
8454if test "${with_pic+set}" = set; then :
8455  withval=$with_pic; lt_p=${PACKAGE-default}
8456    case $withval in
8457    yes|no) pic_mode=$withval ;;
8458    *)
8459      pic_mode=default
8460      # Look at the argument we got.  We use all the common list separators.
8461      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8462      for lt_pkg in $withval; do
8463	IFS=$lt_save_ifs
8464	if test "X$lt_pkg" = "X$lt_p"; then
8465	  pic_mode=yes
8466	fi
8467      done
8468      IFS=$lt_save_ifs
8469      ;;
8470    esac
8471else
8472  pic_mode=default
8473fi
8474
8475
8476
8477
8478
8479
8480
8481
8482  # Check whether --enable-fast-install was given.
8483if test "${enable_fast_install+set}" = set; then :
8484  enableval=$enable_fast_install; p=${PACKAGE-default}
8485    case $enableval in
8486    yes) enable_fast_install=yes ;;
8487    no) enable_fast_install=no ;;
8488    *)
8489      enable_fast_install=no
8490      # Look at the argument we got.  We use all the common list separators.
8491      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8492      for pkg in $enableval; do
8493	IFS=$lt_save_ifs
8494	if test "X$pkg" = "X$p"; then
8495	  enable_fast_install=yes
8496	fi
8497      done
8498      IFS=$lt_save_ifs
8499      ;;
8500    esac
8501else
8502  enable_fast_install=yes
8503fi
8504
8505
8506
8507
8508
8509
8510
8511
8512  shared_archive_member_spec=
8513case $host,$enable_shared in
8514power*-*-aix[5-9]*,yes)
8515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8516$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8517
8518# Check whether --with-aix-soname was given.
8519if test "${with_aix_soname+set}" = set; then :
8520  withval=$with_aix_soname; case $withval in
8521    aix|svr4|both)
8522      ;;
8523    *)
8524      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8525      ;;
8526    esac
8527    lt_cv_with_aix_soname=$with_aix_soname
8528else
8529  if ${lt_cv_with_aix_soname+:} false; then :
8530  $as_echo_n "(cached) " >&6
8531else
8532  lt_cv_with_aix_soname=aix
8533fi
8534
8535    with_aix_soname=$lt_cv_with_aix_soname
8536fi
8537
8538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8539$as_echo "$with_aix_soname" >&6; }
8540  if test aix != "$with_aix_soname"; then
8541    # For the AIX way of multilib, we name the shared archive member
8542    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8543    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8544    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8545    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8546    if test 64 = "${OBJECT_MODE-32}"; then
8547      shared_archive_member_spec=shr_64
8548    else
8549      shared_archive_member_spec=shr
8550    fi
8551  fi
8552  ;;
8553*)
8554  with_aix_soname=aix
8555  ;;
8556esac
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567# This can be used to rebuild libtool when needed
8568LIBTOOL_DEPS=$ltmain
8569
8570# Always use our own libtool.
8571LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602test -z "$LN_S" && LN_S="ln -s"
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617if test -n "${ZSH_VERSION+set}"; then
8618   setopt NO_GLOB_SUBST
8619fi
8620
8621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8622$as_echo_n "checking for objdir... " >&6; }
8623if ${lt_cv_objdir+:} false; then :
8624  $as_echo_n "(cached) " >&6
8625else
8626  rm -f .libs 2>/dev/null
8627mkdir .libs 2>/dev/null
8628if test -d .libs; then
8629  lt_cv_objdir=.libs
8630else
8631  # MS-DOS does not allow filenames that begin with a dot.
8632  lt_cv_objdir=_libs
8633fi
8634rmdir .libs 2>/dev/null
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8637$as_echo "$lt_cv_objdir" >&6; }
8638objdir=$lt_cv_objdir
8639
8640
8641
8642
8643
8644cat >>confdefs.h <<_ACEOF
8645#define LT_OBJDIR "$lt_cv_objdir/"
8646_ACEOF
8647
8648
8649
8650
8651case $host_os in
8652aix3*)
8653  # AIX sometimes has problems with the GCC collect2 program.  For some
8654  # reason, if we set the COLLECT_NAMES environment variable, the problems
8655  # vanish in a puff of smoke.
8656  if test set != "${COLLECT_NAMES+set}"; then
8657    COLLECT_NAMES=
8658    export COLLECT_NAMES
8659  fi
8660  ;;
8661esac
8662
8663# Global variables:
8664ofile=libtool
8665can_build_shared=yes
8666
8667# All known linkers require a '.a' archive for static linking (except MSVC,
8668# which needs '.lib').
8669libext=a
8670
8671with_gnu_ld=$lt_cv_prog_gnu_ld
8672
8673old_CC=$CC
8674old_CFLAGS=$CFLAGS
8675
8676# Set sane defaults for various variables
8677test -z "$CC" && CC=cc
8678test -z "$LTCC" && LTCC=$CC
8679test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8680test -z "$LD" && LD=ld
8681test -z "$ac_objext" && ac_objext=o
8682
8683func_cc_basename $compiler
8684cc_basename=$func_cc_basename_result
8685
8686
8687# Only perform the check for file, if the check method requires it
8688test -z "$MAGIC_CMD" && MAGIC_CMD=file
8689case $deplibs_check_method in
8690file_magic*)
8691  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8693$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8694if ${lt_cv_path_MAGIC_CMD+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  case $MAGIC_CMD in
8698[\\/*] |  ?:[\\/]*)
8699  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8700  ;;
8701*)
8702  lt_save_MAGIC_CMD=$MAGIC_CMD
8703  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8704  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8705  for ac_dir in $ac_dummy; do
8706    IFS=$lt_save_ifs
8707    test -z "$ac_dir" && ac_dir=.
8708    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8709      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8710      if test -n "$file_magic_test_file"; then
8711	case $deplibs_check_method in
8712	"file_magic "*)
8713	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8714	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8715	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8716	    $EGREP "$file_magic_regex" > /dev/null; then
8717	    :
8718	  else
8719	    cat <<_LT_EOF 1>&2
8720
8721*** Warning: the command libtool uses to detect shared libraries,
8722*** $file_magic_cmd, produces output that libtool cannot recognize.
8723*** The result is that libtool may fail to recognize shared libraries
8724*** as such.  This will affect the creation of libtool libraries that
8725*** depend on shared libraries, but programs linked with such libtool
8726*** libraries will work regardless of this problem.  Nevertheless, you
8727*** may want to report the problem to your system manager and/or to
8728*** bug-libtool@gnu.org
8729
8730_LT_EOF
8731	  fi ;;
8732	esac
8733      fi
8734      break
8735    fi
8736  done
8737  IFS=$lt_save_ifs
8738  MAGIC_CMD=$lt_save_MAGIC_CMD
8739  ;;
8740esac
8741fi
8742
8743MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8744if test -n "$MAGIC_CMD"; then
8745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8746$as_echo "$MAGIC_CMD" >&6; }
8747else
8748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749$as_echo "no" >&6; }
8750fi
8751
8752
8753
8754
8755
8756if test -z "$lt_cv_path_MAGIC_CMD"; then
8757  if test -n "$ac_tool_prefix"; then
8758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8759$as_echo_n "checking for file... " >&6; }
8760if ${lt_cv_path_MAGIC_CMD+:} false; then :
8761  $as_echo_n "(cached) " >&6
8762else
8763  case $MAGIC_CMD in
8764[\\/*] |  ?:[\\/]*)
8765  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8766  ;;
8767*)
8768  lt_save_MAGIC_CMD=$MAGIC_CMD
8769  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8770  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771  for ac_dir in $ac_dummy; do
8772    IFS=$lt_save_ifs
8773    test -z "$ac_dir" && ac_dir=.
8774    if test -f "$ac_dir/file"; then
8775      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8776      if test -n "$file_magic_test_file"; then
8777	case $deplibs_check_method in
8778	"file_magic "*)
8779	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8781	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782	    $EGREP "$file_magic_regex" > /dev/null; then
8783	    :
8784	  else
8785	    cat <<_LT_EOF 1>&2
8786
8787*** Warning: the command libtool uses to detect shared libraries,
8788*** $file_magic_cmd, produces output that libtool cannot recognize.
8789*** The result is that libtool may fail to recognize shared libraries
8790*** as such.  This will affect the creation of libtool libraries that
8791*** depend on shared libraries, but programs linked with such libtool
8792*** libraries will work regardless of this problem.  Nevertheless, you
8793*** may want to report the problem to your system manager and/or to
8794*** bug-libtool@gnu.org
8795
8796_LT_EOF
8797	  fi ;;
8798	esac
8799      fi
8800      break
8801    fi
8802  done
8803  IFS=$lt_save_ifs
8804  MAGIC_CMD=$lt_save_MAGIC_CMD
8805  ;;
8806esac
8807fi
8808
8809MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8810if test -n "$MAGIC_CMD"; then
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8812$as_echo "$MAGIC_CMD" >&6; }
8813else
8814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
8816fi
8817
8818
8819  else
8820    MAGIC_CMD=:
8821  fi
8822fi
8823
8824  fi
8825  ;;
8826esac
8827
8828# Use C for the default configuration in the libtool script
8829
8830lt_save_CC=$CC
8831ac_ext=c
8832ac_cpp='$CPP $CPPFLAGS'
8833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835ac_compiler_gnu=$ac_cv_c_compiler_gnu
8836
8837
8838# Source file extension for C test sources.
8839ac_ext=c
8840
8841# Object file extension for compiled C test sources.
8842objext=o
8843objext=$objext
8844
8845# Code to be used in simple compile tests
8846lt_simple_compile_test_code="int some_variable = 0;"
8847
8848# Code to be used in simple link tests
8849lt_simple_link_test_code='int main(){return(0);}'
8850
8851
8852
8853
8854
8855
8856
8857# If no C compiler was specified, use CC.
8858LTCC=${LTCC-"$CC"}
8859
8860# If no C compiler flags were specified, use CFLAGS.
8861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8862
8863# Allow CC to be a program name with arguments.
8864compiler=$CC
8865
8866# Save the default compiler, since it gets overwritten when the other
8867# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8868compiler_DEFAULT=$CC
8869
8870# save warnings/boilerplate of simple test code
8871ac_outfile=conftest.$ac_objext
8872echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8873eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8874_lt_compiler_boilerplate=`cat conftest.err`
8875$RM conftest*
8876
8877ac_outfile=conftest.$ac_objext
8878echo "$lt_simple_link_test_code" >conftest.$ac_ext
8879eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8880_lt_linker_boilerplate=`cat conftest.err`
8881$RM -r conftest*
8882
8883
8884## CAVEAT EMPTOR:
8885## There is no encapsulation within the following macros, do not change
8886## the running order or otherwise move them around unless you know exactly
8887## what you are doing...
8888if test -n "$compiler"; then
8889
8890lt_prog_compiler_no_builtin_flag=
8891
8892if test yes = "$GCC"; then
8893  case $cc_basename in
8894  nvcc*)
8895    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8896  *)
8897    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8898  esac
8899
8900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8901$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8902if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  lt_cv_prog_compiler_rtti_exceptions=no
8906   ac_outfile=conftest.$ac_objext
8907   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8909   # Insert the option either (1) after the last *FLAGS variable, or
8910   # (2) before a word containing "conftest.", or (3) at the end.
8911   # Note that $ac_compile itself does not contain backslashes and begins
8912   # with a dollar sign (not a hyphen), so the echo should work correctly.
8913   # The option is referenced via a variable to avoid confusing sed.
8914   lt_compile=`echo "$ac_compile" | $SED \
8915   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917   -e 's:$: $lt_compiler_flag:'`
8918   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919   (eval "$lt_compile" 2>conftest.err)
8920   ac_status=$?
8921   cat conftest.err >&5
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   if (exit $ac_status) && test -s "$ac_outfile"; then
8924     # The compiler can only warn and ignore the option if not recognized
8925     # So say no if there are warnings other than the usual output.
8926     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8927     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8928     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8929       lt_cv_prog_compiler_rtti_exceptions=yes
8930     fi
8931   fi
8932   $RM conftest*
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8936$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8937
8938if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8939    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8940else
8941    :
8942fi
8943
8944fi
8945
8946
8947
8948
8949
8950
8951  lt_prog_compiler_wl=
8952lt_prog_compiler_pic=
8953lt_prog_compiler_static=
8954
8955
8956  if test yes = "$GCC"; then
8957    lt_prog_compiler_wl='-Wl,'
8958    lt_prog_compiler_static='-static'
8959
8960    case $host_os in
8961      aix*)
8962      # All AIX code is PIC.
8963      if test ia64 = "$host_cpu"; then
8964	# AIX 5 now supports IA64 processor
8965	lt_prog_compiler_static='-Bstatic'
8966      fi
8967      lt_prog_compiler_pic='-fPIC'
8968      ;;
8969
8970    amigaos*)
8971      case $host_cpu in
8972      powerpc)
8973            # see comment about AmigaOS4 .so support
8974            lt_prog_compiler_pic='-fPIC'
8975        ;;
8976      m68k)
8977            # FIXME: we need at least 68020 code to build shared libraries, but
8978            # adding the '-m68020' flag to GCC prevents building anything better,
8979            # like '-m68040'.
8980            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8981        ;;
8982      esac
8983      ;;
8984
8985    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8986      # PIC is the default for these OSes.
8987      ;;
8988
8989    mingw* | cygwin* | pw32* | os2* | cegcc*)
8990      # This hack is so that the source file can tell whether it is being
8991      # built for inclusion in a dll (and should export symbols for example).
8992      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8993      # (--disable-auto-import) libraries
8994      lt_prog_compiler_pic='-DDLL_EXPORT'
8995      case $host_os in
8996      os2*)
8997	lt_prog_compiler_static='$wl-static'
8998	;;
8999      esac
9000      ;;
9001
9002    darwin* | rhapsody*)
9003      # PIC is the default on this platform
9004      # Common symbols not allowed in MH_DYLIB files
9005      lt_prog_compiler_pic='-fno-common'
9006      ;;
9007
9008    haiku*)
9009      # PIC is the default for Haiku.
9010      # The "-static" flag exists, but is broken.
9011      lt_prog_compiler_static=
9012      ;;
9013
9014    hpux*)
9015      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9016      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9017      # sets the default TLS model and affects inlining.
9018      case $host_cpu in
9019      hppa*64*)
9020	# +Z the default
9021	;;
9022      *)
9023	lt_prog_compiler_pic='-fPIC'
9024	;;
9025      esac
9026      ;;
9027
9028    interix[3-9]*)
9029      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9030      # Instead, we relocate shared libraries at runtime.
9031      ;;
9032
9033    msdosdjgpp*)
9034      # Just because we use GCC doesn't mean we suddenly get shared libraries
9035      # on systems that don't support them.
9036      lt_prog_compiler_can_build_shared=no
9037      enable_shared=no
9038      ;;
9039
9040    *nto* | *qnx*)
9041      # QNX uses GNU C++, but need to define -shared option too, otherwise
9042      # it will coredump.
9043      lt_prog_compiler_pic='-fPIC -shared'
9044      ;;
9045
9046    sysv4*MP*)
9047      if test -d /usr/nec; then
9048	lt_prog_compiler_pic=-Kconform_pic
9049      fi
9050      ;;
9051
9052    *)
9053      lt_prog_compiler_pic='-fPIC'
9054      ;;
9055    esac
9056
9057    case $cc_basename in
9058    nvcc*) # Cuda Compiler Driver 2.2
9059      lt_prog_compiler_wl='-Xlinker '
9060      if test -n "$lt_prog_compiler_pic"; then
9061        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9062      fi
9063      ;;
9064    esac
9065  else
9066    # PORTME Check for flag to pass linker flags through the system compiler.
9067    case $host_os in
9068    aix*)
9069      lt_prog_compiler_wl='-Wl,'
9070      if test ia64 = "$host_cpu"; then
9071	# AIX 5 now supports IA64 processor
9072	lt_prog_compiler_static='-Bstatic'
9073      else
9074	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9075      fi
9076      ;;
9077
9078    darwin* | rhapsody*)
9079      # PIC is the default on this platform
9080      # Common symbols not allowed in MH_DYLIB files
9081      lt_prog_compiler_pic='-fno-common'
9082      case $cc_basename in
9083      nagfor*)
9084        # NAG Fortran compiler
9085        lt_prog_compiler_wl='-Wl,-Wl,,'
9086        lt_prog_compiler_pic='-PIC'
9087        lt_prog_compiler_static='-Bstatic'
9088        ;;
9089      esac
9090      ;;
9091
9092    mingw* | cygwin* | pw32* | os2* | cegcc*)
9093      # This hack is so that the source file can tell whether it is being
9094      # built for inclusion in a dll (and should export symbols for example).
9095      lt_prog_compiler_pic='-DDLL_EXPORT'
9096      case $host_os in
9097      os2*)
9098	lt_prog_compiler_static='$wl-static'
9099	;;
9100      esac
9101      ;;
9102
9103    hpux9* | hpux10* | hpux11*)
9104      lt_prog_compiler_wl='-Wl,'
9105      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9106      # not for PA HP-UX.
9107      case $host_cpu in
9108      hppa*64*|ia64*)
9109	# +Z the default
9110	;;
9111      *)
9112	lt_prog_compiler_pic='+Z'
9113	;;
9114      esac
9115      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9116      lt_prog_compiler_static='$wl-a ${wl}archive'
9117      ;;
9118
9119    irix5* | irix6* | nonstopux*)
9120      lt_prog_compiler_wl='-Wl,'
9121      # PIC (with -KPIC) is the default.
9122      lt_prog_compiler_static='-non_shared'
9123      ;;
9124
9125    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9126      case $cc_basename in
9127      # old Intel for x86_64, which still supported -KPIC.
9128      ecc*)
9129	lt_prog_compiler_wl='-Wl,'
9130	lt_prog_compiler_pic='-KPIC'
9131	lt_prog_compiler_static='-static'
9132        ;;
9133      # icc used to be incompatible with GCC.
9134      # ICC 10 doesn't accept -KPIC any more.
9135      icc* | ifort*)
9136	lt_prog_compiler_wl='-Wl,'
9137	lt_prog_compiler_pic='-fPIC'
9138	lt_prog_compiler_static='-static'
9139        ;;
9140      # Lahey Fortran 8.1.
9141      lf95*)
9142	lt_prog_compiler_wl='-Wl,'
9143	lt_prog_compiler_pic='--shared'
9144	lt_prog_compiler_static='--static'
9145	;;
9146      nagfor*)
9147	# NAG Fortran compiler
9148	lt_prog_compiler_wl='-Wl,-Wl,,'
9149	lt_prog_compiler_pic='-PIC'
9150	lt_prog_compiler_static='-Bstatic'
9151	;;
9152      tcc*)
9153	# Fabrice Bellard et al's Tiny C Compiler
9154	lt_prog_compiler_wl='-Wl,'
9155	lt_prog_compiler_pic='-fPIC'
9156	lt_prog_compiler_static='-static'
9157	;;
9158      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9159        # Portland Group compilers (*not* the Pentium gcc compiler,
9160	# which looks to be a dead project)
9161	lt_prog_compiler_wl='-Wl,'
9162	lt_prog_compiler_pic='-fpic'
9163	lt_prog_compiler_static='-Bstatic'
9164        ;;
9165      ccc*)
9166        lt_prog_compiler_wl='-Wl,'
9167        # All Alpha code is PIC.
9168        lt_prog_compiler_static='-non_shared'
9169        ;;
9170      xl* | bgxl* | bgf* | mpixl*)
9171	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9172	lt_prog_compiler_wl='-Wl,'
9173	lt_prog_compiler_pic='-qpic'
9174	lt_prog_compiler_static='-qstaticlink'
9175	;;
9176      *)
9177	case `$CC -V 2>&1 | sed 5q` in
9178	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9179	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9180	  lt_prog_compiler_pic='-KPIC'
9181	  lt_prog_compiler_static='-Bstatic'
9182	  lt_prog_compiler_wl=''
9183	  ;;
9184	*Sun\ F* | *Sun*Fortran*)
9185	  lt_prog_compiler_pic='-KPIC'
9186	  lt_prog_compiler_static='-Bstatic'
9187	  lt_prog_compiler_wl='-Qoption ld '
9188	  ;;
9189	*Sun\ C*)
9190	  # Sun C 5.9
9191	  lt_prog_compiler_pic='-KPIC'
9192	  lt_prog_compiler_static='-Bstatic'
9193	  lt_prog_compiler_wl='-Wl,'
9194	  ;;
9195        *Intel*\ [CF]*Compiler*)
9196	  lt_prog_compiler_wl='-Wl,'
9197	  lt_prog_compiler_pic='-fPIC'
9198	  lt_prog_compiler_static='-static'
9199	  ;;
9200	*Portland\ Group*)
9201	  lt_prog_compiler_wl='-Wl,'
9202	  lt_prog_compiler_pic='-fpic'
9203	  lt_prog_compiler_static='-Bstatic'
9204	  ;;
9205	esac
9206	;;
9207      esac
9208      ;;
9209
9210    newsos6)
9211      lt_prog_compiler_pic='-KPIC'
9212      lt_prog_compiler_static='-Bstatic'
9213      ;;
9214
9215    *nto* | *qnx*)
9216      # QNX uses GNU C++, but need to define -shared option too, otherwise
9217      # it will coredump.
9218      lt_prog_compiler_pic='-fPIC -shared'
9219      ;;
9220
9221    osf3* | osf4* | osf5*)
9222      lt_prog_compiler_wl='-Wl,'
9223      # All OSF/1 code is PIC.
9224      lt_prog_compiler_static='-non_shared'
9225      ;;
9226
9227    rdos*)
9228      lt_prog_compiler_static='-non_shared'
9229      ;;
9230
9231    solaris*)
9232      lt_prog_compiler_pic='-KPIC'
9233      lt_prog_compiler_static='-Bstatic'
9234      case $cc_basename in
9235      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9236	lt_prog_compiler_wl='-Qoption ld ';;
9237      *)
9238	lt_prog_compiler_wl='-Wl,';;
9239      esac
9240      ;;
9241
9242    sunos4*)
9243      lt_prog_compiler_wl='-Qoption ld '
9244      lt_prog_compiler_pic='-PIC'
9245      lt_prog_compiler_static='-Bstatic'
9246      ;;
9247
9248    sysv4 | sysv4.2uw2* | sysv4.3*)
9249      lt_prog_compiler_wl='-Wl,'
9250      lt_prog_compiler_pic='-KPIC'
9251      lt_prog_compiler_static='-Bstatic'
9252      ;;
9253
9254    sysv4*MP*)
9255      if test -d /usr/nec; then
9256	lt_prog_compiler_pic='-Kconform_pic'
9257	lt_prog_compiler_static='-Bstatic'
9258      fi
9259      ;;
9260
9261    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9262      lt_prog_compiler_wl='-Wl,'
9263      lt_prog_compiler_pic='-KPIC'
9264      lt_prog_compiler_static='-Bstatic'
9265      ;;
9266
9267    unicos*)
9268      lt_prog_compiler_wl='-Wl,'
9269      lt_prog_compiler_can_build_shared=no
9270      ;;
9271
9272    uts4*)
9273      lt_prog_compiler_pic='-pic'
9274      lt_prog_compiler_static='-Bstatic'
9275      ;;
9276
9277    *)
9278      lt_prog_compiler_can_build_shared=no
9279      ;;
9280    esac
9281  fi
9282
9283case $host_os in
9284  # For platforms that do not support PIC, -DPIC is meaningless:
9285  *djgpp*)
9286    lt_prog_compiler_pic=
9287    ;;
9288  *)
9289    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9290    ;;
9291esac
9292
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9294$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9295if ${lt_cv_prog_compiler_pic+:} false; then :
9296  $as_echo_n "(cached) " >&6
9297else
9298  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9299fi
9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9301$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9302lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9303
9304#
9305# Check to make sure the PIC flag actually works.
9306#
9307if test -n "$lt_prog_compiler_pic"; then
9308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9310if ${lt_cv_prog_compiler_pic_works+:} false; then :
9311  $as_echo_n "(cached) " >&6
9312else
9313  lt_cv_prog_compiler_pic_works=no
9314   ac_outfile=conftest.$ac_objext
9315   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9317   # Insert the option either (1) after the last *FLAGS variable, or
9318   # (2) before a word containing "conftest.", or (3) at the end.
9319   # Note that $ac_compile itself does not contain backslashes and begins
9320   # with a dollar sign (not a hyphen), so the echo should work correctly.
9321   # The option is referenced via a variable to avoid confusing sed.
9322   lt_compile=`echo "$ac_compile" | $SED \
9323   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325   -e 's:$: $lt_compiler_flag:'`
9326   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9327   (eval "$lt_compile" 2>conftest.err)
9328   ac_status=$?
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   if (exit $ac_status) && test -s "$ac_outfile"; then
9332     # The compiler can only warn and ignore the option if not recognized
9333     # So say no if there are warnings other than the usual output.
9334     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9335     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337       lt_cv_prog_compiler_pic_works=yes
9338     fi
9339   fi
9340   $RM conftest*
9341
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9344$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9345
9346if test yes = "$lt_cv_prog_compiler_pic_works"; then
9347    case $lt_prog_compiler_pic in
9348     "" | " "*) ;;
9349     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9350     esac
9351else
9352    lt_prog_compiler_pic=
9353     lt_prog_compiler_can_build_shared=no
9354fi
9355
9356fi
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368#
9369# Check to make sure the static flag actually works.
9370#
9371wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9373$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9374if ${lt_cv_prog_compiler_static_works+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  lt_cv_prog_compiler_static_works=no
9378   save_LDFLAGS=$LDFLAGS
9379   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9380   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9381   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9382     # The linker can only warn and ignore the option if not recognized
9383     # So say no if there are warnings
9384     if test -s conftest.err; then
9385       # Append any errors to the config.log.
9386       cat conftest.err 1>&5
9387       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9388       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9389       if diff conftest.exp conftest.er2 >/dev/null; then
9390         lt_cv_prog_compiler_static_works=yes
9391       fi
9392     else
9393       lt_cv_prog_compiler_static_works=yes
9394     fi
9395   fi
9396   $RM -r conftest*
9397   LDFLAGS=$save_LDFLAGS
9398
9399fi
9400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9401$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9402
9403if test yes = "$lt_cv_prog_compiler_static_works"; then
9404    :
9405else
9406    lt_prog_compiler_static=
9407fi
9408
9409
9410
9411
9412
9413
9414
9415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9416$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9417if ${lt_cv_prog_compiler_c_o+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  lt_cv_prog_compiler_c_o=no
9421   $RM -r conftest 2>/dev/null
9422   mkdir conftest
9423   cd conftest
9424   mkdir out
9425   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426
9427   lt_compiler_flag="-o out/conftest2.$ac_objext"
9428   # Insert the option either (1) after the last *FLAGS variable, or
9429   # (2) before a word containing "conftest.", or (3) at the end.
9430   # Note that $ac_compile itself does not contain backslashes and begins
9431   # with a dollar sign (not a hyphen), so the echo should work correctly.
9432   lt_compile=`echo "$ac_compile" | $SED \
9433   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435   -e 's:$: $lt_compiler_flag:'`
9436   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9437   (eval "$lt_compile" 2>out/conftest.err)
9438   ac_status=$?
9439   cat out/conftest.err >&5
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9442   then
9443     # The compiler can only warn and ignore the option if not recognized
9444     # So say no if there are warnings
9445     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9446     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9447     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9448       lt_cv_prog_compiler_c_o=yes
9449     fi
9450   fi
9451   chmod u+w . 2>&5
9452   $RM conftest*
9453   # SGI C++ compiler will create directory out/ii_files/ for
9454   # template instantiation
9455   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9456   $RM out/* && rmdir out
9457   cd ..
9458   $RM -r conftest
9459   $RM conftest*
9460
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9463$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9464
9465
9466
9467
9468
9469
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9472if ${lt_cv_prog_compiler_c_o+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_prog_compiler_c_o=no
9476   $RM -r conftest 2>/dev/null
9477   mkdir conftest
9478   cd conftest
9479   mkdir out
9480   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481
9482   lt_compiler_flag="-o out/conftest2.$ac_objext"
9483   # Insert the option either (1) after the last *FLAGS variable, or
9484   # (2) before a word containing "conftest.", or (3) at the end.
9485   # Note that $ac_compile itself does not contain backslashes and begins
9486   # with a dollar sign (not a hyphen), so the echo should work correctly.
9487   lt_compile=`echo "$ac_compile" | $SED \
9488   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490   -e 's:$: $lt_compiler_flag:'`
9491   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492   (eval "$lt_compile" 2>out/conftest.err)
9493   ac_status=$?
9494   cat out/conftest.err >&5
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497   then
9498     # The compiler can only warn and ignore the option if not recognized
9499     # So say no if there are warnings
9500     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9501     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9502     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9503       lt_cv_prog_compiler_c_o=yes
9504     fi
9505   fi
9506   chmod u+w . 2>&5
9507   $RM conftest*
9508   # SGI C++ compiler will create directory out/ii_files/ for
9509   # template instantiation
9510   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9511   $RM out/* && rmdir out
9512   cd ..
9513   $RM -r conftest
9514   $RM conftest*
9515
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9518$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9519
9520
9521
9522
9523hard_links=nottested
9524if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9525  # do not overwrite the value of need_locks provided by the user
9526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9527$as_echo_n "checking if we can lock with hard links... " >&6; }
9528  hard_links=yes
9529  $RM conftest*
9530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9531  touch conftest.a
9532  ln conftest.a conftest.b 2>&5 || hard_links=no
9533  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9535$as_echo "$hard_links" >&6; }
9536  if test no = "$hard_links"; then
9537    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9538$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9539    need_locks=warn
9540  fi
9541else
9542  need_locks=no
9543fi
9544
9545
9546
9547
9548
9549
9550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9552
9553  runpath_var=
9554  allow_undefined_flag=
9555  always_export_symbols=no
9556  archive_cmds=
9557  archive_expsym_cmds=
9558  compiler_needs_object=no
9559  enable_shared_with_static_runtimes=no
9560  export_dynamic_flag_spec=
9561  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9562  hardcode_automatic=no
9563  hardcode_direct=no
9564  hardcode_direct_absolute=no
9565  hardcode_libdir_flag_spec=
9566  hardcode_libdir_separator=
9567  hardcode_minus_L=no
9568  hardcode_shlibpath_var=unsupported
9569  inherit_rpath=no
9570  link_all_deplibs=unknown
9571  module_cmds=
9572  module_expsym_cmds=
9573  old_archive_from_new_cmds=
9574  old_archive_from_expsyms_cmds=
9575  thread_safe_flag_spec=
9576  whole_archive_flag_spec=
9577  # include_expsyms should be a list of space-separated symbols to be *always*
9578  # included in the symbol list
9579  include_expsyms=
9580  # exclude_expsyms can be an extended regexp of symbols to exclude
9581  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9582  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9583  # as well as any symbol that contains 'd'.
9584  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9585  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9586  # platforms (ab)use it in PIC code, but their linkers get confused if
9587  # the symbol is explicitly referenced.  Since portable code cannot
9588  # rely on this symbol name, it's probably fine to never include it in
9589  # preloaded symbol tables.
9590  # Exclude shared library initialization/finalization symbols.
9591  extract_expsyms_cmds=
9592
9593  case $host_os in
9594  cygwin* | mingw* | pw32* | cegcc*)
9595    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9596    # When not using gcc, we currently assume that we are using
9597    # Microsoft Visual C++.
9598    if test yes != "$GCC"; then
9599      with_gnu_ld=no
9600    fi
9601    ;;
9602  interix*)
9603    # we just hope/assume this is gcc and not c89 (= MSVC++)
9604    with_gnu_ld=yes
9605    ;;
9606  openbsd* | bitrig*)
9607    with_gnu_ld=no
9608    ;;
9609  esac
9610
9611  ld_shlibs=yes
9612
9613  # On some targets, GNU ld is compatible enough with the native linker
9614  # that we're better off using the native interface for both.
9615  lt_use_gnu_ld_interface=no
9616  if test yes = "$with_gnu_ld"; then
9617    case $host_os in
9618      aix*)
9619	# The AIX port of GNU ld has always aspired to compatibility
9620	# with the native linker.  However, as the warning in the GNU ld
9621	# block says, versions before 2.19.5* couldn't really create working
9622	# shared libraries, regardless of the interface used.
9623	case `$LD -v 2>&1` in
9624	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9625	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9626	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9627	  *)
9628	    lt_use_gnu_ld_interface=yes
9629	    ;;
9630	esac
9631	;;
9632      *)
9633	lt_use_gnu_ld_interface=yes
9634	;;
9635    esac
9636  fi
9637
9638  if test yes = "$lt_use_gnu_ld_interface"; then
9639    # If archive_cmds runs LD, not CC, wlarc should be empty
9640    wlarc='$wl'
9641
9642    # Set some defaults for GNU ld with shared library support. These
9643    # are reset later if shared libraries are not supported. Putting them
9644    # here allows them to be overridden if necessary.
9645    runpath_var=LD_RUN_PATH
9646    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9647    export_dynamic_flag_spec='$wl--export-dynamic'
9648    # ancient GNU ld didn't support --whole-archive et. al.
9649    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9650      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9651    else
9652      whole_archive_flag_spec=
9653    fi
9654    supports_anon_versioning=no
9655    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9656      *GNU\ gold*) supports_anon_versioning=yes ;;
9657      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9658      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9659      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9660      *\ 2.11.*) ;; # other 2.11 versions
9661      *) supports_anon_versioning=yes ;;
9662    esac
9663
9664    # See if GNU ld supports shared libraries.
9665    case $host_os in
9666    aix[3-9]*)
9667      # On AIX/PPC, the GNU linker is very broken
9668      if test ia64 != "$host_cpu"; then
9669	ld_shlibs=no
9670	cat <<_LT_EOF 1>&2
9671
9672*** Warning: the GNU linker, at least up to release 2.19, is reported
9673*** to be unable to reliably create shared libraries on AIX.
9674*** Therefore, libtool is disabling shared libraries support.  If you
9675*** really care for shared libraries, you may want to install binutils
9676*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9677*** You will then need to restart the configuration process.
9678
9679_LT_EOF
9680      fi
9681      ;;
9682
9683    amigaos*)
9684      case $host_cpu in
9685      powerpc)
9686            # see comment about AmigaOS4 .so support
9687            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9688            archive_expsym_cmds=''
9689        ;;
9690      m68k)
9691            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)'
9692            hardcode_libdir_flag_spec='-L$libdir'
9693            hardcode_minus_L=yes
9694        ;;
9695      esac
9696      ;;
9697
9698    beos*)
9699      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9700	allow_undefined_flag=unsupported
9701	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9702	# support --undefined.  This deserves some investigation.  FIXME
9703	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9704      else
9705	ld_shlibs=no
9706      fi
9707      ;;
9708
9709    cygwin* | mingw* | pw32* | cegcc*)
9710      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9711      # as there is no search path for DLLs.
9712      hardcode_libdir_flag_spec='-L$libdir'
9713      export_dynamic_flag_spec='$wl--export-all-symbols'
9714      allow_undefined_flag=unsupported
9715      always_export_symbols=no
9716      enable_shared_with_static_runtimes=yes
9717      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9718      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9719
9720      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9721        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9722	# If the export-symbols file already is a .def file, use it as
9723	# is; otherwise, prepend EXPORTS...
9724	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9725          cp $export_symbols $output_objdir/$soname.def;
9726        else
9727          echo EXPORTS > $output_objdir/$soname.def;
9728          cat $export_symbols >> $output_objdir/$soname.def;
9729        fi~
9730        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9731      else
9732	ld_shlibs=no
9733      fi
9734      ;;
9735
9736    haiku*)
9737      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9738      link_all_deplibs=yes
9739      ;;
9740
9741    os2*)
9742      hardcode_libdir_flag_spec='-L$libdir'
9743      hardcode_minus_L=yes
9744      allow_undefined_flag=unsupported
9745      shrext_cmds=.dll
9746      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9747	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9748	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9749	$ECHO EXPORTS >> $output_objdir/$libname.def~
9750	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9751	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9752	emximp -o $lib $output_objdir/$libname.def'
9753      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9754	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9755	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9756	$ECHO EXPORTS >> $output_objdir/$libname.def~
9757	prefix_cmds="$SED"~
9758	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9759	  prefix_cmds="$prefix_cmds -e 1d";
9760	fi~
9761	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9762	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9763	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9764	emximp -o $lib $output_objdir/$libname.def'
9765      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9766      enable_shared_with_static_runtimes=yes
9767      ;;
9768
9769    interix[3-9]*)
9770      hardcode_direct=no
9771      hardcode_shlibpath_var=no
9772      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9773      export_dynamic_flag_spec='$wl-E'
9774      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9775      # Instead, shared libraries are loaded at an image base (0x10000000 by
9776      # default) and relocated if they conflict, which is a slow very memory
9777      # consuming and fragmenting process.  To avoid this, we pick a random,
9778      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9779      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9780      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9781      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'
9782      ;;
9783
9784    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9785      tmp_diet=no
9786      if test linux-dietlibc = "$host_os"; then
9787	case $cc_basename in
9788	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9789	esac
9790      fi
9791      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9792	 && test no = "$tmp_diet"
9793      then
9794	tmp_addflag=' $pic_flag'
9795	tmp_sharedflag='-shared'
9796	case $cc_basename,$host_cpu in
9797        pgcc*)				# Portland Group C compiler
9798	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9799	  tmp_addflag=' $pic_flag'
9800	  ;;
9801	pgf77* | pgf90* | pgf95* | pgfortran*)
9802					# Portland Group f77 and f90 compilers
9803	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9804	  tmp_addflag=' $pic_flag -Mnomain' ;;
9805	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9806	  tmp_addflag=' -i_dynamic' ;;
9807	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9808	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9809	ifc* | ifort*)			# Intel Fortran compiler
9810	  tmp_addflag=' -nofor_main' ;;
9811	lf95*)				# Lahey Fortran 8.1
9812	  whole_archive_flag_spec=
9813	  tmp_sharedflag='--shared' ;;
9814        nagfor*)                        # NAGFOR 5.3
9815          tmp_sharedflag='-Wl,-shared' ;;
9816	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9817	  tmp_sharedflag='-qmkshrobj'
9818	  tmp_addflag= ;;
9819	nvcc*)	# Cuda Compiler Driver 2.2
9820	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9821	  compiler_needs_object=yes
9822	  ;;
9823	esac
9824	case `$CC -V 2>&1 | sed 5q` in
9825	*Sun\ C*)			# Sun C 5.9
9826	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9827	  compiler_needs_object=yes
9828	  tmp_sharedflag='-G' ;;
9829	*Sun\ F*)			# Sun Fortran 8.3
9830	  tmp_sharedflag='-G' ;;
9831	esac
9832	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9833
9834        if test yes = "$supports_anon_versioning"; then
9835          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9836            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837            echo "local: *; };" >> $output_objdir/$libname.ver~
9838            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9839        fi
9840
9841	case $cc_basename in
9842	tcc*)
9843	  export_dynamic_flag_spec='-rdynamic'
9844	  ;;
9845	xlf* | bgf* | bgxlf* | mpixlf*)
9846	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9847	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9848	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9849	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9850	  if test yes = "$supports_anon_versioning"; then
9851	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9852              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9853              echo "local: *; };" >> $output_objdir/$libname.ver~
9854              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9855	  fi
9856	  ;;
9857	esac
9858      else
9859        ld_shlibs=no
9860      fi
9861      ;;
9862
9863    netbsd*)
9864      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9865	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9866	wlarc=
9867      else
9868	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9869	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9870      fi
9871      ;;
9872
9873    solaris*)
9874      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9875	ld_shlibs=no
9876	cat <<_LT_EOF 1>&2
9877
9878*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9879*** create shared libraries on Solaris systems.  Therefore, libtool
9880*** is disabling shared libraries support.  We urge you to upgrade GNU
9881*** binutils to release 2.9.1 or newer.  Another option is to modify
9882*** your PATH or compiler configuration so that the native linker is
9883*** used, and then restart.
9884
9885_LT_EOF
9886      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9887	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9888	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9889      else
9890	ld_shlibs=no
9891      fi
9892      ;;
9893
9894    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9895      case `$LD -v 2>&1` in
9896        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9897	ld_shlibs=no
9898	cat <<_LT_EOF 1>&2
9899
9900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9901*** reliably create shared libraries on SCO systems.  Therefore, libtool
9902*** is disabling shared libraries support.  We urge you to upgrade GNU
9903*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9904*** your PATH or compiler configuration so that the native linker is
9905*** used, and then restart.
9906
9907_LT_EOF
9908	;;
9909	*)
9910	  # For security reasons, it is highly recommended that you always
9911	  # use absolute paths for naming shared libraries, and exclude the
9912	  # DT_RUNPATH tag from executables and libraries.  But doing so
9913	  # requires that you compile everything twice, which is a pain.
9914	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9915	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9916	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9917	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9918	  else
9919	    ld_shlibs=no
9920	  fi
9921	;;
9922      esac
9923      ;;
9924
9925    sunos4*)
9926      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927      wlarc=
9928      hardcode_direct=yes
9929      hardcode_shlibpath_var=no
9930      ;;
9931
9932    *)
9933      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9934	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9936      else
9937	ld_shlibs=no
9938      fi
9939      ;;
9940    esac
9941
9942    if test no = "$ld_shlibs"; then
9943      runpath_var=
9944      hardcode_libdir_flag_spec=
9945      export_dynamic_flag_spec=
9946      whole_archive_flag_spec=
9947    fi
9948  else
9949    # PORTME fill in a description of your system's linker (not GNU ld)
9950    case $host_os in
9951    aix3*)
9952      allow_undefined_flag=unsupported
9953      always_export_symbols=yes
9954      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'
9955      # Note: this linker hardcodes the directories in LIBPATH if there
9956      # are no directories specified by -L.
9957      hardcode_minus_L=yes
9958      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9959	# Neither direct hardcoding nor static linking is supported with a
9960	# broken collect2.
9961	hardcode_direct=unsupported
9962      fi
9963      ;;
9964
9965    aix[4-9]*)
9966      if test ia64 = "$host_cpu"; then
9967	# On IA64, the linker does run time linking by default, so we don't
9968	# have to do anything special.
9969	aix_use_runtimelinking=no
9970	exp_sym_flag='-Bexport'
9971	no_entry_flag=
9972      else
9973	# If we're using GNU nm, then we don't want the "-C" option.
9974	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9975	# Without the "-l" option, or with the "-B" option, AIX nm treats
9976	# weak defined symbols like other global defined symbols, whereas
9977	# GNU nm marks them as "W".
9978	# While the 'weak' keyword is ignored in the Export File, we need
9979	# it in the Import File for the 'aix-soname' feature, so we have
9980	# to replace the "-B" option with "-P" for AIX nm.
9981	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9982	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9983	else
9984	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9985	fi
9986	aix_use_runtimelinking=no
9987
9988	# Test if we are trying to use run time linking or normal
9989	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9990	# have runtime linking enabled, and use it for executables.
9991	# For shared libraries, we enable/disable runtime linking
9992	# depending on the kind of the shared library created -
9993	# when "with_aix_soname,aix_use_runtimelinking" is:
9994	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9995	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9996	#            lib.a           static archive
9997	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9998	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9999	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10000	#            lib.a(lib.so.V) shared, rtl:no
10001	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10002	#            lib.a           static archive
10003	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10004	  for ld_flag in $LDFLAGS; do
10005	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10006	    aix_use_runtimelinking=yes
10007	    break
10008	  fi
10009	  done
10010	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10011	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10012	    # so we don't have lib.a shared libs to link our executables.
10013	    # We have to force runtime linking in this case.
10014	    aix_use_runtimelinking=yes
10015	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10016	  fi
10017	  ;;
10018	esac
10019
10020	exp_sym_flag='-bexport'
10021	no_entry_flag='-bnoentry'
10022      fi
10023
10024      # When large executables or shared objects are built, AIX ld can
10025      # have problems creating the table of contents.  If linking a library
10026      # or program results in "error TOC overflow" add -mminimal-toc to
10027      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10028      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10029
10030      archive_cmds=''
10031      hardcode_direct=yes
10032      hardcode_direct_absolute=yes
10033      hardcode_libdir_separator=':'
10034      link_all_deplibs=yes
10035      file_list_spec='$wl-f,'
10036      case $with_aix_soname,$aix_use_runtimelinking in
10037      aix,*) ;; # traditional, no import file
10038      svr4,* | *,yes) # use import file
10039	# The Import File defines what to hardcode.
10040	hardcode_direct=no
10041	hardcode_direct_absolute=no
10042	;;
10043      esac
10044
10045      if test yes = "$GCC"; then
10046	case $host_os in aix4.[012]|aix4.[012].*)
10047	# We only want to do this on AIX 4.2 and lower, the check
10048	# below for broken collect2 doesn't work under 4.3+
10049	  collect2name=`$CC -print-prog-name=collect2`
10050	  if test -f "$collect2name" &&
10051	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10052	  then
10053	  # We have reworked collect2
10054	  :
10055	  else
10056	  # We have old collect2
10057	  hardcode_direct=unsupported
10058	  # It fails to find uninstalled libraries when the uninstalled
10059	  # path is not listed in the libpath.  Setting hardcode_minus_L
10060	  # to unsupported forces relinking
10061	  hardcode_minus_L=yes
10062	  hardcode_libdir_flag_spec='-L$libdir'
10063	  hardcode_libdir_separator=
10064	  fi
10065	  ;;
10066	esac
10067	shared_flag='-shared'
10068	if test yes = "$aix_use_runtimelinking"; then
10069	  shared_flag="$shared_flag "'$wl-G'
10070	fi
10071	# Need to ensure runtime linking is disabled for the traditional
10072	# shared library, or the linker may eventually find shared libraries
10073	# /with/ Import File - we do not want to mix them.
10074	shared_flag_aix='-shared'
10075	shared_flag_svr4='-shared $wl-G'
10076      else
10077	# not using gcc
10078	if test ia64 = "$host_cpu"; then
10079	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10080	# chokes on -Wl,-G. The following line is correct:
10081	  shared_flag='-G'
10082	else
10083	  if test yes = "$aix_use_runtimelinking"; then
10084	    shared_flag='$wl-G'
10085	  else
10086	    shared_flag='$wl-bM:SRE'
10087	  fi
10088	  shared_flag_aix='$wl-bM:SRE'
10089	  shared_flag_svr4='$wl-G'
10090	fi
10091      fi
10092
10093      export_dynamic_flag_spec='$wl-bexpall'
10094      # It seems that -bexpall does not export symbols beginning with
10095      # underscore (_), so it is better to generate a list of symbols to export.
10096      always_export_symbols=yes
10097      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10098	# Warning - without using the other runtime loading flags (-brtl),
10099	# -berok will link without error, but may produce a broken library.
10100	allow_undefined_flag='-berok'
10101        # Determine the default libpath from the value encoded in an
10102        # empty executable.
10103        if test set = "${lt_cv_aix_libpath+set}"; then
10104  aix_libpath=$lt_cv_aix_libpath
10105else
10106  if ${lt_cv_aix_libpath_+:} false; then :
10107  $as_echo_n "(cached) " >&6
10108else
10109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111
10112int
10113main ()
10114{
10115
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"; then :
10121
10122  lt_aix_libpath_sed='
10123      /Import File Strings/,/^$/ {
10124	  /^0/ {
10125	      s/^0  *\([^ ]*\) *$/\1/
10126	      p
10127	  }
10128      }'
10129  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130  # Check for a 64-bit object if we didn't find anything.
10131  if test -z "$lt_cv_aix_libpath_"; then
10132    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133  fi
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136    conftest$ac_exeext conftest.$ac_ext
10137  if test -z "$lt_cv_aix_libpath_"; then
10138    lt_cv_aix_libpath_=/usr/lib:/lib
10139  fi
10140
10141fi
10142
10143  aix_libpath=$lt_cv_aix_libpath_
10144fi
10145
10146        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10147        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10148      else
10149	if test ia64 = "$host_cpu"; then
10150	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10151	  allow_undefined_flag="-z nodefs"
10152	  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"
10153	else
10154	 # Determine the default libpath from the value encoded in an
10155	 # empty executable.
10156	 if test set = "${lt_cv_aix_libpath+set}"; then
10157  aix_libpath=$lt_cv_aix_libpath
10158else
10159  if ${lt_cv_aix_libpath_+:} false; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164
10165int
10166main ()
10167{
10168
10169  ;
10170  return 0;
10171}
10172_ACEOF
10173if ac_fn_c_try_link "$LINENO"; then :
10174
10175  lt_aix_libpath_sed='
10176      /Import File Strings/,/^$/ {
10177	  /^0/ {
10178	      s/^0  *\([^ ]*\) *$/\1/
10179	      p
10180	  }
10181      }'
10182  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183  # Check for a 64-bit object if we didn't find anything.
10184  if test -z "$lt_cv_aix_libpath_"; then
10185    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186  fi
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189    conftest$ac_exeext conftest.$ac_ext
10190  if test -z "$lt_cv_aix_libpath_"; then
10191    lt_cv_aix_libpath_=/usr/lib:/lib
10192  fi
10193
10194fi
10195
10196  aix_libpath=$lt_cv_aix_libpath_
10197fi
10198
10199	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10200	  # Warning - without using the other run time loading flags,
10201	  # -berok will link without error, but may produce a broken library.
10202	  no_undefined_flag=' $wl-bernotok'
10203	  allow_undefined_flag=' $wl-berok'
10204	  if test yes = "$with_gnu_ld"; then
10205	    # We only use this code for GNU lds that support --whole-archive.
10206	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10207	  else
10208	    # Exported symbols can be pulled into shared objects from archives
10209	    whole_archive_flag_spec='$convenience'
10210	  fi
10211	  archive_cmds_need_lc=yes
10212	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10213	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10214	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10215	  if test svr4 != "$with_aix_soname"; then
10216	    # This is similar to how AIX traditionally builds its shared libraries.
10217	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10218	  fi
10219	  if test aix != "$with_aix_soname"; then
10220	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10221	  else
10222	    # used by -dlpreopen to get the symbols
10223	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10224	  fi
10225	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10226	fi
10227      fi
10228      ;;
10229
10230    amigaos*)
10231      case $host_cpu in
10232      powerpc)
10233            # see comment about AmigaOS4 .so support
10234            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10235            archive_expsym_cmds=''
10236        ;;
10237      m68k)
10238            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)'
10239            hardcode_libdir_flag_spec='-L$libdir'
10240            hardcode_minus_L=yes
10241        ;;
10242      esac
10243      ;;
10244
10245    bsdi[45]*)
10246      export_dynamic_flag_spec=-rdynamic
10247      ;;
10248
10249    cygwin* | mingw* | pw32* | cegcc*)
10250      # When not using gcc, we currently assume that we are using
10251      # Microsoft Visual C++.
10252      # hardcode_libdir_flag_spec is actually meaningless, as there is
10253      # no search path for DLLs.
10254      case $cc_basename in
10255      cl*)
10256	# Native MSVC
10257	hardcode_libdir_flag_spec=' '
10258	allow_undefined_flag=unsupported
10259	always_export_symbols=yes
10260	file_list_spec='@'
10261	# Tell ltmain to make .lib files, not .a files.
10262	libext=lib
10263	# Tell ltmain to make .dll files, not .so files.
10264	shrext_cmds=.dll
10265	# FIXME: Setting linknames here is a bad hack.
10266	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10267	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10268            cp "$export_symbols" "$output_objdir/$soname.def";
10269            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10270          else
10271            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10272          fi~
10273          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10274          linknames='
10275	# The linker will not automatically build a static lib if we build a DLL.
10276	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10277	enable_shared_with_static_runtimes=yes
10278	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10279	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10280	# Don't use ranlib
10281	old_postinstall_cmds='chmod 644 $oldlib'
10282	postlink_cmds='lt_outputfile="@OUTPUT@"~
10283          lt_tool_outputfile="@TOOL_OUTPUT@"~
10284          case $lt_outputfile in
10285            *.exe|*.EXE) ;;
10286            *)
10287              lt_outputfile=$lt_outputfile.exe
10288              lt_tool_outputfile=$lt_tool_outputfile.exe
10289              ;;
10290          esac~
10291          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10292            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10293            $RM "$lt_outputfile.manifest";
10294          fi'
10295	;;
10296      *)
10297	# Assume MSVC wrapper
10298	hardcode_libdir_flag_spec=' '
10299	allow_undefined_flag=unsupported
10300	# Tell ltmain to make .lib files, not .a files.
10301	libext=lib
10302	# Tell ltmain to make .dll files, not .so files.
10303	shrext_cmds=.dll
10304	# FIXME: Setting linknames here is a bad hack.
10305	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10306	# The linker will automatically build a .lib file if we build a DLL.
10307	old_archive_from_new_cmds='true'
10308	# FIXME: Should let the user specify the lib program.
10309	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10310	enable_shared_with_static_runtimes=yes
10311	;;
10312      esac
10313      ;;
10314
10315    darwin* | rhapsody*)
10316
10317
10318  archive_cmds_need_lc=no
10319  hardcode_direct=no
10320  hardcode_automatic=yes
10321  hardcode_shlibpath_var=unsupported
10322  if test yes = "$lt_cv_ld_force_load"; then
10323    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10324
10325  else
10326    whole_archive_flag_spec=''
10327  fi
10328  link_all_deplibs=yes
10329  allow_undefined_flag=$_lt_dar_allow_undefined
10330  case $cc_basename in
10331     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10332     *) _lt_dar_can_shared=$GCC ;;
10333  esac
10334  if test yes = "$_lt_dar_can_shared"; then
10335    output_verbose_link_cmd=func_echo_all
10336    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10337    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10338    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"
10339    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"
10340
10341  else
10342  ld_shlibs=no
10343  fi
10344
10345      ;;
10346
10347    dgux*)
10348      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10349      hardcode_libdir_flag_spec='-L$libdir'
10350      hardcode_shlibpath_var=no
10351      ;;
10352
10353    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10354    # support.  Future versions do this automatically, but an explicit c++rt0.o
10355    # does not break anything, and helps significantly (at the cost of a little
10356    # extra space).
10357    freebsd2.2*)
10358      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10359      hardcode_libdir_flag_spec='-R$libdir'
10360      hardcode_direct=yes
10361      hardcode_shlibpath_var=no
10362      ;;
10363
10364    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10365    freebsd2.*)
10366      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10367      hardcode_direct=yes
10368      hardcode_minus_L=yes
10369      hardcode_shlibpath_var=no
10370      ;;
10371
10372    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10373    freebsd* | dragonfly*)
10374      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10375      hardcode_libdir_flag_spec='-R$libdir'
10376      hardcode_direct=yes
10377      hardcode_shlibpath_var=no
10378      ;;
10379
10380    hpux9*)
10381      if test yes = "$GCC"; then
10382	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10383      else
10384	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10385      fi
10386      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10387      hardcode_libdir_separator=:
10388      hardcode_direct=yes
10389
10390      # hardcode_minus_L: Not really in the search PATH,
10391      # but as the default location of the library.
10392      hardcode_minus_L=yes
10393      export_dynamic_flag_spec='$wl-E'
10394      ;;
10395
10396    hpux10*)
10397      if test yes,no = "$GCC,$with_gnu_ld"; then
10398	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10399      else
10400	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10401      fi
10402      if test no = "$with_gnu_ld"; then
10403	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10404	hardcode_libdir_separator=:
10405	hardcode_direct=yes
10406	hardcode_direct_absolute=yes
10407	export_dynamic_flag_spec='$wl-E'
10408	# hardcode_minus_L: Not really in the search PATH,
10409	# but as the default location of the library.
10410	hardcode_minus_L=yes
10411      fi
10412      ;;
10413
10414    hpux11*)
10415      if test yes,no = "$GCC,$with_gnu_ld"; then
10416	case $host_cpu in
10417	hppa*64*)
10418	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10419	  ;;
10420	ia64*)
10421	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10422	  ;;
10423	*)
10424	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425	  ;;
10426	esac
10427      else
10428	case $host_cpu in
10429	hppa*64*)
10430	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10431	  ;;
10432	ia64*)
10433	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10434	  ;;
10435	*)
10436
10437	  # Older versions of the 11.00 compiler do not understand -b yet
10438	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10439	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10440$as_echo_n "checking if $CC understands -b... " >&6; }
10441if ${lt_cv_prog_compiler__b+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  lt_cv_prog_compiler__b=no
10445   save_LDFLAGS=$LDFLAGS
10446   LDFLAGS="$LDFLAGS -b"
10447   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10448   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10449     # The linker can only warn and ignore the option if not recognized
10450     # So say no if there are warnings
10451     if test -s conftest.err; then
10452       # Append any errors to the config.log.
10453       cat conftest.err 1>&5
10454       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10455       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10456       if diff conftest.exp conftest.er2 >/dev/null; then
10457         lt_cv_prog_compiler__b=yes
10458       fi
10459     else
10460       lt_cv_prog_compiler__b=yes
10461     fi
10462   fi
10463   $RM -r conftest*
10464   LDFLAGS=$save_LDFLAGS
10465
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10468$as_echo "$lt_cv_prog_compiler__b" >&6; }
10469
10470if test yes = "$lt_cv_prog_compiler__b"; then
10471    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10472else
10473    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10474fi
10475
10476	  ;;
10477	esac
10478      fi
10479      if test no = "$with_gnu_ld"; then
10480	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10481	hardcode_libdir_separator=:
10482
10483	case $host_cpu in
10484	hppa*64*|ia64*)
10485	  hardcode_direct=no
10486	  hardcode_shlibpath_var=no
10487	  ;;
10488	*)
10489	  hardcode_direct=yes
10490	  hardcode_direct_absolute=yes
10491	  export_dynamic_flag_spec='$wl-E'
10492
10493	  # hardcode_minus_L: Not really in the search PATH,
10494	  # but as the default location of the library.
10495	  hardcode_minus_L=yes
10496	  ;;
10497	esac
10498      fi
10499      ;;
10500
10501    irix5* | irix6* | nonstopux*)
10502      if test yes = "$GCC"; then
10503	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10504	# Try to use the -exported_symbol ld option, if it does not
10505	# work, assume that -exports_file does not work either and
10506	# implicitly export all symbols.
10507	# This should be the same for all languages, so no per-tag cache variable.
10508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10509$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10510if ${lt_cv_irix_exported_symbol+:} false; then :
10511  $as_echo_n "(cached) " >&6
10512else
10513  save_LDFLAGS=$LDFLAGS
10514	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10515	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516/* end confdefs.h.  */
10517int foo (void) { return 0; }
10518_ACEOF
10519if ac_fn_c_try_link "$LINENO"; then :
10520  lt_cv_irix_exported_symbol=yes
10521else
10522  lt_cv_irix_exported_symbol=no
10523fi
10524rm -f core conftest.err conftest.$ac_objext \
10525    conftest$ac_exeext conftest.$ac_ext
10526           LDFLAGS=$save_LDFLAGS
10527fi
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10529$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10530	if test yes = "$lt_cv_irix_exported_symbol"; then
10531          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10532	fi
10533      else
10534	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10535	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10536      fi
10537      archive_cmds_need_lc='no'
10538      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10539      hardcode_libdir_separator=:
10540      inherit_rpath=yes
10541      link_all_deplibs=yes
10542      ;;
10543
10544    linux*)
10545      case $cc_basename in
10546      tcc*)
10547	# Fabrice Bellard et al's Tiny C Compiler
10548	ld_shlibs=yes
10549	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10550	;;
10551      esac
10552      ;;
10553
10554    netbsd*)
10555      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10556	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10557      else
10558	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10559      fi
10560      hardcode_libdir_flag_spec='-R$libdir'
10561      hardcode_direct=yes
10562      hardcode_shlibpath_var=no
10563      ;;
10564
10565    newsos6)
10566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567      hardcode_direct=yes
10568      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10569      hardcode_libdir_separator=:
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    *nto* | *qnx*)
10574      ;;
10575
10576    openbsd* | bitrig*)
10577      if test -f /usr/libexec/ld.so; then
10578	hardcode_direct=yes
10579	hardcode_shlibpath_var=no
10580	hardcode_direct_absolute=yes
10581	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10582	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10584	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10585	  export_dynamic_flag_spec='$wl-E'
10586	else
10587	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10589	fi
10590      else
10591	ld_shlibs=no
10592      fi
10593      ;;
10594
10595    os2*)
10596      hardcode_libdir_flag_spec='-L$libdir'
10597      hardcode_minus_L=yes
10598      allow_undefined_flag=unsupported
10599      shrext_cmds=.dll
10600      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10601	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10602	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10603	$ECHO EXPORTS >> $output_objdir/$libname.def~
10604	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10605	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10606	emximp -o $lib $output_objdir/$libname.def'
10607      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10608	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10609	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10610	$ECHO EXPORTS >> $output_objdir/$libname.def~
10611	prefix_cmds="$SED"~
10612	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10613	  prefix_cmds="$prefix_cmds -e 1d";
10614	fi~
10615	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10616	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10617	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10618	emximp -o $lib $output_objdir/$libname.def'
10619      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10620      enable_shared_with_static_runtimes=yes
10621      ;;
10622
10623    osf3*)
10624      if test yes = "$GCC"; then
10625	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10626	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10627      else
10628	allow_undefined_flag=' -expect_unresolved \*'
10629	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10630      fi
10631      archive_cmds_need_lc='no'
10632      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633      hardcode_libdir_separator=:
10634      ;;
10635
10636    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10637      if test yes = "$GCC"; then
10638	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10639	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10640	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10641      else
10642	allow_undefined_flag=' -expect_unresolved \*'
10643	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10644	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~
10645          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10646
10647	# Both c and cxx compiler support -rpath directly
10648	hardcode_libdir_flag_spec='-rpath $libdir'
10649      fi
10650      archive_cmds_need_lc='no'
10651      hardcode_libdir_separator=:
10652      ;;
10653
10654    solaris*)
10655      no_undefined_flag=' -z defs'
10656      if test yes = "$GCC"; then
10657	wlarc='$wl'
10658	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10659	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10661      else
10662	case `$CC -V 2>&1` in
10663	*"Compilers 5.0"*)
10664	  wlarc=''
10665	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10667            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10668	  ;;
10669	*)
10670	  wlarc='$wl'
10671	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10672	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10674	  ;;
10675	esac
10676      fi
10677      hardcode_libdir_flag_spec='-R$libdir'
10678      hardcode_shlibpath_var=no
10679      case $host_os in
10680      solaris2.[0-5] | solaris2.[0-5].*) ;;
10681      *)
10682	# The compiler driver will combine and reorder linker options,
10683	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10684	# but is careful enough not to reorder.
10685	# Supported since Solaris 2.6 (maybe 2.5.1?)
10686	if test yes = "$GCC"; then
10687	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10688	else
10689	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10690	fi
10691	;;
10692      esac
10693      link_all_deplibs=yes
10694      ;;
10695
10696    sunos4*)
10697      if test sequent = "$host_vendor"; then
10698	# Use $CC to link under sequent, because it throws in some extra .o
10699	# files that make .init and .fini sections work.
10700	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10701      else
10702	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10703      fi
10704      hardcode_libdir_flag_spec='-L$libdir'
10705      hardcode_direct=yes
10706      hardcode_minus_L=yes
10707      hardcode_shlibpath_var=no
10708      ;;
10709
10710    sysv4)
10711      case $host_vendor in
10712	sni)
10713	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714	  hardcode_direct=yes # is this really true???
10715	;;
10716	siemens)
10717	  ## LD is ld it makes a PLAMLIB
10718	  ## CC just makes a GrossModule.
10719	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10720	  reload_cmds='$CC -r -o $output$reload_objs'
10721	  hardcode_direct=no
10722        ;;
10723	motorola)
10724	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10726	;;
10727      esac
10728      runpath_var='LD_RUN_PATH'
10729      hardcode_shlibpath_var=no
10730      ;;
10731
10732    sysv4.3*)
10733      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734      hardcode_shlibpath_var=no
10735      export_dynamic_flag_spec='-Bexport'
10736      ;;
10737
10738    sysv4*MP*)
10739      if test -d /usr/nec; then
10740	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741	hardcode_shlibpath_var=no
10742	runpath_var=LD_RUN_PATH
10743	hardcode_runpath_var=yes
10744	ld_shlibs=yes
10745      fi
10746      ;;
10747
10748    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10749      no_undefined_flag='$wl-z,text'
10750      archive_cmds_need_lc=no
10751      hardcode_shlibpath_var=no
10752      runpath_var='LD_RUN_PATH'
10753
10754      if test yes = "$GCC"; then
10755	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757      else
10758	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760      fi
10761      ;;
10762
10763    sysv5* | sco3.2v5* | sco5v6*)
10764      # Note: We CANNOT use -z defs as we might desire, because we do not
10765      # link with -lc, and that would cause any symbols used from libc to
10766      # always be unresolved, which means just about no library would
10767      # ever link correctly.  If we're not using GNU ld we use -z text
10768      # though, which does catch some bad symbols but isn't as heavy-handed
10769      # as -z defs.
10770      no_undefined_flag='$wl-z,text'
10771      allow_undefined_flag='$wl-z,nodefs'
10772      archive_cmds_need_lc=no
10773      hardcode_shlibpath_var=no
10774      hardcode_libdir_flag_spec='$wl-R,$libdir'
10775      hardcode_libdir_separator=':'
10776      link_all_deplibs=yes
10777      export_dynamic_flag_spec='$wl-Bexport'
10778      runpath_var='LD_RUN_PATH'
10779
10780      if test yes = "$GCC"; then
10781	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783      else
10784	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786      fi
10787      ;;
10788
10789    uts4*)
10790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791      hardcode_libdir_flag_spec='-L$libdir'
10792      hardcode_shlibpath_var=no
10793      ;;
10794
10795    *)
10796      ld_shlibs=no
10797      ;;
10798    esac
10799
10800    if test sni = "$host_vendor"; then
10801      case $host in
10802      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10803	export_dynamic_flag_spec='$wl-Blargedynsym'
10804	;;
10805      esac
10806    fi
10807  fi
10808
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10810$as_echo "$ld_shlibs" >&6; }
10811test no = "$ld_shlibs" && can_build_shared=no
10812
10813with_gnu_ld=$with_gnu_ld
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829#
10830# Do we need to explicitly link libc?
10831#
10832case "x$archive_cmds_need_lc" in
10833x|xyes)
10834  # Assume -lc should be added
10835  archive_cmds_need_lc=yes
10836
10837  if test yes,yes = "$GCC,$enable_shared"; then
10838    case $archive_cmds in
10839    *'~'*)
10840      # FIXME: we may have to deal with multi-command sequences.
10841      ;;
10842    '$CC '*)
10843      # Test whether the compiler implicitly links with -lc since on some
10844      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10845      # to ld, don't add -lc before -lgcc.
10846      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10847$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10848if ${lt_cv_archive_cmds_need_lc+:} false; then :
10849  $as_echo_n "(cached) " >&6
10850else
10851  $RM conftest*
10852	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10853
10854	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10855  (eval $ac_compile) 2>&5
10856  ac_status=$?
10857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10858  test $ac_status = 0; } 2>conftest.err; then
10859	  soname=conftest
10860	  lib=conftest
10861	  libobjs=conftest.$ac_objext
10862	  deplibs=
10863	  wl=$lt_prog_compiler_wl
10864	  pic_flag=$lt_prog_compiler_pic
10865	  compiler_flags=-v
10866	  linker_flags=-v
10867	  verstring=
10868	  output_objdir=.
10869	  libname=conftest
10870	  lt_save_allow_undefined_flag=$allow_undefined_flag
10871	  allow_undefined_flag=
10872	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10873  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10874  ac_status=$?
10875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876  test $ac_status = 0; }
10877	  then
10878	    lt_cv_archive_cmds_need_lc=no
10879	  else
10880	    lt_cv_archive_cmds_need_lc=yes
10881	  fi
10882	  allow_undefined_flag=$lt_save_allow_undefined_flag
10883	else
10884	  cat conftest.err 1>&5
10885	fi
10886	$RM conftest*
10887
10888fi
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10890$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10891      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10892      ;;
10893    esac
10894  fi
10895  ;;
10896esac
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11050$as_echo_n "checking dynamic linker characteristics... " >&6; }
11051
11052if test yes = "$GCC"; then
11053  case $host_os in
11054    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11055    *) lt_awk_arg='/^libraries:/' ;;
11056  esac
11057  case $host_os in
11058    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11059    *) lt_sed_strip_eq='s|=/|/|g' ;;
11060  esac
11061  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11062  case $lt_search_path_spec in
11063  *\;*)
11064    # if the path contains ";" then we assume it to be the separator
11065    # otherwise default to the standard path separator (i.e. ":") - it is
11066    # assumed that no part of a normal pathname contains ";" but that should
11067    # okay in the real world where ";" in dirpaths is itself problematic.
11068    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11069    ;;
11070  *)
11071    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11072    ;;
11073  esac
11074  # Ok, now we have the path, separated by spaces, we can step through it
11075  # and add multilib dir if necessary...
11076  lt_tmp_lt_search_path_spec=
11077  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11078  # ...but if some path component already ends with the multilib dir we assume
11079  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11080  case "$lt_multi_os_dir; $lt_search_path_spec " in
11081  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11082    lt_multi_os_dir=
11083    ;;
11084  esac
11085  for lt_sys_path in $lt_search_path_spec; do
11086    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11087      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11088    elif test -n "$lt_multi_os_dir"; then
11089      test -d "$lt_sys_path" && \
11090	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11091    fi
11092  done
11093  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11094BEGIN {RS = " "; FS = "/|\n";} {
11095  lt_foo = "";
11096  lt_count = 0;
11097  for (lt_i = NF; lt_i > 0; lt_i--) {
11098    if ($lt_i != "" && $lt_i != ".") {
11099      if ($lt_i == "..") {
11100        lt_count++;
11101      } else {
11102        if (lt_count == 0) {
11103          lt_foo = "/" $lt_i lt_foo;
11104        } else {
11105          lt_count--;
11106        }
11107      }
11108    }
11109  }
11110  if (lt_foo != "") { lt_freq[lt_foo]++; }
11111  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11112}'`
11113  # AWK program above erroneously prepends '/' to C:/dos/paths
11114  # for these hosts.
11115  case $host_os in
11116    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11117      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11118  esac
11119  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11120else
11121  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11122fi
11123library_names_spec=
11124libname_spec='lib$name'
11125soname_spec=
11126shrext_cmds=.so
11127postinstall_cmds=
11128postuninstall_cmds=
11129finish_cmds=
11130finish_eval=
11131shlibpath_var=
11132shlibpath_overrides_runpath=unknown
11133version_type=none
11134dynamic_linker="$host_os ld.so"
11135sys_lib_dlsearch_path_spec="/lib /usr/lib"
11136need_lib_prefix=unknown
11137hardcode_into_libs=no
11138
11139# when you set need_version to no, make sure it does not cause -set_version
11140# flags to be left without arguments
11141need_version=unknown
11142
11143
11144
11145case $host_os in
11146aix3*)
11147  version_type=linux # correct to gnu/linux during the next big refactor
11148  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11149  shlibpath_var=LIBPATH
11150
11151  # AIX 3 has no versioning support, so we append a major version to the name.
11152  soname_spec='$libname$release$shared_ext$major'
11153  ;;
11154
11155aix[4-9]*)
11156  version_type=linux # correct to gnu/linux during the next big refactor
11157  need_lib_prefix=no
11158  need_version=no
11159  hardcode_into_libs=yes
11160  if test ia64 = "$host_cpu"; then
11161    # AIX 5 supports IA64
11162    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11163    shlibpath_var=LD_LIBRARY_PATH
11164  else
11165    # With GCC up to 2.95.x, collect2 would create an import file
11166    # for dependence libraries.  The import file would start with
11167    # the line '#! .'.  This would cause the generated library to
11168    # depend on '.', always an invalid library.  This was fixed in
11169    # development snapshots of GCC prior to 3.0.
11170    case $host_os in
11171      aix4 | aix4.[01] | aix4.[01].*)
11172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173	   echo ' yes '
11174	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11175	:
11176      else
11177	can_build_shared=no
11178      fi
11179      ;;
11180    esac
11181    # Using Import Files as archive members, it is possible to support
11182    # filename-based versioning of shared library archives on AIX. While
11183    # this would work for both with and without runtime linking, it will
11184    # prevent static linking of such archives. So we do filename-based
11185    # shared library versioning with .so extension only, which is used
11186    # when both runtime linking and shared linking is enabled.
11187    # Unfortunately, runtime linking may impact performance, so we do
11188    # not want this to be the default eventually. Also, we use the
11189    # versioned .so libs for executables only if there is the -brtl
11190    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11191    # To allow for filename-based versioning support, we need to create
11192    # libNAME.so.V as an archive file, containing:
11193    # *) an Import File, referring to the versioned filename of the
11194    #    archive as well as the shared archive member, telling the
11195    #    bitwidth (32 or 64) of that shared object, and providing the
11196    #    list of exported symbols of that shared object, eventually
11197    #    decorated with the 'weak' keyword
11198    # *) the shared object with the F_LOADONLY flag set, to really avoid
11199    #    it being seen by the linker.
11200    # At run time we better use the real file rather than another symlink,
11201    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11202
11203    case $with_aix_soname,$aix_use_runtimelinking in
11204    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11205    # soname into executable. Probably we can add versioning support to
11206    # collect2, so additional links can be useful in future.
11207    aix,yes) # traditional libtool
11208      dynamic_linker='AIX unversionable lib.so'
11209      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11210      # instead of lib<name>.a to let people know that these are not
11211      # typical AIX shared libraries.
11212      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213      ;;
11214    aix,no) # traditional AIX only
11215      dynamic_linker='AIX lib.a(lib.so.V)'
11216      # We preserve .a as extension for shared libraries through AIX4.2
11217      # and later when we are not doing run time linking.
11218      library_names_spec='$libname$release.a $libname.a'
11219      soname_spec='$libname$release$shared_ext$major'
11220      ;;
11221    svr4,*) # full svr4 only
11222      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11223      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11224      # We do not specify a path in Import Files, so LIBPATH fires.
11225      shlibpath_overrides_runpath=yes
11226      ;;
11227    *,yes) # both, prefer svr4
11228      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11229      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11230      # unpreferred sharedlib libNAME.a needs extra handling
11231      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11232      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11233      # We do not specify a path in Import Files, so LIBPATH fires.
11234      shlibpath_overrides_runpath=yes
11235      ;;
11236    *,no) # both, prefer aix
11237      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11238      library_names_spec='$libname$release.a $libname.a'
11239      soname_spec='$libname$release$shared_ext$major'
11240      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11241      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11242      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11243      ;;
11244    esac
11245    shlibpath_var=LIBPATH
11246  fi
11247  ;;
11248
11249amigaos*)
11250  case $host_cpu in
11251  powerpc)
11252    # Since July 2007 AmigaOS4 officially supports .so libraries.
11253    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11254    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255    ;;
11256  m68k)
11257    library_names_spec='$libname.ixlibrary $libname.a'
11258    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11259    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11260    ;;
11261  esac
11262  ;;
11263
11264beos*)
11265  library_names_spec='$libname$shared_ext'
11266  dynamic_linker="$host_os ld.so"
11267  shlibpath_var=LIBRARY_PATH
11268  ;;
11269
11270bsdi[45]*)
11271  version_type=linux # correct to gnu/linux during the next big refactor
11272  need_version=no
11273  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11274  soname_spec='$libname$release$shared_ext$major'
11275  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11276  shlibpath_var=LD_LIBRARY_PATH
11277  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11278  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11279  # the default ld.so.conf also contains /usr/contrib/lib and
11280  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11281  # libtool to hard-code these into programs
11282  ;;
11283
11284cygwin* | mingw* | pw32* | cegcc*)
11285  version_type=windows
11286  shrext_cmds=.dll
11287  need_version=no
11288  need_lib_prefix=no
11289
11290  case $GCC,$cc_basename in
11291  yes,*)
11292    # gcc
11293    library_names_spec='$libname.dll.a'
11294    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295    postinstall_cmds='base_file=`basename \$file`~
11296      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11297      dldir=$destdir/`dirname \$dlpath`~
11298      test -d \$dldir || mkdir -p \$dldir~
11299      $install_prog $dir/$dlname \$dldir/$dlname~
11300      chmod a+x \$dldir/$dlname~
11301      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11302        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11303      fi'
11304    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11305      dlpath=$dir/\$dldll~
11306       $RM \$dlpath'
11307    shlibpath_overrides_runpath=yes
11308
11309    case $host_os in
11310    cygwin*)
11311      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11312      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11313
11314      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11315      ;;
11316    mingw* | cegcc*)
11317      # MinGW DLLs use traditional 'lib' prefix
11318      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11319      ;;
11320    pw32*)
11321      # pw32 DLLs use 'pw' prefix rather than 'lib'
11322      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11323      ;;
11324    esac
11325    dynamic_linker='Win32 ld.exe'
11326    ;;
11327
11328  *,cl*)
11329    # Native MSVC
11330    libname_spec='$name'
11331    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11332    library_names_spec='$libname.dll.lib'
11333
11334    case $build_os in
11335    mingw*)
11336      sys_lib_search_path_spec=
11337      lt_save_ifs=$IFS
11338      IFS=';'
11339      for lt_path in $LIB
11340      do
11341        IFS=$lt_save_ifs
11342        # Let DOS variable expansion print the short 8.3 style file name.
11343        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11344        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11345      done
11346      IFS=$lt_save_ifs
11347      # Convert to MSYS style.
11348      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11349      ;;
11350    cygwin*)
11351      # Convert to unix form, then to dos form, then back to unix form
11352      # but this time dos style (no spaces!) so that the unix form looks
11353      # like /cygdrive/c/PROGRA~1:/cygdr...
11354      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11355      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11356      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11357      ;;
11358    *)
11359      sys_lib_search_path_spec=$LIB
11360      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11361        # It is most probably a Windows format PATH.
11362        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11363      else
11364        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11365      fi
11366      # FIXME: find the short name or the path components, as spaces are
11367      # common. (e.g. "Program Files" -> "PROGRA~1")
11368      ;;
11369    esac
11370
11371    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11372    postinstall_cmds='base_file=`basename \$file`~
11373      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11374      dldir=$destdir/`dirname \$dlpath`~
11375      test -d \$dldir || mkdir -p \$dldir~
11376      $install_prog $dir/$dlname \$dldir/$dlname'
11377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11378      dlpath=$dir/\$dldll~
11379       $RM \$dlpath'
11380    shlibpath_overrides_runpath=yes
11381    dynamic_linker='Win32 link.exe'
11382    ;;
11383
11384  *)
11385    # Assume MSVC wrapper
11386    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11387    dynamic_linker='Win32 ld.exe'
11388    ;;
11389  esac
11390  # FIXME: first we should search . and the directory the executable is in
11391  shlibpath_var=PATH
11392  ;;
11393
11394darwin* | rhapsody*)
11395  dynamic_linker="$host_os dyld"
11396  version_type=darwin
11397  need_lib_prefix=no
11398  need_version=no
11399  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11400  soname_spec='$libname$release$major$shared_ext'
11401  shlibpath_overrides_runpath=yes
11402  shlibpath_var=DYLD_LIBRARY_PATH
11403  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11404
11405  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11406  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11407  ;;
11408
11409dgux*)
11410  version_type=linux # correct to gnu/linux during the next big refactor
11411  need_lib_prefix=no
11412  need_version=no
11413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414  soname_spec='$libname$release$shared_ext$major'
11415  shlibpath_var=LD_LIBRARY_PATH
11416  ;;
11417
11418freebsd* | dragonfly*)
11419  # DragonFly does not have aout.  When/if they implement a new
11420  # versioning mechanism, adjust this.
11421  if test -x /usr/bin/objformat; then
11422    objformat=`/usr/bin/objformat`
11423  else
11424    case $host_os in
11425    freebsd[23].*) objformat=aout ;;
11426    *) objformat=elf ;;
11427    esac
11428  fi
11429  version_type=freebsd-$objformat
11430  case $version_type in
11431    freebsd-elf*)
11432      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11433      soname_spec='$libname$release$shared_ext$major'
11434      need_version=no
11435      need_lib_prefix=no
11436      ;;
11437    freebsd-*)
11438      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11439      need_version=yes
11440      ;;
11441  esac
11442  shlibpath_var=LD_LIBRARY_PATH
11443  case $host_os in
11444  freebsd2.*)
11445    shlibpath_overrides_runpath=yes
11446    ;;
11447  freebsd3.[01]* | freebsdelf3.[01]*)
11448    shlibpath_overrides_runpath=yes
11449    hardcode_into_libs=yes
11450    ;;
11451  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11452  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11453    shlibpath_overrides_runpath=no
11454    hardcode_into_libs=yes
11455    ;;
11456  *) # from 4.6 on, and DragonFly
11457    shlibpath_overrides_runpath=yes
11458    hardcode_into_libs=yes
11459    ;;
11460  esac
11461  ;;
11462
11463haiku*)
11464  version_type=linux # correct to gnu/linux during the next big refactor
11465  need_lib_prefix=no
11466  need_version=no
11467  dynamic_linker="$host_os runtime_loader"
11468  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469  soname_spec='$libname$release$shared_ext$major'
11470  shlibpath_var=LIBRARY_PATH
11471  shlibpath_overrides_runpath=no
11472  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11473  hardcode_into_libs=yes
11474  ;;
11475
11476hpux9* | hpux10* | hpux11*)
11477  # Give a soname corresponding to the major version so that dld.sl refuses to
11478  # link against other versions.
11479  version_type=sunos
11480  need_lib_prefix=no
11481  need_version=no
11482  case $host_cpu in
11483  ia64*)
11484    shrext_cmds='.so'
11485    hardcode_into_libs=yes
11486    dynamic_linker="$host_os dld.so"
11487    shlibpath_var=LD_LIBRARY_PATH
11488    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11489    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11490    soname_spec='$libname$release$shared_ext$major'
11491    if test 32 = "$HPUX_IA64_MODE"; then
11492      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11494    else
11495      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11497    fi
11498    ;;
11499  hppa*64*)
11500    shrext_cmds='.sl'
11501    hardcode_into_libs=yes
11502    dynamic_linker="$host_os dld.sl"
11503    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11504    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11505    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11506    soname_spec='$libname$release$shared_ext$major'
11507    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11508    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509    ;;
11510  *)
11511    shrext_cmds='.sl'
11512    dynamic_linker="$host_os dld.sl"
11513    shlibpath_var=SHLIB_PATH
11514    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11515    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516    soname_spec='$libname$release$shared_ext$major'
11517    ;;
11518  esac
11519  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11520  postinstall_cmds='chmod 555 $lib'
11521  # or fails outright, so override atomically:
11522  install_override_mode=555
11523  ;;
11524
11525interix[3-9]*)
11526  version_type=linux # correct to gnu/linux during the next big refactor
11527  need_lib_prefix=no
11528  need_version=no
11529  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530  soname_spec='$libname$release$shared_ext$major'
11531  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11532  shlibpath_var=LD_LIBRARY_PATH
11533  shlibpath_overrides_runpath=no
11534  hardcode_into_libs=yes
11535  ;;
11536
11537irix5* | irix6* | nonstopux*)
11538  case $host_os in
11539    nonstopux*) version_type=nonstopux ;;
11540    *)
11541	if test yes = "$lt_cv_prog_gnu_ld"; then
11542		version_type=linux # correct to gnu/linux during the next big refactor
11543	else
11544		version_type=irix
11545	fi ;;
11546  esac
11547  need_lib_prefix=no
11548  need_version=no
11549  soname_spec='$libname$release$shared_ext$major'
11550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11551  case $host_os in
11552  irix5* | nonstopux*)
11553    libsuff= shlibsuff=
11554    ;;
11555  *)
11556    case $LD in # libtool.m4 will add one of these switches to LD
11557    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11558      libsuff= shlibsuff= libmagic=32-bit;;
11559    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11560      libsuff=32 shlibsuff=N32 libmagic=N32;;
11561    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11562      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11563    *) libsuff= shlibsuff= libmagic=never-match;;
11564    esac
11565    ;;
11566  esac
11567  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11568  shlibpath_overrides_runpath=no
11569  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11570  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11571  hardcode_into_libs=yes
11572  ;;
11573
11574# No shared lib support for Linux oldld, aout, or coff.
11575linux*oldld* | linux*aout* | linux*coff*)
11576  dynamic_linker=no
11577  ;;
11578
11579linux*android*)
11580  version_type=none # Android doesn't support versioned libraries.
11581  need_lib_prefix=no
11582  need_version=no
11583  library_names_spec='$libname$release$shared_ext'
11584  soname_spec='$libname$release$shared_ext'
11585  finish_cmds=
11586  shlibpath_var=LD_LIBRARY_PATH
11587  shlibpath_overrides_runpath=yes
11588
11589  # This implies no fast_install, which is unacceptable.
11590  # Some rework will be needed to allow for fast_install
11591  # before this can be enabled.
11592  hardcode_into_libs=yes
11593
11594  dynamic_linker='Android linker'
11595  # Don't embed -rpath directories since the linker doesn't support them.
11596  hardcode_libdir_flag_spec='-L$libdir'
11597  ;;
11598
11599# This must be glibc/ELF.
11600linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11601  version_type=linux # correct to gnu/linux during the next big refactor
11602  need_lib_prefix=no
11603  need_version=no
11604  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11605  soname_spec='$libname$release$shared_ext$major'
11606  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  shlibpath_overrides_runpath=no
11609
11610  # Some binutils ld are patched to set DT_RUNPATH
11611  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11612  $as_echo_n "(cached) " >&6
11613else
11614  lt_cv_shlibpath_overrides_runpath=no
11615    save_LDFLAGS=$LDFLAGS
11616    save_libdir=$libdir
11617    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11618	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620/* end confdefs.h.  */
11621
11622int
11623main ()
11624{
11625
11626  ;
11627  return 0;
11628}
11629_ACEOF
11630if ac_fn_c_try_link "$LINENO"; then :
11631  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11632  lt_cv_shlibpath_overrides_runpath=yes
11633fi
11634fi
11635rm -f core conftest.err conftest.$ac_objext \
11636    conftest$ac_exeext conftest.$ac_ext
11637    LDFLAGS=$save_LDFLAGS
11638    libdir=$save_libdir
11639
11640fi
11641
11642  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11643
11644  # This implies no fast_install, which is unacceptable.
11645  # Some rework will be needed to allow for fast_install
11646  # before this can be enabled.
11647  hardcode_into_libs=yes
11648
11649  # Ideally, we could use ldconfig to report *all* directores which are
11650  # searched for libraries, however this is still not possible.  Aside from not
11651  # being certain /sbin/ldconfig is available, command
11652  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11653  # even though it is searched at run-time.  Try to do the best guess by
11654  # appending ld.so.conf contents (and includes) to the search path.
11655  if test -f /etc/ld.so.conf; then
11656    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;s/"//g;/^$/d' | tr '\n' ' '`
11657    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11658  fi
11659
11660  # We used to test for /lib/ld.so.1 and disable shared libraries on
11661  # powerpc, because MkLinux only supported shared libraries with the
11662  # GNU dynamic linker.  Since this was broken with cross compilers,
11663  # most powerpc-linux boxes support dynamic linking these days and
11664  # people can always --disable-shared, the test was removed, and we
11665  # assume the GNU/Linux dynamic linker is in use.
11666  dynamic_linker='GNU/Linux ld.so'
11667  ;;
11668
11669netbsd*)
11670  version_type=sunos
11671  need_lib_prefix=no
11672  need_version=no
11673  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11674    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11675    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11676    dynamic_linker='NetBSD (a.out) ld.so'
11677  else
11678    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679    soname_spec='$libname$release$shared_ext$major'
11680    dynamic_linker='NetBSD ld.elf_so'
11681  fi
11682  shlibpath_var=LD_LIBRARY_PATH
11683  shlibpath_overrides_runpath=yes
11684  hardcode_into_libs=yes
11685  ;;
11686
11687newsos6)
11688  version_type=linux # correct to gnu/linux during the next big refactor
11689  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690  shlibpath_var=LD_LIBRARY_PATH
11691  shlibpath_overrides_runpath=yes
11692  ;;
11693
11694*nto* | *qnx*)
11695  version_type=qnx
11696  need_lib_prefix=no
11697  need_version=no
11698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11699  soname_spec='$libname$release$shared_ext$major'
11700  shlibpath_var=LD_LIBRARY_PATH
11701  shlibpath_overrides_runpath=no
11702  hardcode_into_libs=yes
11703  dynamic_linker='ldqnx.so'
11704  ;;
11705
11706openbsd* | bitrig*)
11707  version_type=sunos
11708  sys_lib_dlsearch_path_spec=/usr/lib
11709  need_lib_prefix=no
11710  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11711    need_version=no
11712  else
11713    need_version=yes
11714  fi
11715  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11716  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11717  shlibpath_var=LD_LIBRARY_PATH
11718  shlibpath_overrides_runpath=yes
11719  ;;
11720
11721os2*)
11722  libname_spec='$name'
11723  version_type=windows
11724  shrext_cmds=.dll
11725  need_version=no
11726  need_lib_prefix=no
11727  # OS/2 can only load a DLL with a base name of 8 characters or less.
11728  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11729    v=$($ECHO $release$versuffix | tr -d .-);
11730    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11731    $ECHO $n$v`$shared_ext'
11732  library_names_spec='${libname}_dll.$libext'
11733  dynamic_linker='OS/2 ld.exe'
11734  shlibpath_var=BEGINLIBPATH
11735  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11736  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11737  postinstall_cmds='base_file=`basename \$file`~
11738    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11739    dldir=$destdir/`dirname \$dlpath`~
11740    test -d \$dldir || mkdir -p \$dldir~
11741    $install_prog $dir/$dlname \$dldir/$dlname~
11742    chmod a+x \$dldir/$dlname~
11743    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11744      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11745    fi'
11746  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11747    dlpath=$dir/\$dldll~
11748    $RM \$dlpath'
11749  ;;
11750
11751osf3* | osf4* | osf5*)
11752  version_type=osf
11753  need_lib_prefix=no
11754  need_version=no
11755  soname_spec='$libname$release$shared_ext$major'
11756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757  shlibpath_var=LD_LIBRARY_PATH
11758  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11759  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11760  ;;
11761
11762rdos*)
11763  dynamic_linker=no
11764  ;;
11765
11766solaris*)
11767  version_type=linux # correct to gnu/linux during the next big refactor
11768  need_lib_prefix=no
11769  need_version=no
11770  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11771  soname_spec='$libname$release$shared_ext$major'
11772  shlibpath_var=LD_LIBRARY_PATH
11773  shlibpath_overrides_runpath=yes
11774  hardcode_into_libs=yes
11775  # ldd complains unless libraries are executable
11776  postinstall_cmds='chmod +x $lib'
11777  ;;
11778
11779sunos4*)
11780  version_type=sunos
11781  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11782  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11783  shlibpath_var=LD_LIBRARY_PATH
11784  shlibpath_overrides_runpath=yes
11785  if test yes = "$with_gnu_ld"; then
11786    need_lib_prefix=no
11787  fi
11788  need_version=yes
11789  ;;
11790
11791sysv4 | sysv4.3*)
11792  version_type=linux # correct to gnu/linux during the next big refactor
11793  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794  soname_spec='$libname$release$shared_ext$major'
11795  shlibpath_var=LD_LIBRARY_PATH
11796  case $host_vendor in
11797    sni)
11798      shlibpath_overrides_runpath=no
11799      need_lib_prefix=no
11800      runpath_var=LD_RUN_PATH
11801      ;;
11802    siemens)
11803      need_lib_prefix=no
11804      ;;
11805    motorola)
11806      need_lib_prefix=no
11807      need_version=no
11808      shlibpath_overrides_runpath=no
11809      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11810      ;;
11811  esac
11812  ;;
11813
11814sysv4*MP*)
11815  if test -d /usr/nec; then
11816    version_type=linux # correct to gnu/linux during the next big refactor
11817    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11818    soname_spec='$libname$shared_ext.$major'
11819    shlibpath_var=LD_LIBRARY_PATH
11820  fi
11821  ;;
11822
11823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11824  version_type=sco
11825  need_lib_prefix=no
11826  need_version=no
11827  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11828  soname_spec='$libname$release$shared_ext$major'
11829  shlibpath_var=LD_LIBRARY_PATH
11830  shlibpath_overrides_runpath=yes
11831  hardcode_into_libs=yes
11832  if test yes = "$with_gnu_ld"; then
11833    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11834  else
11835    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11836    case $host_os in
11837      sco3.2v5*)
11838        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11839	;;
11840    esac
11841  fi
11842  sys_lib_dlsearch_path_spec='/usr/lib'
11843  ;;
11844
11845tpf*)
11846  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11847  version_type=linux # correct to gnu/linux during the next big refactor
11848  need_lib_prefix=no
11849  need_version=no
11850  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851  shlibpath_var=LD_LIBRARY_PATH
11852  shlibpath_overrides_runpath=no
11853  hardcode_into_libs=yes
11854  ;;
11855
11856uts4*)
11857  version_type=linux # correct to gnu/linux during the next big refactor
11858  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11859  soname_spec='$libname$release$shared_ext$major'
11860  shlibpath_var=LD_LIBRARY_PATH
11861  ;;
11862
11863*)
11864  dynamic_linker=no
11865  ;;
11866esac
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11868$as_echo "$dynamic_linker" >&6; }
11869test no = "$dynamic_linker" && can_build_shared=no
11870
11871variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11872if test yes = "$GCC"; then
11873  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11874fi
11875
11876if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11877  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11878fi
11879
11880if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11881  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11882fi
11883
11884# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11885configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11886
11887# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11888func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11889
11890# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11891configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11990$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11991hardcode_action=
11992if test -n "$hardcode_libdir_flag_spec" ||
11993   test -n "$runpath_var" ||
11994   test yes = "$hardcode_automatic"; then
11995
11996  # We can hardcode non-existent directories.
11997  if test no != "$hardcode_direct" &&
11998     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11999     # have to relink, otherwise we might link with an installed library
12000     # when we should be linking with a yet-to-be-installed one
12001     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12002     test no != "$hardcode_minus_L"; then
12003    # Linking always hardcodes the temporary library directory.
12004    hardcode_action=relink
12005  else
12006    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12007    hardcode_action=immediate
12008  fi
12009else
12010  # We cannot hardcode anything, or else we can only hardcode existing
12011  # directories.
12012  hardcode_action=unsupported
12013fi
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12015$as_echo "$hardcode_action" >&6; }
12016
12017if test relink = "$hardcode_action" ||
12018   test yes = "$inherit_rpath"; then
12019  # Fast installation is not supported
12020  enable_fast_install=no
12021elif test yes = "$shlibpath_overrides_runpath" ||
12022     test no = "$enable_shared"; then
12023  # Fast installation is not necessary
12024  enable_fast_install=needless
12025fi
12026
12027
12028
12029
12030
12031
12032  if test yes != "$enable_dlopen"; then
12033  enable_dlopen=unknown
12034  enable_dlopen_self=unknown
12035  enable_dlopen_self_static=unknown
12036else
12037  lt_cv_dlopen=no
12038  lt_cv_dlopen_libs=
12039
12040  case $host_os in
12041  beos*)
12042    lt_cv_dlopen=load_add_on
12043    lt_cv_dlopen_libs=
12044    lt_cv_dlopen_self=yes
12045    ;;
12046
12047  mingw* | pw32* | cegcc*)
12048    lt_cv_dlopen=LoadLibrary
12049    lt_cv_dlopen_libs=
12050    ;;
12051
12052  cygwin*)
12053    lt_cv_dlopen=dlopen
12054    lt_cv_dlopen_libs=
12055    ;;
12056
12057  darwin*)
12058    # if libdl is installed we need to link against it
12059    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12060$as_echo_n "checking for dlopen in -ldl... " >&6; }
12061if ${ac_cv_lib_dl_dlopen+:} false; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  ac_check_lib_save_LIBS=$LIBS
12065LIBS="-ldl  $LIBS"
12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h.  */
12068
12069/* Override any GCC internal prototype to avoid an error.
12070   Use char because int might match the return type of a GCC
12071   builtin and then its argument prototype would still apply.  */
12072#ifdef __cplusplus
12073extern "C"
12074#endif
12075char dlopen ();
12076int
12077main ()
12078{
12079return dlopen ();
12080  ;
12081  return 0;
12082}
12083_ACEOF
12084if ac_fn_c_try_link "$LINENO"; then :
12085  ac_cv_lib_dl_dlopen=yes
12086else
12087  ac_cv_lib_dl_dlopen=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext \
12090    conftest$ac_exeext conftest.$ac_ext
12091LIBS=$ac_check_lib_save_LIBS
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12094$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12095if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12096  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12097else
12098
12099    lt_cv_dlopen=dyld
12100    lt_cv_dlopen_libs=
12101    lt_cv_dlopen_self=yes
12102
12103fi
12104
12105    ;;
12106
12107  tpf*)
12108    # Don't try to run any link tests for TPF.  We know it's impossible
12109    # because TPF is a cross-compiler, and we know how we open DSOs.
12110    lt_cv_dlopen=dlopen
12111    lt_cv_dlopen_libs=
12112    lt_cv_dlopen_self=no
12113    ;;
12114
12115  *)
12116    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12117if test "x$ac_cv_func_shl_load" = xyes; then :
12118  lt_cv_dlopen=shl_load
12119else
12120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12121$as_echo_n "checking for shl_load in -ldld... " >&6; }
12122if ${ac_cv_lib_dld_shl_load+:} false; then :
12123  $as_echo_n "(cached) " >&6
12124else
12125  ac_check_lib_save_LIBS=$LIBS
12126LIBS="-ldld  $LIBS"
12127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128/* end confdefs.h.  */
12129
12130/* Override any GCC internal prototype to avoid an error.
12131   Use char because int might match the return type of a GCC
12132   builtin and then its argument prototype would still apply.  */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char shl_load ();
12137int
12138main ()
12139{
12140return shl_load ();
12141  ;
12142  return 0;
12143}
12144_ACEOF
12145if ac_fn_c_try_link "$LINENO"; then :
12146  ac_cv_lib_dld_shl_load=yes
12147else
12148  ac_cv_lib_dld_shl_load=no
12149fi
12150rm -f core conftest.err conftest.$ac_objext \
12151    conftest$ac_exeext conftest.$ac_ext
12152LIBS=$ac_check_lib_save_LIBS
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12155$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12156if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12157  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12158else
12159  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12160if test "x$ac_cv_func_dlopen" = xyes; then :
12161  lt_cv_dlopen=dlopen
12162else
12163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12164$as_echo_n "checking for dlopen in -ldl... " >&6; }
12165if ${ac_cv_lib_dl_dlopen+:} false; then :
12166  $as_echo_n "(cached) " >&6
12167else
12168  ac_check_lib_save_LIBS=$LIBS
12169LIBS="-ldl  $LIBS"
12170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h.  */
12172
12173/* Override any GCC internal prototype to avoid an error.
12174   Use char because int might match the return type of a GCC
12175   builtin and then its argument prototype would still apply.  */
12176#ifdef __cplusplus
12177extern "C"
12178#endif
12179char dlopen ();
12180int
12181main ()
12182{
12183return dlopen ();
12184  ;
12185  return 0;
12186}
12187_ACEOF
12188if ac_fn_c_try_link "$LINENO"; then :
12189  ac_cv_lib_dl_dlopen=yes
12190else
12191  ac_cv_lib_dl_dlopen=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext \
12194    conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12198$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12199if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12200  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12201else
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12203$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12204if ${ac_cv_lib_svld_dlopen+:} false; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  ac_check_lib_save_LIBS=$LIBS
12208LIBS="-lsvld  $LIBS"
12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h.  */
12211
12212/* Override any GCC internal prototype to avoid an error.
12213   Use char because int might match the return type of a GCC
12214   builtin and then its argument prototype would still apply.  */
12215#ifdef __cplusplus
12216extern "C"
12217#endif
12218char dlopen ();
12219int
12220main ()
12221{
12222return dlopen ();
12223  ;
12224  return 0;
12225}
12226_ACEOF
12227if ac_fn_c_try_link "$LINENO"; then :
12228  ac_cv_lib_svld_dlopen=yes
12229else
12230  ac_cv_lib_svld_dlopen=no
12231fi
12232rm -f core conftest.err conftest.$ac_objext \
12233    conftest$ac_exeext conftest.$ac_ext
12234LIBS=$ac_check_lib_save_LIBS
12235fi
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12237$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12238if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12239  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12240else
12241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12242$as_echo_n "checking for dld_link in -ldld... " >&6; }
12243if ${ac_cv_lib_dld_dld_link+:} false; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  ac_check_lib_save_LIBS=$LIBS
12247LIBS="-ldld  $LIBS"
12248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h.  */
12250
12251/* Override any GCC internal prototype to avoid an error.
12252   Use char because int might match the return type of a GCC
12253   builtin and then its argument prototype would still apply.  */
12254#ifdef __cplusplus
12255extern "C"
12256#endif
12257char dld_link ();
12258int
12259main ()
12260{
12261return dld_link ();
12262  ;
12263  return 0;
12264}
12265_ACEOF
12266if ac_fn_c_try_link "$LINENO"; then :
12267  ac_cv_lib_dld_dld_link=yes
12268else
12269  ac_cv_lib_dld_dld_link=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272    conftest$ac_exeext conftest.$ac_ext
12273LIBS=$ac_check_lib_save_LIBS
12274fi
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12276$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12277if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12278  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12279fi
12280
12281
12282fi
12283
12284
12285fi
12286
12287
12288fi
12289
12290
12291fi
12292
12293
12294fi
12295
12296    ;;
12297  esac
12298
12299  if test no = "$lt_cv_dlopen"; then
12300    enable_dlopen=no
12301  else
12302    enable_dlopen=yes
12303  fi
12304
12305  case $lt_cv_dlopen in
12306  dlopen)
12307    save_CPPFLAGS=$CPPFLAGS
12308    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12309
12310    save_LDFLAGS=$LDFLAGS
12311    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12312
12313    save_LIBS=$LIBS
12314    LIBS="$lt_cv_dlopen_libs $LIBS"
12315
12316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12317$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12318if ${lt_cv_dlopen_self+:} false; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  	  if test yes = "$cross_compiling"; then :
12322  lt_cv_dlopen_self=cross
12323else
12324  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12325  lt_status=$lt_dlunknown
12326  cat > conftest.$ac_ext <<_LT_EOF
12327#line $LINENO "configure"
12328#include "confdefs.h"
12329
12330#if HAVE_DLFCN_H
12331#include <dlfcn.h>
12332#endif
12333
12334#include <stdio.h>
12335
12336#ifdef RTLD_GLOBAL
12337#  define LT_DLGLOBAL		RTLD_GLOBAL
12338#else
12339#  ifdef DL_GLOBAL
12340#    define LT_DLGLOBAL		DL_GLOBAL
12341#  else
12342#    define LT_DLGLOBAL		0
12343#  endif
12344#endif
12345
12346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12347   find out it does not work in some platform. */
12348#ifndef LT_DLLAZY_OR_NOW
12349#  ifdef RTLD_LAZY
12350#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12351#  else
12352#    ifdef DL_LAZY
12353#      define LT_DLLAZY_OR_NOW		DL_LAZY
12354#    else
12355#      ifdef RTLD_NOW
12356#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12357#      else
12358#        ifdef DL_NOW
12359#          define LT_DLLAZY_OR_NOW	DL_NOW
12360#        else
12361#          define LT_DLLAZY_OR_NOW	0
12362#        endif
12363#      endif
12364#    endif
12365#  endif
12366#endif
12367
12368/* When -fvisibility=hidden is used, assume the code has been annotated
12369   correspondingly for the symbols needed.  */
12370#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12371int fnord () __attribute__((visibility("default")));
12372#endif
12373
12374int fnord () { return 42; }
12375int main ()
12376{
12377  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12378  int status = $lt_dlunknown;
12379
12380  if (self)
12381    {
12382      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12383      else
12384        {
12385	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12386          else puts (dlerror ());
12387	}
12388      /* dlclose (self); */
12389    }
12390  else
12391    puts (dlerror ());
12392
12393  return status;
12394}
12395_LT_EOF
12396  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12397  (eval $ac_link) 2>&5
12398  ac_status=$?
12399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12401    (./conftest; exit; ) >&5 2>/dev/null
12402    lt_status=$?
12403    case x$lt_status in
12404      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12405      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12406      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12407    esac
12408  else :
12409    # compilation failed
12410    lt_cv_dlopen_self=no
12411  fi
12412fi
12413rm -fr conftest*
12414
12415
12416fi
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12418$as_echo "$lt_cv_dlopen_self" >&6; }
12419
12420    if test yes = "$lt_cv_dlopen_self"; then
12421      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12422      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12423$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12424if ${lt_cv_dlopen_self_static+:} false; then :
12425  $as_echo_n "(cached) " >&6
12426else
12427  	  if test yes = "$cross_compiling"; then :
12428  lt_cv_dlopen_self_static=cross
12429else
12430  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12431  lt_status=$lt_dlunknown
12432  cat > conftest.$ac_ext <<_LT_EOF
12433#line $LINENO "configure"
12434#include "confdefs.h"
12435
12436#if HAVE_DLFCN_H
12437#include <dlfcn.h>
12438#endif
12439
12440#include <stdio.h>
12441
12442#ifdef RTLD_GLOBAL
12443#  define LT_DLGLOBAL		RTLD_GLOBAL
12444#else
12445#  ifdef DL_GLOBAL
12446#    define LT_DLGLOBAL		DL_GLOBAL
12447#  else
12448#    define LT_DLGLOBAL		0
12449#  endif
12450#endif
12451
12452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12453   find out it does not work in some platform. */
12454#ifndef LT_DLLAZY_OR_NOW
12455#  ifdef RTLD_LAZY
12456#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12457#  else
12458#    ifdef DL_LAZY
12459#      define LT_DLLAZY_OR_NOW		DL_LAZY
12460#    else
12461#      ifdef RTLD_NOW
12462#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12463#      else
12464#        ifdef DL_NOW
12465#          define LT_DLLAZY_OR_NOW	DL_NOW
12466#        else
12467#          define LT_DLLAZY_OR_NOW	0
12468#        endif
12469#      endif
12470#    endif
12471#  endif
12472#endif
12473
12474/* When -fvisibility=hidden is used, assume the code has been annotated
12475   correspondingly for the symbols needed.  */
12476#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12477int fnord () __attribute__((visibility("default")));
12478#endif
12479
12480int fnord () { return 42; }
12481int main ()
12482{
12483  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12484  int status = $lt_dlunknown;
12485
12486  if (self)
12487    {
12488      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12489      else
12490        {
12491	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12492          else puts (dlerror ());
12493	}
12494      /* dlclose (self); */
12495    }
12496  else
12497    puts (dlerror ());
12498
12499  return status;
12500}
12501_LT_EOF
12502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12503  (eval $ac_link) 2>&5
12504  ac_status=$?
12505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12506  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12507    (./conftest; exit; ) >&5 2>/dev/null
12508    lt_status=$?
12509    case x$lt_status in
12510      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12511      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12512      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12513    esac
12514  else :
12515    # compilation failed
12516    lt_cv_dlopen_self_static=no
12517  fi
12518fi
12519rm -fr conftest*
12520
12521
12522fi
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12524$as_echo "$lt_cv_dlopen_self_static" >&6; }
12525    fi
12526
12527    CPPFLAGS=$save_CPPFLAGS
12528    LDFLAGS=$save_LDFLAGS
12529    LIBS=$save_LIBS
12530    ;;
12531  esac
12532
12533  case $lt_cv_dlopen_self in
12534  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12535  *) enable_dlopen_self=unknown ;;
12536  esac
12537
12538  case $lt_cv_dlopen_self_static in
12539  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12540  *) enable_dlopen_self_static=unknown ;;
12541  esac
12542fi
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560striplib=
12561old_striplib=
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12563$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12564if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12565  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12566  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12568$as_echo "yes" >&6; }
12569else
12570# FIXME - insert some real tests, host_os isn't really good enough
12571  case $host_os in
12572  darwin*)
12573    if test -n "$STRIP"; then
12574      striplib="$STRIP -x"
12575      old_striplib="$STRIP -S"
12576      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12577$as_echo "yes" >&6; }
12578    else
12579      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580$as_echo "no" >&6; }
12581    fi
12582    ;;
12583  *)
12584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585$as_echo "no" >&6; }
12586    ;;
12587  esac
12588fi
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601  # Report what library types will actually be built
12602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12603$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12605$as_echo "$can_build_shared" >&6; }
12606
12607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12608$as_echo_n "checking whether to build shared libraries... " >&6; }
12609  test no = "$can_build_shared" && enable_shared=no
12610
12611  # On AIX, shared libraries and static libraries use the same namespace, and
12612  # are all built from PIC.
12613  case $host_os in
12614  aix3*)
12615    test yes = "$enable_shared" && enable_static=no
12616    if test -n "$RANLIB"; then
12617      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12618      postinstall_cmds='$RANLIB $lib'
12619    fi
12620    ;;
12621
12622  aix[4-9]*)
12623    if test ia64 != "$host_cpu"; then
12624      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12625      yes,aix,yes) ;;			# shared object as lib.so file only
12626      yes,svr4,*) ;;			# shared object as lib.so archive member only
12627      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12628      esac
12629    fi
12630    ;;
12631  esac
12632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12633$as_echo "$enable_shared" >&6; }
12634
12635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12636$as_echo_n "checking whether to build static libraries... " >&6; }
12637  # Make sure either enable_shared or enable_static is yes.
12638  test yes = "$enable_shared" || enable_static=yes
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12640$as_echo "$enable_static" >&6; }
12641
12642
12643
12644
12645fi
12646ac_ext=c
12647ac_cpp='$CPP $CPPFLAGS'
12648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12650ac_compiler_gnu=$ac_cv_c_compiler_gnu
12651
12652CC=$lt_save_CC
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668        ac_config_commands="$ac_config_commands libtool"
12669
12670
12671
12672
12673# Only expand once:
12674
12675
12676# Check whether --enable-largefile was given.
12677if test "${enable_largefile+set}" = set; then :
12678  enableval=$enable_largefile;
12679fi
12680
12681if test "$enable_largefile" != no; then
12682
12683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12684$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12685if ${ac_cv_sys_largefile_CC+:} false; then :
12686  $as_echo_n "(cached) " >&6
12687else
12688  ac_cv_sys_largefile_CC=no
12689     if test "$GCC" != yes; then
12690       ac_save_CC=$CC
12691       while :; do
12692	 # IRIX 6.2 and later do not support large files by default,
12693	 # so use the C compiler's -n32 option if that helps.
12694	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h.  */
12696#include <sys/types.h>
12697 /* Check that off_t can represent 2**63 - 1 correctly.
12698    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12699    since some C++ compilers masquerading as C compilers
12700    incorrectly reject 9223372036854775807.  */
12701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12702  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12703		       && LARGE_OFF_T % 2147483647 == 1)
12704		      ? 1 : -1];
12705int
12706main ()
12707{
12708
12709  ;
12710  return 0;
12711}
12712_ACEOF
12713	 if ac_fn_c_try_compile "$LINENO"; then :
12714  break
12715fi
12716rm -f core conftest.err conftest.$ac_objext
12717	 CC="$CC -n32"
12718	 if ac_fn_c_try_compile "$LINENO"; then :
12719  ac_cv_sys_largefile_CC=' -n32'; break
12720fi
12721rm -f core conftest.err conftest.$ac_objext
12722	 break
12723       done
12724       CC=$ac_save_CC
12725       rm -f conftest.$ac_ext
12726    fi
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12729$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12730  if test "$ac_cv_sys_largefile_CC" != no; then
12731    CC=$CC$ac_cv_sys_largefile_CC
12732  fi
12733
12734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12735$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12736if ${ac_cv_sys_file_offset_bits+:} false; then :
12737  $as_echo_n "(cached) " >&6
12738else
12739  while :; do
12740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h.  */
12742#include <sys/types.h>
12743 /* Check that off_t can represent 2**63 - 1 correctly.
12744    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12745    since some C++ compilers masquerading as C compilers
12746    incorrectly reject 9223372036854775807.  */
12747#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12748  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12749		       && LARGE_OFF_T % 2147483647 == 1)
12750		      ? 1 : -1];
12751int
12752main ()
12753{
12754
12755  ;
12756  return 0;
12757}
12758_ACEOF
12759if ac_fn_c_try_compile "$LINENO"; then :
12760  ac_cv_sys_file_offset_bits=no; break
12761fi
12762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764/* end confdefs.h.  */
12765#define _FILE_OFFSET_BITS 64
12766#include <sys/types.h>
12767 /* Check that off_t can represent 2**63 - 1 correctly.
12768    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12769    since some C++ compilers masquerading as C compilers
12770    incorrectly reject 9223372036854775807.  */
12771#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12772  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12773		       && LARGE_OFF_T % 2147483647 == 1)
12774		      ? 1 : -1];
12775int
12776main ()
12777{
12778
12779  ;
12780  return 0;
12781}
12782_ACEOF
12783if ac_fn_c_try_compile "$LINENO"; then :
12784  ac_cv_sys_file_offset_bits=64; break
12785fi
12786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787  ac_cv_sys_file_offset_bits=unknown
12788  break
12789done
12790fi
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12792$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12793case $ac_cv_sys_file_offset_bits in #(
12794  no | unknown) ;;
12795  *)
12796cat >>confdefs.h <<_ACEOF
12797#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12798_ACEOF
12799;;
12800esac
12801rm -rf conftest*
12802  if test $ac_cv_sys_file_offset_bits = unknown; then
12803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12804$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12805if ${ac_cv_sys_large_files+:} false; then :
12806  $as_echo_n "(cached) " >&6
12807else
12808  while :; do
12809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h.  */
12811#include <sys/types.h>
12812 /* Check that off_t can represent 2**63 - 1 correctly.
12813    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12814    since some C++ compilers masquerading as C compilers
12815    incorrectly reject 9223372036854775807.  */
12816#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12817  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12818		       && LARGE_OFF_T % 2147483647 == 1)
12819		      ? 1 : -1];
12820int
12821main ()
12822{
12823
12824  ;
12825  return 0;
12826}
12827_ACEOF
12828if ac_fn_c_try_compile "$LINENO"; then :
12829  ac_cv_sys_large_files=no; break
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833/* end confdefs.h.  */
12834#define _LARGE_FILES 1
12835#include <sys/types.h>
12836 /* Check that off_t can represent 2**63 - 1 correctly.
12837    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12838    since some C++ compilers masquerading as C compilers
12839    incorrectly reject 9223372036854775807.  */
12840#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12841  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12842		       && LARGE_OFF_T % 2147483647 == 1)
12843		      ? 1 : -1];
12844int
12845main ()
12846{
12847
12848  ;
12849  return 0;
12850}
12851_ACEOF
12852if ac_fn_c_try_compile "$LINENO"; then :
12853  ac_cv_sys_large_files=1; break
12854fi
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856  ac_cv_sys_large_files=unknown
12857  break
12858done
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12861$as_echo "$ac_cv_sys_large_files" >&6; }
12862case $ac_cv_sys_large_files in #(
12863  no | unknown) ;;
12864  *)
12865cat >>confdefs.h <<_ACEOF
12866#define _LARGE_FILES $ac_cv_sys_large_files
12867_ACEOF
12868;;
12869esac
12870rm -rf conftest*
12871  fi
12872
12873
12874fi
12875
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12877$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12878if ${ac_cv_sys_largefile_source+:} false; then :
12879  $as_echo_n "(cached) " >&6
12880else
12881  while :; do
12882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h.  */
12884#include <sys/types.h> /* for off_t */
12885     #include <stdio.h>
12886int
12887main ()
12888{
12889int (*fp) (FILE *, off_t, int) = fseeko;
12890     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12891  ;
12892  return 0;
12893}
12894_ACEOF
12895if ac_fn_c_try_link "$LINENO"; then :
12896  ac_cv_sys_largefile_source=no; break
12897fi
12898rm -f core conftest.err conftest.$ac_objext \
12899    conftest$ac_exeext conftest.$ac_ext
12900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901/* end confdefs.h.  */
12902#define _LARGEFILE_SOURCE 1
12903#include <sys/types.h> /* for off_t */
12904     #include <stdio.h>
12905int
12906main ()
12907{
12908int (*fp) (FILE *, off_t, int) = fseeko;
12909     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914if ac_fn_c_try_link "$LINENO"; then :
12915  ac_cv_sys_largefile_source=1; break
12916fi
12917rm -f core conftest.err conftest.$ac_objext \
12918    conftest$ac_exeext conftest.$ac_ext
12919  ac_cv_sys_largefile_source=unknown
12920  break
12921done
12922fi
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12924$as_echo "$ac_cv_sys_largefile_source" >&6; }
12925case $ac_cv_sys_largefile_source in #(
12926  no | unknown) ;;
12927  *)
12928cat >>confdefs.h <<_ACEOF
12929#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12930_ACEOF
12931;;
12932esac
12933rm -rf conftest*
12934
12935# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12936# in glibc 2.1.3, but that breaks too many other things.
12937# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12938if test $ac_cv_sys_largefile_source != unknown; then
12939
12940$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12941
12942fi
12943
12944ac_header_dirent=no
12945for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12946  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12948$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12949if eval \${$as_ac_Header+:} false; then :
12950  $as_echo_n "(cached) " >&6
12951else
12952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h.  */
12954#include <sys/types.h>
12955#include <$ac_hdr>
12956
12957int
12958main ()
12959{
12960if ((DIR *) 0)
12961return 0;
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966if ac_fn_c_try_compile "$LINENO"; then :
12967  eval "$as_ac_Header=yes"
12968else
12969  eval "$as_ac_Header=no"
12970fi
12971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12972fi
12973eval ac_res=\$$as_ac_Header
12974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12975$as_echo "$ac_res" >&6; }
12976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12977  cat >>confdefs.h <<_ACEOF
12978#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12979_ACEOF
12980
12981ac_header_dirent=$ac_hdr; break
12982fi
12983
12984done
12985# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12986if test $ac_header_dirent = dirent.h; then
12987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12988$as_echo_n "checking for library containing opendir... " >&6; }
12989if ${ac_cv_search_opendir+:} false; then :
12990  $as_echo_n "(cached) " >&6
12991else
12992  ac_func_search_save_LIBS=$LIBS
12993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994/* end confdefs.h.  */
12995
12996/* Override any GCC internal prototype to avoid an error.
12997   Use char because int might match the return type of a GCC
12998   builtin and then its argument prototype would still apply.  */
12999#ifdef __cplusplus
13000extern "C"
13001#endif
13002char opendir ();
13003int
13004main ()
13005{
13006return opendir ();
13007  ;
13008  return 0;
13009}
13010_ACEOF
13011for ac_lib in '' dir; do
13012  if test -z "$ac_lib"; then
13013    ac_res="none required"
13014  else
13015    ac_res=-l$ac_lib
13016    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13017  fi
13018  if ac_fn_c_try_link "$LINENO"; then :
13019  ac_cv_search_opendir=$ac_res
13020fi
13021rm -f core conftest.err conftest.$ac_objext \
13022    conftest$ac_exeext
13023  if ${ac_cv_search_opendir+:} false; then :
13024  break
13025fi
13026done
13027if ${ac_cv_search_opendir+:} false; then :
13028
13029else
13030  ac_cv_search_opendir=no
13031fi
13032rm conftest.$ac_ext
13033LIBS=$ac_func_search_save_LIBS
13034fi
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13036$as_echo "$ac_cv_search_opendir" >&6; }
13037ac_res=$ac_cv_search_opendir
13038if test "$ac_res" != no; then :
13039  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13040
13041fi
13042
13043else
13044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13045$as_echo_n "checking for library containing opendir... " >&6; }
13046if ${ac_cv_search_opendir+:} false; then :
13047  $as_echo_n "(cached) " >&6
13048else
13049  ac_func_search_save_LIBS=$LIBS
13050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h.  */
13052
13053/* Override any GCC internal prototype to avoid an error.
13054   Use char because int might match the return type of a GCC
13055   builtin and then its argument prototype would still apply.  */
13056#ifdef __cplusplus
13057extern "C"
13058#endif
13059char opendir ();
13060int
13061main ()
13062{
13063return opendir ();
13064  ;
13065  return 0;
13066}
13067_ACEOF
13068for ac_lib in '' x; do
13069  if test -z "$ac_lib"; then
13070    ac_res="none required"
13071  else
13072    ac_res=-l$ac_lib
13073    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13074  fi
13075  if ac_fn_c_try_link "$LINENO"; then :
13076  ac_cv_search_opendir=$ac_res
13077fi
13078rm -f core conftest.err conftest.$ac_objext \
13079    conftest$ac_exeext
13080  if ${ac_cv_search_opendir+:} false; then :
13081  break
13082fi
13083done
13084if ${ac_cv_search_opendir+:} false; then :
13085
13086else
13087  ac_cv_search_opendir=no
13088fi
13089rm conftest.$ac_ext
13090LIBS=$ac_func_search_save_LIBS
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13093$as_echo "$ac_cv_search_opendir" >&6; }
13094ac_res=$ac_cv_search_opendir
13095if test "$ac_res" != no; then :
13096  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13097
13098fi
13099
13100fi
13101
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13103$as_echo_n "checking for ANSI C header files... " >&6; }
13104if ${ac_cv_header_stdc+:} false; then :
13105  $as_echo_n "(cached) " >&6
13106else
13107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109#include <stdlib.h>
13110#include <stdarg.h>
13111#include <string.h>
13112#include <float.h>
13113
13114int
13115main ()
13116{
13117
13118  ;
13119  return 0;
13120}
13121_ACEOF
13122if ac_fn_c_try_compile "$LINENO"; then :
13123  ac_cv_header_stdc=yes
13124else
13125  ac_cv_header_stdc=no
13126fi
13127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128
13129if test $ac_cv_header_stdc = yes; then
13130  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133#include <string.h>
13134
13135_ACEOF
13136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137  $EGREP "memchr" >/dev/null 2>&1; then :
13138
13139else
13140  ac_cv_header_stdc=no
13141fi
13142rm -f conftest*
13143
13144fi
13145
13146if test $ac_cv_header_stdc = yes; then
13147  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h.  */
13150#include <stdlib.h>
13151
13152_ACEOF
13153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13154  $EGREP "free" >/dev/null 2>&1; then :
13155
13156else
13157  ac_cv_header_stdc=no
13158fi
13159rm -f conftest*
13160
13161fi
13162
13163if test $ac_cv_header_stdc = yes; then
13164  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13165  if test "$cross_compiling" = yes; then :
13166  :
13167else
13168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169/* end confdefs.h.  */
13170#include <ctype.h>
13171#include <stdlib.h>
13172#if ((' ' & 0x0FF) == 0x020)
13173# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13174# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13175#else
13176# define ISLOWER(c) \
13177		   (('a' <= (c) && (c) <= 'i') \
13178		     || ('j' <= (c) && (c) <= 'r') \
13179		     || ('s' <= (c) && (c) <= 'z'))
13180# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13181#endif
13182
13183#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13184int
13185main ()
13186{
13187  int i;
13188  for (i = 0; i < 256; i++)
13189    if (XOR (islower (i), ISLOWER (i))
13190	|| toupper (i) != TOUPPER (i))
13191      return 2;
13192  return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_run "$LINENO"; then :
13196
13197else
13198  ac_cv_header_stdc=no
13199fi
13200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13201  conftest.$ac_objext conftest.beam conftest.$ac_ext
13202fi
13203
13204fi
13205fi
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13207$as_echo "$ac_cv_header_stdc" >&6; }
13208if test $ac_cv_header_stdc = yes; then
13209
13210$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13211
13212fi
13213
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13215$as_echo_n "checking whether closedir returns void... " >&6; }
13216if ${ac_cv_func_closedir_void+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  if test "$cross_compiling" = yes; then :
13220  ac_cv_func_closedir_void=yes
13221else
13222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224$ac_includes_default
13225#include <$ac_header_dirent>
13226#ifndef __cplusplus
13227int closedir ();
13228#endif
13229
13230int
13231main ()
13232{
13233return closedir (opendir (".")) != 0;
13234  ;
13235  return 0;
13236}
13237_ACEOF
13238if ac_fn_c_try_run "$LINENO"; then :
13239  ac_cv_func_closedir_void=no
13240else
13241  ac_cv_func_closedir_void=yes
13242fi
13243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13244  conftest.$ac_objext conftest.beam conftest.$ac_ext
13245fi
13246
13247fi
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13249$as_echo "$ac_cv_func_closedir_void" >&6; }
13250if test $ac_cv_func_closedir_void = yes; then
13251
13252$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
13253
13254fi
13255
13256for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.h
13257do :
13258  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13259ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13261  cat >>confdefs.h <<_ACEOF
13262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13263_ACEOF
13264
13265fi
13266
13267done
13268
13269for ac_func in putenv
13270do :
13271  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
13272if test "x$ac_cv_func_putenv" = xyes; then :
13273  cat >>confdefs.h <<_ACEOF
13274#define HAVE_PUTENV 1
13275_ACEOF
13276
13277fi
13278done
13279
13280for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr
13281do :
13282  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13284if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13285  cat >>confdefs.h <<_ACEOF
13286#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13287_ACEOF
13288
13289fi
13290done
13291
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13293$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13294if ${ac_cv_c_const+:} false; then :
13295  $as_echo_n "(cached) " >&6
13296else
13297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298/* end confdefs.h.  */
13299
13300int
13301main ()
13302{
13303
13304#ifndef __cplusplus
13305  /* Ultrix mips cc rejects this sort of thing.  */
13306  typedef int charset[2];
13307  const charset cs = { 0, 0 };
13308  /* SunOS 4.1.1 cc rejects this.  */
13309  char const *const *pcpcc;
13310  char **ppc;
13311  /* NEC SVR4.0.2 mips cc rejects this.  */
13312  struct point {int x, y;};
13313  static struct point const zero = {0,0};
13314  /* AIX XL C 1.02.0.0 rejects this.
13315     It does not let you subtract one const X* pointer from another in
13316     an arm of an if-expression whose if-part is not a constant
13317     expression */
13318  const char *g = "string";
13319  pcpcc = &g + (g ? g-g : 0);
13320  /* HPUX 7.0 cc rejects these. */
13321  ++pcpcc;
13322  ppc = (char**) pcpcc;
13323  pcpcc = (char const *const *) ppc;
13324  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13325    char tx;
13326    char *t = &tx;
13327    char const *s = 0 ? (char *) 0 : (char const *) 0;
13328
13329    *t++ = 0;
13330    if (s) return 0;
13331  }
13332  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13333    int x[] = {25, 17};
13334    const int *foo = &x[0];
13335    ++foo;
13336  }
13337  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13338    typedef const int *iptr;
13339    iptr p = 0;
13340    ++p;
13341  }
13342  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13343       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13344    struct s { int j; const int *ap[3]; } bx;
13345    struct s *b = &bx; b->j = 5;
13346  }
13347  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13348    const int foo = 10;
13349    if (!foo) return 0;
13350  }
13351  return !cs[0] && !zero.x;
13352#endif
13353
13354  ;
13355  return 0;
13356}
13357_ACEOF
13358if ac_fn_c_try_compile "$LINENO"; then :
13359  ac_cv_c_const=yes
13360else
13361  ac_cv_c_const=no
13362fi
13363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13366$as_echo "$ac_cv_c_const" >&6; }
13367if test $ac_cv_c_const = no; then
13368
13369$as_echo "#define const /**/" >>confdefs.h
13370
13371fi
13372
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13374$as_echo_n "checking for inline... " >&6; }
13375if ${ac_cv_c_inline+:} false; then :
13376  $as_echo_n "(cached) " >&6
13377else
13378  ac_cv_c_inline=no
13379for ac_kw in inline __inline__ __inline; do
13380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381/* end confdefs.h.  */
13382#ifndef __cplusplus
13383typedef int foo_t;
13384static $ac_kw foo_t static_foo () {return 0; }
13385$ac_kw foo_t foo () {return 0; }
13386#endif
13387
13388_ACEOF
13389if ac_fn_c_try_compile "$LINENO"; then :
13390  ac_cv_c_inline=$ac_kw
13391fi
13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393  test "$ac_cv_c_inline" != no && break
13394done
13395
13396fi
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13398$as_echo "$ac_cv_c_inline" >&6; }
13399
13400case $ac_cv_c_inline in
13401  inline | yes) ;;
13402  *)
13403    case $ac_cv_c_inline in
13404      no) ac_val=;;
13405      *) ac_val=$ac_cv_c_inline;;
13406    esac
13407    cat >>confdefs.h <<_ACEOF
13408#ifndef __cplusplus
13409#define inline $ac_val
13410#endif
13411_ACEOF
13412    ;;
13413esac
13414
13415ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13416if test "x$ac_cv_type_size_t" = xyes; then :
13417
13418else
13419
13420cat >>confdefs.h <<_ACEOF
13421#define size_t unsigned int
13422_ACEOF
13423
13424fi
13425
13426ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
13427case $ac_cv_c_int64_t in #(
13428  no|yes) ;; #(
13429  *)
13430
13431cat >>confdefs.h <<_ACEOF
13432#define int64_t $ac_cv_c_int64_t
13433_ACEOF
13434;;
13435esac
13436
13437ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13438case $ac_cv_c_uint64_t in #(
13439  no|yes) ;; #(
13440  *)
13441
13442$as_echo "#define _UINT64_T 1" >>confdefs.h
13443
13444
13445cat >>confdefs.h <<_ACEOF
13446#define uint64_t $ac_cv_c_uint64_t
13447_ACEOF
13448;;
13449  esac
13450
13451case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
13452  *':no:'*) :
13453    as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
13454  *) :
13455     ;;
13456esac
13457ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13458if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13459
13460cat >>confdefs.h <<_ACEOF
13461#define HAVE_STRUCT_STAT_ST_MTIM 1
13462_ACEOF
13463
13464
13465fi
13466
13467
13468# Configure options for dvipng also shown at the TeX Live top-level.
13469## texk/dvipng/ac/dvipng.ac: configure.ac fragment for the TeX Live subdirectory texk/dvipng/
13470## configure options for dvipng
13471# Check whether --enable-debug was given.
13472if test "${enable_debug+set}" = set; then :
13473  enableval=$enable_debug;
13474fi
13475
13476# Check whether --enable-timing was given.
13477if test "${enable_timing+set}" = set; then :
13478  enableval=$enable_timing;
13479fi
13480
13481
13482# Check whether --with-gs was given.
13483if test "${with_gs+set}" = set; then :
13484  withval=$with_gs;
13485fi
13486
13487
13488
13489
13490
13491 if test "x$cross_compiling" = xyes; then
13492  cross_TRUE=
13493  cross_FALSE='#'
13494else
13495  cross_TRUE='#'
13496  cross_FALSE=
13497fi
13498
13499
13500if test "x$enable_debug" != xno; then
13501  enable_debug=yes
13502
13503$as_echo "#define DEBUG 1" >>confdefs.h
13504
13505fi
13506
13507if test "x$enable_timing" = xyes; then
13508
13509$as_echo "#define TIMING 1" >>confdefs.h
13510
13511fi
13512
13513# Checks for programs.
13514# For a native TeX Live build '--with-gs' is ignored.
13515if test "x$enable_native_texlive_build" = xyes; then :
13516  with_gs=
13517fi
13518case $with_gs in #(
13519  "" | yes | no) :
13520    # Extract the first word of "gs", so it can be a program name with args.
13521set dummy gs; ac_word=$2
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523$as_echo_n "checking for $ac_word... " >&6; }
13524if ${ac_cv_prog_GS+:} false; then :
13525  $as_echo_n "(cached) " >&6
13526else
13527  if test -n "$GS"; then
13528  ac_cv_prog_GS="$GS" # Let the user override the test.
13529else
13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531for as_dir in $PATH
13532do
13533  IFS=$as_save_IFS
13534  test -z "$as_dir" && as_dir=.
13535    for ac_exec_ext in '' $ac_executable_extensions; do
13536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537    ac_cv_prog_GS="gs"
13538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539    break 2
13540  fi
13541done
13542  done
13543IFS=$as_save_IFS
13544
13545fi
13546fi
13547GS=$ac_cv_prog_GS
13548if test -n "$GS"; then
13549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
13550$as_echo "$GS" >&6; }
13551else
13552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553$as_echo "no" >&6; }
13554fi
13555
13556 ;; #(
13557  *) :
13558    # Extract the first word of ""$with_gs"", so it can be a program name with args.
13559set dummy "$with_gs"; ac_word=$2
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561$as_echo_n "checking for $ac_word... " >&6; }
13562if ${ac_cv_path_GS+:} false; then :
13563  $as_echo_n "(cached) " >&6
13564else
13565  case $GS in
13566  [\\/]* | ?:[\\/]*)
13567  ac_cv_path_GS="$GS" # Let the user override the test with a path.
13568  ;;
13569  *)
13570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573  IFS=$as_save_IFS
13574  test -z "$as_dir" && as_dir=.
13575    for ac_exec_ext in '' $ac_executable_extensions; do
13576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577    ac_cv_path_GS="$as_dir/$ac_word$ac_exec_ext"
13578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13579    break 2
13580  fi
13581done
13582  done
13583IFS=$as_save_IFS
13584
13585  ;;
13586esac
13587fi
13588GS=$ac_cv_path_GS
13589if test -n "$GS"; then
13590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
13591$as_echo "$GS" >&6; }
13592else
13593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594$as_echo "no" >&6; }
13595fi
13596
13597 ;;
13598esac
13599if test -n "$GS"; then :
13600  GS_WARN=
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GS has the pngalpha device" >&5
13602$as_echo_n "checking whether $GS has the pngalpha device... " >&6; }
13603if $GS -h | grep pngalpha >/dev/null; then
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605$as_echo "yes" >&6; }
13606else
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608$as_echo "no" >&6; }
13609  GS_WARN="Your EPS inclusions will be cropped to the
13610        boundingbox, and rendered on an opaque background.
13611        Upgrade GhostScript to avoid this."
13612        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GS has the png16m device" >&5
13613$as_echo_n "checking whether $GS has the png16m device... " >&6; }
13614if $GS -h | grep png16m >/dev/null; then
13615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13616$as_echo "yes" >&6; }
13617else
13618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
13620  GS_WARN="Your EPS inclusions may not work.
13621        Upgrade/install GhostScript to avoid this."
13622fi
13623
13624fi
13625
13626if test -n "$GS_WARN"; then
13627  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GS_WARN" >&5
13628$as_echo "$as_me: WARNING: $GS_WARN" >&2;}
13629fi
13630
13631else
13632  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GhostScript in your PATH" >&5
13633$as_echo "$as_me: WARNING: Cannot find GhostScript in your PATH" >&2;}
13634       GS=gs
13635fi
13636
13637cat >>confdefs.h <<_ACEOF
13638#define GS_PATH "$GS"
13639_ACEOF
13640
13641
13642# Checks for libraries.
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
13644$as_echo_n "checking for library containing pow... " >&6; }
13645if ${ac_cv_search_pow+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  ac_func_search_save_LIBS=$LIBS
13649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651
13652/* Override any GCC internal prototype to avoid an error.
13653   Use char because int might match the return type of a GCC
13654   builtin and then its argument prototype would still apply.  */
13655#ifdef __cplusplus
13656extern "C"
13657#endif
13658char pow ();
13659int
13660main ()
13661{
13662return pow ();
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667for ac_lib in '' m; do
13668  if test -z "$ac_lib"; then
13669    ac_res="none required"
13670  else
13671    ac_res=-l$ac_lib
13672    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13673  fi
13674  if ac_fn_c_try_link "$LINENO"; then :
13675  ac_cv_search_pow=$ac_res
13676fi
13677rm -f core conftest.err conftest.$ac_objext \
13678    conftest$ac_exeext
13679  if ${ac_cv_search_pow+:} false; then :
13680  break
13681fi
13682done
13683if ${ac_cv_search_pow+:} false; then :
13684
13685else
13686  ac_cv_search_pow=no
13687fi
13688rm conftest.$ac_ext
13689LIBS=$ac_func_search_save_LIBS
13690fi
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
13692$as_echo "$ac_cv_search_pow" >&6; }
13693ac_res=$ac_cv_search_pow
13694if test "$ac_res" != no; then :
13695  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13696
13697fi
13698
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
13700$as_echo_n "checking for library containing basename... " >&6; }
13701if ${ac_cv_search_basename+:} false; then :
13702  $as_echo_n "(cached) " >&6
13703else
13704  ac_func_search_save_LIBS=$LIBS
13705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706/* end confdefs.h.  */
13707
13708/* Override any GCC internal prototype to avoid an error.
13709   Use char because int might match the return type of a GCC
13710   builtin and then its argument prototype would still apply.  */
13711#ifdef __cplusplus
13712extern "C"
13713#endif
13714char basename ();
13715int
13716main ()
13717{
13718return basename ();
13719  ;
13720  return 0;
13721}
13722_ACEOF
13723for ac_lib in '' gen; do
13724  if test -z "$ac_lib"; then
13725    ac_res="none required"
13726  else
13727    ac_res=-l$ac_lib
13728    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13729  fi
13730  if ac_fn_c_try_link "$LINENO"; then :
13731  ac_cv_search_basename=$ac_res
13732fi
13733rm -f core conftest.err conftest.$ac_objext \
13734    conftest$ac_exeext
13735  if ${ac_cv_search_basename+:} false; then :
13736  break
13737fi
13738done
13739if ${ac_cv_search_basename+:} false; then :
13740
13741else
13742  ac_cv_search_basename=no
13743fi
13744rm conftest.$ac_ext
13745LIBS=$ac_func_search_save_LIBS
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
13748$as_echo "$ac_cv_search_basename" >&6; }
13749ac_res=$ac_cv_search_basename
13750if test "$ac_res" != no; then :
13751  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752
13753fi
13754
13755
13756# Checks for header files.
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13758$as_echo_n "checking for ANSI C header files... " >&6; }
13759if ${ac_cv_header_stdc+:} false; then :
13760  $as_echo_n "(cached) " >&6
13761else
13762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h.  */
13764#include <stdlib.h>
13765#include <stdarg.h>
13766#include <string.h>
13767#include <float.h>
13768
13769int
13770main ()
13771{
13772
13773  ;
13774  return 0;
13775}
13776_ACEOF
13777if ac_fn_c_try_compile "$LINENO"; then :
13778  ac_cv_header_stdc=yes
13779else
13780  ac_cv_header_stdc=no
13781fi
13782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783
13784if test $ac_cv_header_stdc = yes; then
13785  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787/* end confdefs.h.  */
13788#include <string.h>
13789
13790_ACEOF
13791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13792  $EGREP "memchr" >/dev/null 2>&1; then :
13793
13794else
13795  ac_cv_header_stdc=no
13796fi
13797rm -f conftest*
13798
13799fi
13800
13801if test $ac_cv_header_stdc = yes; then
13802  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804/* end confdefs.h.  */
13805#include <stdlib.h>
13806
13807_ACEOF
13808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13809  $EGREP "free" >/dev/null 2>&1; then :
13810
13811else
13812  ac_cv_header_stdc=no
13813fi
13814rm -f conftest*
13815
13816fi
13817
13818if test $ac_cv_header_stdc = yes; then
13819  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13820  if test "$cross_compiling" = yes; then :
13821  :
13822else
13823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824/* end confdefs.h.  */
13825#include <ctype.h>
13826#include <stdlib.h>
13827#if ((' ' & 0x0FF) == 0x020)
13828# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13829# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13830#else
13831# define ISLOWER(c) \
13832		   (('a' <= (c) && (c) <= 'i') \
13833		     || ('j' <= (c) && (c) <= 'r') \
13834		     || ('s' <= (c) && (c) <= 'z'))
13835# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13836#endif
13837
13838#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13839int
13840main ()
13841{
13842  int i;
13843  for (i = 0; i < 256; i++)
13844    if (XOR (islower (i), ISLOWER (i))
13845	|| toupper (i) != TOUPPER (i))
13846      return 2;
13847  return 0;
13848}
13849_ACEOF
13850if ac_fn_c_try_run "$LINENO"; then :
13851
13852else
13853  ac_cv_header_stdc=no
13854fi
13855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13856  conftest.$ac_objext conftest.beam conftest.$ac_ext
13857fi
13858
13859fi
13860fi
13861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13862$as_echo "$ac_cv_header_stdc" >&6; }
13863if test $ac_cv_header_stdc = yes; then
13864
13865$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13866
13867fi
13868
13869for ac_header in fcntl.h sys/time.h
13870do :
13871  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13874  cat >>confdefs.h <<_ACEOF
13875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13876_ACEOF
13877
13878fi
13879
13880done
13881
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13883$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13884if ${ac_cv_header_sys_wait_h+:} false; then :
13885  $as_echo_n "(cached) " >&6
13886else
13887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889#include <sys/types.h>
13890#include <sys/wait.h>
13891#ifndef WEXITSTATUS
13892# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13893#endif
13894#ifndef WIFEXITED
13895# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13896#endif
13897
13898int
13899main ()
13900{
13901  int s;
13902  wait (&s);
13903  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13904  ;
13905  return 0;
13906}
13907_ACEOF
13908if ac_fn_c_try_compile "$LINENO"; then :
13909  ac_cv_header_sys_wait_h=yes
13910else
13911  ac_cv_header_sys_wait_h=no
13912fi
13913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914fi
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13916$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13917if test $ac_cv_header_sys_wait_h = yes; then
13918
13919$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13920
13921fi
13922
13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13924$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13925if ${ac_cv_header_time+:} false; then :
13926  $as_echo_n "(cached) " >&6
13927else
13928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h.  */
13930#include <sys/types.h>
13931#include <sys/time.h>
13932#include <time.h>
13933
13934int
13935main ()
13936{
13937if ((struct tm *) 0)
13938return 0;
13939  ;
13940  return 0;
13941}
13942_ACEOF
13943if ac_fn_c_try_compile "$LINENO"; then :
13944  ac_cv_header_time=yes
13945else
13946  ac_cv_header_time=no
13947fi
13948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949fi
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13951$as_echo "$ac_cv_header_time" >&6; }
13952if test $ac_cv_header_time = yes; then
13953
13954$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13955
13956fi
13957
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13959$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13960if ${ac_cv_header_stdbool_h+:} false; then :
13961  $as_echo_n "(cached) " >&6
13962else
13963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964/* end confdefs.h.  */
13965
13966             #include <stdbool.h>
13967             #ifndef bool
13968              "error: bool is not defined"
13969             #endif
13970             #ifndef false
13971              "error: false is not defined"
13972             #endif
13973             #if false
13974              "error: false is not 0"
13975             #endif
13976             #ifndef true
13977              "error: true is not defined"
13978             #endif
13979             #if true != 1
13980              "error: true is not 1"
13981             #endif
13982             #ifndef __bool_true_false_are_defined
13983              "error: __bool_true_false_are_defined is not defined"
13984             #endif
13985
13986             struct s { _Bool s: 1; _Bool t; } s;
13987
13988             char a[true == 1 ? 1 : -1];
13989             char b[false == 0 ? 1 : -1];
13990             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13991             char d[(bool) 0.5 == true ? 1 : -1];
13992             /* See body of main program for 'e'.  */
13993             char f[(_Bool) 0.0 == false ? 1 : -1];
13994             char g[true];
13995             char h[sizeof (_Bool)];
13996             char i[sizeof s.t];
13997             enum { j = false, k = true, l = false * true, m = true * 256 };
13998             /* The following fails for
13999                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14000             _Bool n[m];
14001             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14002             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14003             /* Catch a bug in an HP-UX C compiler.  See
14004                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14005                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14006              */
14007             _Bool q = true;
14008             _Bool *pq = &q;
14009
14010int
14011main ()
14012{
14013
14014             bool e = &s;
14015             *pq |= q;
14016             *pq |= ! q;
14017             /* Refer to every declared value, to avoid compiler optimizations.  */
14018             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14019                     + !m + !n + !o + !p + !q + !pq);
14020
14021  ;
14022  return 0;
14023}
14024_ACEOF
14025if ac_fn_c_try_compile "$LINENO"; then :
14026  ac_cv_header_stdbool_h=yes
14027else
14028  ac_cv_header_stdbool_h=no
14029fi
14030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031fi
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14033$as_echo "$ac_cv_header_stdbool_h" >&6; }
14034   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14035if test "x$ac_cv_type__Bool" = xyes; then :
14036
14037cat >>confdefs.h <<_ACEOF
14038#define HAVE__BOOL 1
14039_ACEOF
14040
14041
14042fi
14043
14044
14045if test $ac_cv_header_stdbool_h = yes; then
14046
14047$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14048
14049fi
14050
14051
14052# Checks for typedefs, structures, and compiler characteristics.
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14054$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14055if ${ac_cv_c_const+:} false; then :
14056  $as_echo_n "(cached) " >&6
14057else
14058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h.  */
14060
14061int
14062main ()
14063{
14064
14065#ifndef __cplusplus
14066  /* Ultrix mips cc rejects this sort of thing.  */
14067  typedef int charset[2];
14068  const charset cs = { 0, 0 };
14069  /* SunOS 4.1.1 cc rejects this.  */
14070  char const *const *pcpcc;
14071  char **ppc;
14072  /* NEC SVR4.0.2 mips cc rejects this.  */
14073  struct point {int x, y;};
14074  static struct point const zero = {0,0};
14075  /* AIX XL C 1.02.0.0 rejects this.
14076     It does not let you subtract one const X* pointer from another in
14077     an arm of an if-expression whose if-part is not a constant
14078     expression */
14079  const char *g = "string";
14080  pcpcc = &g + (g ? g-g : 0);
14081  /* HPUX 7.0 cc rejects these. */
14082  ++pcpcc;
14083  ppc = (char**) pcpcc;
14084  pcpcc = (char const *const *) ppc;
14085  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14086    char tx;
14087    char *t = &tx;
14088    char const *s = 0 ? (char *) 0 : (char const *) 0;
14089
14090    *t++ = 0;
14091    if (s) return 0;
14092  }
14093  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14094    int x[] = {25, 17};
14095    const int *foo = &x[0];
14096    ++foo;
14097  }
14098  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14099    typedef const int *iptr;
14100    iptr p = 0;
14101    ++p;
14102  }
14103  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14104       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14105    struct s { int j; const int *ap[3]; } bx;
14106    struct s *b = &bx; b->j = 5;
14107  }
14108  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14109    const int foo = 10;
14110    if (!foo) return 0;
14111  }
14112  return !cs[0] && !zero.x;
14113#endif
14114
14115  ;
14116  return 0;
14117}
14118_ACEOF
14119if ac_fn_c_try_compile "$LINENO"; then :
14120  ac_cv_c_const=yes
14121else
14122  ac_cv_c_const=no
14123fi
14124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125fi
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14127$as_echo "$ac_cv_c_const" >&6; }
14128if test $ac_cv_c_const = no; then
14129
14130$as_echo "#define const /**/" >>confdefs.h
14131
14132fi
14133
14134ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14135if test "x$ac_cv_type_pid_t" = xyes; then :
14136
14137else
14138
14139cat >>confdefs.h <<_ACEOF
14140#define pid_t int
14141_ACEOF
14142
14143fi
14144
14145
14146# Checks for library functions.
14147
14148
14149
14150  for ac_header in $ac_header_list
14151do :
14152  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14153ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14154"
14155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14156  cat >>confdefs.h <<_ACEOF
14157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14158_ACEOF
14159
14160fi
14161
14162done
14163
14164
14165
14166
14167
14168
14169
14170
14171for ac_func in getpagesize
14172do :
14173  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14174if test "x$ac_cv_func_getpagesize" = xyes; then :
14175  cat >>confdefs.h <<_ACEOF
14176#define HAVE_GETPAGESIZE 1
14177_ACEOF
14178
14179fi
14180done
14181
14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14183$as_echo_n "checking for working mmap... " >&6; }
14184if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14185  $as_echo_n "(cached) " >&6
14186else
14187  if test "$cross_compiling" = yes; then :
14188  ac_cv_func_mmap_fixed_mapped=no
14189else
14190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191/* end confdefs.h.  */
14192$ac_includes_default
14193/* malloc might have been renamed as rpl_malloc. */
14194#undef malloc
14195
14196/* Thanks to Mike Haertel and Jim Avera for this test.
14197   Here is a matrix of mmap possibilities:
14198	mmap private not fixed
14199	mmap private fixed at somewhere currently unmapped
14200	mmap private fixed at somewhere already mapped
14201	mmap shared not fixed
14202	mmap shared fixed at somewhere currently unmapped
14203	mmap shared fixed at somewhere already mapped
14204   For private mappings, we should verify that changes cannot be read()
14205   back from the file, nor mmap's back from the file at a different
14206   address.  (There have been systems where private was not correctly
14207   implemented like the infamous i386 svr4.0, and systems where the
14208   VM page cache was not coherent with the file system buffer cache
14209   like early versions of FreeBSD and possibly contemporary NetBSD.)
14210   For shared mappings, we should conversely verify that changes get
14211   propagated back to all the places they're supposed to be.
14212
14213   Grep wants private fixed already mapped.
14214   The main things grep needs to know about mmap are:
14215   * does it exist and is it safe to write into the mmap'd area
14216   * how to use it (BSD variants)  */
14217
14218#include <fcntl.h>
14219#include <sys/mman.h>
14220
14221#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14222char *malloc ();
14223#endif
14224
14225/* This mess was copied from the GNU getpagesize.h.  */
14226#ifndef HAVE_GETPAGESIZE
14227# ifdef _SC_PAGESIZE
14228#  define getpagesize() sysconf(_SC_PAGESIZE)
14229# else /* no _SC_PAGESIZE */
14230#  ifdef HAVE_SYS_PARAM_H
14231#   include <sys/param.h>
14232#   ifdef EXEC_PAGESIZE
14233#    define getpagesize() EXEC_PAGESIZE
14234#   else /* no EXEC_PAGESIZE */
14235#    ifdef NBPG
14236#     define getpagesize() NBPG * CLSIZE
14237#     ifndef CLSIZE
14238#      define CLSIZE 1
14239#     endif /* no CLSIZE */
14240#    else /* no NBPG */
14241#     ifdef NBPC
14242#      define getpagesize() NBPC
14243#     else /* no NBPC */
14244#      ifdef PAGESIZE
14245#       define getpagesize() PAGESIZE
14246#      endif /* PAGESIZE */
14247#     endif /* no NBPC */
14248#    endif /* no NBPG */
14249#   endif /* no EXEC_PAGESIZE */
14250#  else /* no HAVE_SYS_PARAM_H */
14251#   define getpagesize() 8192	/* punt totally */
14252#  endif /* no HAVE_SYS_PARAM_H */
14253# endif /* no _SC_PAGESIZE */
14254
14255#endif /* no HAVE_GETPAGESIZE */
14256
14257int
14258main ()
14259{
14260  char *data, *data2, *data3;
14261  const char *cdata2;
14262  int i, pagesize;
14263  int fd, fd2;
14264
14265  pagesize = getpagesize ();
14266
14267  /* First, make a file with some known garbage in it. */
14268  data = (char *) malloc (pagesize);
14269  if (!data)
14270    return 1;
14271  for (i = 0; i < pagesize; ++i)
14272    *(data + i) = rand ();
14273  umask (0);
14274  fd = creat ("conftest.mmap", 0600);
14275  if (fd < 0)
14276    return 2;
14277  if (write (fd, data, pagesize) != pagesize)
14278    return 3;
14279  close (fd);
14280
14281  /* Next, check that the tail of a page is zero-filled.  File must have
14282     non-zero length, otherwise we risk SIGBUS for entire page.  */
14283  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14284  if (fd2 < 0)
14285    return 4;
14286  cdata2 = "";
14287  if (write (fd2, cdata2, 1) != 1)
14288    return 5;
14289  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14290  if (data2 == MAP_FAILED)
14291    return 6;
14292  for (i = 0; i < pagesize; ++i)
14293    if (*(data2 + i))
14294      return 7;
14295  close (fd2);
14296  if (munmap (data2, pagesize))
14297    return 8;
14298
14299  /* Next, try to mmap the file at a fixed address which already has
14300     something else allocated at it.  If we can, also make sure that
14301     we see the same garbage.  */
14302  fd = open ("conftest.mmap", O_RDWR);
14303  if (fd < 0)
14304    return 9;
14305  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14306		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
14307    return 10;
14308  for (i = 0; i < pagesize; ++i)
14309    if (*(data + i) != *(data2 + i))
14310      return 11;
14311
14312  /* Finally, make sure that changes to the mapped area do not
14313     percolate back to the file as seen by read().  (This is a bug on
14314     some variants of i386 svr4.0.)  */
14315  for (i = 0; i < pagesize; ++i)
14316    *(data2 + i) = *(data2 + i) + 1;
14317  data3 = (char *) malloc (pagesize);
14318  if (!data3)
14319    return 12;
14320  if (read (fd, data3, pagesize) != pagesize)
14321    return 13;
14322  for (i = 0; i < pagesize; ++i)
14323    if (*(data + i) != *(data3 + i))
14324      return 14;
14325  close (fd);
14326  return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_run "$LINENO"; then :
14330  ac_cv_func_mmap_fixed_mapped=yes
14331else
14332  ac_cv_func_mmap_fixed_mapped=no
14333fi
14334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14335  conftest.$ac_objext conftest.beam conftest.$ac_ext
14336fi
14337
14338fi
14339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14340$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14341if test $ac_cv_func_mmap_fixed_mapped = yes; then
14342
14343$as_echo "#define HAVE_MMAP 1" >>confdefs.h
14344
14345fi
14346rm -f conftest.mmap conftest.txt
14347
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14349$as_echo_n "checking for working strtod... " >&6; }
14350if ${ac_cv_func_strtod+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353  if test "$cross_compiling" = yes; then :
14354  ac_cv_func_strtod=no
14355else
14356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357/* end confdefs.h.  */
14358
14359$ac_includes_default
14360#ifndef strtod
14361double strtod ();
14362#endif
14363int
14364main()
14365{
14366  {
14367    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14368    char *string = " +69";
14369    char *term;
14370    double value;
14371    value = strtod (string, &term);
14372    if (value != 69 || term != (string + 4))
14373      return 1;
14374  }
14375
14376  {
14377    /* Under Solaris 2.4, strtod returns the wrong value for the
14378       terminating character under some conditions.  */
14379    char *string = "NaN";
14380    char *term;
14381    strtod (string, &term);
14382    if (term != string && *(term - 1) == 0)
14383      return 1;
14384  }
14385  return 0;
14386}
14387
14388_ACEOF
14389if ac_fn_c_try_run "$LINENO"; then :
14390  ac_cv_func_strtod=yes
14391else
14392  ac_cv_func_strtod=no
14393fi
14394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14395  conftest.$ac_objext conftest.beam conftest.$ac_ext
14396fi
14397
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14400$as_echo "$ac_cv_func_strtod" >&6; }
14401if test $ac_cv_func_strtod = no; then
14402  case " $LIBOBJS " in
14403  *" strtod.$ac_objext "* ) ;;
14404  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14405 ;;
14406esac
14407
14408ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14409if test "x$ac_cv_func_pow" = xyes; then :
14410
14411fi
14412
14413if test $ac_cv_func_pow = no; then
14414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14415$as_echo_n "checking for pow in -lm... " >&6; }
14416if ${ac_cv_lib_m_pow+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  ac_check_lib_save_LIBS=$LIBS
14420LIBS="-lm  $LIBS"
14421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h.  */
14423
14424/* Override any GCC internal prototype to avoid an error.
14425   Use char because int might match the return type of a GCC
14426   builtin and then its argument prototype would still apply.  */
14427#ifdef __cplusplus
14428extern "C"
14429#endif
14430char pow ();
14431int
14432main ()
14433{
14434return pow ();
14435  ;
14436  return 0;
14437}
14438_ACEOF
14439if ac_fn_c_try_link "$LINENO"; then :
14440  ac_cv_lib_m_pow=yes
14441else
14442  ac_cv_lib_m_pow=no
14443fi
14444rm -f core conftest.err conftest.$ac_objext \
14445    conftest$ac_exeext conftest.$ac_ext
14446LIBS=$ac_check_lib_save_LIBS
14447fi
14448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14449$as_echo "$ac_cv_lib_m_pow" >&6; }
14450if test "x$ac_cv_lib_m_pow" = xyes; then :
14451  POW_LIB=-lm
14452else
14453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14454$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14455fi
14456
14457fi
14458
14459fi
14460
14461for ac_func in vprintf
14462do :
14463  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14464if test "x$ac_cv_func_vprintf" = xyes; then :
14465  cat >>confdefs.h <<_ACEOF
14466#define HAVE_VPRINTF 1
14467_ACEOF
14468
14469ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14470if test "x$ac_cv_func__doprnt" = xyes; then :
14471
14472$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14473
14474fi
14475
14476fi
14477done
14478
14479
14480for ac_func in dup2 memset munmap pow putenv strchr strrchr
14481do :
14482  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14483ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14484if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14485  cat >>confdefs.h <<_ACEOF
14486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14487_ACEOF
14488
14489fi
14490done
14491
14492
14493if test "x$enable_timing" = xyes; then
14494  for ac_func in ftime gettimeofday
14495do :
14496  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14497ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14498if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14499  cat >>confdefs.h <<_ACEOF
14500#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14501_ACEOF
14502
14503fi
14504done
14505
14506fi
14507
14508# Documentation-related checks.
14509# Extract the first word of "makeinfo", so it can be a program name with args.
14510set dummy makeinfo; ac_word=$2
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512$as_echo_n "checking for $ac_word... " >&6; }
14513if ${ac_cv_path_MAKEINFO+:} false; then :
14514  $as_echo_n "(cached) " >&6
14515else
14516  case $MAKEINFO in
14517  [\\/]* | ?:[\\/]*)
14518  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
14519  ;;
14520  *)
14521  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522for as_dir in $PATH
14523do
14524  IFS=$as_save_IFS
14525  test -z "$as_dir" && as_dir=.
14526    for ac_exec_ext in '' $ac_executable_extensions; do
14527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14528    ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
14529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14530    break 2
14531  fi
14532done
14533  done
14534IFS=$as_save_IFS
14535
14536  test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=":"
14537  ;;
14538esac
14539fi
14540MAKEINFO=$ac_cv_path_MAKEINFO
14541if test -n "$MAKEINFO"; then
14542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14543$as_echo "$MAKEINFO" >&6; }
14544else
14545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546$as_echo "no" >&6; }
14547fi
14548
14549
14550if test -n "$MAKEINFO" -a "$MAKEINFO" != ":"; then
14551  for ac_macro in acronym env option; do
14552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MAKEINFO understands @$ac_macro{}" >&5
14553$as_echo_n "checking if $MAKEINFO understands @$ac_macro{}... " >&6; }
14554echo \\\\input texinfo > conftest.texi
14555echo @$ac_macro{test} >> conftest.texi
14556if $MAKEINFO conftest.texi > /dev/null 2> /dev/null; then
14557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14558$as_echo "yes" >&6; }
14559else
14560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561$as_echo "no" >&6; }
14562  AM_MAKEINFOFLAGS="-D no-$ac_macro $AM_MAKEINFOFLAGS"
14563fi
14564rm -f conftest.texi conftest.info
14565
14566  done
14567fi
14568
14569
14570# Extract the first word of "install-info", so it can be a program name with args.
14571set dummy install-info; ac_word=$2
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14573$as_echo_n "checking for $ac_word... " >&6; }
14574if ${ac_cv_path_INSTALL_INFO+:} false; then :
14575  $as_echo_n "(cached) " >&6
14576else
14577  case $INSTALL_INFO in
14578  [\\/]* | ?:[\\/]*)
14579  ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
14580  ;;
14581  *)
14582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583for as_dir in $PATH /usr/sbin /sbin
14584do
14585  IFS=$as_save_IFS
14586  test -z "$as_dir" && as_dir=.
14587    for ac_exec_ext in '' $ac_executable_extensions; do
14588  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14589    ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
14590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14591    break 2
14592  fi
14593done
14594  done
14595IFS=$as_save_IFS
14596
14597  test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
14598  ;;
14599esac
14600fi
14601INSTALL_INFO=$ac_cv_path_INSTALL_INFO
14602if test -n "$INSTALL_INFO"; then
14603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
14604$as_echo "$INSTALL_INFO" >&6; }
14605else
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14607$as_echo "no" >&6; }
14608fi
14609
14610
14611
14612# SELFAUTO -- not used when built as part of the TeX Live tree.
14613
14614# We have to check properties of libraries, either installed (system)
14615# libraries or unistalled (possibly libtool) ones from the TeX Live tree.
14616# Thus we can not use, e.g., AC_CHECK_LIB(LIB, FUNCTION)
14617
14618kpse_save_CPPFLAGS=$CPPFLAGS
14619kpse_save_LIBS=$LIBS
14620
14621## _KPSE_INIT: Initialize TL infrastructure
14622kpse_BLD=`(cd "./../../." && pwd)`
14623kpse_SRC=`(cd "$srcdir/../../." && pwd)`
14624
14625## _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests
14626: ${CONFIG_LT=./config.lt}
14627{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
14628$as_echo "$as_me: creating $CONFIG_LT" >&6;}
14629as_write_fail=0
14630cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
14631#! $SHELL
14632# Generated by $as_me.
14633# Run this file to recreate a libtool stub with the current configuration.
14634SHELL=\${CONFIG_SHELL-$SHELL}
14635export SHELL
14636_ASEOF
14637cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
14638## -------------------- ##
14639## M4sh Initialization. ##
14640## -------------------- ##
14641
14642# Be more Bourne compatible
14643DUALCASE=1; export DUALCASE # for MKS sh
14644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14645  emulate sh
14646  NULLCMD=:
14647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14648  # is contrary to our usage.  Disable this feature.
14649  alias -g '${1+"$@"}'='"$@"'
14650  setopt NO_GLOB_SUBST
14651else
14652  case `(set -o) 2>/dev/null` in #(
14653  *posix*) :
14654    set -o posix ;; #(
14655  *) :
14656     ;;
14657esac
14658fi
14659
14660
14661as_nl='
14662'
14663export as_nl
14664# Printing a long string crashes Solaris 7 /usr/bin/printf.
14665as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14666as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14668# Prefer a ksh shell builtin over an external printf program on Solaris,
14669# but without wasting forks for bash or zsh.
14670if test -z "$BASH_VERSION$ZSH_VERSION" \
14671    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14672  as_echo='print -r --'
14673  as_echo_n='print -rn --'
14674elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14675  as_echo='printf %s\n'
14676  as_echo_n='printf %s'
14677else
14678  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14679    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14680    as_echo_n='/usr/ucb/echo -n'
14681  else
14682    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14683    as_echo_n_body='eval
14684      arg=$1;
14685      case $arg in #(
14686      *"$as_nl"*)
14687	expr "X$arg" : "X\\(.*\\)$as_nl";
14688	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14689      esac;
14690      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14691    '
14692    export as_echo_n_body
14693    as_echo_n='sh -c $as_echo_n_body as_echo'
14694  fi
14695  export as_echo_body
14696  as_echo='sh -c $as_echo_body as_echo'
14697fi
14698
14699# The user is always right.
14700if test "${PATH_SEPARATOR+set}" != set; then
14701  PATH_SEPARATOR=:
14702  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14703    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14704      PATH_SEPARATOR=';'
14705  }
14706fi
14707
14708
14709# IFS
14710# We need space, tab and new line, in precisely that order.  Quoting is
14711# there to prevent editors from complaining about space-tab.
14712# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14713# splitting by setting IFS to empty value.)
14714IFS=" ""	$as_nl"
14715
14716# Find who we are.  Look in the path if we contain no directory separator.
14717as_myself=
14718case $0 in #((
14719  *[\\/]* ) as_myself=$0 ;;
14720  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721for as_dir in $PATH
14722do
14723  IFS=$as_save_IFS
14724  test -z "$as_dir" && as_dir=.
14725    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14726  done
14727IFS=$as_save_IFS
14728
14729     ;;
14730esac
14731# We did not find ourselves, most probably we were run as `sh COMMAND'
14732# in which case we are not to be found in the path.
14733if test "x$as_myself" = x; then
14734  as_myself=$0
14735fi
14736if test ! -f "$as_myself"; then
14737  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14738  exit 1
14739fi
14740
14741# Unset variables that we do not need and which cause bugs (e.g. in
14742# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14743# suppresses any "Segmentation fault" message there.  '((' could
14744# trigger a bug in pdksh 5.2.14.
14745for as_var in BASH_ENV ENV MAIL MAILPATH
14746do eval test x\${$as_var+set} = xset \
14747  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14748done
14749PS1='$ '
14750PS2='> '
14751PS4='+ '
14752
14753# NLS nuisances.
14754LC_ALL=C
14755export LC_ALL
14756LANGUAGE=C
14757export LANGUAGE
14758
14759# CDPATH.
14760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14761
14762
14763# as_fn_error STATUS ERROR [LINENO LOG_FD]
14764# ----------------------------------------
14765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14767# script with STATUS, using 1 if that was 0.
14768as_fn_error ()
14769{
14770  as_status=$1; test $as_status -eq 0 && as_status=1
14771  if test "$4"; then
14772    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14773    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14774  fi
14775  $as_echo "$as_me: error: $2" >&2
14776  as_fn_exit $as_status
14777} # as_fn_error
14778
14779
14780# as_fn_set_status STATUS
14781# -----------------------
14782# Set $? to STATUS, without forking.
14783as_fn_set_status ()
14784{
14785  return $1
14786} # as_fn_set_status
14787
14788# as_fn_exit STATUS
14789# -----------------
14790# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14791as_fn_exit ()
14792{
14793  set +e
14794  as_fn_set_status $1
14795  exit $1
14796} # as_fn_exit
14797
14798# as_fn_unset VAR
14799# ---------------
14800# Portably unset VAR.
14801as_fn_unset ()
14802{
14803  { eval $1=; unset $1;}
14804}
14805as_unset=as_fn_unset
14806# as_fn_append VAR VALUE
14807# ----------------------
14808# Append the text in VALUE to the end of the definition contained in VAR. Take
14809# advantage of any shell optimizations that allow amortized linear growth over
14810# repeated appends, instead of the typical quadratic growth present in naive
14811# implementations.
14812if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14813  eval 'as_fn_append ()
14814  {
14815    eval $1+=\$2
14816  }'
14817else
14818  as_fn_append ()
14819  {
14820    eval $1=\$$1\$2
14821  }
14822fi # as_fn_append
14823
14824# as_fn_arith ARG...
14825# ------------------
14826# Perform arithmetic evaluation on the ARGs, and store the result in the
14827# global $as_val. Take advantage of shells that can avoid forks. The arguments
14828# must be portable across $(()) and expr.
14829if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14830  eval 'as_fn_arith ()
14831  {
14832    as_val=$(( $* ))
14833  }'
14834else
14835  as_fn_arith ()
14836  {
14837    as_val=`expr "$@" || test $? -eq 1`
14838  }
14839fi # as_fn_arith
14840
14841
14842if expr a : '\(a\)' >/dev/null 2>&1 &&
14843   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14844  as_expr=expr
14845else
14846  as_expr=false
14847fi
14848
14849if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14850  as_basename=basename
14851else
14852  as_basename=false
14853fi
14854
14855if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14856  as_dirname=dirname
14857else
14858  as_dirname=false
14859fi
14860
14861as_me=`$as_basename -- "$0" ||
14862$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14863	 X"$0" : 'X\(//\)$' \| \
14864	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14865$as_echo X/"$0" |
14866    sed '/^.*\/\([^/][^/]*\)\/*$/{
14867	    s//\1/
14868	    q
14869	  }
14870	  /^X\/\(\/\/\)$/{
14871	    s//\1/
14872	    q
14873	  }
14874	  /^X\/\(\/\).*/{
14875	    s//\1/
14876	    q
14877	  }
14878	  s/.*/./; q'`
14879
14880# Avoid depending upon Character Ranges.
14881as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14882as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14883as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14884as_cr_digits='0123456789'
14885as_cr_alnum=$as_cr_Letters$as_cr_digits
14886
14887ECHO_C= ECHO_N= ECHO_T=
14888case `echo -n x` in #(((((
14889-n*)
14890  case `echo 'xy\c'` in
14891  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14892  xy)  ECHO_C='\c';;
14893  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14894       ECHO_T='	';;
14895  esac;;
14896*)
14897  ECHO_N='-n';;
14898esac
14899
14900rm -f conf$$ conf$$.exe conf$$.file
14901if test -d conf$$.dir; then
14902  rm -f conf$$.dir/conf$$.file
14903else
14904  rm -f conf$$.dir
14905  mkdir conf$$.dir 2>/dev/null
14906fi
14907if (echo >conf$$.file) 2>/dev/null; then
14908  if ln -s conf$$.file conf$$ 2>/dev/null; then
14909    as_ln_s='ln -s'
14910    # ... but there are two gotchas:
14911    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14912    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14913    # In both cases, we have to default to `cp -pR'.
14914    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14915      as_ln_s='cp -pR'
14916  elif ln conf$$.file conf$$ 2>/dev/null; then
14917    as_ln_s=ln
14918  else
14919    as_ln_s='cp -pR'
14920  fi
14921else
14922  as_ln_s='cp -pR'
14923fi
14924rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14925rmdir conf$$.dir 2>/dev/null
14926
14927
14928# as_fn_mkdir_p
14929# -------------
14930# Create "$as_dir" as a directory, including parents if necessary.
14931as_fn_mkdir_p ()
14932{
14933
14934  case $as_dir in #(
14935  -*) as_dir=./$as_dir;;
14936  esac
14937  test -d "$as_dir" || eval $as_mkdir_p || {
14938    as_dirs=
14939    while :; do
14940      case $as_dir in #(
14941      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14942      *) as_qdir=$as_dir;;
14943      esac
14944      as_dirs="'$as_qdir' $as_dirs"
14945      as_dir=`$as_dirname -- "$as_dir" ||
14946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947	 X"$as_dir" : 'X\(//\)[^/]' \| \
14948	 X"$as_dir" : 'X\(//\)$' \| \
14949	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950$as_echo X"$as_dir" |
14951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952	    s//\1/
14953	    q
14954	  }
14955	  /^X\(\/\/\)[^/].*/{
14956	    s//\1/
14957	    q
14958	  }
14959	  /^X\(\/\/\)$/{
14960	    s//\1/
14961	    q
14962	  }
14963	  /^X\(\/\).*/{
14964	    s//\1/
14965	    q
14966	  }
14967	  s/.*/./; q'`
14968      test -d "$as_dir" && break
14969    done
14970    test -z "$as_dirs" || eval "mkdir $as_dirs"
14971  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14972
14973
14974} # as_fn_mkdir_p
14975if mkdir -p . 2>/dev/null; then
14976  as_mkdir_p='mkdir -p "$as_dir"'
14977else
14978  test -d ./-p && rmdir ./-p
14979  as_mkdir_p=false
14980fi
14981
14982
14983# as_fn_executable_p FILE
14984# -----------------------
14985# Test if FILE is an executable regular file.
14986as_fn_executable_p ()
14987{
14988  test -f "$1" && test -x "$1"
14989} # as_fn_executable_p
14990as_test_x='test -x'
14991as_executable_p=as_fn_executable_p
14992
14993# Sed expression to map a string onto a valid CPP name.
14994as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14995
14996# Sed expression to map a string onto a valid variable name.
14997as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14998
14999
15000exec 6>&1
15001## --------------------------------- ##
15002## Main body of "$CONFIG_LT" script. ##
15003## --------------------------------- ##
15004_ASEOF
15005test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15006
15007cat >>"$CONFIG_LT" <<\_LTEOF
15008lt_cl_silent=false
15009exec 5>>config.log
15010{
15011  echo
15012  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15013## Running $as_me. ##
15014_ASBOX
15015} >&5
15016
15017lt_cl_help="\
15018'$as_me' creates a local libtool stub from the current configuration,
15019for use in further configure time tests before the real libtool is
15020generated.
15021
15022Usage: $0 [OPTIONS]
15023
15024  -h, --help      print this help, then exit
15025  -V, --version   print version number, then exit
15026  -q, --quiet     do not print progress messages
15027  -d, --debug     don't remove temporary files
15028
15029Report bugs to <bug-libtool@gnu.org>."
15030
15031lt_cl_version="\
15032dvipng (TeX Live) config.lt 1.15
15033configured by $0, generated by GNU Autoconf 2.69.
15034
15035Copyright (C) 2011 Free Software Foundation, Inc.
15036This config.lt script is free software; the Free Software Foundation
15037gives unlimited permision to copy, distribute and modify it."
15038
15039while test 0 != $#
15040do
15041  case $1 in
15042    --version | --v* | -V )
15043      echo "$lt_cl_version"; exit 0 ;;
15044    --help | --h* | -h )
15045      echo "$lt_cl_help"; exit 0 ;;
15046    --debug | --d* | -d )
15047      debug=: ;;
15048    --quiet | --q* | --silent | --s* | -q )
15049      lt_cl_silent=: ;;
15050
15051    -*) as_fn_error $? "unrecognized option: $1
15052Try '$0 --help' for more information." "$LINENO" 5 ;;
15053
15054    *) as_fn_error $? "unrecognized argument: $1
15055Try '$0 --help' for more information." "$LINENO" 5 ;;
15056  esac
15057  shift
15058done
15059
15060if $lt_cl_silent; then
15061  exec 6>/dev/null
15062fi
15063_LTEOF
15064
15065cat >>"$CONFIG_LT" <<_LTEOF
15066
15067
15068# The HP-UX ksh and POSIX shell print the target directory to stdout
15069# if CDPATH is set.
15070(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15071
15072sed_quote_subst='$sed_quote_subst'
15073double_quote_subst='$double_quote_subst'
15074delay_variable_subst='$delay_variable_subst'
15075macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15076macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15077AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15078DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15079OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15080enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15081enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15082pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15083enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15084shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15085SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15086ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15087PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15088host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15089host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15090host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15091build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15092build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15093build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15094SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15095Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15096GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15097EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15098FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15099LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15100NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15101LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15102max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15103ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15104exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15105lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15106lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15107lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15108lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15109lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15110reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15111reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15112deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15113file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15114file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15115want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15116sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15117AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15118AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15119archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15120STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15121RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15122old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15123old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15124old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15125lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15126CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15127CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15128compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15129GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15130lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15131lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15132lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15133lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15134lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15135lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15136nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15137lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15138lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15139objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15140MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15141lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15142lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15143lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15144lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15145lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15146need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15147MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15148DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15149NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15150LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15151OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15152OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15153libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15154shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15155extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15156archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15157enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15158export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15159whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15160compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15161old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15162old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15163archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15164archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15165module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15166module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15167with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15168allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15169no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15170hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15171hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15172hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15173hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15174hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15175hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15176hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15177inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15178link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15179always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15180export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15181exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15182include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15183prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15184postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15185file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15186variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15187need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15188need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15189version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15190runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15191shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15192shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15193libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15194library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15195soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15196install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15197postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15198postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15199finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15200finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15201hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15202sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15203configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15204configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15205hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15206enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15207enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15208enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15209old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15210striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15211
15212LTCC='$LTCC'
15213LTCFLAGS='$LTCFLAGS'
15214compiler='$compiler_DEFAULT'
15215
15216# A function that is used when there is no print builtin or printf.
15217func_fallback_echo ()
15218{
15219  eval 'cat <<_LTECHO_EOF
15220\$1
15221_LTECHO_EOF'
15222}
15223
15224# Quote evaled strings.
15225for var in AS \
15226DLLTOOL \
15227OBJDUMP \
15228SHELL \
15229ECHO \
15230PATH_SEPARATOR \
15231SED \
15232GREP \
15233EGREP \
15234FGREP \
15235LD \
15236NM \
15237LN_S \
15238lt_SP2NL \
15239lt_NL2SP \
15240reload_flag \
15241deplibs_check_method \
15242file_magic_cmd \
15243file_magic_glob \
15244want_nocaseglob \
15245sharedlib_from_linklib_cmd \
15246AR \
15247AR_FLAGS \
15248archiver_list_spec \
15249STRIP \
15250RANLIB \
15251CC \
15252CFLAGS \
15253compiler \
15254lt_cv_sys_global_symbol_pipe \
15255lt_cv_sys_global_symbol_to_cdecl \
15256lt_cv_sys_global_symbol_to_import \
15257lt_cv_sys_global_symbol_to_c_name_address \
15258lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15259lt_cv_nm_interface \
15260nm_file_list_spec \
15261lt_cv_truncate_bin \
15262lt_prog_compiler_no_builtin_flag \
15263lt_prog_compiler_pic \
15264lt_prog_compiler_wl \
15265lt_prog_compiler_static \
15266lt_cv_prog_compiler_c_o \
15267need_locks \
15268MANIFEST_TOOL \
15269DSYMUTIL \
15270NMEDIT \
15271LIPO \
15272OTOOL \
15273OTOOL64 \
15274shrext_cmds \
15275export_dynamic_flag_spec \
15276whole_archive_flag_spec \
15277compiler_needs_object \
15278with_gnu_ld \
15279allow_undefined_flag \
15280no_undefined_flag \
15281hardcode_libdir_flag_spec \
15282hardcode_libdir_separator \
15283exclude_expsyms \
15284include_expsyms \
15285file_list_spec \
15286variables_saved_for_relink \
15287libname_spec \
15288library_names_spec \
15289soname_spec \
15290install_override_mode \
15291finish_eval \
15292old_striplib \
15293striplib; do
15294    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15295    *[\\\\\\\`\\"\\\$]*)
15296      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15297      ;;
15298    *)
15299      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15300      ;;
15301    esac
15302done
15303
15304# Double-quote double-evaled strings.
15305for var in reload_cmds \
15306old_postinstall_cmds \
15307old_postuninstall_cmds \
15308old_archive_cmds \
15309extract_expsyms_cmds \
15310old_archive_from_new_cmds \
15311old_archive_from_expsyms_cmds \
15312archive_cmds \
15313archive_expsym_cmds \
15314module_cmds \
15315module_expsym_cmds \
15316export_symbols_cmds \
15317prelink_cmds \
15318postlink_cmds \
15319postinstall_cmds \
15320postuninstall_cmds \
15321finish_cmds \
15322sys_lib_search_path_spec \
15323configure_time_dlsearch_path \
15324configure_time_lt_sys_library_path; do
15325    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15326    *[\\\\\\\`\\"\\\$]*)
15327      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15328      ;;
15329    *)
15330      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15331      ;;
15332    esac
15333done
15334
15335ac_aux_dir='$ac_aux_dir'
15336
15337# See if we are running on zsh, and set the options that allow our
15338# commands through without removal of \ escapes INIT.
15339if test -n "\${ZSH_VERSION+set}"; then
15340   setopt NO_GLOB_SUBST
15341fi
15342
15343
15344    PACKAGE='$PACKAGE'
15345    VERSION='$VERSION'
15346    RM='$RM'
15347    ofile='$ofile'
15348
15349
15350
15351_LTEOF
15352
15353cat >>"$CONFIG_LT" <<\_LTEOF
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
15355$as_echo "$as_me: creating $ofile" >&6;}
15356
15357
15358    # See if we are running on zsh, and set the options that allow our
15359    # commands through without removal of \ escapes.
15360    if test -n "${ZSH_VERSION+set}"; then
15361      setopt NO_GLOB_SUBST
15362    fi
15363
15364    cfgfile=${ofile}T
15365    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15366    $RM "$cfgfile"
15367
15368    cat <<_LT_EOF >> "$cfgfile"
15369#! $SHELL
15370# Generated automatically by $as_me ($PACKAGE) $VERSION
15371# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15372# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15373
15374# Provide generalized library-building support services.
15375# Written by Gordon Matzigkeit, 1996
15376
15377# Copyright (C) 2014 Free Software Foundation, Inc.
15378# This is free software; see the source for copying conditions.  There is NO
15379# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15380
15381# GNU Libtool is free software; you can redistribute it and/or modify
15382# it under the terms of the GNU General Public License as published by
15383# the Free Software Foundation; either version 2 of of the License, or
15384# (at your option) any later version.
15385#
15386# As a special exception to the GNU General Public License, if you
15387# distribute this file as part of a program or library that is built
15388# using GNU Libtool, you may include this file under the  same
15389# distribution terms that you use for the rest of that program.
15390#
15391# GNU Libtool is distributed in the hope that it will be useful, but
15392# WITHOUT ANY WARRANTY; without even the implied warranty of
15393# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15394# GNU General Public License for more details.
15395#
15396# You should have received a copy of the GNU General Public License
15397# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15398
15399
15400# The names of the tagged configurations supported by this script.
15401available_tags=''
15402
15403# Configured defaults for sys_lib_dlsearch_path munging.
15404: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15405
15406# ### BEGIN LIBTOOL CONFIG
15407
15408# Which release of libtool.m4 was used?
15409macro_version=$macro_version
15410macro_revision=$macro_revision
15411
15412# Assembler program.
15413AS=$lt_AS
15414
15415# DLL creation program.
15416DLLTOOL=$lt_DLLTOOL
15417
15418# Object dumper program.
15419OBJDUMP=$lt_OBJDUMP
15420
15421# Whether or not to build shared libraries.
15422build_libtool_libs=$enable_shared
15423
15424# Whether or not to build static libraries.
15425build_old_libs=$enable_static
15426
15427# What type of objects to build.
15428pic_mode=$pic_mode
15429
15430# Whether or not to optimize for fast installation.
15431fast_install=$enable_fast_install
15432
15433# Shared archive member basename,for filename based shared library versioning on AIX.
15434shared_archive_member_spec=$shared_archive_member_spec
15435
15436# Shell to use when invoking shell scripts.
15437SHELL=$lt_SHELL
15438
15439# An echo program that protects backslashes.
15440ECHO=$lt_ECHO
15441
15442# The PATH separator for the build system.
15443PATH_SEPARATOR=$lt_PATH_SEPARATOR
15444
15445# The host system.
15446host_alias=$host_alias
15447host=$host
15448host_os=$host_os
15449
15450# The build system.
15451build_alias=$build_alias
15452build=$build
15453build_os=$build_os
15454
15455# A sed program that does not truncate output.
15456SED=$lt_SED
15457
15458# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15459Xsed="\$SED -e 1s/^X//"
15460
15461# A grep program that handles long lines.
15462GREP=$lt_GREP
15463
15464# An ERE matcher.
15465EGREP=$lt_EGREP
15466
15467# A literal string matcher.
15468FGREP=$lt_FGREP
15469
15470# A BSD- or MS-compatible name lister.
15471NM=$lt_NM
15472
15473# Whether we need soft or hard links.
15474LN_S=$lt_LN_S
15475
15476# What is the maximum length of a command?
15477max_cmd_len=$max_cmd_len
15478
15479# Object file suffix (normally "o").
15480objext=$ac_objext
15481
15482# Executable file suffix (normally "").
15483exeext=$exeext
15484
15485# whether the shell understands "unset".
15486lt_unset=$lt_unset
15487
15488# turn spaces into newlines.
15489SP2NL=$lt_lt_SP2NL
15490
15491# turn newlines into spaces.
15492NL2SP=$lt_lt_NL2SP
15493
15494# convert \$build file names to \$host format.
15495to_host_file_cmd=$lt_cv_to_host_file_cmd
15496
15497# convert \$build files to toolchain format.
15498to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15499
15500# Method to check whether dependent libraries are shared objects.
15501deplibs_check_method=$lt_deplibs_check_method
15502
15503# Command to use when deplibs_check_method = "file_magic".
15504file_magic_cmd=$lt_file_magic_cmd
15505
15506# How to find potential files when deplibs_check_method = "file_magic".
15507file_magic_glob=$lt_file_magic_glob
15508
15509# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15510want_nocaseglob=$lt_want_nocaseglob
15511
15512# Command to associate shared and link libraries.
15513sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15514
15515# The archiver.
15516AR=$lt_AR
15517
15518# Flags to create an archive.
15519AR_FLAGS=$lt_AR_FLAGS
15520
15521# How to feed a file listing to the archiver.
15522archiver_list_spec=$lt_archiver_list_spec
15523
15524# A symbol stripping program.
15525STRIP=$lt_STRIP
15526
15527# Commands used to install an old-style archive.
15528RANLIB=$lt_RANLIB
15529old_postinstall_cmds=$lt_old_postinstall_cmds
15530old_postuninstall_cmds=$lt_old_postuninstall_cmds
15531
15532# Whether to use a lock for old archive extraction.
15533lock_old_archive_extraction=$lock_old_archive_extraction
15534
15535# A C compiler.
15536LTCC=$lt_CC
15537
15538# LTCC compiler flags.
15539LTCFLAGS=$lt_CFLAGS
15540
15541# Take the output of nm and produce a listing of raw symbols and C names.
15542global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15543
15544# Transform the output of nm in a proper C declaration.
15545global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15546
15547# Transform the output of nm into a list of symbols to manually relocate.
15548global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15549
15550# Transform the output of nm in a C name address pair.
15551global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15552
15553# Transform the output of nm in a C name address pair when lib prefix is needed.
15554global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15555
15556# The name lister interface.
15557nm_interface=$lt_lt_cv_nm_interface
15558
15559# Specify filename containing input files for \$NM.
15560nm_file_list_spec=$lt_nm_file_list_spec
15561
15562# The root where to search for dependent libraries,and where our libraries should be installed.
15563lt_sysroot=$lt_sysroot
15564
15565# Command to truncate a binary pipe.
15566lt_truncate_bin=$lt_lt_cv_truncate_bin
15567
15568# The name of the directory that contains temporary libtool files.
15569objdir=$objdir
15570
15571# Used to examine libraries when file_magic_cmd begins with "file".
15572MAGIC_CMD=$MAGIC_CMD
15573
15574# Must we lock files when doing compilation?
15575need_locks=$lt_need_locks
15576
15577# Manifest tool.
15578MANIFEST_TOOL=$lt_MANIFEST_TOOL
15579
15580# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15581DSYMUTIL=$lt_DSYMUTIL
15582
15583# Tool to change global to local symbols on Mac OS X.
15584NMEDIT=$lt_NMEDIT
15585
15586# Tool to manipulate fat objects and archives on Mac OS X.
15587LIPO=$lt_LIPO
15588
15589# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15590OTOOL=$lt_OTOOL
15591
15592# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15593OTOOL64=$lt_OTOOL64
15594
15595# Old archive suffix (normally "a").
15596libext=$libext
15597
15598# Shared library suffix (normally ".so").
15599shrext_cmds=$lt_shrext_cmds
15600
15601# The commands to extract the exported symbol list from a shared archive.
15602extract_expsyms_cmds=$lt_extract_expsyms_cmds
15603
15604# Variables whose values should be saved in libtool wrapper scripts and
15605# restored at link time.
15606variables_saved_for_relink=$lt_variables_saved_for_relink
15607
15608# Do we need the "lib" prefix for modules?
15609need_lib_prefix=$need_lib_prefix
15610
15611# Do we need a version for libraries?
15612need_version=$need_version
15613
15614# Library versioning type.
15615version_type=$version_type
15616
15617# Shared library runtime path variable.
15618runpath_var=$runpath_var
15619
15620# Shared library path variable.
15621shlibpath_var=$shlibpath_var
15622
15623# Is shlibpath searched before the hard-coded library search path?
15624shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15625
15626# Format of library name prefix.
15627libname_spec=$lt_libname_spec
15628
15629# List of archive names.  First name is the real one, the rest are links.
15630# The last name is the one that the linker finds with -lNAME
15631library_names_spec=$lt_library_names_spec
15632
15633# The coded name of the library, if different from the real name.
15634soname_spec=$lt_soname_spec
15635
15636# Permission mode override for installation of shared libraries.
15637install_override_mode=$lt_install_override_mode
15638
15639# Command to use after installation of a shared archive.
15640postinstall_cmds=$lt_postinstall_cmds
15641
15642# Command to use after uninstallation of a shared archive.
15643postuninstall_cmds=$lt_postuninstall_cmds
15644
15645# Commands used to finish a libtool library installation in a directory.
15646finish_cmds=$lt_finish_cmds
15647
15648# As "finish_cmds", except a single script fragment to be evaled but
15649# not shown.
15650finish_eval=$lt_finish_eval
15651
15652# Whether we should hardcode library paths into libraries.
15653hardcode_into_libs=$hardcode_into_libs
15654
15655# Compile-time system search path for libraries.
15656sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15657
15658# Detected run-time system search path for libraries.
15659sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15660
15661# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15662configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15663
15664# Whether dlopen is supported.
15665dlopen_support=$enable_dlopen
15666
15667# Whether dlopen of programs is supported.
15668dlopen_self=$enable_dlopen_self
15669
15670# Whether dlopen of statically linked programs is supported.
15671dlopen_self_static=$enable_dlopen_self_static
15672
15673# Commands to strip libraries.
15674old_striplib=$lt_old_striplib
15675striplib=$lt_striplib
15676
15677
15678# The linker used to build libraries.
15679LD=$lt_LD
15680
15681# How to create reloadable object files.
15682reload_flag=$lt_reload_flag
15683reload_cmds=$lt_reload_cmds
15684
15685# Commands used to build an old-style archive.
15686old_archive_cmds=$lt_old_archive_cmds
15687
15688# A language specific compiler.
15689CC=$lt_compiler
15690
15691# Is the compiler the GNU compiler?
15692with_gcc=$GCC
15693
15694# Compiler flag to turn off builtin functions.
15695no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15696
15697# Additional compiler flags for building library objects.
15698pic_flag=$lt_lt_prog_compiler_pic
15699
15700# How to pass a linker flag through the compiler.
15701wl=$lt_lt_prog_compiler_wl
15702
15703# Compiler flag to prevent dynamic linking.
15704link_static_flag=$lt_lt_prog_compiler_static
15705
15706# Does compiler simultaneously support -c and -o options?
15707compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15708
15709# Whether or not to add -lc for building shared libraries.
15710build_libtool_need_lc=$archive_cmds_need_lc
15711
15712# Whether or not to disallow shared libs when runtime libs are static.
15713allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15714
15715# Compiler flag to allow reflexive dlopens.
15716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15717
15718# Compiler flag to generate shared objects directly from archives.
15719whole_archive_flag_spec=$lt_whole_archive_flag_spec
15720
15721# Whether the compiler copes with passing no objects directly.
15722compiler_needs_object=$lt_compiler_needs_object
15723
15724# Create an old-style archive from a shared archive.
15725old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15726
15727# Create a temporary old-style archive to link instead of a shared archive.
15728old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15729
15730# Commands used to build a shared archive.
15731archive_cmds=$lt_archive_cmds
15732archive_expsym_cmds=$lt_archive_expsym_cmds
15733
15734# Commands used to build a loadable module if different from building
15735# a shared archive.
15736module_cmds=$lt_module_cmds
15737module_expsym_cmds=$lt_module_expsym_cmds
15738
15739# Whether we are building with GNU ld or not.
15740with_gnu_ld=$lt_with_gnu_ld
15741
15742# Flag that allows shared libraries with undefined symbols to be built.
15743allow_undefined_flag=$lt_allow_undefined_flag
15744
15745# Flag that enforces no undefined symbols.
15746no_undefined_flag=$lt_no_undefined_flag
15747
15748# Flag to hardcode \$libdir into a binary during linking.
15749# This must work even if \$libdir does not exist
15750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15751
15752# Whether we need a single "-rpath" flag with a separated argument.
15753hardcode_libdir_separator=$lt_hardcode_libdir_separator
15754
15755# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15756# DIR into the resulting binary.
15757hardcode_direct=$hardcode_direct
15758
15759# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15760# DIR into the resulting binary and the resulting library dependency is
15761# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15762# library is relocated.
15763hardcode_direct_absolute=$hardcode_direct_absolute
15764
15765# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15766# into the resulting binary.
15767hardcode_minus_L=$hardcode_minus_L
15768
15769# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15770# into the resulting binary.
15771hardcode_shlibpath_var=$hardcode_shlibpath_var
15772
15773# Set to "yes" if building a shared library automatically hardcodes DIR
15774# into the library and all subsequent libraries and executables linked
15775# against it.
15776hardcode_automatic=$hardcode_automatic
15777
15778# Set to yes if linker adds runtime paths of dependent libraries
15779# to runtime path list.
15780inherit_rpath=$inherit_rpath
15781
15782# Whether libtool must link a program against all its dependency libraries.
15783link_all_deplibs=$link_all_deplibs
15784
15785# Set to "yes" if exported symbols are required.
15786always_export_symbols=$always_export_symbols
15787
15788# The commands to list exported symbols.
15789export_symbols_cmds=$lt_export_symbols_cmds
15790
15791# Symbols that should not be listed in the preloaded symbols.
15792exclude_expsyms=$lt_exclude_expsyms
15793
15794# Symbols that must always be exported.
15795include_expsyms=$lt_include_expsyms
15796
15797# Commands necessary for linking programs (against libraries) with templates.
15798prelink_cmds=$lt_prelink_cmds
15799
15800# Commands necessary for finishing linking programs.
15801postlink_cmds=$lt_postlink_cmds
15802
15803# Specify filename containing input files.
15804file_list_spec=$lt_file_list_spec
15805
15806# How to hardcode a shared library path into an executable.
15807hardcode_action=$hardcode_action
15808
15809# ### END LIBTOOL CONFIG
15810
15811_LT_EOF
15812
15813    cat <<'_LT_EOF' >> "$cfgfile"
15814
15815# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15816
15817# func_munge_path_list VARIABLE PATH
15818# -----------------------------------
15819# VARIABLE is name of variable containing _space_ separated list of
15820# directories to be munged by the contents of PATH, which is string
15821# having a format:
15822# "DIR[:DIR]:"
15823#       string "DIR[ DIR]" will be prepended to VARIABLE
15824# ":DIR[:DIR]"
15825#       string "DIR[ DIR]" will be appended to VARIABLE
15826# "DIRP[:DIRP]::[DIRA:]DIRA"
15827#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15828#       "DIRA[ DIRA]" will be appended to VARIABLE
15829# "DIR[:DIR]"
15830#       VARIABLE will be replaced by "DIR[ DIR]"
15831func_munge_path_list ()
15832{
15833    case x$2 in
15834    x)
15835        ;;
15836    *:)
15837        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15838        ;;
15839    x:*)
15840        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15841        ;;
15842    *::*)
15843        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15844        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15845        ;;
15846    *)
15847        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15848        ;;
15849    esac
15850}
15851
15852
15853# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15854func_cc_basename ()
15855{
15856    for cc_temp in $*""; do
15857      case $cc_temp in
15858        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15859        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15860        \-*) ;;
15861        *) break;;
15862      esac
15863    done
15864    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15865}
15866
15867
15868# ### END FUNCTIONS SHARED WITH CONFIGURE
15869
15870_LT_EOF
15871
15872  case $host_os in
15873  aix3*)
15874    cat <<\_LT_EOF >> "$cfgfile"
15875# AIX sometimes has problems with the GCC collect2 program.  For some
15876# reason, if we set the COLLECT_NAMES environment variable, the problems
15877# vanish in a puff of smoke.
15878if test set != "${COLLECT_NAMES+set}"; then
15879  COLLECT_NAMES=
15880  export COLLECT_NAMES
15881fi
15882_LT_EOF
15883    ;;
15884  esac
15885
15886
15887ltmain=$ac_aux_dir/ltmain.sh
15888
15889
15890  # We use sed instead of cat because bash on DJGPP gets confused if
15891  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15892  # text mode, it properly converts lines to CR/LF.  This bash problem
15893  # is reportedly fixed, but why not run on old versions too?
15894  sed '$q' "$ltmain" >> "$cfgfile" \
15895     || (rm -f "$cfgfile"; exit 1)
15896
15897   mv -f "$cfgfile" "$ofile" ||
15898    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15899  chmod +x "$ofile"
15900
15901
15902as_fn_exit 0
15903_LTEOF
15904chmod +x "$CONFIG_LT"
15905
15906# configure is writing to config.log, but config.lt does its own redirection,
15907# appending to config.log, which fails on DOS, as config.log is still kept
15908# open by configure.  Here we exec the FD to /dev/null, effectively closing
15909# config.log, so it can be properly (re)opened and appended to by config.lt.
15910lt_cl_success=:
15911test yes = "$silent" &&
15912  lt_config_lt_args="$lt_config_lt_args --quiet"
15913exec 5>/dev/null
15914$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
15915exec 5>>config.log
15916$lt_cl_success || as_fn_exit 1
15917
15918ac_ext=c
15919ac_cpp='$CPP $CPPFLAGS'
15920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15922ac_compiler_gnu=$ac_cv_c_compiler_gnu
15923ac_link="./libtool --mode=link --tag=CC $ac_link"
15924
15925if test -n "$ac_tool_prefix"; then
15926  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15927set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15929$as_echo_n "checking for $ac_word... " >&6; }
15930if ${ac_cv_prog_PKG_CONFIG+:} false; then :
15931  $as_echo_n "(cached) " >&6
15932else
15933  if test -n "$PKG_CONFIG"; then
15934  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
15935else
15936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937for as_dir in $PATH
15938do
15939  IFS=$as_save_IFS
15940  test -z "$as_dir" && as_dir=.
15941    for ac_exec_ext in '' $ac_executable_extensions; do
15942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15943    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
15944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15945    break 2
15946  fi
15947done
15948  done
15949IFS=$as_save_IFS
15950
15951fi
15952fi
15953PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
15954if test -n "$PKG_CONFIG"; then
15955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15956$as_echo "$PKG_CONFIG" >&6; }
15957else
15958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959$as_echo "no" >&6; }
15960fi
15961
15962
15963fi
15964if test -z "$ac_cv_prog_PKG_CONFIG"; then
15965  ac_ct_PKG_CONFIG=$PKG_CONFIG
15966  # Extract the first word of "pkg-config", so it can be a program name with args.
15967set dummy pkg-config; ac_word=$2
15968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15969$as_echo_n "checking for $ac_word... " >&6; }
15970if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
15971  $as_echo_n "(cached) " >&6
15972else
15973  if test -n "$ac_ct_PKG_CONFIG"; then
15974  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
15975else
15976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977for as_dir in $PATH
15978do
15979  IFS=$as_save_IFS
15980  test -z "$as_dir" && as_dir=.
15981    for ac_exec_ext in '' $ac_executable_extensions; do
15982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
15984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985    break 2
15986  fi
15987done
15988  done
15989IFS=$as_save_IFS
15990
15991fi
15992fi
15993ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
15994if test -n "$ac_ct_PKG_CONFIG"; then
15995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
15996$as_echo "$ac_ct_PKG_CONFIG" >&6; }
15997else
15998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999$as_echo "no" >&6; }
16000fi
16001
16002  if test "x$ac_ct_PKG_CONFIG" = x; then
16003    PKG_CONFIG="false"
16004  else
16005    case $cross_compiling:$ac_tool_warned in
16006yes:)
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16009ac_tool_warned=yes ;;
16010esac
16011    PKG_CONFIG=$ac_ct_PKG_CONFIG
16012  fi
16013else
16014  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
16015fi
16016
16017## _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags
16018
16019# Check whether --with-system-kpathsea was given.
16020if test "${with_system_kpathsea+set}" = set; then :
16021  withval=$with_system_kpathsea;
16022fi
16023if test "x$with_system_kpathsea" = xyes; then
16024  if $PKG_CONFIG kpathsea; then
16025  KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
16026  KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
16027elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
16028  as_fn_error $? "did not find kpathsea" "$LINENO" 5
16029fi
16030else
16031  KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
16032  KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
16033  KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
16034  KPATHSEA_RULE='# Rebuild libkpathsea
16035$(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
16036	cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
16037${top_builddir}/../kpathsea/paths.h:
16038	cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
16039fi
16040
16041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
16042$as_echo_n "checking if libkpathsea supports debugging... " >&6; }
16043if ${kpse_cv_kpse_debug+:} false; then :
16044  $as_echo_n "(cached) " >&6
16045else
16046  eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
16047eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
16048
16049                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050/* end confdefs.h.  */
16051#include <kpathsea/kpathsea.h>
16052int
16053main ()
16054{
16055FILE *f = fopen("f", "r")
16056  ;
16057  return 0;
16058}
16059_ACEOF
16060if ac_fn_c_try_link "$LINENO"; then :
16061  kpse_cv_kpse_debug=yes
16062else
16063  kpse_cv_kpse_debug=no
16064fi
16065rm -f core conftest.err conftest.$ac_objext \
16066    conftest$ac_exeext conftest.$ac_ext
16067                CPPFLAGS=$kpse_save_CPPFLAGS
16068LIBS=$kpse_save_LIBS
16069
16070fi
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
16072$as_echo "$kpse_cv_kpse_debug" >&6; }
16073if test "x$kpse_cv_kpse_debug" != xyes; then :
16074  KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
16075fi
16076
16077## _KPSE_LIB_FLAGS: Setup zlib (-lz) flags
16078
16079# Check whether --with-system-zlib was given.
16080if test "${with_system_zlib+set}" = set; then :
16081  withval=$with_system_zlib;
16082fi
16083
16084# Check whether --with-zlib-includes was given.
16085if test "${with_zlib_includes+set}" = set; then :
16086  withval=$with_zlib_includes;
16087fi
16088
16089# Check whether --with-zlib-libdir was given.
16090if test "${with_zlib_libdir+set}" = set; then :
16091  withval=$with_zlib_libdir;
16092fi
16093if test "x$with_system_zlib" = xyes; then
16094  if test "x$with_zlib_includes" != x && test "x$with_zlib_includes" != xyes; then
16095  ZLIB_INCLUDES="-I$with_zlib_includes"
16096fi
16097ZLIB_LIBS="-lz"
16098if test "x$with_zlib_libdir" != x && test "x$with_zlib_libdir" != xyes; then
16099  ZLIB_LIBS="-L$with_zlib_libdir $ZLIB_LIBS"
16100fi
16101else
16102  ZLIB_INCLUDES="-I$kpse_BLD/libs/zlib/include"
16103  ZLIB_LIBS="$kpse_BLD/libs/zlib/libz.a"
16104  ZLIB_DEPEND='${top_builddir}/../../libs/zlib/libz.a'
16105  ZLIB_RULE='# Rebuild libz
16106$(ZLIB_DEPEND): ${top_builddir}/../../libs/zlib/include/zconf.h
16107	cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild
16108${top_builddir}/../../libs/zlib/include/zconf.h:
16109	cd ${top_builddir}/../../libs/zlib && $(MAKE) $(AM_MAKEFLAGS) rebuild'
16110fi
16111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if <zlib.h> defines 'z_const'" >&5
16112$as_echo_n "checking if <zlib.h> defines 'z_const'... " >&6; }
16113if ${kpse_cv_have_decl_z_const+:} false; then :
16114  $as_echo_n "(cached) " >&6
16115else
16116  eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
16117eval LIBS=\"$ZLIB_LIBS \$LIBS\"
16118
16119                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120/* end confdefs.h.  */
16121#include <zlib.h>
16122int
16123main ()
16124{
16125z_const char * foo();
16126  ;
16127  return 0;
16128}
16129_ACEOF
16130if ac_fn_c_try_compile "$LINENO"; then :
16131  kpse_cv_have_decl_z_const=yes
16132else
16133  kpse_cv_have_decl_z_const=no
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136                CPPFLAGS=$kpse_save_CPPFLAGS
16137LIBS=$kpse_save_LIBS
16138
16139fi
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_decl_z_const" >&5
16141$as_echo "$kpse_cv_have_decl_z_const" >&6; }
16142case $kpse_cv_have_decl_z_const in #(
16143  yes) :
16144
16145$as_echo "#define ZLIB_CONST 1" >>confdefs.h
16146 ;; #(
16147  *) :
16148
16149$as_echo "#define z_const /**/" >>confdefs.h
16150 ;;
16151esac
16152
16153## _KPSE_LIB_FLAGS: Setup libpng (-lpng) flags
16154
16155# Check whether --with-system-libpng was given.
16156if test "${with_system_libpng+set}" = set; then :
16157  withval=$with_system_libpng;
16158fi
16159if test "x$with_system_libpng" = xyes; then
16160  if $PKG_CONFIG libpng; then
16161  LIBPNG_INCLUDES=`$PKG_CONFIG libpng --cflags`
16162  LIBPNG_LIBS=`$PKG_CONFIG libpng --libs`
16163elif test "x$need_libpng:$with_system_libpng" = xyes:yes; then
16164  as_fn_error $? "did not find libpng" "$LINENO" 5
16165fi
16166else
16167  LIBPNG_INCLUDES="-I$kpse_BLD/libs/libpng/include"
16168  LIBPNG_LIBS="$kpse_BLD/libs/libpng/libpng.a"
16169  LIBPNG_DEPEND='${top_builddir}/../../libs/libpng/libpng.a'
16170  LIBPNG_RULE='# Rebuild libpng
16171$(LIBPNG_DEPEND): ${top_builddir}/../../libs/libpng/include/png.h
16172	cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild
16173${top_builddir}/../../libs/libpng/include/png.h:
16174	cd ${top_builddir}/../../libs/libpng && $(MAKE) $(AM_MAKEFLAGS) rebuild'
16175fi
16176
16177## _KPSE_LIB_FLAGS: Setup freetype2 (-lfreetype) flags
16178
16179# Check whether --with-system-freetype2 was given.
16180if test "${with_system_freetype2+set}" = set; then :
16181  withval=$with_system_freetype2;
16182fi
16183if test "x$with_system_freetype2" = xyes; then
16184  if test -n "$ac_tool_prefix"; then
16185  # Extract the first word of "${ac_tool_prefix}freetype-config", so it can be a program name with args.
16186set dummy ${ac_tool_prefix}freetype-config; ac_word=$2
16187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16188$as_echo_n "checking for $ac_word... " >&6; }
16189if ${ac_cv_prog_FT2_CONFIG+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  if test -n "$FT2_CONFIG"; then
16193  ac_cv_prog_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test.
16194else
16195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196for as_dir in $PATH
16197do
16198  IFS=$as_save_IFS
16199  test -z "$as_dir" && as_dir=.
16200    for ac_exec_ext in '' $ac_executable_extensions; do
16201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202    ac_cv_prog_FT2_CONFIG="${ac_tool_prefix}freetype-config"
16203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16204    break 2
16205  fi
16206done
16207  done
16208IFS=$as_save_IFS
16209
16210fi
16211fi
16212FT2_CONFIG=$ac_cv_prog_FT2_CONFIG
16213if test -n "$FT2_CONFIG"; then
16214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
16215$as_echo "$FT2_CONFIG" >&6; }
16216else
16217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218$as_echo "no" >&6; }
16219fi
16220
16221
16222fi
16223if test -z "$ac_cv_prog_FT2_CONFIG"; then
16224  ac_ct_FT2_CONFIG=$FT2_CONFIG
16225  # Extract the first word of "freetype-config", so it can be a program name with args.
16226set dummy freetype-config; ac_word=$2
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228$as_echo_n "checking for $ac_word... " >&6; }
16229if ${ac_cv_prog_ac_ct_FT2_CONFIG+:} false; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  if test -n "$ac_ct_FT2_CONFIG"; then
16233  ac_cv_prog_ac_ct_FT2_CONFIG="$ac_ct_FT2_CONFIG" # Let the user override the test.
16234else
16235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236for as_dir in $PATH
16237do
16238  IFS=$as_save_IFS
16239  test -z "$as_dir" && as_dir=.
16240    for ac_exec_ext in '' $ac_executable_extensions; do
16241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16242    ac_cv_prog_ac_ct_FT2_CONFIG="freetype-config"
16243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16244    break 2
16245  fi
16246done
16247  done
16248IFS=$as_save_IFS
16249
16250fi
16251fi
16252ac_ct_FT2_CONFIG=$ac_cv_prog_ac_ct_FT2_CONFIG
16253if test -n "$ac_ct_FT2_CONFIG"; then
16254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FT2_CONFIG" >&5
16255$as_echo "$ac_ct_FT2_CONFIG" >&6; }
16256else
16257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258$as_echo "no" >&6; }
16259fi
16260
16261  if test "x$ac_ct_FT2_CONFIG" = x; then
16262    FT2_CONFIG="false"
16263  else
16264    case $cross_compiling:$ac_tool_warned in
16265yes:)
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16268ac_tool_warned=yes ;;
16269esac
16270    FT2_CONFIG=$ac_ct_FT2_CONFIG
16271  fi
16272else
16273  FT2_CONFIG="$ac_cv_prog_FT2_CONFIG"
16274fi
16275if $FT2_CONFIG --ftversion >/dev/null 2>&1; then
16276  FREETYPE2_INCLUDES=`pkg-config freetype2 --cflags`
16277  FREETYPE2_LIBS=`pkg-config freetype2 --libs`
16278elif test "x$need_freetype2:$with_system_freetype2" = xyes:yes; then
16279  as_fn_error $? "did not find freetype-config required for system freetype2 library" "$LINENO" 5
16280fi
16281else
16282  FREETYPE2_INCLUDES="-I$kpse_BLD/libs/freetype2/freetype2"
16283  FREETYPE2_LIBS="$kpse_BLD/libs/freetype2/libfreetype.a"
16284  FREETYPE2_DEPEND='${top_builddir}/../../libs/freetype2/libfreetype.a'
16285  FREETYPE2_RULE='# Rebuild libfreetype
16286$(FREETYPE2_DEPEND): ${top_builddir}/../../libs/freetype2/freetype2/ft2build.h
16287	cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild
16288${top_builddir}/../../libs/freetype2/freetype2/ft2build.h:
16289	cd ${top_builddir}/../../libs/freetype2 && $(MAKE) $(AM_MAKEFLAGS) rebuild'
16290fi
16291
16292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
16293$as_echo_n "checking for native WIN32 or MINGW32... " >&6; }
16294if ${kpse_cv_have_win32+:} false; then :
16295  $as_echo_n "(cached) " >&6
16296else
16297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298/* end confdefs.h.  */
16299#ifndef WIN32
16300  choke me
16301#endif
16302int
16303main ()
16304{
16305
16306  ;
16307  return 0;
16308}
16309_ACEOF
16310if ac_fn_c_try_compile "$LINENO"; then :
16311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312/* end confdefs.h.  */
16313#ifndef __MINGW32__
16314  choke me
16315#endif
16316int
16317main ()
16318{
16319
16320  ;
16321  return 0;
16322}
16323_ACEOF
16324if ac_fn_c_try_compile "$LINENO"; then :
16325  kpse_cv_have_win32=mingw32
16326else
16327  kpse_cv_have_win32=native
16328fi
16329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330else
16331  kpse_cv_have_win32=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16334fi
16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
16336$as_echo "$kpse_cv_have_win32" >&6; }
16337
16338## _KPSE_LIB_FLAGS: Setup gd (-lgd) flags
16339
16340# Check whether --with-system-gd was given.
16341if test "${with_system_gd+set}" = set; then :
16342  withval=$with_system_gd;
16343fi
16344
16345# Check whether --with-gd-includes was given.
16346if test "${with_gd_includes+set}" = set; then :
16347  withval=$with_gd_includes;
16348fi
16349
16350# Check whether --with-gd-libdir was given.
16351if test "${with_gd_libdir+set}" = set; then :
16352  withval=$with_gd_libdir;
16353fi
16354if test "x$with_system_gd" = xyes; then
16355  if test "x$with_gd_includes" != x && test "x$with_gd_includes" != xyes; then
16356  GD_INCLUDES="-I$with_gd_includes"
16357fi
16358GD_LIBS="-lgd"
16359if test "x$with_gd_libdir" != x && test "x$with_gd_libdir" != xyes; then
16360  GD_LIBS="-L$with_gd_libdir $GD_LIBS"
16361fi
16362else
16363  GD_INCLUDES="-I$kpse_BLD/libs/gd/include"
16364  GD_LIBS="$kpse_BLD/libs/gd/libgd.a"
16365  test "x$kpse_cv_have_win32" = xno || GD_INCLUDES="$GD_INCLUDES -DBGDWIN32 -DNONDLL"
16366  GD_DEPEND='${top_builddir}/../../libs/gd/libgd.a'
16367  GD_RULE='# Rebuild libgd
16368$(GD_DEPEND): ${top_builddir}/../../libs/gd/include/gd.h
16369	cd ${top_builddir}/../../libs/gd && $(MAKE) $(AM_MAKEFLAGS) rebuild
16370${top_builddir}/../../libs/gd/include/gd.h:
16371	cd ${top_builddir}/../../libs/gd && $(MAKE) $(AM_MAKEFLAGS) rebuild'
16372fi
16373
16374
16375# Assume we have freetype2.
16376have_ft2=yes
16377
16378if test "x$enable_build" != xno || test -f config.force; then
16379
16380# Checks for more libraries.
16381eval CPPFLAGS=\"$ZLIB_INCLUDES \$CPPFLAGS\"
16382eval LIBS=\"$ZLIB_LIBS \$LIBS\"
16383
16384ac_fn_c_check_func "$LINENO" "deflate" "ac_cv_func_deflate"
16385if test "x$ac_cv_func_deflate" = xyes; then :
16386
16387$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
16388
16389fi
16390
16391
16392eval CPPFLAGS=\"$LIBPNG_INCLUDES \$CPPFLAGS\"
16393eval LIBS=\"$LIBPNG_LIBS \$LIBS\"
16394
16395ac_fn_c_check_func "$LINENO" "png_read_image" "ac_cv_func_png_read_image"
16396if test "x$ac_cv_func_png_read_image" = xyes; then :
16397
16398$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
16399
16400else
16401  as_fn_error $? "cannot find/use libpng" "$LINENO" 5
16402fi
16403
16404
16405eval CPPFLAGS=\"$FREETYPE2_INCLUDES \$CPPFLAGS\"
16406eval LIBS=\"$FREETYPE2_LIBS \$LIBS\"
16407
16408ac_fn_c_check_func "$LINENO" "FT_Init_FreeType" "ac_cv_func_FT_Init_FreeType"
16409if test "x$ac_cv_func_FT_Init_FreeType" = xyes; then :
16410
16411$as_echo "#define HAVE_FT2 1" >>confdefs.h
16412
16413else
16414  have_ft2=no
16415fi
16416
16417
16418eval CPPFLAGS=\"$GD_INCLUDES \$CPPFLAGS\"
16419eval LIBS=\"$GD_LIBS \$LIBS\"
16420
16421ac_fn_c_check_func "$LINENO" "gdImageCreate" "ac_cv_func_gdImageCreate"
16422if test "x$ac_cv_func_gdImageCreate" = xyes; then :
16423
16424$as_echo "#define HAVE_LIBGD 1" >>confdefs.h
16425
16426else
16427  as_fn_error $? "cannot find/use gd
16428This drawing library can be downloaded at http://www.boutell.com/gd" "$LINENO" 5
16429fi
16430
16431
16432eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
16433eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
16434
16435ac_fn_c_check_func "$LINENO" "kpse_set_program_name" "ac_cv_func_kpse_set_program_name"
16436if test "x$ac_cv_func_kpse_set_program_name" = xyes; then :
16437
16438$as_echo "#define HAVE_LIBKPATHSEA 1" >>confdefs.h
16439
16440else
16441  as_fn_error $? "cannot find/use libkpathsea" "$LINENO" 5
16442fi
16443
16444
16445for ac_func in kpse_program_basename
16446do :
16447  ac_fn_c_check_func "$LINENO" "kpse_program_basename" "ac_cv_func_kpse_program_basename"
16448if test "x$ac_cv_func_kpse_program_basename" = xyes; then :
16449  cat >>confdefs.h <<_ACEOF
16450#define HAVE_KPSE_PROGRAM_BASENAME 1
16451_ACEOF
16452
16453fi
16454done
16455
16456
16457if test "x$kpse_cv_have_win32" != xno; then :
16458  for ac_func in texlive_gs_init
16459do :
16460  ac_fn_c_check_func "$LINENO" "texlive_gs_init" "ac_cv_func_texlive_gs_init"
16461if test "x$ac_cv_func_texlive_gs_init" = xyes; then :
16462  cat >>confdefs.h <<_ACEOF
16463#define HAVE_TEXLIVE_GS_INIT 1
16464_ACEOF
16465
16466fi
16467done
16468
16469fi
16470
16471
16472# We need enc, cmap, and sfd formats.
16473# Introduced together with opentype format (Dec 2003).
16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kpathsea declares the kpse_opentype_format" >&5
16475$as_echo_n "checking whether kpathsea declares the kpse_opentype_format... " >&6; }
16476if ${kpse_cv_have_opentype_format+:} false; then :
16477  $as_echo_n "(cached) " >&6
16478else
16479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481#include <kpathsea/kpathsea.h>
16482int
16483main ()
16484{
16485kpse_opentype_format
16486  ;
16487  return 0;
16488}
16489_ACEOF
16490if ac_fn_c_try_link "$LINENO"; then :
16491  kpse_cv_have_opentype_format=yes
16492else
16493  kpse_cv_have_opentype_format=no
16494fi
16495rm -f core conftest.err conftest.$ac_objext \
16496    conftest$ac_exeext conftest.$ac_ext
16497fi
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_opentype_format" >&5
16499$as_echo "$kpse_cv_have_opentype_format" >&6; }
16500if test "x$kpse_cv_have_opentype_format" = xyes; then :
16501
16502$as_echo "#define HAVE_KPSE_ENC_FORMATS 1" >>confdefs.h
16503
16504fi
16505
16506
16507# Checks for more header files.
16508for ac_header in gd.h png.h kpathsea/kpathsea.h
16509do :
16510  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16511ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16513  cat >>confdefs.h <<_ACEOF
16514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16515_ACEOF
16516
16517else
16518  as_fn_error $? "cannot find/use $ac_header" "$LINENO" 5
16519fi
16520
16521done
16522
16523
16524# Checks for more library functions.
16525for ac_func in gdImageCreateTrueColor gdImageCreateFromJpeg gdImagePngEx gdImageCreateFromPngPtr gdImageGif FT_Library_Version
16526do :
16527  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16529if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16530  cat >>confdefs.h <<_ACEOF
16531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16532_ACEOF
16533
16534fi
16535done
16536
16537
16538CPPFLAGS=$kpse_save_CPPFLAGS
16539LIBS=$kpse_save_LIBS
16540
16541
16542echo timestamp >config.force
16543
16544fi
16545
16546 if test "x$have_ft2" = xyes; then
16547  have_ft2_TRUE=
16548  have_ft2_FALSE='#'
16549else
16550  have_ft2_TRUE='#'
16551  have_ft2_FALSE=
16552fi
16553
16554 if test "x$ac_cv_func_gdImageGif" = xyes; then
16555  have_gif_TRUE=
16556  have_gif_FALSE='#'
16557else
16558  have_gif_TRUE='#'
16559  have_gif_FALSE=
16560fi
16561
16562
16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
16564** Configuration summary for $PACKAGE_STRING:
16565
16566   The -d (debug) switch is enabled:        $enable_debug
16567   Your gd is new enough (>=2.0) to enable
16568     the --truecolor switch, full alpha
16569     transparency, proper rescaling of
16570     included bitmaps, and jpeg inclusion:  $ac_cv_func_gdImageCreateTrueColor
16571   Your gd has jpeg inclusion enabled:      $ac_cv_func_gdImageCreateFromJpeg
16572   Your gd is new enough (>=2.0.12) to
16573     enable transparent backgrounds for EPS
16574     inclusion and the -z (compression)
16575     switch:                                $ac_cv_func_gdImagePngEx
16576   Your gd is new enough (>=2.0.21) to
16577     allow image creation from memory       $ac_cv_func_gdImageCreateFromPngPtr
16578   Your gd is new enough (>=2.0.28) to
16579     enable gif inclusion and output
16580     (dvigif):                              $ac_cv_func_gdImageGif
16581   FreeType font rendering available:       $ac_cv_func_FT_Init_FreeType
16582   Support for subfonts (CJK-LaTeX):        $ac_cv_func_FT_Init_FreeType
16583" >&5
16584$as_echo "
16585** Configuration summary for $PACKAGE_STRING:
16586
16587   The -d (debug) switch is enabled:        $enable_debug
16588   Your gd is new enough (>=2.0) to enable
16589     the --truecolor switch, full alpha
16590     transparency, proper rescaling of
16591     included bitmaps, and jpeg inclusion:  $ac_cv_func_gdImageCreateTrueColor
16592   Your gd has jpeg inclusion enabled:      $ac_cv_func_gdImageCreateFromJpeg
16593   Your gd is new enough (>=2.0.12) to
16594     enable transparent backgrounds for EPS
16595     inclusion and the -z (compression)
16596     switch:                                $ac_cv_func_gdImagePngEx
16597   Your gd is new enough (>=2.0.21) to
16598     allow image creation from memory       $ac_cv_func_gdImageCreateFromPngPtr
16599   Your gd is new enough (>=2.0.28) to
16600     enable gif inclusion and output
16601     (dvigif):                              $ac_cv_func_gdImageGif
16602   FreeType font rendering available:       $ac_cv_func_FT_Init_FreeType
16603   Support for subfonts (CJK-LaTeX):        $ac_cv_func_FT_Init_FreeType
16604" >&6; }
16605
16606ac_config_headers="$ac_config_headers config.h"
16607
16608
16609DVIPNG_TREE=dvipng-1.15
16610
16611
16612 if test "x$kpse_cv_have_win32" != xno; then
16613  WIN32_TRUE=
16614  WIN32_FALSE='#'
16615else
16616  WIN32_TRUE='#'
16617  WIN32_FALSE=
16618fi
16619
16620
16621 if test -r "$srcdir/../texlive/w32_wrapper/callexe.c"; then
16622  WIN32_CALL_TRUE=
16623  WIN32_CALL_FALSE='#'
16624else
16625  WIN32_CALL_TRUE='#'
16626  WIN32_CALL_FALSE=
16627fi
16628
16629if test -z "$WIN32_TRUE"; then :
16630  ac_config_links="$ac_config_links callexe.c:../texlive/w32_wrapper/callexe.c"
16631
16632fi
16633
16634
16635ac_config_files="$ac_config_files Makefile help/Makefile doc/Makefile"
16636
16637
16638cat >confcache <<\_ACEOF
16639# This file is a shell script that caches the results of configure
16640# tests run on this system so they can be shared between configure
16641# scripts and configure runs, see configure's option --config-cache.
16642# It is not useful on other systems.  If it contains results you don't
16643# want to keep, you may remove or edit it.
16644#
16645# config.status only pays attention to the cache file if you give it
16646# the --recheck option to rerun configure.
16647#
16648# `ac_cv_env_foo' variables (set or unset) will be overridden when
16649# loading this file, other *unset* `ac_cv_foo' will be assigned the
16650# following values.
16651
16652_ACEOF
16653
16654# The following way of writing the cache mishandles newlines in values,
16655# but we know of no workaround that is simple, portable, and efficient.
16656# So, we kill variables containing newlines.
16657# Ultrix sh set writes to stderr and can't be redirected directly,
16658# and sets the high bit in the cache file unless we assign to the vars.
16659(
16660  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16661    eval ac_val=\$$ac_var
16662    case $ac_val in #(
16663    *${as_nl}*)
16664      case $ac_var in #(
16665      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16666$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16667      esac
16668      case $ac_var in #(
16669      _ | IFS | as_nl) ;; #(
16670      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16671      *) { eval $ac_var=; unset $ac_var;} ;;
16672      esac ;;
16673    esac
16674  done
16675
16676  (set) 2>&1 |
16677    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16678    *${as_nl}ac_space=\ *)
16679      # `set' does not quote correctly, so add quotes: double-quote
16680      # substitution turns \\\\ into \\, and sed turns \\ into \.
16681      sed -n \
16682	"s/'/'\\\\''/g;
16683	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16684      ;; #(
16685    *)
16686      # `set' quotes correctly as required by POSIX, so do not add quotes.
16687      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16688      ;;
16689    esac |
16690    sort
16691) |
16692  sed '
16693     /^ac_cv_env_/b end
16694     t clear
16695     :clear
16696     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16697     t end
16698     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16699     :end' >>confcache
16700if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16701  if test -w "$cache_file"; then
16702    if test "x$cache_file" != "x/dev/null"; then
16703      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16704$as_echo "$as_me: updating cache $cache_file" >&6;}
16705      if test ! -f "$cache_file" || test -h "$cache_file"; then
16706	cat confcache >"$cache_file"
16707      else
16708        case $cache_file in #(
16709        */* | ?:*)
16710	  mv -f confcache "$cache_file"$$ &&
16711	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16712        *)
16713	  mv -f confcache "$cache_file" ;;
16714	esac
16715      fi
16716    fi
16717  else
16718    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16719$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16720  fi
16721fi
16722rm -f confcache
16723
16724test "x$prefix" = xNONE && prefix=$ac_default_prefix
16725# Let make expand exec_prefix.
16726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16727
16728DEFS=-DHAVE_CONFIG_H
16729
16730ac_libobjs=
16731ac_ltlibobjs=
16732U=
16733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16734  # 1. Remove the extension, and $U if already installed.
16735  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16736  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16737  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16738  #    will be set to the directory where LIBOBJS objects are built.
16739  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16740  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16741done
16742LIBOBJS=$ac_libobjs
16743
16744LTLIBOBJS=$ac_ltlibobjs
16745
16746
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16748$as_echo_n "checking that generated files are newer than configure... " >&6; }
16749   if test -n "$am_sleep_pid"; then
16750     # Hide warnings about reused PIDs.
16751     wait $am_sleep_pid 2>/dev/null
16752   fi
16753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16754$as_echo "done" >&6; }
16755 if test -n "$EXEEXT"; then
16756  am__EXEEXT_TRUE=
16757  am__EXEEXT_FALSE='#'
16758else
16759  am__EXEEXT_TRUE='#'
16760  am__EXEEXT_FALSE=
16761fi
16762
16763if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16764  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16765Usually this means the macro was only invoked conditionally." "$LINENO" 5
16766fi
16767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16768  as_fn_error $? "conditional \"AMDEP\" was never defined.
16769Usually this means the macro was only invoked conditionally." "$LINENO" 5
16770fi
16771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16772  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16773Usually this means the macro was only invoked conditionally." "$LINENO" 5
16774fi
16775if test -z "${cross_TRUE}" && test -z "${cross_FALSE}"; then
16776  as_fn_error $? "conditional \"cross\" was never defined.
16777Usually this means the macro was only invoked conditionally." "$LINENO" 5
16778fi
16779if test -z "${have_ft2_TRUE}" && test -z "${have_ft2_FALSE}"; then
16780  as_fn_error $? "conditional \"have_ft2\" was never defined.
16781Usually this means the macro was only invoked conditionally." "$LINENO" 5
16782fi
16783if test -z "${have_gif_TRUE}" && test -z "${have_gif_FALSE}"; then
16784  as_fn_error $? "conditional \"have_gif\" was never defined.
16785Usually this means the macro was only invoked conditionally." "$LINENO" 5
16786fi
16787if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16788  as_fn_error $? "conditional \"WIN32\" was never defined.
16789Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790fi
16791if test -z "${WIN32_CALL_TRUE}" && test -z "${WIN32_CALL_FALSE}"; then
16792  as_fn_error $? "conditional \"WIN32_CALL\" was never defined.
16793Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794fi
16795
16796: "${CONFIG_STATUS=./config.status}"
16797ac_write_fail=0
16798ac_clean_files_save=$ac_clean_files
16799ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16801$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16802as_write_fail=0
16803cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16804#! $SHELL
16805# Generated by $as_me.
16806# Run this file to recreate the current configuration.
16807# Compiler output produced by configure, useful for debugging
16808# configure, is in config.log if it exists.
16809
16810debug=false
16811ac_cs_recheck=false
16812ac_cs_silent=false
16813
16814SHELL=\${CONFIG_SHELL-$SHELL}
16815export SHELL
16816_ASEOF
16817cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16818## -------------------- ##
16819## M4sh Initialization. ##
16820## -------------------- ##
16821
16822# Be more Bourne compatible
16823DUALCASE=1; export DUALCASE # for MKS sh
16824if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16825  emulate sh
16826  NULLCMD=:
16827  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16828  # is contrary to our usage.  Disable this feature.
16829  alias -g '${1+"$@"}'='"$@"'
16830  setopt NO_GLOB_SUBST
16831else
16832  case `(set -o) 2>/dev/null` in #(
16833  *posix*) :
16834    set -o posix ;; #(
16835  *) :
16836     ;;
16837esac
16838fi
16839
16840
16841as_nl='
16842'
16843export as_nl
16844# Printing a long string crashes Solaris 7 /usr/bin/printf.
16845as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16846as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16847as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16848# Prefer a ksh shell builtin over an external printf program on Solaris,
16849# but without wasting forks for bash or zsh.
16850if test -z "$BASH_VERSION$ZSH_VERSION" \
16851    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16852  as_echo='print -r --'
16853  as_echo_n='print -rn --'
16854elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16855  as_echo='printf %s\n'
16856  as_echo_n='printf %s'
16857else
16858  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16859    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16860    as_echo_n='/usr/ucb/echo -n'
16861  else
16862    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16863    as_echo_n_body='eval
16864      arg=$1;
16865      case $arg in #(
16866      *"$as_nl"*)
16867	expr "X$arg" : "X\\(.*\\)$as_nl";
16868	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16869      esac;
16870      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16871    '
16872    export as_echo_n_body
16873    as_echo_n='sh -c $as_echo_n_body as_echo'
16874  fi
16875  export as_echo_body
16876  as_echo='sh -c $as_echo_body as_echo'
16877fi
16878
16879# The user is always right.
16880if test "${PATH_SEPARATOR+set}" != set; then
16881  PATH_SEPARATOR=:
16882  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16883    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16884      PATH_SEPARATOR=';'
16885  }
16886fi
16887
16888
16889# IFS
16890# We need space, tab and new line, in precisely that order.  Quoting is
16891# there to prevent editors from complaining about space-tab.
16892# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16893# splitting by setting IFS to empty value.)
16894IFS=" ""	$as_nl"
16895
16896# Find who we are.  Look in the path if we contain no directory separator.
16897as_myself=
16898case $0 in #((
16899  *[\\/]* ) as_myself=$0 ;;
16900  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901for as_dir in $PATH
16902do
16903  IFS=$as_save_IFS
16904  test -z "$as_dir" && as_dir=.
16905    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16906  done
16907IFS=$as_save_IFS
16908
16909     ;;
16910esac
16911# We did not find ourselves, most probably we were run as `sh COMMAND'
16912# in which case we are not to be found in the path.
16913if test "x$as_myself" = x; then
16914  as_myself=$0
16915fi
16916if test ! -f "$as_myself"; then
16917  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16918  exit 1
16919fi
16920
16921# Unset variables that we do not need and which cause bugs (e.g. in
16922# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16923# suppresses any "Segmentation fault" message there.  '((' could
16924# trigger a bug in pdksh 5.2.14.
16925for as_var in BASH_ENV ENV MAIL MAILPATH
16926do eval test x\${$as_var+set} = xset \
16927  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16928done
16929PS1='$ '
16930PS2='> '
16931PS4='+ '
16932
16933# NLS nuisances.
16934LC_ALL=C
16935export LC_ALL
16936LANGUAGE=C
16937export LANGUAGE
16938
16939# CDPATH.
16940(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16941
16942
16943# as_fn_error STATUS ERROR [LINENO LOG_FD]
16944# ----------------------------------------
16945# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16946# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16947# script with STATUS, using 1 if that was 0.
16948as_fn_error ()
16949{
16950  as_status=$1; test $as_status -eq 0 && as_status=1
16951  if test "$4"; then
16952    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16953    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16954  fi
16955  $as_echo "$as_me: error: $2" >&2
16956  as_fn_exit $as_status
16957} # as_fn_error
16958
16959
16960# as_fn_set_status STATUS
16961# -----------------------
16962# Set $? to STATUS, without forking.
16963as_fn_set_status ()
16964{
16965  return $1
16966} # as_fn_set_status
16967
16968# as_fn_exit STATUS
16969# -----------------
16970# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16971as_fn_exit ()
16972{
16973  set +e
16974  as_fn_set_status $1
16975  exit $1
16976} # as_fn_exit
16977
16978# as_fn_unset VAR
16979# ---------------
16980# Portably unset VAR.
16981as_fn_unset ()
16982{
16983  { eval $1=; unset $1;}
16984}
16985as_unset=as_fn_unset
16986# as_fn_append VAR VALUE
16987# ----------------------
16988# Append the text in VALUE to the end of the definition contained in VAR. Take
16989# advantage of any shell optimizations that allow amortized linear growth over
16990# repeated appends, instead of the typical quadratic growth present in naive
16991# implementations.
16992if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16993  eval 'as_fn_append ()
16994  {
16995    eval $1+=\$2
16996  }'
16997else
16998  as_fn_append ()
16999  {
17000    eval $1=\$$1\$2
17001  }
17002fi # as_fn_append
17003
17004# as_fn_arith ARG...
17005# ------------------
17006# Perform arithmetic evaluation on the ARGs, and store the result in the
17007# global $as_val. Take advantage of shells that can avoid forks. The arguments
17008# must be portable across $(()) and expr.
17009if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17010  eval 'as_fn_arith ()
17011  {
17012    as_val=$(( $* ))
17013  }'
17014else
17015  as_fn_arith ()
17016  {
17017    as_val=`expr "$@" || test $? -eq 1`
17018  }
17019fi # as_fn_arith
17020
17021
17022if expr a : '\(a\)' >/dev/null 2>&1 &&
17023   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17024  as_expr=expr
17025else
17026  as_expr=false
17027fi
17028
17029if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17030  as_basename=basename
17031else
17032  as_basename=false
17033fi
17034
17035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17036  as_dirname=dirname
17037else
17038  as_dirname=false
17039fi
17040
17041as_me=`$as_basename -- "$0" ||
17042$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17043	 X"$0" : 'X\(//\)$' \| \
17044	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17045$as_echo X/"$0" |
17046    sed '/^.*\/\([^/][^/]*\)\/*$/{
17047	    s//\1/
17048	    q
17049	  }
17050	  /^X\/\(\/\/\)$/{
17051	    s//\1/
17052	    q
17053	  }
17054	  /^X\/\(\/\).*/{
17055	    s//\1/
17056	    q
17057	  }
17058	  s/.*/./; q'`
17059
17060# Avoid depending upon Character Ranges.
17061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17064as_cr_digits='0123456789'
17065as_cr_alnum=$as_cr_Letters$as_cr_digits
17066
17067ECHO_C= ECHO_N= ECHO_T=
17068case `echo -n x` in #(((((
17069-n*)
17070  case `echo 'xy\c'` in
17071  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17072  xy)  ECHO_C='\c';;
17073  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17074       ECHO_T='	';;
17075  esac;;
17076*)
17077  ECHO_N='-n';;
17078esac
17079
17080rm -f conf$$ conf$$.exe conf$$.file
17081if test -d conf$$.dir; then
17082  rm -f conf$$.dir/conf$$.file
17083else
17084  rm -f conf$$.dir
17085  mkdir conf$$.dir 2>/dev/null
17086fi
17087if (echo >conf$$.file) 2>/dev/null; then
17088  if ln -s conf$$.file conf$$ 2>/dev/null; then
17089    as_ln_s='ln -s'
17090    # ... but there are two gotchas:
17091    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17092    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17093    # In both cases, we have to default to `cp -pR'.
17094    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17095      as_ln_s='cp -pR'
17096  elif ln conf$$.file conf$$ 2>/dev/null; then
17097    as_ln_s=ln
17098  else
17099    as_ln_s='cp -pR'
17100  fi
17101else
17102  as_ln_s='cp -pR'
17103fi
17104rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17105rmdir conf$$.dir 2>/dev/null
17106
17107
17108# as_fn_mkdir_p
17109# -------------
17110# Create "$as_dir" as a directory, including parents if necessary.
17111as_fn_mkdir_p ()
17112{
17113
17114  case $as_dir in #(
17115  -*) as_dir=./$as_dir;;
17116  esac
17117  test -d "$as_dir" || eval $as_mkdir_p || {
17118    as_dirs=
17119    while :; do
17120      case $as_dir in #(
17121      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17122      *) as_qdir=$as_dir;;
17123      esac
17124      as_dirs="'$as_qdir' $as_dirs"
17125      as_dir=`$as_dirname -- "$as_dir" ||
17126$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17127	 X"$as_dir" : 'X\(//\)[^/]' \| \
17128	 X"$as_dir" : 'X\(//\)$' \| \
17129	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17130$as_echo X"$as_dir" |
17131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17132	    s//\1/
17133	    q
17134	  }
17135	  /^X\(\/\/\)[^/].*/{
17136	    s//\1/
17137	    q
17138	  }
17139	  /^X\(\/\/\)$/{
17140	    s//\1/
17141	    q
17142	  }
17143	  /^X\(\/\).*/{
17144	    s//\1/
17145	    q
17146	  }
17147	  s/.*/./; q'`
17148      test -d "$as_dir" && break
17149    done
17150    test -z "$as_dirs" || eval "mkdir $as_dirs"
17151  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17152
17153
17154} # as_fn_mkdir_p
17155if mkdir -p . 2>/dev/null; then
17156  as_mkdir_p='mkdir -p "$as_dir"'
17157else
17158  test -d ./-p && rmdir ./-p
17159  as_mkdir_p=false
17160fi
17161
17162
17163# as_fn_executable_p FILE
17164# -----------------------
17165# Test if FILE is an executable regular file.
17166as_fn_executable_p ()
17167{
17168  test -f "$1" && test -x "$1"
17169} # as_fn_executable_p
17170as_test_x='test -x'
17171as_executable_p=as_fn_executable_p
17172
17173# Sed expression to map a string onto a valid CPP name.
17174as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17175
17176# Sed expression to map a string onto a valid variable name.
17177as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17178
17179
17180exec 6>&1
17181## ----------------------------------- ##
17182## Main body of $CONFIG_STATUS script. ##
17183## ----------------------------------- ##
17184_ASEOF
17185test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17186
17187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17188# Save the log message, to keep $0 and so on meaningful, and to
17189# report actual input values of CONFIG_FILES etc. instead of their
17190# values after options handling.
17191ac_log="
17192This file was extended by dvipng (TeX Live) $as_me 1.15, which was
17193generated by GNU Autoconf 2.69.  Invocation command line was
17194
17195  CONFIG_FILES    = $CONFIG_FILES
17196  CONFIG_HEADERS  = $CONFIG_HEADERS
17197  CONFIG_LINKS    = $CONFIG_LINKS
17198  CONFIG_COMMANDS = $CONFIG_COMMANDS
17199  $ $0 $@
17200
17201on `(hostname || uname -n) 2>/dev/null | sed 1q`
17202"
17203
17204_ACEOF
17205
17206case $ac_config_files in *"
17207"*) set x $ac_config_files; shift; ac_config_files=$*;;
17208esac
17209
17210case $ac_config_headers in *"
17211"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17212esac
17213
17214
17215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216# Files that config.status was made for.
17217config_files="$ac_config_files"
17218config_headers="$ac_config_headers"
17219config_links="$ac_config_links"
17220config_commands="$ac_config_commands"
17221
17222_ACEOF
17223
17224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17225ac_cs_usage="\
17226\`$as_me' instantiates files and other configuration actions
17227from templates according to the current configuration.  Unless the files
17228and actions are specified as TAGs, all are instantiated by default.
17229
17230Usage: $0 [OPTION]... [TAG]...
17231
17232  -h, --help       print this help, then exit
17233  -V, --version    print version number and configuration settings, then exit
17234      --config     print configuration, then exit
17235  -q, --quiet, --silent
17236                   do not print progress messages
17237  -d, --debug      don't remove temporary files
17238      --recheck    update $as_me by reconfiguring in the same conditions
17239      --file=FILE[:TEMPLATE]
17240                   instantiate the configuration file FILE
17241      --header=FILE[:TEMPLATE]
17242                   instantiate the configuration header FILE
17243
17244Configuration files:
17245$config_files
17246
17247Configuration headers:
17248$config_headers
17249
17250Configuration links:
17251$config_links
17252
17253Configuration commands:
17254$config_commands
17255
17256Report bugs to <tex-k@tug.org>."
17257
17258_ACEOF
17259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17260ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17261ac_cs_version="\\
17262dvipng (TeX Live) config.status 1.15
17263configured by $0, generated by GNU Autoconf 2.69,
17264  with options \\"\$ac_cs_config\\"
17265
17266Copyright (C) 2012 Free Software Foundation, Inc.
17267This config.status script is free software; the Free Software Foundation
17268gives unlimited permission to copy, distribute and modify it."
17269
17270ac_pwd='$ac_pwd'
17271srcdir='$srcdir'
17272INSTALL='$INSTALL'
17273MKDIR_P='$MKDIR_P'
17274AWK='$AWK'
17275test -n "\$AWK" || AWK=awk
17276_ACEOF
17277
17278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279# The default lists apply if the user does not specify any file.
17280ac_need_defaults=:
17281while test $# != 0
17282do
17283  case $1 in
17284  --*=?*)
17285    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17286    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17287    ac_shift=:
17288    ;;
17289  --*=)
17290    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17291    ac_optarg=
17292    ac_shift=:
17293    ;;
17294  *)
17295    ac_option=$1
17296    ac_optarg=$2
17297    ac_shift=shift
17298    ;;
17299  esac
17300
17301  case $ac_option in
17302  # Handling of the options.
17303  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17304    ac_cs_recheck=: ;;
17305  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17306    $as_echo "$ac_cs_version"; exit ;;
17307  --config | --confi | --conf | --con | --co | --c )
17308    $as_echo "$ac_cs_config"; exit ;;
17309  --debug | --debu | --deb | --de | --d | -d )
17310    debug=: ;;
17311  --file | --fil | --fi | --f )
17312    $ac_shift
17313    case $ac_optarg in
17314    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17315    '') as_fn_error $? "missing file argument" ;;
17316    esac
17317    as_fn_append CONFIG_FILES " '$ac_optarg'"
17318    ac_need_defaults=false;;
17319  --header | --heade | --head | --hea )
17320    $ac_shift
17321    case $ac_optarg in
17322    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17323    esac
17324    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17325    ac_need_defaults=false;;
17326  --he | --h)
17327    # Conflict between --help and --header
17328    as_fn_error $? "ambiguous option: \`$1'
17329Try \`$0 --help' for more information.";;
17330  --help | --hel | -h )
17331    $as_echo "$ac_cs_usage"; exit ;;
17332  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17333  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17334    ac_cs_silent=: ;;
17335
17336  # This is an error.
17337  -*) as_fn_error $? "unrecognized option: \`$1'
17338Try \`$0 --help' for more information." ;;
17339
17340  *) as_fn_append ac_config_targets " $1"
17341     ac_need_defaults=false ;;
17342
17343  esac
17344  shift
17345done
17346
17347ac_configure_extra_args=
17348
17349if $ac_cs_silent; then
17350  exec 6>/dev/null
17351  ac_configure_extra_args="$ac_configure_extra_args --silent"
17352fi
17353
17354_ACEOF
17355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17356if \$ac_cs_recheck; then
17357  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17358  shift
17359  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17360  CONFIG_SHELL='$SHELL'
17361  export CONFIG_SHELL
17362  exec "\$@"
17363fi
17364
17365_ACEOF
17366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17367exec 5>>config.log
17368{
17369  echo
17370  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17371## Running $as_me. ##
17372_ASBOX
17373  $as_echo "$ac_log"
17374} >&5
17375
17376_ACEOF
17377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378#
17379# INIT-COMMANDS
17380#
17381AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17382
17383
17384# The HP-UX ksh and POSIX shell print the target directory to stdout
17385# if CDPATH is set.
17386(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17387
17388sed_quote_subst='$sed_quote_subst'
17389double_quote_subst='$double_quote_subst'
17390delay_variable_subst='$delay_variable_subst'
17391macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17392macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17393AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17394DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17395OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17396enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17397enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17398pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17399enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17400shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17401SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17402ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17403PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17404host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17405host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17406host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17407build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17408build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17409build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17410SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17411Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17412GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17413EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17414FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17415LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17416NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17417LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17418max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17419ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17420exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17421lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17422lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17423lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17424lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17425lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17426reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17427reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17428deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17429file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17430file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17431want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17432sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17433AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17434AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17435archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17436STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17437RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17438old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17439old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17440old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17441lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17442CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17443CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17444compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17445GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17446lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17447lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17448lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17449lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17450lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17451lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17452nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17453lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17454lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17455objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17456MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17457lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17458lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17459lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17460lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17461lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17462need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17463MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17464DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17465NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17466LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17467OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17468OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17469libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17470shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17471extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17472archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17473enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17474export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17475whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17476compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17477old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17478old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17479archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17480archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17481module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17482module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17483with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17484allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17485no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17486hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17487hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17488hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17489hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17490hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17491hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17492hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17493inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17494link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17495always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17496export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17497exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17498include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17499prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17500postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17501file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17502variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17503need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17504need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17505version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17506runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17507shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17508shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17509libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17510library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17511soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17512install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17513postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17514postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17515finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17516finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17517hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17518sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17519configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17520configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17521hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17522enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17523enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17524enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17525old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17526striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17527
17528LTCC='$LTCC'
17529LTCFLAGS='$LTCFLAGS'
17530compiler='$compiler_DEFAULT'
17531
17532# A function that is used when there is no print builtin or printf.
17533func_fallback_echo ()
17534{
17535  eval 'cat <<_LTECHO_EOF
17536\$1
17537_LTECHO_EOF'
17538}
17539
17540# Quote evaled strings.
17541for var in AS \
17542DLLTOOL \
17543OBJDUMP \
17544SHELL \
17545ECHO \
17546PATH_SEPARATOR \
17547SED \
17548GREP \
17549EGREP \
17550FGREP \
17551LD \
17552NM \
17553LN_S \
17554lt_SP2NL \
17555lt_NL2SP \
17556reload_flag \
17557deplibs_check_method \
17558file_magic_cmd \
17559file_magic_glob \
17560want_nocaseglob \
17561sharedlib_from_linklib_cmd \
17562AR \
17563AR_FLAGS \
17564archiver_list_spec \
17565STRIP \
17566RANLIB \
17567CC \
17568CFLAGS \
17569compiler \
17570lt_cv_sys_global_symbol_pipe \
17571lt_cv_sys_global_symbol_to_cdecl \
17572lt_cv_sys_global_symbol_to_import \
17573lt_cv_sys_global_symbol_to_c_name_address \
17574lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17575lt_cv_nm_interface \
17576nm_file_list_spec \
17577lt_cv_truncate_bin \
17578lt_prog_compiler_no_builtin_flag \
17579lt_prog_compiler_pic \
17580lt_prog_compiler_wl \
17581lt_prog_compiler_static \
17582lt_cv_prog_compiler_c_o \
17583need_locks \
17584MANIFEST_TOOL \
17585DSYMUTIL \
17586NMEDIT \
17587LIPO \
17588OTOOL \
17589OTOOL64 \
17590shrext_cmds \
17591export_dynamic_flag_spec \
17592whole_archive_flag_spec \
17593compiler_needs_object \
17594with_gnu_ld \
17595allow_undefined_flag \
17596no_undefined_flag \
17597hardcode_libdir_flag_spec \
17598hardcode_libdir_separator \
17599exclude_expsyms \
17600include_expsyms \
17601file_list_spec \
17602variables_saved_for_relink \
17603libname_spec \
17604library_names_spec \
17605soname_spec \
17606install_override_mode \
17607finish_eval \
17608old_striplib \
17609striplib; do
17610    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17611    *[\\\\\\\`\\"\\\$]*)
17612      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17613      ;;
17614    *)
17615      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17616      ;;
17617    esac
17618done
17619
17620# Double-quote double-evaled strings.
17621for var in reload_cmds \
17622old_postinstall_cmds \
17623old_postuninstall_cmds \
17624old_archive_cmds \
17625extract_expsyms_cmds \
17626old_archive_from_new_cmds \
17627old_archive_from_expsyms_cmds \
17628archive_cmds \
17629archive_expsym_cmds \
17630module_cmds \
17631module_expsym_cmds \
17632export_symbols_cmds \
17633prelink_cmds \
17634postlink_cmds \
17635postinstall_cmds \
17636postuninstall_cmds \
17637finish_cmds \
17638sys_lib_search_path_spec \
17639configure_time_dlsearch_path \
17640configure_time_lt_sys_library_path; do
17641    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17642    *[\\\\\\\`\\"\\\$]*)
17643      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17644      ;;
17645    *)
17646      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17647      ;;
17648    esac
17649done
17650
17651ac_aux_dir='$ac_aux_dir'
17652
17653# See if we are running on zsh, and set the options that allow our
17654# commands through without removal of \ escapes INIT.
17655if test -n "\${ZSH_VERSION+set}"; then
17656   setopt NO_GLOB_SUBST
17657fi
17658
17659
17660    PACKAGE='$PACKAGE'
17661    VERSION='$VERSION'
17662    RM='$RM'
17663    ofile='$ofile'
17664
17665ac_aux_dir='$ac_aux_dir'
17666
17667
17668
17669_ACEOF
17670
17671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17672
17673# Handling of arguments.
17674for ac_config_target in $ac_config_targets
17675do
17676  case $ac_config_target in
17677    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17678    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17679    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17680    "callexe.c") CONFIG_LINKS="$CONFIG_LINKS callexe.c:../texlive/w32_wrapper/callexe.c" ;;
17681    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17682    "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
17683    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17684
17685  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17686  esac
17687done
17688
17689
17690# If the user did not use the arguments to specify the items to instantiate,
17691# then the envvar interface is used.  Set only those that are not.
17692# We use the long form for the default assignment because of an extremely
17693# bizarre bug on SunOS 4.1.3.
17694if $ac_need_defaults; then
17695  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17696  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17697  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17698  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17699fi
17700
17701# Have a temporary directory for convenience.  Make it in the build tree
17702# simply because there is no reason against having it here, and in addition,
17703# creating and moving files from /tmp can sometimes cause problems.
17704# Hook for its removal unless debugging.
17705# Note that there is a small window in which the directory will not be cleaned:
17706# after its creation but before its name has been assigned to `$tmp'.
17707$debug ||
17708{
17709  tmp= ac_tmp=
17710  trap 'exit_status=$?
17711  : "${ac_tmp:=$tmp}"
17712  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17713' 0
17714  trap 'as_fn_exit 1' 1 2 13 15
17715}
17716# Create a (secure) tmp directory for tmp files.
17717
17718{
17719  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17720  test -d "$tmp"
17721}  ||
17722{
17723  tmp=./conf$$-$RANDOM
17724  (umask 077 && mkdir "$tmp")
17725} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17726ac_tmp=$tmp
17727
17728# Set up the scripts for CONFIG_FILES section.
17729# No need to generate them if there are no CONFIG_FILES.
17730# This happens for instance with `./config.status config.h'.
17731if test -n "$CONFIG_FILES"; then
17732
17733
17734ac_cr=`echo X | tr X '\015'`
17735# On cygwin, bash can eat \r inside `` if the user requested igncr.
17736# But we know of no other shell where ac_cr would be empty at this
17737# point, so we can use a bashism as a fallback.
17738if test "x$ac_cr" = x; then
17739  eval ac_cr=\$\'\\r\'
17740fi
17741ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17742if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17743  ac_cs_awk_cr='\\r'
17744else
17745  ac_cs_awk_cr=$ac_cr
17746fi
17747
17748echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17749_ACEOF
17750
17751
17752{
17753  echo "cat >conf$$subs.awk <<_ACEOF" &&
17754  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17755  echo "_ACEOF"
17756} >conf$$subs.sh ||
17757  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17758ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17759ac_delim='%!_!# '
17760for ac_last_try in false false false false false :; do
17761  . ./conf$$subs.sh ||
17762    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17763
17764  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17765  if test $ac_delim_n = $ac_delim_num; then
17766    break
17767  elif $ac_last_try; then
17768    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17769  else
17770    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17771  fi
17772done
17773rm -f conf$$subs.sh
17774
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17777_ACEOF
17778sed -n '
17779h
17780s/^/S["/; s/!.*/"]=/
17781p
17782g
17783s/^[^!]*!//
17784:repl
17785t repl
17786s/'"$ac_delim"'$//
17787t delim
17788:nl
17789h
17790s/\(.\{148\}\)..*/\1/
17791t more1
17792s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17793p
17794n
17795b repl
17796:more1
17797s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17798p
17799g
17800s/.\{148\}//
17801t nl
17802:delim
17803h
17804s/\(.\{148\}\)..*/\1/
17805t more2
17806s/["\\]/\\&/g; s/^/"/; s/$/"/
17807p
17808b
17809:more2
17810s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17811p
17812g
17813s/.\{148\}//
17814t delim
17815' <conf$$subs.awk | sed '
17816/^[^""]/{
17817  N
17818  s/\n//
17819}
17820' >>$CONFIG_STATUS || ac_write_fail=1
17821rm -f conf$$subs.awk
17822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17823_ACAWK
17824cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17825  for (key in S) S_is_set[key] = 1
17826  FS = ""
17827
17828}
17829{
17830  line = $ 0
17831  nfields = split(line, field, "@")
17832  substed = 0
17833  len = length(field[1])
17834  for (i = 2; i < nfields; i++) {
17835    key = field[i]
17836    keylen = length(key)
17837    if (S_is_set[key]) {
17838      value = S[key]
17839      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17840      len += length(value) + length(field[++i])
17841      substed = 1
17842    } else
17843      len += 1 + keylen
17844  }
17845
17846  print line
17847}
17848
17849_ACAWK
17850_ACEOF
17851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17853  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17854else
17855  cat
17856fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17857  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17858_ACEOF
17859
17860# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17861# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17862# trailing colons and then remove the whole line if VPATH becomes empty
17863# (actually we leave an empty line to preserve line numbers).
17864if test "x$srcdir" = x.; then
17865  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17866h
17867s///
17868s/^/:/
17869s/[	 ]*$/:/
17870s/:\$(srcdir):/:/g
17871s/:\${srcdir}:/:/g
17872s/:@srcdir@:/:/g
17873s/^:*//
17874s/:*$//
17875x
17876s/\(=[	 ]*\).*/\1/
17877G
17878s/\n//
17879s/^[^=]*=[	 ]*$//
17880}'
17881fi
17882
17883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884fi # test -n "$CONFIG_FILES"
17885
17886# Set up the scripts for CONFIG_HEADERS section.
17887# No need to generate them if there are no CONFIG_HEADERS.
17888# This happens for instance with `./config.status Makefile'.
17889if test -n "$CONFIG_HEADERS"; then
17890cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17891BEGIN {
17892_ACEOF
17893
17894# Transform confdefs.h into an awk script `defines.awk', embedded as
17895# here-document in config.status, that substitutes the proper values into
17896# config.h.in to produce config.h.
17897
17898# Create a delimiter string that does not exist in confdefs.h, to ease
17899# handling of long lines.
17900ac_delim='%!_!# '
17901for ac_last_try in false false :; do
17902  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17903  if test -z "$ac_tt"; then
17904    break
17905  elif $ac_last_try; then
17906    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17907  else
17908    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17909  fi
17910done
17911
17912# For the awk script, D is an array of macro values keyed by name,
17913# likewise P contains macro parameters if any.  Preserve backslash
17914# newline sequences.
17915
17916ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17917sed -n '
17918s/.\{148\}/&'"$ac_delim"'/g
17919t rset
17920:rset
17921s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17922t def
17923d
17924:def
17925s/\\$//
17926t bsnl
17927s/["\\]/\\&/g
17928s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17929D["\1"]=" \3"/p
17930s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17931d
17932:bsnl
17933s/["\\]/\\&/g
17934s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17935D["\1"]=" \3\\\\\\n"\\/p
17936t cont
17937s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17938t cont
17939d
17940:cont
17941n
17942s/.\{148\}/&'"$ac_delim"'/g
17943t clear
17944:clear
17945s/\\$//
17946t bsnlc
17947s/["\\]/\\&/g; s/^/"/; s/$/"/p
17948d
17949:bsnlc
17950s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17951b cont
17952' <confdefs.h | sed '
17953s/'"$ac_delim"'/"\\\
17954"/g' >>$CONFIG_STATUS || ac_write_fail=1
17955
17956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17957  for (key in D) D_is_set[key] = 1
17958  FS = ""
17959}
17960/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17961  line = \$ 0
17962  split(line, arg, " ")
17963  if (arg[1] == "#") {
17964    defundef = arg[2]
17965    mac1 = arg[3]
17966  } else {
17967    defundef = substr(arg[1], 2)
17968    mac1 = arg[2]
17969  }
17970  split(mac1, mac2, "(") #)
17971  macro = mac2[1]
17972  prefix = substr(line, 1, index(line, defundef) - 1)
17973  if (D_is_set[macro]) {
17974    # Preserve the white space surrounding the "#".
17975    print prefix "define", macro P[macro] D[macro]
17976    next
17977  } else {
17978    # Replace #undef with comments.  This is necessary, for example,
17979    # in the case of _POSIX_SOURCE, which is predefined and required
17980    # on some systems where configure will not decide to define it.
17981    if (defundef == "undef") {
17982      print "/*", prefix defundef, macro, "*/"
17983      next
17984    }
17985  }
17986}
17987{ print }
17988_ACAWK
17989_ACEOF
17990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17991  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17992fi # test -n "$CONFIG_HEADERS"
17993
17994
17995eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17996shift
17997for ac_tag
17998do
17999  case $ac_tag in
18000  :[FHLC]) ac_mode=$ac_tag; continue;;
18001  esac
18002  case $ac_mode$ac_tag in
18003  :[FHL]*:*);;
18004  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18005  :[FH]-) ac_tag=-:-;;
18006  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18007  esac
18008  ac_save_IFS=$IFS
18009  IFS=:
18010  set x $ac_tag
18011  IFS=$ac_save_IFS
18012  shift
18013  ac_file=$1
18014  shift
18015
18016  case $ac_mode in
18017  :L) ac_source=$1;;
18018  :[FH])
18019    ac_file_inputs=
18020    for ac_f
18021    do
18022      case $ac_f in
18023      -) ac_f="$ac_tmp/stdin";;
18024      *) # Look for the file first in the build tree, then in the source tree
18025	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18026	 # because $ac_f cannot contain `:'.
18027	 test -f "$ac_f" ||
18028	   case $ac_f in
18029	   [\\/$]*) false;;
18030	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18031	   esac ||
18032	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18033      esac
18034      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18035      as_fn_append ac_file_inputs " '$ac_f'"
18036    done
18037
18038    # Let's still pretend it is `configure' which instantiates (i.e., don't
18039    # use $as_me), people would be surprised to read:
18040    #    /* config.h.  Generated by config.status.  */
18041    configure_input='Generated from '`
18042	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18043	`' by configure.'
18044    if test x"$ac_file" != x-; then
18045      configure_input="$ac_file.  $configure_input"
18046      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18047$as_echo "$as_me: creating $ac_file" >&6;}
18048    fi
18049    # Neutralize special characters interpreted by sed in replacement strings.
18050    case $configure_input in #(
18051    *\&* | *\|* | *\\* )
18052       ac_sed_conf_input=`$as_echo "$configure_input" |
18053       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18054    *) ac_sed_conf_input=$configure_input;;
18055    esac
18056
18057    case $ac_tag in
18058    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18059      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18060    esac
18061    ;;
18062  esac
18063
18064  ac_dir=`$as_dirname -- "$ac_file" ||
18065$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18066	 X"$ac_file" : 'X\(//\)[^/]' \| \
18067	 X"$ac_file" : 'X\(//\)$' \| \
18068	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18069$as_echo X"$ac_file" |
18070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18071	    s//\1/
18072	    q
18073	  }
18074	  /^X\(\/\/\)[^/].*/{
18075	    s//\1/
18076	    q
18077	  }
18078	  /^X\(\/\/\)$/{
18079	    s//\1/
18080	    q
18081	  }
18082	  /^X\(\/\).*/{
18083	    s//\1/
18084	    q
18085	  }
18086	  s/.*/./; q'`
18087  as_dir="$ac_dir"; as_fn_mkdir_p
18088  ac_builddir=.
18089
18090case "$ac_dir" in
18091.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18092*)
18093  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18094  # A ".." for each directory in $ac_dir_suffix.
18095  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18096  case $ac_top_builddir_sub in
18097  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18098  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18099  esac ;;
18100esac
18101ac_abs_top_builddir=$ac_pwd
18102ac_abs_builddir=$ac_pwd$ac_dir_suffix
18103# for backward compatibility:
18104ac_top_builddir=$ac_top_build_prefix
18105
18106case $srcdir in
18107  .)  # We are building in place.
18108    ac_srcdir=.
18109    ac_top_srcdir=$ac_top_builddir_sub
18110    ac_abs_top_srcdir=$ac_pwd ;;
18111  [\\/]* | ?:[\\/]* )  # Absolute name.
18112    ac_srcdir=$srcdir$ac_dir_suffix;
18113    ac_top_srcdir=$srcdir
18114    ac_abs_top_srcdir=$srcdir ;;
18115  *) # Relative name.
18116    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18117    ac_top_srcdir=$ac_top_build_prefix$srcdir
18118    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18119esac
18120ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18121
18122
18123  case $ac_mode in
18124  :F)
18125  #
18126  # CONFIG_FILE
18127  #
18128
18129  case $INSTALL in
18130  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18131  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18132  esac
18133  ac_MKDIR_P=$MKDIR_P
18134  case $MKDIR_P in
18135  [\\/$]* | ?:[\\/]* ) ;;
18136  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18137  esac
18138_ACEOF
18139
18140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18141# If the template does not know about datarootdir, expand it.
18142# FIXME: This hack should be removed a few years after 2.60.
18143ac_datarootdir_hack=; ac_datarootdir_seen=
18144ac_sed_dataroot='
18145/datarootdir/ {
18146  p
18147  q
18148}
18149/@datadir@/p
18150/@docdir@/p
18151/@infodir@/p
18152/@localedir@/p
18153/@mandir@/p'
18154case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18155*datarootdir*) ac_datarootdir_seen=yes;;
18156*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18157  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18158$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18159_ACEOF
18160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18161  ac_datarootdir_hack='
18162  s&@datadir@&$datadir&g
18163  s&@docdir@&$docdir&g
18164  s&@infodir@&$infodir&g
18165  s&@localedir@&$localedir&g
18166  s&@mandir@&$mandir&g
18167  s&\\\${datarootdir}&$datarootdir&g' ;;
18168esac
18169_ACEOF
18170
18171# Neutralize VPATH when `$srcdir' = `.'.
18172# Shell code in configure.ac might set extrasub.
18173# FIXME: do we really want to maintain this feature?
18174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18175ac_sed_extra="$ac_vpsub
18176$extrasub
18177_ACEOF
18178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18179:t
18180/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18181s|@configure_input@|$ac_sed_conf_input|;t t
18182s&@top_builddir@&$ac_top_builddir_sub&;t t
18183s&@top_build_prefix@&$ac_top_build_prefix&;t t
18184s&@srcdir@&$ac_srcdir&;t t
18185s&@abs_srcdir@&$ac_abs_srcdir&;t t
18186s&@top_srcdir@&$ac_top_srcdir&;t t
18187s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18188s&@builddir@&$ac_builddir&;t t
18189s&@abs_builddir@&$ac_abs_builddir&;t t
18190s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18191s&@INSTALL@&$ac_INSTALL&;t t
18192s&@MKDIR_P@&$ac_MKDIR_P&;t t
18193$ac_datarootdir_hack
18194"
18195eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18196  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18197
18198test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18199  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18200  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18201      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18202  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18203which seems to be undefined.  Please make sure it is defined" >&5
18204$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18205which seems to be undefined.  Please make sure it is defined" >&2;}
18206
18207  rm -f "$ac_tmp/stdin"
18208  case $ac_file in
18209  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18210  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18211  esac \
18212  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18213 ;;
18214  :H)
18215  #
18216  # CONFIG_HEADER
18217  #
18218  if test x"$ac_file" != x-; then
18219    {
18220      $as_echo "/* $configure_input  */" \
18221      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18222    } >"$ac_tmp/config.h" \
18223      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18224    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18225      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18226$as_echo "$as_me: $ac_file is unchanged" >&6;}
18227    else
18228      rm -f "$ac_file"
18229      mv "$ac_tmp/config.h" "$ac_file" \
18230	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18231    fi
18232  else
18233    $as_echo "/* $configure_input  */" \
18234      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18235      || as_fn_error $? "could not create -" "$LINENO" 5
18236  fi
18237# Compute "$ac_file"'s index in $config_headers.
18238_am_arg="$ac_file"
18239_am_stamp_count=1
18240for _am_header in $config_headers :; do
18241  case $_am_header in
18242    $_am_arg | $_am_arg:* )
18243      break ;;
18244    * )
18245      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18246  esac
18247done
18248echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18249$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18250	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18251	 X"$_am_arg" : 'X\(//\)$' \| \
18252	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18253$as_echo X"$_am_arg" |
18254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18255	    s//\1/
18256	    q
18257	  }
18258	  /^X\(\/\/\)[^/].*/{
18259	    s//\1/
18260	    q
18261	  }
18262	  /^X\(\/\/\)$/{
18263	    s//\1/
18264	    q
18265	  }
18266	  /^X\(\/\).*/{
18267	    s//\1/
18268	    q
18269	  }
18270	  s/.*/./; q'`/stamp-h$_am_stamp_count
18271 ;;
18272  :L)
18273  #
18274  # CONFIG_LINK
18275  #
18276
18277  if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18278    :
18279  else
18280    # Prefer the file from the source tree if names are identical.
18281    if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18282      ac_source=$srcdir/$ac_source
18283    fi
18284
18285    { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18286$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18287
18288    if test ! -r "$ac_source"; then
18289      as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18290    fi
18291    rm -f "$ac_file"
18292
18293    # Try a relative symlink, then a hard link, then a copy.
18294    case $ac_source in
18295    [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18296	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18297    esac
18298    ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18299      ln "$ac_source" "$ac_file" 2>/dev/null ||
18300      cp -p "$ac_source" "$ac_file" ||
18301      as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18302  fi
18303 ;;
18304  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18305$as_echo "$as_me: executing $ac_file commands" >&6;}
18306 ;;
18307  esac
18308
18309
18310  case $ac_file$ac_mode in
18311    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18312  # Older Autoconf quotes --file arguments for eval, but not when files
18313  # are listed without --file.  Let's play safe and only enable the eval
18314  # if we detect the quoting.
18315  case $CONFIG_FILES in
18316  *\'*) eval set x "$CONFIG_FILES" ;;
18317  *)   set x $CONFIG_FILES ;;
18318  esac
18319  shift
18320  for mf
18321  do
18322    # Strip MF so we end up with the name of the file.
18323    mf=`echo "$mf" | sed -e 's/:.*$//'`
18324    # Check whether this is an Automake generated Makefile or not.
18325    # We used to match only the files named 'Makefile.in', but
18326    # some people rename them; so instead we look at the file content.
18327    # Grep'ing the first line is not enough: some people post-process
18328    # each Makefile.in and add a new line on top of each file to say so.
18329    # Grep'ing the whole file is not good either: AIX grep has a line
18330    # limit of 2048, but all sed's we know have understand at least 4000.
18331    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18332      dirpart=`$as_dirname -- "$mf" ||
18333$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18334	 X"$mf" : 'X\(//\)[^/]' \| \
18335	 X"$mf" : 'X\(//\)$' \| \
18336	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18337$as_echo X"$mf" |
18338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18339	    s//\1/
18340	    q
18341	  }
18342	  /^X\(\/\/\)[^/].*/{
18343	    s//\1/
18344	    q
18345	  }
18346	  /^X\(\/\/\)$/{
18347	    s//\1/
18348	    q
18349	  }
18350	  /^X\(\/\).*/{
18351	    s//\1/
18352	    q
18353	  }
18354	  s/.*/./; q'`
18355    else
18356      continue
18357    fi
18358    # Extract the definition of DEPDIR, am__include, and am__quote
18359    # from the Makefile without running 'make'.
18360    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18361    test -z "$DEPDIR" && continue
18362    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18363    test -z "$am__include" && continue
18364    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18365    # Find all dependency output files, they are included files with
18366    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18367    # simplest approach to changing $(DEPDIR) to its actual value in the
18368    # expansion.
18369    for file in `sed -n "
18370      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18371	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18372      # Make sure the directory exists.
18373      test -f "$dirpart/$file" && continue
18374      fdir=`$as_dirname -- "$file" ||
18375$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18376	 X"$file" : 'X\(//\)[^/]' \| \
18377	 X"$file" : 'X\(//\)$' \| \
18378	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18379$as_echo X"$file" |
18380    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18381	    s//\1/
18382	    q
18383	  }
18384	  /^X\(\/\/\)[^/].*/{
18385	    s//\1/
18386	    q
18387	  }
18388	  /^X\(\/\/\)$/{
18389	    s//\1/
18390	    q
18391	  }
18392	  /^X\(\/\).*/{
18393	    s//\1/
18394	    q
18395	  }
18396	  s/.*/./; q'`
18397      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18398      # echo "creating $dirpart/$file"
18399      echo '# dummy' > "$dirpart/$file"
18400    done
18401  done
18402}
18403 ;;
18404    "libtool":C)
18405
18406    # See if we are running on zsh, and set the options that allow our
18407    # commands through without removal of \ escapes.
18408    if test -n "${ZSH_VERSION+set}"; then
18409      setopt NO_GLOB_SUBST
18410    fi
18411
18412    cfgfile=${ofile}T
18413    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18414    $RM "$cfgfile"
18415
18416    cat <<_LT_EOF >> "$cfgfile"
18417#! $SHELL
18418# Generated automatically by $as_me ($PACKAGE) $VERSION
18419# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18420# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18421
18422# Provide generalized library-building support services.
18423# Written by Gordon Matzigkeit, 1996
18424
18425# Copyright (C) 2014 Free Software Foundation, Inc.
18426# This is free software; see the source for copying conditions.  There is NO
18427# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18428
18429# GNU Libtool is free software; you can redistribute it and/or modify
18430# it under the terms of the GNU General Public License as published by
18431# the Free Software Foundation; either version 2 of of the License, or
18432# (at your option) any later version.
18433#
18434# As a special exception to the GNU General Public License, if you
18435# distribute this file as part of a program or library that is built
18436# using GNU Libtool, you may include this file under the  same
18437# distribution terms that you use for the rest of that program.
18438#
18439# GNU Libtool is distributed in the hope that it will be useful, but
18440# WITHOUT ANY WARRANTY; without even the implied warranty of
18441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18442# GNU General Public License for more details.
18443#
18444# You should have received a copy of the GNU General Public License
18445# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18446
18447
18448# The names of the tagged configurations supported by this script.
18449available_tags=''
18450
18451# Configured defaults for sys_lib_dlsearch_path munging.
18452: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18453
18454# ### BEGIN LIBTOOL CONFIG
18455
18456# Which release of libtool.m4 was used?
18457macro_version=$macro_version
18458macro_revision=$macro_revision
18459
18460# Assembler program.
18461AS=$lt_AS
18462
18463# DLL creation program.
18464DLLTOOL=$lt_DLLTOOL
18465
18466# Object dumper program.
18467OBJDUMP=$lt_OBJDUMP
18468
18469# Whether or not to build shared libraries.
18470build_libtool_libs=$enable_shared
18471
18472# Whether or not to build static libraries.
18473build_old_libs=$enable_static
18474
18475# What type of objects to build.
18476pic_mode=$pic_mode
18477
18478# Whether or not to optimize for fast installation.
18479fast_install=$enable_fast_install
18480
18481# Shared archive member basename,for filename based shared library versioning on AIX.
18482shared_archive_member_spec=$shared_archive_member_spec
18483
18484# Shell to use when invoking shell scripts.
18485SHELL=$lt_SHELL
18486
18487# An echo program that protects backslashes.
18488ECHO=$lt_ECHO
18489
18490# The PATH separator for the build system.
18491PATH_SEPARATOR=$lt_PATH_SEPARATOR
18492
18493# The host system.
18494host_alias=$host_alias
18495host=$host
18496host_os=$host_os
18497
18498# The build system.
18499build_alias=$build_alias
18500build=$build
18501build_os=$build_os
18502
18503# A sed program that does not truncate output.
18504SED=$lt_SED
18505
18506# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18507Xsed="\$SED -e 1s/^X//"
18508
18509# A grep program that handles long lines.
18510GREP=$lt_GREP
18511
18512# An ERE matcher.
18513EGREP=$lt_EGREP
18514
18515# A literal string matcher.
18516FGREP=$lt_FGREP
18517
18518# A BSD- or MS-compatible name lister.
18519NM=$lt_NM
18520
18521# Whether we need soft or hard links.
18522LN_S=$lt_LN_S
18523
18524# What is the maximum length of a command?
18525max_cmd_len=$max_cmd_len
18526
18527# Object file suffix (normally "o").
18528objext=$ac_objext
18529
18530# Executable file suffix (normally "").
18531exeext=$exeext
18532
18533# whether the shell understands "unset".
18534lt_unset=$lt_unset
18535
18536# turn spaces into newlines.
18537SP2NL=$lt_lt_SP2NL
18538
18539# turn newlines into spaces.
18540NL2SP=$lt_lt_NL2SP
18541
18542# convert \$build file names to \$host format.
18543to_host_file_cmd=$lt_cv_to_host_file_cmd
18544
18545# convert \$build files to toolchain format.
18546to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18547
18548# Method to check whether dependent libraries are shared objects.
18549deplibs_check_method=$lt_deplibs_check_method
18550
18551# Command to use when deplibs_check_method = "file_magic".
18552file_magic_cmd=$lt_file_magic_cmd
18553
18554# How to find potential files when deplibs_check_method = "file_magic".
18555file_magic_glob=$lt_file_magic_glob
18556
18557# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18558want_nocaseglob=$lt_want_nocaseglob
18559
18560# Command to associate shared and link libraries.
18561sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18562
18563# The archiver.
18564AR=$lt_AR
18565
18566# Flags to create an archive.
18567AR_FLAGS=$lt_AR_FLAGS
18568
18569# How to feed a file listing to the archiver.
18570archiver_list_spec=$lt_archiver_list_spec
18571
18572# A symbol stripping program.
18573STRIP=$lt_STRIP
18574
18575# Commands used to install an old-style archive.
18576RANLIB=$lt_RANLIB
18577old_postinstall_cmds=$lt_old_postinstall_cmds
18578old_postuninstall_cmds=$lt_old_postuninstall_cmds
18579
18580# Whether to use a lock for old archive extraction.
18581lock_old_archive_extraction=$lock_old_archive_extraction
18582
18583# A C compiler.
18584LTCC=$lt_CC
18585
18586# LTCC compiler flags.
18587LTCFLAGS=$lt_CFLAGS
18588
18589# Take the output of nm and produce a listing of raw symbols and C names.
18590global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18591
18592# Transform the output of nm in a proper C declaration.
18593global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18594
18595# Transform the output of nm into a list of symbols to manually relocate.
18596global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18597
18598# Transform the output of nm in a C name address pair.
18599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18600
18601# Transform the output of nm in a C name address pair when lib prefix is needed.
18602global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18603
18604# The name lister interface.
18605nm_interface=$lt_lt_cv_nm_interface
18606
18607# Specify filename containing input files for \$NM.
18608nm_file_list_spec=$lt_nm_file_list_spec
18609
18610# The root where to search for dependent libraries,and where our libraries should be installed.
18611lt_sysroot=$lt_sysroot
18612
18613# Command to truncate a binary pipe.
18614lt_truncate_bin=$lt_lt_cv_truncate_bin
18615
18616# The name of the directory that contains temporary libtool files.
18617objdir=$objdir
18618
18619# Used to examine libraries when file_magic_cmd begins with "file".
18620MAGIC_CMD=$MAGIC_CMD
18621
18622# Must we lock files when doing compilation?
18623need_locks=$lt_need_locks
18624
18625# Manifest tool.
18626MANIFEST_TOOL=$lt_MANIFEST_TOOL
18627
18628# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18629DSYMUTIL=$lt_DSYMUTIL
18630
18631# Tool to change global to local symbols on Mac OS X.
18632NMEDIT=$lt_NMEDIT
18633
18634# Tool to manipulate fat objects and archives on Mac OS X.
18635LIPO=$lt_LIPO
18636
18637# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18638OTOOL=$lt_OTOOL
18639
18640# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18641OTOOL64=$lt_OTOOL64
18642
18643# Old archive suffix (normally "a").
18644libext=$libext
18645
18646# Shared library suffix (normally ".so").
18647shrext_cmds=$lt_shrext_cmds
18648
18649# The commands to extract the exported symbol list from a shared archive.
18650extract_expsyms_cmds=$lt_extract_expsyms_cmds
18651
18652# Variables whose values should be saved in libtool wrapper scripts and
18653# restored at link time.
18654variables_saved_for_relink=$lt_variables_saved_for_relink
18655
18656# Do we need the "lib" prefix for modules?
18657need_lib_prefix=$need_lib_prefix
18658
18659# Do we need a version for libraries?
18660need_version=$need_version
18661
18662# Library versioning type.
18663version_type=$version_type
18664
18665# Shared library runtime path variable.
18666runpath_var=$runpath_var
18667
18668# Shared library path variable.
18669shlibpath_var=$shlibpath_var
18670
18671# Is shlibpath searched before the hard-coded library search path?
18672shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18673
18674# Format of library name prefix.
18675libname_spec=$lt_libname_spec
18676
18677# List of archive names.  First name is the real one, the rest are links.
18678# The last name is the one that the linker finds with -lNAME
18679library_names_spec=$lt_library_names_spec
18680
18681# The coded name of the library, if different from the real name.
18682soname_spec=$lt_soname_spec
18683
18684# Permission mode override for installation of shared libraries.
18685install_override_mode=$lt_install_override_mode
18686
18687# Command to use after installation of a shared archive.
18688postinstall_cmds=$lt_postinstall_cmds
18689
18690# Command to use after uninstallation of a shared archive.
18691postuninstall_cmds=$lt_postuninstall_cmds
18692
18693# Commands used to finish a libtool library installation in a directory.
18694finish_cmds=$lt_finish_cmds
18695
18696# As "finish_cmds", except a single script fragment to be evaled but
18697# not shown.
18698finish_eval=$lt_finish_eval
18699
18700# Whether we should hardcode library paths into libraries.
18701hardcode_into_libs=$hardcode_into_libs
18702
18703# Compile-time system search path for libraries.
18704sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18705
18706# Detected run-time system search path for libraries.
18707sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18708
18709# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18710configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18711
18712# Whether dlopen is supported.
18713dlopen_support=$enable_dlopen
18714
18715# Whether dlopen of programs is supported.
18716dlopen_self=$enable_dlopen_self
18717
18718# Whether dlopen of statically linked programs is supported.
18719dlopen_self_static=$enable_dlopen_self_static
18720
18721# Commands to strip libraries.
18722old_striplib=$lt_old_striplib
18723striplib=$lt_striplib
18724
18725
18726# The linker used to build libraries.
18727LD=$lt_LD
18728
18729# How to create reloadable object files.
18730reload_flag=$lt_reload_flag
18731reload_cmds=$lt_reload_cmds
18732
18733# Commands used to build an old-style archive.
18734old_archive_cmds=$lt_old_archive_cmds
18735
18736# A language specific compiler.
18737CC=$lt_compiler
18738
18739# Is the compiler the GNU compiler?
18740with_gcc=$GCC
18741
18742# Compiler flag to turn off builtin functions.
18743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18744
18745# Additional compiler flags for building library objects.
18746pic_flag=$lt_lt_prog_compiler_pic
18747
18748# How to pass a linker flag through the compiler.
18749wl=$lt_lt_prog_compiler_wl
18750
18751# Compiler flag to prevent dynamic linking.
18752link_static_flag=$lt_lt_prog_compiler_static
18753
18754# Does compiler simultaneously support -c and -o options?
18755compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18756
18757# Whether or not to add -lc for building shared libraries.
18758build_libtool_need_lc=$archive_cmds_need_lc
18759
18760# Whether or not to disallow shared libs when runtime libs are static.
18761allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18762
18763# Compiler flag to allow reflexive dlopens.
18764export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18765
18766# Compiler flag to generate shared objects directly from archives.
18767whole_archive_flag_spec=$lt_whole_archive_flag_spec
18768
18769# Whether the compiler copes with passing no objects directly.
18770compiler_needs_object=$lt_compiler_needs_object
18771
18772# Create an old-style archive from a shared archive.
18773old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18774
18775# Create a temporary old-style archive to link instead of a shared archive.
18776old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18777
18778# Commands used to build a shared archive.
18779archive_cmds=$lt_archive_cmds
18780archive_expsym_cmds=$lt_archive_expsym_cmds
18781
18782# Commands used to build a loadable module if different from building
18783# a shared archive.
18784module_cmds=$lt_module_cmds
18785module_expsym_cmds=$lt_module_expsym_cmds
18786
18787# Whether we are building with GNU ld or not.
18788with_gnu_ld=$lt_with_gnu_ld
18789
18790# Flag that allows shared libraries with undefined symbols to be built.
18791allow_undefined_flag=$lt_allow_undefined_flag
18792
18793# Flag that enforces no undefined symbols.
18794no_undefined_flag=$lt_no_undefined_flag
18795
18796# Flag to hardcode \$libdir into a binary during linking.
18797# This must work even if \$libdir does not exist
18798hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18799
18800# Whether we need a single "-rpath" flag with a separated argument.
18801hardcode_libdir_separator=$lt_hardcode_libdir_separator
18802
18803# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18804# DIR into the resulting binary.
18805hardcode_direct=$hardcode_direct
18806
18807# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18808# DIR into the resulting binary and the resulting library dependency is
18809# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18810# library is relocated.
18811hardcode_direct_absolute=$hardcode_direct_absolute
18812
18813# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18814# into the resulting binary.
18815hardcode_minus_L=$hardcode_minus_L
18816
18817# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18818# into the resulting binary.
18819hardcode_shlibpath_var=$hardcode_shlibpath_var
18820
18821# Set to "yes" if building a shared library automatically hardcodes DIR
18822# into the library and all subsequent libraries and executables linked
18823# against it.
18824hardcode_automatic=$hardcode_automatic
18825
18826# Set to yes if linker adds runtime paths of dependent libraries
18827# to runtime path list.
18828inherit_rpath=$inherit_rpath
18829
18830# Whether libtool must link a program against all its dependency libraries.
18831link_all_deplibs=$link_all_deplibs
18832
18833# Set to "yes" if exported symbols are required.
18834always_export_symbols=$always_export_symbols
18835
18836# The commands to list exported symbols.
18837export_symbols_cmds=$lt_export_symbols_cmds
18838
18839# Symbols that should not be listed in the preloaded symbols.
18840exclude_expsyms=$lt_exclude_expsyms
18841
18842# Symbols that must always be exported.
18843include_expsyms=$lt_include_expsyms
18844
18845# Commands necessary for linking programs (against libraries) with templates.
18846prelink_cmds=$lt_prelink_cmds
18847
18848# Commands necessary for finishing linking programs.
18849postlink_cmds=$lt_postlink_cmds
18850
18851# Specify filename containing input files.
18852file_list_spec=$lt_file_list_spec
18853
18854# How to hardcode a shared library path into an executable.
18855hardcode_action=$hardcode_action
18856
18857# ### END LIBTOOL CONFIG
18858
18859_LT_EOF
18860
18861    cat <<'_LT_EOF' >> "$cfgfile"
18862
18863# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18864
18865# func_munge_path_list VARIABLE PATH
18866# -----------------------------------
18867# VARIABLE is name of variable containing _space_ separated list of
18868# directories to be munged by the contents of PATH, which is string
18869# having a format:
18870# "DIR[:DIR]:"
18871#       string "DIR[ DIR]" will be prepended to VARIABLE
18872# ":DIR[:DIR]"
18873#       string "DIR[ DIR]" will be appended to VARIABLE
18874# "DIRP[:DIRP]::[DIRA:]DIRA"
18875#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18876#       "DIRA[ DIRA]" will be appended to VARIABLE
18877# "DIR[:DIR]"
18878#       VARIABLE will be replaced by "DIR[ DIR]"
18879func_munge_path_list ()
18880{
18881    case x$2 in
18882    x)
18883        ;;
18884    *:)
18885        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18886        ;;
18887    x:*)
18888        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18889        ;;
18890    *::*)
18891        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18892        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18893        ;;
18894    *)
18895        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18896        ;;
18897    esac
18898}
18899
18900
18901# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18902func_cc_basename ()
18903{
18904    for cc_temp in $*""; do
18905      case $cc_temp in
18906        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18907        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18908        \-*) ;;
18909        *) break;;
18910      esac
18911    done
18912    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18913}
18914
18915
18916# ### END FUNCTIONS SHARED WITH CONFIGURE
18917
18918_LT_EOF
18919
18920  case $host_os in
18921  aix3*)
18922    cat <<\_LT_EOF >> "$cfgfile"
18923# AIX sometimes has problems with the GCC collect2 program.  For some
18924# reason, if we set the COLLECT_NAMES environment variable, the problems
18925# vanish in a puff of smoke.
18926if test set != "${COLLECT_NAMES+set}"; then
18927  COLLECT_NAMES=
18928  export COLLECT_NAMES
18929fi
18930_LT_EOF
18931    ;;
18932  esac
18933
18934
18935ltmain=$ac_aux_dir/ltmain.sh
18936
18937
18938  # We use sed instead of cat because bash on DJGPP gets confused if
18939  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18940  # text mode, it properly converts lines to CR/LF.  This bash problem
18941  # is reportedly fixed, but why not run on old versions too?
18942  sed '$q' "$ltmain" >> "$cfgfile" \
18943     || (rm -f "$cfgfile"; exit 1)
18944
18945   mv -f "$cfgfile" "$ofile" ||
18946    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18947  chmod +x "$ofile"
18948
18949 ;;
18950
18951  esac
18952done # for ac_tag
18953
18954
18955as_fn_exit 0
18956_ACEOF
18957ac_clean_files=$ac_clean_files_save
18958
18959test $ac_write_fail = 0 ||
18960  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18961
18962
18963# configure is writing to config.log, and then calls config.status.
18964# config.status does its own redirection, appending to config.log.
18965# Unfortunately, on DOS this fails, as config.log is still kept open
18966# by configure, so config.status won't be able to write to it; its
18967# output is simply discarded.  So we exec the FD to /dev/null,
18968# effectively closing config.log, so it can be properly (re)opened and
18969# appended to by config.status.  When coming back to configure, we
18970# need to make the FD available again.
18971if test "$no_create" != yes; then
18972  ac_cs_success=:
18973  ac_config_status_args=
18974  test "$silent" = yes &&
18975    ac_config_status_args="$ac_config_status_args --quiet"
18976  exec 5>/dev/null
18977  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18978  exec 5>>config.log
18979  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18980  # would make configure fail if this is the last instruction.
18981  $ac_cs_success || as_fn_exit 1
18982fi
18983if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18984  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18985$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18986fi
18987
18988