1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Find the correct PATH separator.  Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13  UNAME=${UNAME-`uname 2>/dev/null`}
14  case X$UNAME in
15    *-DOS) lt_cv_sys_path_separator=';' ;;
16    *)     lt_cv_sys_path_separator=':' ;;
17  esac
18  PATH_SEPARATOR=$lt_cv_sys_path_separator
19fi
20
21
22# Check that we are running under the correct shell.
23SHELL=${CONFIG_SHELL-/bin/sh}
24
25case X$ECHO in
26X*--fallback-echo)
27  # Remove one level of quotation (which was required for Make).
28  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29  ;;
30esac
31
32echo=${ECHO-echo}
33if test "X$1" = X--no-reexec; then
34  # Discard the --no-reexec flag, and continue.
35  shift
36elif test "X$1" = X--fallback-echo; then
37  # Avoid inline document here, it may be left over
38  :
39elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40  # Yippee, $echo works!
41  :
42else
43  # Restart under the correct shell.
44  exec $SHELL "$0" --no-reexec ${1+"$@"}
45fi
46
47if test "X$1" = X--fallback-echo; then
48  # used as fallback echo
49  shift
50  cat <<EOF
51
52EOF
53  exit 0
54fi
55
56# The HP-UX ksh and POSIX shell print the target directory to stdout
57# if CDPATH is set.
58if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60if test -z "$ECHO"; then
61if test "X${echo_test_string+set}" != Xset; then
62# find a string as large as possible, as long as the shell can cope with it
63  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66       echo_test_string="`eval $cmd`" &&
67       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68    then
69      break
70    fi
71  done
72fi
73
74if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76   test "X$echo_testing_string" = "X$echo_test_string"; then
77  :
78else
79  # The Solaris, AIX, and Digital Unix default echo programs unquote
80  # backslashes.  This makes it impossible to quote backslashes using
81  #   echo "$something" | sed 's/\\/\\\\/g'
82  #
83  # So, first we look for a working echo in the user's PATH.
84
85  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86  for dir in $PATH /usr/ucb; do
87    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90       test "X$echo_testing_string" = "X$echo_test_string"; then
91      echo="$dir/echo"
92      break
93    fi
94  done
95  IFS="$save_ifs"
96
97  if test "X$echo" = Xecho; then
98    # We didn't find a better echo, so look for alternatives.
99    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101       test "X$echo_testing_string" = "X$echo_test_string"; then
102      # This shell has a builtin print -r that does the trick.
103      echo='print -r'
104    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105	 test "X$CONFIG_SHELL" != X/bin/ksh; then
106      # If we have ksh, try running configure again with it.
107      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108      export ORIGINAL_CONFIG_SHELL
109      CONFIG_SHELL=/bin/ksh
110      export CONFIG_SHELL
111      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112    else
113      # Try using printf.
114      echo='printf %s\n'
115      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117	 test "X$echo_testing_string" = "X$echo_test_string"; then
118	# Cool, printf works
119	:
120      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121	   test "X$echo_testing_string" = 'X\t' &&
122	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123	   test "X$echo_testing_string" = "X$echo_test_string"; then
124	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125	export CONFIG_SHELL
126	SHELL="$CONFIG_SHELL"
127	export SHELL
128	echo="$CONFIG_SHELL $0 --fallback-echo"
129      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130	   test "X$echo_testing_string" = 'X\t' &&
131	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132	   test "X$echo_testing_string" = "X$echo_test_string"; then
133	echo="$CONFIG_SHELL $0 --fallback-echo"
134      else
135	# maybe with a smaller string...
136	prev=:
137
138	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140	  then
141	    break
142	  fi
143	  prev="$cmd"
144	done
145
146	if test "$prev" != 'sed 50q "$0"'; then
147	  echo_test_string=`eval $prev`
148	  export echo_test_string
149	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150	else
151	  # Oops.  We lost completely, so just stick with echo.
152	  echo=echo
153	fi
154      fi
155    fi
156  fi
157fi
158fi
159
160# Copy echo and quote the copy suitably for passing to libtool from
161# the Makefile, instead of quoting the original, which is used later.
162ECHO=$echo
163if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165fi
166
167
168
169if expr a : '\(a\)' >/dev/null 2>&1; then
170  as_expr=expr
171else
172  as_expr=false
173fi
174
175
176## --------------------- ##
177## M4sh Initialization.  ##
178## --------------------- ##
179
180# Be Bourne compatible
181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182  emulate sh
183  NULLCMD=:
184elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185  set -o posix
186fi
187
188# NLS nuisances.
189# Support unset when possible.
190if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191  as_unset=unset
192else
193  as_unset=false
194fi
195
196(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197    { $as_unset LANG || test "${LANG+set}" != set; } ||
198      { LANG=C; export LANG; }
199(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201      { LC_ALL=C; export LC_ALL; }
202(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204      { LC_TIME=C; export LC_TIME; }
205(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207      { LC_CTYPE=C; export LC_CTYPE; }
208(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210      { LANGUAGE=C; export LANGUAGE; }
211(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213      { LC_COLLATE=C; export LC_COLLATE; }
214(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216      { LC_NUMERIC=C; export LC_NUMERIC; }
217(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219      { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222# Name of the executable.
223as_me=`(basename "$0") 2>/dev/null ||
224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225	 X"$0" : 'X\(//\)$' \| \
226	 X"$0" : 'X\(/\)$' \| \
227	 .     : '\(.\)' 2>/dev/null ||
228echo X/"$0" |
229    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
231  	  /^X\/\(\/\).*/{ s//\1/; q; }
232  	  s/.*/./; q'`
233
234# PATH needs CR, and LINENO needs CR and PATH.
235# Avoid depending upon Character Ranges.
236as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239as_cr_digits='0123456789'
240as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242# The user is always right.
243if test "${PATH_SEPARATOR+set}" != set; then
244  echo "#! /bin/sh" >conftest.sh
245  echo  "exit 0"   >>conftest.sh
246  chmod +x conftest.sh
247  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248    PATH_SEPARATOR=';'
249  else
250    PATH_SEPARATOR=:
251  fi
252  rm -f conftest.sh
253fi
254
255
256  as_lineno_1=$LINENO
257  as_lineno_2=$LINENO
258  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259  test "x$as_lineno_1" != "x$as_lineno_2" &&
260  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261  # Find who we are.  Look in the path if we contain no path at all
262  # relative or not.
263  case $0 in
264    *[\\/]* ) as_myself=$0 ;;
265    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266for as_dir in $PATH
267do
268  IFS=$as_save_IFS
269  test -z "$as_dir" && as_dir=.
270  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271done
272
273       ;;
274  esac
275  # We did not find ourselves, most probably we were run as `sh COMMAND'
276  # in which case we are not to be found in the path.
277  if test "x$as_myself" = x; then
278    as_myself=$0
279  fi
280  if test ! -f "$as_myself"; then
281    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282   { (exit 1); exit 1; }; }
283  fi
284  case $CONFIG_SHELL in
285  '')
286    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288do
289  IFS=$as_save_IFS
290  test -z "$as_dir" && as_dir=.
291  for as_base in sh bash ksh sh5; do
292	 case $as_dir in
293	 /*)
294	   if ("$as_dir/$as_base" -c '
295  as_lineno_1=$LINENO
296  as_lineno_2=$LINENO
297  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298  test "x$as_lineno_1" != "x$as_lineno_2" &&
299  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300	     CONFIG_SHELL=$as_dir/$as_base
301	     export CONFIG_SHELL
302	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303	   fi;;
304	 esac
305       done
306done
307;;
308  esac
309
310  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311  # uniformly replaced by the line number.  The first 'sed' inserts a
312  # line-number line before each line; the second 'sed' does the real
313  # work.  The second script uses 'N' to pair each line-number line
314  # with the numbered line, and appends trailing '-' during
315  # substitution so that $LINENO is not a special case at line end.
316  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318  sed '=' <$as_myself |
319    sed '
320      N
321      s,$,-,
322      : loop
323      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324      t loop
325      s,-$,,
326      s,^['$as_cr_digits']*\n,,
327    ' >$as_me.lineno &&
328  chmod +x $as_me.lineno ||
329    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330   { (exit 1); exit 1; }; }
331
332  # Don't try to exec as it changes $[0], causing all sort of problems
333  # (the dirname of $[0] is not the place where we might find the
334  # original and so on.  Autoconf is especially sensible to this).
335  . ./$as_me.lineno
336  # Exit status is that of the last command.
337  exit
338}
339
340
341case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342  *c*,-n*) ECHO_N= ECHO_C='
343' ECHO_T='	' ;;
344  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346esac
347
348if expr a : '\(a\)' >/dev/null 2>&1; then
349  as_expr=expr
350else
351  as_expr=false
352fi
353
354rm -f conf$$ conf$$.exe conf$$.file
355echo >conf$$.file
356if ln -s conf$$.file conf$$ 2>/dev/null; then
357  # We could just check for DJGPP; but this test a) works b) is more generic
358  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359  if test -f conf$$.exe; then
360    # Don't use ln at all; we don't have any links
361    as_ln_s='cp -p'
362  else
363    as_ln_s='ln -s'
364  fi
365elif ln conf$$.file conf$$ 2>/dev/null; then
366  as_ln_s=ln
367else
368  as_ln_s='cp -p'
369fi
370rm -f conf$$ conf$$.exe conf$$.file
371
372as_executable_p="test -f"
373
374# Sed expression to map a string onto a valid CPP name.
375as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377# Sed expression to map a string onto a valid variable name.
378as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381# IFS
382# We need space, tab and new line, in precisely that order.
383as_nl='
384'
385IFS=" 	$as_nl"
386
387# CDPATH.
388$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391# Name of the host.
392# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393# so uname gets run too.
394ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396exec 6>&1
397
398#
399# Initializations.
400#
401ac_default_prefix=/usr/local
402cross_compiling=no
403subdirs=
404MFLAGS=
405MAKEFLAGS=
406SHELL=${CONFIG_SHELL-/bin/sh}
407
408# Maximum number of lines to put in a shell here document.
409# This variable seems obsolete.  It should probably be removed, and
410# only ac_max_sed_lines should be used.
411: ${ac_max_here_lines=38}
412
413# Identity of this package.
414PACKAGE_NAME=
415PACKAGE_TARNAME=
416PACKAGE_VERSION=
417PACKAGE_STRING=
418PACKAGE_BUGREPORT=
419
420ac_unique_file="fit.c"
421# Factoring default headers for most tests.
422ac_includes_default="\
423#include <stdio.h>
424#if HAVE_SYS_TYPES_H
425# include <sys/types.h>
426#endif
427#if HAVE_SYS_STAT_H
428# include <sys/stat.h>
429#endif
430#if STDC_HEADERS
431# include <stdlib.h>
432# include <stddef.h>
433#else
434# if HAVE_STDLIB_H
435#  include <stdlib.h>
436# endif
437#endif
438#if HAVE_STRING_H
439# if !STDC_HEADERS && HAVE_MEMORY_H
440#  include <memory.h>
441# endif
442# include <string.h>
443#endif
444#if HAVE_STRINGS_H
445# include <strings.h>
446#endif
447#if HAVE_INTTYPES_H
448# include <inttypes.h>
449#else
450# if HAVE_STDINT_H
451#  include <stdint.h>
452# endif
453#endif
454#if HAVE_UNISTD_H
455# include <unistd.h>
456#endif"
457
458
459# Initialize some variables set by options.
460ac_init_help=
461ac_init_version=false
462# The variables have the same names as the options, with
463# dashes changed to underlines.
464cache_file=/dev/null
465exec_prefix=NONE
466no_create=
467no_recursion=
468prefix=NONE
469program_prefix=NONE
470program_suffix=NONE
471program_transform_name=s,x,x,
472silent=
473site=
474srcdir=
475verbose=
476x_includes=NONE
477x_libraries=NONE
478
479# Installation directory options.
480# These are left unexpanded so users can "make install exec_prefix=/foo"
481# and all the variables that are supposed to be based on exec_prefix
482# by default will actually change.
483# Use braces instead of parens because sh, perl, etc. also accept them.
484bindir='${exec_prefix}/bin'
485sbindir='${exec_prefix}/sbin'
486libexecdir='${exec_prefix}/libexec'
487datadir='${prefix}/share'
488sysconfdir='${prefix}/etc'
489sharedstatedir='${prefix}/com'
490localstatedir='${prefix}/var'
491libdir='${exec_prefix}/lib'
492includedir='${prefix}/include'
493oldincludedir='/usr/include'
494infodir='${prefix}/info'
495mandir='${prefix}/man'
496
497ac_prev=
498for ac_option
499do
500  # If the previous option needs an argument, assign it.
501  if test -n "$ac_prev"; then
502    eval "$ac_prev=\$ac_option"
503    ac_prev=
504    continue
505  fi
506
507  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509  # Accept the important Cygnus configure options, so we can diagnose typos.
510
511  case $ac_option in
512
513  -bindir | --bindir | --bindi | --bind | --bin | --bi)
514    ac_prev=bindir ;;
515  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516    bindir=$ac_optarg ;;
517
518  -build | --build | --buil | --bui | --bu)
519    ac_prev=build_alias ;;
520  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521    build_alias=$ac_optarg ;;
522
523  -cache-file | --cache-file | --cache-fil | --cache-fi \
524  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525    ac_prev=cache_file ;;
526  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528    cache_file=$ac_optarg ;;
529
530  --config-cache | -C)
531    cache_file=config.cache ;;
532
533  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534    ac_prev=datadir ;;
535  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536  | --da=*)
537    datadir=$ac_optarg ;;
538
539  -disable-* | --disable-*)
540    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541    # Reject names that are not valid shell variable names.
542    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544   { (exit 1); exit 1; }; }
545    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546    eval "enable_$ac_feature=no" ;;
547
548  -enable-* | --enable-*)
549    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553   { (exit 1); exit 1; }; }
554    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555    case $ac_option in
556      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557      *) ac_optarg=yes ;;
558    esac
559    eval "enable_$ac_feature='$ac_optarg'" ;;
560
561  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563  | --exec | --exe | --ex)
564    ac_prev=exec_prefix ;;
565  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567  | --exec=* | --exe=* | --ex=*)
568    exec_prefix=$ac_optarg ;;
569
570  -gas | --gas | --ga | --g)
571    # Obsolete; use --with-gas.
572    with_gas=yes ;;
573
574  -help | --help | --hel | --he | -h)
575    ac_init_help=long ;;
576  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577    ac_init_help=recursive ;;
578  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579    ac_init_help=short ;;
580
581  -host | --host | --hos | --ho)
582    ac_prev=host_alias ;;
583  -host=* | --host=* | --hos=* | --ho=*)
584    host_alias=$ac_optarg ;;
585
586  -includedir | --includedir | --includedi | --included | --include \
587  | --includ | --inclu | --incl | --inc)
588    ac_prev=includedir ;;
589  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590  | --includ=* | --inclu=* | --incl=* | --inc=*)
591    includedir=$ac_optarg ;;
592
593  -infodir | --infodir | --infodi | --infod | --info | --inf)
594    ac_prev=infodir ;;
595  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596    infodir=$ac_optarg ;;
597
598  -libdir | --libdir | --libdi | --libd)
599    ac_prev=libdir ;;
600  -libdir=* | --libdir=* | --libdi=* | --libd=*)
601    libdir=$ac_optarg ;;
602
603  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604  | --libexe | --libex | --libe)
605    ac_prev=libexecdir ;;
606  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607  | --libexe=* | --libex=* | --libe=*)
608    libexecdir=$ac_optarg ;;
609
610  -localstatedir | --localstatedir | --localstatedi | --localstated \
611  | --localstate | --localstat | --localsta | --localst \
612  | --locals | --local | --loca | --loc | --lo)
613    ac_prev=localstatedir ;;
614  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617    localstatedir=$ac_optarg ;;
618
619  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620    ac_prev=mandir ;;
621  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622    mandir=$ac_optarg ;;
623
624  -nfp | --nfp | --nf)
625    # Obsolete; use --without-fp.
626    with_fp=no ;;
627
628  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629  | --no-cr | --no-c | -n)
630    no_create=yes ;;
631
632  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634    no_recursion=yes ;;
635
636  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638  | --oldin | --oldi | --old | --ol | --o)
639    ac_prev=oldincludedir ;;
640  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643    oldincludedir=$ac_optarg ;;
644
645  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646    ac_prev=prefix ;;
647  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648    prefix=$ac_optarg ;;
649
650  -program-prefix | --program-prefix | --program-prefi | --program-pref \
651  | --program-pre | --program-pr | --program-p)
652    ac_prev=program_prefix ;;
653  -program-prefix=* | --program-prefix=* | --program-prefi=* \
654  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655    program_prefix=$ac_optarg ;;
656
657  -program-suffix | --program-suffix | --program-suffi | --program-suff \
658  | --program-suf | --program-su | --program-s)
659    ac_prev=program_suffix ;;
660  -program-suffix=* | --program-suffix=* | --program-suffi=* \
661  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662    program_suffix=$ac_optarg ;;
663
664  -program-transform-name | --program-transform-name \
665  | --program-transform-nam | --program-transform-na \
666  | --program-transform-n | --program-transform- \
667  | --program-transform | --program-transfor \
668  | --program-transfo | --program-transf \
669  | --program-trans | --program-tran \
670  | --progr-tra | --program-tr | --program-t)
671    ac_prev=program_transform_name ;;
672  -program-transform-name=* | --program-transform-name=* \
673  | --program-transform-nam=* | --program-transform-na=* \
674  | --program-transform-n=* | --program-transform-=* \
675  | --program-transform=* | --program-transfor=* \
676  | --program-transfo=* | --program-transf=* \
677  | --program-trans=* | --program-tran=* \
678  | --progr-tra=* | --program-tr=* | --program-t=*)
679    program_transform_name=$ac_optarg ;;
680
681  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682  | -silent | --silent | --silen | --sile | --sil)
683    silent=yes ;;
684
685  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686    ac_prev=sbindir ;;
687  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688  | --sbi=* | --sb=*)
689    sbindir=$ac_optarg ;;
690
691  -sharedstatedir | --sharedstatedir | --sharedstatedi \
692  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693  | --sharedst | --shareds | --shared | --share | --shar \
694  | --sha | --sh)
695    ac_prev=sharedstatedir ;;
696  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699  | --sha=* | --sh=*)
700    sharedstatedir=$ac_optarg ;;
701
702  -site | --site | --sit)
703    ac_prev=site ;;
704  -site=* | --site=* | --sit=*)
705    site=$ac_optarg ;;
706
707  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708    ac_prev=srcdir ;;
709  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710    srcdir=$ac_optarg ;;
711
712  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713  | --syscon | --sysco | --sysc | --sys | --sy)
714    ac_prev=sysconfdir ;;
715  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717    sysconfdir=$ac_optarg ;;
718
719  -target | --target | --targe | --targ | --tar | --ta | --t)
720    ac_prev=target_alias ;;
721  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722    target_alias=$ac_optarg ;;
723
724  -v | -verbose | --verbose | --verbos | --verbo | --verb)
725    verbose=yes ;;
726
727  -version | --version | --versio | --versi | --vers | -V)
728    ac_init_version=: ;;
729
730  -with-* | --with-*)
731    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732    # Reject names that are not valid shell variable names.
733    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734      { echo "$as_me: error: invalid package name: $ac_package" >&2
735   { (exit 1); exit 1; }; }
736    ac_package=`echo $ac_package| sed 's/-/_/g'`
737    case $ac_option in
738      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739      *) ac_optarg=yes ;;
740    esac
741    eval "with_$ac_package='$ac_optarg'" ;;
742
743  -without-* | --without-*)
744    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package | sed 's/-/_/g'`
750    eval "with_$ac_package=no" ;;
751
752  --x)
753    # Obsolete; use --with-x.
754    with_x=yes ;;
755
756  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757  | --x-incl | --x-inc | --x-in | --x-i)
758    ac_prev=x_includes ;;
759  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761    x_includes=$ac_optarg ;;
762
763  -x-libraries | --x-libraries | --x-librarie | --x-librari \
764  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765    ac_prev=x_libraries ;;
766  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768    x_libraries=$ac_optarg ;;
769
770  -*) { echo "$as_me: error: unrecognized option: $ac_option
771Try \`$0 --help' for more information." >&2
772   { (exit 1); exit 1; }; }
773    ;;
774
775  *=*)
776    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777    # Reject names that are not valid shell variable names.
778    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780   { (exit 1); exit 1; }; }
781    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782    eval "$ac_envvar='$ac_optarg'"
783    export $ac_envvar ;;
784
785  *)
786    # FIXME: should be removed in autoconf 3.0.
787    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791    ;;
792
793  esac
794done
795
796if test -n "$ac_prev"; then
797  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798  { echo "$as_me: error: missing argument to $ac_option" >&2
799   { (exit 1); exit 1; }; }
800fi
801
802# Be sure to have absolute paths.
803for ac_var in exec_prefix prefix
804do
805  eval ac_val=$`echo $ac_var`
806  case $ac_val in
807    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809   { (exit 1); exit 1; }; };;
810  esac
811done
812
813# Be sure to have absolute paths.
814for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815              localstatedir libdir includedir oldincludedir infodir mandir
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# There might be people who depend on the old broken behavior: `$host'
826# used to hold the argument of --host etc.
827# FIXME: To remove some day.
828build=$build_alias
829host=$host_alias
830target=$target_alias
831
832# FIXME: To remove some day.
833if test "x$host_alias" != x; then
834  if test "x$build_alias" = x; then
835    cross_compiling=maybe
836    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837    If a cross compiler is detected then cross compile mode will be used." >&2
838  elif test "x$build_alias" != "x$host_alias"; then
839    cross_compiling=yes
840  fi
841fi
842
843ac_tool_prefix=
844test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846test "$silent" = yes && exec 6>/dev/null
847
848
849# Find the source files, if location was not specified.
850if test -z "$srcdir"; then
851  ac_srcdir_defaulted=yes
852  # Try the directory containing this script, then its parent.
853  ac_confdir=`(dirname "$0") 2>/dev/null ||
854$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855         X"$0" : 'X\(//\)[^/]' \| \
856         X"$0" : 'X\(//\)$' \| \
857         X"$0" : 'X\(/\)' \| \
858         .     : '\(.\)' 2>/dev/null ||
859echo X"$0" |
860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862  	  /^X\(\/\/\)$/{ s//\1/; q; }
863  	  /^X\(\/\).*/{ s//\1/; q; }
864  	  s/.*/./; q'`
865  srcdir=$ac_confdir
866  if test ! -r $srcdir/$ac_unique_file; then
867    srcdir=..
868  fi
869else
870  ac_srcdir_defaulted=no
871fi
872if test ! -r $srcdir/$ac_unique_file; then
873  if test "$ac_srcdir_defaulted" = yes; then
874    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875   { (exit 1); exit 1; }; }
876  else
877    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878   { (exit 1); exit 1; }; }
879  fi
880fi
881srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882ac_env_build_alias_set=${build_alias+set}
883ac_env_build_alias_value=$build_alias
884ac_cv_env_build_alias_set=${build_alias+set}
885ac_cv_env_build_alias_value=$build_alias
886ac_env_host_alias_set=${host_alias+set}
887ac_env_host_alias_value=$host_alias
888ac_cv_env_host_alias_set=${host_alias+set}
889ac_cv_env_host_alias_value=$host_alias
890ac_env_target_alias_set=${target_alias+set}
891ac_env_target_alias_value=$target_alias
892ac_cv_env_target_alias_set=${target_alias+set}
893ac_cv_env_target_alias_value=$target_alias
894ac_env_CC_set=${CC+set}
895ac_env_CC_value=$CC
896ac_cv_env_CC_set=${CC+set}
897ac_cv_env_CC_value=$CC
898ac_env_CFLAGS_set=${CFLAGS+set}
899ac_env_CFLAGS_value=$CFLAGS
900ac_cv_env_CFLAGS_set=${CFLAGS+set}
901ac_cv_env_CFLAGS_value=$CFLAGS
902ac_env_LDFLAGS_set=${LDFLAGS+set}
903ac_env_LDFLAGS_value=$LDFLAGS
904ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905ac_cv_env_LDFLAGS_value=$LDFLAGS
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910ac_env_CPP_set=${CPP+set}
911ac_env_CPP_value=$CPP
912ac_cv_env_CPP_set=${CPP+set}
913ac_cv_env_CPP_value=$CPP
914ac_env_CXX_set=${CXX+set}
915ac_env_CXX_value=$CXX
916ac_cv_env_CXX_set=${CXX+set}
917ac_cv_env_CXX_value=$CXX
918ac_env_CXXFLAGS_set=${CXXFLAGS+set}
919ac_env_CXXFLAGS_value=$CXXFLAGS
920ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
921ac_cv_env_CXXFLAGS_value=$CXXFLAGS
922
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927  # Omit some internal or obsolete options to make the list less imposing.
928  # This message is too long to be a string in the A/UX 3.1 sh.
929  cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
931
932Usage: $0 [OPTION]... [VAR=VALUE]...
933
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937Defaults for the options are specified in brackets.
938
939Configuration:
940  -h, --help              display this help and exit
941      --help=short        display options specific to this package
942      --help=recursive    display the short help of all the included packages
943  -V, --version           display version information and exit
944  -q, --quiet, --silent   do not print \`checking...' messages
945      --cache-file=FILE   cache test results in FILE [disabled]
946  -C, --config-cache      alias for \`--cache-file=config.cache'
947  -n, --no-create         do not create output files
948      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952  cat <<_ACEOF
953Installation directories:
954  --prefix=PREFIX         install architecture-independent files in PREFIX
955                          [$ac_default_prefix]
956  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                          [PREFIX]
958
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
963
964For better control, use the options below.
965
966Fine tuning of the installation directories:
967  --bindir=DIR           user executables [EPREFIX/bin]
968  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969  --libexecdir=DIR       program executables [EPREFIX/libexec]
970  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974  --libdir=DIR           object code libraries [EPREFIX/lib]
975  --includedir=DIR       C header files [PREFIX/include]
976  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977  --infodir=DIR          info documentation [PREFIX/info]
978  --mandir=DIR           man documentation [PREFIX/man]
979_ACEOF
980
981  cat <<\_ACEOF
982
983Program names:
984  --program-prefix=PREFIX            prepend PREFIX to installed program names
985  --program-suffix=SUFFIX            append SUFFIX to installed program names
986  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988System types:
989  --build=BUILD     configure for building on BUILD [guessed]
990  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991_ACEOF
992fi
993
994if test -n "$ac_init_help"; then
995
996  cat <<\_ACEOF
997
998Optional Features:
999  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1000  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1001  --disable-dependency-tracking Speeds up one-time builds
1002  --enable-dependency-tracking  Do not reject slow dependency extractors
1003  --enable-shared=PKGS  build shared libraries default=yes
1004  --enable-static=PKGS  build static libraries default=yes
1005  --enable-fast-install=PKGS  optimize for fast installation default=yes
1006  --disable-libtool-lock  avoid locking (might break parallel builds)
1007  --enable-maintainer-mode enable make rules and dependencies not useful
1008                          (and sometimes confusing) to the casual installer
1009  --disable-pstoedittest       Do not try to compile and run a test Pstoedit program
1010
1011Optional Packages:
1012  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1013  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1014  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1015  --with-pic              try to use only PIC/non-PIC objects default=use both
1016  --with-magick  compile with maigck(default)
1017  --without-magick  compile without maigck
1018  --with-pstoedit link with pstoedit library(default)
1019  --without-pstoedit link without pstoedit library
1020  --with-pstoedit-prefix=PFX   Prefix where Pstoedit is installed (optional)
1021  --with-pstoedit-exec-prefix=PFX Exec prefix where Pstoedit is installed (optional)
1022
1023Some influential environment variables:
1024  CC          C compiler command
1025  CFLAGS      C compiler flags
1026  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1027              nonstandard directory <lib dir>
1028  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1029              headers in a nonstandard directory <include dir>
1030  CPP         C preprocessor
1031  CXX         C++ compiler command
1032  CXXFLAGS    C++ compiler flags
1033
1034Use these variables to override the choices made by `configure' or to help
1035it to find libraries and programs with nonstandard names/locations.
1036
1037_ACEOF
1038fi
1039
1040if test "$ac_init_help" = "recursive"; then
1041  # If there are subdirs, report their specific --help.
1042  ac_popdir=`pwd`
1043  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1044    test -d $ac_dir || continue
1045    ac_builddir=.
1046
1047if test "$ac_dir" != .; then
1048  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1049  # A "../" for each directory in $ac_dir_suffix.
1050  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1051else
1052  ac_dir_suffix= ac_top_builddir=
1053fi
1054
1055case $srcdir in
1056  .)  # No --srcdir option.  We are building in place.
1057    ac_srcdir=.
1058    if test -z "$ac_top_builddir"; then
1059       ac_top_srcdir=.
1060    else
1061       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1062    fi ;;
1063  [\\/]* | ?:[\\/]* )  # Absolute path.
1064    ac_srcdir=$srcdir$ac_dir_suffix;
1065    ac_top_srcdir=$srcdir ;;
1066  *) # Relative path.
1067    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1068    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1069esac
1070# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1071# absolute.
1072ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1073ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1074ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1075ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1076
1077    cd $ac_dir
1078    # Check for guested configure; otherwise get Cygnus style configure.
1079    if test -f $ac_srcdir/configure.gnu; then
1080      echo
1081      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1082    elif test -f $ac_srcdir/configure; then
1083      echo
1084      $SHELL $ac_srcdir/configure  --help=recursive
1085    elif test -f $ac_srcdir/configure.ac ||
1086           test -f $ac_srcdir/configure.in; then
1087      echo
1088      $ac_configure --help
1089    else
1090      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1091    fi
1092    cd $ac_popdir
1093  done
1094fi
1095
1096test -n "$ac_init_help" && exit 0
1097if $ac_init_version; then
1098  cat <<\_ACEOF
1099
1100Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1101Free Software Foundation, Inc.
1102This configure script is free software; the Free Software Foundation
1103gives unlimited permission to copy, distribute and modify it.
1104_ACEOF
1105  exit 0
1106fi
1107exec 5>config.log
1108cat >&5 <<_ACEOF
1109This file contains any messages produced by compilers while
1110running configure, to aid debugging if configure makes a mistake.
1111
1112It was created by $as_me, which was
1113generated by GNU Autoconf 2.53.  Invocation command line was
1114
1115  $ $0 $@
1116
1117_ACEOF
1118{
1119cat <<_ASUNAME
1120## --------- ##
1121## Platform. ##
1122## --------- ##
1123
1124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1125uname -m = `(uname -m) 2>/dev/null || echo unknown`
1126uname -r = `(uname -r) 2>/dev/null || echo unknown`
1127uname -s = `(uname -s) 2>/dev/null || echo unknown`
1128uname -v = `(uname -v) 2>/dev/null || echo unknown`
1129
1130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1131/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1132
1133/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1134/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1136hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1137/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1138/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1139/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1140
1141_ASUNAME
1142
1143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1144for as_dir in $PATH
1145do
1146  IFS=$as_save_IFS
1147  test -z "$as_dir" && as_dir=.
1148  echo "PATH: $as_dir"
1149done
1150
1151} >&5
1152
1153cat >&5 <<_ACEOF
1154
1155
1156## ----------- ##
1157## Core tests. ##
1158## ----------- ##
1159
1160_ACEOF
1161
1162
1163# Keep a trace of the command line.
1164# Strip out --no-create and --no-recursion so they do not pile up.
1165# Also quote any args containing shell meta-characters.
1166ac_configure_args=
1167ac_sep=
1168for ac_arg
1169do
1170  case $ac_arg in
1171  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172  | --no-cr | --no-c | -n ) continue ;;
1173  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175    continue ;;
1176  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1177    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1178  esac
1179  case " $ac_configure_args " in
1180    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1181    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1182       ac_sep=" " ;;
1183  esac
1184  # Get rid of the leading space.
1185done
1186
1187# When interrupted or exit'd, cleanup temporary files, and complete
1188# config.log.  We remove comments because anyway the quotes in there
1189# would cause problems or look ugly.
1190# WARNING: Be sure not to use single quotes in there, as some shells,
1191# such as our DU 5.0 friend, will then `close' the trap.
1192trap 'exit_status=$?
1193  # Save into config.log some information that might help in debugging.
1194  {
1195    echo
1196    cat <<\_ASBOX
1197## ---------------- ##
1198## Cache variables. ##
1199## ---------------- ##
1200_ASBOX
1201    echo
1202    # The following way of writing the cache mishandles newlines in values,
1203{
1204  (set) 2>&1 |
1205    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1206    *ac_space=\ *)
1207      sed -n \
1208        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1209    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1210      ;;
1211    *)
1212      sed -n \
1213        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1214      ;;
1215    esac;
1216}
1217    echo
1218    if test -s confdefs.h; then
1219      cat <<\_ASBOX
1220## ----------- ##
1221## confdefs.h. ##
1222## ----------- ##
1223_ASBOX
1224      echo
1225      sed "/^$/d" confdefs.h
1226      echo
1227    fi
1228    test "$ac_signal" != 0 &&
1229      echo "$as_me: caught signal $ac_signal"
1230    echo "$as_me: exit $exit_status"
1231  } >&5
1232  rm -f core core.* *.core &&
1233  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234    exit $exit_status
1235     ' 0
1236for ac_signal in 1 2 13 15; do
1237  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238done
1239ac_signal=0
1240
1241# confdefs.h avoids OS command line length limits that DEFS can exceed.
1242rm -rf conftest* confdefs.h
1243# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244echo >confdefs.h
1245
1246# Predefined preprocessor variables.
1247
1248cat >>confdefs.h <<_ACEOF
1249#define PACKAGE_NAME "$PACKAGE_NAME"
1250_ACEOF
1251
1252
1253cat >>confdefs.h <<_ACEOF
1254#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255_ACEOF
1256
1257
1258cat >>confdefs.h <<_ACEOF
1259#define PACKAGE_VERSION "$PACKAGE_VERSION"
1260_ACEOF
1261
1262
1263cat >>confdefs.h <<_ACEOF
1264#define PACKAGE_STRING "$PACKAGE_STRING"
1265_ACEOF
1266
1267
1268cat >>confdefs.h <<_ACEOF
1269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270_ACEOF
1271
1272
1273# Let the site file select an alternate cache file if it wants to.
1274# Prefer explicitly selected file to automatically selected ones.
1275if test -z "$CONFIG_SITE"; then
1276  if test "x$prefix" != xNONE; then
1277    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278  else
1279    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280  fi
1281fi
1282for ac_site_file in $CONFIG_SITE; do
1283  if test -r "$ac_site_file"; then
1284    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285echo "$as_me: loading site script $ac_site_file" >&6;}
1286    sed 's/^/| /' "$ac_site_file" >&5
1287    . "$ac_site_file"
1288  fi
1289done
1290
1291if test -r "$cache_file"; then
1292  # Some versions of bash will fail to source /dev/null (special
1293  # files actually), so we avoid doing that.
1294  if test -f "$cache_file"; then
1295    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296echo "$as_me: loading cache $cache_file" >&6;}
1297    case $cache_file in
1298      [\\/]* | ?:[\\/]* ) . $cache_file;;
1299      *)                      . ./$cache_file;;
1300    esac
1301  fi
1302else
1303  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304echo "$as_me: creating cache $cache_file" >&6;}
1305  >$cache_file
1306fi
1307
1308# Check that the precious variables saved in the cache have kept the same
1309# value.
1310ac_cache_corrupted=false
1311for ac_var in `(set) 2>&1 |
1312               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314  eval ac_new_set=\$ac_env_${ac_var}_set
1315  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316  eval ac_new_val="\$ac_env_${ac_var}_value"
1317  case $ac_old_set,$ac_new_set in
1318    set,)
1319      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321      ac_cache_corrupted=: ;;
1322    ,set)
1323      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325      ac_cache_corrupted=: ;;
1326    ,);;
1327    *)
1328      if test "x$ac_old_val" != "x$ac_new_val"; then
1329        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1332echo "$as_me:   former value:  $ac_old_val" >&2;}
1333        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1334echo "$as_me:   current value: $ac_new_val" >&2;}
1335        ac_cache_corrupted=:
1336      fi;;
1337  esac
1338  # Pass precious variables to config.status.
1339  if test "$ac_new_set" = set; then
1340    case $ac_new_val in
1341    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343    *) ac_arg=$ac_var=$ac_new_val ;;
1344    esac
1345    case " $ac_configure_args " in
1346      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1347      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348    esac
1349  fi
1350done
1351if $ac_cache_corrupted; then
1352  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356   { (exit 1); exit 1; }; }
1357fi
1358
1359ac_ext=c
1360ac_cpp='$CPP $CPPFLAGS'
1361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383#
1384# version setting up for Automake
1385#
1386AUTOTRACE_MAJOR_VERSION=0
1387AUTOTRACE_MINOR_VERSION=31
1388AUTOTRACE_MICRO_VERSION=1
1389AUTOTRACE_VERSION=${AUTOTRACE_MAJOR_VERSION}.${AUTOTRACE_MINOR_VERSION}.${AUTOTRACE_MICRO_VERSION}
1390cat >>confdefs.h <<_ACEOF
1391#define AUTOTRACE_VERSION "$AUTOTRACE_VERSION"
1392_ACEOF
1393
1394
1395ac_aux_dir=
1396for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397  if test -f $ac_dir/install-sh; then
1398    ac_aux_dir=$ac_dir
1399    ac_install_sh="$ac_aux_dir/install-sh -c"
1400    break
1401  elif test -f $ac_dir/install.sh; then
1402    ac_aux_dir=$ac_dir
1403    ac_install_sh="$ac_aux_dir/install.sh -c"
1404    break
1405  elif test -f $ac_dir/shtool; then
1406    ac_aux_dir=$ac_dir
1407    ac_install_sh="$ac_aux_dir/shtool install -c"
1408    break
1409  fi
1410done
1411if test -z "$ac_aux_dir"; then
1412  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414   { (exit 1); exit 1; }; }
1415fi
1416ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1419
1420# Find a good install program.  We prefer a C program (faster),
1421# so one script is as good as another.  But avoid the broken or
1422# incompatible versions:
1423# SysV /etc/install, /usr/sbin/install
1424# SunOS /usr/etc/install
1425# IRIX /sbin/install
1426# AIX /bin/install
1427# AmigaOS /C/install, which installs bootblocks on floppy discs
1428# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1429# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1430# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1431# ./install, which can be erroneously created by make from ./install.sh.
1432echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1433echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1434if test -z "$INSTALL"; then
1435if test "${ac_cv_path_install+set}" = set; then
1436  echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439for as_dir in $PATH
1440do
1441  IFS=$as_save_IFS
1442  test -z "$as_dir" && as_dir=.
1443  # Account for people who put trailing slashes in PATH elements.
1444case $as_dir/ in
1445  ./ | .// | /cC/* | \
1446  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1447  /usr/ucb/* ) ;;
1448  *)
1449    # OSF1 and SCO ODT 3.0 have their own names for install.
1450    # Don't use installbsd from OSF since it installs stuff as root
1451    # by default.
1452    for ac_prog in ginstall scoinst install; do
1453      for ac_exec_ext in '' $ac_executable_extensions; do
1454        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1455          if test $ac_prog = install &&
1456            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1457            # AIX install.  It has an incompatible calling convention.
1458            :
1459          elif test $ac_prog = install &&
1460            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1461            # program-specific install script used by HP pwplus--don't use.
1462            :
1463          else
1464            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1465            break 3
1466          fi
1467        fi
1468      done
1469    done
1470    ;;
1471esac
1472done
1473
1474
1475fi
1476  if test "${ac_cv_path_install+set}" = set; then
1477    INSTALL=$ac_cv_path_install
1478  else
1479    # As a last resort, use the slow shell script.  We don't cache a
1480    # path for INSTALL within a source directory, because that will
1481    # break other packages using the cache if that directory is
1482    # removed, or if the path is relative.
1483    INSTALL=$ac_install_sh
1484  fi
1485fi
1486echo "$as_me:$LINENO: result: $INSTALL" >&5
1487echo "${ECHO_T}$INSTALL" >&6
1488
1489# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1490# It thinks the first close brace ends the variable substitution.
1491test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1492
1493test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1494
1495test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1496
1497echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1498echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1499# Just in case
1500sleep 1
1501echo timestamp > conftest.file
1502# Do `set' in a subshell so we don't clobber the current shell's
1503# arguments.  Must try -L first in case configure is actually a
1504# symlink; some systems play weird games with the mod time of symlinks
1505# (eg FreeBSD returns the mod time of the symlink's containing
1506# directory).
1507if (
1508   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1509   if test "$*" = "X"; then
1510      # -L didn't work.
1511      set X `ls -t $srcdir/configure conftest.file`
1512   fi
1513   rm -f conftest.file
1514   if test "$*" != "X $srcdir/configure conftest.file" \
1515      && test "$*" != "X conftest.file $srcdir/configure"; then
1516
1517      # If neither matched, then we have a broken ls.  This can happen
1518      # if, for instance, CONFIG_SHELL is bash and it inherits a
1519      # broken ls alias from the environment.  This has actually
1520      # happened.  Such a system could not be considered "sane".
1521      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1522alias in your environment" >&5
1523echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1524alias in your environment" >&2;}
1525   { (exit 1); exit 1; }; }
1526   fi
1527
1528   test "$2" = conftest.file
1529   )
1530then
1531   # Ok.
1532   :
1533else
1534   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1535Check your system clock" >&5
1536echo "$as_me: error: newly created file is older than distributed files!
1537Check your system clock" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540echo "$as_me:$LINENO: result: yes" >&5
1541echo "${ECHO_T}yes" >&6
1542test "$program_prefix" != NONE &&
1543  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1544# Use a double $ so make ignores it.
1545test "$program_suffix" != NONE &&
1546  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1547# Double any \ or $.  echo might interpret backslashes.
1548# By default was `s,x,x', remove it if useless.
1549cat <<\_ACEOF >conftest.sed
1550s/[\\$]/&&/g;s/;s,x,x,$//
1551_ACEOF
1552program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1553rm conftest.sed
1554
1555
1556# expand $ac_aux_dir to an absolute path
1557am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1558
1559test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1560# Use eval to expand $SHELL
1561if eval "$MISSING --run true"; then
1562  am_missing_run="$MISSING --run "
1563else
1564  am_missing_run=
1565  am_backtick='`'
1566  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1567echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1568fi
1569
1570for ac_prog in gawk mawk nawk awk
1571do
1572  # Extract the first word of "$ac_prog", so it can be a program name with args.
1573set dummy $ac_prog; ac_word=$2
1574echo "$as_me:$LINENO: checking for $ac_word" >&5
1575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576if test "${ac_cv_prog_AWK+set}" = set; then
1577  echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579  if test -n "$AWK"; then
1580  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1581else
1582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585  IFS=$as_save_IFS
1586  test -z "$as_dir" && as_dir=.
1587  for ac_exec_ext in '' $ac_executable_extensions; do
1588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589    ac_cv_prog_AWK="$ac_prog"
1590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591    break 2
1592  fi
1593done
1594done
1595
1596fi
1597fi
1598AWK=$ac_cv_prog_AWK
1599if test -n "$AWK"; then
1600  echo "$as_me:$LINENO: result: $AWK" >&5
1601echo "${ECHO_T}$AWK" >&6
1602else
1603  echo "$as_me:$LINENO: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605fi
1606
1607  test -n "$AWK" && break
1608done
1609
1610echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1611echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1612set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1613if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1614  echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616  cat >conftest.make <<\_ACEOF
1617all:
1618	@echo 'ac_maketemp="${MAKE}"'
1619_ACEOF
1620# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1621eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1622if test -n "$ac_maketemp"; then
1623  eval ac_cv_prog_make_${ac_make}_set=yes
1624else
1625  eval ac_cv_prog_make_${ac_make}_set=no
1626fi
1627rm -f conftest.make
1628fi
1629if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1630  echo "$as_me:$LINENO: result: yes" >&5
1631echo "${ECHO_T}yes" >&6
1632  SET_MAKE=
1633else
1634  echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
1636  SET_MAKE="MAKE=${MAKE-make}"
1637fi
1638
1639# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1640if test "${enable_dependency_tracking+set}" = set; then
1641  enableval="$enable_dependency_tracking"
1642
1643fi;
1644if test "x$enable_dependency_tracking" != xno; then
1645  am_depcomp="$ac_aux_dir/depcomp"
1646  AMDEPBACKSLASH='\'
1647fi
1648
1649
1650if test "x$enable_dependency_tracking" != xno; then
1651  AMDEP_TRUE=
1652  AMDEP_FALSE='#'
1653else
1654  AMDEP_TRUE='#'
1655  AMDEP_FALSE=
1656fi
1657
1658
1659
1660
1661rm -f .deps 2>/dev/null
1662mkdir .deps 2>/dev/null
1663if test -d .deps; then
1664  DEPDIR=.deps
1665else
1666  # MS-DOS does not allow filenames that begin with a dot.
1667  DEPDIR=_deps
1668fi
1669rmdir .deps 2>/dev/null
1670
1671
1672# test to see if srcdir already configured
1673if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1674   test -f $srcdir/config.status; then
1675  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1676echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1677   { (exit 1); exit 1; }; }
1678fi
1679
1680# Define the identity of the package.
1681PACKAGE=autotrace
1682VERSION=$AUTOTRACE_VERSION
1683
1684
1685# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1686# the ones we care about.
1687
1688# Autoconf 2.50 always computes EXEEXT.  However we need to be
1689# compatible with 2.13, for now.  So we always define EXEEXT, but we
1690# don't compute it.
1691
1692# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1693# requests that it be used.  This is a bit dumb.
1694: ${OBJEXT=o}
1695
1696
1697# Some tools Automake needs.
1698
1699ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1700
1701
1702AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1703
1704
1705AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1706
1707
1708AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1709
1710
1711MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1712
1713
1714AMTAR=${AMTAR-"${am_missing_run}tar"}
1715
1716install_sh=${install_sh-"$am_aux_dir/install-sh"}
1717
1718INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1719
1720# We need awk for the "check" target.  The system "awk" is bad on
1721# some platforms.
1722
1723
1724#
1725# version setting up for libtool
1726#
1727LT_CURRENT=3
1728LT_REVISION=0
1729LT_AGE=0
1730
1731
1732
1733ac_ext=c
1734ac_cpp='$CPP $CPPFLAGS'
1735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1737ac_compiler_gnu=$ac_cv_c_compiler_gnu
1738if test -n "$ac_tool_prefix"; then
1739  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1740set dummy ${ac_tool_prefix}gcc; ac_word=$2
1741echo "$as_me:$LINENO: checking for $ac_word" >&5
1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_CC+set}" = set; then
1744  echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746  if test -n "$CC"; then
1747  ac_cv_prog_CC="$CC" # Let the user override the test.
1748else
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752  IFS=$as_save_IFS
1753  test -z "$as_dir" && as_dir=.
1754  for ac_exec_ext in '' $ac_executable_extensions; do
1755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758    break 2
1759  fi
1760done
1761done
1762
1763fi
1764fi
1765CC=$ac_cv_prog_CC
1766if test -n "$CC"; then
1767  echo "$as_me:$LINENO: result: $CC" >&5
1768echo "${ECHO_T}$CC" >&6
1769else
1770  echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
1772fi
1773
1774fi
1775if test -z "$ac_cv_prog_CC"; then
1776  ac_ct_CC=$CC
1777  # Extract the first word of "gcc", so it can be a program name with args.
1778set dummy gcc; ac_word=$2
1779echo "$as_me:$LINENO: checking for $ac_word" >&5
1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782  echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784  if test -n "$ac_ct_CC"; then
1785  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786else
1787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788for as_dir in $PATH
1789do
1790  IFS=$as_save_IFS
1791  test -z "$as_dir" && as_dir=.
1792  for ac_exec_ext in '' $ac_executable_extensions; do
1793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794    ac_cv_prog_ac_ct_CC="gcc"
1795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796    break 2
1797  fi
1798done
1799done
1800
1801fi
1802fi
1803ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804if test -n "$ac_ct_CC"; then
1805  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806echo "${ECHO_T}$ac_ct_CC" >&6
1807else
1808  echo "$as_me:$LINENO: result: no" >&5
1809echo "${ECHO_T}no" >&6
1810fi
1811
1812  CC=$ac_ct_CC
1813else
1814  CC="$ac_cv_prog_CC"
1815fi
1816
1817if test -z "$CC"; then
1818  if test -n "$ac_tool_prefix"; then
1819  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1820set dummy ${ac_tool_prefix}cc; ac_word=$2
1821echo "$as_me:$LINENO: checking for $ac_word" >&5
1822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1823if test "${ac_cv_prog_CC+set}" = set; then
1824  echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826  if test -n "$CC"; then
1827  ac_cv_prog_CC="$CC" # Let the user override the test.
1828else
1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830for as_dir in $PATH
1831do
1832  IFS=$as_save_IFS
1833  test -z "$as_dir" && as_dir=.
1834  for ac_exec_ext in '' $ac_executable_extensions; do
1835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1836    ac_cv_prog_CC="${ac_tool_prefix}cc"
1837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838    break 2
1839  fi
1840done
1841done
1842
1843fi
1844fi
1845CC=$ac_cv_prog_CC
1846if test -n "$CC"; then
1847  echo "$as_me:$LINENO: result: $CC" >&5
1848echo "${ECHO_T}$CC" >&6
1849else
1850  echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854fi
1855if test -z "$ac_cv_prog_CC"; then
1856  ac_ct_CC=$CC
1857  # Extract the first word of "cc", so it can be a program name with args.
1858set dummy cc; ac_word=$2
1859echo "$as_me:$LINENO: checking for $ac_word" >&5
1860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862  echo $ECHO_N "(cached) $ECHO_C" >&6
1863else
1864  if test -n "$ac_ct_CC"; then
1865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866else
1867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868for as_dir in $PATH
1869do
1870  IFS=$as_save_IFS
1871  test -z "$as_dir" && as_dir=.
1872  for ac_exec_ext in '' $ac_executable_extensions; do
1873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874    ac_cv_prog_ac_ct_CC="cc"
1875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876    break 2
1877  fi
1878done
1879done
1880
1881fi
1882fi
1883ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884if test -n "$ac_ct_CC"; then
1885  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886echo "${ECHO_T}$ac_ct_CC" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892  CC=$ac_ct_CC
1893else
1894  CC="$ac_cv_prog_CC"
1895fi
1896
1897fi
1898if test -z "$CC"; then
1899  # Extract the first word of "cc", so it can be a program name with args.
1900set dummy cc; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_CC+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$CC"; then
1907  ac_cv_prog_CC="$CC" # Let the user override the test.
1908else
1909  ac_prog_rejected=no
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  test -z "$as_dir" && as_dir=.
1915  for ac_exec_ext in '' $ac_executable_extensions; do
1916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1918       ac_prog_rejected=yes
1919       continue
1920     fi
1921    ac_cv_prog_CC="cc"
1922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923    break 2
1924  fi
1925done
1926done
1927
1928if test $ac_prog_rejected = yes; then
1929  # We found a bogon in the path, so make sure we never use it.
1930  set dummy $ac_cv_prog_CC
1931  shift
1932  if test $# != 0; then
1933    # We chose a different compiler from the bogus one.
1934    # However, it has the same basename, so the bogon will be chosen
1935    # first if we set CC to just the basename; use the full file name.
1936    shift
1937    set dummy "$as_dir/$ac_word" ${1+"$@"}
1938    shift
1939    ac_cv_prog_CC="$@"
1940  fi
1941fi
1942fi
1943fi
1944CC=$ac_cv_prog_CC
1945if test -n "$CC"; then
1946  echo "$as_me:$LINENO: result: $CC" >&5
1947echo "${ECHO_T}$CC" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953fi
1954if test -z "$CC"; then
1955  if test -n "$ac_tool_prefix"; then
1956  for ac_prog in cl
1957  do
1958    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960echo "$as_me:$LINENO: checking for $ac_word" >&5
1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962if test "${ac_cv_prog_CC+set}" = set; then
1963  echo $ECHO_N "(cached) $ECHO_C" >&6
1964else
1965  if test -n "$CC"; then
1966  ac_cv_prog_CC="$CC" # Let the user override the test.
1967else
1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969for as_dir in $PATH
1970do
1971  IFS=$as_save_IFS
1972  test -z "$as_dir" && as_dir=.
1973  for ac_exec_ext in '' $ac_executable_extensions; do
1974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982fi
1983fi
1984CC=$ac_cv_prog_CC
1985if test -n "$CC"; then
1986  echo "$as_me:$LINENO: result: $CC" >&5
1987echo "${ECHO_T}$CC" >&6
1988else
1989  echo "$as_me:$LINENO: result: no" >&5
1990echo "${ECHO_T}no" >&6
1991fi
1992
1993    test -n "$CC" && break
1994  done
1995fi
1996if test -z "$CC"; then
1997  ac_ct_CC=$CC
1998  for ac_prog in cl
1999do
2000  # Extract the first word of "$ac_prog", so it can be a program name with args.
2001set dummy $ac_prog; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$ac_ct_CC"; then
2008  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009else
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  for ac_exec_ext in '' $ac_executable_extensions; do
2016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017    ac_cv_prog_ac_ct_CC="$ac_prog"
2018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019    break 2
2020  fi
2021done
2022done
2023
2024fi
2025fi
2026ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027if test -n "$ac_ct_CC"; then
2028  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029echo "${ECHO_T}$ac_ct_CC" >&6
2030else
2031  echo "$as_me:$LINENO: result: no" >&5
2032echo "${ECHO_T}no" >&6
2033fi
2034
2035  test -n "$ac_ct_CC" && break
2036done
2037
2038  CC=$ac_ct_CC
2039fi
2040
2041fi
2042
2043
2044test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2045echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2046   { (exit 1); exit 1; }; }
2047
2048# Provide some information about the compiler.
2049echo "$as_me:$LINENO:" \
2050     "checking for C compiler version" >&5
2051ac_compiler=`set X $ac_compile; echo $2`
2052{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2053  (eval $ac_compiler --version </dev/null >&5) 2>&5
2054  ac_status=$?
2055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056  (exit $ac_status); }
2057{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2058  (eval $ac_compiler -v </dev/null >&5) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }
2062{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2063  (eval $ac_compiler -V </dev/null >&5) 2>&5
2064  ac_status=$?
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); }
2067
2068cat >conftest.$ac_ext <<_ACEOF
2069#line $LINENO "configure"
2070#include "confdefs.h"
2071
2072#ifdef F77_DUMMY_MAIN
2073#  ifdef __cplusplus
2074     extern "C"
2075#  endif
2076   int F77_DUMMY_MAIN() { return 1; }
2077#endif
2078int
2079main ()
2080{
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086ac_clean_files_save=$ac_clean_files
2087ac_clean_files="$ac_clean_files a.out a.exe"
2088# Try to create an executable without -o first, disregard a.out.
2089# It will help us diagnose broken compilers, and finding out an intuition
2090# of exeext.
2091echo "$as_me:$LINENO: checking for C compiler default output" >&5
2092echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2093ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2094if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2095  (eval $ac_link_default) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }; then
2099  # Find the output, starting from the most likely.  This scheme is
2100# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2101# resort.
2102
2103# Be careful to initialize this variable, since it used to be cached.
2104# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2105ac_cv_exeext=
2106for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2107                ls a.out conftest 2>/dev/null;
2108                ls a.* conftest.* 2>/dev/null`; do
2109  case $ac_file in
2110    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2111    a.out ) # We found the default executable, but exeext='' is most
2112            # certainly right.
2113            break;;
2114    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2116          export ac_cv_exeext
2117          break;;
2118    * ) break;;
2119  esac
2120done
2121else
2122  echo "$as_me: failed program was:" >&5
2123cat conftest.$ac_ext >&5
2124{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2125echo "$as_me: error: C compiler cannot create executables" >&2;}
2126   { (exit 77); exit 77; }; }
2127fi
2128
2129ac_exeext=$ac_cv_exeext
2130echo "$as_me:$LINENO: result: $ac_file" >&5
2131echo "${ECHO_T}$ac_file" >&6
2132
2133# Check the compiler produces executables we can run.  If not, either
2134# the compiler is broken, or we cross compile.
2135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2138# If not cross compiling, check that we can run a simple program.
2139if test "$cross_compiling" != yes; then
2140  if { ac_try='./$ac_file'
2141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142  (eval $ac_try) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }; }; then
2146    cross_compiling=no
2147  else
2148    if test "$cross_compiling" = maybe; then
2149	cross_compiling=yes
2150    else
2151	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2152If you meant to cross compile, use \`--host'." >&5
2153echo "$as_me: error: cannot run C compiled programs.
2154If you meant to cross compile, use \`--host'." >&2;}
2155   { (exit 1); exit 1; }; }
2156    fi
2157  fi
2158fi
2159echo "$as_me:$LINENO: result: yes" >&5
2160echo "${ECHO_T}yes" >&6
2161
2162rm -f a.out a.exe conftest$ac_cv_exeext
2163ac_clean_files=$ac_clean_files_save
2164# Check the compiler produces executables we can run.  If not, either
2165# the compiler is broken, or we cross compile.
2166echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2167echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2168echo "$as_me:$LINENO: result: $cross_compiling" >&5
2169echo "${ECHO_T}$cross_compiling" >&6
2170
2171echo "$as_me:$LINENO: checking for suffix of executables" >&5
2172echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2174  (eval $ac_link) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }; then
2178  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2179# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2180# work properly (i.e., refer to `conftest.exe'), while it won't with
2181# `rm'.
2182for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2183  case $ac_file in
2184    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2185    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186          export ac_cv_exeext
2187          break;;
2188    * ) break;;
2189  esac
2190done
2191else
2192  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2193echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2194   { (exit 1); exit 1; }; }
2195fi
2196
2197rm -f conftest$ac_cv_exeext
2198echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2199echo "${ECHO_T}$ac_cv_exeext" >&6
2200
2201rm -f conftest.$ac_ext
2202EXEEXT=$ac_cv_exeext
2203ac_exeext=$EXEEXT
2204echo "$as_me:$LINENO: checking for suffix of object files" >&5
2205echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2206if test "${ac_cv_objext+set}" = set; then
2207  echo $ECHO_N "(cached) $ECHO_C" >&6
2208else
2209  cat >conftest.$ac_ext <<_ACEOF
2210#line $LINENO "configure"
2211#include "confdefs.h"
2212
2213#ifdef F77_DUMMY_MAIN
2214#  ifdef __cplusplus
2215     extern "C"
2216#  endif
2217   int F77_DUMMY_MAIN() { return 1; }
2218#endif
2219int
2220main ()
2221{
2222
2223  ;
2224  return 0;
2225}
2226_ACEOF
2227rm -f conftest.o conftest.obj
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229  (eval $ac_compile) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; then
2233  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2236    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2237       break;;
2238  esac
2239done
2240else
2241  echo "$as_me: failed program was:" >&5
2242cat conftest.$ac_ext >&5
2243{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2244echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2245   { (exit 1); exit 1; }; }
2246fi
2247
2248rm -f conftest.$ac_cv_objext conftest.$ac_ext
2249fi
2250echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2251echo "${ECHO_T}$ac_cv_objext" >&6
2252OBJEXT=$ac_cv_objext
2253ac_objext=$OBJEXT
2254echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2255echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2256if test "${ac_cv_c_compiler_gnu+set}" = set; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  cat >conftest.$ac_ext <<_ACEOF
2260#line $LINENO "configure"
2261#include "confdefs.h"
2262
2263#ifdef F77_DUMMY_MAIN
2264#  ifdef __cplusplus
2265     extern "C"
2266#  endif
2267   int F77_DUMMY_MAIN() { return 1; }
2268#endif
2269int
2270main ()
2271{
2272#ifndef __GNUC__
2273       choke me
2274#endif
2275
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280rm -f conftest.$ac_objext
2281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282  (eval $ac_compile) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); } &&
2286         { ac_try='test -s conftest.$ac_objext'
2287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288  (eval $ac_try) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); }; }; then
2292  ac_compiler_gnu=yes
2293else
2294  echo "$as_me: failed program was:" >&5
2295cat conftest.$ac_ext >&5
2296ac_compiler_gnu=no
2297fi
2298rm -f conftest.$ac_objext conftest.$ac_ext
2299ac_cv_c_compiler_gnu=$ac_compiler_gnu
2300
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2303echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2304GCC=`test $ac_compiler_gnu = yes && echo yes`
2305ac_test_CFLAGS=${CFLAGS+set}
2306ac_save_CFLAGS=$CFLAGS
2307CFLAGS="-g"
2308echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2309echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2310if test "${ac_cv_prog_cc_g+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  cat >conftest.$ac_ext <<_ACEOF
2314#line $LINENO "configure"
2315#include "confdefs.h"
2316
2317#ifdef F77_DUMMY_MAIN
2318#  ifdef __cplusplus
2319     extern "C"
2320#  endif
2321   int F77_DUMMY_MAIN() { return 1; }
2322#endif
2323int
2324main ()
2325{
2326
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); } &&
2337         { ac_try='test -s conftest.$ac_objext'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; }; then
2343  ac_cv_prog_cc_g=yes
2344else
2345  echo "$as_me: failed program was:" >&5
2346cat conftest.$ac_ext >&5
2347ac_cv_prog_cc_g=no
2348fi
2349rm -f conftest.$ac_objext conftest.$ac_ext
2350fi
2351echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2352echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2353if test "$ac_test_CFLAGS" = set; then
2354  CFLAGS=$ac_save_CFLAGS
2355elif test $ac_cv_prog_cc_g = yes; then
2356  if test "$GCC" = yes; then
2357    CFLAGS="-g -O2"
2358  else
2359    CFLAGS="-g"
2360  fi
2361else
2362  if test "$GCC" = yes; then
2363    CFLAGS="-O2"
2364  else
2365    CFLAGS=
2366  fi
2367fi
2368# Some people use a C++ compiler to compile C.  Since we use `exit',
2369# in C++ we need to declare it.  In case someone uses the same compiler
2370# for both compiling C and C++ we need to have the C++ compiler decide
2371# the declaration of exit, since it's the most demanding environment.
2372cat >conftest.$ac_ext <<_ACEOF
2373#ifndef __cplusplus
2374  choke me
2375#endif
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); } &&
2383         { ac_try='test -s conftest.$ac_objext'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; }; then
2389  for ac_declaration in \
2390   ''\
2391   '#include <stdlib.h>' \
2392   'extern "C" void std::exit (int) throw (); using std::exit;' \
2393   'extern "C" void std::exit (int); using std::exit;' \
2394   'extern "C" void exit (int) throw ();' \
2395   'extern "C" void exit (int);' \
2396   'void exit (int);'
2397do
2398  cat >conftest.$ac_ext <<_ACEOF
2399#line $LINENO "configure"
2400#include "confdefs.h"
2401#include <stdlib.h>
2402$ac_declaration
2403#ifdef F77_DUMMY_MAIN
2404#  ifdef __cplusplus
2405     extern "C"
2406#  endif
2407   int F77_DUMMY_MAIN() { return 1; }
2408#endif
2409int
2410main ()
2411{
2412exit (42);
2413  ;
2414  return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419  (eval $ac_compile) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423         { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  :
2430else
2431  echo "$as_me: failed program was:" >&5
2432cat conftest.$ac_ext >&5
2433continue
2434fi
2435rm -f conftest.$ac_objext conftest.$ac_ext
2436  cat >conftest.$ac_ext <<_ACEOF
2437#line $LINENO "configure"
2438#include "confdefs.h"
2439$ac_declaration
2440#ifdef F77_DUMMY_MAIN
2441#  ifdef __cplusplus
2442     extern "C"
2443#  endif
2444   int F77_DUMMY_MAIN() { return 1; }
2445#endif
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); } &&
2460         { ac_try='test -s conftest.$ac_objext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  break
2467else
2468  echo "$as_me: failed program was:" >&5
2469cat conftest.$ac_ext >&5
2470fi
2471rm -f conftest.$ac_objext conftest.$ac_ext
2472done
2473rm -f conftest*
2474if test -n "$ac_declaration"; then
2475  echo '#ifdef __cplusplus' >>confdefs.h
2476  echo $ac_declaration      >>confdefs.h
2477  echo '#endif'             >>confdefs.h
2478fi
2479
2480else
2481  echo "$as_me: failed program was:" >&5
2482cat conftest.$ac_ext >&5
2483fi
2484rm -f conftest.$ac_objext conftest.$ac_ext
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491ac_config_commands="$ac_config_commands default-1"
2492
2493am_make=${MAKE-make}
2494cat > confinc << 'END'
2495doit:
2496	@echo done
2497END
2498# If we don't find an include directive, just comment out the code.
2499echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2500echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2501am__include='#'
2502am__quote=
2503_am_result=none
2504# First try GNU make style include.
2505echo "include confinc" > confmf
2506# We grep out `Entering directory' and `Leaving directory'
2507# messages which can occur if `w' ends up in MAKEFLAGS.
2508# In particular we don't look at `^make:' because GNU make might
2509# be invoked under some other name (usually "gmake"), in which
2510# case it prints its new name instead of `make'.
2511if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2512   am__include=include
2513   am__quote=
2514   _am_result=GNU
2515fi
2516# Now try BSD make style include.
2517if test "$am__include" = "#"; then
2518   echo '.include "confinc"' > confmf
2519   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2520      am__include=.include
2521      am__quote='"'
2522      _am_result=BSD
2523   fi
2524fi
2525
2526
2527echo "$as_me:$LINENO: result: $_am_result" >&5
2528echo "${ECHO_T}$_am_result" >&6
2529rm -f confinc confmf
2530
2531
2532depcc="$CC"   am_compiler_list=
2533
2534echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2535echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2536if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2540  # We make a subdir and do the tests there.  Otherwise we can end up
2541  # making bogus files that we don't know about and never remove.  For
2542  # instance it was reported that on HP-UX the gcc test will end up
2543  # making a dummy file named `D' -- because `-MD' means `put the output
2544  # in D'.
2545  mkdir conftest.dir
2546  # Copy depcomp to subdir because otherwise we won't find it if we're
2547  # using a relative directory.
2548  cp "$am_depcomp" conftest.dir
2549  cd conftest.dir
2550
2551  am_cv_CC_dependencies_compiler_type=none
2552  if test "$am_compiler_list" = ""; then
2553     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2554  fi
2555  for depmode in $am_compiler_list; do
2556    # We need to recreate these files for each test, as the compiler may
2557    # overwrite some of them when testing with obscure command lines.
2558    # This happens at least with the AIX C compiler.
2559    echo '#include "conftest.h"' > conftest.c
2560    echo 'int i;' > conftest.h
2561    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2562
2563    case $depmode in
2564    nosideeffect)
2565      # after this tag, mechanisms are not by side-effect, so they'll
2566      # only be used when explicitly requested
2567      if test "x$enable_dependency_tracking" = xyes; then
2568	continue
2569      else
2570	break
2571      fi
2572      ;;
2573    none) break ;;
2574    esac
2575    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2576    # mode.  It turns out that the SunPro C++ compiler does not properly
2577    # handle `-M -o', and we need to detect this.
2578    if depmode=$depmode \
2579       source=conftest.c object=conftest.o \
2580       depfile=conftest.Po tmpdepfile=conftest.TPo \
2581       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2582       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2583       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2584      am_cv_CC_dependencies_compiler_type=$depmode
2585      break
2586    fi
2587  done
2588
2589  cd ..
2590  rm -rf conftest.dir
2591else
2592  am_cv_CC_dependencies_compiler_type=none
2593fi
2594
2595fi
2596echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2597echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2598CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2599
2600
2601# Check whether --enable-shared or --disable-shared was given.
2602if test "${enable_shared+set}" = set; then
2603  enableval="$enable_shared"
2604  p=${PACKAGE-default}
2605case $enableval in
2606yes) enable_shared=yes ;;
2607no) enable_shared=no ;;
2608*)
2609  enable_shared=no
2610  # Look at the argument we got.  We use all the common list separators.
2611  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2612  for pkg in $enableval; do
2613    if test "X$pkg" = "X$p"; then
2614      enable_shared=yes
2615    fi
2616  done
2617  IFS="$ac_save_ifs"
2618  ;;
2619esac
2620else
2621  enable_shared=yes
2622fi;
2623# Check whether --enable-static or --disable-static was given.
2624if test "${enable_static+set}" = set; then
2625  enableval="$enable_static"
2626  p=${PACKAGE-default}
2627case $enableval in
2628yes) enable_static=yes ;;
2629no) enable_static=no ;;
2630*)
2631  enable_static=no
2632  # Look at the argument we got.  We use all the common list separators.
2633  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2634  for pkg in $enableval; do
2635    if test "X$pkg" = "X$p"; then
2636      enable_static=yes
2637    fi
2638  done
2639  IFS="$ac_save_ifs"
2640  ;;
2641esac
2642else
2643  enable_static=yes
2644fi;
2645# Check whether --enable-fast-install or --disable-fast-install was given.
2646if test "${enable_fast_install+set}" = set; then
2647  enableval="$enable_fast_install"
2648  p=${PACKAGE-default}
2649case $enableval in
2650yes) enable_fast_install=yes ;;
2651no) enable_fast_install=no ;;
2652*)
2653  enable_fast_install=no
2654  # Look at the argument we got.  We use all the common list separators.
2655  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2656  for pkg in $enableval; do
2657    if test "X$pkg" = "X$p"; then
2658      enable_fast_install=yes
2659    fi
2660  done
2661  IFS="$ac_save_ifs"
2662  ;;
2663esac
2664else
2665  enable_fast_install=yes
2666fi;
2667# Make sure we can run config.sub.
2668$ac_config_sub sun4 >/dev/null 2>&1 ||
2669  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2670echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2671   { (exit 1); exit 1; }; }
2672
2673echo "$as_me:$LINENO: checking build system type" >&5
2674echo $ECHO_N "checking build system type... $ECHO_C" >&6
2675if test "${ac_cv_build+set}" = set; then
2676  echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678  ac_cv_build_alias=$build_alias
2679test -z "$ac_cv_build_alias" &&
2680  ac_cv_build_alias=`$ac_config_guess`
2681test -z "$ac_cv_build_alias" &&
2682  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2683echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2684   { (exit 1); exit 1; }; }
2685ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2686  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2687echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2688   { (exit 1); exit 1; }; }
2689
2690fi
2691echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2692echo "${ECHO_T}$ac_cv_build" >&6
2693build=$ac_cv_build
2694build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2695build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2696build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2697
2698
2699echo "$as_me:$LINENO: checking host system type" >&5
2700echo $ECHO_N "checking host system type... $ECHO_C" >&6
2701if test "${ac_cv_host+set}" = set; then
2702  echo $ECHO_N "(cached) $ECHO_C" >&6
2703else
2704  ac_cv_host_alias=$host_alias
2705test -z "$ac_cv_host_alias" &&
2706  ac_cv_host_alias=$ac_cv_build_alias
2707ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2708  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2709echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2710   { (exit 1); exit 1; }; }
2711
2712fi
2713echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2714echo "${ECHO_T}$ac_cv_host" >&6
2715host=$ac_cv_host
2716host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2717host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2718host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2719
2720
2721# Find the correct PATH separator.  Usually this is `:', but
2722# DJGPP uses `;' like DOS.
2723if test "X${PATH_SEPARATOR+set}" != Xset; then
2724  UNAME=${UNAME-`uname 2>/dev/null`}
2725  case X$UNAME in
2726    *-DOS) lt_cv_sys_path_separator=';' ;;
2727    *)     lt_cv_sys_path_separator=':' ;;
2728  esac
2729  PATH_SEPARATOR=$lt_cv_sys_path_separator
2730fi
2731
2732
2733# Check whether --with-gnu-ld or --without-gnu-ld was given.
2734if test "${with_gnu_ld+set}" = set; then
2735  withval="$with_gnu_ld"
2736  test "$withval" = no || with_gnu_ld=yes
2737else
2738  with_gnu_ld=no
2739fi;
2740ac_prog=ld
2741if test "$GCC" = yes; then
2742  # Check if gcc -print-prog-name=ld gives a path.
2743  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2744echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2745  case $host in
2746  *-*-mingw*)
2747    # gcc leaves a trailing carriage return which upsets mingw
2748    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2749  *)
2750    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2751  esac
2752  case $ac_prog in
2753    # Accept absolute paths.
2754    [\\/]* | [A-Za-z]:[\\/]*)
2755      re_direlt='/[^/][^/]*/\.\./'
2756      # Canonicalize the path of ld
2757      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2758      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2759	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2760      done
2761      test -z "$LD" && LD="$ac_prog"
2762      ;;
2763  "")
2764    # If it fails, then pretend we aren't using GCC.
2765    ac_prog=ld
2766    ;;
2767  *)
2768    # If it is relative, then search for the first ld in PATH.
2769    with_gnu_ld=unknown
2770    ;;
2771  esac
2772elif test "$with_gnu_ld" = yes; then
2773  echo "$as_me:$LINENO: checking for GNU ld" >&5
2774echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2775else
2776  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2777echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2778fi
2779if test "${lt_cv_path_LD+set}" = set; then
2780  echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782  if test -z "$LD"; then
2783  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2784  for ac_dir in $PATH; do
2785    test -z "$ac_dir" && ac_dir=.
2786    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2787      lt_cv_path_LD="$ac_dir/$ac_prog"
2788      # Check to see if the program is GNU ld.  I'd rather use --version,
2789      # but apparently some GNU ld's only accept -v.
2790      # Break only if it was the GNU/non-GNU ld that we prefer.
2791      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2792	test "$with_gnu_ld" != no && break
2793      else
2794	test "$with_gnu_ld" != yes && break
2795      fi
2796    fi
2797  done
2798  IFS="$ac_save_ifs"
2799else
2800  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2801fi
2802fi
2803
2804LD="$lt_cv_path_LD"
2805if test -n "$LD"; then
2806  echo "$as_me:$LINENO: result: $LD" >&5
2807echo "${ECHO_T}$LD" >&6
2808else
2809  echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
2811fi
2812test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2813echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2814   { (exit 1); exit 1; }; }
2815echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2816echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2817if test "${lt_cv_prog_gnu_ld+set}" = set; then
2818  echo $ECHO_N "(cached) $ECHO_C" >&6
2819else
2820  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2821if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2822  lt_cv_prog_gnu_ld=yes
2823else
2824  lt_cv_prog_gnu_ld=no
2825fi
2826fi
2827echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2828echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2829with_gnu_ld=$lt_cv_prog_gnu_ld
2830
2831
2832echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2833echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2834if test "${lt_cv_ld_reload_flag+set}" = set; then
2835  echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837  lt_cv_ld_reload_flag='-r'
2838fi
2839echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2840echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2841reload_flag=$lt_cv_ld_reload_flag
2842test -n "$reload_flag" && reload_flag=" $reload_flag"
2843
2844echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2845echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2846if test "${lt_cv_path_NM+set}" = set; then
2847  echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849  if test -n "$NM"; then
2850  # Let the user override the test.
2851  lt_cv_path_NM="$NM"
2852else
2853  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2854  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2855    test -z "$ac_dir" && ac_dir=.
2856    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2857    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2858      # Check to see if the nm accepts a BSD-compat flag.
2859      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2860      #   nm: unknown option "B" ignored
2861      # Tru64's nm complains that /dev/null is an invalid object file
2862      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2863	lt_cv_path_NM="$tmp_nm -B"
2864	break
2865      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2866	lt_cv_path_NM="$tmp_nm -p"
2867	break
2868      else
2869	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2870	continue # so that we can try to find one that supports BSD flags
2871      fi
2872    fi
2873  done
2874  IFS="$ac_save_ifs"
2875  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2876fi
2877fi
2878
2879NM="$lt_cv_path_NM"
2880echo "$as_me:$LINENO: result: $NM" >&5
2881echo "${ECHO_T}$NM" >&6
2882
2883echo "$as_me:$LINENO: checking whether ln -s works" >&5
2884echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2885LN_S=$as_ln_s
2886if test "$LN_S" = "ln -s"; then
2887  echo "$as_me:$LINENO: result: yes" >&5
2888echo "${ECHO_T}yes" >&6
2889else
2890  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2891echo "${ECHO_T}no, using $LN_S" >&6
2892fi
2893
2894echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2895echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2896if test "${lt_cv_deplibs_check_method+set}" = set; then
2897  echo $ECHO_N "(cached) $ECHO_C" >&6
2898else
2899  lt_cv_file_magic_cmd='$MAGIC_CMD'
2900lt_cv_file_magic_test_file=
2901lt_cv_deplibs_check_method='unknown'
2902# Need to set the preceding variable on all platforms that support
2903# interlibrary dependencies.
2904# 'none' -- dependencies not supported.
2905# `unknown' -- same as none, but documents that we really don't know.
2906# 'pass_all' -- all dependencies passed with no checks.
2907# 'test_compile' -- check by making test program.
2908# 'file_magic [[regex]]' -- check by looking for files in library path
2909# which responds to the $file_magic_cmd with a given egrep regex.
2910# If you have `file' or equivalent on your system and you're not sure
2911# whether `pass_all' will *always* work, you probably want this one.
2912
2913case $host_os in
2914aix4* | aix5*)
2915  lt_cv_deplibs_check_method=pass_all
2916  ;;
2917
2918beos*)
2919  lt_cv_deplibs_check_method=pass_all
2920  ;;
2921
2922bsdi4*)
2923  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2924  lt_cv_file_magic_cmd='/usr/bin/file -L'
2925  lt_cv_file_magic_test_file=/shlib/libc.so
2926  ;;
2927
2928cygwin* | mingw* | pw32*)
2929  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2930  lt_cv_file_magic_cmd='$OBJDUMP -f'
2931  ;;
2932
2933darwin* | rhapsody*)
2934  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2935  lt_cv_file_magic_cmd='/usr/bin/file -L'
2936  case "$host_os" in
2937  rhapsody* | darwin1.[012])
2938    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2939    ;;
2940  *) # Darwin 1.3 on
2941    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2942    ;;
2943  esac
2944  ;;
2945
2946freebsd*)
2947  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2948    case $host_cpu in
2949    i*86 )
2950      # Not sure whether the presence of OpenBSD here was a mistake.
2951      # Let's accept both of them until this is cleared up.
2952      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2953      lt_cv_file_magic_cmd=/usr/bin/file
2954      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2955      ;;
2956    esac
2957  else
2958    lt_cv_deplibs_check_method=pass_all
2959  fi
2960  ;;
2961
2962gnu*)
2963  lt_cv_deplibs_check_method=pass_all
2964  ;;
2965
2966hpux10.20*|hpux11*)
2967  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2968  lt_cv_file_magic_cmd=/usr/bin/file
2969  lt_cv_file_magic_test_file=/usr/lib/libc.sl
2970  ;;
2971
2972irix5* | irix6*)
2973  case $host_os in
2974  irix5*)
2975    # this will be overridden with pass_all, but let us keep it just in case
2976    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2977    ;;
2978  *)
2979    case $LD in
2980    *-32|*"-32 ") libmagic=32-bit;;
2981    *-n32|*"-n32 ") libmagic=N32;;
2982    *-64|*"-64 ") libmagic=64-bit;;
2983    *) libmagic=never-match;;
2984    esac
2985    # this will be overridden with pass_all, but let us keep it just in case
2986    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2987    ;;
2988  esac
2989  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2990  lt_cv_deplibs_check_method=pass_all
2991  ;;
2992
2993# This must be Linux ELF.
2994linux-gnu*)
2995  case $host_cpu in
2996  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
2997    lt_cv_deplibs_check_method=pass_all ;;
2998  *)
2999    # glibc up to 2.1.1 does not perform some relocations on ARM
3000    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3001  esac
3002  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3003  ;;
3004
3005netbsd*)
3006  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3007    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3008  else
3009    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3010  fi
3011  ;;
3012
3013newos6*)
3014  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3015  lt_cv_file_magic_cmd=/usr/bin/file
3016  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3017  ;;
3018
3019openbsd*)
3020  lt_cv_file_magic_cmd=/usr/bin/file
3021  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3022  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3023    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3024  else
3025    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3026  fi
3027  ;;
3028
3029osf3* | osf4* | osf5*)
3030  # this will be overridden with pass_all, but let us keep it just in case
3031  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3032  lt_cv_file_magic_test_file=/shlib/libc.so
3033  lt_cv_deplibs_check_method=pass_all
3034  ;;
3035
3036sco3.2v5*)
3037  lt_cv_deplibs_check_method=pass_all
3038  ;;
3039
3040solaris*)
3041  lt_cv_deplibs_check_method=pass_all
3042  lt_cv_file_magic_test_file=/lib/libc.so
3043  ;;
3044
3045sysv5uw[78]* | sysv4*uw2*)
3046  lt_cv_deplibs_check_method=pass_all
3047  ;;
3048
3049sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3050  case $host_vendor in
3051  motorola)
3052    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]'
3053    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3054    ;;
3055  ncr)
3056    lt_cv_deplibs_check_method=pass_all
3057    ;;
3058  sequent)
3059    lt_cv_file_magic_cmd='/bin/file'
3060    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3061    ;;
3062  sni)
3063    lt_cv_file_magic_cmd='/bin/file'
3064    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3065    lt_cv_file_magic_test_file=/lib/libc.so
3066    ;;
3067  esac
3068  ;;
3069esac
3070
3071fi
3072echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3073echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3074file_magic_cmd=$lt_cv_file_magic_cmd
3075deplibs_check_method=$lt_cv_deplibs_check_method
3076
3077
3078
3079
3080
3081
3082
3083
3084# Check for command to grab the raw symbol name followed by C symbol from nm.
3085echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3086echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3087if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3088  echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090
3091# These are sane defaults that work on at least a few old systems.
3092# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3093
3094# Character class describing NM global symbol codes.
3095symcode='[BCDEGRST]'
3096
3097# Regexp to match symbols that can be accessed directly from C.
3098sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3099
3100# Transform the above into a raw symbol and a C symbol.
3101symxfrm='\1 \2\3 \3'
3102
3103# Transform an extracted symbol line into a proper C declaration
3104lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3105
3106# Transform an extracted symbol line into symbol name and symbol address
3107lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3108
3109# Define system-specific variables.
3110case $host_os in
3111aix*)
3112  symcode='[BCDT]'
3113  ;;
3114cygwin* | mingw* | pw32*)
3115  symcode='[ABCDGISTW]'
3116  ;;
3117hpux*) # Its linker distinguishes data from code symbols
3118  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3119  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3120  ;;
3121irix*)
3122  symcode='[BCDEGRST]'
3123  ;;
3124solaris* | sysv5*)
3125  symcode='[BDT]'
3126  ;;
3127sysv4)
3128  symcode='[DFNSTU]'
3129  ;;
3130esac
3131
3132# Handle CRLF in mingw tool chain
3133opt_cr=
3134case $host_os in
3135mingw*)
3136  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3137  ;;
3138esac
3139
3140# If we're using GNU nm, then use its standard symbol codes.
3141if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3142  symcode='[ABCDGISTW]'
3143fi
3144
3145# Try without a prefix undercore, then with it.
3146for ac_symprfx in "" "_"; do
3147
3148  # Write the raw and C identifiers.
3149lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3150
3151  # Check to see that the pipe works correctly.
3152  pipe_works=no
3153  rm -f conftest*
3154  cat > conftest.$ac_ext <<EOF
3155#ifdef __cplusplus
3156extern "C" {
3157#endif
3158char nm_test_var;
3159void nm_test_func(){}
3160#ifdef __cplusplus
3161}
3162#endif
3163int main(){nm_test_var='a';nm_test_func();return(0);}
3164EOF
3165
3166  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3167  (eval $ac_compile) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; then
3171    # Now try to grab the symbols.
3172    nlist=conftest.nm
3173    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3174  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } && test -s "$nlist"; then
3178      # Try sorting and uniquifying the output.
3179      if sort "$nlist" | uniq > "$nlist"T; then
3180	mv -f "$nlist"T "$nlist"
3181      else
3182	rm -f "$nlist"T
3183      fi
3184
3185      # Make sure that we snagged all the symbols we need.
3186      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3187	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3188	  cat <<EOF > conftest.$ac_ext
3189#ifdef __cplusplus
3190extern "C" {
3191#endif
3192
3193EOF
3194	  # Now generate the symbol file.
3195	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3196
3197	  cat <<EOF >> conftest.$ac_ext
3198#if defined (__STDC__) && __STDC__
3199# define lt_ptr void *
3200#else
3201# define lt_ptr char *
3202# define const
3203#endif
3204
3205/* The mapping between symbol names and symbols. */
3206const struct {
3207  const char *name;
3208  lt_ptr address;
3209}
3210lt_preloaded_symbols[] =
3211{
3212EOF
3213	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3214	  cat <<\EOF >> conftest.$ac_ext
3215  {0, (lt_ptr) 0}
3216};
3217
3218#ifdef __cplusplus
3219}
3220#endif
3221EOF
3222	  # Now try linking the two files.
3223	  mv conftest.$ac_objext conftstm.$ac_objext
3224	  save_LIBS="$LIBS"
3225	  save_CFLAGS="$CFLAGS"
3226	  LIBS="conftstm.$ac_objext"
3227	  CFLAGS="$CFLAGS$no_builtin_flag"
3228	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3229  (eval $ac_link) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); } && test -s conftest; then
3233	    pipe_works=yes
3234	  fi
3235	  LIBS="$save_LIBS"
3236	  CFLAGS="$save_CFLAGS"
3237	else
3238	  echo "cannot find nm_test_func in $nlist" >&5
3239	fi
3240      else
3241	echo "cannot find nm_test_var in $nlist" >&5
3242      fi
3243    else
3244      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3245    fi
3246  else
3247    echo "$progname: failed program was:" >&5
3248    cat conftest.$ac_ext >&5
3249  fi
3250  rm -f conftest* conftst*
3251
3252  # Do not use the global_symbol_pipe unless it works.
3253  if test "$pipe_works" = yes; then
3254    break
3255  else
3256    lt_cv_sys_global_symbol_pipe=
3257  fi
3258done
3259
3260fi
3261
3262global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3263if test -z "$lt_cv_sys_global_symbol_pipe"; then
3264  global_symbol_to_cdecl=
3265  global_symbol_to_c_name_address=
3266else
3267  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3268  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3269fi
3270if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3271then
3272  echo "$as_me:$LINENO: result: failed" >&5
3273echo "${ECHO_T}failed" >&6
3274else
3275  echo "$as_me:$LINENO: result: ok" >&5
3276echo "${ECHO_T}ok" >&6
3277fi
3278
3279ac_ext=c
3280ac_cpp='$CPP $CPPFLAGS'
3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3285echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3286# On Suns, sometimes $CPP names a directory.
3287if test -n "$CPP" && test -d "$CPP"; then
3288  CPP=
3289fi
3290if test -z "$CPP"; then
3291  if test "${ac_cv_prog_CPP+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294      # Double quotes because CPP needs to be expanded
3295    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3296    do
3297      ac_preproc_ok=false
3298for ac_c_preproc_warn_flag in '' yes
3299do
3300  # Use a header file that comes with gcc, so configuring glibc
3301  # with a fresh cross-compiler works.
3302  # On the NeXT, cc -E runs the code through the compiler's parser,
3303  # not just through cpp. "Syntax error" is here to catch this case.
3304  cat >conftest.$ac_ext <<_ACEOF
3305#line $LINENO "configure"
3306#include "confdefs.h"
3307#include <assert.h>
3308                     Syntax error
3309_ACEOF
3310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3312  ac_status=$?
3313  egrep -v '^ *\+' conftest.er1 >conftest.err
3314  rm -f conftest.er1
3315  cat conftest.err >&5
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); } >/dev/null; then
3318  if test -s conftest.err; then
3319    ac_cpp_err=$ac_c_preproc_warn_flag
3320  else
3321    ac_cpp_err=
3322  fi
3323else
3324  ac_cpp_err=yes
3325fi
3326if test -z "$ac_cpp_err"; then
3327  :
3328else
3329  echo "$as_me: failed program was:" >&5
3330  cat conftest.$ac_ext >&5
3331  # Broken: fails on valid input.
3332continue
3333fi
3334rm -f conftest.err conftest.$ac_ext
3335
3336  # OK, works on sane cases.  Now check whether non-existent headers
3337  # can be detected and how.
3338  cat >conftest.$ac_ext <<_ACEOF
3339#line $LINENO "configure"
3340#include "confdefs.h"
3341#include <ac_nonexistent.h>
3342_ACEOF
3343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345  ac_status=$?
3346  egrep -v '^ *\+' conftest.er1 >conftest.err
3347  rm -f conftest.er1
3348  cat conftest.err >&5
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } >/dev/null; then
3351  if test -s conftest.err; then
3352    ac_cpp_err=$ac_c_preproc_warn_flag
3353  else
3354    ac_cpp_err=
3355  fi
3356else
3357  ac_cpp_err=yes
3358fi
3359if test -z "$ac_cpp_err"; then
3360  # Broken: success on invalid input.
3361continue
3362else
3363  echo "$as_me: failed program was:" >&5
3364  cat conftest.$ac_ext >&5
3365  # Passes both tests.
3366ac_preproc_ok=:
3367break
3368fi
3369rm -f conftest.err conftest.$ac_ext
3370
3371done
3372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373rm -f conftest.err conftest.$ac_ext
3374if $ac_preproc_ok; then
3375  break
3376fi
3377
3378    done
3379    ac_cv_prog_CPP=$CPP
3380
3381fi
3382  CPP=$ac_cv_prog_CPP
3383else
3384  ac_cv_prog_CPP=$CPP
3385fi
3386echo "$as_me:$LINENO: result: $CPP" >&5
3387echo "${ECHO_T}$CPP" >&6
3388ac_preproc_ok=false
3389for ac_c_preproc_warn_flag in '' yes
3390do
3391  # Use a header file that comes with gcc, so configuring glibc
3392  # with a fresh cross-compiler works.
3393  # On the NeXT, cc -E runs the code through the compiler's parser,
3394  # not just through cpp. "Syntax error" is here to catch this case.
3395  cat >conftest.$ac_ext <<_ACEOF
3396#line $LINENO "configure"
3397#include "confdefs.h"
3398#include <assert.h>
3399                     Syntax error
3400_ACEOF
3401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3402  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3403  ac_status=$?
3404  egrep -v '^ *\+' conftest.er1 >conftest.err
3405  rm -f conftest.er1
3406  cat conftest.err >&5
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); } >/dev/null; then
3409  if test -s conftest.err; then
3410    ac_cpp_err=$ac_c_preproc_warn_flag
3411  else
3412    ac_cpp_err=
3413  fi
3414else
3415  ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418  :
3419else
3420  echo "$as_me: failed program was:" >&5
3421  cat conftest.$ac_ext >&5
3422  # Broken: fails on valid input.
3423continue
3424fi
3425rm -f conftest.err conftest.$ac_ext
3426
3427  # OK, works on sane cases.  Now check whether non-existent headers
3428  # can be detected and how.
3429  cat >conftest.$ac_ext <<_ACEOF
3430#line $LINENO "configure"
3431#include "confdefs.h"
3432#include <ac_nonexistent.h>
3433_ACEOF
3434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436  ac_status=$?
3437  egrep -v '^ *\+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } >/dev/null; then
3442  if test -s conftest.err; then
3443    ac_cpp_err=$ac_c_preproc_warn_flag
3444  else
3445    ac_cpp_err=
3446  fi
3447else
3448  ac_cpp_err=yes
3449fi
3450if test -z "$ac_cpp_err"; then
3451  # Broken: success on invalid input.
3452continue
3453else
3454  echo "$as_me: failed program was:" >&5
3455  cat conftest.$ac_ext >&5
3456  # Passes both tests.
3457ac_preproc_ok=:
3458break
3459fi
3460rm -f conftest.err conftest.$ac_ext
3461
3462done
3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464rm -f conftest.err conftest.$ac_ext
3465if $ac_preproc_ok; then
3466  :
3467else
3468  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3469echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3470   { (exit 1); exit 1; }; }
3471fi
3472
3473ac_ext=c
3474ac_cpp='$CPP $CPPFLAGS'
3475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478
3479
3480echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3481echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3482if test "${ac_cv_header_stdc+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  cat >conftest.$ac_ext <<_ACEOF
3486#line $LINENO "configure"
3487#include "confdefs.h"
3488#include <stdlib.h>
3489#include <stdarg.h>
3490#include <string.h>
3491#include <float.h>
3492
3493_ACEOF
3494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496  ac_status=$?
3497  egrep -v '^ *\+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } >/dev/null; then
3502  if test -s conftest.err; then
3503    ac_cpp_err=$ac_c_preproc_warn_flag
3504  else
3505    ac_cpp_err=
3506  fi
3507else
3508  ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
3511  ac_cv_header_stdc=yes
3512else
3513  echo "$as_me: failed program was:" >&5
3514  cat conftest.$ac_ext >&5
3515  ac_cv_header_stdc=no
3516fi
3517rm -f conftest.err conftest.$ac_ext
3518
3519if test $ac_cv_header_stdc = yes; then
3520  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521  cat >conftest.$ac_ext <<_ACEOF
3522#line $LINENO "configure"
3523#include "confdefs.h"
3524#include <string.h>
3525
3526_ACEOF
3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528  egrep "memchr" >/dev/null 2>&1; then
3529  :
3530else
3531  ac_cv_header_stdc=no
3532fi
3533rm -f conftest*
3534
3535fi
3536
3537if test $ac_cv_header_stdc = yes; then
3538  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3539  cat >conftest.$ac_ext <<_ACEOF
3540#line $LINENO "configure"
3541#include "confdefs.h"
3542#include <stdlib.h>
3543
3544_ACEOF
3545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546  egrep "free" >/dev/null 2>&1; then
3547  :
3548else
3549  ac_cv_header_stdc=no
3550fi
3551rm -f conftest*
3552
3553fi
3554
3555if test $ac_cv_header_stdc = yes; then
3556  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3557  if test "$cross_compiling" = yes; then
3558  :
3559else
3560  cat >conftest.$ac_ext <<_ACEOF
3561#line $LINENO "configure"
3562#include "confdefs.h"
3563#include <ctype.h>
3564#if ((' ' & 0x0FF) == 0x020)
3565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3567#else
3568# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3569                     || ('j' <= (c) && (c) <= 'r') \
3570                     || ('s' <= (c) && (c) <= 'z'))
3571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3572#endif
3573
3574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3575int
3576main ()
3577{
3578  int i;
3579  for (i = 0; i < 256; i++)
3580    if (XOR (islower (i), ISLOWER (i))
3581        || toupper (i) != TOUPPER (i))
3582      exit(2);
3583  exit (0);
3584}
3585_ACEOF
3586rm -f conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588  (eval $ac_link) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597  :
3598else
3599  echo "$as_me: program exited with status $ac_status" >&5
3600echo "$as_me: failed program was:" >&5
3601cat conftest.$ac_ext >&5
3602( exit $ac_status )
3603ac_cv_header_stdc=no
3604fi
3605rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3606fi
3607fi
3608fi
3609echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3610echo "${ECHO_T}$ac_cv_header_stdc" >&6
3611if test $ac_cv_header_stdc = yes; then
3612
3613cat >>confdefs.h <<\_ACEOF
3614#define STDC_HEADERS 1
3615_ACEOF
3616
3617fi
3618
3619# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3630                  inttypes.h stdint.h unistd.h
3631do
3632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3633echo "$as_me:$LINENO: checking for $ac_header" >&5
3634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3635if eval "test \"\${$as_ac_Header+set}\" = set"; then
3636  echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638  cat >conftest.$ac_ext <<_ACEOF
3639#line $LINENO "configure"
3640#include "confdefs.h"
3641$ac_includes_default
3642
3643#include <$ac_header>
3644_ACEOF
3645rm -f conftest.$ac_objext
3646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3647  (eval $ac_compile) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } &&
3651         { ac_try='test -s conftest.$ac_objext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  eval "$as_ac_Header=yes"
3658else
3659  echo "$as_me: failed program was:" >&5
3660cat conftest.$ac_ext >&5
3661eval "$as_ac_Header=no"
3662fi
3663rm -f conftest.$ac_objext conftest.$ac_ext
3664fi
3665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3667if test `eval echo '${'$as_ac_Header'}'` = yes; then
3668  cat >>confdefs.h <<_ACEOF
3669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3670_ACEOF
3671
3672fi
3673
3674done
3675
3676
3677
3678for ac_header in dlfcn.h
3679do
3680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681if eval "test \"\${$as_ac_Header+set}\" = set"; then
3682  echo "$as_me:$LINENO: checking for $ac_header" >&5
3683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3684if eval "test \"\${$as_ac_Header+set}\" = set"; then
3685  echo $ECHO_N "(cached) $ECHO_C" >&6
3686fi
3687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3689else
3690  # Is the header compilable?
3691echo "$as_me:$LINENO: checking $ac_header usability" >&5
3692echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3693cat >conftest.$ac_ext <<_ACEOF
3694#line $LINENO "configure"
3695#include "confdefs.h"
3696$ac_includes_default
3697#include <$ac_header>
3698_ACEOF
3699rm -f conftest.$ac_objext
3700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701  (eval $ac_compile) 2>&5
3702  ac_status=$?
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } &&
3705         { ac_try='test -s conftest.$ac_objext'
3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707  (eval $ac_try) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }; }; then
3711  ac_header_compiler=yes
3712else
3713  echo "$as_me: failed program was:" >&5
3714cat conftest.$ac_ext >&5
3715ac_header_compiler=no
3716fi
3717rm -f conftest.$ac_objext conftest.$ac_ext
3718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3719echo "${ECHO_T}$ac_header_compiler" >&6
3720
3721# Is the header present?
3722echo "$as_me:$LINENO: checking $ac_header presence" >&5
3723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3724cat >conftest.$ac_ext <<_ACEOF
3725#line $LINENO "configure"
3726#include "confdefs.h"
3727#include <$ac_header>
3728_ACEOF
3729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3730  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3731  ac_status=$?
3732  egrep -v '^ *\+' conftest.er1 >conftest.err
3733  rm -f conftest.er1
3734  cat conftest.err >&5
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); } >/dev/null; then
3737  if test -s conftest.err; then
3738    ac_cpp_err=$ac_c_preproc_warn_flag
3739  else
3740    ac_cpp_err=
3741  fi
3742else
3743  ac_cpp_err=yes
3744fi
3745if test -z "$ac_cpp_err"; then
3746  ac_header_preproc=yes
3747else
3748  echo "$as_me: failed program was:" >&5
3749  cat conftest.$ac_ext >&5
3750  ac_header_preproc=no
3751fi
3752rm -f conftest.err conftest.$ac_ext
3753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3754echo "${ECHO_T}$ac_header_preproc" >&6
3755
3756# So?  What about this header?
3757case $ac_header_compiler:$ac_header_preproc in
3758  yes:no )
3759    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3761    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3763  no:yes )
3764    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3766    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3770esac
3771echo "$as_me:$LINENO: checking for $ac_header" >&5
3772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3773if eval "test \"\${$as_ac_Header+set}\" = set"; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  eval "$as_ac_Header=$ac_header_preproc"
3777fi
3778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3780
3781fi
3782if test `eval echo '${'$as_ac_Header'}'` = yes; then
3783  cat >>confdefs.h <<_ACEOF
3784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3785_ACEOF
3786
3787fi
3788
3789done
3790
3791
3792
3793
3794
3795# Only perform the check for file, if the check method requires it
3796case $deplibs_check_method in
3797file_magic*)
3798  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3799    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3800echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3801if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804  case $MAGIC_CMD in
3805  /*)
3806  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3807  ;;
3808  ?:/*)
3809  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3810  ;;
3811  *)
3812  ac_save_MAGIC_CMD="$MAGIC_CMD"
3813  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3814  ac_dummy="/usr/bin:$PATH"
3815  for ac_dir in $ac_dummy; do
3816    test -z "$ac_dir" && ac_dir=.
3817    if test -f $ac_dir/${ac_tool_prefix}file; then
3818      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3819      if test -n "$file_magic_test_file"; then
3820	case $deplibs_check_method in
3821	"file_magic "*)
3822	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3823	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3825	    egrep "$file_magic_regex" > /dev/null; then
3826	    :
3827	  else
3828	    cat <<EOF 1>&2
3829
3830*** Warning: the command libtool uses to detect shared libraries,
3831*** $file_magic_cmd, produces output that libtool cannot recognize.
3832*** The result is that libtool may fail to recognize shared libraries
3833*** as such.  This will affect the creation of libtool libraries that
3834*** depend on shared libraries, but programs linked with such libtool
3835*** libraries will work regardless of this problem.  Nevertheless, you
3836*** may want to report the problem to your system manager and/or to
3837*** bug-libtool@gnu.org
3838
3839EOF
3840	  fi ;;
3841	esac
3842      fi
3843      break
3844    fi
3845  done
3846  IFS="$ac_save_ifs"
3847  MAGIC_CMD="$ac_save_MAGIC_CMD"
3848  ;;
3849esac
3850fi
3851
3852MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3853if test -n "$MAGIC_CMD"; then
3854  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3855echo "${ECHO_T}$MAGIC_CMD" >&6
3856else
3857  echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861if test -z "$lt_cv_path_MAGIC_CMD"; then
3862  if test -n "$ac_tool_prefix"; then
3863    echo "$as_me:$LINENO: checking for file" >&5
3864echo $ECHO_N "checking for file... $ECHO_C" >&6
3865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  case $MAGIC_CMD in
3869  /*)
3870  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3871  ;;
3872  ?:/*)
3873  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3874  ;;
3875  *)
3876  ac_save_MAGIC_CMD="$MAGIC_CMD"
3877  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3878  ac_dummy="/usr/bin:$PATH"
3879  for ac_dir in $ac_dummy; do
3880    test -z "$ac_dir" && ac_dir=.
3881    if test -f $ac_dir/file; then
3882      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3883      if test -n "$file_magic_test_file"; then
3884	case $deplibs_check_method in
3885	"file_magic "*)
3886	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3887	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3888	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3889	    egrep "$file_magic_regex" > /dev/null; then
3890	    :
3891	  else
3892	    cat <<EOF 1>&2
3893
3894*** Warning: the command libtool uses to detect shared libraries,
3895*** $file_magic_cmd, produces output that libtool cannot recognize.
3896*** The result is that libtool may fail to recognize shared libraries
3897*** as such.  This will affect the creation of libtool libraries that
3898*** depend on shared libraries, but programs linked with such libtool
3899*** libraries will work regardless of this problem.  Nevertheless, you
3900*** may want to report the problem to your system manager and/or to
3901*** bug-libtool@gnu.org
3902
3903EOF
3904	  fi ;;
3905	esac
3906      fi
3907      break
3908    fi
3909  done
3910  IFS="$ac_save_ifs"
3911  MAGIC_CMD="$ac_save_MAGIC_CMD"
3912  ;;
3913esac
3914fi
3915
3916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3917if test -n "$MAGIC_CMD"; then
3918  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3919echo "${ECHO_T}$MAGIC_CMD" >&6
3920else
3921  echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923fi
3924
3925  else
3926    MAGIC_CMD=:
3927  fi
3928fi
3929
3930  fi
3931  ;;
3932esac
3933
3934if test -n "$ac_tool_prefix"; then
3935  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3936set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3937echo "$as_me:$LINENO: checking for $ac_word" >&5
3938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939if test "${ac_cv_prog_RANLIB+set}" = set; then
3940  echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942  if test -n "$RANLIB"; then
3943  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3944else
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950  for ac_exec_ext in '' $ac_executable_extensions; do
3951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957done
3958
3959fi
3960fi
3961RANLIB=$ac_cv_prog_RANLIB
3962if test -n "$RANLIB"; then
3963  echo "$as_me:$LINENO: result: $RANLIB" >&5
3964echo "${ECHO_T}$RANLIB" >&6
3965else
3966  echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
3968fi
3969
3970fi
3971if test -z "$ac_cv_prog_RANLIB"; then
3972  ac_ct_RANLIB=$RANLIB
3973  # Extract the first word of "ranlib", so it can be a program name with args.
3974set dummy ranlib; ac_word=$2
3975echo "$as_me:$LINENO: checking for $ac_word" >&5
3976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3977if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  if test -n "$ac_ct_RANLIB"; then
3981  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986  IFS=$as_save_IFS
3987  test -z "$as_dir" && as_dir=.
3988  for ac_exec_ext in '' $ac_executable_extensions; do
3989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990    ac_cv_prog_ac_ct_RANLIB="ranlib"
3991    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992    break 2
3993  fi
3994done
3995done
3996
3997  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3998fi
3999fi
4000ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4001if test -n "$ac_ct_RANLIB"; then
4002  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4003echo "${ECHO_T}$ac_ct_RANLIB" >&6
4004else
4005  echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007fi
4008
4009  RANLIB=$ac_ct_RANLIB
4010else
4011  RANLIB="$ac_cv_prog_RANLIB"
4012fi
4013
4014if test -n "$ac_tool_prefix"; then
4015  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}strip; ac_word=$2
4017echo "$as_me:$LINENO: checking for $ac_word" >&5
4018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019if test "${ac_cv_prog_STRIP+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  if test -n "$STRIP"; then
4023  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030  for ac_exec_ext in '' $ac_executable_extensions; do
4031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037done
4038
4039fi
4040fi
4041STRIP=$ac_cv_prog_STRIP
4042if test -n "$STRIP"; then
4043  echo "$as_me:$LINENO: result: $STRIP" >&5
4044echo "${ECHO_T}$STRIP" >&6
4045else
4046  echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
4048fi
4049
4050fi
4051if test -z "$ac_cv_prog_STRIP"; then
4052  ac_ct_STRIP=$STRIP
4053  # Extract the first word of "strip", so it can be a program name with args.
4054set dummy strip; ac_word=$2
4055echo "$as_me:$LINENO: checking for $ac_word" >&5
4056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4058  echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060  if test -n "$ac_ct_STRIP"; then
4061  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068  for ac_exec_ext in '' $ac_executable_extensions; do
4069  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070    ac_cv_prog_ac_ct_STRIP="strip"
4071    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072    break 2
4073  fi
4074done
4075done
4076
4077  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4078fi
4079fi
4080ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4081if test -n "$ac_ct_STRIP"; then
4082  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4083echo "${ECHO_T}$ac_ct_STRIP" >&6
4084else
4085  echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087fi
4088
4089  STRIP=$ac_ct_STRIP
4090else
4091  STRIP="$ac_cv_prog_STRIP"
4092fi
4093
4094
4095enable_dlopen=no
4096enable_win32_dll=no
4097
4098# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4099if test "${enable_libtool_lock+set}" = set; then
4100  enableval="$enable_libtool_lock"
4101
4102fi;
4103test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4104
4105# Some flags need to be propagated to the compiler or linker for good
4106# libtool support.
4107case $host in
4108*-*-irix6*)
4109  # Find out which ABI we are using.
4110  echo '#line 4110 "configure"' > conftest.$ac_ext
4111  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4112  (eval $ac_compile) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; then
4116    case `/usr/bin/file conftest.$ac_objext` in
4117    *32-bit*)
4118      LD="${LD-ld} -32"
4119      ;;
4120    *N32*)
4121      LD="${LD-ld} -n32"
4122      ;;
4123    *64-bit*)
4124      LD="${LD-ld} -64"
4125      ;;
4126    esac
4127  fi
4128  rm -rf conftest*
4129  ;;
4130
4131*-*-sco3.2v5*)
4132  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4133  SAVE_CFLAGS="$CFLAGS"
4134  CFLAGS="$CFLAGS -belf"
4135  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4136echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4137if test "${lt_cv_cc_needs_belf+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140
4141
4142     ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148     cat >conftest.$ac_ext <<_ACEOF
4149#line $LINENO "configure"
4150#include "confdefs.h"
4151
4152#ifdef F77_DUMMY_MAIN
4153#  ifdef __cplusplus
4154     extern "C"
4155#  endif
4156   int F77_DUMMY_MAIN() { return 1; }
4157#endif
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext conftest$ac_exeext
4167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4168  (eval $ac_link) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); } &&
4172         { ac_try='test -s conftest$ac_exeext'
4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174  (eval $ac_try) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  lt_cv_cc_needs_belf=yes
4179else
4180  echo "$as_me: failed program was:" >&5
4181cat conftest.$ac_ext >&5
4182lt_cv_cc_needs_belf=no
4183fi
4184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4185     ac_ext=c
4186ac_cpp='$CPP $CPPFLAGS'
4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190
4191fi
4192echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4193echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4194  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4195    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4196    CFLAGS="$SAVE_CFLAGS"
4197  fi
4198  ;;
4199
4200
4201esac
4202
4203# Sed substitution that helps us do robust quoting.  It backslashifies
4204# metacharacters that are still active within double-quoted strings.
4205Xsed='sed -e s/^X//'
4206sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4207
4208# Same as above, but do not quote variable references.
4209double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4210
4211# Sed substitution to delay expansion of an escaped shell variable in a
4212# double_quote_subst'ed string.
4213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4214
4215# Constants:
4216rm="rm -f"
4217
4218# Global variables:
4219default_ofile=libtool
4220can_build_shared=yes
4221
4222# All known linkers require a `.a' archive for static linking (except M$VC,
4223# which needs '.lib').
4224libext=a
4225ltmain="$ac_aux_dir/ltmain.sh"
4226ofile="$default_ofile"
4227with_gnu_ld="$lt_cv_prog_gnu_ld"
4228need_locks="$enable_libtool_lock"
4229
4230old_CC="$CC"
4231old_CFLAGS="$CFLAGS"
4232
4233# Set sane defaults for various variables
4234test -z "$AR" && AR=ar
4235test -z "$AR_FLAGS" && AR_FLAGS=cru
4236test -z "$AS" && AS=as
4237test -z "$CC" && CC=cc
4238test -z "$DLLTOOL" && DLLTOOL=dlltool
4239test -z "$LD" && LD=ld
4240test -z "$LN_S" && LN_S="ln -s"
4241test -z "$MAGIC_CMD" && MAGIC_CMD=file
4242test -z "$NM" && NM=nm
4243test -z "$OBJDUMP" && OBJDUMP=objdump
4244test -z "$RANLIB" && RANLIB=:
4245test -z "$STRIP" && STRIP=:
4246test -z "$ac_objext" && ac_objext=o
4247
4248if test x"$host" != x"$build"; then
4249  ac_tool_prefix=${host_alias}-
4250else
4251  ac_tool_prefix=
4252fi
4253
4254# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4255case $host_os in
4256linux-gnu*) ;;
4257linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4258esac
4259
4260case $host_os in
4261aix3*)
4262  # AIX sometimes has problems with the GCC collect2 program.  For some
4263  # reason, if we set the COLLECT_NAMES environment variable, the problems
4264  # vanish in a puff of smoke.
4265  if test "X${COLLECT_NAMES+set}" != Xset; then
4266    COLLECT_NAMES=
4267    export COLLECT_NAMES
4268  fi
4269  ;;
4270esac
4271
4272# Determine commands to create old-style static archives.
4273old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4274old_postinstall_cmds='chmod 644 $oldlib'
4275old_postuninstall_cmds=
4276
4277if test -n "$RANLIB"; then
4278  case $host_os in
4279  openbsd*)
4280    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4281    ;;
4282  *)
4283    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4284    ;;
4285  esac
4286  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4287fi
4288
4289# Allow CC to be a program name with arguments.
4290set dummy $CC
4291compiler="$2"
4292
4293echo "$as_me:$LINENO: checking for objdir" >&5
4294echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4295rm -f .libs 2>/dev/null
4296mkdir .libs 2>/dev/null
4297if test -d .libs; then
4298  objdir=.libs
4299else
4300  # MS-DOS does not allow filenames that begin with a dot.
4301  objdir=_libs
4302fi
4303rmdir .libs 2>/dev/null
4304echo "$as_me:$LINENO: result: $objdir" >&5
4305echo "${ECHO_T}$objdir" >&6
4306
4307
4308
4309# Check whether --with-pic or --without-pic was given.
4310if test "${with_pic+set}" = set; then
4311  withval="$with_pic"
4312  pic_mode="$withval"
4313else
4314  pic_mode=default
4315fi;
4316test -z "$pic_mode" && pic_mode=default
4317
4318# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4319# in isolation, and that seeing it set (from the cache) indicates that
4320# the associated values are set (in the cache) correctly too.
4321echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4322echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4323if test "${lt_cv_prog_cc_pic+set}" = set; then
4324  echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326   lt_cv_prog_cc_pic=
4327  lt_cv_prog_cc_shlib=
4328  lt_cv_prog_cc_wl=
4329  lt_cv_prog_cc_static=
4330  lt_cv_prog_cc_no_builtin=
4331  lt_cv_prog_cc_can_build_shared=$can_build_shared
4332
4333  if test "$GCC" = yes; then
4334    lt_cv_prog_cc_wl='-Wl,'
4335    lt_cv_prog_cc_static='-static'
4336
4337    case $host_os in
4338    aix*)
4339      # Below there is a dirty hack to force normal static linking with -ldl
4340      # The problem is because libdl dynamically linked with both libc and
4341      # libC (AIX C++ library), which obviously doesn't included in libraries
4342      # list by gcc. This cause undefined symbols with -static flags.
4343      # This hack allows C programs to be linked with "-static -ldl", but
4344      # not sure about C++ programs.
4345      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4346      ;;
4347    amigaos*)
4348      # FIXME: we need at least 68020 code to build shared libraries, but
4349      # adding the `-m68020' flag to GCC prevents building anything better,
4350      # like `-m68040'.
4351      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4352      ;;
4353    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4354      # PIC is the default for these OSes.
4355      ;;
4356    darwin* | rhapsody*)
4357      # PIC is the default on this platform
4358      # Common symbols not allowed in MH_DYLIB files
4359      lt_cv_prog_cc_pic='-fno-common'
4360      ;;
4361    cygwin* | mingw* | pw32* | os2*)
4362      # This hack is so that the source file can tell whether it is being
4363      # built for inclusion in a dll (and should export symbols for example).
4364      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4365      ;;
4366    sysv4*MP*)
4367      if test -d /usr/nec; then
4368	 lt_cv_prog_cc_pic=-Kconform_pic
4369      fi
4370      ;;
4371    *)
4372      lt_cv_prog_cc_pic='-fPIC'
4373      ;;
4374    esac
4375  else
4376    # PORTME Check for PIC flags for the system compiler.
4377    case $host_os in
4378    aix3* | aix4* | aix5*)
4379      lt_cv_prog_cc_wl='-Wl,'
4380      # All AIX code is PIC.
4381      if test "$host_cpu" = ia64; then
4382	# AIX 5 now supports IA64 processor
4383	lt_cv_prog_cc_static='-Bstatic'
4384      else
4385	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4386      fi
4387      ;;
4388
4389    hpux9* | hpux10* | hpux11*)
4390      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4391      lt_cv_prog_cc_wl='-Wl,'
4392      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4393      lt_cv_prog_cc_pic='+Z'
4394      ;;
4395
4396    irix5* | irix6*)
4397      lt_cv_prog_cc_wl='-Wl,'
4398      lt_cv_prog_cc_static='-non_shared'
4399      # PIC (with -KPIC) is the default.
4400      ;;
4401
4402    cygwin* | mingw* | pw32* | os2*)
4403      # This hack is so that the source file can tell whether it is being
4404      # built for inclusion in a dll (and should export symbols for example).
4405      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4406      ;;
4407
4408    newsos6)
4409      lt_cv_prog_cc_pic='-KPIC'
4410      lt_cv_prog_cc_static='-Bstatic'
4411      ;;
4412
4413    osf3* | osf4* | osf5*)
4414      # All OSF/1 code is PIC.
4415      lt_cv_prog_cc_wl='-Wl,'
4416      lt_cv_prog_cc_static='-non_shared'
4417      ;;
4418
4419    sco3.2v5*)
4420      lt_cv_prog_cc_pic='-Kpic'
4421      lt_cv_prog_cc_static='-dn'
4422      lt_cv_prog_cc_shlib='-belf'
4423      ;;
4424
4425    solaris*)
4426      lt_cv_prog_cc_pic='-KPIC'
4427      lt_cv_prog_cc_static='-Bstatic'
4428      lt_cv_prog_cc_wl='-Wl,'
4429      ;;
4430
4431    sunos4*)
4432      lt_cv_prog_cc_pic='-PIC'
4433      lt_cv_prog_cc_static='-Bstatic'
4434      lt_cv_prog_cc_wl='-Qoption ld '
4435      ;;
4436
4437    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4438      lt_cv_prog_cc_pic='-KPIC'
4439      lt_cv_prog_cc_static='-Bstatic'
4440      if test "x$host_vendor" = xsni; then
4441	lt_cv_prog_cc_wl='-LD'
4442      else
4443	lt_cv_prog_cc_wl='-Wl,'
4444      fi
4445      ;;
4446
4447    uts4*)
4448      lt_cv_prog_cc_pic='-pic'
4449      lt_cv_prog_cc_static='-Bstatic'
4450      ;;
4451
4452    sysv4*MP*)
4453      if test -d /usr/nec ;then
4454	lt_cv_prog_cc_pic='-Kconform_pic'
4455	lt_cv_prog_cc_static='-Bstatic'
4456      fi
4457      ;;
4458
4459    *)
4460      lt_cv_prog_cc_can_build_shared=no
4461      ;;
4462    esac
4463  fi
4464
4465fi
4466
4467if test -z "$lt_cv_prog_cc_pic"; then
4468  echo "$as_me:$LINENO: result: none" >&5
4469echo "${ECHO_T}none" >&6
4470else
4471  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4472echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4473
4474  # Check to make sure the pic_flag actually works.
4475  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4476echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4477  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480      save_CFLAGS="$CFLAGS"
4481    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4482    cat >conftest.$ac_ext <<_ACEOF
4483#line $LINENO "configure"
4484#include "confdefs.h"
4485
4486#ifdef F77_DUMMY_MAIN
4487#  ifdef __cplusplus
4488     extern "C"
4489#  endif
4490   int F77_DUMMY_MAIN() { return 1; }
4491#endif
4492int
4493main ()
4494{
4495
4496  ;
4497  return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext
4501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4502  (eval $ac_compile) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); } &&
4506         { ac_try='test -s conftest.$ac_objext'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512        case $host_os in
4513      hpux9* | hpux10* | hpux11*)
4514	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4515	# they create non-PIC objects.  So, if there were any warnings, we
4516	# assume that PIC is not supported.
4517	if test -s conftest.err; then
4518	  lt_cv_prog_cc_pic_works=no
4519	else
4520	  lt_cv_prog_cc_pic_works=yes
4521	fi
4522	;;
4523      *)
4524	lt_cv_prog_cc_pic_works=yes
4525	;;
4526      esac
4527
4528else
4529  echo "$as_me: failed program was:" >&5
4530cat conftest.$ac_ext >&5
4531      lt_cv_prog_cc_pic_works=no
4532
4533fi
4534rm -f conftest.$ac_objext conftest.$ac_ext
4535    CFLAGS="$save_CFLAGS"
4536
4537fi
4538
4539
4540  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4541    lt_cv_prog_cc_pic=
4542    lt_cv_prog_cc_can_build_shared=no
4543  else
4544    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4545  fi
4546
4547  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4548echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4549fi
4550
4551# Check for any special shared library compilation flags.
4552if test -n "$lt_cv_prog_cc_shlib"; then
4553  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4554echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4555  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4556  else
4557   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4558echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4559    lt_cv_prog_cc_can_build_shared=no
4560  fi
4561fi
4562
4563echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4564echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4565if test "${lt_cv_prog_cc_static_works+set}" = set; then
4566  echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
4568    lt_cv_prog_cc_static_works=no
4569  save_LDFLAGS="$LDFLAGS"
4570  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4571  cat >conftest.$ac_ext <<_ACEOF
4572#line $LINENO "configure"
4573#include "confdefs.h"
4574
4575#ifdef F77_DUMMY_MAIN
4576#  ifdef __cplusplus
4577     extern "C"
4578#  endif
4579   int F77_DUMMY_MAIN() { return 1; }
4580#endif
4581int
4582main ()
4583{
4584
4585  ;
4586  return 0;
4587}
4588_ACEOF
4589rm -f conftest.$ac_objext conftest$ac_exeext
4590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591  (eval $ac_link) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); } &&
4595         { ac_try='test -s conftest$ac_exeext'
4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; }; then
4601  lt_cv_prog_cc_static_works=yes
4602else
4603  echo "$as_me: failed program was:" >&5
4604cat conftest.$ac_ext >&5
4605fi
4606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4607  LDFLAGS="$save_LDFLAGS"
4608
4609fi
4610
4611
4612# Belt *and* braces to stop my trousers falling down:
4613test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4614echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4615echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4616
4617pic_flag="$lt_cv_prog_cc_pic"
4618special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4619wl="$lt_cv_prog_cc_wl"
4620link_static_flag="$lt_cv_prog_cc_static"
4621no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4622can_build_shared="$lt_cv_prog_cc_can_build_shared"
4623
4624
4625# Check to see if options -o and -c are simultaneously supported by compiler
4626echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4627echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4628if test "${lt_cv_compiler_c_o+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631
4632$rm -r conftest 2>/dev/null
4633mkdir conftest
4634cd conftest
4635echo "int some_variable = 0;" > conftest.$ac_ext
4636mkdir out
4637# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4638# that will create temporary files in the current directory regardless of
4639# the output directory.  Thus, making CWD read-only will cause this test
4640# to fail, enabling locking or at least warning the user not to do parallel
4641# builds.
4642chmod -w .
4643save_CFLAGS="$CFLAGS"
4644CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4645compiler_c_o=no
4646if { (eval echo configure:4646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4647  # The compiler can only warn and ignore the option if not recognized
4648  # So say no if there are warnings
4649  if test -s out/conftest.err; then
4650    lt_cv_compiler_c_o=no
4651  else
4652    lt_cv_compiler_c_o=yes
4653  fi
4654else
4655  # Append any errors to the config.log.
4656  cat out/conftest.err 1>&5
4657  lt_cv_compiler_c_o=no
4658fi
4659CFLAGS="$save_CFLAGS"
4660chmod u+w .
4661$rm conftest* out/*
4662rmdir out
4663cd ..
4664rmdir conftest
4665$rm -r conftest 2>/dev/null
4666
4667fi
4668
4669compiler_c_o=$lt_cv_compiler_c_o
4670echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4671echo "${ECHO_T}$compiler_c_o" >&6
4672
4673if test x"$compiler_c_o" = x"yes"; then
4674  # Check to see if we can write to a .lo
4675  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4676echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4677  if test "${lt_cv_compiler_o_lo+set}" = set; then
4678  echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680
4681  lt_cv_compiler_o_lo=no
4682  save_CFLAGS="$CFLAGS"
4683  CFLAGS="$CFLAGS -c -o conftest.lo"
4684  save_objext="$ac_objext"
4685  ac_objext=lo
4686  cat >conftest.$ac_ext <<_ACEOF
4687#line $LINENO "configure"
4688#include "confdefs.h"
4689
4690#ifdef F77_DUMMY_MAIN
4691#  ifdef __cplusplus
4692     extern "C"
4693#  endif
4694   int F77_DUMMY_MAIN() { return 1; }
4695#endif
4696int
4697main ()
4698{
4699int some_variable = 0;
4700  ;
4701  return 0;
4702}
4703_ACEOF
4704rm -f conftest.$ac_objext
4705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706  (eval $ac_compile) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); } &&
4710         { ac_try='test -s conftest.$ac_objext'
4711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712  (eval $ac_try) 2>&5
4713  ac_status=$?
4714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715  (exit $ac_status); }; }; then
4716      # The compiler can only warn and ignore the option if not recognized
4717    # So say no if there are warnings
4718    if test -s conftest.err; then
4719      lt_cv_compiler_o_lo=no
4720    else
4721      lt_cv_compiler_o_lo=yes
4722    fi
4723
4724else
4725  echo "$as_me: failed program was:" >&5
4726cat conftest.$ac_ext >&5
4727fi
4728rm -f conftest.$ac_objext conftest.$ac_ext
4729  ac_objext="$save_objext"
4730  CFLAGS="$save_CFLAGS"
4731
4732fi
4733
4734  compiler_o_lo=$lt_cv_compiler_o_lo
4735  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4736echo "${ECHO_T}$compiler_o_lo" >&6
4737else
4738  compiler_o_lo=no
4739fi
4740
4741# Check to see if we can do hard links to lock some files if needed
4742hard_links="nottested"
4743if test "$compiler_c_o" = no && test "$need_locks" != no; then
4744  # do not overwrite the value of need_locks provided by the user
4745  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4747  hard_links=yes
4748  $rm conftest*
4749  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4750  touch conftest.a
4751  ln conftest.a conftest.b 2>&5 || hard_links=no
4752  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4753  echo "$as_me:$LINENO: result: $hard_links" >&5
4754echo "${ECHO_T}$hard_links" >&6
4755  if test "$hard_links" = no; then
4756    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4758    need_locks=warn
4759  fi
4760else
4761  need_locks=no
4762fi
4763
4764if test "$GCC" = yes; then
4765  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4766  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4767echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4768  echo "int some_variable = 0;" > conftest.$ac_ext
4769  save_CFLAGS="$CFLAGS"
4770  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4771  compiler_rtti_exceptions=no
4772  cat >conftest.$ac_ext <<_ACEOF
4773#line $LINENO "configure"
4774#include "confdefs.h"
4775
4776#ifdef F77_DUMMY_MAIN
4777#  ifdef __cplusplus
4778     extern "C"
4779#  endif
4780   int F77_DUMMY_MAIN() { return 1; }
4781#endif
4782int
4783main ()
4784{
4785int some_variable = 0;
4786  ;
4787  return 0;
4788}
4789_ACEOF
4790rm -f conftest.$ac_objext
4791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792  (eval $ac_compile) 2>&5
4793  ac_status=$?
4794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795  (exit $ac_status); } &&
4796         { ac_try='test -s conftest.$ac_objext'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; }; then
4802      # The compiler can only warn and ignore the option if not recognized
4803    # So say no if there are warnings
4804    if test -s conftest.err; then
4805      compiler_rtti_exceptions=no
4806    else
4807      compiler_rtti_exceptions=yes
4808    fi
4809
4810else
4811  echo "$as_me: failed program was:" >&5
4812cat conftest.$ac_ext >&5
4813fi
4814rm -f conftest.$ac_objext conftest.$ac_ext
4815  CFLAGS="$save_CFLAGS"
4816  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4817echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4818
4819  if test "$compiler_rtti_exceptions" = "yes"; then
4820    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4821  else
4822    no_builtin_flag=' -fno-builtin'
4823  fi
4824fi
4825
4826# See if the linker supports building shared libraries.
4827echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4828echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4829
4830allow_undefined_flag=
4831no_undefined_flag=
4832need_lib_prefix=unknown
4833need_version=unknown
4834# when you set need_version to no, make sure it does not cause -set_version
4835# flags to be left without arguments
4836archive_cmds=
4837archive_expsym_cmds=
4838old_archive_from_new_cmds=
4839old_archive_from_expsyms_cmds=
4840export_dynamic_flag_spec=
4841whole_archive_flag_spec=
4842thread_safe_flag_spec=
4843hardcode_into_libs=no
4844hardcode_libdir_flag_spec=
4845hardcode_libdir_separator=
4846hardcode_direct=no
4847hardcode_minus_L=no
4848hardcode_shlibpath_var=unsupported
4849runpath_var=
4850link_all_deplibs=unknown
4851always_export_symbols=no
4852export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4853# include_expsyms should be a list of space-separated symbols to be *always*
4854# included in the symbol list
4855include_expsyms=
4856# exclude_expsyms can be an egrep regular expression of symbols to exclude
4857# it will be wrapped by ` (' and `)$', so one must not match beginning or
4858# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4859# as well as any symbol that contains `d'.
4860exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4861# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4862# platforms (ab)use it in PIC code, but their linkers get confused if
4863# the symbol is explicitly referenced.  Since portable code cannot
4864# rely on this symbol name, it's probably fine to never include it in
4865# preloaded symbol tables.
4866extract_expsyms_cmds=
4867
4868case $host_os in
4869cygwin* | mingw* | pw32*)
4870  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4871  # When not using gcc, we currently assume that we are using
4872  # Microsoft Visual C++.
4873  if test "$GCC" != yes; then
4874    with_gnu_ld=no
4875  fi
4876  ;;
4877openbsd*)
4878  with_gnu_ld=no
4879  ;;
4880esac
4881
4882ld_shlibs=yes
4883if test "$with_gnu_ld" = yes; then
4884  # If archive_cmds runs LD, not CC, wlarc should be empty
4885  wlarc='${wl}'
4886
4887  # See if GNU ld supports shared libraries.
4888  case $host_os in
4889  aix3* | aix4* | aix5*)
4890    # On AIX, the GNU linker is very broken
4891    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4892    ld_shlibs=no
4893    cat <<EOF 1>&2
4894
4895*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4896*** to be unable to reliably create shared libraries on AIX.
4897*** Therefore, libtool is disabling shared libraries support.  If you
4898*** really care for shared libraries, you may want to modify your PATH
4899*** so that a non-GNU linker is found, and then restart.
4900
4901EOF
4902    ;;
4903
4904  amigaos*)
4905    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)'
4906    hardcode_libdir_flag_spec='-L$libdir'
4907    hardcode_minus_L=yes
4908
4909    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4910    # that the semantics of dynamic libraries on AmigaOS, at least up
4911    # to version 4, is to share data among multiple programs linked
4912    # with the same dynamic library.  Since this doesn't match the
4913    # behavior of shared libraries on other platforms, we can use
4914    # them.
4915    ld_shlibs=no
4916    ;;
4917
4918  beos*)
4919    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4920      allow_undefined_flag=unsupported
4921      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4922      # support --undefined.  This deserves some investigation.  FIXME
4923      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4924    else
4925      ld_shlibs=no
4926    fi
4927    ;;
4928
4929  cygwin* | mingw* | pw32*)
4930    # hardcode_libdir_flag_spec is actually meaningless, as there is
4931    # no search path for DLLs.
4932    hardcode_libdir_flag_spec='-L$libdir'
4933    allow_undefined_flag=unsupported
4934    always_export_symbols=yes
4935
4936    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4937      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4938      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4939      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4940      else $CC -o impgen impgen.c ; fi)~
4941      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4942
4943    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4944
4945    # cygwin and mingw dlls have different entry points and sets of symbols
4946    # to exclude.
4947    # FIXME: what about values for MSVC?
4948    dll_entry=__cygwin_dll_entry@12
4949    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4950    case $host_os in
4951    mingw*)
4952      # mingw values
4953      dll_entry=_DllMainCRTStartup@12
4954      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4955      ;;
4956    esac
4957
4958    # mingw and cygwin differ, and it's simplest to just exclude the union
4959    # of the two symbol sets.
4960    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4961
4962    # recent cygwin and mingw systems supply a stub DllMain which the user
4963    # can override, but on older systems we have to supply one (in ltdll.c)
4964    if test "x$lt_cv_need_dllmain" = "xyes"; then
4965      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4966      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4967	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4968    else
4969      ltdll_obj=
4970      ltdll_cmds=
4971    fi
4972
4973    # Extract the symbol export list from an `--export-all' def file,
4974    # then regenerate the def file from the symbol export list, so that
4975    # the compiled dll only exports the symbol export list.
4976    # Be careful not to strip the DATA tag left be newer dlltools.
4977    export_symbols_cmds="$ltdll_cmds"'
4978      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4979      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4980
4981    # If the export-symbols file already is a .def file (1st line
4982    # is EXPORTS), use it as is.
4983    # If DATA tags from a recent dlltool are present, honour them!
4984    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4985	cp $export_symbols $output_objdir/$soname-def;
4986      else
4987	echo EXPORTS > $output_objdir/$soname-def;
4988	_lt_hint=1;
4989	cat $export_symbols | while read symbol; do
4990	 set dummy \$symbol;
4991	 case \$# in
4992	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4993	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4994	 esac;
4995	 _lt_hint=`expr 1 + \$_lt_hint`;
4996	done;
4997      fi~
4998      '"$ltdll_cmds"'
4999      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5000      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5001      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5002      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5003      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5004    ;;
5005
5006  netbsd*)
5007    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5008      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5009      wlarc=
5010    else
5011      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5012      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5013    fi
5014    ;;
5015
5016  solaris* | sysv5*)
5017    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5018      ld_shlibs=no
5019      cat <<EOF 1>&2
5020
5021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5022*** create shared libraries on Solaris systems.  Therefore, libtool
5023*** is disabling shared libraries support.  We urge you to upgrade GNU
5024*** binutils to release 2.9.1 or newer.  Another option is to modify
5025*** your PATH or compiler configuration so that the native linker is
5026*** used, and then restart.
5027
5028EOF
5029    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5030      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5031      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5032    else
5033      ld_shlibs=no
5034    fi
5035    ;;
5036
5037  sunos4*)
5038    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5039    wlarc=
5040    hardcode_direct=yes
5041    hardcode_shlibpath_var=no
5042    ;;
5043
5044  *)
5045    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5046      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5047      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5048    else
5049      ld_shlibs=no
5050    fi
5051    ;;
5052  esac
5053
5054  if test "$ld_shlibs" = yes; then
5055    runpath_var=LD_RUN_PATH
5056    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5057    export_dynamic_flag_spec='${wl}--export-dynamic'
5058    case $host_os in
5059    cygwin* | mingw* | pw32*)
5060      # dlltool doesn't understand --whole-archive et. al.
5061      whole_archive_flag_spec=
5062      ;;
5063    *)
5064      # ancient GNU ld didn't support --whole-archive et. al.
5065      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5066	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5067      else
5068	whole_archive_flag_spec=
5069      fi
5070      ;;
5071    esac
5072  fi
5073else
5074  # PORTME fill in a description of your system's linker (not GNU ld)
5075  case $host_os in
5076  aix3*)
5077    allow_undefined_flag=unsupported
5078    always_export_symbols=yes
5079    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'
5080    # Note: this linker hardcodes the directories in LIBPATH if there
5081    # are no directories specified by -L.
5082    hardcode_minus_L=yes
5083    if test "$GCC" = yes && test -z "$link_static_flag"; then
5084      # Neither direct hardcoding nor static linking is supported with a
5085      # broken collect2.
5086      hardcode_direct=unsupported
5087    fi
5088    ;;
5089
5090  aix4* | aix5*)
5091    if test "$host_cpu" = ia64; then
5092      # On IA64, the linker does run time linking by default, so we don't
5093      # have to do anything special.
5094      aix_use_runtimelinking=no
5095      exp_sym_flag='-Bexport'
5096      no_entry_flag=""
5097    else
5098      aix_use_runtimelinking=no
5099
5100      # Test if we are trying to use run time linking or normal
5101      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5102      # need to do runtime linking.
5103      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5104	for ld_flag in $LDFLAGS; do
5105	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5106	    aix_use_runtimelinking=yes
5107	    break
5108	  fi
5109	done
5110      esac
5111
5112      exp_sym_flag='-bexport'
5113      no_entry_flag='-bnoentry'
5114    fi
5115
5116    # When large executables or shared objects are built, AIX ld can
5117    # have problems creating the table of contents.  If linking a library
5118    # or program results in "error TOC overflow" add -mminimal-toc to
5119    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5120    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5121
5122    hardcode_direct=yes
5123    archive_cmds=''
5124    hardcode_libdir_separator=':'
5125    if test "$GCC" = yes; then
5126      case $host_os in aix4.[012]|aix4.[012].*)
5127	collect2name=`${CC} -print-prog-name=collect2`
5128	if test -f "$collect2name" && \
5129	  strings "$collect2name" | grep resolve_lib_name >/dev/null
5130	then
5131	  # We have reworked collect2
5132	  hardcode_direct=yes
5133	else
5134	  # We have old collect2
5135	  hardcode_direct=unsupported
5136	  # It fails to find uninstalled libraries when the uninstalled
5137	  # path is not listed in the libpath.  Setting hardcode_minus_L
5138	  # to unsupported forces relinking
5139	  hardcode_minus_L=yes
5140	  hardcode_libdir_flag_spec='-L$libdir'
5141	  hardcode_libdir_separator=
5142	fi
5143      esac
5144
5145      shared_flag='-shared'
5146    else
5147      # not using gcc
5148      if test "$host_cpu" = ia64; then
5149	shared_flag='${wl}-G'
5150      else
5151	if test "$aix_use_runtimelinking" = yes; then
5152	  shared_flag='${wl}-G'
5153	else
5154	  shared_flag='${wl}-bM:SRE'
5155	fi
5156      fi
5157    fi
5158
5159    # It seems that -bexpall can do strange things, so it is better to
5160    # generate a list of symbols to export.
5161    always_export_symbols=yes
5162    if test "$aix_use_runtimelinking" = yes; then
5163      # Warning - without using the other runtime loading flags (-brtl),
5164      # -berok will link without error, but may produce a broken library.
5165      allow_undefined_flag='-berok'
5166      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5167      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5168    else
5169      if test "$host_cpu" = ia64; then
5170	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5171	allow_undefined_flag="-z nodefs"
5172	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5173      else
5174	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5175	# Warning - without using the other run time loading flags,
5176	# -berok will link without error, but may produce a broken library.
5177	allow_undefined_flag='${wl}-berok'
5178	# This is a bit strange, but is similar to how AIX traditionally builds
5179	# it's shared libraries.
5180	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5181      fi
5182    fi
5183    ;;
5184
5185  amigaos*)
5186    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)'
5187    hardcode_libdir_flag_spec='-L$libdir'
5188    hardcode_minus_L=yes
5189    # see comment about different semantics on the GNU ld section
5190    ld_shlibs=no
5191    ;;
5192
5193  cygwin* | mingw* | pw32*)
5194    # When not using gcc, we currently assume that we are using
5195    # Microsoft Visual C++.
5196    # hardcode_libdir_flag_spec is actually meaningless, as there is
5197    # no search path for DLLs.
5198    hardcode_libdir_flag_spec=' '
5199    allow_undefined_flag=unsupported
5200    # Tell ltmain to make .lib files, not .a files.
5201    libext=lib
5202    # FIXME: Setting linknames here is a bad hack.
5203    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5204    # The linker will automatically build a .lib file if we build a DLL.
5205    old_archive_from_new_cmds='true'
5206    # FIXME: Should let the user specify the lib program.
5207    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5208    fix_srcfile_path='`cygpath -w "$srcfile"`'
5209    ;;
5210
5211  darwin* | rhapsody*)
5212    case "$host_os" in
5213    rhapsody* | darwin1.[012])
5214      allow_undefined_flag='-undefined suppress'
5215      ;;
5216    *) # Darwin 1.3 on
5217      allow_undefined_flag='-flat_namespace -undefined suppress'
5218      ;;
5219    esac
5220    # FIXME: Relying on posixy $() will cause problems for
5221    #        cross-compilation, but unfortunately the echo tests do not
5222    #        yet detect zsh echo's removal of \ escapes.
5223    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5224    # We need to add '_' to the symbols in $export_symbols first
5225    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5226    hardcode_direct=yes
5227    hardcode_shlibpath_var=no
5228    whole_archive_flag_spec='-all_load $convenience'
5229    ;;
5230
5231  freebsd1*)
5232    ld_shlibs=no
5233    ;;
5234
5235  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5236  # support.  Future versions do this automatically, but an explicit c++rt0.o
5237  # does not break anything, and helps significantly (at the cost of a little
5238  # extra space).
5239  freebsd2.2*)
5240    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5241    hardcode_libdir_flag_spec='-R$libdir'
5242    hardcode_direct=yes
5243    hardcode_shlibpath_var=no
5244    ;;
5245
5246  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5247  freebsd2*)
5248    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5249    hardcode_direct=yes
5250    hardcode_minus_L=yes
5251    hardcode_shlibpath_var=no
5252    ;;
5253
5254  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5255  freebsd*)
5256    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5257    hardcode_libdir_flag_spec='-R$libdir'
5258    hardcode_direct=yes
5259    hardcode_shlibpath_var=no
5260    ;;
5261
5262  hpux9* | hpux10* | hpux11*)
5263    case $host_os in
5264    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5265    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5266    esac
5267    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5268    hardcode_libdir_separator=:
5269    hardcode_direct=yes
5270    hardcode_minus_L=yes # Not in the search PATH, but as the default
5271			 # location of the library.
5272    export_dynamic_flag_spec='${wl}-E'
5273    ;;
5274
5275  irix5* | irix6*)
5276    if test "$GCC" = yes; then
5277      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5278    else
5279      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5280    fi
5281    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5282    hardcode_libdir_separator=:
5283    link_all_deplibs=yes
5284    ;;
5285
5286  netbsd*)
5287    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5288      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5289    else
5290      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5291    fi
5292    hardcode_libdir_flag_spec='-R$libdir'
5293    hardcode_direct=yes
5294    hardcode_shlibpath_var=no
5295    ;;
5296
5297  newsos6)
5298    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5299    hardcode_direct=yes
5300    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5301    hardcode_libdir_separator=:
5302    hardcode_shlibpath_var=no
5303    ;;
5304
5305  openbsd*)
5306    hardcode_direct=yes
5307    hardcode_shlibpath_var=no
5308    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5309      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5310      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5311      export_dynamic_flag_spec='${wl}-E'
5312    else
5313      case "$host_os" in
5314      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5315	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5316	hardcode_libdir_flag_spec='-R$libdir'
5317        ;;
5318      *)
5319        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5320        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5321        ;;
5322      esac
5323    fi
5324    ;;
5325
5326  os2*)
5327    hardcode_libdir_flag_spec='-L$libdir'
5328    hardcode_minus_L=yes
5329    allow_undefined_flag=unsupported
5330    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5331    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5332    ;;
5333
5334  osf3*)
5335    if test "$GCC" = yes; then
5336      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5337      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5338    else
5339      allow_undefined_flag=' -expect_unresolved \*'
5340      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5341    fi
5342    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5343    hardcode_libdir_separator=:
5344    ;;
5345
5346  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5347    if test "$GCC" = yes; then
5348      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5349      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5350      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5351    else
5352      allow_undefined_flag=' -expect_unresolved \*'
5353      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5354      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5355      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5356
5357      #Both c and cxx compiler support -rpath directly
5358      hardcode_libdir_flag_spec='-rpath $libdir'
5359    fi
5360    hardcode_libdir_separator=:
5361    ;;
5362
5363  sco3.2v5*)
5364    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5365    hardcode_shlibpath_var=no
5366    runpath_var=LD_RUN_PATH
5367    hardcode_runpath_var=yes
5368    export_dynamic_flag_spec='${wl}-Bexport'
5369    ;;
5370
5371  solaris*)
5372    # gcc --version < 3.0 without binutils cannot create self contained
5373    # shared libraries reliably, requiring libgcc.a to resolve some of
5374    # the object symbols generated in some cases.  Libraries that use
5375    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5376    # a copy of libgcc.a into every shared library to guarantee resolving
5377    # such symbols causes other problems:  According to Tim Van Holder
5378    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5379    # (to the application) exception stack for one thing.
5380    no_undefined_flag=' -z defs'
5381    if test "$GCC" = yes; then
5382      case `$CC --version 2>/dev/null` in
5383      [12].*)
5384	cat <<EOF 1>&2
5385
5386*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5387*** create self contained shared libraries on Solaris systems, without
5388*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5389*** -no-undefined support, which will at least allow you to build shared
5390*** libraries.  However, you may find that when you link such libraries
5391*** into an application without using GCC, you have to manually add
5392*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5393*** upgrade to a newer version of GCC.  Another option is to rebuild your
5394*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5395
5396EOF
5397        no_undefined_flag=
5398	;;
5399      esac
5400    fi
5401    # $CC -shared without GNU ld will not create a library from C++
5402    # object files and a static libstdc++, better avoid it by now
5403    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5404    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5405		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5406    hardcode_libdir_flag_spec='-R$libdir'
5407    hardcode_shlibpath_var=no
5408    case $host_os in
5409    solaris2.[0-5] | solaris2.[0-5].*) ;;
5410    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5411      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5412    esac
5413    link_all_deplibs=yes
5414    ;;
5415
5416  sunos4*)
5417    if test "x$host_vendor" = xsequent; then
5418      # Use $CC to link under sequent, because it throws in some extra .o
5419      # files that make .init and .fini sections work.
5420      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5421    else
5422      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5423    fi
5424    hardcode_libdir_flag_spec='-L$libdir'
5425    hardcode_direct=yes
5426    hardcode_minus_L=yes
5427    hardcode_shlibpath_var=no
5428    ;;
5429
5430  sysv4)
5431    if test "x$host_vendor" = xsno; then
5432      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5433      hardcode_direct=yes # is this really true???
5434    else
5435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5436      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5437    fi
5438    runpath_var='LD_RUN_PATH'
5439    hardcode_shlibpath_var=no
5440    ;;
5441
5442  sysv4.3*)
5443    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5444    hardcode_shlibpath_var=no
5445    export_dynamic_flag_spec='-Bexport'
5446    ;;
5447
5448  sysv5*)
5449    no_undefined_flag=' -z text'
5450    # $CC -shared without GNU ld will not create a library from C++
5451    # object files and a static libstdc++, better avoid it by now
5452    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5453    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5454		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5455    hardcode_libdir_flag_spec=
5456    hardcode_shlibpath_var=no
5457    runpath_var='LD_RUN_PATH'
5458    ;;
5459
5460  uts4*)
5461    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5462    hardcode_libdir_flag_spec='-L$libdir'
5463    hardcode_shlibpath_var=no
5464    ;;
5465
5466  dgux*)
5467    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5468    hardcode_libdir_flag_spec='-L$libdir'
5469    hardcode_shlibpath_var=no
5470    ;;
5471
5472  sysv4*MP*)
5473    if test -d /usr/nec; then
5474      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5475      hardcode_shlibpath_var=no
5476      runpath_var=LD_RUN_PATH
5477      hardcode_runpath_var=yes
5478      ld_shlibs=yes
5479    fi
5480    ;;
5481
5482  sysv4.2uw2*)
5483    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5484    hardcode_direct=yes
5485    hardcode_minus_L=no
5486    hardcode_shlibpath_var=no
5487    hardcode_runpath_var=yes
5488    runpath_var=LD_RUN_PATH
5489    ;;
5490
5491  sysv5uw7* | unixware7*)
5492    no_undefined_flag='${wl}-z ${wl}text'
5493    if test "$GCC" = yes; then
5494      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5495    else
5496      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5497    fi
5498    runpath_var='LD_RUN_PATH'
5499    hardcode_shlibpath_var=no
5500    ;;
5501
5502  *)
5503    ld_shlibs=no
5504    ;;
5505  esac
5506fi
5507echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5508echo "${ECHO_T}$ld_shlibs" >&6
5509test "$ld_shlibs" = no && can_build_shared=no
5510
5511# Check hardcoding attributes.
5512echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5513echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5514hardcode_action=
5515if test -n "$hardcode_libdir_flag_spec" || \
5516   test -n "$runpath_var"; then
5517
5518  # We can hardcode non-existant directories.
5519  if test "$hardcode_direct" != no &&
5520     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5521     # have to relink, otherwise we might link with an installed library
5522     # when we should be linking with a yet-to-be-installed one
5523     ## test "$hardcode_shlibpath_var" != no &&
5524     test "$hardcode_minus_L" != no; then
5525    # Linking always hardcodes the temporary library directory.
5526    hardcode_action=relink
5527  else
5528    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5529    hardcode_action=immediate
5530  fi
5531else
5532  # We cannot hardcode anything, or else we can only hardcode existing
5533  # directories.
5534  hardcode_action=unsupported
5535fi
5536echo "$as_me:$LINENO: result: $hardcode_action" >&5
5537echo "${ECHO_T}$hardcode_action" >&6
5538
5539striplib=
5540old_striplib=
5541echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5542echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5543if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5544  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5545  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5546  echo "$as_me:$LINENO: result: yes" >&5
5547echo "${ECHO_T}yes" >&6
5548else
5549  echo "$as_me:$LINENO: result: no" >&5
5550echo "${ECHO_T}no" >&6
5551fi
5552
5553reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554test -z "$deplibs_check_method" && deplibs_check_method=unknown
5555
5556# PORTME Fill in your ld.so characteristics
5557echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5558echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5559library_names_spec=
5560libname_spec='lib$name'
5561soname_spec=
5562postinstall_cmds=
5563postuninstall_cmds=
5564finish_cmds=
5565finish_eval=
5566shlibpath_var=
5567shlibpath_overrides_runpath=unknown
5568version_type=none
5569dynamic_linker="$host_os ld.so"
5570sys_lib_dlsearch_path_spec="/lib /usr/lib"
5571sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5572
5573case $host_os in
5574aix3*)
5575  version_type=linux
5576  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5577  shlibpath_var=LIBPATH
5578
5579  # AIX has no versioning support, so we append a major version to the name.
5580  soname_spec='${libname}${release}.so$major'
5581  ;;
5582
5583aix4* | aix5*)
5584  version_type=linux
5585  if test "$host_cpu" = ia64; then
5586    # AIX 5 supports IA64
5587    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5588    shlibpath_var=LD_LIBRARY_PATH
5589  else
5590    # With GCC up to 2.95.x, collect2 would create an import file
5591    # for dependence libraries.  The import file would start with
5592    # the line `#! .'.  This would cause the generated library to
5593    # depend on `.', always an invalid library.  This was fixed in
5594    # development snapshots of GCC prior to 3.0.
5595    case $host_os in
5596      aix4 | aix4.[01] | aix4.[01].*)
5597	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5598	     echo ' yes '
5599	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5600	  :
5601	else
5602	  can_build_shared=no
5603	fi
5604	;;
5605    esac
5606    # AIX (on Power*) has no versioning support, so currently we can
5607    # not hardcode correct soname into executable. Probably we can
5608    # add versioning support to collect2, so additional links can
5609    # be useful in future.
5610    if test "$aix_use_runtimelinking" = yes; then
5611      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5612      # instead of lib<name>.a to let people know that these are not
5613      # typical AIX shared libraries.
5614      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5615    else
5616      # We preserve .a as extension for shared libraries through AIX4.2
5617      # and later when we are not doing run time linking.
5618      library_names_spec='${libname}${release}.a $libname.a'
5619      soname_spec='${libname}${release}.so$major'
5620    fi
5621    shlibpath_var=LIBPATH
5622  fi
5623  ;;
5624
5625amigaos*)
5626  library_names_spec='$libname.ixlibrary $libname.a'
5627  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5628  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5629  ;;
5630
5631beos*)
5632  library_names_spec='${libname}.so'
5633  dynamic_linker="$host_os ld.so"
5634  shlibpath_var=LIBRARY_PATH
5635  ;;
5636
5637bsdi4*)
5638  version_type=linux
5639  need_version=no
5640  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5641  soname_spec='${libname}${release}.so$major'
5642  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5643  shlibpath_var=LD_LIBRARY_PATH
5644  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5645  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5646  export_dynamic_flag_spec=-rdynamic
5647  # the default ld.so.conf also contains /usr/contrib/lib and
5648  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5649  # libtool to hard-code these into programs
5650  ;;
5651
5652cygwin* | mingw* | pw32*)
5653  version_type=windows
5654  need_version=no
5655  need_lib_prefix=no
5656  case $GCC,$host_os in
5657  yes,cygwin*)
5658    library_names_spec='$libname.dll.a'
5659    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5660    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5661      dldir=$destdir/`dirname \$dlpath`~
5662      test -d \$dldir || mkdir -p \$dldir~
5663      $install_prog .libs/$dlname \$dldir/$dlname'
5664    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5665      dlpath=$dir/\$dldll~
5666       $rm \$dlpath'
5667    ;;
5668  yes,mingw*)
5669    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5670    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5671    ;;
5672  yes,pw32*)
5673    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5674    ;;
5675  *)
5676    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5677    ;;
5678  esac
5679  dynamic_linker='Win32 ld.exe'
5680  # FIXME: first we should search . and the directory the executable is in
5681  shlibpath_var=PATH
5682  ;;
5683
5684darwin* | rhapsody*)
5685  dynamic_linker="$host_os dyld"
5686  version_type=darwin
5687  need_lib_prefix=no
5688  need_version=no
5689  # FIXME: Relying on posixy $() will cause problems for
5690  #        cross-compilation, but unfortunately the echo tests do not
5691  #        yet detect zsh echo's removal of \ escapes.
5692  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5693  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5694  shlibpath_overrides_runpath=yes
5695  shlibpath_var=DYLD_LIBRARY_PATH
5696  ;;
5697
5698freebsd1*)
5699  dynamic_linker=no
5700  ;;
5701
5702freebsd*)
5703  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5704  version_type=freebsd-$objformat
5705  case $version_type in
5706    freebsd-elf*)
5707      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5708      need_version=no
5709      need_lib_prefix=no
5710      ;;
5711    freebsd-*)
5712      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5713      need_version=yes
5714      ;;
5715  esac
5716  shlibpath_var=LD_LIBRARY_PATH
5717  case $host_os in
5718  freebsd2*)
5719    shlibpath_overrides_runpath=yes
5720    ;;
5721  *)
5722    shlibpath_overrides_runpath=no
5723    hardcode_into_libs=yes
5724    ;;
5725  esac
5726  ;;
5727
5728gnu*)
5729  version_type=linux
5730  need_lib_prefix=no
5731  need_version=no
5732  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5733  soname_spec='${libname}${release}.so$major'
5734  shlibpath_var=LD_LIBRARY_PATH
5735  hardcode_into_libs=yes
5736  ;;
5737
5738hpux9* | hpux10* | hpux11*)
5739  # Give a soname corresponding to the major version so that dld.sl refuses to
5740  # link against other versions.
5741  dynamic_linker="$host_os dld.sl"
5742  version_type=sunos
5743  need_lib_prefix=no
5744  need_version=no
5745  shlibpath_var=SHLIB_PATH
5746  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5747  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5748  soname_spec='${libname}${release}.sl$major'
5749  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5750  postinstall_cmds='chmod 555 $lib'
5751  ;;
5752
5753irix5* | irix6*)
5754  version_type=irix
5755  need_lib_prefix=no
5756  need_version=no
5757  soname_spec='${libname}${release}.so$major'
5758  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5759  case $host_os in
5760  irix5*)
5761    libsuff= shlibsuff=
5762    ;;
5763  *)
5764    case $LD in # libtool.m4 will add one of these switches to LD
5765    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5766    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5767    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5768    *) libsuff= shlibsuff= libmagic=never-match;;
5769    esac
5770    ;;
5771  esac
5772  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5773  shlibpath_overrides_runpath=no
5774  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5775  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5776  ;;
5777
5778# No shared lib support for Linux oldld, aout, or coff.
5779linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5780  dynamic_linker=no
5781  ;;
5782
5783# This must be Linux ELF.
5784linux-gnu*)
5785  version_type=linux
5786  need_lib_prefix=no
5787  need_version=no
5788  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5789  soname_spec='${libname}${release}.so$major'
5790  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5791  shlibpath_var=LD_LIBRARY_PATH
5792  shlibpath_overrides_runpath=no
5793  # This implies no fast_install, which is unacceptable.
5794  # Some rework will be needed to allow for fast_install
5795  # before this can be enabled.
5796  hardcode_into_libs=yes
5797
5798  # We used to test for /lib/ld.so.1 and disable shared libraries on
5799  # powerpc, because MkLinux only supported shared libraries with the
5800  # GNU dynamic linker.  Since this was broken with cross compilers,
5801  # most powerpc-linux boxes support dynamic linking these days and
5802  # people can always --disable-shared, the test was removed, and we
5803  # assume the GNU/Linux dynamic linker is in use.
5804  dynamic_linker='GNU/Linux ld.so'
5805  ;;
5806
5807netbsd*)
5808  version_type=sunos
5809  need_lib_prefix=no
5810  need_version=no
5811  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5812    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5813    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5814    dynamic_linker='NetBSD (a.out) ld.so'
5815  else
5816    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5817    soname_spec='${libname}${release}.so$major'
5818    dynamic_linker='NetBSD ld.elf_so'
5819  fi
5820  shlibpath_var=LD_LIBRARY_PATH
5821  shlibpath_overrides_runpath=yes
5822  hardcode_into_libs=yes
5823  ;;
5824
5825newsos6)
5826  version_type=linux
5827  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5828  shlibpath_var=LD_LIBRARY_PATH
5829  shlibpath_overrides_runpath=yes
5830  ;;
5831
5832openbsd*)
5833  version_type=sunos
5834  need_lib_prefix=no
5835  need_version=no
5836  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837    case "$host_os" in
5838    openbsd2.[89] | openbsd2.[89].*)
5839      shlibpath_overrides_runpath=no
5840      ;;
5841    *)
5842      shlibpath_overrides_runpath=yes
5843      ;;
5844    esac
5845  else
5846    shlibpath_overrides_runpath=yes
5847  fi
5848  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5849  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5850  shlibpath_var=LD_LIBRARY_PATH
5851  ;;
5852
5853os2*)
5854  libname_spec='$name'
5855  need_lib_prefix=no
5856  library_names_spec='$libname.dll $libname.a'
5857  dynamic_linker='OS/2 ld.exe'
5858  shlibpath_var=LIBPATH
5859  ;;
5860
5861osf3* | osf4* | osf5*)
5862  version_type=osf
5863  need_version=no
5864  soname_spec='${libname}${release}.so'
5865  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5866  shlibpath_var=LD_LIBRARY_PATH
5867  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5868  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5869  ;;
5870
5871sco3.2v5*)
5872  version_type=osf
5873  soname_spec='${libname}${release}.so$major'
5874  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5875  shlibpath_var=LD_LIBRARY_PATH
5876  ;;
5877
5878solaris*)
5879  version_type=linux
5880  need_lib_prefix=no
5881  need_version=no
5882  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5883  soname_spec='${libname}${release}.so$major'
5884  shlibpath_var=LD_LIBRARY_PATH
5885  shlibpath_overrides_runpath=yes
5886  hardcode_into_libs=yes
5887  # ldd complains unless libraries are executable
5888  postinstall_cmds='chmod +x $lib'
5889  ;;
5890
5891sunos4*)
5892  version_type=sunos
5893  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5894  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5895  shlibpath_var=LD_LIBRARY_PATH
5896  shlibpath_overrides_runpath=yes
5897  if test "$with_gnu_ld" = yes; then
5898    need_lib_prefix=no
5899  fi
5900  need_version=yes
5901  ;;
5902
5903sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5904  version_type=linux
5905  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5906  soname_spec='${libname}${release}.so$major'
5907  shlibpath_var=LD_LIBRARY_PATH
5908  case $host_vendor in
5909    sni)
5910      shlibpath_overrides_runpath=no
5911      ;;
5912    motorola)
5913      need_lib_prefix=no
5914      need_version=no
5915      shlibpath_overrides_runpath=no
5916      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5917      ;;
5918  esac
5919  ;;
5920
5921uts4*)
5922  version_type=linux
5923  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5924  soname_spec='${libname}${release}.so$major'
5925  shlibpath_var=LD_LIBRARY_PATH
5926  ;;
5927
5928dgux*)
5929  version_type=linux
5930  need_lib_prefix=no
5931  need_version=no
5932  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5933  soname_spec='${libname}${release}.so$major'
5934  shlibpath_var=LD_LIBRARY_PATH
5935  ;;
5936
5937sysv4*MP*)
5938  if test -d /usr/nec ;then
5939    version_type=linux
5940    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5941    soname_spec='$libname.so.$major'
5942    shlibpath_var=LD_LIBRARY_PATH
5943  fi
5944  ;;
5945
5946*)
5947  dynamic_linker=no
5948  ;;
5949esac
5950echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5951echo "${ECHO_T}$dynamic_linker" >&6
5952test "$dynamic_linker" = no && can_build_shared=no
5953
5954# Report the final consequences.
5955echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
5956echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5957echo "$as_me:$LINENO: result: $can_build_shared" >&5
5958echo "${ECHO_T}$can_build_shared" >&6
5959
5960echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
5961echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5962test "$can_build_shared" = "no" && enable_shared=no
5963
5964# On AIX, shared libraries and static libraries use the same namespace, and
5965# are all built from PIC.
5966case "$host_os" in
5967aix3*)
5968  test "$enable_shared" = yes && enable_static=no
5969  if test -n "$RANLIB"; then
5970    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5971    postinstall_cmds='$RANLIB $lib'
5972  fi
5973  ;;
5974
5975aix4*)
5976  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5977    test "$enable_shared" = yes && enable_static=no
5978  fi
5979  ;;
5980esac
5981echo "$as_me:$LINENO: result: $enable_shared" >&5
5982echo "${ECHO_T}$enable_shared" >&6
5983
5984echo "$as_me:$LINENO: checking whether to build static libraries" >&5
5985echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5986# Make sure either enable_shared or enable_static is yes.
5987test "$enable_shared" = yes || enable_static=yes
5988echo "$as_me:$LINENO: result: $enable_static" >&5
5989echo "${ECHO_T}$enable_static" >&6
5990
5991if test "$hardcode_action" = relink; then
5992  # Fast installation is not supported
5993  enable_fast_install=no
5994elif test "$shlibpath_overrides_runpath" = yes ||
5995     test "$enable_shared" = no; then
5996  # Fast installation is not necessary
5997  enable_fast_install=needless
5998fi
5999
6000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6001if test "$GCC" = yes; then
6002  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6003fi
6004
6005if test "x$enable_dlopen" != xyes; then
6006  enable_dlopen=unknown
6007  enable_dlopen_self=unknown
6008  enable_dlopen_self_static=unknown
6009else
6010  lt_cv_dlopen=no
6011  lt_cv_dlopen_libs=
6012
6013  case $host_os in
6014  beos*)
6015    lt_cv_dlopen="load_add_on"
6016    lt_cv_dlopen_libs=
6017    lt_cv_dlopen_self=yes
6018    ;;
6019
6020  cygwin* | mingw* | pw32*)
6021    lt_cv_dlopen="LoadLibrary"
6022    lt_cv_dlopen_libs=
6023   ;;
6024
6025  *)
6026    echo "$as_me:$LINENO: checking for shl_load" >&5
6027echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6028if test "${ac_cv_func_shl_load+set}" = set; then
6029  echo $ECHO_N "(cached) $ECHO_C" >&6
6030else
6031  cat >conftest.$ac_ext <<_ACEOF
6032#line $LINENO "configure"
6033#include "confdefs.h"
6034/* System header to define __stub macros and hopefully few prototypes,
6035    which can conflict with char shl_load (); below.  */
6036#include <assert.h>
6037/* Override any gcc2 internal prototype to avoid an error.  */
6038#ifdef __cplusplus
6039extern "C"
6040#endif
6041/* We use char because int might match the return type of a gcc2
6042   builtin and then its argument prototype would still apply.  */
6043char shl_load ();
6044char (*f) ();
6045
6046#ifdef F77_DUMMY_MAIN
6047#  ifdef __cplusplus
6048     extern "C"
6049#  endif
6050   int F77_DUMMY_MAIN() { return 1; }
6051#endif
6052int
6053main ()
6054{
6055/* The GNU C library defines this for functions which it implements
6056    to always fail with ENOSYS.  Some functions are actually named
6057    something starting with __ and the normal name is an alias.  */
6058#if defined (__stub_shl_load) || defined (__stub___shl_load)
6059choke me
6060#else
6061f = shl_load;
6062#endif
6063
6064  ;
6065  return 0;
6066}
6067_ACEOF
6068rm -f conftest.$ac_objext conftest$ac_exeext
6069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6070  (eval $ac_link) 2>&5
6071  ac_status=$?
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); } &&
6074         { ac_try='test -s conftest$ac_exeext'
6075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076  (eval $ac_try) 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); }; }; then
6080  ac_cv_func_shl_load=yes
6081else
6082  echo "$as_me: failed program was:" >&5
6083cat conftest.$ac_ext >&5
6084ac_cv_func_shl_load=no
6085fi
6086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6087fi
6088echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6089echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6090if test $ac_cv_func_shl_load = yes; then
6091  lt_cv_dlopen="shl_load"
6092else
6093  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6095if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098  ac_check_lib_save_LIBS=$LIBS
6099LIBS="-ldld  $LIBS"
6100cat >conftest.$ac_ext <<_ACEOF
6101#line $LINENO "configure"
6102#include "confdefs.h"
6103
6104/* Override any gcc2 internal prototype to avoid an error.  */
6105#ifdef __cplusplus
6106extern "C"
6107#endif
6108/* We use char because int might match the return type of a gcc2
6109   builtin and then its argument prototype would still apply.  */
6110char shl_load ();
6111#ifdef F77_DUMMY_MAIN
6112#  ifdef __cplusplus
6113     extern "C"
6114#  endif
6115   int F77_DUMMY_MAIN() { return 1; }
6116#endif
6117int
6118main ()
6119{
6120shl_load ();
6121  ;
6122  return 0;
6123}
6124_ACEOF
6125rm -f conftest.$ac_objext conftest$ac_exeext
6126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127  (eval $ac_link) 2>&5
6128  ac_status=$?
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); } &&
6131         { ac_try='test -s conftest$ac_exeext'
6132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133  (eval $ac_try) 2>&5
6134  ac_status=$?
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); }; }; then
6137  ac_cv_lib_dld_shl_load=yes
6138else
6139  echo "$as_me: failed program was:" >&5
6140cat conftest.$ac_ext >&5
6141ac_cv_lib_dld_shl_load=no
6142fi
6143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6144LIBS=$ac_check_lib_save_LIBS
6145fi
6146echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6147echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6148if test $ac_cv_lib_dld_shl_load = yes; then
6149  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6150else
6151  echo "$as_me:$LINENO: checking for dlopen" >&5
6152echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6153if test "${ac_cv_func_dlopen+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  cat >conftest.$ac_ext <<_ACEOF
6157#line $LINENO "configure"
6158#include "confdefs.h"
6159/* System header to define __stub macros and hopefully few prototypes,
6160    which can conflict with char dlopen (); below.  */
6161#include <assert.h>
6162/* Override any gcc2 internal prototype to avoid an error.  */
6163#ifdef __cplusplus
6164extern "C"
6165#endif
6166/* We use char because int might match the return type of a gcc2
6167   builtin and then its argument prototype would still apply.  */
6168char dlopen ();
6169char (*f) ();
6170
6171#ifdef F77_DUMMY_MAIN
6172#  ifdef __cplusplus
6173     extern "C"
6174#  endif
6175   int F77_DUMMY_MAIN() { return 1; }
6176#endif
6177int
6178main ()
6179{
6180/* The GNU C library defines this for functions which it implements
6181    to always fail with ENOSYS.  Some functions are actually named
6182    something starting with __ and the normal name is an alias.  */
6183#if defined (__stub_dlopen) || defined (__stub___dlopen)
6184choke me
6185#else
6186f = dlopen;
6187#endif
6188
6189  ;
6190  return 0;
6191}
6192_ACEOF
6193rm -f conftest.$ac_objext conftest$ac_exeext
6194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6195  (eval $ac_link) 2>&5
6196  ac_status=$?
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); } &&
6199         { ac_try='test -s conftest$ac_exeext'
6200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201  (eval $ac_try) 2>&5
6202  ac_status=$?
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); }; }; then
6205  ac_cv_func_dlopen=yes
6206else
6207  echo "$as_me: failed program was:" >&5
6208cat conftest.$ac_ext >&5
6209ac_cv_func_dlopen=no
6210fi
6211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212fi
6213echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6214echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6215if test $ac_cv_func_dlopen = yes; then
6216  lt_cv_dlopen="dlopen"
6217else
6218  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6219echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6220if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  ac_check_lib_save_LIBS=$LIBS
6224LIBS="-ldl  $LIBS"
6225cat >conftest.$ac_ext <<_ACEOF
6226#line $LINENO "configure"
6227#include "confdefs.h"
6228
6229/* Override any gcc2 internal prototype to avoid an error.  */
6230#ifdef __cplusplus
6231extern "C"
6232#endif
6233/* We use char because int might match the return type of a gcc2
6234   builtin and then its argument prototype would still apply.  */
6235char dlopen ();
6236#ifdef F77_DUMMY_MAIN
6237#  ifdef __cplusplus
6238     extern "C"
6239#  endif
6240   int F77_DUMMY_MAIN() { return 1; }
6241#endif
6242int
6243main ()
6244{
6245dlopen ();
6246  ;
6247  return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext conftest$ac_exeext
6251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252  (eval $ac_link) 2>&5
6253  ac_status=$?
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } &&
6256         { ac_try='test -s conftest$ac_exeext'
6257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258  (eval $ac_try) 2>&5
6259  ac_status=$?
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); }; }; then
6262  ac_cv_lib_dl_dlopen=yes
6263else
6264  echo "$as_me: failed program was:" >&5
6265cat conftest.$ac_ext >&5
6266ac_cv_lib_dl_dlopen=no
6267fi
6268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6269LIBS=$ac_check_lib_save_LIBS
6270fi
6271echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6272echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6273if test $ac_cv_lib_dl_dlopen = yes; then
6274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6275else
6276  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6277echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6278if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6279  echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281  ac_check_lib_save_LIBS=$LIBS
6282LIBS="-lsvld  $LIBS"
6283cat >conftest.$ac_ext <<_ACEOF
6284#line $LINENO "configure"
6285#include "confdefs.h"
6286
6287/* Override any gcc2 internal prototype to avoid an error.  */
6288#ifdef __cplusplus
6289extern "C"
6290#endif
6291/* We use char because int might match the return type of a gcc2
6292   builtin and then its argument prototype would still apply.  */
6293char dlopen ();
6294#ifdef F77_DUMMY_MAIN
6295#  ifdef __cplusplus
6296     extern "C"
6297#  endif
6298   int F77_DUMMY_MAIN() { return 1; }
6299#endif
6300int
6301main ()
6302{
6303dlopen ();
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308rm -f conftest.$ac_objext conftest$ac_exeext
6309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310  (eval $ac_link) 2>&5
6311  ac_status=$?
6312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313  (exit $ac_status); } &&
6314         { ac_try='test -s conftest$ac_exeext'
6315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316  (eval $ac_try) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }; }; then
6320  ac_cv_lib_svld_dlopen=yes
6321else
6322  echo "$as_me: failed program was:" >&5
6323cat conftest.$ac_ext >&5
6324ac_cv_lib_svld_dlopen=no
6325fi
6326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327LIBS=$ac_check_lib_save_LIBS
6328fi
6329echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6330echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6331if test $ac_cv_lib_svld_dlopen = yes; then
6332  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6333else
6334  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6335echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6336if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  ac_check_lib_save_LIBS=$LIBS
6340LIBS="-ldld  $LIBS"
6341cat >conftest.$ac_ext <<_ACEOF
6342#line $LINENO "configure"
6343#include "confdefs.h"
6344
6345/* Override any gcc2 internal prototype to avoid an error.  */
6346#ifdef __cplusplus
6347extern "C"
6348#endif
6349/* We use char because int might match the return type of a gcc2
6350   builtin and then its argument prototype would still apply.  */
6351char dld_link ();
6352#ifdef F77_DUMMY_MAIN
6353#  ifdef __cplusplus
6354     extern "C"
6355#  endif
6356   int F77_DUMMY_MAIN() { return 1; }
6357#endif
6358int
6359main ()
6360{
6361dld_link ();
6362  ;
6363  return 0;
6364}
6365_ACEOF
6366rm -f conftest.$ac_objext conftest$ac_exeext
6367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368  (eval $ac_link) 2>&5
6369  ac_status=$?
6370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371  (exit $ac_status); } &&
6372         { ac_try='test -s conftest$ac_exeext'
6373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374  (eval $ac_try) 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; }; then
6378  ac_cv_lib_dld_dld_link=yes
6379else
6380  echo "$as_me: failed program was:" >&5
6381cat conftest.$ac_ext >&5
6382ac_cv_lib_dld_dld_link=no
6383fi
6384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6385LIBS=$ac_check_lib_save_LIBS
6386fi
6387echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6388echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6389if test $ac_cv_lib_dld_dld_link = yes; then
6390  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6391fi
6392
6393
6394fi
6395
6396
6397fi
6398
6399
6400fi
6401
6402
6403fi
6404
6405
6406fi
6407
6408    ;;
6409  esac
6410
6411  if test "x$lt_cv_dlopen" != xno; then
6412    enable_dlopen=yes
6413  else
6414    enable_dlopen=no
6415  fi
6416
6417  case $lt_cv_dlopen in
6418  dlopen)
6419    save_CPPFLAGS="$CPPFLAGS"
6420        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6421
6422    save_LDFLAGS="$LDFLAGS"
6423    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6424
6425    save_LIBS="$LIBS"
6426    LIBS="$lt_cv_dlopen_libs $LIBS"
6427
6428    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6429echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6430if test "${lt_cv_dlopen_self+set}" = set; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  	  if test "$cross_compiling" = yes; then :
6434  lt_cv_dlopen_self=cross
6435else
6436    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6437  lt_status=$lt_dlunknown
6438  cat > conftest.$ac_ext <<EOF
6439#line 6439 "configure"
6440#include "confdefs.h"
6441
6442#if HAVE_DLFCN_H
6443#include <dlfcn.h>
6444#endif
6445
6446#include <stdio.h>
6447
6448#ifdef RTLD_GLOBAL
6449#  define LT_DLGLOBAL		RTLD_GLOBAL
6450#else
6451#  ifdef DL_GLOBAL
6452#    define LT_DLGLOBAL		DL_GLOBAL
6453#  else
6454#    define LT_DLGLOBAL		0
6455#  endif
6456#endif
6457
6458/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6459   find out it does not work in some platform. */
6460#ifndef LT_DLLAZY_OR_NOW
6461#  ifdef RTLD_LAZY
6462#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6463#  else
6464#    ifdef DL_LAZY
6465#      define LT_DLLAZY_OR_NOW		DL_LAZY
6466#    else
6467#      ifdef RTLD_NOW
6468#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6469#      else
6470#        ifdef DL_NOW
6471#          define LT_DLLAZY_OR_NOW	DL_NOW
6472#        else
6473#          define LT_DLLAZY_OR_NOW	0
6474#        endif
6475#      endif
6476#    endif
6477#  endif
6478#endif
6479
6480#ifdef __cplusplus
6481extern "C" void exit (int);
6482#endif
6483
6484void fnord() { int i=42;}
6485int main ()
6486{
6487  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6488  int status = $lt_dlunknown;
6489
6490  if (self)
6491    {
6492      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6493      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6494      /* dlclose (self); */
6495    }
6496
6497    exit (status);
6498}
6499EOF
6500  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501  (eval $ac_link) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6505    (./conftest; exit; ) 2>/dev/null
6506    lt_status=$?
6507    case x$lt_status in
6508      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6509      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6510      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6511    esac
6512  else :
6513    # compilation failed
6514    lt_cv_dlopen_self=no
6515  fi
6516fi
6517rm -fr conftest*
6518
6519
6520fi
6521echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6522echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6523
6524    if test "x$lt_cv_dlopen_self" = xyes; then
6525      LDFLAGS="$LDFLAGS $link_static_flag"
6526      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6527echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6528if test "${lt_cv_dlopen_self_static+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531  	  if test "$cross_compiling" = yes; then :
6532  lt_cv_dlopen_self_static=cross
6533else
6534    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6535  lt_status=$lt_dlunknown
6536  cat > conftest.$ac_ext <<EOF
6537#line 6537 "configure"
6538#include "confdefs.h"
6539
6540#if HAVE_DLFCN_H
6541#include <dlfcn.h>
6542#endif
6543
6544#include <stdio.h>
6545
6546#ifdef RTLD_GLOBAL
6547#  define LT_DLGLOBAL		RTLD_GLOBAL
6548#else
6549#  ifdef DL_GLOBAL
6550#    define LT_DLGLOBAL		DL_GLOBAL
6551#  else
6552#    define LT_DLGLOBAL		0
6553#  endif
6554#endif
6555
6556/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6557   find out it does not work in some platform. */
6558#ifndef LT_DLLAZY_OR_NOW
6559#  ifdef RTLD_LAZY
6560#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6561#  else
6562#    ifdef DL_LAZY
6563#      define LT_DLLAZY_OR_NOW		DL_LAZY
6564#    else
6565#      ifdef RTLD_NOW
6566#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6567#      else
6568#        ifdef DL_NOW
6569#          define LT_DLLAZY_OR_NOW	DL_NOW
6570#        else
6571#          define LT_DLLAZY_OR_NOW	0
6572#        endif
6573#      endif
6574#    endif
6575#  endif
6576#endif
6577
6578#ifdef __cplusplus
6579extern "C" void exit (int);
6580#endif
6581
6582void fnord() { int i=42;}
6583int main ()
6584{
6585  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6586  int status = $lt_dlunknown;
6587
6588  if (self)
6589    {
6590      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6591      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6592      /* dlclose (self); */
6593    }
6594
6595    exit (status);
6596}
6597EOF
6598  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599  (eval $ac_link) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6603    (./conftest; exit; ) 2>/dev/null
6604    lt_status=$?
6605    case x$lt_status in
6606      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6607      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6608      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6609    esac
6610  else :
6611    # compilation failed
6612    lt_cv_dlopen_self_static=no
6613  fi
6614fi
6615rm -fr conftest*
6616
6617
6618fi
6619echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6620echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6621    fi
6622
6623    CPPFLAGS="$save_CPPFLAGS"
6624    LDFLAGS="$save_LDFLAGS"
6625    LIBS="$save_LIBS"
6626    ;;
6627  esac
6628
6629  case $lt_cv_dlopen_self in
6630  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6631  *) enable_dlopen_self=unknown ;;
6632  esac
6633
6634  case $lt_cv_dlopen_self_static in
6635  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6636  *) enable_dlopen_self_static=unknown ;;
6637  esac
6638fi
6639
6640
6641if test "$enable_shared" = yes && test "$GCC" = yes; then
6642  case $archive_cmds in
6643  *'~'*)
6644    # FIXME: we may have to deal with multi-command sequences.
6645    ;;
6646  '$CC '*)
6647    # Test whether the compiler implicitly links with -lc since on some
6648    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6649    # to ld, don't add -lc before -lgcc.
6650    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6651echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6652    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6653  echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655  $rm conftest*
6656    echo 'static int dummy;' > conftest.$ac_ext
6657
6658    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6659  (eval $ac_compile) 2>&5
6660  ac_status=$?
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); }; then
6663      soname=conftest
6664      lib=conftest
6665      libobjs=conftest.$ac_objext
6666      deplibs=
6667      wl=$lt_cv_prog_cc_wl
6668      compiler_flags=-v
6669      linker_flags=-v
6670      verstring=
6671      output_objdir=.
6672      libname=conftest
6673      save_allow_undefined_flag=$allow_undefined_flag
6674      allow_undefined_flag=
6675      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6676  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6677  ac_status=$?
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); }
6680      then
6681	lt_cv_archive_cmds_need_lc=no
6682      else
6683	lt_cv_archive_cmds_need_lc=yes
6684      fi
6685      allow_undefined_flag=$save_allow_undefined_flag
6686    else
6687      cat conftest.err 1>&5
6688    fi
6689fi
6690
6691    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6692echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6693    ;;
6694  esac
6695fi
6696need_lc=${lt_cv_archive_cmds_need_lc-yes}
6697
6698# The second clause should only fire when bootstrapping the
6699# libtool distribution, otherwise you forgot to ship ltmain.sh
6700# with your package, and you will get complaints that there are
6701# no rules to generate ltmain.sh.
6702if test -f "$ltmain"; then
6703  :
6704else
6705  # If there is no Makefile yet, we rely on a make rule to execute
6706  # `config.status --recheck' to rerun these tests and create the
6707  # libtool script then.
6708  test -f Makefile && make "$ltmain"
6709fi
6710
6711if test -f "$ltmain"; then
6712  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6713  $rm -f "${ofile}T"
6714
6715  echo creating $ofile
6716
6717  # Now quote all the things that may contain metacharacters while being
6718  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6719  # variables and quote the copies for generation of the libtool script.
6720  for var in echo old_CC old_CFLAGS \
6721    AR AR_FLAGS CC LD LN_S NM SHELL \
6722    reload_flag reload_cmds wl \
6723    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6724    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6725    library_names_spec soname_spec \
6726    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6727    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6728    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6729    old_striplib striplib file_magic_cmd export_symbols_cmds \
6730    deplibs_check_method allow_undefined_flag no_undefined_flag \
6731    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6732    global_symbol_to_c_name_address \
6733    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6734    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6735    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6736
6737    case $var in
6738    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6739    old_postinstall_cmds | old_postuninstall_cmds | \
6740    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6741    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6742    postinstall_cmds | postuninstall_cmds | \
6743    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6744      # Double-quote double-evaled strings.
6745      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6746      ;;
6747    *)
6748      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6749      ;;
6750    esac
6751  done
6752
6753  cat <<__EOF__ > "${ofile}T"
6754#! $SHELL
6755
6756# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6757# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6758# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6759#
6760# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6761# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6762#
6763# This program is free software; you can redistribute it and/or modify
6764# it under the terms of the GNU General Public License as published by
6765# the Free Software Foundation; either version 2 of the License, or
6766# (at your option) any later version.
6767#
6768# This program is distributed in the hope that it will be useful, but
6769# WITHOUT ANY WARRANTY; without even the implied warranty of
6770# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6771# General Public License for more details.
6772#
6773# You should have received a copy of the GNU General Public License
6774# along with this program; if not, write to the Free Software
6775# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6776#
6777# As a special exception to the GNU General Public License, if you
6778# distribute this file as part of a program that contains a
6779# configuration script generated by Autoconf, you may include it under
6780# the same distribution terms that you use for the rest of that program.
6781
6782# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6783Xsed="sed -e s/^X//"
6784
6785# The HP-UX ksh and POSIX shell print the target directory to stdout
6786# if CDPATH is set.
6787if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6788
6789# ### BEGIN LIBTOOL CONFIG
6790
6791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6792
6793# Shell to use when invoking shell scripts.
6794SHELL=$lt_SHELL
6795
6796# Whether or not to build shared libraries.
6797build_libtool_libs=$enable_shared
6798
6799# Whether or not to build static libraries.
6800build_old_libs=$enable_static
6801
6802# Whether or not to add -lc for building shared libraries.
6803build_libtool_need_lc=$need_lc
6804
6805# Whether or not to optimize for fast installation.
6806fast_install=$enable_fast_install
6807
6808# The host system.
6809host_alias=$host_alias
6810host=$host
6811
6812# An echo program that does not interpret backslashes.
6813echo=$lt_echo
6814
6815# The archiver.
6816AR=$lt_AR
6817AR_FLAGS=$lt_AR_FLAGS
6818
6819# The default C compiler.
6820CC=$lt_CC
6821
6822# Is the compiler the GNU C compiler?
6823with_gcc=$GCC
6824
6825# The linker used to build libraries.
6826LD=$lt_LD
6827
6828# Whether we need hard or soft links.
6829LN_S=$lt_LN_S
6830
6831# A BSD-compatible nm program.
6832NM=$lt_NM
6833
6834# A symbol stripping program
6835STRIP=$STRIP
6836
6837# Used to examine libraries when file_magic_cmd begins "file"
6838MAGIC_CMD=$MAGIC_CMD
6839
6840# Used on cygwin: DLL creation program.
6841DLLTOOL="$DLLTOOL"
6842
6843# Used on cygwin: object dumper.
6844OBJDUMP="$OBJDUMP"
6845
6846# Used on cygwin: assembler.
6847AS="$AS"
6848
6849# The name of the directory that contains temporary libtool files.
6850objdir=$objdir
6851
6852# How to create reloadable object files.
6853reload_flag=$lt_reload_flag
6854reload_cmds=$lt_reload_cmds
6855
6856# How to pass a linker flag through the compiler.
6857wl=$lt_wl
6858
6859# Object file suffix (normally "o").
6860objext="$ac_objext"
6861
6862# Old archive suffix (normally "a").
6863libext="$libext"
6864
6865# Executable file suffix (normally "").
6866exeext="$exeext"
6867
6868# Additional compiler flags for building library objects.
6869pic_flag=$lt_pic_flag
6870pic_mode=$pic_mode
6871
6872# Does compiler simultaneously support -c and -o options?
6873compiler_c_o=$lt_compiler_c_o
6874
6875# Can we write directly to a .lo ?
6876compiler_o_lo=$lt_compiler_o_lo
6877
6878# Must we lock files when doing compilation ?
6879need_locks=$lt_need_locks
6880
6881# Do we need the lib prefix for modules?
6882need_lib_prefix=$need_lib_prefix
6883
6884# Do we need a version for libraries?
6885need_version=$need_version
6886
6887# Whether dlopen is supported.
6888dlopen_support=$enable_dlopen
6889
6890# Whether dlopen of programs is supported.
6891dlopen_self=$enable_dlopen_self
6892
6893# Whether dlopen of statically linked programs is supported.
6894dlopen_self_static=$enable_dlopen_self_static
6895
6896# Compiler flag to prevent dynamic linking.
6897link_static_flag=$lt_link_static_flag
6898
6899# Compiler flag to turn off builtin functions.
6900no_builtin_flag=$lt_no_builtin_flag
6901
6902# Compiler flag to allow reflexive dlopens.
6903export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6904
6905# Compiler flag to generate shared objects directly from archives.
6906whole_archive_flag_spec=$lt_whole_archive_flag_spec
6907
6908# Compiler flag to generate thread-safe objects.
6909thread_safe_flag_spec=$lt_thread_safe_flag_spec
6910
6911# Library versioning type.
6912version_type=$version_type
6913
6914# Format of library name prefix.
6915libname_spec=$lt_libname_spec
6916
6917# List of archive names.  First name is the real one, the rest are links.
6918# The last name is the one that the linker finds with -lNAME.
6919library_names_spec=$lt_library_names_spec
6920
6921# The coded name of the library, if different from the real name.
6922soname_spec=$lt_soname_spec
6923
6924# Commands used to build and install an old-style archive.
6925RANLIB=$lt_RANLIB
6926old_archive_cmds=$lt_old_archive_cmds
6927old_postinstall_cmds=$lt_old_postinstall_cmds
6928old_postuninstall_cmds=$lt_old_postuninstall_cmds
6929
6930# Create an old-style archive from a shared archive.
6931old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6932
6933# Create a temporary old-style archive to link instead of a shared archive.
6934old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6935
6936# Commands used to build and install a shared archive.
6937archive_cmds=$lt_archive_cmds
6938archive_expsym_cmds=$lt_archive_expsym_cmds
6939postinstall_cmds=$lt_postinstall_cmds
6940postuninstall_cmds=$lt_postuninstall_cmds
6941
6942# Commands to strip libraries.
6943old_striplib=$lt_old_striplib
6944striplib=$lt_striplib
6945
6946# Method to check whether dependent libraries are shared objects.
6947deplibs_check_method=$lt_deplibs_check_method
6948
6949# Command to use when deplibs_check_method == file_magic.
6950file_magic_cmd=$lt_file_magic_cmd
6951
6952# Flag that allows shared libraries with undefined symbols to be built.
6953allow_undefined_flag=$lt_allow_undefined_flag
6954
6955# Flag that forces no undefined symbols.
6956no_undefined_flag=$lt_no_undefined_flag
6957
6958# Commands used to finish a libtool library installation in a directory.
6959finish_cmds=$lt_finish_cmds
6960
6961# Same as above, but a single script fragment to be evaled but not shown.
6962finish_eval=$lt_finish_eval
6963
6964# Take the output of nm and produce a listing of raw symbols and C names.
6965global_symbol_pipe=$lt_global_symbol_pipe
6966
6967# Transform the output of nm in a proper C declaration
6968global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6969
6970# Transform the output of nm in a C name address pair
6971global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6972
6973# This is the shared library runtime path variable.
6974runpath_var=$runpath_var
6975
6976# This is the shared library path variable.
6977shlibpath_var=$shlibpath_var
6978
6979# Is shlibpath searched before the hard-coded library search path?
6980shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6981
6982# How to hardcode a shared library path into an executable.
6983hardcode_action=$hardcode_action
6984
6985# Whether we should hardcode library paths into libraries.
6986hardcode_into_libs=$hardcode_into_libs
6987
6988# Flag to hardcode \$libdir into a binary during linking.
6989# This must work even if \$libdir does not exist.
6990hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6991
6992# Whether we need a single -rpath flag with a separated argument.
6993hardcode_libdir_separator=$lt_hardcode_libdir_separator
6994
6995# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6996# resulting binary.
6997hardcode_direct=$hardcode_direct
6998
6999# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7000# resulting binary.
7001hardcode_minus_L=$hardcode_minus_L
7002
7003# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7004# the resulting binary.
7005hardcode_shlibpath_var=$hardcode_shlibpath_var
7006
7007# Variables whose values should be saved in libtool wrapper scripts and
7008# restored at relink time.
7009variables_saved_for_relink="$variables_saved_for_relink"
7010
7011# Whether libtool must link a program against all its dependency libraries.
7012link_all_deplibs=$link_all_deplibs
7013
7014# Compile-time system search path for libraries
7015sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7016
7017# Run-time system search path for libraries
7018sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7019
7020# Fix the shell variable \$srcfile for the compiler.
7021fix_srcfile_path="$fix_srcfile_path"
7022
7023# Set to yes if exported symbols are required.
7024always_export_symbols=$always_export_symbols
7025
7026# The commands to list exported symbols.
7027export_symbols_cmds=$lt_export_symbols_cmds
7028
7029# The commands to extract the exported symbol list from a shared archive.
7030extract_expsyms_cmds=$lt_extract_expsyms_cmds
7031
7032# Symbols that should not be listed in the preloaded symbols.
7033exclude_expsyms=$lt_exclude_expsyms
7034
7035# Symbols that must always be exported.
7036include_expsyms=$lt_include_expsyms
7037
7038# ### END LIBTOOL CONFIG
7039
7040__EOF__
7041
7042  case $host_os in
7043  aix3*)
7044    cat <<\EOF >> "${ofile}T"
7045
7046# AIX sometimes has problems with the GCC collect2 program.  For some
7047# reason, if we set the COLLECT_NAMES environment variable, the problems
7048# vanish in a puff of smoke.
7049if test "X${COLLECT_NAMES+set}" != Xset; then
7050  COLLECT_NAMES=
7051  export COLLECT_NAMES
7052fi
7053EOF
7054    ;;
7055  esac
7056
7057  case $host_os in
7058  cygwin* | mingw* | pw32* | os2*)
7059    cat <<'EOF' >> "${ofile}T"
7060      # This is a source program that is used to create dlls on Windows
7061      # Don't remove nor modify the starting and closing comments
7062# /* ltdll.c starts here */
7063# #define WIN32_LEAN_AND_MEAN
7064# #include <windows.h>
7065# #undef WIN32_LEAN_AND_MEAN
7066# #include <stdio.h>
7067#
7068# #ifndef __CYGWIN__
7069# #  ifdef __CYGWIN32__
7070# #    define __CYGWIN__ __CYGWIN32__
7071# #  endif
7072# #endif
7073#
7074# #ifdef __cplusplus
7075# extern "C" {
7076# #endif
7077# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7078# #ifdef __cplusplus
7079# }
7080# #endif
7081#
7082# #ifdef __CYGWIN__
7083# #include <cygwin/cygwin_dll.h>
7084# DECLARE_CYGWIN_DLL( DllMain );
7085# #endif
7086# HINSTANCE __hDllInstance_base;
7087#
7088# BOOL APIENTRY
7089# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7090# {
7091#   __hDllInstance_base = hInst;
7092#   return TRUE;
7093# }
7094# /* ltdll.c ends here */
7095	# This is a source program that is used to create import libraries
7096	# on Windows for dlls which lack them. Don't remove nor modify the
7097	# starting and closing comments
7098# /* impgen.c starts here */
7099# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7100#
7101#  This file is part of GNU libtool.
7102#
7103#  This program is free software; you can redistribute it and/or modify
7104#  it under the terms of the GNU General Public License as published by
7105#  the Free Software Foundation; either version 2 of the License, or
7106#  (at your option) any later version.
7107#
7108#  This program is distributed in the hope that it will be useful,
7109#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7110#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7111#  GNU General Public License for more details.
7112#
7113#  You should have received a copy of the GNU General Public License
7114#  along with this program; if not, write to the Free Software
7115#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7116#  */
7117#
7118# #include <stdio.h>		/* for printf() */
7119# #include <unistd.h>		/* for open(), lseek(), read() */
7120# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7121# #include <string.h>		/* for strdup() */
7122#
7123# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7124# #ifndef O_BINARY
7125# #define O_BINARY 0
7126# #endif
7127#
7128# static unsigned int
7129# pe_get16 (fd, offset)
7130#      int fd;
7131#      int offset;
7132# {
7133#   unsigned char b[2];
7134#   lseek (fd, offset, SEEK_SET);
7135#   read (fd, b, 2);
7136#   return b[0] + (b[1]<<8);
7137# }
7138#
7139# static unsigned int
7140# pe_get32 (fd, offset)
7141#     int fd;
7142#     int offset;
7143# {
7144#   unsigned char b[4];
7145#   lseek (fd, offset, SEEK_SET);
7146#   read (fd, b, 4);
7147#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7148# }
7149#
7150# static unsigned int
7151# pe_as32 (ptr)
7152#      void *ptr;
7153# {
7154#   unsigned char *b = ptr;
7155#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7156# }
7157#
7158# int
7159# main (argc, argv)
7160#     int argc;
7161#     char *argv[];
7162# {
7163#     int dll;
7164#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7165#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7166#     unsigned long name_rvas, nexp;
7167#     unsigned char *expdata, *erva;
7168#     char *filename, *dll_name;
7169#
7170#     filename = argv[1];
7171#
7172#     dll = open(filename, O_RDONLY|O_BINARY);
7173#     if (dll < 1)
7174# 	return 1;
7175#
7176#     dll_name = filename;
7177#
7178#     for (i=0; filename[i]; i++)
7179# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7180# 	    dll_name = filename + i +1;
7181#
7182#     pe_header_offset = pe_get32 (dll, 0x3c);
7183#     opthdr_ofs = pe_header_offset + 4 + 20;
7184#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7185#
7186#     if (num_entries < 1) /* no exports */
7187# 	return 1;
7188#
7189#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7190#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7191#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7192#     secptr = (pe_header_offset + 4 + 20 +
7193# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7194#
7195#     expptr = 0;
7196#     for (i = 0; i < nsections; i++)
7197#     {
7198# 	char sname[8];
7199# 	unsigned long secptr1 = secptr + 40 * i;
7200# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7201# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7202# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7203# 	lseek(dll, secptr1, SEEK_SET);
7204# 	read(dll, sname, 8);
7205# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7206# 	{
7207# 	    expptr = fptr + (export_rva - vaddr);
7208# 	    if (export_rva + export_size > vaddr + vsize)
7209# 		export_size = vsize - (export_rva - vaddr);
7210# 	    break;
7211# 	}
7212#     }
7213#
7214#     expdata = (unsigned char*)malloc(export_size);
7215#     lseek (dll, expptr, SEEK_SET);
7216#     read (dll, expdata, export_size);
7217#     erva = expdata - export_rva;
7218#
7219#     nexp = pe_as32 (expdata+24);
7220#     name_rvas = pe_as32 (expdata+32);
7221#
7222#     printf ("EXPORTS\n");
7223#     for (i = 0; i<nexp; i++)
7224#     {
7225# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7226# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7227#     }
7228#
7229#     return 0;
7230# }
7231# /* impgen.c ends here */
7232
7233EOF
7234    ;;
7235  esac
7236
7237  # We use sed instead of cat because bash on DJGPP gets confused if
7238  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7239  # text mode, it properly converts lines to CR/LF.  This bash problem
7240  # is reportedly fixed, but why not run on old versions too?
7241  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7242
7243  mv -f "${ofile}T" "$ofile" || \
7244    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7245  chmod +x "$ofile"
7246fi
7247
7248
7249
7250
7251
7252# This can be used to rebuild libtool when needed
7253LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7254
7255# Always use our own libtool.
7256LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7257
7258# Prevent multiple expansion
7259
7260
7261
7262AUTOTRACE_WEB=http://autotrace.sourceforge.net
7263cat >>confdefs.h <<_ACEOF
7264#define AUTOTRACE_WEB "$AUTOTRACE_WEB"
7265_ACEOF
7266
7267
7268echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7269echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7270    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7271if test "${enable_maintainer_mode+set}" = set; then
7272  enableval="$enable_maintainer_mode"
7273  USE_MAINTAINER_MODE=$enableval
7274else
7275  USE_MAINTAINER_MODE=no
7276fi;
7277  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7278echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7279
7280
7281if test $USE_MAINTAINER_MODE = yes; then
7282  MAINTAINER_MODE_TRUE=
7283  MAINTAINER_MODE_FALSE='#'
7284else
7285  MAINTAINER_MODE_TRUE='#'
7286  MAINTAINER_MODE_FALSE=
7287fi
7288  MAINT=$MAINTAINER_MODE_TRUE
7289
7290
7291
7292
7293
7294
7295		    		    		    ac_config_headers="$ac_config_headers config.h"
7296
7297
7298ac_ext=c
7299ac_cpp='$CPP $CPPFLAGS'
7300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7304echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7305# On Suns, sometimes $CPP names a directory.
7306if test -n "$CPP" && test -d "$CPP"; then
7307  CPP=
7308fi
7309if test -z "$CPP"; then
7310  if test "${ac_cv_prog_CPP+set}" = set; then
7311  echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313      # Double quotes because CPP needs to be expanded
7314    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7315    do
7316      ac_preproc_ok=false
7317for ac_c_preproc_warn_flag in '' yes
7318do
7319  # Use a header file that comes with gcc, so configuring glibc
7320  # with a fresh cross-compiler works.
7321  # On the NeXT, cc -E runs the code through the compiler's parser,
7322  # not just through cpp. "Syntax error" is here to catch this case.
7323  cat >conftest.$ac_ext <<_ACEOF
7324#line $LINENO "configure"
7325#include "confdefs.h"
7326#include <assert.h>
7327                     Syntax error
7328_ACEOF
7329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7330  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7331  ac_status=$?
7332  egrep -v '^ *\+' conftest.er1 >conftest.err
7333  rm -f conftest.er1
7334  cat conftest.err >&5
7335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336  (exit $ac_status); } >/dev/null; then
7337  if test -s conftest.err; then
7338    ac_cpp_err=$ac_c_preproc_warn_flag
7339  else
7340    ac_cpp_err=
7341  fi
7342else
7343  ac_cpp_err=yes
7344fi
7345if test -z "$ac_cpp_err"; then
7346  :
7347else
7348  echo "$as_me: failed program was:" >&5
7349  cat conftest.$ac_ext >&5
7350  # Broken: fails on valid input.
7351continue
7352fi
7353rm -f conftest.err conftest.$ac_ext
7354
7355  # OK, works on sane cases.  Now check whether non-existent headers
7356  # can be detected and how.
7357  cat >conftest.$ac_ext <<_ACEOF
7358#line $LINENO "configure"
7359#include "confdefs.h"
7360#include <ac_nonexistent.h>
7361_ACEOF
7362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7363  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364  ac_status=$?
7365  egrep -v '^ *\+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } >/dev/null; then
7370  if test -s conftest.err; then
7371    ac_cpp_err=$ac_c_preproc_warn_flag
7372  else
7373    ac_cpp_err=
7374  fi
7375else
7376  ac_cpp_err=yes
7377fi
7378if test -z "$ac_cpp_err"; then
7379  # Broken: success on invalid input.
7380continue
7381else
7382  echo "$as_me: failed program was:" >&5
7383  cat conftest.$ac_ext >&5
7384  # Passes both tests.
7385ac_preproc_ok=:
7386break
7387fi
7388rm -f conftest.err conftest.$ac_ext
7389
7390done
7391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7392rm -f conftest.err conftest.$ac_ext
7393if $ac_preproc_ok; then
7394  break
7395fi
7396
7397    done
7398    ac_cv_prog_CPP=$CPP
7399
7400fi
7401  CPP=$ac_cv_prog_CPP
7402else
7403  ac_cv_prog_CPP=$CPP
7404fi
7405echo "$as_me:$LINENO: result: $CPP" >&5
7406echo "${ECHO_T}$CPP" >&6
7407ac_preproc_ok=false
7408for ac_c_preproc_warn_flag in '' yes
7409do
7410  # Use a header file that comes with gcc, so configuring glibc
7411  # with a fresh cross-compiler works.
7412  # On the NeXT, cc -E runs the code through the compiler's parser,
7413  # not just through cpp. "Syntax error" is here to catch this case.
7414  cat >conftest.$ac_ext <<_ACEOF
7415#line $LINENO "configure"
7416#include "confdefs.h"
7417#include <assert.h>
7418                     Syntax error
7419_ACEOF
7420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7421  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7422  ac_status=$?
7423  egrep -v '^ *\+' conftest.er1 >conftest.err
7424  rm -f conftest.er1
7425  cat conftest.err >&5
7426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427  (exit $ac_status); } >/dev/null; then
7428  if test -s conftest.err; then
7429    ac_cpp_err=$ac_c_preproc_warn_flag
7430  else
7431    ac_cpp_err=
7432  fi
7433else
7434  ac_cpp_err=yes
7435fi
7436if test -z "$ac_cpp_err"; then
7437  :
7438else
7439  echo "$as_me: failed program was:" >&5
7440  cat conftest.$ac_ext >&5
7441  # Broken: fails on valid input.
7442continue
7443fi
7444rm -f conftest.err conftest.$ac_ext
7445
7446  # OK, works on sane cases.  Now check whether non-existent headers
7447  # can be detected and how.
7448  cat >conftest.$ac_ext <<_ACEOF
7449#line $LINENO "configure"
7450#include "confdefs.h"
7451#include <ac_nonexistent.h>
7452_ACEOF
7453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7454  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7455  ac_status=$?
7456  egrep -v '^ *\+' conftest.er1 >conftest.err
7457  rm -f conftest.er1
7458  cat conftest.err >&5
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); } >/dev/null; then
7461  if test -s conftest.err; then
7462    ac_cpp_err=$ac_c_preproc_warn_flag
7463  else
7464    ac_cpp_err=
7465  fi
7466else
7467  ac_cpp_err=yes
7468fi
7469if test -z "$ac_cpp_err"; then
7470  # Broken: success on invalid input.
7471continue
7472else
7473  echo "$as_me: failed program was:" >&5
7474  cat conftest.$ac_ext >&5
7475  # Passes both tests.
7476ac_preproc_ok=:
7477break
7478fi
7479rm -f conftest.err conftest.$ac_ext
7480
7481done
7482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7483rm -f conftest.err conftest.$ac_ext
7484if $ac_preproc_ok; then
7485  :
7486else
7487  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
7488echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
7489   { (exit 1); exit 1; }; }
7490fi
7491
7492ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498if test -n "$ac_tool_prefix"; then
7499  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7500set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7501echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503if test "${ac_cv_prog_RANLIB+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  if test -n "$RANLIB"; then
7507  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512  IFS=$as_save_IFS
7513  test -z "$as_dir" && as_dir=.
7514  for ac_exec_ext in '' $ac_executable_extensions; do
7515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518    break 2
7519  fi
7520done
7521done
7522
7523fi
7524fi
7525RANLIB=$ac_cv_prog_RANLIB
7526if test -n "$RANLIB"; then
7527  echo "$as_me:$LINENO: result: $RANLIB" >&5
7528echo "${ECHO_T}$RANLIB" >&6
7529else
7530  echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6
7532fi
7533
7534fi
7535if test -z "$ac_cv_prog_RANLIB"; then
7536  ac_ct_RANLIB=$RANLIB
7537  # Extract the first word of "ranlib", so it can be a program name with args.
7538set dummy ranlib; ac_word=$2
7539echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7541if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7542  echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544  if test -n "$ac_ct_RANLIB"; then
7545  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552  for ac_exec_ext in '' $ac_executable_extensions; do
7553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_ac_ct_RANLIB="ranlib"
7555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559done
7560
7561  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7562fi
7563fi
7564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7565if test -n "$ac_ct_RANLIB"; then
7566  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7567echo "${ECHO_T}$ac_ct_RANLIB" >&6
7568else
7569  echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
7571fi
7572
7573  RANLIB=$ac_ct_RANLIB
7574else
7575  RANLIB="$ac_cv_prog_RANLIB"
7576fi
7577
7578echo "$as_me:$LINENO: checking whether build environment is sane" >&5
7579echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
7580# Just in case
7581sleep 1
7582echo timestamp > conftest.file
7583# Do `set' in a subshell so we don't clobber the current shell's
7584# arguments.  Must try -L first in case configure is actually a
7585# symlink; some systems play weird games with the mod time of symlinks
7586# (eg FreeBSD returns the mod time of the symlink's containing
7587# directory).
7588if (
7589   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7590   if test "$*" = "X"; then
7591      # -L didn't work.
7592      set X `ls -t $srcdir/configure conftest.file`
7593   fi
7594   rm -f conftest.file
7595   if test "$*" != "X $srcdir/configure conftest.file" \
7596      && test "$*" != "X conftest.file $srcdir/configure"; then
7597
7598      # If neither matched, then we have a broken ls.  This can happen
7599      # if, for instance, CONFIG_SHELL is bash and it inherits a
7600      # broken ls alias from the environment.  This has actually
7601      # happened.  Such a system could not be considered "sane".
7602      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
7603alias in your environment" >&5
7604echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
7605alias in your environment" >&2;}
7606   { (exit 1); exit 1; }; }
7607   fi
7608
7609   test "$2" = conftest.file
7610   )
7611then
7612   # Ok.
7613   :
7614else
7615   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
7616Check your system clock" >&5
7617echo "$as_me: error: newly created file is older than distributed files!
7618Check your system clock" >&2;}
7619   { (exit 1); exit 1; }; }
7620fi
7621echo "$as_me:$LINENO: result: yes" >&5
7622echo "${ECHO_T}yes" >&6
7623# Find a good install program.  We prefer a C program (faster),
7624# so one script is as good as another.  But avoid the broken or
7625# incompatible versions:
7626# SysV /etc/install, /usr/sbin/install
7627# SunOS /usr/etc/install
7628# IRIX /sbin/install
7629# AIX /bin/install
7630# AmigaOS /C/install, which installs bootblocks on floppy discs
7631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7634# ./install, which can be erroneously created by make from ./install.sh.
7635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7637if test -z "$INSTALL"; then
7638if test "${ac_cv_path_install+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646  # Account for people who put trailing slashes in PATH elements.
7647case $as_dir/ in
7648  ./ | .// | /cC/* | \
7649  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7650  /usr/ucb/* ) ;;
7651  *)
7652    # OSF1 and SCO ODT 3.0 have their own names for install.
7653    # Don't use installbsd from OSF since it installs stuff as root
7654    # by default.
7655    for ac_prog in ginstall scoinst install; do
7656      for ac_exec_ext in '' $ac_executable_extensions; do
7657        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7658          if test $ac_prog = install &&
7659            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7660            # AIX install.  It has an incompatible calling convention.
7661            :
7662          elif test $ac_prog = install &&
7663            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7664            # program-specific install script used by HP pwplus--don't use.
7665            :
7666          else
7667            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7668            break 3
7669          fi
7670        fi
7671      done
7672    done
7673    ;;
7674esac
7675done
7676
7677
7678fi
7679  if test "${ac_cv_path_install+set}" = set; then
7680    INSTALL=$ac_cv_path_install
7681  else
7682    # As a last resort, use the slow shell script.  We don't cache a
7683    # path for INSTALL within a source directory, because that will
7684    # break other packages using the cache if that directory is
7685    # removed, or if the path is relative.
7686    INSTALL=$ac_install_sh
7687  fi
7688fi
7689echo "$as_me:$LINENO: result: $INSTALL" >&5
7690echo "${ECHO_T}$INSTALL" >&6
7691
7692# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7693# It thinks the first close brace ends the variable substitution.
7694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7695
7696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7697
7698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7699
7700
7701for ac_header in malloc.h
7702do
7703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705  echo "$as_me:$LINENO: checking for $ac_header" >&5
7706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709fi
7710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712else
7713  # Is the header compilable?
7714echo "$as_me:$LINENO: checking $ac_header usability" >&5
7715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7716cat >conftest.$ac_ext <<_ACEOF
7717#line $LINENO "configure"
7718#include "confdefs.h"
7719$ac_includes_default
7720#include <$ac_header>
7721_ACEOF
7722rm -f conftest.$ac_objext
7723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724  (eval $ac_compile) 2>&5
7725  ac_status=$?
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); } &&
7728         { ac_try='test -s conftest.$ac_objext'
7729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730  (eval $ac_try) 2>&5
7731  ac_status=$?
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); }; }; then
7734  ac_header_compiler=yes
7735else
7736  echo "$as_me: failed program was:" >&5
7737cat conftest.$ac_ext >&5
7738ac_header_compiler=no
7739fi
7740rm -f conftest.$ac_objext conftest.$ac_ext
7741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7742echo "${ECHO_T}$ac_header_compiler" >&6
7743
7744# Is the header present?
7745echo "$as_me:$LINENO: checking $ac_header presence" >&5
7746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7747cat >conftest.$ac_ext <<_ACEOF
7748#line $LINENO "configure"
7749#include "confdefs.h"
7750#include <$ac_header>
7751_ACEOF
7752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7754  ac_status=$?
7755  egrep -v '^ *\+' conftest.er1 >conftest.err
7756  rm -f conftest.er1
7757  cat conftest.err >&5
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); } >/dev/null; then
7760  if test -s conftest.err; then
7761    ac_cpp_err=$ac_c_preproc_warn_flag
7762  else
7763    ac_cpp_err=
7764  fi
7765else
7766  ac_cpp_err=yes
7767fi
7768if test -z "$ac_cpp_err"; then
7769  ac_header_preproc=yes
7770else
7771  echo "$as_me: failed program was:" >&5
7772  cat conftest.$ac_ext >&5
7773  ac_header_preproc=no
7774fi
7775rm -f conftest.err conftest.$ac_ext
7776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7777echo "${ECHO_T}$ac_header_preproc" >&6
7778
7779# So?  What about this header?
7780case $ac_header_compiler:$ac_header_preproc in
7781  yes:no )
7782    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7784    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7786  no:yes )
7787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7789    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7793esac
7794echo "$as_me:$LINENO: checking for $ac_header" >&5
7795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  eval "$as_ac_Header=$ac_header_preproc"
7800fi
7801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7803
7804fi
7805if test `eval echo '${'$as_ac_Header'}'` = yes; then
7806  cat >>confdefs.h <<_ACEOF
7807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7808_ACEOF
7809
7810fi
7811
7812done
7813
7814
7815HAVE_MAGICK=no
7816
7817# Check whether --with-magick or --without-magick was given.
7818if test "${with_magick+set}" = set; then
7819  withval="$with_magick"
7820
7821else
7822  with_magick=yes
7823fi;
7824
7825if test $with_magick = yes ; then
7826	# Extract the first word of "MagickWand-config", so it can be a program name with args.
7827set dummy MagickWand-config; ac_word=$2
7828echo "$as_me:$LINENO: checking for $ac_word" >&5
7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830if test "${ac_cv_prog_MAGICK_CONFIG+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  if test -n "$MAGICK_CONFIG"; then
7834  ac_cv_prog_MAGICK_CONFIG="$MAGICK_CONFIG" # Let the user override the test.
7835else
7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839  IFS=$as_save_IFS
7840  test -z "$as_dir" && as_dir=.
7841  for ac_exec_ext in '' $ac_executable_extensions; do
7842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843    ac_cv_prog_MAGICK_CONFIG="MagickWand-config"
7844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845    break 2
7846  fi
7847done
7848done
7849
7850  test -z "$ac_cv_prog_MAGICK_CONFIG" && ac_cv_prog_MAGICK_CONFIG=""""
7851fi
7852fi
7853MAGICK_CONFIG=$ac_cv_prog_MAGICK_CONFIG
7854if test -n "$MAGICK_CONFIG"; then
7855  echo "$as_me:$LINENO: result: $MAGICK_CONFIG" >&5
7856echo "${ECHO_T}$MAGICK_CONFIG" >&6
7857else
7858  echo "$as_me:$LINENO: result: no" >&5
7859echo "${ECHO_T}no" >&6
7860fi
7861
7862	if test "x$MAGICK_CONFIG" = "xMagickWand-config" ; then
7863		CPPFLAGS_BACKUP="$CPPFLAGS"
7864		CPPFLAGS=`MagickWand-config --cppflags`
7865		if test "${ac_cv_header_magick_api_h+set}" = set; then
7866  echo "$as_me:$LINENO: checking for magick/api.h" >&5
7867echo $ECHO_N "checking for magick/api.h... $ECHO_C" >&6
7868if test "${ac_cv_header_magick_api_h+set}" = set; then
7869  echo $ECHO_N "(cached) $ECHO_C" >&6
7870fi
7871echo "$as_me:$LINENO: result: $ac_cv_header_magick_api_h" >&5
7872echo "${ECHO_T}$ac_cv_header_magick_api_h" >&6
7873else
7874  # Is the header compilable?
7875echo "$as_me:$LINENO: checking magick/api.h usability" >&5
7876echo $ECHO_N "checking magick/api.h usability... $ECHO_C" >&6
7877cat >conftest.$ac_ext <<_ACEOF
7878#line $LINENO "configure"
7879#include "confdefs.h"
7880$ac_includes_default
7881#include <magick/api.h>
7882_ACEOF
7883rm -f conftest.$ac_objext
7884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7885  (eval $ac_compile) 2>&5
7886  ac_status=$?
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); } &&
7889         { ac_try='test -s conftest.$ac_objext'
7890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891  (eval $ac_try) 2>&5
7892  ac_status=$?
7893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894  (exit $ac_status); }; }; then
7895  ac_header_compiler=yes
7896else
7897  echo "$as_me: failed program was:" >&5
7898cat conftest.$ac_ext >&5
7899ac_header_compiler=no
7900fi
7901rm -f conftest.$ac_objext conftest.$ac_ext
7902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7903echo "${ECHO_T}$ac_header_compiler" >&6
7904
7905# Is the header present?
7906echo "$as_me:$LINENO: checking magick/api.h presence" >&5
7907echo $ECHO_N "checking magick/api.h presence... $ECHO_C" >&6
7908cat >conftest.$ac_ext <<_ACEOF
7909#line $LINENO "configure"
7910#include "confdefs.h"
7911#include <magick/api.h>
7912_ACEOF
7913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7914  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7915  ac_status=$?
7916  egrep -v '^ *\+' conftest.er1 >conftest.err
7917  rm -f conftest.er1
7918  cat conftest.err >&5
7919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920  (exit $ac_status); } >/dev/null; then
7921  if test -s conftest.err; then
7922    ac_cpp_err=$ac_c_preproc_warn_flag
7923  else
7924    ac_cpp_err=
7925  fi
7926else
7927  ac_cpp_err=yes
7928fi
7929if test -z "$ac_cpp_err"; then
7930  ac_header_preproc=yes
7931else
7932  echo "$as_me: failed program was:" >&5
7933  cat conftest.$ac_ext >&5
7934  ac_header_preproc=no
7935fi
7936rm -f conftest.err conftest.$ac_ext
7937echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7938echo "${ECHO_T}$ac_header_preproc" >&6
7939
7940# So?  What about this header?
7941case $ac_header_compiler:$ac_header_preproc in
7942  yes:no )
7943    { echo "$as_me:$LINENO: WARNING: magick/api.h: accepted by the compiler, rejected by the preprocessor!" >&5
7944echo "$as_me: WARNING: magick/api.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7945    { echo "$as_me:$LINENO: WARNING: magick/api.h: proceeding with the preprocessor's result" >&5
7946echo "$as_me: WARNING: magick/api.h: proceeding with the preprocessor's result" >&2;};;
7947  no:yes )
7948    { echo "$as_me:$LINENO: WARNING: magick/api.h: present but cannot be compiled" >&5
7949echo "$as_me: WARNING: magick/api.h: present but cannot be compiled" >&2;}
7950    { echo "$as_me:$LINENO: WARNING: magick/api.h: check for missing prerequisite headers?" >&5
7951echo "$as_me: WARNING: magick/api.h: check for missing prerequisite headers?" >&2;}
7952    { echo "$as_me:$LINENO: WARNING: magick/api.h: proceeding with the preprocessor's result" >&5
7953echo "$as_me: WARNING: magick/api.h: proceeding with the preprocessor's result" >&2;};;
7954esac
7955echo "$as_me:$LINENO: checking for magick/api.h" >&5
7956echo $ECHO_N "checking for magick/api.h... $ECHO_C" >&6
7957if test "${ac_cv_header_magick_api_h+set}" = set; then
7958  echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960  ac_cv_header_magick_api_h=$ac_header_preproc
7961fi
7962echo "$as_me:$LINENO: result: $ac_cv_header_magick_api_h" >&5
7963echo "${ECHO_T}$ac_cv_header_magick_api_h" >&6
7964
7965fi
7966if test $ac_cv_header_magick_api_h = yes; then
7967  magick_header_found=yes
7968else
7969  magick_header_found=no
7970fi
7971
7972
7973		MAGICK_CFLAGS=${CPPFLAGS}
7974		CPPFLAGS=${CPPFLAGS_BACKUP}
7975		if test "x${magick_header_found}" = xyes ; then
7976			MAGICK_LDFLAGS="`MagickWand-config --ldflags` `MagickWand-config --libs`"
7977												echo "$as_me:$LINENO: checking ImageMagick - version >= 5.2.1" >&5
7978echo $ECHO_N "checking ImageMagick - version >= 5.2.1... $ECHO_C" >&6
7979						MAGICK_VERSION=`MagickWand-config --version`
7980						MAGICK_MAJOR_VERSION=`echo $MAGICK_VERSION \
7981			| sed -e 's/^\([0-9]*\).[0-9]*.[0-9]*$/\1/'`
7982			MAGICK_MINOR_VERSION=`echo $MAGICK_VERSION \
7983			| sed -e 's/^[0-9]*.\([0-9]*\).[0-9]*$/\1/'`
7984			MAGICK_MICRO_VERSION=`echo $MAGICK_VERSION \
7985			| sed -e 's/^[0-9]*.[0-9]*.\([0-9]*\)$/\1/'`
7986						MAGICK_MAJOR_VERSION_CHECK=`expr $MAGICK_MAJOR_VERSION \>= 5`
7987			MAGICK_MINOR_VERSION_CHECK=`expr $MAGICK_MINOR_VERSION \>= 2`
7988						if test "$MAGICK_VERSION" = "5.2.0" \
7989			   || test "$MAGICK_MAJOR_VERSION_CHECK" = 0 \
7990			   || test "$MAGICK_MINOR_VERSION_CHECK" = 0 ; then
7991			   echo "$as_me:$LINENO: result: no($MAGICK_VERSION)" >&5
7992echo "${ECHO_T}no($MAGICK_VERSION)" >&6
7993		   	   { echo "$as_me:$LINENO: WARNING: *** Version 5.2.1 or higher is required.             ***" >&5
7994echo "$as_me: WARNING: *** Version 5.2.1 or higher is required.             ***" >&2;}
7995			   { echo "$as_me:$LINENO: WARNING: *** ImageMagick input handler is disabled.           ***" >&5
7996echo "$as_me: WARNING: *** ImageMagick input handler is disabled.           ***" >&2;}
7997			else
7998 		   		echo "$as_me:$LINENO: result: yes($MAGICK_VERSION)" >&5
7999echo "${ECHO_T}yes($MAGICK_VERSION)" >&6
8000
8001
8002				HAVE_MAGICK=yes
8003				cat >>confdefs.h <<\_ACEOF
8004#define HAVE_MAGICK 1
8005_ACEOF
8006
8007			fi
8008		else
8009			{ echo "$as_me:$LINENO: WARNING: *** MagickWand-config is found but magick/api.h is not found in $MAGICK_CFLAGS ***" >&5
8010echo "$as_me: WARNING: *** MagickWand-config is found but magick/api.h is not found in $MAGICK_CFLAGS ***" >&2;}
8011 			{ echo "$as_me:$LINENO: WARNING: *** Check MagickWand-config.                                                   ***" >&5
8012echo "$as_me: WARNING: *** Check MagickWand-config.                                                   ***" >&2;}
8013			{ echo "$as_me:$LINENO: WARNING: *** ImageMagick input handler is disabled.                                 ***" >&5
8014echo "$as_me: WARNING: *** ImageMagick input handler is disabled.                                 ***" >&2;}
8015		fi
8016	else
8017		{ echo "$as_me:$LINENO: WARNING: *** MagickWand-config is not found.                      ***" >&5
8018echo "$as_me: WARNING: *** MagickWand-config is not found.                      ***" >&2;}
8019		{ echo "$as_me:$LINENO: WARNING: *** ImageMagick input handler is disabled.           ***" >&5
8020echo "$as_me: WARNING: *** ImageMagick input handler is disabled.           ***" >&2;}
8021	fi
8022fi
8023
8024
8025if test $HAVE_MAGICK = yes; then
8026  HAVE_MAGICK_TRUE=
8027  HAVE_MAGICK_FALSE='#'
8028else
8029  HAVE_MAGICK_TRUE='#'
8030  HAVE_MAGICK_FALSE=
8031fi
8032
8033libMagick_la_path=
8034libMagick_la_sanity=yes
8035
8036if test $HAVE_MAGICK = yes && test $enable_shared = yes; then
8037   for f in $MAGICK_LDFLAGS; do
8038      case ${f} in
8039	   -L*)
8040	       f=`echo $f | sed -e 's/-L//'`
8041	       if test -f ${f}/libMagick.la; then
8042		  libMagick_la_path="${f}/libMagick.la"
8043	       fi;;
8044      esac
8045   done
8046fi
8047
8048if test -n "${libMagick_la_path}"; then
8049   echo "$as_me:$LINENO: checking Sanity of libMagick.la" >&5
8050echo $ECHO_N "checking Sanity of libMagick.la... $ECHO_C" >&6
8051         libdir_backup=${libdir}
8052    . ${libMagick_la_path}
8053   libdir=${libdir_backup}
8054    for elt in ${dependency_libs}; do
8055	case ${elt} in
8056	    *.la )
8057		if test ! -f ${elt}; then
8058		   if test ${libMagick_la_sanity} = yes; then
8059		      echo "$as_me:$LINENO: result: broken" >&5
8060echo "${ECHO_T}broken" >&6
8061		      libMagick_la_sanity=no
8062		   fi
8063		   { echo "$as_me:$LINENO: WARNING: Cannot find $elt refereed in ${libMagick_la_path}" >&5
8064echo "$as_me: WARNING: Cannot find $elt refereed in ${libMagick_la_path}" >&2;}
8065		fi;;
8066	esac
8067    done
8068   if test ${libMagick_la_sanity} = yes; then
8069      echo "$as_me:$LINENO: result: ok" >&5
8070echo "${ECHO_T}ok" >&6
8071   else
8072      { echo "$as_me:$LINENO: WARNING: *** Building will be failed at link time." >&5
8073echo "$as_me: WARNING: *** Building will be failed at link time." >&2;}
8074      { echo "$as_me:$LINENO: WARNING: *** To avoid this failure, don't link libMagick.so: Run ./configure --without-magick" >&5
8075echo "$as_me: WARNING: *** To avoid this failure, don't link libMagick.so: Run ./configure --without-magick" >&2;}
8076   fi
8077fi
8078
8079
8080HAVE_ZLIB=no
8081echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
8082echo $ECHO_N "checking for gzsetparams in -lz... $ECHO_C" >&6
8083if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  ac_check_lib_save_LIBS=$LIBS
8087LIBS="-lz  $LIBS"
8088cat >conftest.$ac_ext <<_ACEOF
8089#line $LINENO "configure"
8090#include "confdefs.h"
8091
8092/* Override any gcc2 internal prototype to avoid an error.  */
8093#ifdef __cplusplus
8094extern "C"
8095#endif
8096/* We use char because int might match the return type of a gcc2
8097   builtin and then its argument prototype would still apply.  */
8098char gzsetparams ();
8099#ifdef F77_DUMMY_MAIN
8100#  ifdef __cplusplus
8101     extern "C"
8102#  endif
8103   int F77_DUMMY_MAIN() { return 1; }
8104#endif
8105int
8106main ()
8107{
8108gzsetparams ();
8109  ;
8110  return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115  (eval $ac_link) 2>&5
8116  ac_status=$?
8117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118  (exit $ac_status); } &&
8119         { ac_try='test -s conftest$ac_exeext'
8120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121  (eval $ac_try) 2>&5
8122  ac_status=$?
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); }; }; then
8125  ac_cv_lib_z_gzsetparams=yes
8126else
8127  echo "$as_me: failed program was:" >&5
8128cat conftest.$ac_ext >&5
8129ac_cv_lib_z_gzsetparams=no
8130fi
8131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132LIBS=$ac_check_lib_save_LIBS
8133fi
8134echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
8135echo "${ECHO_T}$ac_cv_lib_z_gzsetparams" >&6
8136if test $ac_cv_lib_z_gzsetparams = yes; then
8137  if test "${ac_cv_header_zlib_h+set}" = set; then
8138  echo "$as_me:$LINENO: checking for zlib.h" >&5
8139echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8140if test "${ac_cv_header_zlib_h+set}" = set; then
8141  echo $ECHO_N "(cached) $ECHO_C" >&6
8142fi
8143echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8144echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8145else
8146  # Is the header compilable?
8147echo "$as_me:$LINENO: checking zlib.h usability" >&5
8148echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8149cat >conftest.$ac_ext <<_ACEOF
8150#line $LINENO "configure"
8151#include "confdefs.h"
8152$ac_includes_default
8153#include <zlib.h>
8154_ACEOF
8155rm -f conftest.$ac_objext
8156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157  (eval $ac_compile) 2>&5
8158  ac_status=$?
8159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160  (exit $ac_status); } &&
8161         { ac_try='test -s conftest.$ac_objext'
8162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163  (eval $ac_try) 2>&5
8164  ac_status=$?
8165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166  (exit $ac_status); }; }; then
8167  ac_header_compiler=yes
8168else
8169  echo "$as_me: failed program was:" >&5
8170cat conftest.$ac_ext >&5
8171ac_header_compiler=no
8172fi
8173rm -f conftest.$ac_objext conftest.$ac_ext
8174echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175echo "${ECHO_T}$ac_header_compiler" >&6
8176
8177# Is the header present?
8178echo "$as_me:$LINENO: checking zlib.h presence" >&5
8179echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8180cat >conftest.$ac_ext <<_ACEOF
8181#line $LINENO "configure"
8182#include "confdefs.h"
8183#include <zlib.h>
8184_ACEOF
8185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8186  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8187  ac_status=$?
8188  egrep -v '^ *\+' conftest.er1 >conftest.err
8189  rm -f conftest.er1
8190  cat conftest.err >&5
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); } >/dev/null; then
8193  if test -s conftest.err; then
8194    ac_cpp_err=$ac_c_preproc_warn_flag
8195  else
8196    ac_cpp_err=
8197  fi
8198else
8199  ac_cpp_err=yes
8200fi
8201if test -z "$ac_cpp_err"; then
8202  ac_header_preproc=yes
8203else
8204  echo "$as_me: failed program was:" >&5
8205  cat conftest.$ac_ext >&5
8206  ac_header_preproc=no
8207fi
8208rm -f conftest.err conftest.$ac_ext
8209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8210echo "${ECHO_T}$ac_header_preproc" >&6
8211
8212# So?  What about this header?
8213case $ac_header_compiler:$ac_header_preproc in
8214  yes:no )
8215    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8216echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8217    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8218echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8219  no:yes )
8220    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8221echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8222    { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8223echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8224    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8225echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8226esac
8227echo "$as_me:$LINENO: checking for zlib.h" >&5
8228echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8229if test "${ac_cv_header_zlib_h+set}" = set; then
8230  echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232  ac_cv_header_zlib_h=$ac_header_preproc
8233fi
8234echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8235echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8236
8237fi
8238if test $ac_cv_header_zlib_h = yes; then
8239  HAVE_ZLIB=yes
8240else
8241  { echo "$as_me:$LINENO: WARNING: *** ZLIB header files not found: PNG Input will be disabled. ***" >&5
8242echo "$as_me: WARNING: *** ZLIB header files not found: PNG Input will be disabled. ***" >&2;}
8243fi
8244
8245
8246else
8247  { echo "$as_me:$LINENO: WARNING: *** ZLIB library files not found: PNG Input will be disabled. ***" >&5
8248echo "$as_me: WARNING: *** ZLIB library files not found: PNG Input will be disabled. ***" >&2;}
8249fi
8250
8251
8252HAVE_LIBPNG_STAGE1=no
8253echo "$as_me:$LINENO: checking for png_get_image_width in -lpng" >&5
8254echo $ECHO_N "checking for png_get_image_width in -lpng... $ECHO_C" >&6
8255if test "${ac_cv_lib_png_png_get_image_width+set}" = set; then
8256  echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258  ac_check_lib_save_LIBS=$LIBS
8259LIBS="-lpng -lz -lm $LIBS"
8260cat >conftest.$ac_ext <<_ACEOF
8261#line $LINENO "configure"
8262#include "confdefs.h"
8263
8264/* Override any gcc2 internal prototype to avoid an error.  */
8265#ifdef __cplusplus
8266extern "C"
8267#endif
8268/* We use char because int might match the return type of a gcc2
8269   builtin and then its argument prototype would still apply.  */
8270char png_get_image_width ();
8271#ifdef F77_DUMMY_MAIN
8272#  ifdef __cplusplus
8273     extern "C"
8274#  endif
8275   int F77_DUMMY_MAIN() { return 1; }
8276#endif
8277int
8278main ()
8279{
8280png_get_image_width ();
8281  ;
8282  return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext conftest$ac_exeext
8286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287  (eval $ac_link) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); } &&
8291         { ac_try='test -s conftest$ac_exeext'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; }; then
8297  ac_cv_lib_png_png_get_image_width=yes
8298else
8299  echo "$as_me: failed program was:" >&5
8300cat conftest.$ac_ext >&5
8301ac_cv_lib_png_png_get_image_width=no
8302fi
8303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8304LIBS=$ac_check_lib_save_LIBS
8305fi
8306echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_image_width" >&5
8307echo "${ECHO_T}$ac_cv_lib_png_png_get_image_width" >&6
8308if test $ac_cv_lib_png_png_get_image_width = yes; then
8309  HAVE_LIBPNG_STAGE1=yes
8310fi
8311
8312
8313HAVE_LIBPNG=no
8314if test "x$HAVE_LIBPNG_STAGE1" = "xyes" ; then
8315	echo "$as_me:$LINENO: checking for png_read_png in -lpng" >&5
8316echo $ECHO_N "checking for png_read_png in -lpng... $ECHO_C" >&6
8317if test "${ac_cv_lib_png_png_read_png+set}" = set; then
8318  echo $ECHO_N "(cached) $ECHO_C" >&6
8319else
8320  ac_check_lib_save_LIBS=$LIBS
8321LIBS="-lpng -lz -lm $LIBS"
8322cat >conftest.$ac_ext <<_ACEOF
8323#line $LINENO "configure"
8324#include "confdefs.h"
8325
8326/* Override any gcc2 internal prototype to avoid an error.  */
8327#ifdef __cplusplus
8328extern "C"
8329#endif
8330/* We use char because int might match the return type of a gcc2
8331   builtin and then its argument prototype would still apply.  */
8332char png_read_png ();
8333#ifdef F77_DUMMY_MAIN
8334#  ifdef __cplusplus
8335     extern "C"
8336#  endif
8337   int F77_DUMMY_MAIN() { return 1; }
8338#endif
8339int
8340main ()
8341{
8342png_read_png ();
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349  (eval $ac_link) 2>&5
8350  ac_status=$?
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); } &&
8353         { ac_try='test -s conftest$ac_exeext'
8354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355  (eval $ac_try) 2>&5
8356  ac_status=$?
8357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358  (exit $ac_status); }; }; then
8359  ac_cv_lib_png_png_read_png=yes
8360else
8361  echo "$as_me: failed program was:" >&5
8362cat conftest.$ac_ext >&5
8363ac_cv_lib_png_png_read_png=no
8364fi
8365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366LIBS=$ac_check_lib_save_LIBS
8367fi
8368echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_png" >&5
8369echo "${ECHO_T}$ac_cv_lib_png_png_read_png" >&6
8370if test $ac_cv_lib_png_png_read_png = yes; then
8371  HAVE_LIBPNG=yes
8372fi
8373
8374	if test "x$HAVE_LIBPNG" = "xyes" ; then
8375		LIBPNG_LDFLAGS="-lpng -lz -lm"
8376
8377		cat >>confdefs.h <<\_ACEOF
8378#define HAVE_LIBPNG 1
8379_ACEOF
8380
8381	else
8382	   { echo "$as_me:$LINENO: WARNING: *** libpng exists but cannot find png_read_png in the libpng. ***" >&5
8383echo "$as_me: WARNING: *** libpng exists but cannot find png_read_png in the libpng. ***" >&2;}
8384	   { echo "$as_me:$LINENO: WARNING: *** libpng might be old.                                      ***" >&5
8385echo "$as_me: WARNING: *** libpng might be old.                                      ***" >&2;}
8386	   { echo "$as_me:$LINENO: WARNING: *** You need libpng 1.0.6 or higher.                          ***" >&5
8387echo "$as_me: WARNING: *** You need libpng 1.0.6 or higher.                          ***" >&2;}
8388	   { echo "$as_me:$LINENO: WARNING: *** Png input handler is disabled.                            ***" >&5
8389echo "$as_me: WARNING: *** Png input handler is disabled.                            ***" >&2;}
8390	fi
8391else
8392	{ echo "$as_me:$LINENO: WARNING: *** Cannot find libpng.            ***" >&5
8393echo "$as_me: WARNING: *** Cannot find libpng.            ***" >&2;}
8394	{ echo "$as_me:$LINENO: WARNING: *** Png input handler is disabled. ***" >&5
8395echo "$as_me: WARNING: *** Png input handler is disabled. ***" >&2;}
8396fi
8397
8398
8399if test $HAVE_LIBPNG = yes; then
8400  HAVE_LIBPNG_TRUE=
8401  HAVE_LIBPNG_FALSE='#'
8402else
8403  HAVE_LIBPNG_TRUE='#'
8404  HAVE_LIBPNG_FALSE=
8405fi
8406
8407HAVE_LIBSWF=no
8408
8409if test "${ac_cv_header_ming_h+set}" = set; then
8410  echo "$as_me:$LINENO: checking for ming.h" >&5
8411echo $ECHO_N "checking for ming.h... $ECHO_C" >&6
8412if test "${ac_cv_header_ming_h+set}" = set; then
8413  echo $ECHO_N "(cached) $ECHO_C" >&6
8414fi
8415echo "$as_me:$LINENO: result: $ac_cv_header_ming_h" >&5
8416echo "${ECHO_T}$ac_cv_header_ming_h" >&6
8417else
8418  # Is the header compilable?
8419echo "$as_me:$LINENO: checking ming.h usability" >&5
8420echo $ECHO_N "checking ming.h usability... $ECHO_C" >&6
8421cat >conftest.$ac_ext <<_ACEOF
8422#line $LINENO "configure"
8423#include "confdefs.h"
8424$ac_includes_default
8425#include <ming.h>
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429  (eval $ac_compile) 2>&5
8430  ac_status=$?
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); } &&
8433         { ac_try='test -s conftest.$ac_objext'
8434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435  (eval $ac_try) 2>&5
8436  ac_status=$?
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); }; }; then
8439  ac_header_compiler=yes
8440else
8441  echo "$as_me: failed program was:" >&5
8442cat conftest.$ac_ext >&5
8443ac_header_compiler=no
8444fi
8445rm -f conftest.$ac_objext conftest.$ac_ext
8446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8447echo "${ECHO_T}$ac_header_compiler" >&6
8448
8449# Is the header present?
8450echo "$as_me:$LINENO: checking ming.h presence" >&5
8451echo $ECHO_N "checking ming.h presence... $ECHO_C" >&6
8452cat >conftest.$ac_ext <<_ACEOF
8453#line $LINENO "configure"
8454#include "confdefs.h"
8455#include <ming.h>
8456_ACEOF
8457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8458  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8459  ac_status=$?
8460  egrep -v '^ *\+' conftest.er1 >conftest.err
8461  rm -f conftest.er1
8462  cat conftest.err >&5
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); } >/dev/null; then
8465  if test -s conftest.err; then
8466    ac_cpp_err=$ac_c_preproc_warn_flag
8467  else
8468    ac_cpp_err=
8469  fi
8470else
8471  ac_cpp_err=yes
8472fi
8473if test -z "$ac_cpp_err"; then
8474  ac_header_preproc=yes
8475else
8476  echo "$as_me: failed program was:" >&5
8477  cat conftest.$ac_ext >&5
8478  ac_header_preproc=no
8479fi
8480rm -f conftest.err conftest.$ac_ext
8481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8482echo "${ECHO_T}$ac_header_preproc" >&6
8483
8484# So?  What about this header?
8485case $ac_header_compiler:$ac_header_preproc in
8486  yes:no )
8487    { echo "$as_me:$LINENO: WARNING: ming.h: accepted by the compiler, rejected by the preprocessor!" >&5
8488echo "$as_me: WARNING: ming.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8489    { echo "$as_me:$LINENO: WARNING: ming.h: proceeding with the preprocessor's result" >&5
8490echo "$as_me: WARNING: ming.h: proceeding with the preprocessor's result" >&2;};;
8491  no:yes )
8492    { echo "$as_me:$LINENO: WARNING: ming.h: present but cannot be compiled" >&5
8493echo "$as_me: WARNING: ming.h: present but cannot be compiled" >&2;}
8494    { echo "$as_me:$LINENO: WARNING: ming.h: check for missing prerequisite headers?" >&5
8495echo "$as_me: WARNING: ming.h: check for missing prerequisite headers?" >&2;}
8496    { echo "$as_me:$LINENO: WARNING: ming.h: proceeding with the preprocessor's result" >&5
8497echo "$as_me: WARNING: ming.h: proceeding with the preprocessor's result" >&2;};;
8498esac
8499echo "$as_me:$LINENO: checking for ming.h" >&5
8500echo $ECHO_N "checking for ming.h... $ECHO_C" >&6
8501if test "${ac_cv_header_ming_h+set}" = set; then
8502  echo $ECHO_N "(cached) $ECHO_C" >&6
8503else
8504  ac_cv_header_ming_h=$ac_header_preproc
8505fi
8506echo "$as_me:$LINENO: result: $ac_cv_header_ming_h" >&5
8507echo "${ECHO_T}$ac_cv_header_ming_h" >&6
8508
8509fi
8510if test $ac_cv_header_ming_h = yes; then
8511  swf_header_found=yes
8512else
8513  swf_header_found=no
8514fi
8515
8516
8517if test "${swf_header_found}" = yes ; then
8518	echo "$as_me:$LINENO: checking for Ming_init in -lming" >&5
8519echo $ECHO_N "checking for Ming_init in -lming... $ECHO_C" >&6
8520if test "${ac_cv_lib_ming_Ming_init+set}" = set; then
8521  echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523  ac_check_lib_save_LIBS=$LIBS
8524LIBS="-lming -lm $LIBS"
8525cat >conftest.$ac_ext <<_ACEOF
8526#line $LINENO "configure"
8527#include "confdefs.h"
8528
8529/* Override any gcc2 internal prototype to avoid an error.  */
8530#ifdef __cplusplus
8531extern "C"
8532#endif
8533/* We use char because int might match the return type of a gcc2
8534   builtin and then its argument prototype would still apply.  */
8535char Ming_init ();
8536#ifdef F77_DUMMY_MAIN
8537#  ifdef __cplusplus
8538     extern "C"
8539#  endif
8540   int F77_DUMMY_MAIN() { return 1; }
8541#endif
8542int
8543main ()
8544{
8545Ming_init ();
8546  ;
8547  return 0;
8548}
8549_ACEOF
8550rm -f conftest.$ac_objext conftest$ac_exeext
8551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8552  (eval $ac_link) 2>&5
8553  ac_status=$?
8554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555  (exit $ac_status); } &&
8556         { ac_try='test -s conftest$ac_exeext'
8557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558  (eval $ac_try) 2>&5
8559  ac_status=$?
8560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561  (exit $ac_status); }; }; then
8562  ac_cv_lib_ming_Ming_init=yes
8563else
8564  echo "$as_me: failed program was:" >&5
8565cat conftest.$ac_ext >&5
8566ac_cv_lib_ming_Ming_init=no
8567fi
8568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8569LIBS=$ac_check_lib_save_LIBS
8570fi
8571echo "$as_me:$LINENO: result: $ac_cv_lib_ming_Ming_init" >&5
8572echo "${ECHO_T}$ac_cv_lib_ming_Ming_init" >&6
8573if test $ac_cv_lib_ming_Ming_init = yes; then
8574  HAVE_LIBSWF=yes
8575fi
8576
8577	if test "$HAVE_LIBSWF" = "yes" ; then
8578		LIBSWF_LDFLAGS="-lming -lm"
8579
8580		cat >>confdefs.h <<\_ACEOF
8581#define HAVE_LIBSWF 1
8582_ACEOF
8583
8584	else
8585 		{ echo "$as_me:$LINENO: WARNING: *** Cannot find libming.    ***" >&5
8586echo "$as_me: WARNING: *** Cannot find libming.    ***" >&2;}
8587		{ echo "$as_me:$LINENO: WARNING: *** SWF output is disabled. ***" >&5
8588echo "$as_me: WARNING: *** SWF output is disabled. ***" >&2;}
8589	fi
8590else
8591	{ echo "$as_me:$LINENO: WARNING: *** Cannot find ming.h.     ***" >&5
8592echo "$as_me: WARNING: *** Cannot find ming.h.     ***" >&2;}
8593	{ echo "$as_me:$LINENO: WARNING: *** SWF output is disabled. ***" >&5
8594echo "$as_me: WARNING: *** SWF output is disabled. ***" >&2;}
8595fi
8596
8597
8598if test x$HAVE_LIBSWF = xyes; then
8599  HAVE_LIBSWF_TRUE=
8600  HAVE_LIBSWF_FALSE='#'
8601else
8602  HAVE_LIBSWF_TRUE='#'
8603  HAVE_LIBSWF_FALSE=
8604fi
8605
8606echo "$as_me:$LINENO: checking whether the host is Darwin" >&5
8607echo $ECHO_N "checking whether the host is Darwin... $ECHO_C" >&6
8608case $host_os in
8609     darwin*) LDFLAGS="-Xlinker -multiply_defined -Xlinker suppress ${LDFLAGS}"
8610     echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612     { echo "$as_me:$LINENO: WARNING: linker messages that warns symbols are multiply defined
8613are suppressed" >&5
8614echo "$as_me: WARNING: linker messages that warns symbols are multiply defined
8615are suppressed" >&2;}
8616     ;;
8617     *)
8618     echo "$as_me:$LINENO: result: no" >&5
8619echo "${ECHO_T}no" >&6
8620     ;;
8621esac
8622
8623HAVE_LIBPSTOEDIT=no
8624HAVE_LIBPSTOEDIT_320=no
8625HAVE_LIBPSTOEDIT_321=no
8626LIBPSTOEDIT_CFLAGS=
8627LIBPSTOEDIT_LIBS=
8628LIBPSTOEDIT_EXTRA_LIBS=
8629
8630
8631# Check whether --with-pstoedit or --without-pstoedit was given.
8632if test "${with_pstoedit+set}" = set; then
8633  withval="$with_pstoedit"
8634
8635else
8636  with_pstoedit=yes
8637fi;
8638if test "x${with_pstoedit}" = xyes; then
8639ac_ext=cc
8640ac_cpp='$CXXCPP $CPPFLAGS'
8641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8644if test -n "$ac_tool_prefix"; then
8645  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8646  do
8647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8649echo "$as_me:$LINENO: checking for $ac_word" >&5
8650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8651if test "${ac_cv_prog_CXX+set}" = set; then
8652  echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654  if test -n "$CXX"; then
8655  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8656else
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660  IFS=$as_save_IFS
8661  test -z "$as_dir" && as_dir=.
8662  for ac_exec_ext in '' $ac_executable_extensions; do
8663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666    break 2
8667  fi
8668done
8669done
8670
8671fi
8672fi
8673CXX=$ac_cv_prog_CXX
8674if test -n "$CXX"; then
8675  echo "$as_me:$LINENO: result: $CXX" >&5
8676echo "${ECHO_T}$CXX" >&6
8677else
8678  echo "$as_me:$LINENO: result: no" >&5
8679echo "${ECHO_T}no" >&6
8680fi
8681
8682    test -n "$CXX" && break
8683  done
8684fi
8685if test -z "$CXX"; then
8686  ac_ct_CXX=$CXX
8687  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8688do
8689  # Extract the first word of "$ac_prog", so it can be a program name with args.
8690set dummy $ac_prog; ac_word=$2
8691echo "$as_me:$LINENO: checking for $ac_word" >&5
8692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8694  echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696  if test -n "$ac_ct_CXX"; then
8697  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702  IFS=$as_save_IFS
8703  test -z "$as_dir" && as_dir=.
8704  for ac_exec_ext in '' $ac_executable_extensions; do
8705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706    ac_cv_prog_ac_ct_CXX="$ac_prog"
8707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708    break 2
8709  fi
8710done
8711done
8712
8713fi
8714fi
8715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8716if test -n "$ac_ct_CXX"; then
8717  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8718echo "${ECHO_T}$ac_ct_CXX" >&6
8719else
8720  echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
8722fi
8723
8724  test -n "$ac_ct_CXX" && break
8725done
8726test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8727
8728  CXX=$ac_ct_CXX
8729fi
8730
8731
8732# Provide some information about the compiler.
8733echo "$as_me:$LINENO:" \
8734     "checking for C++ compiler version" >&5
8735ac_compiler=`set X $ac_compile; echo $2`
8736{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8737  (eval $ac_compiler --version </dev/null >&5) 2>&5
8738  ac_status=$?
8739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740  (exit $ac_status); }
8741{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8742  (eval $ac_compiler -v </dev/null >&5) 2>&5
8743  ac_status=$?
8744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745  (exit $ac_status); }
8746{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8747  (eval $ac_compiler -V </dev/null >&5) 2>&5
8748  ac_status=$?
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); }
8751
8752echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8753echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8754if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8755  echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757  cat >conftest.$ac_ext <<_ACEOF
8758#line $LINENO "configure"
8759#include "confdefs.h"
8760
8761#ifdef F77_DUMMY_MAIN
8762#  ifdef __cplusplus
8763     extern "C"
8764#  endif
8765   int F77_DUMMY_MAIN() { return 1; }
8766#endif
8767int
8768main ()
8769{
8770#ifndef __GNUC__
8771       choke me
8772#endif
8773
8774  ;
8775  return 0;
8776}
8777_ACEOF
8778rm -f conftest.$ac_objext
8779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8780  (eval $ac_compile) 2>&5
8781  ac_status=$?
8782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783  (exit $ac_status); } &&
8784         { ac_try='test -s conftest.$ac_objext'
8785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786  (eval $ac_try) 2>&5
8787  ac_status=$?
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); }; }; then
8790  ac_compiler_gnu=yes
8791else
8792  echo "$as_me: failed program was:" >&5
8793cat conftest.$ac_ext >&5
8794ac_compiler_gnu=no
8795fi
8796rm -f conftest.$ac_objext conftest.$ac_ext
8797ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8798
8799fi
8800echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8801echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8802GXX=`test $ac_compiler_gnu = yes && echo yes`
8803ac_test_CXXFLAGS=${CXXFLAGS+set}
8804ac_save_CXXFLAGS=$CXXFLAGS
8805CXXFLAGS="-g"
8806echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8807echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8808if test "${ac_cv_prog_cxx_g+set}" = set; then
8809  echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811  cat >conftest.$ac_ext <<_ACEOF
8812#line $LINENO "configure"
8813#include "confdefs.h"
8814
8815#ifdef F77_DUMMY_MAIN
8816#  ifdef __cplusplus
8817     extern "C"
8818#  endif
8819   int F77_DUMMY_MAIN() { return 1; }
8820#endif
8821int
8822main ()
8823{
8824
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext
8830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831  (eval $ac_compile) 2>&5
8832  ac_status=$?
8833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); } &&
8835         { ac_try='test -s conftest.$ac_objext'
8836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837  (eval $ac_try) 2>&5
8838  ac_status=$?
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); }; }; then
8841  ac_cv_prog_cxx_g=yes
8842else
8843  echo "$as_me: failed program was:" >&5
8844cat conftest.$ac_ext >&5
8845ac_cv_prog_cxx_g=no
8846fi
8847rm -f conftest.$ac_objext conftest.$ac_ext
8848fi
8849echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8850echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8851if test "$ac_test_CXXFLAGS" = set; then
8852  CXXFLAGS=$ac_save_CXXFLAGS
8853elif test $ac_cv_prog_cxx_g = yes; then
8854  if test "$GXX" = yes; then
8855    CXXFLAGS="-g -O2"
8856  else
8857    CXXFLAGS="-g"
8858  fi
8859else
8860  if test "$GXX" = yes; then
8861    CXXFLAGS="-O2"
8862  else
8863    CXXFLAGS=
8864  fi
8865fi
8866for ac_declaration in \
8867   ''\
8868   '#include <stdlib.h>' \
8869   'extern "C" void std::exit (int) throw (); using std::exit;' \
8870   'extern "C" void std::exit (int); using std::exit;' \
8871   'extern "C" void exit (int) throw ();' \
8872   'extern "C" void exit (int);' \
8873   'void exit (int);'
8874do
8875  cat >conftest.$ac_ext <<_ACEOF
8876#line $LINENO "configure"
8877#include "confdefs.h"
8878#include <stdlib.h>
8879$ac_declaration
8880#ifdef F77_DUMMY_MAIN
8881#  ifdef __cplusplus
8882     extern "C"
8883#  endif
8884   int F77_DUMMY_MAIN() { return 1; }
8885#endif
8886int
8887main ()
8888{
8889exit (42);
8890  ;
8891  return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext
8895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896  (eval $ac_compile) 2>&5
8897  ac_status=$?
8898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899  (exit $ac_status); } &&
8900         { ac_try='test -s conftest.$ac_objext'
8901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902  (eval $ac_try) 2>&5
8903  ac_status=$?
8904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905  (exit $ac_status); }; }; then
8906  :
8907else
8908  echo "$as_me: failed program was:" >&5
8909cat conftest.$ac_ext >&5
8910continue
8911fi
8912rm -f conftest.$ac_objext conftest.$ac_ext
8913  cat >conftest.$ac_ext <<_ACEOF
8914#line $LINENO "configure"
8915#include "confdefs.h"
8916$ac_declaration
8917#ifdef F77_DUMMY_MAIN
8918#  ifdef __cplusplus
8919     extern "C"
8920#  endif
8921   int F77_DUMMY_MAIN() { return 1; }
8922#endif
8923int
8924main ()
8925{
8926exit (42);
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext
8932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933  (eval $ac_compile) 2>&5
8934  ac_status=$?
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); } &&
8937         { ac_try='test -s conftest.$ac_objext'
8938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939  (eval $ac_try) 2>&5
8940  ac_status=$?
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); }; }; then
8943  break
8944else
8945  echo "$as_me: failed program was:" >&5
8946cat conftest.$ac_ext >&5
8947fi
8948rm -f conftest.$ac_objext conftest.$ac_ext
8949done
8950rm -f conftest*
8951if test -n "$ac_declaration"; then
8952  echo '#ifdef __cplusplus' >>confdefs.h
8953  echo $ac_declaration      >>confdefs.h
8954  echo '#endif'             >>confdefs.h
8955fi
8956
8957ac_ext=c
8958ac_cpp='$CPP $CPPFLAGS'
8959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8961ac_compiler_gnu=$ac_cv_c_compiler_gnu
8962
8963depcc="$CXX"  am_compiler_list=
8964
8965echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8966echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8967if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8968  echo $ECHO_N "(cached) $ECHO_C" >&6
8969else
8970  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8971  # We make a subdir and do the tests there.  Otherwise we can end up
8972  # making bogus files that we don't know about and never remove.  For
8973  # instance it was reported that on HP-UX the gcc test will end up
8974  # making a dummy file named `D' -- because `-MD' means `put the output
8975  # in D'.
8976  mkdir conftest.dir
8977  # Copy depcomp to subdir because otherwise we won't find it if we're
8978  # using a relative directory.
8979  cp "$am_depcomp" conftest.dir
8980  cd conftest.dir
8981
8982  am_cv_CXX_dependencies_compiler_type=none
8983  if test "$am_compiler_list" = ""; then
8984     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8985  fi
8986  for depmode in $am_compiler_list; do
8987    # We need to recreate these files for each test, as the compiler may
8988    # overwrite some of them when testing with obscure command lines.
8989    # This happens at least with the AIX C compiler.
8990    echo '#include "conftest.h"' > conftest.c
8991    echo 'int i;' > conftest.h
8992    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8993
8994    case $depmode in
8995    nosideeffect)
8996      # after this tag, mechanisms are not by side-effect, so they'll
8997      # only be used when explicitly requested
8998      if test "x$enable_dependency_tracking" = xyes; then
8999	continue
9000      else
9001	break
9002      fi
9003      ;;
9004    none) break ;;
9005    esac
9006    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9007    # mode.  It turns out that the SunPro C++ compiler does not properly
9008    # handle `-M -o', and we need to detect this.
9009    if depmode=$depmode \
9010       source=conftest.c object=conftest.o \
9011       depfile=conftest.Po tmpdepfile=conftest.TPo \
9012       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9013       grep conftest.h conftest.Po > /dev/null 2>&1 &&
9014       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9015      am_cv_CXX_dependencies_compiler_type=$depmode
9016      break
9017    fi
9018  done
9019
9020  cd ..
9021  rm -rf conftest.dir
9022else
9023  am_cv_CXX_dependencies_compiler_type=none
9024fi
9025
9026fi
9027echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9028echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9029CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
9030
9031
9032CXX_RUNTIME_LIB=
9033CXX_STD_LIB=
9034if test x"$GXX" = xyes; then
9035   echo "$as_me:$LINENO: checking for main in -lg++" >&5
9036echo $ECHO_N "checking for main in -lg++... $ECHO_C" >&6
9037if test "${ac_cv_lib_gpp_main+set}" = set; then
9038  echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040  ac_check_lib_save_LIBS=$LIBS
9041LIBS="-lg++  $LIBS"
9042cat >conftest.$ac_ext <<_ACEOF
9043#line $LINENO "configure"
9044#include "confdefs.h"
9045
9046
9047#ifdef F77_DUMMY_MAIN
9048#  ifdef __cplusplus
9049     extern "C"
9050#  endif
9051   int F77_DUMMY_MAIN() { return 1; }
9052#endif
9053int
9054main ()
9055{
9056main ();
9057  ;
9058  return 0;
9059}
9060_ACEOF
9061rm -f conftest.$ac_objext conftest$ac_exeext
9062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063  (eval $ac_link) 2>&5
9064  ac_status=$?
9065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066  (exit $ac_status); } &&
9067         { ac_try='test -s conftest$ac_exeext'
9068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069  (eval $ac_try) 2>&5
9070  ac_status=$?
9071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072  (exit $ac_status); }; }; then
9073  ac_cv_lib_gpp_main=yes
9074else
9075  echo "$as_me: failed program was:" >&5
9076cat conftest.$ac_ext >&5
9077ac_cv_lib_gpp_main=no
9078fi
9079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080LIBS=$ac_check_lib_save_LIBS
9081fi
9082echo "$as_me:$LINENO: result: $ac_cv_lib_gpp_main" >&5
9083echo "${ECHO_T}$ac_cv_lib_gpp_main" >&6
9084if test $ac_cv_lib_gpp_main = yes; then
9085  CXX_RUNTIME_LIB=-lg++
9086fi
9087
9088   echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
9089echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
9090if test "${ac_cv_lib_stdcpp_main+set}" = set; then
9091  echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093  ac_check_lib_save_LIBS=$LIBS
9094LIBS="-lstdc++ ${CXX_RUNTIME_LIB} $LIBS"
9095cat >conftest.$ac_ext <<_ACEOF
9096#line $LINENO "configure"
9097#include "confdefs.h"
9098
9099
9100#ifdef F77_DUMMY_MAIN
9101#  ifdef __cplusplus
9102     extern "C"
9103#  endif
9104   int F77_DUMMY_MAIN() { return 1; }
9105#endif
9106int
9107main ()
9108{
9109main ();
9110  ;
9111  return 0;
9112}
9113_ACEOF
9114rm -f conftest.$ac_objext conftest$ac_exeext
9115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116  (eval $ac_link) 2>&5
9117  ac_status=$?
9118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119  (exit $ac_status); } &&
9120         { ac_try='test -s conftest$ac_exeext'
9121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122  (eval $ac_try) 2>&5
9123  ac_status=$?
9124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125  (exit $ac_status); }; }; then
9126  ac_cv_lib_stdcpp_main=yes
9127else
9128  echo "$as_me: failed program was:" >&5
9129cat conftest.$ac_ext >&5
9130ac_cv_lib_stdcpp_main=no
9131fi
9132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133LIBS=$ac_check_lib_save_LIBS
9134fi
9135echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
9136echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
9137if test $ac_cv_lib_stdcpp_main = yes; then
9138  CXX_STD_LIB=-lstdc++
9139fi
9140
9141fi
9142echo "$as_me:$LINENO: checking for C++ runtime" >&5
9143echo $ECHO_N "checking for C++ runtime... $ECHO_C" >&6
9144LIBPSTOEDIT_EXTRA_LIBS="${CXX_STD_LIB} ${CXX_RUNTIME_LIB}"
9145echo "$as_me:$LINENO: result: ${CXX_STD_LIB} ${CXX_RUNTIME_LIB}" >&5
9146echo "${ECHO_T}${CXX_STD_LIB} ${CXX_RUNTIME_LIB}" >&6
9147LIBLD_LDFLAGS=
9148echo "$as_me:$LINENO: checking for main in -ldl" >&5
9149echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
9150if test "${ac_cv_lib_dl_main+set}" = set; then
9151  echo $ECHO_N "(cached) $ECHO_C" >&6
9152else
9153  ac_check_lib_save_LIBS=$LIBS
9154LIBS="-ldl  $LIBS"
9155cat >conftest.$ac_ext <<_ACEOF
9156#line $LINENO "configure"
9157#include "confdefs.h"
9158
9159
9160#ifdef F77_DUMMY_MAIN
9161#  ifdef __cplusplus
9162     extern "C"
9163#  endif
9164   int F77_DUMMY_MAIN() { return 1; }
9165#endif
9166int
9167main ()
9168{
9169main ();
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176  (eval $ac_link) 2>&5
9177  ac_status=$?
9178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179  (exit $ac_status); } &&
9180         { ac_try='test -s conftest$ac_exeext'
9181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182  (eval $ac_try) 2>&5
9183  ac_status=$?
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); }; }; then
9186  ac_cv_lib_dl_main=yes
9187else
9188  echo "$as_me: failed program was:" >&5
9189cat conftest.$ac_ext >&5
9190ac_cv_lib_dl_main=no
9191fi
9192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9193LIBS=$ac_check_lib_save_LIBS
9194fi
9195echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
9196echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
9197if test $ac_cv_lib_dl_main = yes; then
9198  LIBLD_LDFLAGS=-ldl
9199fi
9200
9201if test "x${LIBLD_LDFLAGS}" != x; then
9202   LIBPSTOEDIT_EXTRA_LIBS="${LIBPSTOEDIT_EXTRA_LIBS} ${LIBLD_LDFLAGS}"
9203fi
9204
9205echo '*** Checking pstoedit existence TWICE(if needed) ***'
9206echo '*** This is the 1st check                        ***'
9207
9208# Check whether --with-pstoedit-prefix or --without-pstoedit-prefix was given.
9209if test "${with_pstoedit_prefix+set}" = set; then
9210  withval="$with_pstoedit_prefix"
9211  pstoedit_prefix="$withval"
9212else
9213  pstoedit_prefix=""
9214fi;
9215
9216# Check whether --with-pstoedit-exec-prefix or --without-pstoedit-exec-prefix was given.
9217if test "${with_pstoedit_exec_prefix+set}" = set; then
9218  withval="$with_pstoedit_exec_prefix"
9219  pstoedit_exec_prefix="$withval"
9220else
9221  pstoedit_exec_prefix=""
9222fi;
9223# Check whether --enable-pstoedittest or --disable-pstoedittest was given.
9224if test "${enable_pstoedittest+set}" = set; then
9225  enableval="$enable_pstoedittest"
9226
9227else
9228  enable_pstoedittest=yes
9229fi;
9230
9231  if test x$pstoedit_exec_prefix != x ; then
9232     pstoedit_args="$pstoedit_args --exec_prefix=$pstoedit_exec_prefix"
9233     if test x${PSTOEDIT_CONFIG+set} != xset ; then
9234        PSTOEDIT_CONFIG=$pstoedit_exec_prefix/bin/pstoedit-config
9235     fi
9236  fi
9237  if test x$pstoedit_prefix != x ; then
9238     pstoedit_args="$pstoedit_args --prefix=$pstoedit_prefix"
9239     if test x${PSTOEDIT_CONFIG+set} != xset ; then
9240        PSTOEDIT_CONFIG=$pstoedit_prefix/bin/pstoedit-config
9241     fi
9242  fi
9243
9244  # Extract the first word of "pstoedit-config", so it can be a program name with args.
9245set dummy pstoedit-config; ac_word=$2
9246echo "$as_me:$LINENO: checking for $ac_word" >&5
9247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248if test "${ac_cv_path_PSTOEDIT_CONFIG+set}" = set; then
9249  echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251  case $PSTOEDIT_CONFIG in
9252  [\\/]* | ?:[\\/]*)
9253  ac_cv_path_PSTOEDIT_CONFIG="$PSTOEDIT_CONFIG" # Let the user override the test with a path.
9254  ;;
9255  *)
9256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259  IFS=$as_save_IFS
9260  test -z "$as_dir" && as_dir=.
9261  for ac_exec_ext in '' $ac_executable_extensions; do
9262  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263    ac_cv_path_PSTOEDIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9264    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9265    break 2
9266  fi
9267done
9268done
9269
9270  test -z "$ac_cv_path_PSTOEDIT_CONFIG" && ac_cv_path_PSTOEDIT_CONFIG="no"
9271  ;;
9272esac
9273fi
9274PSTOEDIT_CONFIG=pkg-config
9275
9276if test -n "$PSTOEDIT_CONFIG"; then
9277  echo "$as_me:$LINENO: result: $PSTOEDIT_CONFIG" >&5
9278echo "${ECHO_T}$PSTOEDIT_CONFIG" >&6
9279else
9280  echo "$as_me:$LINENO: result: no" >&5
9281echo "${ECHO_T}no" >&6
9282fi
9283
9284  min_pstoedit_version=3.32.1
9285  echo "$as_me:$LINENO: checking for PSTOEDIT - version >= $min_pstoedit_version" >&5
9286echo $ECHO_N "checking for PSTOEDIT - version >= $min_pstoedit_version... $ECHO_C" >&6
9287  no_pstoedit=""
9288  if test "$PSTOEDIT_CONFIG" = "no" ; then
9289    no_pstoedit=yes
9290  else
9291    PSTOEDIT_CFLAGS=`pkg-config pstoedit --cflags`
9292    PSTOEDIT_LIBS=`pkg-config pstoedit --libs`
9293
9294    pstoedit_major_version=`pkg-config pstoedit --modversion | \
9295           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9296    pstoedit_minor_version=`pkg-config pstoedit --modversion | \
9297           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9298    pstoedit_micro_version=`pkg-config pstoedit --modversion | \
9299           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9300    if test "x$enable_pstoedittest" = "xyes" ; then
9301      ac_save_CFLAGS="$CFLAGS"
9302      ac_save_LIBS="$LIBS"
9303      CFLAGS="$CFLAGS $PSTOEDIT_CFLAGS"
9304      LIBS="$PSTOEDIT_LIBS $LIBS"
9305      rm -f conf.pstoedittest
9306      if test "$cross_compiling" = yes; then
9307  echo $ac_n "cross compiling; assumed OK... $ac_c"
9308else
9309  cat >conftest.$ac_ext <<_ACEOF
9310#line $LINENO "configure"
9311#include "confdefs.h"
9312
9313#include <stdio.h>
9314#include <stdlib.h>
9315#include <string.h>
9316#include <pstoedit/pstoedit.h>
9317
9318char*
9319my_strdup (char *str)
9320{
9321  char *new_str;
9322
9323  if (str)
9324    {
9325      new_str = malloc ((strlen (str) + 1) * sizeof(char));
9326      strcpy (new_str, str);
9327    }
9328  else
9329    new_str = NULL;
9330
9331  return new_str;
9332}
9333
9334int main ()
9335{
9336  int major, minor, micro;
9337  char *tmp_version;
9338
9339  system ("touch conf.pstoedittest");
9340
9341  /* HP/UX 9 (%@#!) writes to sscanf strings */
9342  tmp_version = my_strdup("$min_pstoedit_version");
9343  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9344     printf("%s, bad version string\n", "$min_pstoedit_version");
9345     exit(1);
9346   }
9347
9348   if (($pstoedit_major_version > major) ||
9349      (($pstoedit_major_version == major) && ($pstoedit_minor_version > minor)) ||
9350      (($pstoedit_major_version == major) && ($pstoedit_minor_version == minor) && ($pstoedit_micro_version >= micro)))
9351    {
9352      return 0;
9353    }
9354  else
9355    {
9356      printf("\n*** 'pstoedit-config --version' returned %d.%d.%d, but the minimum version\n", $pstoedit_major_version, $pstoedit_minor_version, $pstoedit_micro_version);
9357      printf("*** of PSTOEDIT required is %d.%d.%d. If pstoedit-config is correct, then it is\n", major, minor, micro);
9358      printf("*** best to upgrade to the required version.\n");
9359      printf("*** If pstoedit-config was wrong, set the environment variable PSTOEDIT_CONFIG\n");
9360      printf("*** to point to the correct copy of pstoedit-config, and remove the file\n");
9361      printf("*** config.cache before re-running configure\n");
9362      return 1;
9363    }
9364}
9365
9366_ACEOF
9367rm -f conftest$ac_exeext
9368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369  (eval $ac_link) 2>&5
9370  ac_status=$?
9371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374  (eval $ac_try) 2>&5
9375  ac_status=$?
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); }; }; then
9378  :
9379else
9380  echo "$as_me: program exited with status $ac_status" >&5
9381echo "$as_me: failed program was:" >&5
9382cat conftest.$ac_ext >&5
9383( exit $ac_status )
9384no_pstoedit=yes
9385fi
9386rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9387fi
9388       CFLAGS="$ac_save_CFLAGS"
9389       LIBS="$ac_save_LIBS"
9390     fi
9391  fi
9392  if test "x$no_pstoedit" = x ; then
9393     echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395     HAVE_LIBPSTOEDIT_321=yes
9396  else
9397     echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399     if test "$PSTOEDIT_CONFIG" = "no" ; then
9400       echo "*** The pstoedit-config script installed by PSTOEDIT could not be found"
9401       echo "*** If PSTOEDIT was installed in PREFIX, make sure PREFIX/bin is in"
9402       echo "*** your path, or set the PSTOEDIT_CONFIG environment variable to the"
9403       echo "*** full path to pstoedit-config."
9404     else
9405       if test -f conf.pstoedittest ; then
9406        :
9407       else
9408          echo "*** Could not run PSTOEDIT test program, checking why..."
9409          CFLAGS="$CFLAGS $PSTOEDIT_CFLAGS"
9410          LIBS="$LIBS $PSTOEDIT_LIBS"
9411          cat >conftest.$ac_ext <<_ACEOF
9412#line $LINENO "configure"
9413#include "confdefs.h"
9414
9415#include <stdio.h>
9416#include <pstoedit/pstoedit.h>
9417
9418#ifdef F77_DUMMY_MAIN
9419#  ifdef __cplusplus
9420     extern "C"
9421#  endif
9422   int F77_DUMMY_MAIN() { return 1; }
9423#endif
9424int
9425main ()
9426{
9427 return 0;
9428  ;
9429  return 0;
9430}
9431_ACEOF
9432rm -f conftest.$ac_objext conftest$ac_exeext
9433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434  (eval $ac_link) 2>&5
9435  ac_status=$?
9436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437  (exit $ac_status); } &&
9438         { ac_try='test -s conftest$ac_exeext'
9439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440  (eval $ac_try) 2>&5
9441  ac_status=$?
9442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443  (exit $ac_status); }; }; then
9444   echo "*** The test program compiled, but did not run. This usually means"
9445          echo "*** that the run-time linker is not finding PSTOEDIT or finding the wrong"
9446          echo "*** version of PSTOEDIT. If it is not finding PSTOEDIT, you'll need to set your"
9447          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9448          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9449          echo "*** is required on your system"
9450	  echo "***"
9451          echo "*** If you have an old version installed, it is best to remove it, although"
9452          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9453else
9454  echo "$as_me: failed program was:" >&5
9455cat conftest.$ac_ext >&5
9456 echo "*** The test program failed to compile or link. See the file config.log for the"
9457          echo "*** exact error that occured. This usually means PSTOEDIT was incorrectly installed"
9458          echo "*** or that you have moved PSTOEDIT since it was installed. In the latter case, you"
9459          echo "*** may want to edit the pstoedit-config script: $PSTOEDIT_CONFIG"
9460fi
9461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9462          CFLAGS="$ac_save_CFLAGS"
9463          LIBS="$ac_save_LIBS"
9464       fi
9465     fi
9466     PSTOEDIT_CFLAGS=""
9467     PSTOEDIT_LIBS=""
9468     :
9469  fi
9470
9471
9472  rm -f conf.pstoedittest
9473
9474if test ${HAVE_LIBPSTOEDIT_321} != yes; then
9475   echo '*** The 1st check is failed.                     ***'
9476   LIBS_BAKCUP=$LIBS
9477   LIBS="$LIBS ${LIBPSTOEDIT_EXTRA_LIBS}"
9478   echo '*** This is the 2nd check                        ***'
9479
9480# Check whether --with-pstoedit-prefix or --without-pstoedit-prefix was given.
9481if test "${with_pstoedit_prefix+set}" = set; then
9482  withval="$with_pstoedit_prefix"
9483  pstoedit_prefix="$withval"
9484else
9485  pstoedit_prefix=""
9486fi;
9487
9488# Check whether --with-pstoedit-exec-prefix or --without-pstoedit-exec-prefix was given.
9489if test "${with_pstoedit_exec_prefix+set}" = set; then
9490  withval="$with_pstoedit_exec_prefix"
9491  pstoedit_exec_prefix="$withval"
9492else
9493  pstoedit_exec_prefix=""
9494fi;
9495# Check whether --enable-pstoedittest or --disable-pstoedittest was given.
9496if test "${enable_pstoedittest+set}" = set; then
9497  enableval="$enable_pstoedittest"
9498
9499else
9500  enable_pstoedittest=yes
9501fi;
9502
9503  if test x$pstoedit_exec_prefix != x ; then
9504     pstoedit_args="$pstoedit_args --exec_prefix=$pstoedit_exec_prefix"
9505     if test x${PSTOEDIT_CONFIG+set} != xset ; then
9506        PSTOEDIT_CONFIG=$pstoedit_exec_prefix/bin/pstoedit-config
9507     fi
9508  fi
9509  if test x$pstoedit_prefix != x ; then
9510     pstoedit_args="$pstoedit_args --prefix=$pstoedit_prefix"
9511     if test x${PSTOEDIT_CONFIG+set} != xset ; then
9512        PSTOEDIT_CONFIG=$pstoedit_prefix/bin/pstoedit-config
9513     fi
9514  fi
9515
9516  # Extract the first word of "pstoedit-config", so it can be a program name with args.
9517set dummy pstoedit-config; ac_word=$2
9518echo "$as_me:$LINENO: checking for $ac_word" >&5
9519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9520if test "${ac_cv_path_PSTOEDIT_CONFIG+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523  case $PSTOEDIT_CONFIG in
9524  [\\/]* | ?:[\\/]*)
9525  ac_cv_path_PSTOEDIT_CONFIG="$PSTOEDIT_CONFIG" # Let the user override the test with a path.
9526  ;;
9527  *)
9528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531  IFS=$as_save_IFS
9532  test -z "$as_dir" && as_dir=.
9533  for ac_exec_ext in '' $ac_executable_extensions; do
9534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535    ac_cv_path_PSTOEDIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9537    break 2
9538  fi
9539done
9540done
9541
9542  test -z "$ac_cv_path_PSTOEDIT_CONFIG" && ac_cv_path_PSTOEDIT_CONFIG="no"
9543  ;;
9544esac
9545fi
9546PSTOEDIT_CONFIG=pkg-config
9547
9548if test -n "$PSTOEDIT_CONFIG"; then
9549  echo "$as_me:$LINENO: result: $PSTOEDIT_CONFIG" >&5
9550echo "${ECHO_T}$PSTOEDIT_CONFIG" >&6
9551else
9552  echo "$as_me:$LINENO: result: no" >&5
9553echo "${ECHO_T}no" >&6
9554fi
9555
9556  min_pstoedit_version=3.32.0
9557  echo "$as_me:$LINENO: checking for PSTOEDIT - version >= $min_pstoedit_version" >&5
9558echo $ECHO_N "checking for PSTOEDIT - version >= $min_pstoedit_version... $ECHO_C" >&6
9559  no_pstoedit=""
9560  if test "$PSTOEDIT_CONFIG" = "no" ; then
9561    no_pstoedit=yes
9562  else
9563    PSTOEDIT_CFLAGS=`pkg-config pstoedit --cflags`
9564    PSTOEDIT_LIBS=`pkg-config pstoedit --libs`
9565
9566    pstoedit_major_version=`pkg-config pstoedit --modversion | \
9567           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9568    pstoedit_minor_version=`pkg-config pstoedit --modversion | \
9569           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9570    pstoedit_micro_version=`pkg-config pstoedit --modversion | \
9571           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9572    if test "x$enable_pstoedittest" = "xyes" ; then
9573      ac_save_CFLAGS="$CFLAGS"
9574      ac_save_LIBS="$LIBS"
9575      CFLAGS="$CFLAGS $PSTOEDIT_CFLAGS"
9576      LIBS="$PSTOEDIT_LIBS $LIBS"
9577      rm -f conf.pstoedittest
9578      if test "$cross_compiling" = yes; then
9579  echo $ac_n "cross compiling; assumed OK... $ac_c"
9580else
9581  cat >conftest.$ac_ext <<_ACEOF
9582#line $LINENO "configure"
9583#include "confdefs.h"
9584
9585#include <stdio.h>
9586#include <stdlib.h>
9587#include <string.h>
9588#include <pstoedit/pstoedit.h>
9589
9590char*
9591my_strdup (char *str)
9592{
9593  char *new_str;
9594
9595  if (str)
9596    {
9597      new_str = malloc ((strlen (str) + 1) * sizeof(char));
9598      strcpy (new_str, str);
9599    }
9600  else
9601    new_str = NULL;
9602
9603  return new_str;
9604}
9605
9606int main ()
9607{
9608  int major, minor, micro;
9609  char *tmp_version;
9610
9611  system ("touch conf.pstoedittest");
9612
9613  /* HP/UX 9 (%@#!) writes to sscanf strings */
9614  tmp_version = my_strdup("$min_pstoedit_version");
9615  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9616     printf("%s, bad version string\n", "$min_pstoedit_version");
9617     exit(1);
9618   }
9619
9620   if (($pstoedit_major_version > major) ||
9621      (($pstoedit_major_version == major) && ($pstoedit_minor_version > minor)) ||
9622      (($pstoedit_major_version == major) && ($pstoedit_minor_version == minor) && ($pstoedit_micro_version >= micro)))
9623    {
9624      return 0;
9625    }
9626  else
9627    {
9628      printf("\n*** 'pstoedit-config --version' returned %d.%d.%d, but the minimum version\n", $pstoedit_major_version, $pstoedit_minor_version, $pstoedit_micro_version);
9629      printf("*** of PSTOEDIT required is %d.%d.%d. If pstoedit-config is correct, then it is\n", major, minor, micro);
9630      printf("*** best to upgrade to the required version.\n");
9631      printf("*** If pstoedit-config was wrong, set the environment variable PSTOEDIT_CONFIG\n");
9632      printf("*** to point to the correct copy of pstoedit-config, and remove the file\n");
9633      printf("*** config.cache before re-running configure\n");
9634      return 1;
9635    }
9636}
9637
9638_ACEOF
9639rm -f conftest$ac_exeext
9640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641  (eval $ac_link) 2>&5
9642  ac_status=$?
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646  (eval $ac_try) 2>&5
9647  ac_status=$?
9648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649  (exit $ac_status); }; }; then
9650  :
9651else
9652  echo "$as_me: program exited with status $ac_status" >&5
9653echo "$as_me: failed program was:" >&5
9654cat conftest.$ac_ext >&5
9655( exit $ac_status )
9656no_pstoedit=yes
9657fi
9658rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9659fi
9660       CFLAGS="$ac_save_CFLAGS"
9661       LIBS="$ac_save_LIBS"
9662     fi
9663  fi
9664  if test "x$no_pstoedit" = x ; then
9665     echo "$as_me:$LINENO: result: yes" >&5
9666echo "${ECHO_T}yes" >&6
9667     HAVE_LIBPSTOEDIT_320=yes
9668  else
9669     echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671     if test "$PSTOEDIT_CONFIG" = "no" ; then
9672       echo "*** The pstoedit-config script installed by PSTOEDIT could not be found"
9673       echo "*** If PSTOEDIT was installed in PREFIX, make sure PREFIX/bin is in"
9674       echo "*** your path, or set the PSTOEDIT_CONFIG environment variable to the"
9675       echo "*** full path to pstoedit-config."
9676     else
9677       if test -f conf.pstoedittest ; then
9678        :
9679       else
9680          echo "*** Could not run PSTOEDIT test program, checking why..."
9681          CFLAGS="$CFLAGS $PSTOEDIT_CFLAGS"
9682          LIBS="$LIBS $PSTOEDIT_LIBS"
9683          cat >conftest.$ac_ext <<_ACEOF
9684#line $LINENO "configure"
9685#include "confdefs.h"
9686
9687#include <stdio.h>
9688#include <pstoedit/pstoedit.h>
9689
9690#ifdef F77_DUMMY_MAIN
9691#  ifdef __cplusplus
9692     extern "C"
9693#  endif
9694   int F77_DUMMY_MAIN() { return 1; }
9695#endif
9696int
9697main ()
9698{
9699 return 0;
9700  ;
9701  return 0;
9702}
9703_ACEOF
9704rm -f conftest.$ac_objext conftest$ac_exeext
9705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706  (eval $ac_link) 2>&5
9707  ac_status=$?
9708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709  (exit $ac_status); } &&
9710         { ac_try='test -s conftest$ac_exeext'
9711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712  (eval $ac_try) 2>&5
9713  ac_status=$?
9714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); }; }; then
9716   echo "*** The test program compiled, but did not run. This usually means"
9717          echo "*** that the run-time linker is not finding PSTOEDIT or finding the wrong"
9718          echo "*** version of PSTOEDIT. If it is not finding PSTOEDIT, you'll need to set your"
9719          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9720          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9721          echo "*** is required on your system"
9722	  echo "***"
9723          echo "*** If you have an old version installed, it is best to remove it, although"
9724          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9725else
9726  echo "$as_me: failed program was:" >&5
9727cat conftest.$ac_ext >&5
9728 echo "*** The test program failed to compile or link. See the file config.log for the"
9729          echo "*** exact error that occured. This usually means PSTOEDIT was incorrectly installed"
9730          echo "*** or that you have moved PSTOEDIT since it was installed. In the latter case, you"
9731          echo "*** may want to edit the pstoedit-config script: $PSTOEDIT_CONFIG"
9732fi
9733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9734          CFLAGS="$ac_save_CFLAGS"
9735          LIBS="$ac_save_LIBS"
9736       fi
9737     fi
9738     PSTOEDIT_CFLAGS=""
9739     PSTOEDIT_LIBS=""
9740     :
9741  fi
9742
9743
9744  rm -f conf.pstoedittest
9745
9746   LIBS=${LIBS_BAKCUP}
9747
9748   if test ${HAVE_LIBPSTOEDIT_320} = yes; then
9749	echo '*** The 2nd check is passed.                     ***'
9750        HAVE_LIBPSTOEDIT=yes
9751	cat >>confdefs.h <<\_ACEOF
9752#define HAVE_LIBPSTOEDIT 1
9753_ACEOF
9754
9755	LIBPSTOEDIT_LIBS="${PSTOEDIT_LIBS} ${LIBPSTOEDIT_EXTRA_LIBS}"
9756	LIBPSTOEDIT_CFLAGS="${PSTOEDIT_CFLAGS}"
9757   else
9758        echo '*** The 2nd check is failed.                     ***'
9759   fi
9760else
9761	echo '*** The 1st check is passed.                     ***'
9762	HAVE_LIBPSTOEDIT=yes
9763	cat >>confdefs.h <<\_ACEOF
9764#define HAVE_LIBPSTOEDIT 1
9765_ACEOF
9766
9767	LIBPSTOEDIT_LIBS="${PSTOEDIT_LIBS} ${LIBPSTOEDIT_EXTRA_LIBS}"
9768	LIBPSTOEDIT_CFLAGS="${PSTOEDIT_CFLAGS}"
9769fi
9770
9771if test ${HAVE_LIBPSTOEDIT} = yes; then
9772
9773for ac_func in mkstemp
9774do
9775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9776echo "$as_me:$LINENO: checking for $ac_func" >&5
9777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9778if eval "test \"\${$as_ac_var+set}\" = set"; then
9779  echo $ECHO_N "(cached) $ECHO_C" >&6
9780else
9781  cat >conftest.$ac_ext <<_ACEOF
9782#line $LINENO "configure"
9783#include "confdefs.h"
9784/* System header to define __stub macros and hopefully few prototypes,
9785    which can conflict with char $ac_func (); below.  */
9786#include <assert.h>
9787/* Override any gcc2 internal prototype to avoid an error.  */
9788#ifdef __cplusplus
9789extern "C"
9790#endif
9791/* We use char because int might match the return type of a gcc2
9792   builtin and then its argument prototype would still apply.  */
9793char $ac_func ();
9794char (*f) ();
9795
9796#ifdef F77_DUMMY_MAIN
9797#  ifdef __cplusplus
9798     extern "C"
9799#  endif
9800   int F77_DUMMY_MAIN() { return 1; }
9801#endif
9802int
9803main ()
9804{
9805/* The GNU C library defines this for functions which it implements
9806    to always fail with ENOSYS.  Some functions are actually named
9807    something starting with __ and the normal name is an alias.  */
9808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9809choke me
9810#else
9811f = $ac_func;
9812#endif
9813
9814  ;
9815  return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9820  (eval $ac_link) 2>&5
9821  ac_status=$?
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); } &&
9824         { ac_try='test -s conftest$ac_exeext'
9825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826  (eval $ac_try) 2>&5
9827  ac_status=$?
9828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829  (exit $ac_status); }; }; then
9830  eval "$as_ac_var=yes"
9831else
9832  echo "$as_me: failed program was:" >&5
9833cat conftest.$ac_ext >&5
9834eval "$as_ac_var=no"
9835fi
9836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9837fi
9838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9840if test `eval echo '${'$as_ac_var'}'` = yes; then
9841  cat >>confdefs.h <<_ACEOF
9842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9843_ACEOF
9844
9845fi
9846done
9847
9848	echo '*** pstoedit output functions are enabled.                      ***'
9849	echo '*** However, these are experimental functions in autotrace.     ***'
9850	echo '*** If you get an error in building time about pstoedit,        ***'
9851	echo '*** you can run configure with --without-pstoedit option again. ***'
9852else
9853	{ echo "$as_me:$LINENO: WARNING:
9854*** Cannot find libpstoedit. ***
9855*** Output functions using libpstoedit are disabled ***" >&5
9856echo "$as_me: WARNING:
9857*** Cannot find libpstoedit. ***
9858*** Output functions using libpstoedit are disabled ***" >&2;}
9859fi
9860else
9861{ echo "$as_me:$LINENO: WARNING: pstoedit output functions are disabled from command line." >&5
9862echo "$as_me: WARNING: pstoedit output functions are disabled from command line." >&2;}
9863fi
9864
9865
9866
9867
9868if test x$HAVE_LIBPSTOEDIT = xyes; then
9869  HAVE_LIBPSTOEDIT_TRUE=
9870  HAVE_LIBPSTOEDIT_FALSE='#'
9871else
9872  HAVE_LIBPSTOEDIT_TRUE='#'
9873  HAVE_LIBPSTOEDIT_FALSE=
9874fi
9875
9876
9877ac_config_files="$ac_config_files Makefile autotrace-config autotrace.pc autotrace.spec"
9878ac_config_commands="$ac_config_commands default"
9879cat >confcache <<\_ACEOF
9880# This file is a shell script that caches the results of configure
9881# tests run on this system so they can be shared between configure
9882# scripts and configure runs, see configure's option --config-cache.
9883# It is not useful on other systems.  If it contains results you don't
9884# want to keep, you may remove or edit it.
9885#
9886# config.status only pays attention to the cache file if you give it
9887# the --recheck option to rerun configure.
9888#
9889# `ac_cv_env_foo' variables (set or unset) will be overriden when
9890# loading this file, other *unset* `ac_cv_foo' will be assigned the
9891# following values.
9892
9893_ACEOF
9894
9895# The following way of writing the cache mishandles newlines in values,
9896# but we know of no workaround that is simple, portable, and efficient.
9897# So, don't put newlines in cache variables' values.
9898# Ultrix sh set writes to stderr and can't be redirected directly,
9899# and sets the high bit in the cache file unless we assign to the vars.
9900{
9901  (set) 2>&1 |
9902    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9903    *ac_space=\ *)
9904      # `set' does not quote correctly, so add quotes (double-quote
9905      # substitution turns \\\\ into \\, and sed turns \\ into \).
9906      sed -n \
9907        "s/'/'\\\\''/g;
9908    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9909      ;;
9910    *)
9911      # `set' quotes correctly as required by POSIX, so do not add quotes.
9912      sed -n \
9913        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9914      ;;
9915    esac;
9916} |
9917  sed '
9918     t clear
9919     : clear
9920     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9921     t end
9922     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9923     : end' >>confcache
9924if cmp -s $cache_file confcache; then :; else
9925  if test -w $cache_file; then
9926    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9927    cat confcache >$cache_file
9928  else
9929    echo "not updating unwritable cache $cache_file"
9930  fi
9931fi
9932rm -f confcache
9933
9934test "x$prefix" = xNONE && prefix=$ac_default_prefix
9935# Let make expand exec_prefix.
9936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9937
9938# VPATH may cause trouble with some makes, so we remove $(srcdir),
9939# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9940# trailing colons and then remove the whole line if VPATH becomes empty
9941# (actually we leave an empty line to preserve line numbers).
9942if test "x$srcdir" = x.; then
9943  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
9944s/:*\$(srcdir):*/:/;
9945s/:*\${srcdir}:*/:/;
9946s/:*@srcdir@:*/:/;
9947s/^\([^=]*=[ 	]*\):*/\1/;
9948s/:*$//;
9949s/^[^=]*=[ 	]*$//;
9950}'
9951fi
9952
9953DEFS=-DHAVE_CONFIG_H
9954
9955
9956: ${CONFIG_STATUS=./config.status}
9957ac_clean_files_save=$ac_clean_files
9958ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9959{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9960echo "$as_me: creating $CONFIG_STATUS" >&6;}
9961cat >$CONFIG_STATUS <<_ACEOF
9962#! $SHELL
9963# Generated by $as_me.
9964# Run this file to recreate the current configuration.
9965# Compiler output produced by configure, useful for debugging
9966# configure, is in config.log if it exists.
9967
9968debug=false
9969SHELL=\${CONFIG_SHELL-$SHELL}
9970_ACEOF
9971
9972cat >>$CONFIG_STATUS <<\_ACEOF
9973
9974## --------------------- ##
9975## M4sh Initialization.  ##
9976## --------------------- ##
9977
9978# Be Bourne compatible
9979if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9980  emulate sh
9981  NULLCMD=:
9982elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9983  set -o posix
9984fi
9985
9986# NLS nuisances.
9987# Support unset when possible.
9988if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9989  as_unset=unset
9990else
9991  as_unset=false
9992fi
9993
9994(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9995    { $as_unset LANG || test "${LANG+set}" != set; } ||
9996      { LANG=C; export LANG; }
9997(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9998    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9999      { LC_ALL=C; export LC_ALL; }
10000(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10001    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10002      { LC_TIME=C; export LC_TIME; }
10003(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10004    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10005      { LC_CTYPE=C; export LC_CTYPE; }
10006(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10007    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10008      { LANGUAGE=C; export LANGUAGE; }
10009(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10010    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10011      { LC_COLLATE=C; export LC_COLLATE; }
10012(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10013    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10014      { LC_NUMERIC=C; export LC_NUMERIC; }
10015(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10016    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10017      { LC_MESSAGES=C; export LC_MESSAGES; }
10018
10019
10020# Name of the executable.
10021as_me=`(basename "$0") 2>/dev/null ||
10022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10023	 X"$0" : 'X\(//\)$' \| \
10024	 X"$0" : 'X\(/\)$' \| \
10025	 .     : '\(.\)' 2>/dev/null ||
10026echo X/"$0" |
10027    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10028  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
10029  	  /^X\/\(\/\).*/{ s//\1/; q; }
10030  	  s/.*/./; q'`
10031
10032# PATH needs CR, and LINENO needs CR and PATH.
10033# Avoid depending upon Character Ranges.
10034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10037as_cr_digits='0123456789'
10038as_cr_alnum=$as_cr_Letters$as_cr_digits
10039
10040# The user is always right.
10041if test "${PATH_SEPARATOR+set}" != set; then
10042  echo "#! /bin/sh" >conftest.sh
10043  echo  "exit 0"   >>conftest.sh
10044  chmod +x conftest.sh
10045  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10046    PATH_SEPARATOR=';'
10047  else
10048    PATH_SEPARATOR=:
10049  fi
10050  rm -f conftest.sh
10051fi
10052
10053
10054  as_lineno_1=$LINENO
10055  as_lineno_2=$LINENO
10056  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10057  test "x$as_lineno_1" != "x$as_lineno_2" &&
10058  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10059  # Find who we are.  Look in the path if we contain no path at all
10060  # relative or not.
10061  case $0 in
10062    *[\\/]* ) as_myself=$0 ;;
10063    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064for as_dir in $PATH
10065do
10066  IFS=$as_save_IFS
10067  test -z "$as_dir" && as_dir=.
10068  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10069done
10070
10071       ;;
10072  esac
10073  # We did not find ourselves, most probably we were run as `sh COMMAND'
10074  # in which case we are not to be found in the path.
10075  if test "x$as_myself" = x; then
10076    as_myself=$0
10077  fi
10078  if test ! -f "$as_myself"; then
10079    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10080echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10081   { (exit 1); exit 1; }; }
10082  fi
10083  case $CONFIG_SHELL in
10084  '')
10085    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10087do
10088  IFS=$as_save_IFS
10089  test -z "$as_dir" && as_dir=.
10090  for as_base in sh bash ksh sh5; do
10091	 case $as_dir in
10092	 /*)
10093	   if ("$as_dir/$as_base" -c '
10094  as_lineno_1=$LINENO
10095  as_lineno_2=$LINENO
10096  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10097  test "x$as_lineno_1" != "x$as_lineno_2" &&
10098  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10099	     CONFIG_SHELL=$as_dir/$as_base
10100	     export CONFIG_SHELL
10101	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10102	   fi;;
10103	 esac
10104       done
10105done
10106;;
10107  esac
10108
10109  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10110  # uniformly replaced by the line number.  The first 'sed' inserts a
10111  # line-number line before each line; the second 'sed' does the real
10112  # work.  The second script uses 'N' to pair each line-number line
10113  # with the numbered line, and appends trailing '-' during
10114  # substitution so that $LINENO is not a special case at line end.
10115  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10116  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10117  sed '=' <$as_myself |
10118    sed '
10119      N
10120      s,$,-,
10121      : loop
10122      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10123      t loop
10124      s,-$,,
10125      s,^['$as_cr_digits']*\n,,
10126    ' >$as_me.lineno &&
10127  chmod +x $as_me.lineno ||
10128    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10129echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10130   { (exit 1); exit 1; }; }
10131
10132  # Don't try to exec as it changes $[0], causing all sort of problems
10133  # (the dirname of $[0] is not the place where we might find the
10134  # original and so on.  Autoconf is especially sensible to this).
10135  . ./$as_me.lineno
10136  # Exit status is that of the last command.
10137  exit
10138}
10139
10140
10141case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10142  *c*,-n*) ECHO_N= ECHO_C='
10143' ECHO_T='	' ;;
10144  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10145  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10146esac
10147
10148if expr a : '\(a\)' >/dev/null 2>&1; then
10149  as_expr=expr
10150else
10151  as_expr=false
10152fi
10153
10154rm -f conf$$ conf$$.exe conf$$.file
10155echo >conf$$.file
10156if ln -s conf$$.file conf$$ 2>/dev/null; then
10157  # We could just check for DJGPP; but this test a) works b) is more generic
10158  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10159  if test -f conf$$.exe; then
10160    # Don't use ln at all; we don't have any links
10161    as_ln_s='cp -p'
10162  else
10163    as_ln_s='ln -s'
10164  fi
10165elif ln conf$$.file conf$$ 2>/dev/null; then
10166  as_ln_s=ln
10167else
10168  as_ln_s='cp -p'
10169fi
10170rm -f conf$$ conf$$.exe conf$$.file
10171
10172as_executable_p="test -f"
10173
10174# Sed expression to map a string onto a valid CPP name.
10175as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10176
10177# Sed expression to map a string onto a valid variable name.
10178as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10179
10180
10181# IFS
10182# We need space, tab and new line, in precisely that order.
10183as_nl='
10184'
10185IFS=" 	$as_nl"
10186
10187# CDPATH.
10188$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10189
10190exec 6>&1
10191
10192# Open the log real soon, to keep \$[0] and so on meaningful, and to
10193# report actual input values of CONFIG_FILES etc. instead of their
10194# values after options handling.  Logging --version etc. is OK.
10195exec 5>>config.log
10196{
10197  echo
10198  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10199## Running $as_me. ##
10200_ASBOX
10201} >&5
10202cat >&5 <<_CSEOF
10203
10204This file was extended by $as_me, which was
10205generated by GNU Autoconf 2.53.  Invocation command line was
10206
10207  CONFIG_FILES    = $CONFIG_FILES
10208  CONFIG_HEADERS  = $CONFIG_HEADERS
10209  CONFIG_LINKS    = $CONFIG_LINKS
10210  CONFIG_COMMANDS = $CONFIG_COMMANDS
10211  $ $0 $@
10212
10213_CSEOF
10214echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10215echo >&5
10216_ACEOF
10217
10218# Files that config.status was made for.
10219if test -n "$ac_config_files"; then
10220  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10221fi
10222
10223if test -n "$ac_config_headers"; then
10224  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10225fi
10226
10227if test -n "$ac_config_links"; then
10228  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10229fi
10230
10231if test -n "$ac_config_commands"; then
10232  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10233fi
10234
10235cat >>$CONFIG_STATUS <<\_ACEOF
10236
10237ac_cs_usage="\
10238\`$as_me' instantiates files from templates according to the
10239current configuration.
10240
10241Usage: $0 [OPTIONS] [FILE]...
10242
10243  -h, --help       print this help, then exit
10244  -V, --version    print version number, then exit
10245  -d, --debug      don't remove temporary files
10246      --recheck    update $as_me by reconfiguring in the same conditions
10247  --file=FILE[:TEMPLATE]
10248                   instantiate the configuration file FILE
10249  --header=FILE[:TEMPLATE]
10250                   instantiate the configuration header FILE
10251
10252Configuration files:
10253$config_files
10254
10255Configuration headers:
10256$config_headers
10257
10258Configuration commands:
10259$config_commands
10260
10261Report bugs to <bug-autoconf@gnu.org>."
10262_ACEOF
10263
10264cat >>$CONFIG_STATUS <<_ACEOF
10265ac_cs_version="\\
10266config.status
10267configured by $0, generated by GNU Autoconf 2.53,
10268  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10269
10270Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10271Free Software Foundation, Inc.
10272This config.status script is free software; the Free Software Foundation
10273gives unlimited permission to copy, distribute and modify it."
10274srcdir=$srcdir
10275INSTALL="$INSTALL"
10276_ACEOF
10277
10278cat >>$CONFIG_STATUS <<\_ACEOF
10279# If no file are specified by the user, then we need to provide default
10280# value.  By we need to know if files were specified by the user.
10281ac_need_defaults=:
10282while test $# != 0
10283do
10284  case $1 in
10285  --*=*)
10286    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10287    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10288    shift
10289    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10290    shift
10291    ;;
10292  -*);;
10293  *) # This is not an option, so the user has probably given explicit
10294     # arguments.
10295     ac_need_defaults=false;;
10296  esac
10297
10298  case $1 in
10299  # Handling of the options.
10300_ACEOF
10301cat >>$CONFIG_STATUS <<_ACEOF
10302  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10303    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10304    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10305_ACEOF
10306cat >>$CONFIG_STATUS <<\_ACEOF
10307  --version | --vers* | -V )
10308    echo "$ac_cs_version"; exit 0 ;;
10309  --he | --h)
10310    # Conflict between --help and --header
10311    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10312Try \`$0 --help' for more information." >&5
10313echo "$as_me: error: ambiguous option: $1
10314Try \`$0 --help' for more information." >&2;}
10315   { (exit 1); exit 1; }; };;
10316  --help | --hel | -h )
10317    echo "$ac_cs_usage"; exit 0 ;;
10318  --debug | --d* | -d )
10319    debug=: ;;
10320  --file | --fil | --fi | --f )
10321    shift
10322    CONFIG_FILES="$CONFIG_FILES $1"
10323    ac_need_defaults=false;;
10324  --header | --heade | --head | --hea )
10325    shift
10326    CONFIG_HEADERS="$CONFIG_HEADERS $1"
10327    ac_need_defaults=false;;
10328
10329  # This is an error.
10330  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10331Try \`$0 --help' for more information." >&5
10332echo "$as_me: error: unrecognized option: $1
10333Try \`$0 --help' for more information." >&2;}
10334   { (exit 1); exit 1; }; } ;;
10335
10336  *) ac_config_targets="$ac_config_targets $1" ;;
10337
10338  esac
10339  shift
10340done
10341
10342_ACEOF
10343
10344cat >>$CONFIG_STATUS <<_ACEOF
10345#
10346# INIT-COMMANDS section.
10347#
10348
10349AMDEP_TRUE="$AMDEP_TRUE"
10350ac_aux_dir="$ac_aux_dir"
10351
10352_ACEOF
10353
10354
10355
10356cat >>$CONFIG_STATUS <<\_ACEOF
10357for ac_config_target in $ac_config_targets
10358do
10359  case "$ac_config_target" in
10360  # Handling of arguments.
10361  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10362  "autotrace-config" ) CONFIG_FILES="$CONFIG_FILES autotrace-config" ;;
10363  "autotrace.pc" ) CONFIG_FILES="$CONFIG_FILES autotrace.pc" ;;
10364  "autotrace.spec" ) CONFIG_FILES="$CONFIG_FILES autotrace.spec" ;;
10365  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10366  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10367  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10368  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10369echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10370   { (exit 1); exit 1; }; };;
10371  esac
10372done
10373
10374# If the user did not use the arguments to specify the items to instantiate,
10375# then the envvar interface is used.  Set only those that are not.
10376# We use the long form for the default assignment because of an extremely
10377# bizarre bug on SunOS 4.1.3.
10378if $ac_need_defaults; then
10379  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10380  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10381  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10382fi
10383
10384# Create a temporary directory, and hook for its removal unless debugging.
10385$debug ||
10386{
10387  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10388  trap '{ (exit 1); exit 1; }' 1 2 13 15
10389}
10390
10391# Create a (secure) tmp directory for tmp files.
10392: ${TMPDIR=/tmp}
10393{
10394  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10395  test -n "$tmp" && test -d "$tmp"
10396}  ||
10397{
10398  tmp=$TMPDIR/cs$$-$RANDOM
10399  (umask 077 && mkdir $tmp)
10400} ||
10401{
10402   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10403   { (exit 1); exit 1; }
10404}
10405
10406_ACEOF
10407
10408cat >>$CONFIG_STATUS <<_ACEOF
10409
10410#
10411# CONFIG_FILES section.
10412#
10413
10414# No need to generate the scripts if there are no CONFIG_FILES.
10415# This happens for instance when ./config.status config.h
10416if test -n "\$CONFIG_FILES"; then
10417  # Protect against being on the right side of a sed subst in config.status.
10418  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10419   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10420s,@SHELL@,$SHELL,;t t
10421s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10422s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10423s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10424s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10425s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10426s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10427s,@exec_prefix@,$exec_prefix,;t t
10428s,@prefix@,$prefix,;t t
10429s,@program_transform_name@,$program_transform_name,;t t
10430s,@bindir@,$bindir,;t t
10431s,@sbindir@,$sbindir,;t t
10432s,@libexecdir@,$libexecdir,;t t
10433s,@datadir@,$datadir,;t t
10434s,@sysconfdir@,$sysconfdir,;t t
10435s,@sharedstatedir@,$sharedstatedir,;t t
10436s,@localstatedir@,$localstatedir,;t t
10437s,@libdir@,$libdir,;t t
10438s,@includedir@,$includedir,;t t
10439s,@oldincludedir@,$oldincludedir,;t t
10440s,@infodir@,$infodir,;t t
10441s,@mandir@,$mandir,;t t
10442s,@build_alias@,$build_alias,;t t
10443s,@host_alias@,$host_alias,;t t
10444s,@target_alias@,$target_alias,;t t
10445s,@DEFS@,$DEFS,;t t
10446s,@ECHO_C@,$ECHO_C,;t t
10447s,@ECHO_N@,$ECHO_N,;t t
10448s,@ECHO_T@,$ECHO_T,;t t
10449s,@LIBS@,$LIBS,;t t
10450s,@AUTOTRACE_VERSION@,$AUTOTRACE_VERSION,;t t
10451s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10452s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10453s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10454s,@PACKAGE@,$PACKAGE,;t t
10455s,@VERSION@,$VERSION,;t t
10456s,@EXEEXT@,$EXEEXT,;t t
10457s,@OBJEXT@,$OBJEXT,;t t
10458s,@ACLOCAL@,$ACLOCAL,;t t
10459s,@AUTOCONF@,$AUTOCONF,;t t
10460s,@AUTOMAKE@,$AUTOMAKE,;t t
10461s,@AUTOHEADER@,$AUTOHEADER,;t t
10462s,@MAKEINFO@,$MAKEINFO,;t t
10463s,@AMTAR@,$AMTAR,;t t
10464s,@install_sh@,$install_sh,;t t
10465s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10466s,@AWK@,$AWK,;t t
10467s,@SET_MAKE@,$SET_MAKE,;t t
10468s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10469s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10470s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10471s,@DEPDIR@,$DEPDIR,;t t
10472s,@LT_CURRENT@,$LT_CURRENT,;t t
10473s,@LT_REVISION@,$LT_REVISION,;t t
10474s,@LT_AGE@,$LT_AGE,;t t
10475s,@CC@,$CC,;t t
10476s,@CFLAGS@,$CFLAGS,;t t
10477s,@LDFLAGS@,$LDFLAGS,;t t
10478s,@CPPFLAGS@,$CPPFLAGS,;t t
10479s,@ac_ct_CC@,$ac_ct_CC,;t t
10480s,@am__include@,$am__include,;t t
10481s,@am__quote@,$am__quote,;t t
10482s,@CCDEPMODE@,$CCDEPMODE,;t t
10483s,@build@,$build,;t t
10484s,@build_cpu@,$build_cpu,;t t
10485s,@build_vendor@,$build_vendor,;t t
10486s,@build_os@,$build_os,;t t
10487s,@host@,$host,;t t
10488s,@host_cpu@,$host_cpu,;t t
10489s,@host_vendor@,$host_vendor,;t t
10490s,@host_os@,$host_os,;t t
10491s,@LN_S@,$LN_S,;t t
10492s,@ECHO@,$ECHO,;t t
10493s,@RANLIB@,$RANLIB,;t t
10494s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10495s,@STRIP@,$STRIP,;t t
10496s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10497s,@CPP@,$CPP,;t t
10498s,@LIBTOOL@,$LIBTOOL,;t t
10499s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10500s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10501s,@MAINT@,$MAINT,;t t
10502s,@MAGICK_CONFIG@,$MAGICK_CONFIG,;t t
10503s,@MAGICK_CFLAGS@,$MAGICK_CFLAGS,;t t
10504s,@MAGICK_LDFLAGS@,$MAGICK_LDFLAGS,;t t
10505s,@HAVE_MAGICK_TRUE@,$HAVE_MAGICK_TRUE,;t t
10506s,@HAVE_MAGICK_FALSE@,$HAVE_MAGICK_FALSE,;t t
10507s,@LIBPNG_LDFLAGS@,$LIBPNG_LDFLAGS,;t t
10508s,@HAVE_LIBPNG_TRUE@,$HAVE_LIBPNG_TRUE,;t t
10509s,@HAVE_LIBPNG_FALSE@,$HAVE_LIBPNG_FALSE,;t t
10510s,@LIBSWF_LDFLAGS@,$LIBSWF_LDFLAGS,;t t
10511s,@HAVE_LIBSWF_TRUE@,$HAVE_LIBSWF_TRUE,;t t
10512s,@HAVE_LIBSWF_FALSE@,$HAVE_LIBSWF_FALSE,;t t
10513s,@CXX@,$CXX,;t t
10514s,@CXXFLAGS@,$CXXFLAGS,;t t
10515s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10516s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10517s,@PSTOEDIT_CONFIG@,$PSTOEDIT_CONFIG,;t t
10518s,@PSTOEDIT_CFLAGS@,$PSTOEDIT_CFLAGS,;t t
10519s,@PSTOEDIT_LIBS@,$PSTOEDIT_LIBS,;t t
10520s,@LIBPSTOEDIT_CFLAGS@,$LIBPSTOEDIT_CFLAGS,;t t
10521s,@LIBPSTOEDIT_LIBS@,$LIBPSTOEDIT_LIBS,;t t
10522s,@HAVE_LIBPSTOEDIT_TRUE@,$HAVE_LIBPSTOEDIT_TRUE,;t t
10523s,@HAVE_LIBPSTOEDIT_FALSE@,$HAVE_LIBPSTOEDIT_FALSE,;t t
10524CEOF
10525
10526_ACEOF
10527
10528  cat >>$CONFIG_STATUS <<\_ACEOF
10529  # Split the substitutions into bite-sized pieces for seds with
10530  # small command number limits, like on Digital OSF/1 and HP-UX.
10531  ac_max_sed_lines=48
10532  ac_sed_frag=1 # Number of current file.
10533  ac_beg=1 # First line for current file.
10534  ac_end=$ac_max_sed_lines # Line after last line for current file.
10535  ac_more_lines=:
10536  ac_sed_cmds=
10537  while $ac_more_lines; do
10538    if test $ac_beg -gt 1; then
10539      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10540    else
10541      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10542    fi
10543    if test ! -s $tmp/subs.frag; then
10544      ac_more_lines=false
10545    else
10546      # The purpose of the label and of the branching condition is to
10547      # speed up the sed processing (if there are no `@' at all, there
10548      # is no need to browse any of the substitutions).
10549      # These are the two extra sed commands mentioned above.
10550      (echo ':t
10551  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10552      if test -z "$ac_sed_cmds"; then
10553  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10554      else
10555  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10556      fi
10557      ac_sed_frag=`expr $ac_sed_frag + 1`
10558      ac_beg=$ac_end
10559      ac_end=`expr $ac_end + $ac_max_sed_lines`
10560    fi
10561  done
10562  if test -z "$ac_sed_cmds"; then
10563    ac_sed_cmds=cat
10564  fi
10565fi # test -n "$CONFIG_FILES"
10566
10567_ACEOF
10568cat >>$CONFIG_STATUS <<\_ACEOF
10569for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10570  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10571  case $ac_file in
10572  - | *:- | *:-:* ) # input from stdin
10573        cat >$tmp/stdin
10574        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10575        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10576  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10577        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10578  * )   ac_file_in=$ac_file.in ;;
10579  esac
10580
10581  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10582  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10583$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10584         X"$ac_file" : 'X\(//\)[^/]' \| \
10585         X"$ac_file" : 'X\(//\)$' \| \
10586         X"$ac_file" : 'X\(/\)' \| \
10587         .     : '\(.\)' 2>/dev/null ||
10588echo X"$ac_file" |
10589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10590  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10591  	  /^X\(\/\/\)$/{ s//\1/; q; }
10592  	  /^X\(\/\).*/{ s//\1/; q; }
10593  	  s/.*/./; q'`
10594  { case "$ac_dir" in
10595  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10596  *)                      as_incr_dir=.;;
10597esac
10598as_dummy="$ac_dir"
10599for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10600  case $as_mkdir_dir in
10601    # Skip DOS drivespec
10602    ?:) as_incr_dir=$as_mkdir_dir ;;
10603    *)
10604      as_incr_dir=$as_incr_dir/$as_mkdir_dir
10605      test -d "$as_incr_dir" ||
10606        mkdir "$as_incr_dir" ||
10607	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10608echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10609   { (exit 1); exit 1; }; }
10610    ;;
10611  esac
10612done; }
10613
10614  ac_builddir=.
10615
10616if test "$ac_dir" != .; then
10617  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10618  # A "../" for each directory in $ac_dir_suffix.
10619  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10620else
10621  ac_dir_suffix= ac_top_builddir=
10622fi
10623
10624case $srcdir in
10625  .)  # No --srcdir option.  We are building in place.
10626    ac_srcdir=.
10627    if test -z "$ac_top_builddir"; then
10628       ac_top_srcdir=.
10629    else
10630       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10631    fi ;;
10632  [\\/]* | ?:[\\/]* )  # Absolute path.
10633    ac_srcdir=$srcdir$ac_dir_suffix;
10634    ac_top_srcdir=$srcdir ;;
10635  *) # Relative path.
10636    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10637    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10638esac
10639# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10640# absolute.
10641ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10642ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10643ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10644ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10645
10646
10647  case $INSTALL in
10648  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10649  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10650  esac
10651
10652  if test x"$ac_file" != x-; then
10653    { echo "$as_me:$LINENO: creating $ac_file" >&5
10654echo "$as_me: creating $ac_file" >&6;}
10655    rm -f "$ac_file"
10656  fi
10657  # Let's still pretend it is `configure' which instantiates (i.e., don't
10658  # use $as_me), people would be surprised to read:
10659  #    /* config.h.  Generated by config.status.  */
10660  if test x"$ac_file" = x-; then
10661    configure_input=
10662  else
10663    configure_input="$ac_file.  "
10664  fi
10665  configure_input=$configure_input"Generated from `echo $ac_file_in |
10666                                     sed 's,.*/,,'` by configure."
10667
10668  # First look for the input files in the build tree, otherwise in the
10669  # src tree.
10670  ac_file_inputs=`IFS=:
10671    for f in $ac_file_in; do
10672      case $f in
10673      -) echo $tmp/stdin ;;
10674      [\\/$]*)
10675         # Absolute (can't be DOS-style, as IFS=:)
10676         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10677echo "$as_me: error: cannot find input file: $f" >&2;}
10678   { (exit 1); exit 1; }; }
10679         echo $f;;
10680      *) # Relative
10681         if test -f "$f"; then
10682           # Build tree
10683           echo $f
10684         elif test -f "$srcdir/$f"; then
10685           # Source tree
10686           echo $srcdir/$f
10687         else
10688           # /dev/null tree
10689           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10690echo "$as_me: error: cannot find input file: $f" >&2;}
10691   { (exit 1); exit 1; }; }
10692         fi;;
10693      esac
10694    done` || { (exit 1); exit 1; }
10695_ACEOF
10696cat >>$CONFIG_STATUS <<_ACEOF
10697  sed "$ac_vpsub
10698$extrasub
10699_ACEOF
10700cat >>$CONFIG_STATUS <<\_ACEOF
10701:t
10702/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10703s,@configure_input@,$configure_input,;t t
10704s,@srcdir@,$ac_srcdir,;t t
10705s,@abs_srcdir@,$ac_abs_srcdir,;t t
10706s,@top_srcdir@,$ac_top_srcdir,;t t
10707s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10708s,@builddir@,$ac_builddir,;t t
10709s,@abs_builddir@,$ac_abs_builddir,;t t
10710s,@top_builddir@,$ac_top_builddir,;t t
10711s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10712s,@INSTALL@,$ac_INSTALL,;t t
10713" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10714  rm -f $tmp/stdin
10715  if test x"$ac_file" != x-; then
10716    mv $tmp/out $ac_file
10717  else
10718    cat $tmp/out
10719    rm -f $tmp/out
10720  fi
10721
10722done
10723_ACEOF
10724cat >>$CONFIG_STATUS <<\_ACEOF
10725
10726#
10727# CONFIG_HEADER section.
10728#
10729
10730# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10731# NAME is the cpp macro being defined and VALUE is the value it is being given.
10732#
10733# ac_d sets the value in "#define NAME VALUE" lines.
10734ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
10735ac_dB='[ 	].*$,\1#\2'
10736ac_dC=' '
10737ac_dD=',;t'
10738# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10739ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
10740ac_uB='$,\1#\2define\3'
10741ac_uC=' '
10742ac_uD=',;t'
10743
10744for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10745  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10746  case $ac_file in
10747  - | *:- | *:-:* ) # input from stdin
10748        cat >$tmp/stdin
10749        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10750        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10751  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10752        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10753  * )   ac_file_in=$ac_file.in ;;
10754  esac
10755
10756  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10757echo "$as_me: creating $ac_file" >&6;}
10758
10759  # First look for the input files in the build tree, otherwise in the
10760  # src tree.
10761  ac_file_inputs=`IFS=:
10762    for f in $ac_file_in; do
10763      case $f in
10764      -) echo $tmp/stdin ;;
10765      [\\/$]*)
10766         # Absolute (can't be DOS-style, as IFS=:)
10767         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10768echo "$as_me: error: cannot find input file: $f" >&2;}
10769   { (exit 1); exit 1; }; }
10770         echo $f;;
10771      *) # Relative
10772         if test -f "$f"; then
10773           # Build tree
10774           echo $f
10775         elif test -f "$srcdir/$f"; then
10776           # Source tree
10777           echo $srcdir/$f
10778         else
10779           # /dev/null tree
10780           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10781echo "$as_me: error: cannot find input file: $f" >&2;}
10782   { (exit 1); exit 1; }; }
10783         fi;;
10784      esac
10785    done` || { (exit 1); exit 1; }
10786  # Remove the trailing spaces.
10787  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
10788
10789_ACEOF
10790
10791# Transform confdefs.h into two sed scripts, `conftest.defines' and
10792# `conftest.undefs', that substitutes the proper values into
10793# config.h.in to produce config.h.  The first handles `#define'
10794# templates, and the second `#undef' templates.
10795# And first: Protect against being on the right side of a sed subst in
10796# config.status.  Protect against being in an unquoted here document
10797# in config.status.
10798rm -f conftest.defines conftest.undefs
10799# Using a here document instead of a string reduces the quoting nightmare.
10800# Putting comments in sed scripts is not portable.
10801#
10802# `end' is used to avoid that the second main sed command (meant for
10803# 0-ary CPP macros) applies to n-ary macro definitions.
10804# See the Autoconf documentation for `clear'.
10805cat >confdef2sed.sed <<\_ACEOF
10806s/[\\&,]/\\&/g
10807s,[\\$`],\\&,g
10808t clear
10809: clear
10810s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10811t end
10812s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10813: end
10814_ACEOF
10815# If some macros were called several times there might be several times
10816# the same #defines, which is useless.  Nevertheless, we may not want to
10817# sort them, since we want the *last* AC-DEFINE to be honored.
10818uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10819sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10820rm -f confdef2sed.sed
10821
10822# This sed command replaces #undef with comments.  This is necessary, for
10823# example, in the case of _POSIX_SOURCE, which is predefined and required
10824# on some systems where configure will not decide to define it.
10825cat >>conftest.undefs <<\_ACEOF
10826s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10827_ACEOF
10828
10829# Break up conftest.defines because some shells have a limit on the size
10830# of here documents, and old seds have small limits too (100 cmds).
10831echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10832echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10833echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10834echo '  :' >>$CONFIG_STATUS
10835rm -f conftest.tail
10836while grep . conftest.defines >/dev/null
10837do
10838  # Write a limited-size here document to $tmp/defines.sed.
10839  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10840  # Speed up: don't consider the non `#define' lines.
10841  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
10842  # Work around the forget-to-reset-the-flag bug.
10843  echo 't clr' >>$CONFIG_STATUS
10844  echo ': clr' >>$CONFIG_STATUS
10845  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10846  echo 'CEOF
10847  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10848  rm -f $tmp/in
10849  mv $tmp/out $tmp/in
10850' >>$CONFIG_STATUS
10851  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10852  rm -f conftest.defines
10853  mv conftest.tail conftest.defines
10854done
10855rm -f conftest.defines
10856echo '  fi # egrep' >>$CONFIG_STATUS
10857echo >>$CONFIG_STATUS
10858
10859# Break up conftest.undefs because some shells have a limit on the size
10860# of here documents, and old seds have small limits too (100 cmds).
10861echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10862rm -f conftest.tail
10863while grep . conftest.undefs >/dev/null
10864do
10865  # Write a limited-size here document to $tmp/undefs.sed.
10866  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10867  # Speed up: don't consider the non `#undef'
10868  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
10869  # Work around the forget-to-reset-the-flag bug.
10870  echo 't clr' >>$CONFIG_STATUS
10871  echo ': clr' >>$CONFIG_STATUS
10872  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10873  echo 'CEOF
10874  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10875  rm -f $tmp/in
10876  mv $tmp/out $tmp/in
10877' >>$CONFIG_STATUS
10878  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10879  rm -f conftest.undefs
10880  mv conftest.tail conftest.undefs
10881done
10882rm -f conftest.undefs
10883
10884cat >>$CONFIG_STATUS <<\_ACEOF
10885  # Let's still pretend it is `configure' which instantiates (i.e., don't
10886  # use $as_me), people would be surprised to read:
10887  #    /* config.h.  Generated by config.status.  */
10888  if test x"$ac_file" = x-; then
10889    echo "/* Generated by configure.  */" >$tmp/config.h
10890  else
10891    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10892  fi
10893  cat $tmp/in >>$tmp/config.h
10894  rm -f $tmp/in
10895  if test x"$ac_file" != x-; then
10896    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10897      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10898echo "$as_me: $ac_file is unchanged" >&6;}
10899    else
10900      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10902         X"$ac_file" : 'X\(//\)[^/]' \| \
10903         X"$ac_file" : 'X\(//\)$' \| \
10904         X"$ac_file" : 'X\(/\)' \| \
10905         .     : '\(.\)' 2>/dev/null ||
10906echo X"$ac_file" |
10907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10908  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10909  	  /^X\(\/\/\)$/{ s//\1/; q; }
10910  	  /^X\(\/\).*/{ s//\1/; q; }
10911  	  s/.*/./; q'`
10912      { case "$ac_dir" in
10913  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10914  *)                      as_incr_dir=.;;
10915esac
10916as_dummy="$ac_dir"
10917for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10918  case $as_mkdir_dir in
10919    # Skip DOS drivespec
10920    ?:) as_incr_dir=$as_mkdir_dir ;;
10921    *)
10922      as_incr_dir=$as_incr_dir/$as_mkdir_dir
10923      test -d "$as_incr_dir" ||
10924        mkdir "$as_incr_dir" ||
10925	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10926echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10927   { (exit 1); exit 1; }; }
10928    ;;
10929  esac
10930done; }
10931
10932      rm -f $ac_file
10933      mv $tmp/config.h $ac_file
10934    fi
10935  else
10936    cat $tmp/config.h
10937    rm -f $tmp/config.h
10938  fi
10939  # Run the commands associated with the file.
10940  case $ac_file in
10941    config.h ) # update the timestamp
10942echo timestamp >"./stamp-h1"
10943 ;;
10944  esac
10945done
10946_ACEOF
10947cat >>$CONFIG_STATUS <<\_ACEOF
10948
10949#
10950# CONFIG_COMMANDS section.
10951#
10952for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10953  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10954  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10955  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10956$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10957         X"$ac_dest" : 'X\(//\)[^/]' \| \
10958         X"$ac_dest" : 'X\(//\)$' \| \
10959         X"$ac_dest" : 'X\(/\)' \| \
10960         .     : '\(.\)' 2>/dev/null ||
10961echo X"$ac_dest" |
10962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10963  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10964  	  /^X\(\/\/\)$/{ s//\1/; q; }
10965  	  /^X\(\/\).*/{ s//\1/; q; }
10966  	  s/.*/./; q'`
10967  ac_builddir=.
10968
10969if test "$ac_dir" != .; then
10970  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10971  # A "../" for each directory in $ac_dir_suffix.
10972  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10973else
10974  ac_dir_suffix= ac_top_builddir=
10975fi
10976
10977case $srcdir in
10978  .)  # No --srcdir option.  We are building in place.
10979    ac_srcdir=.
10980    if test -z "$ac_top_builddir"; then
10981       ac_top_srcdir=.
10982    else
10983       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10984    fi ;;
10985  [\\/]* | ?:[\\/]* )  # Absolute path.
10986    ac_srcdir=$srcdir$ac_dir_suffix;
10987    ac_top_srcdir=$srcdir ;;
10988  *) # Relative path.
10989    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10990    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10991esac
10992# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10993# absolute.
10994ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10995ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10996ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10997ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10998
10999
11000  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11001echo "$as_me: executing $ac_dest commands" >&6;}
11002  case $ac_dest in
11003    default-1 )
11004test x"$AMDEP_TRUE" != x"" ||
11005for mf in $CONFIG_FILES; do
11006  case "$mf" in
11007  Makefile) dirpart=.;;
11008  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
11009  *) continue;;
11010  esac
11011  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11012  # Extract the definition of DEP_FILES from the Makefile without
11013  # running `make'.
11014  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11015  test -z "$DEPDIR" && continue
11016  # When using ansi2knr, U may be empty or an underscore; expand it
11017  U=`sed -n -e '/^U = / s///p' < "$mf"`
11018  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11019  # We invoke sed twice because it is the simplest approach to
11020  # changing $(DEPDIR) to its actual value in the expansion.
11021  for file in `sed -n -e '
11022    /^DEP_FILES = .*\\\\$/ {
11023      s/^DEP_FILES = //
11024      :loop
11025	s/\\\\$//
11026	p
11027	n
11028	/\\\\$/ b loop
11029      p
11030    }
11031    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11032       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11033    # Make sure the directory exists.
11034    test -f "$dirpart/$file" && continue
11035    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
11036    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
11037    # echo "creating $dirpart/$file"
11038    echo '# dummy' > "$dirpart/$file"
11039  done
11040done
11041 ;;
11042    default ) chmod a+x autotrace-config ;;
11043  esac
11044done
11045_ACEOF
11046
11047cat >>$CONFIG_STATUS <<\_ACEOF
11048
11049{ (exit 0); exit 0; }
11050_ACEOF
11051chmod +x $CONFIG_STATUS
11052ac_clean_files=$ac_clean_files_save
11053
11054
11055# configure is writing to config.log, and then calls config.status.
11056# config.status does its own redirection, appending to config.log.
11057# Unfortunately, on DOS this fails, as config.log is still kept open
11058# by configure, so config.status won't be able to write to it; its
11059# output is simply discarded.  So we exec the FD to /dev/null,
11060# effectively closing config.log, so it can be properly (re)opened and
11061# appended to by config.status.  When coming back to configure, we
11062# need to make the FD available again.
11063if test "$no_create" != yes; then
11064  ac_cs_success=:
11065  exec 5>/dev/null
11066  $SHELL $CONFIG_STATUS || ac_cs_success=false
11067  exec 5>>config.log
11068  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11069  # would make configure fail if this is the last instruction.
11070  $ac_cs_success || { (exit 1); exit 1; }
11071fi
11072
11073
11074echo "
11075
11076Configuration:
11077	imagemagick output support:	$HAVE_MAGICK
11078	libpng output support:		$HAVE_LIBPNG
11079	swf output support by ming:	$HAVE_LIBSWF
11080	pstoedit output support:	$HAVE_LIBPSTOEDIT
11081
11082"
11083