1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.11-8.
4#
5# Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and https://github.com/ImageMagick/ImageMagick/issues
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
592PACKAGE_TARNAME='ImageMagick'
593PACKAGE_VERSION='7.0.11-8'
594PACKAGE_STRING='ImageMagick 7.0.11-8'
595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
596PACKAGE_URL='https://imagemagick.org'
597
598ac_unique_file="MagickCore/MagickCore.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_EXTRA_DEP_LIBS
646MAGICK_DEP_LIBS
647OSX_GCOV_LDFLAG
648MAGICK_FEATURES
649MAGICK_DELEGATES
650MAGICKCORE_PATH
651PERL_SUPPORTS_DESTDIR
652WITH_PERL_DYNAMIC_FALSE
653WITH_PERL_DYNAMIC_TRUE
654WITH_PERL_STATIC_FALSE
655WITH_PERL_STATIC_TRUE
656WITH_PERL_FALSE
657WITH_PERL_TRUE
658PERL_VERSION
659GSVersion
660GSPSDevice
661GSPDFDevice
662GSMonoDevice
663GSEPSDevice
664GSColorDevice
665GSCMYKDevice
666GSAlphaDevice
667XPSVersion
668XPSCMYKDevice
669XPSColorDevice
670XPSMonoDevice
671PCLVersion
672PCLCMYKDevice
673PCLColorDevice
674PCLMonoDevice
675ZIP
676P7ZIP_DELEGATE_FALSE
677P7ZIP_DELEGATE_TRUE
678P7ZIP
679RPM_DELEGATE_FALSE
680RPM_DELEGATE_TRUE
681RPM
682PERL
683TAR
684ShowImageDelegate
685type_include_files
686windows_font_dir
687urw_base35_font_dir
688ghostscript_font_dir
689dejavu_font_dir
690apple_font_dir
691PrintDelegate
692XPSDelegate
693WWWDecodeDelegate
694WebPEncodeDelegate
695WebPDecodeDelegate
696Fig2devDelegate
697TraceEncodeDelegate
698TextEncodeDelegate
699SVGDecodeDelegate
700RSVGDecodeDelegate
701RMDelegate
702PSDelegate
703PCLDelegate
704MVDelegate
705MrSIDDecodeDelegate
706VIDEOEncodeDelegate
707VIDEODecodeDelegate
708MogrifyDelegate
709LaunchDelegate
710LPRDelegate
711LPDelegate
712LEPDelegate
713JXREncodeDelegate
714JXRDecodeDelegate
715ILBMEncodeDelegate
716ILBMDecodeDelegate
717HTMLDecodeDelegate
718HPGLDecodeDelegate
719GVCDecodeDelegate
720EditorDelegate
721DisplayDelegate
722ConvertDelegate
723DVIDecodeDelegate
724DOCDecodeDelegate
725DNGDecodeDelegate
726BrowseDelegate
727BlenderDecodeDelegate
728BPGEncodeDelegate
729BPGDecodeDelegate
730SHAREARCH_PATH
731SHAREARCH_RELATIVE_PATH
732SHAREARCH_DIRNAME
733SHAREARCH_BASEDIRNAME
734SHARE_PATH
735CONFIGURE_PATH
736INSTALL_DOC_FALSE
737INSTALL_DOC_TRUE
738DOCUMENTATION_PATH
739FILTER_PATH
740FILTER_DIRNAME
741CODER_PATH
742CODER_DIRNAME
743MODULES_PATH
744MODULES_RELATIVE_PATH
745MODULES_DIRNAME
746MODULES_BASEDIRNAME
747LIB_BIN_DIR_PATH
748LIB_BIN_DIR_RELATIVE_PATH
749LIB_BIN_DIR
750LIB_BIN_BASEDIRNAME
751LIBRARY_PATH
752EXECUTABLE_PATH
753INCLUDEARCH_PATH
754INCLUDE_PATH
755PERLMAINCC
756XML_DELEGATE_FALSE
757XML_DELEGATE_TRUE
758XML_LIBS
759XML_CFLAGS
760WMF_LIBS
761WMF_CFLAGS
762WMF_DELEGATE_FALSE
763WMF_DELEGATE_TRUE
764WEBPMUX_DELEGATE_FALSE
765WEBPMUX_DELEGATE_TRUE
766WEBP_DELEGATE_FALSE
767WEBP_DELEGATE_TRUE
768WEBPMUX_LIBS
769WEBPMUX_CFLAGS
770WEBP_LIBS
771WEBP_CFLAGS
772TIFF_LIBS
773TIFF_DELEGATE_FALSE
774TIFF_DELEGATE_TRUE
775CAIRO_DELEGATE_FALSE
776CAIRO_DELEGATE_TRUE
777RSVG_DELEGATE_FALSE
778RSVG_DELEGATE_TRUE
779CAIRO_SVG_LIBS
780CAIRO_SVG_CFLAGS
781RSVG_LIBS
782RSVG_CFLAGS
783RAW_R_DELEGATE_FALSE
784RAW_R_DELEGATE_TRUE
785RAW_R_LIBS
786RAW_R_CFLAGS
787PNG_DELEGATE_FALSE
788PNG_DELEGATE_TRUE
789PNG_LIBS
790PNG_CFLAGS
791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
799OPENEXR_LIBS
800OPENEXR_CFLAGS
801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
803LZMA_LIBS
804LZMA_CFLAGS
805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
807LQR_LIBS
808LQR_CFLAGS
809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
813LCMS_LIBS
814LCMS_CFLAGS
815LCMS_DELEGATE_FALSE
816LCMS_DELEGATE_TRUE
817LCMS2_LIBS
818LCMS2_CFLAGS
819JXL_LIBS
820JXL_DELEGATE_FALSE
821JXL_DELEGATE_TRUE
822JPEG_LIBS
823JPEG_DELEGATE_FALSE
824JPEG_DELEGATE_TRUE
825JBIG_LIBS
826JBIG_DELEGATE_FALSE
827JBIG_DELEGATE_TRUE
828HEIC_DELEGATE_FALSE
829HEIC_DELEGATE_TRUE
830HEIF_LIBS
831HEIF_CFLAGS
832GVC_DELEGATE_FALSE
833GVC_DELEGATE_TRUE
834GVC_LIBS
835GVC_CFLAGS
836GS_LIBS
837GS_DELEGATE_FALSE
838GS_DELEGATE_TRUE
839GDI32_LIBS
840WINGDI32_DELEGATE_FALSE
841WINGDI32_DELEGATE_TRUE
842RAQM_DELEGATE_FALSE
843RAQM_DELEGATE_TRUE
844RAQM_LIBS
845RAQM_CFLAGS
846MAGICKCORE_FREETYPE_DELEGATE
847FREETYPE_LIBS
848FREETYPE_CFLAGS
849FONTCONFIG_DELEGATE_FALSE
850FONTCONFIG_DELEGATE_TRUE
851FONTCONFIG_LIBS
852FONTCONFIG_CFLAGS
853DJVU_LIBS
854DJVU_CFLAGS
855DJVU_DELEGATE_FALSE
856DJVU_DELEGATE_TRUE
857ddjvuapi_LIBS
858ddjvuapi_CFLAGS
859FPX_LIBS
860FPX_DELEGATE_FALSE
861FPX_DELEGATE_TRUE
862FLIF_LIBS
863FLIF_DELEGATE_FALSE
864FLIF_DELEGATE_TRUE
865FFTW_LIBS
866FFTW_CFLAGS
867FFTW_DELEGATE_FALSE
868FFTW_DELEGATE_TRUE
869fftw3_LIBS
870fftw3_CFLAGS
871DPS_LIBS
872DPS_DELEGATE_FALSE
873DPS_DELEGATE_TRUE
874AUTOTRACE_DELEGATE_FALSE
875AUTOTRACE_DELEGATE_TRUE
876AUTOTRACE_LIBS
877AUTOTRACE_CFLAGS
878LIB_DL
879WITH_LTDL_FALSE
880WITH_LTDL_TRUE
881ZSTD_LIBS
882ZSTD_CFLAGS
883ZSTD_DELEGATE_FALSE
884ZSTD_DELEGATE_TRUE
885LIBZSTD_LIBS
886LIBZSTD_CFLAGS
887ZLIB_DELEGATE_FALSE
888ZLIB_DELEGATE_TRUE
889ZLIB_LIBS
890ZLIB_CFLAGS
891ZIP_DELEGATE_FALSE
892ZIP_DELEGATE_TRUE
893ZIP_LIBS
894ZIP_CFLAGS
895XEXT_LIBS
896X11_LIBS
897X11_DELEGATE_FALSE
898X11_DELEGATE_TRUE
899X_EXTRA_LIBS
900X_LIBS
901X_PRE_LIBS
902X_CFLAGS
903XMKMF
904BZLIB_LIBS
905BZLIB_DELEGATE_FALSE
906BZLIB_DELEGATE_TRUE
907CCMALLOCDelegate
908UMEM_LIBS
909HAVE_UMEM_FALSE
910HAVE_UMEM_TRUE
911TCMALLOC_LIBS
912HAVE_TCMALLOC_FALSE
913HAVE_TCMALLOC_TRUE
914JEMALLOC_LIBS
915HAVE_JEMALLOC_FALSE
916HAVE_JEMALLOC_TRUE
917GOMP_LIBS
918WITH_MAGICK_PLUS_PLUS_FALSE
919WITH_MAGICK_PLUS_PLUS_TRUE
920OPENMP_CXXFLAGS
921MATH_LIBS
922POW_LIB
923LIBOBJS
924LIBRARY_EXTRA_CPPFLAGS
925MODULE_EXTRA_CPPFLAGS
926LIBSTDCLDFLAGS
927PERL_MAKE_OPTIONS
928MAGICK_LT_RELEASE_OPTS
929MAGICK_ABI_SUFFIX
930QUANTUM_DEPTH
931WITH_UTILITIES_FALSE
932WITH_UTILITIES_TRUE
933LEGACY_SUPPORT_FALSE
934LEGACY_SUPPORT_TRUE
935MAINT
936MAINTAINER_MODE_FALSE
937MAINTAINER_MODE_TRUE
938MAGICK_HDRI
939MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE
940MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE
941WITH_MODULES_FALSE
942WITH_MODULES_TRUE
943WITH_SHARED_LIBS_FALSE
944WITH_SHARED_LIBS_TRUE
945LIBTOOL_DEPS
946CXXCPP
947am__fastdepCXX_FALSE
948am__fastdepCXX_TRUE
949CXXDEPMODE
950ac_ct_CXX
951CXXFLAGS
952CXX
953LT_SYS_LIBRARY_PATH
954OTOOL64
955OTOOL
956LIPO
957NMEDIT
958DSYMUTIL
959MANIFEST_TOOL
960NM
961ac_ct_DUMPBIN
962DUMPBIN
963LIBTOOL
964OBJDUMP
965DLLTOOL
966AS
967LFS_CPPFLAGS
968OPENMP_CFLAGS
969THREAD_LIBS
970PTHREAD_CFLAGS
971PTHREAD_LIBS
972PTHREAD_CC
973ax_pthread_config
974pkgconfigdir
975SHAREARCH_DIR
976INCLUDEARCH_DIR
977WinPathScript
978CYGWIN_BUILD_FALSE
979CYGWIN_BUILD_TRUE
980WIN32_NATIVE_BUILD_FALSE
981WIN32_NATIVE_BUILD_TRUE
982HAVE_LD_VERSION_SCRIPT_FALSE
983HAVE_LD_VERSION_SCRIPT_TRUE
984PKG_CONFIG_LIBDIR
985PKG_CONFIG_PATH
986PKG_CONFIG
987PRTDIAG
988RANLIB
989LN_S
990LD
991FGREP
992SED
993ac_ct_AR
994AR
995EGREP
996GREP
997CPP
998am__fastdepCC_FALSE
999am__fastdepCC_TRUE
1000CCDEPMODE
1001am__nodep
1002AMDEPBACKSLASH
1003AMDEP_FALSE
1004AMDEP_TRUE
1005am__include
1006DEPDIR
1007OBJEXT
1008EXEEXT
1009ac_ct_CC
1010CPPFLAGS
1011LDFLAGS
1012CFLAGS
1013CC
1014DIRSEP
1015MAGICK_FILTER_MODULE_PATH
1016MAGICK_CONFIGURE_BUILD_PATH
1017MAGICK_CONFIGURE_SRC_PATH
1018MAGICK_CODER_MODULE_PATH
1019MAN_DIR
1020INFO_DIR
1021PERSISTINCLUDE_DIR
1022INCLUDE_DIR
1023LIB_DIR
1024LOCALSTATE_DIR
1025SHAREDSTATE_DIR
1026SYSCONF_DIR
1027DOC_DIR
1028DATA_DIR
1029LIBEXEC_DIR
1030SBIN_DIR
1031BIN_DIR
1032EXEC_PREFIX_DIR
1033PREFIX_DIR
1034MAGICKPP_LIB_VERSION_TEXT
1035MAGICKPP_LIB_VERSION
1036MAGICK_LIB_VERSION_NUMBER
1037MAGICK_LIB_VERSION_TEXT
1038MAGICK_LIB_VERSION
1039PACKAGE_RELEASE_DATE
1040PACKAGE_LIB_VERSION_NUMBER
1041PACKAGE_LIB_VERSION
1042PACKAGE_VERSION_ADDENDUM
1043PACKAGE_PATCHLEVEL_VERSION
1044PACKAGE_BASE_VERSION
1045MAGICKPP_LIBRARY_VERSION_INFO
1046MAGICKPP_LIBRARY_CURRENT_MIN
1047MAGICKPP_LIBRARY_AGE
1048MAGICKPP_LIBRARY_REVISION
1049MAGICKPP_LIBRARY_CURRENT
1050MAGICK_LIBRARY_VERSION_INFO
1051MAGICK_LIBRARY_CURRENT_MIN
1052MAGICK_LIBRARY_AGE
1053MAGICK_LIBRARY_REVISION
1054MAGICK_LIBRARY_CURRENT
1055MAGICK_GIT_REVISION
1056MAGICK_VERSION
1057MAGICK_PATCHLEVEL_VERSION
1058MAGICK_MICRO_VERSION
1059MAGICK_MINOR_VERSION
1060MAGICK_MAJOR_VERSION
1061MAGICK_TARGET_OS
1062MAGICK_TARGET_VENDOR
1063MAGICK_TARGET_CPU
1064CONFIGURE_ARGS
1065DISTCHECK_CONFIG_FLAGS
1066CONFIGURE_DEPENDENCIES
1067AM_BACKSLASH
1068AM_DEFAULT_VERBOSITY
1069AM_DEFAULT_V
1070AM_V
1071am__untar
1072am__tar
1073AMTAR
1074am__leading_dot
1075SET_MAKE
1076AWK
1077mkdir_p
1078MKDIR_P
1079INSTALL_STRIP_PROGRAM
1080STRIP
1081install_sh
1082MAKEINFO
1083AUTOHEADER
1084AUTOMAKE
1085AUTOCONF
1086ACLOCAL
1087VERSION
1088PACKAGE
1089CYGPATH_W
1090am__isrc
1091INSTALL_DATA
1092INSTALL_SCRIPT
1093INSTALL_PROGRAM
1094target_os
1095target_vendor
1096target_cpu
1097target
1098host_os
1099host_vendor
1100host_cpu
1101host
1102build_os
1103build_vendor
1104build_cpu
1105build
1106target_alias
1107host_alias
1108build_alias
1109LIBS
1110ECHO_T
1111ECHO_N
1112ECHO_C
1113DEFS
1114mandir
1115localedir
1116libdir
1117psdir
1118pdfdir
1119dvidir
1120htmldir
1121infodir
1122docdir
1123oldincludedir
1124includedir
1125localstatedir
1126sharedstatedir
1127sysconfdir
1128datadir
1129datarootdir
1130libexecdir
1131sbindir
1132bindir
1133program_transform_name
1134prefix
1135exec_prefix
1136PACKAGE_URL
1137PACKAGE_BUGREPORT
1138PACKAGE_STRING
1139PACKAGE_VERSION
1140PACKAGE_TARNAME
1141PACKAGE_NAME
1142PATH_SEPARATOR
1143SHELL
1144am__quote'
1145ac_subst_files=''
1146ac_user_opts='
1147enable_option_checking
1148enable_silent_rules
1149enable_dependency_tracking
1150with_gnu_ld
1151with_dmalloc
1152with_gcc_arch
1153enable_ld_version_script
1154enable_bounds_checking
1155enable_osx_universal_binary
1156with_includearch_dir
1157with_sharearch_dir
1158with_pkgconfigdir
1159with_threads
1160enable_openmp
1161enable_opencl
1162enable_largefile
1163enable_shared
1164enable_static
1165with_pic
1166enable_fast_install
1167with_aix_soname
1168with_sysroot
1169enable_libtool_lock
1170with_modules
1171enable_delegate_build
1172enable_deprecated
1173enable_installed
1174enable_cipher
1175enable_zero_configuration
1176enable_hdri
1177enable_pipes
1178enable_assert
1179enable_maintainer_mode
1180enable_hugepages
1181enable_ccmalloc
1182enable_efence
1183enable_prof
1184enable_gprof
1185enable_gcov
1186with_method_prefix
1187enable_legacy_support
1188with_utilities
1189with_quantum_depth
1190with_cache
1191with_frozenpaths
1192with_magick_plus_plus
1193with_package_release_name
1194with_perl
1195with_perl_options
1196with_jemalloc
1197with_tcmalloc
1198with_umem
1199with_libstdc
1200with_bzlib
1201with_x
1202with_zip
1203with_zlib
1204with_zstd
1205with_apple_font_dir
1206with_autotrace
1207with_dps
1208with_dejavu_font_dir
1209with_fftw
1210with_flif
1211with_fpx
1212with_djvu
1213with_fontconfig
1214with_freetype
1215with_raqm
1216with_gdi32
1217with_gslib
1218with_fontpath
1219with_gs_font_dir
1220with_gvc
1221with_heic
1222with_jbig
1223with_jpeg
1224with_jxl
1225with_lcms
1226with_openjp2
1227with_lqr
1228with_lzma
1229with_openexr
1230with_pango
1231with_png
1232with_raw
1233with_rsvg
1234with_tiff
1235with_urw_base35_font_dir
1236with_webp
1237with_windows_font_dir
1238with_wmf
1239with_xml
1240enable_docs
1241'
1242      ac_precious_vars='build_alias
1243host_alias
1244target_alias
1245CC
1246CFLAGS
1247LDFLAGS
1248LIBS
1249CPPFLAGS
1250CPP
1251PKG_CONFIG
1252PKG_CONFIG_PATH
1253PKG_CONFIG_LIBDIR
1254LT_SYS_LIBRARY_PATH
1255CXX
1256CXXFLAGS
1257CCC
1258CXXCPP
1259XMKMF
1260ZIP_CFLAGS
1261ZIP_LIBS
1262ZLIB_CFLAGS
1263ZLIB_LIBS
1264LIBZSTD_CFLAGS
1265LIBZSTD_LIBS
1266AUTOTRACE_CFLAGS
1267AUTOTRACE_LIBS
1268fftw3_CFLAGS
1269fftw3_LIBS
1270ddjvuapi_CFLAGS
1271ddjvuapi_LIBS
1272FONTCONFIG_CFLAGS
1273FONTCONFIG_LIBS
1274FREETYPE_CFLAGS
1275FREETYPE_LIBS
1276RAQM_CFLAGS
1277RAQM_LIBS
1278GVC_CFLAGS
1279GVC_LIBS
1280HEIF_CFLAGS
1281HEIF_LIBS
1282LCMS2_CFLAGS
1283LCMS2_LIBS
1284LIBOPENJP2_CFLAGS
1285LIBOPENJP2_LIBS
1286LQR_CFLAGS
1287LQR_LIBS
1288LZMA_CFLAGS
1289LZMA_LIBS
1290OPENEXR_CFLAGS
1291OPENEXR_LIBS
1292PANGO_CFLAGS
1293PANGO_LIBS
1294PNG_CFLAGS
1295PNG_LIBS
1296RAW_R_CFLAGS
1297RAW_R_LIBS
1298RSVG_CFLAGS
1299RSVG_LIBS
1300CAIRO_SVG_CFLAGS
1301CAIRO_SVG_LIBS
1302WEBP_CFLAGS
1303WEBP_LIBS
1304WEBPMUX_CFLAGS
1305WEBPMUX_LIBS
1306XML_CFLAGS
1307XML_LIBS'
1308
1309
1310# Initialize some variables set by options.
1311ac_init_help=
1312ac_init_version=false
1313ac_unrecognized_opts=
1314ac_unrecognized_sep=
1315# The variables have the same names as the options, with
1316# dashes changed to underlines.
1317cache_file=/dev/null
1318exec_prefix=NONE
1319no_create=
1320no_recursion=
1321prefix=NONE
1322program_prefix=NONE
1323program_suffix=NONE
1324program_transform_name=s,x,x,
1325silent=
1326site=
1327srcdir=
1328verbose=
1329x_includes=NONE
1330x_libraries=NONE
1331
1332# Installation directory options.
1333# These are left unexpanded so users can "make install exec_prefix=/foo"
1334# and all the variables that are supposed to be based on exec_prefix
1335# by default will actually change.
1336# Use braces instead of parens because sh, perl, etc. also accept them.
1337# (The list follows the same order as the GNU Coding Standards.)
1338bindir='${exec_prefix}/bin'
1339sbindir='${exec_prefix}/sbin'
1340libexecdir='${exec_prefix}/libexec'
1341datarootdir='${prefix}/share'
1342datadir='${datarootdir}'
1343sysconfdir='${prefix}/etc'
1344sharedstatedir='${prefix}/com'
1345localstatedir='${prefix}/var'
1346includedir='${prefix}/include'
1347oldincludedir='/usr/include'
1348docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1349infodir='${datarootdir}/info'
1350htmldir='${docdir}'
1351dvidir='${docdir}'
1352pdfdir='${docdir}'
1353psdir='${docdir}'
1354libdir='${exec_prefix}/lib'
1355localedir='${datarootdir}/locale'
1356mandir='${datarootdir}/man'
1357
1358ac_prev=
1359ac_dashdash=
1360for ac_option
1361do
1362  # If the previous option needs an argument, assign it.
1363  if test -n "$ac_prev"; then
1364    eval $ac_prev=\$ac_option
1365    ac_prev=
1366    continue
1367  fi
1368
1369  case $ac_option in
1370  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1371  *=)   ac_optarg= ;;
1372  *)    ac_optarg=yes ;;
1373  esac
1374
1375  # Accept the important Cygnus configure options, so we can diagnose typos.
1376
1377  case $ac_dashdash$ac_option in
1378  --)
1379    ac_dashdash=yes ;;
1380
1381  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1382    ac_prev=bindir ;;
1383  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1384    bindir=$ac_optarg ;;
1385
1386  -build | --build | --buil | --bui | --bu)
1387    ac_prev=build_alias ;;
1388  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1389    build_alias=$ac_optarg ;;
1390
1391  -cache-file | --cache-file | --cache-fil | --cache-fi \
1392  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1393    ac_prev=cache_file ;;
1394  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1395  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1396    cache_file=$ac_optarg ;;
1397
1398  --config-cache | -C)
1399    cache_file=config.cache ;;
1400
1401  -datadir | --datadir | --datadi | --datad)
1402    ac_prev=datadir ;;
1403  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1404    datadir=$ac_optarg ;;
1405
1406  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1407  | --dataroo | --dataro | --datar)
1408    ac_prev=datarootdir ;;
1409  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1410  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1411    datarootdir=$ac_optarg ;;
1412
1413  -disable-* | --disable-*)
1414    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1415    # Reject names that are not valid shell variable names.
1416    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417      as_fn_error $? "invalid feature name: $ac_useropt"
1418    ac_useropt_orig=$ac_useropt
1419    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1420    case $ac_user_opts in
1421      *"
1422"enable_$ac_useropt"
1423"*) ;;
1424      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1425	 ac_unrecognized_sep=', ';;
1426    esac
1427    eval enable_$ac_useropt=no ;;
1428
1429  -docdir | --docdir | --docdi | --doc | --do)
1430    ac_prev=docdir ;;
1431  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1432    docdir=$ac_optarg ;;
1433
1434  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1435    ac_prev=dvidir ;;
1436  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1437    dvidir=$ac_optarg ;;
1438
1439  -enable-* | --enable-*)
1440    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1441    # Reject names that are not valid shell variable names.
1442    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1443      as_fn_error $? "invalid feature name: $ac_useropt"
1444    ac_useropt_orig=$ac_useropt
1445    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1446    case $ac_user_opts in
1447      *"
1448"enable_$ac_useropt"
1449"*) ;;
1450      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1451	 ac_unrecognized_sep=', ';;
1452    esac
1453    eval enable_$ac_useropt=\$ac_optarg ;;
1454
1455  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1456  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1457  | --exec | --exe | --ex)
1458    ac_prev=exec_prefix ;;
1459  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1460  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1461  | --exec=* | --exe=* | --ex=*)
1462    exec_prefix=$ac_optarg ;;
1463
1464  -gas | --gas | --ga | --g)
1465    # Obsolete; use --with-gas.
1466    with_gas=yes ;;
1467
1468  -help | --help | --hel | --he | -h)
1469    ac_init_help=long ;;
1470  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1471    ac_init_help=recursive ;;
1472  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1473    ac_init_help=short ;;
1474
1475  -host | --host | --hos | --ho)
1476    ac_prev=host_alias ;;
1477  -host=* | --host=* | --hos=* | --ho=*)
1478    host_alias=$ac_optarg ;;
1479
1480  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1481    ac_prev=htmldir ;;
1482  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1483  | --ht=*)
1484    htmldir=$ac_optarg ;;
1485
1486  -includedir | --includedir | --includedi | --included | --include \
1487  | --includ | --inclu | --incl | --inc)
1488    ac_prev=includedir ;;
1489  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1490  | --includ=* | --inclu=* | --incl=* | --inc=*)
1491    includedir=$ac_optarg ;;
1492
1493  -infodir | --infodir | --infodi | --infod | --info | --inf)
1494    ac_prev=infodir ;;
1495  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1496    infodir=$ac_optarg ;;
1497
1498  -libdir | --libdir | --libdi | --libd)
1499    ac_prev=libdir ;;
1500  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1501    libdir=$ac_optarg ;;
1502
1503  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1504  | --libexe | --libex | --libe)
1505    ac_prev=libexecdir ;;
1506  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1507  | --libexe=* | --libex=* | --libe=*)
1508    libexecdir=$ac_optarg ;;
1509
1510  -localedir | --localedir | --localedi | --localed | --locale)
1511    ac_prev=localedir ;;
1512  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1513    localedir=$ac_optarg ;;
1514
1515  -localstatedir | --localstatedir | --localstatedi | --localstated \
1516  | --localstate | --localstat | --localsta | --localst | --locals)
1517    ac_prev=localstatedir ;;
1518  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1519  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1520    localstatedir=$ac_optarg ;;
1521
1522  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1523    ac_prev=mandir ;;
1524  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1525    mandir=$ac_optarg ;;
1526
1527  -nfp | --nfp | --nf)
1528    # Obsolete; use --without-fp.
1529    with_fp=no ;;
1530
1531  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1532  | --no-cr | --no-c | -n)
1533    no_create=yes ;;
1534
1535  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1536  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1537    no_recursion=yes ;;
1538
1539  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1540  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1541  | --oldin | --oldi | --old | --ol | --o)
1542    ac_prev=oldincludedir ;;
1543  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1544  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1545  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1546    oldincludedir=$ac_optarg ;;
1547
1548  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1549    ac_prev=prefix ;;
1550  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1551    prefix=$ac_optarg ;;
1552
1553  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1554  | --program-pre | --program-pr | --program-p)
1555    ac_prev=program_prefix ;;
1556  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1557  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1558    program_prefix=$ac_optarg ;;
1559
1560  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1561  | --program-suf | --program-su | --program-s)
1562    ac_prev=program_suffix ;;
1563  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1564  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1565    program_suffix=$ac_optarg ;;
1566
1567  -program-transform-name | --program-transform-name \
1568  | --program-transform-nam | --program-transform-na \
1569  | --program-transform-n | --program-transform- \
1570  | --program-transform | --program-transfor \
1571  | --program-transfo | --program-transf \
1572  | --program-trans | --program-tran \
1573  | --progr-tra | --program-tr | --program-t)
1574    ac_prev=program_transform_name ;;
1575  -program-transform-name=* | --program-transform-name=* \
1576  | --program-transform-nam=* | --program-transform-na=* \
1577  | --program-transform-n=* | --program-transform-=* \
1578  | --program-transform=* | --program-transfor=* \
1579  | --program-transfo=* | --program-transf=* \
1580  | --program-trans=* | --program-tran=* \
1581  | --progr-tra=* | --program-tr=* | --program-t=*)
1582    program_transform_name=$ac_optarg ;;
1583
1584  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1585    ac_prev=pdfdir ;;
1586  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1587    pdfdir=$ac_optarg ;;
1588
1589  -psdir | --psdir | --psdi | --psd | --ps)
1590    ac_prev=psdir ;;
1591  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1592    psdir=$ac_optarg ;;
1593
1594  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595  | -silent | --silent | --silen | --sile | --sil)
1596    silent=yes ;;
1597
1598  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1599    ac_prev=sbindir ;;
1600  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1601  | --sbi=* | --sb=*)
1602    sbindir=$ac_optarg ;;
1603
1604  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1605  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1606  | --sharedst | --shareds | --shared | --share | --shar \
1607  | --sha | --sh)
1608    ac_prev=sharedstatedir ;;
1609  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1610  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1611  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1612  | --sha=* | --sh=*)
1613    sharedstatedir=$ac_optarg ;;
1614
1615  -site | --site | --sit)
1616    ac_prev=site ;;
1617  -site=* | --site=* | --sit=*)
1618    site=$ac_optarg ;;
1619
1620  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1621    ac_prev=srcdir ;;
1622  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1623    srcdir=$ac_optarg ;;
1624
1625  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1626  | --syscon | --sysco | --sysc | --sys | --sy)
1627    ac_prev=sysconfdir ;;
1628  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1629  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1630    sysconfdir=$ac_optarg ;;
1631
1632  -target | --target | --targe | --targ | --tar | --ta | --t)
1633    ac_prev=target_alias ;;
1634  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1635    target_alias=$ac_optarg ;;
1636
1637  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1638    verbose=yes ;;
1639
1640  -version | --version | --versio | --versi | --vers | -V)
1641    ac_init_version=: ;;
1642
1643  -with-* | --with-*)
1644    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1645    # Reject names that are not valid shell variable names.
1646    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1647      as_fn_error $? "invalid package name: $ac_useropt"
1648    ac_useropt_orig=$ac_useropt
1649    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650    case $ac_user_opts in
1651      *"
1652"with_$ac_useropt"
1653"*) ;;
1654      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1655	 ac_unrecognized_sep=', ';;
1656    esac
1657    eval with_$ac_useropt=\$ac_optarg ;;
1658
1659  -without-* | --without-*)
1660    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1661    # Reject names that are not valid shell variable names.
1662    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1663      as_fn_error $? "invalid package name: $ac_useropt"
1664    ac_useropt_orig=$ac_useropt
1665    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1666    case $ac_user_opts in
1667      *"
1668"with_$ac_useropt"
1669"*) ;;
1670      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1671	 ac_unrecognized_sep=', ';;
1672    esac
1673    eval with_$ac_useropt=no ;;
1674
1675  --x)
1676    # Obsolete; use --with-x.
1677    with_x=yes ;;
1678
1679  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1680  | --x-incl | --x-inc | --x-in | --x-i)
1681    ac_prev=x_includes ;;
1682  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1683  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1684    x_includes=$ac_optarg ;;
1685
1686  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1687  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1688    ac_prev=x_libraries ;;
1689  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1690  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1691    x_libraries=$ac_optarg ;;
1692
1693  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1694Try \`$0 --help' for more information"
1695    ;;
1696
1697  *=*)
1698    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1699    # Reject names that are not valid shell variable names.
1700    case $ac_envvar in #(
1701      '' | [0-9]* | *[!_$as_cr_alnum]* )
1702      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1703    esac
1704    eval $ac_envvar=\$ac_optarg
1705    export $ac_envvar ;;
1706
1707  *)
1708    # FIXME: should be removed in autoconf 3.0.
1709    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1710    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1711      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1712    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1713    ;;
1714
1715  esac
1716done
1717
1718if test -n "$ac_prev"; then
1719  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1720  as_fn_error $? "missing argument to $ac_option"
1721fi
1722
1723if test -n "$ac_unrecognized_opts"; then
1724  case $enable_option_checking in
1725    no) ;;
1726    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1727    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1728  esac
1729fi
1730
1731# Check all directory arguments for consistency.
1732for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1733		datadir sysconfdir sharedstatedir localstatedir includedir \
1734		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1735		libdir localedir mandir
1736do
1737  eval ac_val=\$$ac_var
1738  # Remove trailing slashes.
1739  case $ac_val in
1740    */ )
1741      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1742      eval $ac_var=\$ac_val;;
1743  esac
1744  # Be sure to have absolute directory names.
1745  case $ac_val in
1746    [\\/$]* | ?:[\\/]* )  continue;;
1747    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1748  esac
1749  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1750done
1751
1752# There might be people who depend on the old broken behavior: `$host'
1753# used to hold the argument of --host etc.
1754# FIXME: To remove some day.
1755build=$build_alias
1756host=$host_alias
1757target=$target_alias
1758
1759# FIXME: To remove some day.
1760if test "x$host_alias" != x; then
1761  if test "x$build_alias" = x; then
1762    cross_compiling=maybe
1763  elif test "x$build_alias" != "x$host_alias"; then
1764    cross_compiling=yes
1765  fi
1766fi
1767
1768ac_tool_prefix=
1769test -n "$host_alias" && ac_tool_prefix=$host_alias-
1770
1771test "$silent" = yes && exec 6>/dev/null
1772
1773
1774ac_pwd=`pwd` && test -n "$ac_pwd" &&
1775ac_ls_di=`ls -di .` &&
1776ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1777  as_fn_error $? "working directory cannot be determined"
1778test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1779  as_fn_error $? "pwd does not report name of working directory"
1780
1781
1782# Find the source files, if location was not specified.
1783if test -z "$srcdir"; then
1784  ac_srcdir_defaulted=yes
1785  # Try the directory containing this script, then the parent directory.
1786  ac_confdir=`$as_dirname -- "$as_myself" ||
1787$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1788	 X"$as_myself" : 'X\(//\)[^/]' \| \
1789	 X"$as_myself" : 'X\(//\)$' \| \
1790	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1791$as_echo X"$as_myself" |
1792    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1793	    s//\1/
1794	    q
1795	  }
1796	  /^X\(\/\/\)[^/].*/{
1797	    s//\1/
1798	    q
1799	  }
1800	  /^X\(\/\/\)$/{
1801	    s//\1/
1802	    q
1803	  }
1804	  /^X\(\/\).*/{
1805	    s//\1/
1806	    q
1807	  }
1808	  s/.*/./; q'`
1809  srcdir=$ac_confdir
1810  if test ! -r "$srcdir/$ac_unique_file"; then
1811    srcdir=..
1812  fi
1813else
1814  ac_srcdir_defaulted=no
1815fi
1816if test ! -r "$srcdir/$ac_unique_file"; then
1817  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1818  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1819fi
1820ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1821ac_abs_confdir=`(
1822	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1823	pwd)`
1824# When building in place, set srcdir=.
1825if test "$ac_abs_confdir" = "$ac_pwd"; then
1826  srcdir=.
1827fi
1828# Remove unnecessary trailing slashes from srcdir.
1829# Double slashes in file names in object file debugging info
1830# mess up M-x gdb in Emacs.
1831case $srcdir in
1832*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1833esac
1834for ac_var in $ac_precious_vars; do
1835  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1836  eval ac_env_${ac_var}_value=\$${ac_var}
1837  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1838  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1839done
1840
1841#
1842# Report the --help message.
1843#
1844if test "$ac_init_help" = "long"; then
1845  # Omit some internal or obsolete options to make the list less imposing.
1846  # This message is too long to be a string in the A/UX 3.1 sh.
1847  cat <<_ACEOF
1848\`configure' configures ImageMagick 7.0.11-8 to adapt to many kinds of systems.
1849
1850Usage: $0 [OPTION]... [VAR=VALUE]...
1851
1852To assign environment variables (e.g., CC, CFLAGS...), specify them as
1853VAR=VALUE.  See below for descriptions of some of the useful variables.
1854
1855Defaults for the options are specified in brackets.
1856
1857Configuration:
1858  -h, --help              display this help and exit
1859      --help=short        display options specific to this package
1860      --help=recursive    display the short help of all the included packages
1861  -V, --version           display version information and exit
1862  -q, --quiet, --silent   do not print \`checking ...' messages
1863      --cache-file=FILE   cache test results in FILE [disabled]
1864  -C, --config-cache      alias for \`--cache-file=config.cache'
1865  -n, --no-create         do not create output files
1866      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1867
1868Installation directories:
1869  --prefix=PREFIX         install architecture-independent files in PREFIX
1870                          [$ac_default_prefix]
1871  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1872                          [PREFIX]
1873
1874By default, \`make install' will install all the files in
1875\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1876an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1877for instance \`--prefix=\$HOME'.
1878
1879For better control, use the options below.
1880
1881Fine tuning of the installation directories:
1882  --bindir=DIR            user executables [EPREFIX/bin]
1883  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1884  --libexecdir=DIR        program executables [EPREFIX/libexec]
1885  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1886  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1887  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1888  --libdir=DIR            object code libraries [EPREFIX/lib]
1889  --includedir=DIR        C header files [PREFIX/include]
1890  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1891  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1892  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1893  --infodir=DIR           info documentation [DATAROOTDIR/info]
1894  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1895  --mandir=DIR            man documentation [DATAROOTDIR/man]
1896  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1897  --htmldir=DIR           html documentation [DOCDIR]
1898  --dvidir=DIR            dvi documentation [DOCDIR]
1899  --pdfdir=DIR            pdf documentation [DOCDIR]
1900  --psdir=DIR             ps documentation [DOCDIR]
1901_ACEOF
1902
1903  cat <<\_ACEOF
1904
1905Program names:
1906  --program-prefix=PREFIX            prepend PREFIX to installed program names
1907  --program-suffix=SUFFIX            append SUFFIX to installed program names
1908  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1909
1910X features:
1911  --x-includes=DIR    X include files are in DIR
1912  --x-libraries=DIR   X library files are in DIR
1913
1914System types:
1915  --build=BUILD     configure for building on BUILD [guessed]
1916  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1917  --target=TARGET   configure for building compilers for TARGET [HOST]
1918_ACEOF
1919fi
1920
1921if test -n "$ac_init_help"; then
1922  case $ac_init_help in
1923     short | recursive ) echo "Configuration of ImageMagick 7.0.11-8:";;
1924   esac
1925  cat <<\_ACEOF
1926
1927Optional Features:
1928  --disable-option-checking  ignore unrecognized --enable/--with options
1929  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1930  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1931  --enable-silent-rules   less verbose build output (undo: "make V=1")
1932  --disable-silent-rules  verbose build output (undo: "make V=0")
1933  --enable-dependency-tracking
1934                          do not reject slow dependency extractors
1935  --disable-dependency-tracking
1936                          speeds up one-time build
1937  --enable-ld-version-script
1938                          enable linker version script (default is enabled
1939                          when possible)
1940  --enable-bounds-checking
1941                          enable run-time bounds-checking
1942  --enable-osx-universal-binary
1943                          build universal binary on OS X [[default=no]]
1944  --disable-openmp        do not use OpenMP
1945  --enable-opencl         use OpenCL
1946  --disable-largefile     omit support for large files
1947  --enable-shared[=PKGS]  build shared libraries [default=yes]
1948  --enable-static[=PKGS]  build static libraries [default=yes]
1949  --enable-fast-install[=PKGS]
1950                          optimize for fast installation [default=yes]
1951  --disable-libtool-lock  avoid locking (might break parallel builds)
1952  --enable-delegate-build look for delegate libraries in build directory
1953  --disable-deprecated    exclude deprecated methods in MagickCore and
1954                          MagickWand APIs
1955  --disable-installed     Formally install ImageMagick under PREFIX
1956  --disable-cipher        disable enciphering and deciphering image pixels
1957  --enable-zero-configuration
1958                          enable self-contained, embeddable,
1959                          zero-configuration ImageMagick
1960  --enable-hdri           accurately represent the wide range of intensity
1961                          levels found in real scenes
1962  --enable-pipes          enable pipes (|) in filenames
1963  --disable-assert        disable assert() statements in build
1964  --enable-maintainer-mode
1965                          enable make rules and dependencies not useful (and
1966                          sometimes confusing) to the casual installer
1967  --enable-hugepages      enable 'huge pages' support
1968  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1969  --enable-efence         enable 'efence' memory debug support
1970  --enable-prof           enable 'prof' profiling support
1971  --enable-gprof          enable 'gprof' profiling support
1972  --enable-gcov           enable 'gcov' profiling support
1973  --enable-legacy-support install legacy command-line utilities (default disabled)
1974  --disable-assert        turn off assertions
1975  --disable-docs          disable building of documentation
1976
1977Optional Packages:
1978  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1979  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1980  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1981  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1982  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1983                          instead of guessing
1984  --includearch-dir=DIR   ARCH specific include directory
1985  --sharearch-dir=DIR     ARCH specific config directory
1986  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1987  --without-threads       disable POSIX threads API support
1988  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1989                          both]
1990  --with-aix-soname=aix|svr4|both
1991                          shared library versioning (aka "SONAME") variant to
1992                          provide on AIX, [default=aix].
1993  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1994                          compiler's sysroot if not specified).
1995  --with-modules          enable building dynamically loadable modules
1996  --with-method-prefix=PREFIX
1997                          prefix MagickCore API methods
1998  --with-utilities	enable building command-line utilities (default yes)
1999  --with-quantum-depth=DEPTH
2000                          number of bits in a pixel quantum (default 16)
2001  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
2002                          memory)
2003  --with-frozenpaths      freeze delegate paths
2004  --without-magick-plus-plus
2005                          disable build/install of Magick++
2006  --with-package-release-name=NAME
2007                          encode this name into the shared library
2008  --with-perl             enable build/install of PerlMagick
2009  --with-perl-options=OPTIONS
2010                          options to pass on command-line when generating
2011                          PerlMagick build file
2012  --with-jemalloc         enable jemalloc memory allocation library support
2013  --with-tcmalloc         enable tcmalloc memory allocation library support
2014  --with-umem             enable umem memory allocation library support
2015  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
2016  --without-bzlib         disable BZLIB support
2017  --with-x                use the X Window System
2018  --without-zip           disable ZIP support
2019  --without-zlib          disable ZLIB support
2020  --without-zstd          disable ZSTD support
2021  --with-apple-font-dir=DIR
2022                          Apple font directory
2023  --with-autotrace        enable autotrace support
2024  --without-dps           disable Display Postscript support
2025  --with-dejavu-font-dir=DIR
2026                          DejaVu font directory
2027  --with-fftw             enable FFTW support
2028  --without-flif          disable FLIF support
2029  --without-fpx           disable FlashPIX support
2030  --without-djvu          disable DjVu support
2031  --without-fontconfig    disable fontconfig support
2032  --without-freetype      disable Freetype support
2033  --without-raqm          disable Raqm support
2034  --without-gdi32         disable Windows gdi32 support
2035  --with-gslib            enable Ghostscript library support
2036  --with-fontpath=DIR     prepend to default font search path
2037  --with-gs-font-dir=DIR  Ghostscript font directory
2038  --with-gvc              enable GVC support
2039  --without-heic          disable HEIC support
2040  --without-jbig          disable JBIG support
2041  --without-jpeg          disable JPEG support
2042  --with-jxl              enable JPEG-XL support
2043  --without-lcms          disable lcms (v1.1X) support
2044  --without-openjp2       disable OpenJP2 support
2045  --without-lqr           disable Liquid Rescale support
2046  --without-lzma          disable LZMA support
2047  --without-openexr       disable OpenEXR support
2048  --without-pango         disable PANGO support
2049  --without-png           disable PNG support
2050  --without-raw           disable Raw support
2051  --with-rsvg             enable RSVG support
2052  --without-tiff          disable TIFF support
2053  --with-urw-base35-font-dir=DIR
2054                          URW-base35 font directory
2055  --without-webp          disable WEBP support
2056  --with-windows-font-dir=DIR
2057                          Windows font directory
2058  --with-wmf              enable WMF support
2059  --without-xml           disable XML support
2060
2061Some influential environment variables:
2062  CC          C compiler command
2063  CFLAGS      C compiler flags
2064  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2065              nonstandard directory <lib dir>
2066  LIBS        libraries to pass to the linker, e.g. -l<library>
2067  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2068              you have headers in a nonstandard directory <include dir>
2069  CPP         C preprocessor
2070  PKG_CONFIG  path to pkg-config utility
2071  PKG_CONFIG_PATH
2072              directories to add to pkg-config's search path
2073  PKG_CONFIG_LIBDIR
2074              path overriding pkg-config's built-in search path
2075  LT_SYS_LIBRARY_PATH
2076              User-defined run-time library search path.
2077  CXX         C++ compiler command
2078  CXXFLAGS    C++ compiler flags
2079  CXXCPP      C++ preprocessor
2080  XMKMF       Path to xmkmf, Makefile generator for X Window System
2081  ZIP_CFLAGS  C compiler flags for ZIP, overriding pkg-config
2082  ZIP_LIBS    linker flags for ZIP, overriding pkg-config
2083  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2084  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2085  LIBZSTD_CFLAGS
2086              C compiler flags for LIBZSTD, overriding pkg-config
2087  LIBZSTD_LIBS
2088              linker flags for LIBZSTD, overriding pkg-config
2089  AUTOTRACE_CFLAGS
2090              C compiler flags for AUTOTRACE, overriding pkg-config
2091  AUTOTRACE_LIBS
2092              linker flags for AUTOTRACE, overriding pkg-config
2093  fftw3_CFLAGS
2094              C compiler flags for fftw3, overriding pkg-config
2095  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
2096  ddjvuapi_CFLAGS
2097              C compiler flags for ddjvuapi, overriding pkg-config
2098  ddjvuapi_LIBS
2099              linker flags for ddjvuapi, overriding pkg-config
2100  FONTCONFIG_CFLAGS
2101              C compiler flags for FONTCONFIG, overriding pkg-config
2102  FONTCONFIG_LIBS
2103              linker flags for FONTCONFIG, overriding pkg-config
2104  FREETYPE_CFLAGS
2105              C compiler flags for FREETYPE, overriding pkg-config
2106  FREETYPE_LIBS
2107              linker flags for FREETYPE, overriding pkg-config
2108  RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2109  RAQM_LIBS   linker flags for RAQM, overriding pkg-config
2110  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2111  GVC_LIBS    linker flags for GVC, overriding pkg-config
2112  HEIF_CFLAGS C compiler flags for HEIF, overriding pkg-config
2113  HEIF_LIBS   linker flags for HEIF, overriding pkg-config
2114  LCMS2_CFLAGS
2115              C compiler flags for LCMS2, overriding pkg-config
2116  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
2117  LIBOPENJP2_CFLAGS
2118              C compiler flags for LIBOPENJP2, overriding pkg-config
2119  LIBOPENJP2_LIBS
2120              linker flags for LIBOPENJP2, overriding pkg-config
2121  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2122  LQR_LIBS    linker flags for LQR, overriding pkg-config
2123  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2124  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
2125  OPENEXR_CFLAGS
2126              C compiler flags for OPENEXR, overriding pkg-config
2127  OPENEXR_LIBS
2128              linker flags for OPENEXR, overriding pkg-config
2129  PANGO_CFLAGS
2130              C compiler flags for PANGO, overriding pkg-config
2131  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2132  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2133  PNG_LIBS    linker flags for PNG, overriding pkg-config
2134  RAW_R_CFLAGS
2135              C compiler flags for RAW_R, overriding pkg-config
2136  RAW_R_LIBS  linker flags for RAW_R, overriding pkg-config
2137  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2138  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2139  CAIRO_SVG_CFLAGS
2140              C compiler flags for CAIRO_SVG, overriding pkg-config
2141  CAIRO_SVG_LIBS
2142              linker flags for CAIRO_SVG, overriding pkg-config
2143  WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
2144  WEBP_LIBS   linker flags for WEBP, overriding pkg-config
2145  WEBPMUX_CFLAGS
2146              C compiler flags for WEBPMUX, overriding pkg-config
2147  WEBPMUX_LIBS
2148              linker flags for WEBPMUX, overriding pkg-config
2149  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
2150  XML_LIBS    linker flags for XML, overriding pkg-config
2151
2152Use these variables to override the choices made by `configure' or to help
2153it to find libraries and programs with nonstandard names/locations.
2154
2155Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2156ImageMagick home page: <https://imagemagick.org>.
2157_ACEOF
2158ac_status=$?
2159fi
2160
2161if test "$ac_init_help" = "recursive"; then
2162  # If there are subdirs, report their specific --help.
2163  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2164    test -d "$ac_dir" ||
2165      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2166      continue
2167    ac_builddir=.
2168
2169case "$ac_dir" in
2170.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2171*)
2172  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2173  # A ".." for each directory in $ac_dir_suffix.
2174  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2175  case $ac_top_builddir_sub in
2176  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2177  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2178  esac ;;
2179esac
2180ac_abs_top_builddir=$ac_pwd
2181ac_abs_builddir=$ac_pwd$ac_dir_suffix
2182# for backward compatibility:
2183ac_top_builddir=$ac_top_build_prefix
2184
2185case $srcdir in
2186  .)  # We are building in place.
2187    ac_srcdir=.
2188    ac_top_srcdir=$ac_top_builddir_sub
2189    ac_abs_top_srcdir=$ac_pwd ;;
2190  [\\/]* | ?:[\\/]* )  # Absolute name.
2191    ac_srcdir=$srcdir$ac_dir_suffix;
2192    ac_top_srcdir=$srcdir
2193    ac_abs_top_srcdir=$srcdir ;;
2194  *) # Relative name.
2195    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2196    ac_top_srcdir=$ac_top_build_prefix$srcdir
2197    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2198esac
2199ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2200
2201    cd "$ac_dir" || { ac_status=$?; continue; }
2202    # Check for guested configure.
2203    if test -f "$ac_srcdir/configure.gnu"; then
2204      echo &&
2205      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2206    elif test -f "$ac_srcdir/configure"; then
2207      echo &&
2208      $SHELL "$ac_srcdir/configure" --help=recursive
2209    else
2210      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2211    fi || ac_status=$?
2212    cd "$ac_pwd" || { ac_status=$?; break; }
2213  done
2214fi
2215
2216test -n "$ac_init_help" && exit $ac_status
2217if $ac_init_version; then
2218  cat <<\_ACEOF
2219ImageMagick configure 7.0.11-8
2220generated by GNU Autoconf 2.69
2221
2222Copyright (C) 2012 Free Software Foundation, Inc.
2223This configure script is free software; the Free Software Foundation
2224gives unlimited permission to copy, distribute and modify it.
2225_ACEOF
2226  exit
2227fi
2228
2229## ------------------------ ##
2230## Autoconf initialization. ##
2231## ------------------------ ##
2232
2233# ac_fn_c_try_compile LINENO
2234# --------------------------
2235# Try to compile conftest.$ac_ext, and return whether this succeeded.
2236ac_fn_c_try_compile ()
2237{
2238  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239  rm -f conftest.$ac_objext
2240  if { { ac_try="$ac_compile"
2241case "(($ac_try" in
2242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243  *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247  (eval "$ac_compile") 2>conftest.err
2248  ac_status=$?
2249  if test -s conftest.err; then
2250    grep -v '^ *+' conftest.err >conftest.er1
2251    cat conftest.er1 >&5
2252    mv -f conftest.er1 conftest.err
2253  fi
2254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255  test $ac_status = 0; } && {
2256	 test -z "$ac_c_werror_flag" ||
2257	 test ! -s conftest.err
2258       } && test -s conftest.$ac_objext; then :
2259  ac_retval=0
2260else
2261  $as_echo "$as_me: failed program was:" >&5
2262sed 's/^/| /' conftest.$ac_ext >&5
2263
2264	ac_retval=1
2265fi
2266  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267  as_fn_set_status $ac_retval
2268
2269} # ac_fn_c_try_compile
2270
2271# ac_fn_c_try_cpp LINENO
2272# ----------------------
2273# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2274ac_fn_c_try_cpp ()
2275{
2276  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277  if { { ac_try="$ac_cpp conftest.$ac_ext"
2278case "(($ac_try" in
2279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280  *) ac_try_echo=$ac_try;;
2281esac
2282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283$as_echo "$ac_try_echo"; } >&5
2284  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2285  ac_status=$?
2286  if test -s conftest.err; then
2287    grep -v '^ *+' conftest.err >conftest.er1
2288    cat conftest.er1 >&5
2289    mv -f conftest.er1 conftest.err
2290  fi
2291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292  test $ac_status = 0; } > conftest.i && {
2293	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2294	 test ! -s conftest.err
2295       }; then :
2296  ac_retval=0
2297else
2298  $as_echo "$as_me: failed program was:" >&5
2299sed 's/^/| /' conftest.$ac_ext >&5
2300
2301    ac_retval=1
2302fi
2303  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304  as_fn_set_status $ac_retval
2305
2306} # ac_fn_c_try_cpp
2307
2308# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2309# -------------------------------------------------------
2310# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2311# the include files in INCLUDES and setting the cache variable VAR
2312# accordingly.
2313ac_fn_c_check_header_mongrel ()
2314{
2315  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316  if eval \${$3+:} false; then :
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318$as_echo_n "checking for $2... " >&6; }
2319if eval \${$3+:} false; then :
2320  $as_echo_n "(cached) " >&6
2321fi
2322eval ac_res=\$$3
2323	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324$as_echo "$ac_res" >&6; }
2325else
2326  # Is the header compilable?
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2328$as_echo_n "checking $2 usability... " >&6; }
2329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330/* end confdefs.h.  */
2331$4
2332#include <$2>
2333_ACEOF
2334if ac_fn_c_try_compile "$LINENO"; then :
2335  ac_header_compiler=yes
2336else
2337  ac_header_compiler=no
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2341$as_echo "$ac_header_compiler" >&6; }
2342
2343# Is the header present?
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2345$as_echo_n "checking $2 presence... " >&6; }
2346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h.  */
2348#include <$2>
2349_ACEOF
2350if ac_fn_c_try_cpp "$LINENO"; then :
2351  ac_header_preproc=yes
2352else
2353  ac_header_preproc=no
2354fi
2355rm -f conftest.err conftest.i conftest.$ac_ext
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2357$as_echo "$ac_header_preproc" >&6; }
2358
2359# So?  What about this header?
2360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2361  yes:no: )
2362    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2363$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2364    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2365$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366    ;;
2367  no:yes:* )
2368    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2369$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2370    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2371$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2372    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2373$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2375$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2377$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2378( $as_echo "## ---------------------------------------------------------------- ##
2379## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
2380## ---------------------------------------------------------------- ##"
2381     ) | sed "s/^/$as_me: WARNING:     /" >&2
2382    ;;
2383esac
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385$as_echo_n "checking for $2... " >&6; }
2386if eval \${$3+:} false; then :
2387  $as_echo_n "(cached) " >&6
2388else
2389  eval "$3=\$ac_header_compiler"
2390fi
2391eval ac_res=\$$3
2392	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393$as_echo "$ac_res" >&6; }
2394fi
2395  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2396
2397} # ac_fn_c_check_header_mongrel
2398
2399# ac_fn_c_try_run LINENO
2400# ----------------------
2401# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2402# that executables *can* be run.
2403ac_fn_c_try_run ()
2404{
2405  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406  if { { ac_try="$ac_link"
2407case "(($ac_try" in
2408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409  *) ac_try_echo=$ac_try;;
2410esac
2411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412$as_echo "$ac_try_echo"; } >&5
2413  (eval "$ac_link") 2>&5
2414  ac_status=$?
2415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2417  { { case "(($ac_try" in
2418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419  *) ac_try_echo=$ac_try;;
2420esac
2421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422$as_echo "$ac_try_echo"; } >&5
2423  (eval "$ac_try") 2>&5
2424  ac_status=$?
2425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426  test $ac_status = 0; }; }; then :
2427  ac_retval=0
2428else
2429  $as_echo "$as_me: program exited with status $ac_status" >&5
2430       $as_echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433       ac_retval=$ac_status
2434fi
2435  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2436  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437  as_fn_set_status $ac_retval
2438
2439} # ac_fn_c_try_run
2440
2441# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2442# -------------------------------------------------------
2443# Tests whether HEADER exists and can be compiled using the include files in
2444# INCLUDES, setting the cache variable VAR accordingly.
2445ac_fn_c_check_header_compile ()
2446{
2447  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449$as_echo_n "checking for $2... " >&6; }
2450if eval \${$3+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454/* end confdefs.h.  */
2455$4
2456#include <$2>
2457_ACEOF
2458if ac_fn_c_try_compile "$LINENO"; then :
2459  eval "$3=yes"
2460else
2461  eval "$3=no"
2462fi
2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464fi
2465eval ac_res=\$$3
2466	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467$as_echo "$ac_res" >&6; }
2468  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469
2470} # ac_fn_c_check_header_compile
2471
2472# ac_fn_c_try_link LINENO
2473# -----------------------
2474# Try to link conftest.$ac_ext, and return whether this succeeded.
2475ac_fn_c_try_link ()
2476{
2477  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478  rm -f conftest.$ac_objext conftest$ac_exeext
2479  if { { ac_try="$ac_link"
2480case "(($ac_try" in
2481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482  *) ac_try_echo=$ac_try;;
2483esac
2484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485$as_echo "$ac_try_echo"; } >&5
2486  (eval "$ac_link") 2>conftest.err
2487  ac_status=$?
2488  if test -s conftest.err; then
2489    grep -v '^ *+' conftest.err >conftest.er1
2490    cat conftest.er1 >&5
2491    mv -f conftest.er1 conftest.err
2492  fi
2493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494  test $ac_status = 0; } && {
2495	 test -z "$ac_c_werror_flag" ||
2496	 test ! -s conftest.err
2497       } && test -s conftest$ac_exeext && {
2498	 test "$cross_compiling" = yes ||
2499	 test -x conftest$ac_exeext
2500       }; then :
2501  ac_retval=0
2502else
2503  $as_echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506	ac_retval=1
2507fi
2508  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510  # interfere with the next link command; also delete a directory that is
2511  # left behind by Apple's compiler.  We do this before executing the actions.
2512  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2513  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514  as_fn_set_status $ac_retval
2515
2516} # ac_fn_c_try_link
2517
2518# ac_fn_c_check_func LINENO FUNC VAR
2519# ----------------------------------
2520# Tests whether FUNC exists, setting the cache variable VAR accordingly
2521ac_fn_c_check_func ()
2522{
2523  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525$as_echo_n "checking for $2... " >&6; }
2526if eval \${$3+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530/* end confdefs.h.  */
2531/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2532   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2533#define $2 innocuous_$2
2534
2535/* System header to define __stub macros and hopefully few prototypes,
2536    which can conflict with char $2 (); below.
2537    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2538    <limits.h> exists even on freestanding compilers.  */
2539
2540#ifdef __STDC__
2541# include <limits.h>
2542#else
2543# include <assert.h>
2544#endif
2545
2546#undef $2
2547
2548/* Override any GCC internal prototype to avoid an error.
2549   Use char because int might match the return type of a GCC
2550   builtin and then its argument prototype would still apply.  */
2551#ifdef __cplusplus
2552extern "C"
2553#endif
2554char $2 ();
2555/* The GNU C library defines this for functions which it implements
2556    to always fail with ENOSYS.  Some functions are actually named
2557    something starting with __ and the normal name is an alias.  */
2558#if defined __stub_$2 || defined __stub___$2
2559choke me
2560#endif
2561
2562int
2563main ()
2564{
2565return $2 ();
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570if ac_fn_c_try_link "$LINENO"; then :
2571  eval "$3=yes"
2572else
2573  eval "$3=no"
2574fi
2575rm -f core conftest.err conftest.$ac_objext \
2576    conftest$ac_exeext conftest.$ac_ext
2577fi
2578eval ac_res=\$$3
2579	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580$as_echo "$ac_res" >&6; }
2581  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2582
2583} # ac_fn_c_check_func
2584
2585# ac_fn_cxx_try_compile LINENO
2586# ----------------------------
2587# Try to compile conftest.$ac_ext, and return whether this succeeded.
2588ac_fn_cxx_try_compile ()
2589{
2590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591  rm -f conftest.$ac_objext
2592  if { { ac_try="$ac_compile"
2593case "(($ac_try" in
2594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595  *) ac_try_echo=$ac_try;;
2596esac
2597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598$as_echo "$ac_try_echo"; } >&5
2599  (eval "$ac_compile") 2>conftest.err
2600  ac_status=$?
2601  if test -s conftest.err; then
2602    grep -v '^ *+' conftest.err >conftest.er1
2603    cat conftest.er1 >&5
2604    mv -f conftest.er1 conftest.err
2605  fi
2606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2607  test $ac_status = 0; } && {
2608	 test -z "$ac_cxx_werror_flag" ||
2609	 test ! -s conftest.err
2610       } && test -s conftest.$ac_objext; then :
2611  ac_retval=0
2612else
2613  $as_echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616	ac_retval=1
2617fi
2618  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619  as_fn_set_status $ac_retval
2620
2621} # ac_fn_cxx_try_compile
2622
2623# ac_fn_cxx_try_cpp LINENO
2624# ------------------------
2625# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2626ac_fn_cxx_try_cpp ()
2627{
2628  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629  if { { ac_try="$ac_cpp conftest.$ac_ext"
2630case "(($ac_try" in
2631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632  *) ac_try_echo=$ac_try;;
2633esac
2634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2635$as_echo "$ac_try_echo"; } >&5
2636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2637  ac_status=$?
2638  if test -s conftest.err; then
2639    grep -v '^ *+' conftest.err >conftest.er1
2640    cat conftest.er1 >&5
2641    mv -f conftest.er1 conftest.err
2642  fi
2643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644  test $ac_status = 0; } > conftest.i && {
2645	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2646	 test ! -s conftest.err
2647       }; then :
2648  ac_retval=0
2649else
2650  $as_echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653    ac_retval=1
2654fi
2655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656  as_fn_set_status $ac_retval
2657
2658} # ac_fn_cxx_try_cpp
2659
2660# ac_fn_cxx_try_link LINENO
2661# -------------------------
2662# Try to link conftest.$ac_ext, and return whether this succeeded.
2663ac_fn_cxx_try_link ()
2664{
2665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666  rm -f conftest.$ac_objext conftest$ac_exeext
2667  if { { ac_try="$ac_link"
2668case "(($ac_try" in
2669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670  *) ac_try_echo=$ac_try;;
2671esac
2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673$as_echo "$ac_try_echo"; } >&5
2674  (eval "$ac_link") 2>conftest.err
2675  ac_status=$?
2676  if test -s conftest.err; then
2677    grep -v '^ *+' conftest.err >conftest.er1
2678    cat conftest.er1 >&5
2679    mv -f conftest.er1 conftest.err
2680  fi
2681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682  test $ac_status = 0; } && {
2683	 test -z "$ac_cxx_werror_flag" ||
2684	 test ! -s conftest.err
2685       } && test -s conftest$ac_exeext && {
2686	 test "$cross_compiling" = yes ||
2687	 test -x conftest$ac_exeext
2688       }; then :
2689  ac_retval=0
2690else
2691  $as_echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694	ac_retval=1
2695fi
2696  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2697  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2698  # interfere with the next link command; also delete a directory that is
2699  # left behind by Apple's compiler.  We do this before executing the actions.
2700  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702  as_fn_set_status $ac_retval
2703
2704} # ac_fn_cxx_try_link
2705
2706# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2707# -------------------------------------------
2708# Tests whether TYPE exists after having included INCLUDES, setting cache
2709# variable VAR accordingly.
2710ac_fn_c_check_type ()
2711{
2712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714$as_echo_n "checking for $2... " >&6; }
2715if eval \${$3+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  eval "$3=no"
2719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h.  */
2721$4
2722int
2723main ()
2724{
2725if (sizeof ($2))
2726	 return 0;
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733/* end confdefs.h.  */
2734$4
2735int
2736main ()
2737{
2738if (sizeof (($2)))
2739	    return 0;
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744if ac_fn_c_try_compile "$LINENO"; then :
2745
2746else
2747  eval "$3=yes"
2748fi
2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750fi
2751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752fi
2753eval ac_res=\$$3
2754	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2755$as_echo "$ac_res" >&6; }
2756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2757
2758} # ac_fn_c_check_type
2759
2760# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2761# ----------------------------------------------------
2762# Tries to find if the field MEMBER exists in type AGGR, after including
2763# INCLUDES, setting cache variable VAR accordingly.
2764ac_fn_c_check_member ()
2765{
2766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2768$as_echo_n "checking for $2.$3... " >&6; }
2769if eval \${$4+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773/* end confdefs.h.  */
2774$5
2775int
2776main ()
2777{
2778static $2 ac_aggr;
2779if (ac_aggr.$3)
2780return 0;
2781  ;
2782  return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_compile "$LINENO"; then :
2786  eval "$4=yes"
2787else
2788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789/* end confdefs.h.  */
2790$5
2791int
2792main ()
2793{
2794static $2 ac_aggr;
2795if (sizeof ac_aggr.$3)
2796return 0;
2797  ;
2798  return 0;
2799}
2800_ACEOF
2801if ac_fn_c_try_compile "$LINENO"; then :
2802  eval "$4=yes"
2803else
2804  eval "$4=no"
2805fi
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807fi
2808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809fi
2810eval ac_res=\$$4
2811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812$as_echo "$ac_res" >&6; }
2813  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2814
2815} # ac_fn_c_check_member
2816
2817# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2818# ---------------------------------------------
2819# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2820# accordingly.
2821ac_fn_c_check_decl ()
2822{
2823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824  as_decl_name=`echo $2|sed 's/ *(.*//'`
2825  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2827$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2828if eval \${$3+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h.  */
2833$4
2834int
2835main ()
2836{
2837#ifndef $as_decl_name
2838#ifdef __cplusplus
2839  (void) $as_decl_use;
2840#else
2841  (void) $as_decl_name;
2842#endif
2843#endif
2844
2845  ;
2846  return 0;
2847}
2848_ACEOF
2849if ac_fn_c_try_compile "$LINENO"; then :
2850  eval "$3=yes"
2851else
2852  eval "$3=no"
2853fi
2854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855fi
2856eval ac_res=\$$3
2857	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2858$as_echo "$ac_res" >&6; }
2859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2860
2861} # ac_fn_c_check_decl
2862
2863# ac_fn_c_find_intX_t LINENO BITS VAR
2864# -----------------------------------
2865# Finds a signed integer type with width BITS, setting cache variable VAR
2866# accordingly.
2867ac_fn_c_find_intX_t ()
2868{
2869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2871$as_echo_n "checking for int$2_t... " >&6; }
2872if eval \${$3+:} false; then :
2873  $as_echo_n "(cached) " >&6
2874else
2875  eval "$3=no"
2876     # Order is important - never check a type that is potentially smaller
2877     # than half of the expected target width.
2878     for ac_type in int$2_t 'int' 'long int' \
2879	 'long long int' 'short int' 'signed char'; do
2880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881/* end confdefs.h.  */
2882$ac_includes_default
2883	     enum { N = $2 / 2 - 1 };
2884int
2885main ()
2886{
2887static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2888test_array [0] = 0;
2889return test_array [0];
2890
2891  ;
2892  return 0;
2893}
2894_ACEOF
2895if ac_fn_c_try_compile "$LINENO"; then :
2896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898$ac_includes_default
2899	        enum { N = $2 / 2 - 1 };
2900int
2901main ()
2902{
2903static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2904		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2905test_array [0] = 0;
2906return test_array [0];
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912if ac_fn_c_try_compile "$LINENO"; then :
2913
2914else
2915  case $ac_type in #(
2916  int$2_t) :
2917    eval "$3=yes" ;; #(
2918  *) :
2919    eval "$3=\$ac_type" ;;
2920esac
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923fi
2924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925       if eval test \"x\$"$3"\" = x"no"; then :
2926
2927else
2928  break
2929fi
2930     done
2931fi
2932eval ac_res=\$$3
2933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2934$as_echo "$ac_res" >&6; }
2935  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2936
2937} # ac_fn_c_find_intX_t
2938
2939# ac_fn_c_find_uintX_t LINENO BITS VAR
2940# ------------------------------------
2941# Finds an unsigned integer type with width BITS, setting cache variable VAR
2942# accordingly.
2943ac_fn_c_find_uintX_t ()
2944{
2945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2947$as_echo_n "checking for uint$2_t... " >&6; }
2948if eval \${$3+:} false; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  eval "$3=no"
2952     # Order is important - never check a type that is potentially smaller
2953     # than half of the expected target width.
2954     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2955	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h.  */
2958$ac_includes_default
2959int
2960main ()
2961{
2962static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2963test_array [0] = 0;
2964return test_array [0];
2965
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971  case $ac_type in #(
2972  uint$2_t) :
2973    eval "$3=yes" ;; #(
2974  *) :
2975    eval "$3=\$ac_type" ;;
2976esac
2977fi
2978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979       if eval test \"x\$"$3"\" = x"no"; then :
2980
2981else
2982  break
2983fi
2984     done
2985fi
2986eval ac_res=\$$3
2987	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2988$as_echo "$ac_res" >&6; }
2989  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2990
2991} # ac_fn_c_find_uintX_t
2992
2993# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2994# --------------------------------------------
2995# Tries to find the compile-time value of EXPR in a program that includes
2996# INCLUDES, setting VAR accordingly. Returns whether the value could be
2997# computed
2998ac_fn_c_compute_int ()
2999{
3000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3001  if test "$cross_compiling" = yes; then
3002    # Depending upon the size, compute the lo and hi bounds.
3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h.  */
3005$4
3006int
3007main ()
3008{
3009static int test_array [1 - 2 * !(($2) >= 0)];
3010test_array [0] = 0;
3011return test_array [0];
3012
3013  ;
3014  return 0;
3015}
3016_ACEOF
3017if ac_fn_c_try_compile "$LINENO"; then :
3018  ac_lo=0 ac_mid=0
3019  while :; do
3020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021/* end confdefs.h.  */
3022$4
3023int
3024main ()
3025{
3026static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3027test_array [0] = 0;
3028return test_array [0];
3029
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034if ac_fn_c_try_compile "$LINENO"; then :
3035  ac_hi=$ac_mid; break
3036else
3037  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3038			if test $ac_lo -le $ac_mid; then
3039			  ac_lo= ac_hi=
3040			  break
3041			fi
3042			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045  done
3046else
3047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048/* end confdefs.h.  */
3049$4
3050int
3051main ()
3052{
3053static int test_array [1 - 2 * !(($2) < 0)];
3054test_array [0] = 0;
3055return test_array [0];
3056
3057  ;
3058  return 0;
3059}
3060_ACEOF
3061if ac_fn_c_try_compile "$LINENO"; then :
3062  ac_hi=-1 ac_mid=-1
3063  while :; do
3064    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h.  */
3066$4
3067int
3068main ()
3069{
3070static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3071test_array [0] = 0;
3072return test_array [0];
3073
3074  ;
3075  return 0;
3076}
3077_ACEOF
3078if ac_fn_c_try_compile "$LINENO"; then :
3079  ac_lo=$ac_mid; break
3080else
3081  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3082			if test $ac_mid -le $ac_hi; then
3083			  ac_lo= ac_hi=
3084			  break
3085			fi
3086			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3087fi
3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089  done
3090else
3091  ac_lo= ac_hi=
3092fi
3093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094fi
3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096# Binary search between lo and hi bounds.
3097while test "x$ac_lo" != "x$ac_hi"; do
3098  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h.  */
3101$4
3102int
3103main ()
3104{
3105static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3106test_array [0] = 0;
3107return test_array [0];
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113if ac_fn_c_try_compile "$LINENO"; then :
3114  ac_hi=$ac_mid
3115else
3116  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3117fi
3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119done
3120case $ac_lo in #((
3121?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3122'') ac_retval=1 ;;
3123esac
3124  else
3125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127$4
3128static long int longval () { return $2; }
3129static unsigned long int ulongval () { return $2; }
3130#include <stdio.h>
3131#include <stdlib.h>
3132int
3133main ()
3134{
3135
3136  FILE *f = fopen ("conftest.val", "w");
3137  if (! f)
3138    return 1;
3139  if (($2) < 0)
3140    {
3141      long int i = longval ();
3142      if (i != ($2))
3143	return 1;
3144      fprintf (f, "%ld", i);
3145    }
3146  else
3147    {
3148      unsigned long int i = ulongval ();
3149      if (i != ($2))
3150	return 1;
3151      fprintf (f, "%lu", i);
3152    }
3153  /* Do not output a trailing newline, as this causes \r\n confusion
3154     on some platforms.  */
3155  return ferror (f) || fclose (f) != 0;
3156
3157  ;
3158  return 0;
3159}
3160_ACEOF
3161if ac_fn_c_try_run "$LINENO"; then :
3162  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3163else
3164  ac_retval=1
3165fi
3166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3167  conftest.$ac_objext conftest.beam conftest.$ac_ext
3168rm -f conftest.val
3169
3170  fi
3171  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3172  as_fn_set_status $ac_retval
3173
3174} # ac_fn_c_compute_int
3175
3176# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3177# ---------------------------------------------------------
3178# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3179# the include files in INCLUDES and setting the cache variable VAR
3180# accordingly.
3181ac_fn_cxx_check_header_mongrel ()
3182{
3183  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3184  if eval \${$3+:} false; then :
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3186$as_echo_n "checking for $2... " >&6; }
3187if eval \${$3+:} false; then :
3188  $as_echo_n "(cached) " >&6
3189fi
3190eval ac_res=\$$3
3191	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3192$as_echo "$ac_res" >&6; }
3193else
3194  # Is the header compilable?
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3196$as_echo_n "checking $2 usability... " >&6; }
3197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198/* end confdefs.h.  */
3199$4
3200#include <$2>
3201_ACEOF
3202if ac_fn_cxx_try_compile "$LINENO"; then :
3203  ac_header_compiler=yes
3204else
3205  ac_header_compiler=no
3206fi
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3209$as_echo "$ac_header_compiler" >&6; }
3210
3211# Is the header present?
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3213$as_echo_n "checking $2 presence... " >&6; }
3214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215/* end confdefs.h.  */
3216#include <$2>
3217_ACEOF
3218if ac_fn_cxx_try_cpp "$LINENO"; then :
3219  ac_header_preproc=yes
3220else
3221  ac_header_preproc=no
3222fi
3223rm -f conftest.err conftest.i conftest.$ac_ext
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3225$as_echo "$ac_header_preproc" >&6; }
3226
3227# So?  What about this header?
3228case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3229  yes:no: )
3230    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3231$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3232    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3233$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3234    ;;
3235  no:yes:* )
3236    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3237$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3238    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3239$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3241$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3242    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3243$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3244    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3245$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3246( $as_echo "## ---------------------------------------------------------------- ##
3247## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
3248## ---------------------------------------------------------------- ##"
3249     ) | sed "s/^/$as_me: WARNING:     /" >&2
3250    ;;
3251esac
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3253$as_echo_n "checking for $2... " >&6; }
3254if eval \${$3+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  eval "$3=\$ac_header_compiler"
3258fi
3259eval ac_res=\$$3
3260	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3261$as_echo "$ac_res" >&6; }
3262fi
3263  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3264
3265} # ac_fn_cxx_check_header_mongrel
3266cat >config.log <<_ACEOF
3267This file contains any messages produced by compilers while
3268running configure, to aid debugging if configure makes a mistake.
3269
3270It was created by ImageMagick $as_me 7.0.11-8, which was
3271generated by GNU Autoconf 2.69.  Invocation command line was
3272
3273  $ $0 $@
3274
3275_ACEOF
3276exec 5>>config.log
3277{
3278cat <<_ASUNAME
3279## --------- ##
3280## Platform. ##
3281## --------- ##
3282
3283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3284uname -m = `(uname -m) 2>/dev/null || echo unknown`
3285uname -r = `(uname -r) 2>/dev/null || echo unknown`
3286uname -s = `(uname -s) 2>/dev/null || echo unknown`
3287uname -v = `(uname -v) 2>/dev/null || echo unknown`
3288
3289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3290/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3291
3292/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3293/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3295/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3296/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3297/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3298/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3299
3300_ASUNAME
3301
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307    $as_echo "PATH: $as_dir"
3308  done
3309IFS=$as_save_IFS
3310
3311} >&5
3312
3313cat >&5 <<_ACEOF
3314
3315
3316## ----------- ##
3317## Core tests. ##
3318## ----------- ##
3319
3320_ACEOF
3321
3322
3323# Keep a trace of the command line.
3324# Strip out --no-create and --no-recursion so they do not pile up.
3325# Strip out --silent because we don't want to record it for future runs.
3326# Also quote any args containing shell meta-characters.
3327# Make two passes to allow for proper duplicate-argument suppression.
3328ac_configure_args=
3329ac_configure_args0=
3330ac_configure_args1=
3331ac_must_keep_next=false
3332for ac_pass in 1 2
3333do
3334  for ac_arg
3335  do
3336    case $ac_arg in
3337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3339    | -silent | --silent | --silen | --sile | --sil)
3340      continue ;;
3341    *\'*)
3342      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3343    esac
3344    case $ac_pass in
3345    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3346    2)
3347      as_fn_append ac_configure_args1 " '$ac_arg'"
3348      if test $ac_must_keep_next = true; then
3349	ac_must_keep_next=false # Got value, back to normal.
3350      else
3351	case $ac_arg in
3352	  *=* | --config-cache | -C | -disable-* | --disable-* \
3353	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3354	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3355	  | -with-* | --with-* | -without-* | --without-* | --x)
3356	    case "$ac_configure_args0 " in
3357	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3358	    esac
3359	    ;;
3360	  -* ) ac_must_keep_next=true ;;
3361	esac
3362      fi
3363      as_fn_append ac_configure_args " '$ac_arg'"
3364      ;;
3365    esac
3366  done
3367done
3368{ ac_configure_args0=; unset ac_configure_args0;}
3369{ ac_configure_args1=; unset ac_configure_args1;}
3370
3371# When interrupted or exit'd, cleanup temporary files, and complete
3372# config.log.  We remove comments because anyway the quotes in there
3373# would cause problems or look ugly.
3374# WARNING: Use '\'' to represent an apostrophe within the trap.
3375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3376trap 'exit_status=$?
3377  # Save into config.log some information that might help in debugging.
3378  {
3379    echo
3380
3381    $as_echo "## ---------------- ##
3382## Cache variables. ##
3383## ---------------- ##"
3384    echo
3385    # The following way of writing the cache mishandles newlines in values,
3386(
3387  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3388    eval ac_val=\$$ac_var
3389    case $ac_val in #(
3390    *${as_nl}*)
3391      case $ac_var in #(
3392      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3394      esac
3395      case $ac_var in #(
3396      _ | IFS | as_nl) ;; #(
3397      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3398      *) { eval $ac_var=; unset $ac_var;} ;;
3399      esac ;;
3400    esac
3401  done
3402  (set) 2>&1 |
3403    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3404    *${as_nl}ac_space=\ *)
3405      sed -n \
3406	"s/'\''/'\''\\\\'\'''\''/g;
3407	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3408      ;; #(
3409    *)
3410      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3411      ;;
3412    esac |
3413    sort
3414)
3415    echo
3416
3417    $as_echo "## ----------------- ##
3418## Output variables. ##
3419## ----------------- ##"
3420    echo
3421    for ac_var in $ac_subst_vars
3422    do
3423      eval ac_val=\$$ac_var
3424      case $ac_val in
3425      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3426      esac
3427      $as_echo "$ac_var='\''$ac_val'\''"
3428    done | sort
3429    echo
3430
3431    if test -n "$ac_subst_files"; then
3432      $as_echo "## ------------------- ##
3433## File substitutions. ##
3434## ------------------- ##"
3435      echo
3436      for ac_var in $ac_subst_files
3437      do
3438	eval ac_val=\$$ac_var
3439	case $ac_val in
3440	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3441	esac
3442	$as_echo "$ac_var='\''$ac_val'\''"
3443      done | sort
3444      echo
3445    fi
3446
3447    if test -s confdefs.h; then
3448      $as_echo "## ----------- ##
3449## confdefs.h. ##
3450## ----------- ##"
3451      echo
3452      cat confdefs.h
3453      echo
3454    fi
3455    test "$ac_signal" != 0 &&
3456      $as_echo "$as_me: caught signal $ac_signal"
3457    $as_echo "$as_me: exit $exit_status"
3458  } >&5
3459  rm -f core *.core core.conftest.* &&
3460    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3461    exit $exit_status
3462' 0
3463for ac_signal in 1 2 13 15; do
3464  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3465done
3466ac_signal=0
3467
3468# confdefs.h avoids OS command line length limits that DEFS can exceed.
3469rm -f -r conftest* confdefs.h
3470
3471$as_echo "/* confdefs.h */" > confdefs.h
3472
3473# Predefined preprocessor variables.
3474
3475cat >>confdefs.h <<_ACEOF
3476#define PACKAGE_NAME "$PACKAGE_NAME"
3477_ACEOF
3478
3479cat >>confdefs.h <<_ACEOF
3480#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3481_ACEOF
3482
3483cat >>confdefs.h <<_ACEOF
3484#define PACKAGE_VERSION "$PACKAGE_VERSION"
3485_ACEOF
3486
3487cat >>confdefs.h <<_ACEOF
3488#define PACKAGE_STRING "$PACKAGE_STRING"
3489_ACEOF
3490
3491cat >>confdefs.h <<_ACEOF
3492#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3493_ACEOF
3494
3495cat >>confdefs.h <<_ACEOF
3496#define PACKAGE_URL "$PACKAGE_URL"
3497_ACEOF
3498
3499
3500# Let the site file select an alternate cache file if it wants to.
3501# Prefer an explicitly selected file to automatically selected ones.
3502ac_site_file1=NONE
3503ac_site_file2=NONE
3504if test -n "$CONFIG_SITE"; then
3505  # We do not want a PATH search for config.site.
3506  case $CONFIG_SITE in #((
3507    -*)  ac_site_file1=./$CONFIG_SITE;;
3508    */*) ac_site_file1=$CONFIG_SITE;;
3509    *)   ac_site_file1=./$CONFIG_SITE;;
3510  esac
3511elif test "x$prefix" != xNONE; then
3512  ac_site_file1=$prefix/share/config.site
3513  ac_site_file2=$prefix/etc/config.site
3514else
3515  ac_site_file1=$ac_default_prefix/share/config.site
3516  ac_site_file2=$ac_default_prefix/etc/config.site
3517fi
3518for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3519do
3520  test "x$ac_site_file" = xNONE && continue
3521  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3522    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3523$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3524    sed 's/^/| /' "$ac_site_file" >&5
3525    . "$ac_site_file" \
3526      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528as_fn_error $? "failed to load site script $ac_site_file
3529See \`config.log' for more details" "$LINENO" 5; }
3530  fi
3531done
3532
3533if test -r "$cache_file"; then
3534  # Some versions of bash will fail to source /dev/null (special files
3535  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3536  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3537    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3538$as_echo "$as_me: loading cache $cache_file" >&6;}
3539    case $cache_file in
3540      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3541      *)                      . "./$cache_file";;
3542    esac
3543  fi
3544else
3545  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3546$as_echo "$as_me: creating cache $cache_file" >&6;}
3547  >$cache_file
3548fi
3549
3550as_fn_append ac_header_list " stdlib.h"
3551as_fn_append ac_header_list " unistd.h"
3552as_fn_append ac_header_list " sys/param.h"
3553# Check that the precious variables saved in the cache have kept the same
3554# value.
3555ac_cache_corrupted=false
3556for ac_var in $ac_precious_vars; do
3557  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3558  eval ac_new_set=\$ac_env_${ac_var}_set
3559  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3560  eval ac_new_val=\$ac_env_${ac_var}_value
3561  case $ac_old_set,$ac_new_set in
3562    set,)
3563      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3564$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3565      ac_cache_corrupted=: ;;
3566    ,set)
3567      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3568$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3569      ac_cache_corrupted=: ;;
3570    ,);;
3571    *)
3572      if test "x$ac_old_val" != "x$ac_new_val"; then
3573	# differences in whitespace do not lead to failure.
3574	ac_old_val_w=`echo x $ac_old_val`
3575	ac_new_val_w=`echo x $ac_new_val`
3576	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3577	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3578$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3579	  ac_cache_corrupted=:
3580	else
3581	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3582$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3583	  eval $ac_var=\$ac_old_val
3584	fi
3585	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3586$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3587	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3588$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3589      fi;;
3590  esac
3591  # Pass precious variables to config.status.
3592  if test "$ac_new_set" = set; then
3593    case $ac_new_val in
3594    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3595    *) ac_arg=$ac_var=$ac_new_val ;;
3596    esac
3597    case " $ac_configure_args " in
3598      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3599      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3600    esac
3601  fi
3602done
3603if $ac_cache_corrupted; then
3604  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3607$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3608  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3609fi
3610## -------------------- ##
3611## Main body of script. ##
3612## -------------------- ##
3613
3614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621
3622
3623ac_aux_dir=
3624for ac_dir in config "$srcdir"/config; do
3625  if test -f "$ac_dir/install-sh"; then
3626    ac_aux_dir=$ac_dir
3627    ac_install_sh="$ac_aux_dir/install-sh -c"
3628    break
3629  elif test -f "$ac_dir/install.sh"; then
3630    ac_aux_dir=$ac_dir
3631    ac_install_sh="$ac_aux_dir/install.sh -c"
3632    break
3633  elif test -f "$ac_dir/shtool"; then
3634    ac_aux_dir=$ac_dir
3635    ac_install_sh="$ac_aux_dir/shtool install -c"
3636    break
3637  fi
3638done
3639if test -z "$ac_aux_dir"; then
3640  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3641fi
3642
3643# These three variables are undocumented and unsupported,
3644# and are intended to be withdrawn in a future Autoconf release.
3645# They can cause serious problems if a builder's source tree is in a directory
3646# whose full name contains unusual characters.
3647ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3648ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3649ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3650
3651
3652
3653
3654ac_config_headers="$ac_config_headers config/config.h"
3655
3656
3657ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3658
3659# Make sure we can run config.sub.
3660$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3661  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3662
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3664$as_echo_n "checking build system type... " >&6; }
3665if ${ac_cv_build+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_build_alias=$build_alias
3669test "x$ac_build_alias" = x &&
3670  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3671test "x$ac_build_alias" = x &&
3672  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3673ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3674  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3675
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3678$as_echo "$ac_cv_build" >&6; }
3679case $ac_cv_build in
3680*-*-*) ;;
3681*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3682esac
3683build=$ac_cv_build
3684ac_save_IFS=$IFS; IFS='-'
3685set x $ac_cv_build
3686shift
3687build_cpu=$1
3688build_vendor=$2
3689shift; shift
3690# Remember, the first character of IFS is used to create $*,
3691# except with old shells:
3692build_os=$*
3693IFS=$ac_save_IFS
3694case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3695
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3698$as_echo_n "checking host system type... " >&6; }
3699if ${ac_cv_host+:} false; then :
3700  $as_echo_n "(cached) " >&6
3701else
3702  if test "x$host_alias" = x; then
3703  ac_cv_host=$ac_cv_build
3704else
3705  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3706    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3707fi
3708
3709fi
3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3711$as_echo "$ac_cv_host" >&6; }
3712case $ac_cv_host in
3713*-*-*) ;;
3714*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3715esac
3716host=$ac_cv_host
3717ac_save_IFS=$IFS; IFS='-'
3718set x $ac_cv_host
3719shift
3720host_cpu=$1
3721host_vendor=$2
3722shift; shift
3723# Remember, the first character of IFS is used to create $*,
3724# except with old shells:
3725host_os=$*
3726IFS=$ac_save_IFS
3727case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3728
3729
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3731$as_echo_n "checking target system type... " >&6; }
3732if ${ac_cv_target+:} false; then :
3733  $as_echo_n "(cached) " >&6
3734else
3735  if test "x$target_alias" = x; then
3736  ac_cv_target=$ac_cv_host
3737else
3738  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3739    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3740fi
3741
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3744$as_echo "$ac_cv_target" >&6; }
3745case $ac_cv_target in
3746*-*-*) ;;
3747*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3748esac
3749target=$ac_cv_target
3750ac_save_IFS=$IFS; IFS='-'
3751set x $ac_cv_target
3752shift
3753target_cpu=$1
3754target_vendor=$2
3755shift; shift
3756# Remember, the first character of IFS is used to create $*,
3757# except with old shells:
3758target_os=$*
3759IFS=$ac_save_IFS
3760case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3761
3762
3763# The aliases save the names the user supplied, while $host etc.
3764# will get canonicalized.
3765test -n "$target_alias" &&
3766  test "$program_prefix$program_suffix$program_transform_name" = \
3767    NONENONEs,x,x, &&
3768  program_prefix=${target_alias}-
3769
3770
3771
3772am__api_version='1.16'
3773
3774# Find a good install program.  We prefer a C program (faster),
3775# so one script is as good as another.  But avoid the broken or
3776# incompatible versions:
3777# SysV /etc/install, /usr/sbin/install
3778# SunOS /usr/etc/install
3779# IRIX /sbin/install
3780# AIX /bin/install
3781# AmigaOS /C/install, which installs bootblocks on floppy discs
3782# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3783# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3784# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3785# OS/2's system install, which has a completely different semantic
3786# ./install, which can be erroneously created by make from ./install.sh.
3787# Reject install programs that cannot install multiple files.
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3789$as_echo_n "checking for a BSD-compatible install... " >&6; }
3790if test -z "$INSTALL"; then
3791if ${ac_cv_path_install+:} false; then :
3792  $as_echo_n "(cached) " >&6
3793else
3794  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799    # Account for people who put trailing slashes in PATH elements.
3800case $as_dir/ in #((
3801  ./ | .// | /[cC]/* | \
3802  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3803  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3804  /usr/ucb/* ) ;;
3805  *)
3806    # OSF1 and SCO ODT 3.0 have their own names for install.
3807    # Don't use installbsd from OSF since it installs stuff as root
3808    # by default.
3809    for ac_prog in ginstall scoinst install; do
3810      for ac_exec_ext in '' $ac_executable_extensions; do
3811	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3812	  if test $ac_prog = install &&
3813	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3814	    # AIX install.  It has an incompatible calling convention.
3815	    :
3816	  elif test $ac_prog = install &&
3817	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3818	    # program-specific install script used by HP pwplus--don't use.
3819	    :
3820	  else
3821	    rm -rf conftest.one conftest.two conftest.dir
3822	    echo one > conftest.one
3823	    echo two > conftest.two
3824	    mkdir conftest.dir
3825	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3826	      test -s conftest.one && test -s conftest.two &&
3827	      test -s conftest.dir/conftest.one &&
3828	      test -s conftest.dir/conftest.two
3829	    then
3830	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3831	      break 3
3832	    fi
3833	  fi
3834	fi
3835      done
3836    done
3837    ;;
3838esac
3839
3840  done
3841IFS=$as_save_IFS
3842
3843rm -rf conftest.one conftest.two conftest.dir
3844
3845fi
3846  if test "${ac_cv_path_install+set}" = set; then
3847    INSTALL=$ac_cv_path_install
3848  else
3849    # As a last resort, use the slow shell script.  Don't cache a
3850    # value for INSTALL within a source directory, because that will
3851    # break other packages using the cache if that directory is
3852    # removed, or if the value is a relative name.
3853    INSTALL=$ac_install_sh
3854  fi
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3857$as_echo "$INSTALL" >&6; }
3858
3859# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3860# It thinks the first close brace ends the variable substitution.
3861test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3862
3863test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3864
3865test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3866
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3868$as_echo_n "checking whether build environment is sane... " >&6; }
3869# Reject unsafe characters in $srcdir or the absolute working directory
3870# name.  Accept space and tab only in the latter.
3871am_lf='
3872'
3873case `pwd` in
3874  *[\\\"\#\$\&\'\`$am_lf]*)
3875    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3876esac
3877case $srcdir in
3878  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3879    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3880esac
3881
3882# Do 'set' in a subshell so we don't clobber the current shell's
3883# arguments.  Must try -L first in case configure is actually a
3884# symlink; some systems play weird games with the mod time of symlinks
3885# (eg FreeBSD returns the mod time of the symlink's containing
3886# directory).
3887if (
3888   am_has_slept=no
3889   for am_try in 1 2; do
3890     echo "timestamp, slept: $am_has_slept" > conftest.file
3891     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3892     if test "$*" = "X"; then
3893	# -L didn't work.
3894	set X `ls -t "$srcdir/configure" conftest.file`
3895     fi
3896     if test "$*" != "X $srcdir/configure conftest.file" \
3897	&& test "$*" != "X conftest.file $srcdir/configure"; then
3898
3899	# If neither matched, then we have a broken ls.  This can happen
3900	# if, for instance, CONFIG_SHELL is bash and it inherits a
3901	# broken ls alias from the environment.  This has actually
3902	# happened.  Such a system could not be considered "sane".
3903	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3904  alias in your environment" "$LINENO" 5
3905     fi
3906     if test "$2" = conftest.file || test $am_try -eq 2; then
3907       break
3908     fi
3909     # Just in case.
3910     sleep 1
3911     am_has_slept=yes
3912   done
3913   test "$2" = conftest.file
3914   )
3915then
3916   # Ok.
3917   :
3918else
3919   as_fn_error $? "newly created file is older than distributed files!
3920Check your system clock" "$LINENO" 5
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923$as_echo "yes" >&6; }
3924# If we didn't sleep, we still need to ensure time stamps of config.status and
3925# generated files are strictly newer.
3926am_sleep_pid=
3927if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3928  ( sleep 1 ) &
3929  am_sleep_pid=$!
3930fi
3931
3932rm -f conftest.file
3933
3934test "$program_prefix" != NONE &&
3935  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3936# Use a double $ so make ignores it.
3937test "$program_suffix" != NONE &&
3938  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3939# Double any \ or $.
3940# By default was `s,x,x', remove it if useless.
3941ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3942program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3943
3944# Expand $ac_aux_dir to an absolute path.
3945am_aux_dir=`cd "$ac_aux_dir" && pwd`
3946
3947if test x"${MISSING+set}" != xset; then
3948  case $am_aux_dir in
3949  *\ * | *\	*)
3950    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3951  *)
3952    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3953  esac
3954fi
3955# Use eval to expand $SHELL
3956if eval "$MISSING --is-lightweight"; then
3957  am_missing_run="$MISSING "
3958else
3959  am_missing_run=
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3961$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3962fi
3963
3964if test x"${install_sh+set}" != xset; then
3965  case $am_aux_dir in
3966  *\ * | *\	*)
3967    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3968  *)
3969    install_sh="\${SHELL} $am_aux_dir/install-sh"
3970  esac
3971fi
3972
3973# Installed binaries are usually stripped using 'strip' when the user
3974# run "make install-strip".  However 'strip' might not be the right
3975# tool to use in cross-compilation environments, therefore Automake
3976# will honor the 'STRIP' environment variable to overrule this program.
3977if test "$cross_compiling" != no; then
3978  if test -n "$ac_tool_prefix"; then
3979  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3980set dummy ${ac_tool_prefix}strip; ac_word=$2
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982$as_echo_n "checking for $ac_word... " >&6; }
3983if ${ac_cv_prog_STRIP+:} false; then :
3984  $as_echo_n "(cached) " >&6
3985else
3986  if test -n "$STRIP"; then
3987  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994    for ac_exec_ext in '' $ac_executable_extensions; do
3995  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998    break 2
3999  fi
4000done
4001  done
4002IFS=$as_save_IFS
4003
4004fi
4005fi
4006STRIP=$ac_cv_prog_STRIP
4007if test -n "$STRIP"; then
4008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4009$as_echo "$STRIP" >&6; }
4010else
4011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013fi
4014
4015
4016fi
4017if test -z "$ac_cv_prog_STRIP"; then
4018  ac_ct_STRIP=$STRIP
4019  # Extract the first word of "strip", so it can be a program name with args.
4020set dummy strip; ac_word=$2
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022$as_echo_n "checking for $ac_word... " >&6; }
4023if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4024  $as_echo_n "(cached) " >&6
4025else
4026  if test -n "$ac_ct_STRIP"; then
4027  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4028else
4029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030for as_dir in $PATH
4031do
4032  IFS=$as_save_IFS
4033  test -z "$as_dir" && as_dir=.
4034    for ac_exec_ext in '' $ac_executable_extensions; do
4035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036    ac_cv_prog_ac_ct_STRIP="strip"
4037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038    break 2
4039  fi
4040done
4041  done
4042IFS=$as_save_IFS
4043
4044fi
4045fi
4046ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4047if test -n "$ac_ct_STRIP"; then
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4049$as_echo "$ac_ct_STRIP" >&6; }
4050else
4051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052$as_echo "no" >&6; }
4053fi
4054
4055  if test "x$ac_ct_STRIP" = x; then
4056    STRIP=":"
4057  else
4058    case $cross_compiling:$ac_tool_warned in
4059yes:)
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062ac_tool_warned=yes ;;
4063esac
4064    STRIP=$ac_ct_STRIP
4065  fi
4066else
4067  STRIP="$ac_cv_prog_STRIP"
4068fi
4069
4070fi
4071INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4074$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4075if test -z "$MKDIR_P"; then
4076  if ${ac_cv_path_mkdir+:} false; then :
4077  $as_echo_n "(cached) " >&6
4078else
4079  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4081do
4082  IFS=$as_save_IFS
4083  test -z "$as_dir" && as_dir=.
4084    for ac_prog in mkdir gmkdir; do
4085	 for ac_exec_ext in '' $ac_executable_extensions; do
4086	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4087	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4088	     'mkdir (GNU coreutils) '* | \
4089	     'mkdir (coreutils) '* | \
4090	     'mkdir (fileutils) '4.1*)
4091	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4092	       break 3;;
4093	   esac
4094	 done
4095       done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100
4101  test -d ./--version && rmdir ./--version
4102  if test "${ac_cv_path_mkdir+set}" = set; then
4103    MKDIR_P="$ac_cv_path_mkdir -p"
4104  else
4105    # As a last resort, use the slow shell script.  Don't cache a
4106    # value for MKDIR_P within a source directory, because that will
4107    # break other packages using the cache if that directory is
4108    # removed, or if the value is a relative name.
4109    MKDIR_P="$ac_install_sh -d"
4110  fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4113$as_echo "$MKDIR_P" >&6; }
4114
4115for ac_prog in gawk mawk nawk awk
4116do
4117  # Extract the first word of "$ac_prog", so it can be a program name with args.
4118set dummy $ac_prog; ac_word=$2
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if ${ac_cv_prog_AWK+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  if test -n "$AWK"; then
4125  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134    ac_cv_prog_AWK="$ac_prog"
4135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136    break 2
4137  fi
4138done
4139  done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144AWK=$ac_cv_prog_AWK
4145if test -n "$AWK"; then
4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4147$as_echo "$AWK" >&6; }
4148else
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152
4153
4154  test -n "$AWK" && break
4155done
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4158$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4159set x ${MAKE-make}
4160ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4161if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  cat >conftest.make <<\_ACEOF
4165SHELL = /bin/sh
4166all:
4167	@echo '@@@%%%=$(MAKE)=@@@%%%'
4168_ACEOF
4169# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4170case `${MAKE-make} -f conftest.make 2>/dev/null` in
4171  *@@@%%%=?*=@@@%%%*)
4172    eval ac_cv_prog_make_${ac_make}_set=yes;;
4173  *)
4174    eval ac_cv_prog_make_${ac_make}_set=no;;
4175esac
4176rm -f conftest.make
4177fi
4178if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4180$as_echo "yes" >&6; }
4181  SET_MAKE=
4182else
4183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185  SET_MAKE="MAKE=${MAKE-make}"
4186fi
4187
4188rm -rf .tst 2>/dev/null
4189mkdir .tst 2>/dev/null
4190if test -d .tst; then
4191  am__leading_dot=.
4192else
4193  am__leading_dot=_
4194fi
4195rmdir .tst 2>/dev/null
4196
4197# Check whether --enable-silent-rules was given.
4198if test "${enable_silent_rules+set}" = set; then :
4199  enableval=$enable_silent_rules;
4200fi
4201
4202case $enable_silent_rules in # (((
4203  yes) AM_DEFAULT_VERBOSITY=0;;
4204   no) AM_DEFAULT_VERBOSITY=1;;
4205    *) AM_DEFAULT_VERBOSITY=1;;
4206esac
4207am_make=${MAKE-make}
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4209$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4210if ${am_cv_make_support_nested_variables+:} false; then :
4211  $as_echo_n "(cached) " >&6
4212else
4213  if $as_echo 'TRUE=$(BAR$(V))
4214BAR0=false
4215BAR1=true
4216V=1
4217am__doit:
4218	@$(TRUE)
4219.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4220  am_cv_make_support_nested_variables=yes
4221else
4222  am_cv_make_support_nested_variables=no
4223fi
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4226$as_echo "$am_cv_make_support_nested_variables" >&6; }
4227if test $am_cv_make_support_nested_variables = yes; then
4228    AM_V='$(V)'
4229  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4230else
4231  AM_V=$AM_DEFAULT_VERBOSITY
4232  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4233fi
4234AM_BACKSLASH='\'
4235
4236if test "`cd $srcdir && pwd`" != "`pwd`"; then
4237  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4238  # is not polluted with repeated "-I."
4239  am__isrc=' -I$(srcdir)'
4240  # test to see if srcdir already configured
4241  if test -f $srcdir/config.status; then
4242    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4243  fi
4244fi
4245
4246# test whether we have cygpath
4247if test -z "$CYGPATH_W"; then
4248  if (cygpath --version) >/dev/null 2>/dev/null; then
4249    CYGPATH_W='cygpath -w'
4250  else
4251    CYGPATH_W=echo
4252  fi
4253fi
4254
4255
4256# Define the identity of the package.
4257 PACKAGE='ImageMagick'
4258 VERSION='7.0.11-8'
4259
4260
4261# Some tools Automake needs.
4262
4263ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4264
4265
4266AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4267
4268
4269AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4270
4271
4272AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4273
4274
4275MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4276
4277# For better backward compatibility.  To be removed once Automake 1.9.x
4278# dies out for good.  For more background, see:
4279# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4280# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4281mkdir_p='$(MKDIR_P)'
4282
4283# We need awk for the "check" target (and possibly the TAP driver).  The
4284# system "awk" is bad on some platforms.
4285# Always define AMTAR for backward compatibility.  Yes, it's still used
4286# in the wild :-(  We should find a proper way to deprecate it ...
4287AMTAR='$${TAR-tar}'
4288
4289
4290# We'll loop over all known methods to create a tar archive until one works.
4291_am_tools='gnutar plaintar pax cpio none'
4292
4293# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4294      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4295      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4296      # and bug#13588).
4297      am_max_uid=2097151 # 2^21 - 1
4298      am_max_gid=$am_max_uid
4299      # The $UID and $GID variables are not portable, so we need to resort
4300      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4301      # below are definitely unexpected, so allow the users to see them
4302      # (that is, avoid stderr redirection).
4303      am_uid=`id -u || echo unknown`
4304      am_gid=`id -g || echo unknown`
4305      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4306$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4307      if test $am_uid -le $am_max_uid; then
4308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4309$as_echo "yes" >&6; }
4310      else
4311         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
4313         _am_tools=none
4314      fi
4315      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4316$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4317      if test $am_gid -le $am_max_gid; then
4318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319$as_echo "yes" >&6; }
4320      else
4321        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323        _am_tools=none
4324      fi
4325
4326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4327$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4328
4329  # Go ahead even if we have the value already cached.  We do so because we
4330  # need to set the values for the 'am__tar' and 'am__untar' variables.
4331  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4332
4333  for _am_tool in $_am_tools; do
4334    case $_am_tool in
4335    gnutar)
4336      for _am_tar in tar gnutar gtar; do
4337        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4338   ($_am_tar --version) >&5 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } && break
4342      done
4343      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4344      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4345      am__untar="$_am_tar -xf -"
4346      ;;
4347    plaintar)
4348      # Must skip GNU tar: if it does not support --format= it doesn't create
4349      # ustar tarball either.
4350      (tar --version) >/dev/null 2>&1 && continue
4351      am__tar='tar chf - "$$tardir"'
4352      am__tar_='tar chf - "$tardir"'
4353      am__untar='tar xf -'
4354      ;;
4355    pax)
4356      am__tar='pax -L -x ustar -w "$$tardir"'
4357      am__tar_='pax -L -x ustar -w "$tardir"'
4358      am__untar='pax -r'
4359      ;;
4360    cpio)
4361      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4362      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4363      am__untar='cpio -i -H ustar -d'
4364      ;;
4365    none)
4366      am__tar=false
4367      am__tar_=false
4368      am__untar=false
4369      ;;
4370    esac
4371
4372    # If the value was cached, stop now.  We just wanted to have am__tar
4373    # and am__untar set.
4374    test -n "${am_cv_prog_tar_ustar}" && break
4375
4376    # tar/untar a dummy directory, and stop if the command works.
4377    rm -rf conftest.dir
4378    mkdir conftest.dir
4379    echo GrepMe > conftest.dir/file
4380    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4381   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }
4385    rm -rf conftest.dir
4386    if test -s conftest.tar; then
4387      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4388   ($am__untar <conftest.tar) >&5 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }
4392      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4393   (cat conftest.dir/file) >&5 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }
4397      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4398    fi
4399  done
4400  rm -rf conftest.dir
4401
4402  if ${am_cv_prog_tar_ustar+:} false; then :
4403  $as_echo_n "(cached) " >&6
4404else
4405  am_cv_prog_tar_ustar=$_am_tool
4406fi
4407
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4409$as_echo "$am_cv_prog_tar_ustar" >&6; }
4410
4411
4412
4413
4414
4415
4416# POSIX will say in a future version that running "rm -f" with no argument
4417# is OK; and we want to be able to make that assumption in our Makefile
4418# recipes.  So use an aggressive probe to check that the usage we want is
4419# actually supported "in the wild" to an acceptable degree.
4420# See automake bug#10828.
4421# To make any issue more visible, cause the running configure to be aborted
4422# by default if the 'rm' program in use doesn't match our expectations; the
4423# user can still override this though.
4424if rm -f && rm -fr && rm -rf; then : OK; else
4425  cat >&2 <<'END'
4426Oops!
4427
4428Your 'rm' program seems unable to run without file operands specified
4429on the command line, even when the '-f' option is present.  This is contrary
4430to the behaviour of most rm programs out there, and not conforming with
4431the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4432
4433Please tell bug-automake@gnu.org about your system, including the value
4434of your $PATH and any error possibly output before this message.  This
4435can help us improve future automake versions.
4436
4437END
4438  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4439    echo 'Configuration will proceed anyway, since you have set the' >&2
4440    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4441    echo >&2
4442  else
4443    cat >&2 <<'END'
4444Aborting the configuration process, to ensure you take notice of the issue.
4445
4446You can download and install GNU coreutils to get an 'rm' implementation
4447that behaves properly: <https://www.gnu.org/software/coreutils/>.
4448
4449If you want to complete the configuration process using your problematic
4450'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4451to "yes", and re-run configure.
4452
4453END
4454    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4455  fi
4456fi
4457
4458
4459# Check whether --enable-silent-rules was given.
4460if test "${enable_silent_rules+set}" = set; then :
4461  enableval=$enable_silent_rules;
4462fi
4463
4464case $enable_silent_rules in # (((
4465  yes) AM_DEFAULT_VERBOSITY=0;;
4466   no) AM_DEFAULT_VERBOSITY=1;;
4467    *) AM_DEFAULT_VERBOSITY=0;;
4468esac
4469am_make=${MAKE-make}
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4471$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4472if ${am_cv_make_support_nested_variables+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  if $as_echo 'TRUE=$(BAR$(V))
4476BAR0=false
4477BAR1=true
4478V=1
4479am__doit:
4480	@$(TRUE)
4481.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4482  am_cv_make_support_nested_variables=yes
4483else
4484  am_cv_make_support_nested_variables=no
4485fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4488$as_echo "$am_cv_make_support_nested_variables" >&6; }
4489if test $am_cv_make_support_nested_variables = yes; then
4490    AM_V='$(V)'
4491  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4492else
4493  AM_V=$AM_DEFAULT_VERBOSITY
4494  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4495fi
4496AM_BACKSLASH='\'
4497
4498CONFIGURE_DEPENDENCIES="$CONFIGURE_DEPENDENCIES \$(top_srcdir)/ChangeLog \$(top_srcdir)/m4/version.m4"
4499
4500
4501#
4502# Save initial user-tunable values
4503#
4504USER_LIBS=$LIBS
4505for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS AR_FLAGS LIBS ; do
4506  eval isset=\${$var+set}
4507    if test "$isset" = 'set'; then
4508        eval val=$`echo $var`
4509        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4510    fi
4511done
4512
4513
4514CONFIGURE_ARGS="$0 ${ac_configure_args}"
4515
4516
4517echo "Configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}"
4518
4519MAGICK_TARGET_CPU=$host_cpu
4520
4521
4522cat >>confdefs.h <<_ACEOF
4523#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4524_ACEOF
4525
4526
4527MAGICK_TARGET_VENDOR=$host_vendor
4528
4529
4530cat >>confdefs.h <<_ACEOF
4531#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4532_ACEOF
4533
4534
4535MAGICK_TARGET_OS=$host_os
4536
4537
4538cat >>confdefs.h <<_ACEOF
4539#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4540_ACEOF
4541
4542
4543
4544# Substitute versioning
4545MAGICK_MAJOR_VERSION=7
4546
4547MAGICK_MINOR_VERSION=0
4548
4549MAGICK_MICRO_VERSION=11
4550
4551MAGICK_PATCHLEVEL_VERSION=8
4552
4553MAGICK_VERSION=7.0.11-8
4554
4555MAGICK_GIT_REVISION=18619:8ea469ae9:20210412
4556
4557
4558# Substitute library versioning
4559MAGICK_LIBRARY_CURRENT=9
4560MAGICK_LIBRARY_REVISION=0
4561MAGICK_LIBRARY_AGE=0
4562MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4563
4564MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4565
4566
4567MAGICKPP_LIBRARY_CURRENT=5
4568MAGICKPP_LIBRARY_REVISION=0
4569MAGICKPP_LIBRARY_AGE=0
4570MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4571
4572MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4573
4574
4575PACKAGE_BASE_VERSION=7.0.11
4576
4577PACKAGE_PATCHLEVEL_VERSION=8
4578
4579PACKAGE_VERSION_ADDENDUM=-8
4580
4581PACKAGE_LIB_VERSION=0x70B
4582
4583PACKAGE_LIB_VERSION_NUMBER=7,0,11,8
4584
4585PACKAGE_RELEASE_DATE=2021-04-11
4586
4587
4588# Ensure that make can run correctly
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4590$as_echo_n "checking whether build environment is sane... " >&6; }
4591# Reject unsafe characters in $srcdir or the absolute working directory
4592# name.  Accept space and tab only in the latter.
4593am_lf='
4594'
4595case `pwd` in
4596  *[\\\"\#\$\&\'\`$am_lf]*)
4597    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4598esac
4599case $srcdir in
4600  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4601    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4602esac
4603
4604# Do 'set' in a subshell so we don't clobber the current shell's
4605# arguments.  Must try -L first in case configure is actually a
4606# symlink; some systems play weird games with the mod time of symlinks
4607# (eg FreeBSD returns the mod time of the symlink's containing
4608# directory).
4609if (
4610   am_has_slept=no
4611   for am_try in 1 2; do
4612     echo "timestamp, slept: $am_has_slept" > conftest.file
4613     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4614     if test "$*" = "X"; then
4615	# -L didn't work.
4616	set X `ls -t "$srcdir/configure" conftest.file`
4617     fi
4618     if test "$*" != "X $srcdir/configure conftest.file" \
4619	&& test "$*" != "X conftest.file $srcdir/configure"; then
4620
4621	# If neither matched, then we have a broken ls.  This can happen
4622	# if, for instance, CONFIG_SHELL is bash and it inherits a
4623	# broken ls alias from the environment.  This has actually
4624	# happened.  Such a system could not be considered "sane".
4625	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4626  alias in your environment" "$LINENO" 5
4627     fi
4628     if test "$2" = conftest.file || test $am_try -eq 2; then
4629       break
4630     fi
4631     # Just in case.
4632     sleep 1
4633     am_has_slept=yes
4634   done
4635   test "$2" = conftest.file
4636   )
4637then
4638   # Ok.
4639   :
4640else
4641   as_fn_error $? "newly created file is older than distributed files!
4642Check your system clock" "$LINENO" 5
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646# If we didn't sleep, we still need to ensure time stamps of config.status and
4647# generated files are strictly newer.
4648am_sleep_pid=
4649if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4650  ( sleep 1 ) &
4651  am_sleep_pid=$!
4652fi
4653
4654rm -f conftest.file
4655
4656
4657# versioning of library
4658MAGICK_LIB_VERSION="0x"
4659if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4660  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4661fi
4662MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4663if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4664  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4665fi
4666MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4667if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4668  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4669fi
4670MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4671
4672
4673# Definition used to define MagickLibVersionText in version.h
4674MAGICK_LIB_VERSION_TEXT="${PACKAGE_BASE_VERSION}"
4675
4676
4677# Definition used to define MagickLibVersionNumber in version.h
4678MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4679
4680
4681MAGICKPP_LIB_VERSION="0x"
4682if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4683  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4684fi
4685MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4686if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4687  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4688fi
4689MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4690if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4691  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4692fi
4693MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4694
4695
4696# Definition used to define MagickLibVersionText in version.h
4697MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_BASE_VERSION}"
4698
4699
4700# Definition used to define MagickLibVersionNumber in version.h
4701MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4702
4703
4704PERLMAINCC=$CC
4705
4706MAGICK_CFLAGS=''
4707MAGICK_CPPFLAGS=$CPPFLAGS_USER
4708MAGICK_PCFLAGS=$CPPFLAGS_USER
4709MAGICK_LDFLAGS=''
4710MAGICK_LIBS=''
4711MAGICK_FEATURES=''
4712
4713#
4714# Evaluate shell variable equivalents to Makefile directory variables
4715#
4716if test "x$prefix" = xNONE; then
4717    prefix=$ac_default_prefix
4718fi
4719# Let make expand exec_prefix.
4720if test "x$exec_prefix" = xNONE; then
4721    exec_prefix='${prefix}'
4722fi
4723
4724#
4725eval "eval PREFIX_DIR=${prefix}"
4726
4727eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4728
4729eval "eval BIN_DIR=$bindir"
4730
4731eval "eval SBIN_DIR=$sbindir"
4732
4733eval "eval LIBEXEC_DIR=$libexecdir"
4734
4735eval "eval DATA_DIR=$datadir"
4736
4737eval "eval DOC_DIR=$datadir/doc"
4738
4739eval "eval SYSCONF_DIR=$sysconfdir"
4740
4741eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4742
4743eval "eval LOCALSTATE_DIR=$localstatedir"
4744
4745eval "eval LIB_DIR=$libdir"
4746
4747eval "eval INCLUDE_DIR=$includedir"
4748
4749eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4750
4751eval "eval INFO_DIR=$infodir"
4752
4753eval "eval MAN_DIR=$mandir"
4754
4755
4756# Get full paths to source and build directories
4757srcdirfull="`cd $srcdir && pwd`"
4758builddir="`pwd`"
4759
4760#
4761# Compute variables useful for running uninstalled software.
4762#
4763MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4764MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4765MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4766MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4767DIRSEP=':'
4768case "${build_os}" in
4769    mingw* )
4770        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4771        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4772        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4773        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4774        DIRSEP=';'
4775    ;;
4776esac
4777case "${host_os}" in
4778  mingw* )
4779    DIRSEP=';'
4780    ;;
4781esac
4782
4783
4784
4785
4786
4787
4788
4789#
4790# Enable OS features.
4791#
4792DEPDIR="${am__leading_dot}deps"
4793
4794ac_config_commands="$ac_config_commands depfiles"
4795
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4797$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4798cat > confinc.mk << 'END'
4799am__doit:
4800	@echo this is the am__doit target >confinc.out
4801.PHONY: am__doit
4802END
4803am__include="#"
4804am__quote=
4805# BSD make does it like this.
4806echo '.include "confinc.mk" # ignored' > confmf.BSD
4807# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4808echo 'include confinc.mk # ignored' > confmf.GNU
4809_am_result=no
4810for s in GNU BSD; do
4811  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4812   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }
4816  case $?:`cat confinc.out 2>/dev/null` in #(
4817  '0:this is the am__doit target') :
4818    case $s in #(
4819  BSD) :
4820    am__include='.include' am__quote='"' ;; #(
4821  *) :
4822    am__include='include' am__quote='' ;;
4823esac ;; #(
4824  *) :
4825     ;;
4826esac
4827  if test "$am__include" != "#"; then
4828    _am_result="yes ($s style)"
4829    break
4830  fi
4831done
4832rm -f confinc.* confmf.*
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4834$as_echo "${_am_result}" >&6; }
4835
4836# Check whether --enable-dependency-tracking was given.
4837if test "${enable_dependency_tracking+set}" = set; then :
4838  enableval=$enable_dependency_tracking;
4839fi
4840
4841if test "x$enable_dependency_tracking" != xno; then
4842  am_depcomp="$ac_aux_dir/depcomp"
4843  AMDEPBACKSLASH='\'
4844  am__nodep='_no'
4845fi
4846 if test "x$enable_dependency_tracking" != xno; then
4847  AMDEP_TRUE=
4848  AMDEP_FALSE='#'
4849else
4850  AMDEP_TRUE='#'
4851  AMDEP_FALSE=
4852fi
4853
4854
4855ac_ext=c
4856ac_cpp='$CPP $CPPFLAGS'
4857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860if test -n "$ac_tool_prefix"; then
4861  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}gcc; ac_word=$2
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864$as_echo_n "checking for $ac_word... " >&6; }
4865if ${ac_cv_prog_CC+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$CC"; then
4869  ac_cv_prog_CC="$CC" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883  done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888CC=$ac_cv_prog_CC
4889if test -n "$CC"; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4891$as_echo "$CC" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897
4898fi
4899if test -z "$ac_cv_prog_CC"; then
4900  ac_ct_CC=$CC
4901  # Extract the first word of "gcc", so it can be a program name with args.
4902set dummy gcc; ac_word=$2
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904$as_echo_n "checking for $ac_word... " >&6; }
4905if ${ac_cv_prog_ac_ct_CC+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  if test -n "$ac_ct_CC"; then
4909  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916    for ac_exec_ext in '' $ac_executable_extensions; do
4917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918    ac_cv_prog_ac_ct_CC="gcc"
4919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923  done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928ac_ct_CC=$ac_cv_prog_ac_ct_CC
4929if test -n "$ac_ct_CC"; then
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4931$as_echo "$ac_ct_CC" >&6; }
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937  if test "x$ac_ct_CC" = x; then
4938    CC=""
4939  else
4940    case $cross_compiling:$ac_tool_warned in
4941yes:)
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944ac_tool_warned=yes ;;
4945esac
4946    CC=$ac_ct_CC
4947  fi
4948else
4949  CC="$ac_cv_prog_CC"
4950fi
4951
4952if test -z "$CC"; then
4953          if test -n "$ac_tool_prefix"; then
4954    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4955set dummy ${ac_tool_prefix}cc; ac_word=$2
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if ${ac_cv_prog_CC+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  if test -n "$CC"; then
4962  ac_cv_prog_CC="$CC" # Let the user override the test.
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967  IFS=$as_save_IFS
4968  test -z "$as_dir" && as_dir=.
4969    for ac_exec_ext in '' $ac_executable_extensions; do
4970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971    ac_cv_prog_CC="${ac_tool_prefix}cc"
4972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973    break 2
4974  fi
4975done
4976  done
4977IFS=$as_save_IFS
4978
4979fi
4980fi
4981CC=$ac_cv_prog_CC
4982if test -n "$CC"; then
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4984$as_echo "$CC" >&6; }
4985else
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988fi
4989
4990
4991  fi
4992fi
4993if test -z "$CC"; then
4994  # Extract the first word of "cc", so it can be a program name with args.
4995set dummy cc; ac_word=$2
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997$as_echo_n "checking for $ac_word... " >&6; }
4998if ${ac_cv_prog_CC+:} false; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  if test -n "$CC"; then
5002  ac_cv_prog_CC="$CC" # Let the user override the test.
5003else
5004  ac_prog_rejected=no
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010    for ac_exec_ext in '' $ac_executable_extensions; do
5011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5013       ac_prog_rejected=yes
5014       continue
5015     fi
5016    ac_cv_prog_CC="cc"
5017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018    break 2
5019  fi
5020done
5021  done
5022IFS=$as_save_IFS
5023
5024if test $ac_prog_rejected = yes; then
5025  # We found a bogon in the path, so make sure we never use it.
5026  set dummy $ac_cv_prog_CC
5027  shift
5028  if test $# != 0; then
5029    # We chose a different compiler from the bogus one.
5030    # However, it has the same basename, so the bogon will be chosen
5031    # first if we set CC to just the basename; use the full file name.
5032    shift
5033    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5034  fi
5035fi
5036fi
5037fi
5038CC=$ac_cv_prog_CC
5039if test -n "$CC"; then
5040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5041$as_echo "$CC" >&6; }
5042else
5043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044$as_echo "no" >&6; }
5045fi
5046
5047
5048fi
5049if test -z "$CC"; then
5050  if test -n "$ac_tool_prefix"; then
5051  for ac_prog in cl.exe
5052  do
5053    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5054set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_CC+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -n "$CC"; then
5061  ac_cv_prog_CC="$CC" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080CC=$ac_cv_prog_CC
5081if test -n "$CC"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5083$as_echo "$CC" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089
5090    test -n "$CC" && break
5091  done
5092fi
5093if test -z "$CC"; then
5094  ac_ct_CC=$CC
5095  for ac_prog in cl.exe
5096do
5097  # Extract the first word of "$ac_prog", so it can be a program name with args.
5098set dummy $ac_prog; ac_word=$2
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100$as_echo_n "checking for $ac_word... " >&6; }
5101if ${ac_cv_prog_ac_ct_CC+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  if test -n "$ac_ct_CC"; then
5105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110  IFS=$as_save_IFS
5111  test -z "$as_dir" && as_dir=.
5112    for ac_exec_ext in '' $ac_executable_extensions; do
5113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114    ac_cv_prog_ac_ct_CC="$ac_prog"
5115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116    break 2
5117  fi
5118done
5119  done
5120IFS=$as_save_IFS
5121
5122fi
5123fi
5124ac_ct_CC=$ac_cv_prog_ac_ct_CC
5125if test -n "$ac_ct_CC"; then
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5127$as_echo "$ac_ct_CC" >&6; }
5128else
5129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130$as_echo "no" >&6; }
5131fi
5132
5133
5134  test -n "$ac_ct_CC" && break
5135done
5136
5137  if test "x$ac_ct_CC" = x; then
5138    CC=""
5139  else
5140    case $cross_compiling:$ac_tool_warned in
5141yes:)
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144ac_tool_warned=yes ;;
5145esac
5146    CC=$ac_ct_CC
5147  fi
5148fi
5149
5150fi
5151
5152
5153test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5155as_fn_error $? "no acceptable C compiler found in \$PATH
5156See \`config.log' for more details" "$LINENO" 5; }
5157
5158# Provide some information about the compiler.
5159$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5160set X $ac_compile
5161ac_compiler=$2
5162for ac_option in --version -v -V -qversion; do
5163  { { ac_try="$ac_compiler $ac_option >&5"
5164case "(($ac_try" in
5165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166  *) ac_try_echo=$ac_try;;
5167esac
5168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5169$as_echo "$ac_try_echo"; } >&5
5170  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5171  ac_status=$?
5172  if test -s conftest.err; then
5173    sed '10a\
5174... rest of stderr output deleted ...
5175         10q' conftest.err >conftest.er1
5176    cat conftest.er1 >&5
5177  fi
5178  rm -f conftest.er1 conftest.err
5179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5180  test $ac_status = 0; }
5181done
5182
5183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h.  */
5185
5186int
5187main ()
5188{
5189
5190  ;
5191  return 0;
5192}
5193_ACEOF
5194ac_clean_files_save=$ac_clean_files
5195ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5196# Try to create an executable without -o first, disregard a.out.
5197# It will help us diagnose broken compilers, and finding out an intuition
5198# of exeext.
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5200$as_echo_n "checking whether the C compiler works... " >&6; }
5201ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5202
5203# The possible output files:
5204ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5205
5206ac_rmfiles=
5207for ac_file in $ac_files
5208do
5209  case $ac_file in
5210    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5211    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5212  esac
5213done
5214rm -f $ac_rmfiles
5215
5216if { { ac_try="$ac_link_default"
5217case "(($ac_try" in
5218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219  *) ac_try_echo=$ac_try;;
5220esac
5221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5222$as_echo "$ac_try_echo"; } >&5
5223  (eval "$ac_link_default") 2>&5
5224  ac_status=$?
5225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5226  test $ac_status = 0; }; then :
5227  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5228# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5229# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5230# so that the user can short-circuit this test for compilers unknown to
5231# Autoconf.
5232for ac_file in $ac_files ''
5233do
5234  test -f "$ac_file" || continue
5235  case $ac_file in
5236    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5237	;;
5238    [ab].out )
5239	# We found the default executable, but exeext='' is most
5240	# certainly right.
5241	break;;
5242    *.* )
5243	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5244	then :; else
5245	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5246	fi
5247	# We set ac_cv_exeext here because the later test for it is not
5248	# safe: cross compilers may not add the suffix if given an `-o'
5249	# argument, so we may need to know it at that point already.
5250	# Even if this section looks crufty: it has the advantage of
5251	# actually working.
5252	break;;
5253    * )
5254	break;;
5255  esac
5256done
5257test "$ac_cv_exeext" = no && ac_cv_exeext=
5258
5259else
5260  ac_file=''
5261fi
5262if test -z "$ac_file"; then :
5263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265$as_echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270as_fn_error 77 "C compiler cannot create executables
5271See \`config.log' for more details" "$LINENO" 5; }
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5274$as_echo "yes" >&6; }
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5277$as_echo_n "checking for C compiler default output file name... " >&6; }
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5279$as_echo "$ac_file" >&6; }
5280ac_exeext=$ac_cv_exeext
5281
5282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5283ac_clean_files=$ac_clean_files_save
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5285$as_echo_n "checking for suffix of executables... " >&6; }
5286if { { ac_try="$ac_link"
5287case "(($ac_try" in
5288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289  *) ac_try_echo=$ac_try;;
5290esac
5291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5292$as_echo "$ac_try_echo"; } >&5
5293  (eval "$ac_link") 2>&5
5294  ac_status=$?
5295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5296  test $ac_status = 0; }; then :
5297  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5298# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5299# work properly (i.e., refer to `conftest.exe'), while it won't with
5300# `rm'.
5301for ac_file in conftest.exe conftest conftest.*; do
5302  test -f "$ac_file" || continue
5303  case $ac_file in
5304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5305    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5306	  break;;
5307    * ) break;;
5308  esac
5309done
5310else
5311  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5314See \`config.log' for more details" "$LINENO" 5; }
5315fi
5316rm -f conftest conftest$ac_cv_exeext
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5318$as_echo "$ac_cv_exeext" >&6; }
5319
5320rm -f conftest.$ac_ext
5321EXEEXT=$ac_cv_exeext
5322ac_exeext=$EXEEXT
5323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325#include <stdio.h>
5326int
5327main ()
5328{
5329FILE *f = fopen ("conftest.out", "w");
5330 return ferror (f) || fclose (f) != 0;
5331
5332  ;
5333  return 0;
5334}
5335_ACEOF
5336ac_clean_files="$ac_clean_files conftest.out"
5337# Check that the compiler produces executables we can run.  If not, either
5338# the compiler is broken, or we cross compile.
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5340$as_echo_n "checking whether we are cross compiling... " >&6; }
5341if test "$cross_compiling" != yes; then
5342  { { ac_try="$ac_link"
5343case "(($ac_try" in
5344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345  *) ac_try_echo=$ac_try;;
5346esac
5347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5348$as_echo "$ac_try_echo"; } >&5
5349  (eval "$ac_link") 2>&5
5350  ac_status=$?
5351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352  test $ac_status = 0; }
5353  if { ac_try='./conftest$ac_cv_exeext'
5354  { { case "(($ac_try" in
5355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356  *) ac_try_echo=$ac_try;;
5357esac
5358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5359$as_echo "$ac_try_echo"; } >&5
5360  (eval "$ac_try") 2>&5
5361  ac_status=$?
5362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5363  test $ac_status = 0; }; }; then
5364    cross_compiling=no
5365  else
5366    if test "$cross_compiling" = maybe; then
5367	cross_compiling=yes
5368    else
5369	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371as_fn_error $? "cannot run C compiled programs.
5372If you meant to cross compile, use \`--host'.
5373See \`config.log' for more details" "$LINENO" 5; }
5374    fi
5375  fi
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5378$as_echo "$cross_compiling" >&6; }
5379
5380rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5381ac_clean_files=$ac_clean_files_save
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5383$as_echo_n "checking for suffix of object files... " >&6; }
5384if ${ac_cv_objext+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389
5390int
5391main ()
5392{
5393
5394  ;
5395  return 0;
5396}
5397_ACEOF
5398rm -f conftest.o conftest.obj
5399if { { ac_try="$ac_compile"
5400case "(($ac_try" in
5401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402  *) ac_try_echo=$ac_try;;
5403esac
5404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5405$as_echo "$ac_try_echo"; } >&5
5406  (eval "$ac_compile") 2>&5
5407  ac_status=$?
5408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5409  test $ac_status = 0; }; then :
5410  for ac_file in conftest.o conftest.obj conftest.*; do
5411  test -f "$ac_file" || continue;
5412  case $ac_file in
5413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5414    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5415       break;;
5416  esac
5417done
5418else
5419  $as_echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5424as_fn_error $? "cannot compute suffix of object files: cannot compile
5425See \`config.log' for more details" "$LINENO" 5; }
5426fi
5427rm -f conftest.$ac_cv_objext conftest.$ac_ext
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5430$as_echo "$ac_cv_objext" >&6; }
5431OBJEXT=$ac_cv_objext
5432ac_objext=$OBJEXT
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5435if ${ac_cv_c_compiler_gnu+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440
5441int
5442main ()
5443{
5444#ifndef __GNUC__
5445       choke me
5446#endif
5447
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453  ac_compiler_gnu=yes
5454else
5455  ac_compiler_gnu=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458ac_cv_c_compiler_gnu=$ac_compiler_gnu
5459
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5462$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5463if test $ac_compiler_gnu = yes; then
5464  GCC=yes
5465else
5466  GCC=
5467fi
5468ac_test_CFLAGS=${CFLAGS+set}
5469ac_save_CFLAGS=$CFLAGS
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5471$as_echo_n "checking whether $CC accepts -g... " >&6; }
5472if ${ac_cv_prog_cc_g+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  ac_save_c_werror_flag=$ac_c_werror_flag
5476   ac_c_werror_flag=yes
5477   ac_cv_prog_cc_g=no
5478   CFLAGS="-g"
5479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h.  */
5481
5482int
5483main ()
5484{
5485
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491  ac_cv_prog_cc_g=yes
5492else
5493  CFLAGS=""
5494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496
5497int
5498main ()
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_compile "$LINENO"; then :
5506
5507else
5508  ac_c_werror_flag=$ac_save_c_werror_flag
5509	 CFLAGS="-g"
5510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511/* end confdefs.h.  */
5512
5513int
5514main ()
5515{
5516
5517  ;
5518  return 0;
5519}
5520_ACEOF
5521if ac_fn_c_try_compile "$LINENO"; then :
5522  ac_cv_prog_cc_g=yes
5523fi
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529   ac_c_werror_flag=$ac_save_c_werror_flag
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5532$as_echo "$ac_cv_prog_cc_g" >&6; }
5533if test "$ac_test_CFLAGS" = set; then
5534  CFLAGS=$ac_save_CFLAGS
5535elif test $ac_cv_prog_cc_g = yes; then
5536  if test "$GCC" = yes; then
5537    CFLAGS="-g -O2"
5538  else
5539    CFLAGS="-g"
5540  fi
5541else
5542  if test "$GCC" = yes; then
5543    CFLAGS="-O2"
5544  else
5545    CFLAGS=
5546  fi
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5550if ${ac_cv_prog_cc_c89+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  ac_cv_prog_cc_c89=no
5554ac_save_CC=$CC
5555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557#include <stdarg.h>
5558#include <stdio.h>
5559struct stat;
5560/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5561struct buf { int x; };
5562FILE * (*rcsopen) (struct buf *, struct stat *, int);
5563static char *e (p, i)
5564     char **p;
5565     int i;
5566{
5567  return p[i];
5568}
5569static char *f (char * (*g) (char **, int), char **p, ...)
5570{
5571  char *s;
5572  va_list v;
5573  va_start (v,p);
5574  s = g (p, va_arg (v,int));
5575  va_end (v);
5576  return s;
5577}
5578
5579/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5580   function prototypes and stuff, but not '\xHH' hex character constants.
5581   These don't provoke an error unfortunately, instead are silently treated
5582   as 'x'.  The following induces an error, until -std is added to get
5583   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5584   array size at least.  It's necessary to write '\x00'==0 to get something
5585   that's true only with -std.  */
5586int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5587
5588/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5589   inside strings and character constants.  */
5590#define FOO(x) 'x'
5591int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5592
5593int test (int i, double x);
5594struct s1 {int (*f) (int a);};
5595struct s2 {int (*f) (double a);};
5596int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5597int argc;
5598char **argv;
5599int
5600main ()
5601{
5602return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5608	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5609do
5610  CC="$ac_save_CC $ac_arg"
5611  if ac_fn_c_try_compile "$LINENO"; then :
5612  ac_cv_prog_cc_c89=$ac_arg
5613fi
5614rm -f core conftest.err conftest.$ac_objext
5615  test "x$ac_cv_prog_cc_c89" != "xno" && break
5616done
5617rm -f conftest.$ac_ext
5618CC=$ac_save_CC
5619
5620fi
5621# AC_CACHE_VAL
5622case "x$ac_cv_prog_cc_c89" in
5623  x)
5624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5625$as_echo "none needed" >&6; } ;;
5626  xno)
5627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5628$as_echo "unsupported" >&6; } ;;
5629  *)
5630    CC="$CC $ac_cv_prog_cc_c89"
5631    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5632$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5633esac
5634if test "x$ac_cv_prog_cc_c89" != xno; then :
5635
5636fi
5637
5638ac_ext=c
5639ac_cpp='$CPP $CPPFLAGS'
5640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642ac_compiler_gnu=$ac_cv_c_compiler_gnu
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5650$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5651if ${am_cv_prog_cc_c_o+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656
5657int
5658main ()
5659{
5660
5661  ;
5662  return 0;
5663}
5664_ACEOF
5665  # Make sure it works both with $CC and with simple cc.
5666  # Following AC_PROG_CC_C_O, we do the test twice because some
5667  # compilers refuse to overwrite an existing .o file with -o,
5668  # though they will create one.
5669  am_cv_prog_cc_c_o=yes
5670  for am_i in 1 2; do
5671    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5672   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } \
5676         && test -f conftest2.$ac_objext; then
5677      : OK
5678    else
5679      am_cv_prog_cc_c_o=no
5680      break
5681    fi
5682  done
5683  rm -f core conftest*
5684  unset am_i
5685fi
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5687$as_echo "$am_cv_prog_cc_c_o" >&6; }
5688if test "$am_cv_prog_cc_c_o" != yes; then
5689   # Losing compiler, so override with the script.
5690   # FIXME: It is wrong to rewrite CC.
5691   # But if we don't then we get into trouble of one sort or another.
5692   # A longer-term fix would be to have automake use am__CC in this case,
5693   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5694   CC="$am_aux_dir/compile $CC"
5695fi
5696ac_ext=c
5697ac_cpp='$CPP $CPPFLAGS'
5698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701
5702
5703depcc="$CC"   am_compiler_list=
5704
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5706$as_echo_n "checking dependency style of $depcc... " >&6; }
5707if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5708  $as_echo_n "(cached) " >&6
5709else
5710  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711  # We make a subdir and do the tests there.  Otherwise we can end up
5712  # making bogus files that we don't know about and never remove.  For
5713  # instance it was reported that on HP-UX the gcc test will end up
5714  # making a dummy file named 'D' -- because '-MD' means "put the output
5715  # in D".
5716  rm -rf conftest.dir
5717  mkdir conftest.dir
5718  # Copy depcomp to subdir because otherwise we won't find it if we're
5719  # using a relative directory.
5720  cp "$am_depcomp" conftest.dir
5721  cd conftest.dir
5722  # We will build objects and dependencies in a subdirectory because
5723  # it helps to detect inapplicable dependency modes.  For instance
5724  # both Tru64's cc and ICC support -MD to output dependencies as a
5725  # side effect of compilation, but ICC will put the dependencies in
5726  # the current directory while Tru64 will put them in the object
5727  # directory.
5728  mkdir sub
5729
5730  am_cv_CC_dependencies_compiler_type=none
5731  if test "$am_compiler_list" = ""; then
5732     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5733  fi
5734  am__universal=false
5735  case " $depcc " in #(
5736     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5737     esac
5738
5739  for depmode in $am_compiler_list; do
5740    # Setup a source with many dependencies, because some compilers
5741    # like to wrap large dependency lists on column 80 (with \), and
5742    # we should not choose a depcomp mode which is confused by this.
5743    #
5744    # We need to recreate these files for each test, as the compiler may
5745    # overwrite some of them when testing with obscure command lines.
5746    # This happens at least with the AIX C compiler.
5747    : > sub/conftest.c
5748    for i in 1 2 3 4 5 6; do
5749      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5750      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5751      # Solaris 10 /bin/sh.
5752      echo '/* dummy */' > sub/conftst$i.h
5753    done
5754    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5755
5756    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5757    # mode.  It turns out that the SunPro C++ compiler does not properly
5758    # handle '-M -o', and we need to detect this.  Also, some Intel
5759    # versions had trouble with output in subdirs.
5760    am__obj=sub/conftest.${OBJEXT-o}
5761    am__minus_obj="-o $am__obj"
5762    case $depmode in
5763    gcc)
5764      # This depmode causes a compiler race in universal mode.
5765      test "$am__universal" = false || continue
5766      ;;
5767    nosideeffect)
5768      # After this tag, mechanisms are not by side-effect, so they'll
5769      # only be used when explicitly requested.
5770      if test "x$enable_dependency_tracking" = xyes; then
5771	continue
5772      else
5773	break
5774      fi
5775      ;;
5776    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5777      # This compiler won't grok '-c -o', but also, the minuso test has
5778      # not run yet.  These depmodes are late enough in the game, and
5779      # so weak that their functioning should not be impacted.
5780      am__obj=conftest.${OBJEXT-o}
5781      am__minus_obj=
5782      ;;
5783    none) break ;;
5784    esac
5785    if depmode=$depmode \
5786       source=sub/conftest.c object=$am__obj \
5787       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5788       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5789         >/dev/null 2>conftest.err &&
5790       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5791       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5792       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5793       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5794      # icc doesn't choke on unknown options, it will just issue warnings
5795      # or remarks (even with -Werror).  So we grep stderr for any message
5796      # that says an option was ignored or not supported.
5797      # When given -MP, icc 7.0 and 7.1 complain thusly:
5798      #   icc: Command line warning: ignoring option '-M'; no argument required
5799      # The diagnosis changed in icc 8.0:
5800      #   icc: Command line remark: option '-MP' not supported
5801      if (grep 'ignoring option' conftest.err ||
5802          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5803        am_cv_CC_dependencies_compiler_type=$depmode
5804        break
5805      fi
5806    fi
5807  done
5808
5809  cd ..
5810  rm -rf conftest.dir
5811else
5812  am_cv_CC_dependencies_compiler_type=none
5813fi
5814
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5819
5820 if
5821  test "x$enable_dependency_tracking" != xno \
5822  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5823  am__fastdepCC_TRUE=
5824  am__fastdepCC_FALSE='#'
5825else
5826  am__fastdepCC_TRUE='#'
5827  am__fastdepCC_FALSE=
5828fi
5829
5830
5831
5832ac_ext=c
5833ac_cpp='$CPP $CPPFLAGS'
5834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5838$as_echo_n "checking how to run the C preprocessor... " >&6; }
5839# On Suns, sometimes $CPP names a directory.
5840if test -n "$CPP" && test -d "$CPP"; then
5841  CPP=
5842fi
5843if test -z "$CPP"; then
5844  if ${ac_cv_prog_CPP+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847      # Double quotes because CPP needs to be expanded
5848    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5849    do
5850      ac_preproc_ok=false
5851for ac_c_preproc_warn_flag in '' yes
5852do
5853  # Use a header file that comes with gcc, so configuring glibc
5854  # with a fresh cross-compiler works.
5855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856  # <limits.h> exists even on freestanding compilers.
5857  # On the NeXT, cc -E runs the code through the compiler's parser,
5858  # not just through cpp. "Syntax error" is here to catch this case.
5859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h.  */
5861#ifdef __STDC__
5862# include <limits.h>
5863#else
5864# include <assert.h>
5865#endif
5866		     Syntax error
5867_ACEOF
5868if ac_fn_c_try_cpp "$LINENO"; then :
5869
5870else
5871  # Broken: fails on valid input.
5872continue
5873fi
5874rm -f conftest.err conftest.i conftest.$ac_ext
5875
5876  # OK, works on sane cases.  Now check whether nonexistent headers
5877  # can be detected and how.
5878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880#include <ac_nonexistent.h>
5881_ACEOF
5882if ac_fn_c_try_cpp "$LINENO"; then :
5883  # Broken: success on invalid input.
5884continue
5885else
5886  # Passes both tests.
5887ac_preproc_ok=:
5888break
5889fi
5890rm -f conftest.err conftest.i conftest.$ac_ext
5891
5892done
5893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894rm -f conftest.i conftest.err conftest.$ac_ext
5895if $ac_preproc_ok; then :
5896  break
5897fi
5898
5899    done
5900    ac_cv_prog_CPP=$CPP
5901
5902fi
5903  CPP=$ac_cv_prog_CPP
5904else
5905  ac_cv_prog_CPP=$CPP
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5908$as_echo "$CPP" >&6; }
5909ac_preproc_ok=false
5910for ac_c_preproc_warn_flag in '' yes
5911do
5912  # Use a header file that comes with gcc, so configuring glibc
5913  # with a fresh cross-compiler works.
5914  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5915  # <limits.h> exists even on freestanding compilers.
5916  # On the NeXT, cc -E runs the code through the compiler's parser,
5917  # not just through cpp. "Syntax error" is here to catch this case.
5918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
5925		     Syntax error
5926_ACEOF
5927if ac_fn_c_try_cpp "$LINENO"; then :
5928
5929else
5930  # Broken: fails on valid input.
5931continue
5932fi
5933rm -f conftest.err conftest.i conftest.$ac_ext
5934
5935  # OK, works on sane cases.  Now check whether nonexistent headers
5936  # can be detected and how.
5937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h.  */
5939#include <ac_nonexistent.h>
5940_ACEOF
5941if ac_fn_c_try_cpp "$LINENO"; then :
5942  # Broken: success on invalid input.
5943continue
5944else
5945  # Passes both tests.
5946ac_preproc_ok=:
5947break
5948fi
5949rm -f conftest.err conftest.i conftest.$ac_ext
5950
5951done
5952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5953rm -f conftest.i conftest.err conftest.$ac_ext
5954if $ac_preproc_ok; then :
5955
5956else
5957  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5960See \`config.log' for more details" "$LINENO" 5; }
5961fi
5962
5963ac_ext=c
5964ac_cpp='$CPP $CPPFLAGS'
5965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968
5969
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5971$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5972if ${ac_cv_path_GREP+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  if test -z "$GREP"; then
5976  ac_path_GREP_found=false
5977  # Loop through the user's path and test for each of PROGNAME-LIST
5978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983    for ac_prog in grep ggrep; do
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5986      as_fn_executable_p "$ac_path_GREP" || continue
5987# Check for GNU ac_path_GREP and select it if it is found.
5988  # Check for GNU $ac_path_GREP
5989case `"$ac_path_GREP" --version 2>&1` in
5990*GNU*)
5991  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5992*)
5993  ac_count=0
5994  $as_echo_n 0123456789 >"conftest.in"
5995  while :
5996  do
5997    cat "conftest.in" "conftest.in" >"conftest.tmp"
5998    mv "conftest.tmp" "conftest.in"
5999    cp "conftest.in" "conftest.nl"
6000    $as_echo 'GREP' >> "conftest.nl"
6001    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6003    as_fn_arith $ac_count + 1 && ac_count=$as_val
6004    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6005      # Best one so far, save it but keep looking for a better one
6006      ac_cv_path_GREP="$ac_path_GREP"
6007      ac_path_GREP_max=$ac_count
6008    fi
6009    # 10*(2^10) chars as input seems more than enough
6010    test $ac_count -gt 10 && break
6011  done
6012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6013esac
6014
6015      $ac_path_GREP_found && break 3
6016    done
6017  done
6018  done
6019IFS=$as_save_IFS
6020  if test -z "$ac_cv_path_GREP"; then
6021    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6022  fi
6023else
6024  ac_cv_path_GREP=$GREP
6025fi
6026
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6029$as_echo "$ac_cv_path_GREP" >&6; }
6030 GREP="$ac_cv_path_GREP"
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6034$as_echo_n "checking for egrep... " >&6; }
6035if ${ac_cv_path_EGREP+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6039   then ac_cv_path_EGREP="$GREP -E"
6040   else
6041     if test -z "$EGREP"; then
6042  ac_path_EGREP_found=false
6043  # Loop through the user's path and test for each of PROGNAME-LIST
6044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6046do
6047  IFS=$as_save_IFS
6048  test -z "$as_dir" && as_dir=.
6049    for ac_prog in egrep; do
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6052      as_fn_executable_p "$ac_path_EGREP" || continue
6053# Check for GNU ac_path_EGREP and select it if it is found.
6054  # Check for GNU $ac_path_EGREP
6055case `"$ac_path_EGREP" --version 2>&1` in
6056*GNU*)
6057  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6058*)
6059  ac_count=0
6060  $as_echo_n 0123456789 >"conftest.in"
6061  while :
6062  do
6063    cat "conftest.in" "conftest.in" >"conftest.tmp"
6064    mv "conftest.tmp" "conftest.in"
6065    cp "conftest.in" "conftest.nl"
6066    $as_echo 'EGREP' >> "conftest.nl"
6067    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069    as_fn_arith $ac_count + 1 && ac_count=$as_val
6070    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6071      # Best one so far, save it but keep looking for a better one
6072      ac_cv_path_EGREP="$ac_path_EGREP"
6073      ac_path_EGREP_max=$ac_count
6074    fi
6075    # 10*(2^10) chars as input seems more than enough
6076    test $ac_count -gt 10 && break
6077  done
6078  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6079esac
6080
6081      $ac_path_EGREP_found && break 3
6082    done
6083  done
6084  done
6085IFS=$as_save_IFS
6086  if test -z "$ac_cv_path_EGREP"; then
6087    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6088  fi
6089else
6090  ac_cv_path_EGREP=$EGREP
6091fi
6092
6093   fi
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6096$as_echo "$ac_cv_path_EGREP" >&6; }
6097 EGREP="$ac_cv_path_EGREP"
6098
6099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6101$as_echo_n "checking for ANSI C header files... " >&6; }
6102if ${ac_cv_header_stdc+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107#include <stdlib.h>
6108#include <stdarg.h>
6109#include <string.h>
6110#include <float.h>
6111
6112int
6113main ()
6114{
6115
6116  ;
6117  return 0;
6118}
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121  ac_cv_header_stdc=yes
6122else
6123  ac_cv_header_stdc=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126
6127if test $ac_cv_header_stdc = yes; then
6128  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131#include <string.h>
6132
6133_ACEOF
6134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135  $EGREP "memchr" >/dev/null 2>&1; then :
6136
6137else
6138  ac_cv_header_stdc=no
6139fi
6140rm -f conftest*
6141
6142fi
6143
6144if test $ac_cv_header_stdc = yes; then
6145  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h.  */
6148#include <stdlib.h>
6149
6150_ACEOF
6151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152  $EGREP "free" >/dev/null 2>&1; then :
6153
6154else
6155  ac_cv_header_stdc=no
6156fi
6157rm -f conftest*
6158
6159fi
6160
6161if test $ac_cv_header_stdc = yes; then
6162  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163  if test "$cross_compiling" = yes; then :
6164  :
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168#include <ctype.h>
6169#include <stdlib.h>
6170#if ((' ' & 0x0FF) == 0x020)
6171# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6172# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6173#else
6174# define ISLOWER(c) \
6175		   (('a' <= (c) && (c) <= 'i') \
6176		     || ('j' <= (c) && (c) <= 'r') \
6177		     || ('s' <= (c) && (c) <= 'z'))
6178# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6179#endif
6180
6181#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6182int
6183main ()
6184{
6185  int i;
6186  for (i = 0; i < 256; i++)
6187    if (XOR (islower (i), ISLOWER (i))
6188	|| toupper (i) != TOUPPER (i))
6189      return 2;
6190  return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_run "$LINENO"; then :
6194
6195else
6196  ac_cv_header_stdc=no
6197fi
6198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6199  conftest.$ac_objext conftest.beam conftest.$ac_ext
6200fi
6201
6202fi
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6205$as_echo "$ac_cv_header_stdc" >&6; }
6206if test $ac_cv_header_stdc = yes; then
6207
6208$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6209
6210fi
6211
6212# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6213for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6214		  inttypes.h stdint.h unistd.h
6215do :
6216  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6218"
6219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6220  cat >>confdefs.h <<_ACEOF
6221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6222_ACEOF
6223
6224fi
6225
6226done
6227
6228
6229
6230  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6231if test "x$ac_cv_header_minix_config_h" = xyes; then :
6232  MINIX=yes
6233else
6234  MINIX=
6235fi
6236
6237
6238  if test "$MINIX" = yes; then
6239
6240$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6241
6242
6243$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6244
6245
6246$as_echo "#define _MINIX 1" >>confdefs.h
6247
6248  fi
6249
6250
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6252$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6253if ${ac_cv_safe_to_define___extensions__+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257/* end confdefs.h.  */
6258
6259#         define __EXTENSIONS__ 1
6260          $ac_includes_default
6261int
6262main ()
6263{
6264
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269if ac_fn_c_try_compile "$LINENO"; then :
6270  ac_cv_safe_to_define___extensions__=yes
6271else
6272  ac_cv_safe_to_define___extensions__=no
6273fi
6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275fi
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6277$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6278  test $ac_cv_safe_to_define___extensions__ = yes &&
6279    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6280
6281  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6282
6283  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6284
6285  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6286
6287  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6288
6289
6290
6291# ==============================================================================
6292# Find required base packages
6293# ==============================================================================
6294if test -n "$ac_tool_prefix"; then
6295  for ac_prog in ar lib "link -lib"
6296  do
6297    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_prog_AR+:} false; then :
6302  $as_echo_n "(cached) " >&6
6303else
6304  if test -n "$AR"; then
6305  ac_cv_prog_AR="$AR" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310  IFS=$as_save_IFS
6311  test -z "$as_dir" && as_dir=.
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324AR=$ac_cv_prog_AR
6325if test -n "$AR"; then
6326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6327$as_echo "$AR" >&6; }
6328else
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
6331fi
6332
6333
6334    test -n "$AR" && break
6335  done
6336fi
6337if test -z "$AR"; then
6338  ac_ct_AR=$AR
6339  for ac_prog in ar lib "link -lib"
6340do
6341  # Extract the first word of "$ac_prog", so it can be a program name with args.
6342set dummy $ac_prog; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_prog_ac_ct_AR+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$ac_ct_AR"; then
6349  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_ac_ct_AR="$ac_prog"
6359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_AR=$ac_cv_prog_ac_ct_AR
6369if test -n "$ac_ct_AR"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6371$as_echo "$ac_ct_AR" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377
6378  test -n "$ac_ct_AR" && break
6379done
6380
6381  if test "x$ac_ct_AR" = x; then
6382    AR="false"
6383  else
6384    case $cross_compiling:$ac_tool_warned in
6385yes:)
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390    AR=$ac_ct_AR
6391  fi
6392fi
6393
6394: ${AR=ar}
6395
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6397$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6398if ${am_cv_ar_interface+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  ac_ext=c
6402ac_cpp='$CPP $CPPFLAGS'
6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406
6407   am_cv_ar_interface=ar
6408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h.  */
6410int some_variable = 0;
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"; then :
6413  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6414      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6415  (eval $am_ar_try) 2>&5
6416  ac_status=$?
6417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6418  test $ac_status = 0; }
6419      if test "$ac_status" -eq 0; then
6420        am_cv_ar_interface=ar
6421      else
6422        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6423        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6424  (eval $am_ar_try) 2>&5
6425  ac_status=$?
6426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427  test $ac_status = 0; }
6428        if test "$ac_status" -eq 0; then
6429          am_cv_ar_interface=lib
6430        else
6431          am_cv_ar_interface=unknown
6432        fi
6433      fi
6434      rm -f conftest.lib libconftest.a
6435
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438   ac_ext=c
6439ac_cpp='$CPP $CPPFLAGS'
6440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6446$as_echo "$am_cv_ar_interface" >&6; }
6447
6448case $am_cv_ar_interface in
6449ar)
6450  ;;
6451lib)
6452  # Microsoft lib, so override with the ar-lib wrapper script.
6453  # FIXME: It is wrong to rewrite AR.
6454  # But if we don't then we get into trouble of one sort or another.
6455  # A longer-term fix would be to have automake use am__AR in this case,
6456  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6457  # similar.
6458  AR="$am_aux_dir/ar-lib $AR"
6459  ;;
6460unknown)
6461  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6462  ;;
6463esac
6464
6465ac_ext=c
6466ac_cpp='$CPP $CPPFLAGS'
6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470if test -n "$ac_tool_prefix"; then
6471  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}gcc; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_CC+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  if test -n "$CC"; then
6479  ac_cv_prog_CC="$CC" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484  IFS=$as_save_IFS
6485  test -z "$as_dir" && as_dir=.
6486    for ac_exec_ext in '' $ac_executable_extensions; do
6487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490    break 2
6491  fi
6492done
6493  done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498CC=$ac_cv_prog_CC
6499if test -n "$CC"; then
6500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6501$as_echo "$CC" >&6; }
6502else
6503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507
6508fi
6509if test -z "$ac_cv_prog_CC"; then
6510  ac_ct_CC=$CC
6511  # Extract the first word of "gcc", so it can be a program name with args.
6512set dummy gcc; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if ${ac_cv_prog_ac_ct_CC+:} false; then :
6516  $as_echo_n "(cached) " >&6
6517else
6518  if test -n "$ac_ct_CC"; then
6519  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524  IFS=$as_save_IFS
6525  test -z "$as_dir" && as_dir=.
6526    for ac_exec_ext in '' $ac_executable_extensions; do
6527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528    ac_cv_prog_ac_ct_CC="gcc"
6529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530    break 2
6531  fi
6532done
6533  done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_CC=$ac_cv_prog_ac_ct_CC
6539if test -n "$ac_ct_CC"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6541$as_echo "$ac_ct_CC" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547  if test "x$ac_ct_CC" = x; then
6548    CC=""
6549  else
6550    case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556    CC=$ac_ct_CC
6557  fi
6558else
6559  CC="$ac_cv_prog_CC"
6560fi
6561
6562if test -z "$CC"; then
6563          if test -n "$ac_tool_prefix"; then
6564    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6565set dummy ${ac_tool_prefix}cc; ac_word=$2
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567$as_echo_n "checking for $ac_word... " >&6; }
6568if ${ac_cv_prog_CC+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  if test -n "$CC"; then
6572  ac_cv_prog_CC="$CC" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579    for ac_exec_ext in '' $ac_executable_extensions; do
6580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581    ac_cv_prog_CC="${ac_tool_prefix}cc"
6582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586  done
6587IFS=$as_save_IFS
6588
6589fi
6590fi
6591CC=$ac_cv_prog_CC
6592if test -n "$CC"; then
6593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6594$as_echo "$CC" >&6; }
6595else
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597$as_echo "no" >&6; }
6598fi
6599
6600
6601  fi
6602fi
6603if test -z "$CC"; then
6604  # Extract the first word of "cc", so it can be a program name with args.
6605set dummy cc; ac_word=$2
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607$as_echo_n "checking for $ac_word... " >&6; }
6608if ${ac_cv_prog_CC+:} false; then :
6609  $as_echo_n "(cached) " >&6
6610else
6611  if test -n "$CC"; then
6612  ac_cv_prog_CC="$CC" # Let the user override the test.
6613else
6614  ac_prog_rejected=no
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6623       ac_prog_rejected=yes
6624       continue
6625     fi
6626    ac_cv_prog_CC="cc"
6627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628    break 2
6629  fi
6630done
6631  done
6632IFS=$as_save_IFS
6633
6634if test $ac_prog_rejected = yes; then
6635  # We found a bogon in the path, so make sure we never use it.
6636  set dummy $ac_cv_prog_CC
6637  shift
6638  if test $# != 0; then
6639    # We chose a different compiler from the bogus one.
6640    # However, it has the same basename, so the bogon will be chosen
6641    # first if we set CC to just the basename; use the full file name.
6642    shift
6643    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6644  fi
6645fi
6646fi
6647fi
6648CC=$ac_cv_prog_CC
6649if test -n "$CC"; then
6650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6651$as_echo "$CC" >&6; }
6652else
6653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654$as_echo "no" >&6; }
6655fi
6656
6657
6658fi
6659if test -z "$CC"; then
6660  if test -n "$ac_tool_prefix"; then
6661  for ac_prog in cl.exe
6662  do
6663    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if ${ac_cv_prog_CC+:} false; then :
6668  $as_echo_n "(cached) " >&6
6669else
6670  if test -n "$CC"; then
6671  ac_cv_prog_CC="$CC" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676  IFS=$as_save_IFS
6677  test -z "$as_dir" && as_dir=.
6678    for ac_exec_ext in '' $ac_executable_extensions; do
6679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685  done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690CC=$ac_cv_prog_CC
6691if test -n "$CC"; then
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6693$as_echo "$CC" >&6; }
6694else
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699
6700    test -n "$CC" && break
6701  done
6702fi
6703if test -z "$CC"; then
6704  ac_ct_CC=$CC
6705  for ac_prog in cl.exe
6706do
6707  # Extract the first word of "$ac_prog", so it can be a program name with args.
6708set dummy $ac_prog; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if ${ac_cv_prog_ac_ct_CC+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  if test -n "$ac_ct_CC"; then
6715  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722    for ac_exec_ext in '' $ac_executable_extensions; do
6723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724    ac_cv_prog_ac_ct_CC="$ac_prog"
6725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729  done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_CC=$ac_cv_prog_ac_ct_CC
6735if test -n "$ac_ct_CC"; then
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6737$as_echo "$ac_ct_CC" >&6; }
6738else
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743
6744  test -n "$ac_ct_CC" && break
6745done
6746
6747  if test "x$ac_ct_CC" = x; then
6748    CC=""
6749  else
6750    case $cross_compiling:$ac_tool_warned in
6751yes:)
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754ac_tool_warned=yes ;;
6755esac
6756    CC=$ac_ct_CC
6757  fi
6758fi
6759
6760fi
6761
6762
6763test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6765as_fn_error $? "no acceptable C compiler found in \$PATH
6766See \`config.log' for more details" "$LINENO" 5; }
6767
6768# Provide some information about the compiler.
6769$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6770set X $ac_compile
6771ac_compiler=$2
6772for ac_option in --version -v -V -qversion; do
6773  { { ac_try="$ac_compiler $ac_option >&5"
6774case "(($ac_try" in
6775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776  *) ac_try_echo=$ac_try;;
6777esac
6778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6779$as_echo "$ac_try_echo"; } >&5
6780  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6781  ac_status=$?
6782  if test -s conftest.err; then
6783    sed '10a\
6784... rest of stderr output deleted ...
6785         10q' conftest.err >conftest.er1
6786    cat conftest.er1 >&5
6787  fi
6788  rm -f conftest.er1 conftest.err
6789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790  test $ac_status = 0; }
6791done
6792
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6794$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6795if ${ac_cv_c_compiler_gnu+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800
6801int
6802main ()
6803{
6804#ifndef __GNUC__
6805       choke me
6806#endif
6807
6808  ;
6809  return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  ac_compiler_gnu=yes
6814else
6815  ac_compiler_gnu=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818ac_cv_c_compiler_gnu=$ac_compiler_gnu
6819
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6822$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6823if test $ac_compiler_gnu = yes; then
6824  GCC=yes
6825else
6826  GCC=
6827fi
6828ac_test_CFLAGS=${CFLAGS+set}
6829ac_save_CFLAGS=$CFLAGS
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6831$as_echo_n "checking whether $CC accepts -g... " >&6; }
6832if ${ac_cv_prog_cc_g+:} false; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  ac_save_c_werror_flag=$ac_c_werror_flag
6836   ac_c_werror_flag=yes
6837   ac_cv_prog_cc_g=no
6838   CFLAGS="-g"
6839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841
6842int
6843main ()
6844{
6845
6846  ;
6847  return 0;
6848}
6849_ACEOF
6850if ac_fn_c_try_compile "$LINENO"; then :
6851  ac_cv_prog_cc_g=yes
6852else
6853  CFLAGS=""
6854      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h.  */
6856
6857int
6858main ()
6859{
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_compile "$LINENO"; then :
6866
6867else
6868  ac_c_werror_flag=$ac_save_c_werror_flag
6869	 CFLAGS="-g"
6870	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871/* end confdefs.h.  */
6872
6873int
6874main ()
6875{
6876
6877  ;
6878  return 0;
6879}
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"; then :
6882  ac_cv_prog_cc_g=yes
6883fi
6884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887fi
6888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889   ac_c_werror_flag=$ac_save_c_werror_flag
6890fi
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6892$as_echo "$ac_cv_prog_cc_g" >&6; }
6893if test "$ac_test_CFLAGS" = set; then
6894  CFLAGS=$ac_save_CFLAGS
6895elif test $ac_cv_prog_cc_g = yes; then
6896  if test "$GCC" = yes; then
6897    CFLAGS="-g -O2"
6898  else
6899    CFLAGS="-g"
6900  fi
6901else
6902  if test "$GCC" = yes; then
6903    CFLAGS="-O2"
6904  else
6905    CFLAGS=
6906  fi
6907fi
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6909$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6910if ${ac_cv_prog_cc_c89+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  ac_cv_prog_cc_c89=no
6914ac_save_CC=$CC
6915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917#include <stdarg.h>
6918#include <stdio.h>
6919struct stat;
6920/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6921struct buf { int x; };
6922FILE * (*rcsopen) (struct buf *, struct stat *, int);
6923static char *e (p, i)
6924     char **p;
6925     int i;
6926{
6927  return p[i];
6928}
6929static char *f (char * (*g) (char **, int), char **p, ...)
6930{
6931  char *s;
6932  va_list v;
6933  va_start (v,p);
6934  s = g (p, va_arg (v,int));
6935  va_end (v);
6936  return s;
6937}
6938
6939/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6940   function prototypes and stuff, but not '\xHH' hex character constants.
6941   These don't provoke an error unfortunately, instead are silently treated
6942   as 'x'.  The following induces an error, until -std is added to get
6943   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6944   array size at least.  It's necessary to write '\x00'==0 to get something
6945   that's true only with -std.  */
6946int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6947
6948/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6949   inside strings and character constants.  */
6950#define FOO(x) 'x'
6951int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6952
6953int test (int i, double x);
6954struct s1 {int (*f) (int a);};
6955struct s2 {int (*f) (double a);};
6956int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6957int argc;
6958char **argv;
6959int
6960main ()
6961{
6962return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6963  ;
6964  return 0;
6965}
6966_ACEOF
6967for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6968	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6969do
6970  CC="$ac_save_CC $ac_arg"
6971  if ac_fn_c_try_compile "$LINENO"; then :
6972  ac_cv_prog_cc_c89=$ac_arg
6973fi
6974rm -f core conftest.err conftest.$ac_objext
6975  test "x$ac_cv_prog_cc_c89" != "xno" && break
6976done
6977rm -f conftest.$ac_ext
6978CC=$ac_save_CC
6979
6980fi
6981# AC_CACHE_VAL
6982case "x$ac_cv_prog_cc_c89" in
6983  x)
6984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6985$as_echo "none needed" >&6; } ;;
6986  xno)
6987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6988$as_echo "unsupported" >&6; } ;;
6989  *)
6990    CC="$CC $ac_cv_prog_cc_c89"
6991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6992$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6993esac
6994if test "x$ac_cv_prog_cc_c89" != xno; then :
6995
6996fi
6997
6998ac_ext=c
6999ac_cpp='$CPP $CPPFLAGS'
7000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004ac_ext=c
7005ac_cpp='$CPP $CPPFLAGS'
7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7010$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7011if ${am_cv_prog_cc_c_o+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016
7017int
7018main ()
7019{
7020
7021  ;
7022  return 0;
7023}
7024_ACEOF
7025  # Make sure it works both with $CC and with simple cc.
7026  # Following AC_PROG_CC_C_O, we do the test twice because some
7027  # compilers refuse to overwrite an existing .o file with -o,
7028  # though they will create one.
7029  am_cv_prog_cc_c_o=yes
7030  for am_i in 1 2; do
7031    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7032   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); } \
7036         && test -f conftest2.$ac_objext; then
7037      : OK
7038    else
7039      am_cv_prog_cc_c_o=no
7040      break
7041    fi
7042  done
7043  rm -f core conftest*
7044  unset am_i
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7047$as_echo "$am_cv_prog_cc_c_o" >&6; }
7048if test "$am_cv_prog_cc_c_o" != yes; then
7049   # Losing compiler, so override with the script.
7050   # FIXME: It is wrong to rewrite CC.
7051   # But if we don't then we get into trouble of one sort or another.
7052   # A longer-term fix would be to have automake use am__CC in this case,
7053   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7054   CC="$am_aux_dir/compile $CC"
7055fi
7056ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062
7063depcc="$CC"   am_compiler_list=
7064
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7066$as_echo_n "checking dependency style of $depcc... " >&6; }
7067if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7071  # We make a subdir and do the tests there.  Otherwise we can end up
7072  # making bogus files that we don't know about and never remove.  For
7073  # instance it was reported that on HP-UX the gcc test will end up
7074  # making a dummy file named 'D' -- because '-MD' means "put the output
7075  # in D".
7076  rm -rf conftest.dir
7077  mkdir conftest.dir
7078  # Copy depcomp to subdir because otherwise we won't find it if we're
7079  # using a relative directory.
7080  cp "$am_depcomp" conftest.dir
7081  cd conftest.dir
7082  # We will build objects and dependencies in a subdirectory because
7083  # it helps to detect inapplicable dependency modes.  For instance
7084  # both Tru64's cc and ICC support -MD to output dependencies as a
7085  # side effect of compilation, but ICC will put the dependencies in
7086  # the current directory while Tru64 will put them in the object
7087  # directory.
7088  mkdir sub
7089
7090  am_cv_CC_dependencies_compiler_type=none
7091  if test "$am_compiler_list" = ""; then
7092     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7093  fi
7094  am__universal=false
7095  case " $depcc " in #(
7096     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7097     esac
7098
7099  for depmode in $am_compiler_list; do
7100    # Setup a source with many dependencies, because some compilers
7101    # like to wrap large dependency lists on column 80 (with \), and
7102    # we should not choose a depcomp mode which is confused by this.
7103    #
7104    # We need to recreate these files for each test, as the compiler may
7105    # overwrite some of them when testing with obscure command lines.
7106    # This happens at least with the AIX C compiler.
7107    : > sub/conftest.c
7108    for i in 1 2 3 4 5 6; do
7109      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7110      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7111      # Solaris 10 /bin/sh.
7112      echo '/* dummy */' > sub/conftst$i.h
7113    done
7114    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7115
7116    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7117    # mode.  It turns out that the SunPro C++ compiler does not properly
7118    # handle '-M -o', and we need to detect this.  Also, some Intel
7119    # versions had trouble with output in subdirs.
7120    am__obj=sub/conftest.${OBJEXT-o}
7121    am__minus_obj="-o $am__obj"
7122    case $depmode in
7123    gcc)
7124      # This depmode causes a compiler race in universal mode.
7125      test "$am__universal" = false || continue
7126      ;;
7127    nosideeffect)
7128      # After this tag, mechanisms are not by side-effect, so they'll
7129      # only be used when explicitly requested.
7130      if test "x$enable_dependency_tracking" = xyes; then
7131	continue
7132      else
7133	break
7134      fi
7135      ;;
7136    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7137      # This compiler won't grok '-c -o', but also, the minuso test has
7138      # not run yet.  These depmodes are late enough in the game, and
7139      # so weak that their functioning should not be impacted.
7140      am__obj=conftest.${OBJEXT-o}
7141      am__minus_obj=
7142      ;;
7143    none) break ;;
7144    esac
7145    if depmode=$depmode \
7146       source=sub/conftest.c object=$am__obj \
7147       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7148       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7149         >/dev/null 2>conftest.err &&
7150       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7151       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7152       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7153       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7154      # icc doesn't choke on unknown options, it will just issue warnings
7155      # or remarks (even with -Werror).  So we grep stderr for any message
7156      # that says an option was ignored or not supported.
7157      # When given -MP, icc 7.0 and 7.1 complain thusly:
7158      #   icc: Command line warning: ignoring option '-M'; no argument required
7159      # The diagnosis changed in icc 8.0:
7160      #   icc: Command line remark: option '-MP' not supported
7161      if (grep 'ignoring option' conftest.err ||
7162          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7163        am_cv_CC_dependencies_compiler_type=$depmode
7164        break
7165      fi
7166    fi
7167  done
7168
7169  cd ..
7170  rm -rf conftest.dir
7171else
7172  am_cv_CC_dependencies_compiler_type=none
7173fi
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7177$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7178CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7179
7180 if
7181  test "x$enable_dependency_tracking" != xno \
7182  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7183  am__fastdepCC_TRUE=
7184  am__fastdepCC_FALSE='#'
7185else
7186  am__fastdepCC_TRUE='#'
7187  am__fastdepCC_FALSE=
7188fi
7189
7190
7191ac_ext=c
7192ac_cpp='$CPP $CPPFLAGS'
7193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7197$as_echo_n "checking how to run the C preprocessor... " >&6; }
7198# On Suns, sometimes $CPP names a directory.
7199if test -n "$CPP" && test -d "$CPP"; then
7200  CPP=
7201fi
7202if test -z "$CPP"; then
7203  if ${ac_cv_prog_CPP+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206      # Double quotes because CPP needs to be expanded
7207    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7208    do
7209      ac_preproc_ok=false
7210for ac_c_preproc_warn_flag in '' yes
7211do
7212  # Use a header file that comes with gcc, so configuring glibc
7213  # with a fresh cross-compiler works.
7214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215  # <limits.h> exists even on freestanding compilers.
7216  # On the NeXT, cc -E runs the code through the compiler's parser,
7217  # not just through cpp. "Syntax error" is here to catch this case.
7218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h.  */
7220#ifdef __STDC__
7221# include <limits.h>
7222#else
7223# include <assert.h>
7224#endif
7225		     Syntax error
7226_ACEOF
7227if ac_fn_c_try_cpp "$LINENO"; then :
7228
7229else
7230  # Broken: fails on valid input.
7231continue
7232fi
7233rm -f conftest.err conftest.i conftest.$ac_ext
7234
7235  # OK, works on sane cases.  Now check whether nonexistent headers
7236  # can be detected and how.
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239#include <ac_nonexistent.h>
7240_ACEOF
7241if ac_fn_c_try_cpp "$LINENO"; then :
7242  # Broken: success on invalid input.
7243continue
7244else
7245  # Passes both tests.
7246ac_preproc_ok=:
7247break
7248fi
7249rm -f conftest.err conftest.i conftest.$ac_ext
7250
7251done
7252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7253rm -f conftest.i conftest.err conftest.$ac_ext
7254if $ac_preproc_ok; then :
7255  break
7256fi
7257
7258    done
7259    ac_cv_prog_CPP=$CPP
7260
7261fi
7262  CPP=$ac_cv_prog_CPP
7263else
7264  ac_cv_prog_CPP=$CPP
7265fi
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7267$as_echo "$CPP" >&6; }
7268ac_preproc_ok=false
7269for ac_c_preproc_warn_flag in '' yes
7270do
7271  # Use a header file that comes with gcc, so configuring glibc
7272  # with a fresh cross-compiler works.
7273  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274  # <limits.h> exists even on freestanding compilers.
7275  # On the NeXT, cc -E runs the code through the compiler's parser,
7276  # not just through cpp. "Syntax error" is here to catch this case.
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279#ifdef __STDC__
7280# include <limits.h>
7281#else
7282# include <assert.h>
7283#endif
7284		     Syntax error
7285_ACEOF
7286if ac_fn_c_try_cpp "$LINENO"; then :
7287
7288else
7289  # Broken: fails on valid input.
7290continue
7291fi
7292rm -f conftest.err conftest.i conftest.$ac_ext
7293
7294  # OK, works on sane cases.  Now check whether nonexistent headers
7295  # can be detected and how.
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298#include <ac_nonexistent.h>
7299_ACEOF
7300if ac_fn_c_try_cpp "$LINENO"; then :
7301  # Broken: success on invalid input.
7302continue
7303else
7304  # Passes both tests.
7305ac_preproc_ok=:
7306break
7307fi
7308rm -f conftest.err conftest.i conftest.$ac_ext
7309
7310done
7311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7312rm -f conftest.i conftest.err conftest.$ac_ext
7313if $ac_preproc_ok; then :
7314
7315else
7316  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7318as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7319See \`config.log' for more details" "$LINENO" 5; }
7320fi
7321
7322ac_ext=c
7323ac_cpp='$CPP $CPPFLAGS'
7324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7329$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7330if ${ac_cv_path_SED+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7334     for ac_i in 1 2 3 4 5 6 7; do
7335       ac_script="$ac_script$as_nl$ac_script"
7336     done
7337     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7338     { ac_script=; unset ac_script;}
7339     if test -z "$SED"; then
7340  ac_path_SED_found=false
7341  # Loop through the user's path and test for each of PROGNAME-LIST
7342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347    for ac_prog in sed gsed; do
7348    for ac_exec_ext in '' $ac_executable_extensions; do
7349      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7350      as_fn_executable_p "$ac_path_SED" || continue
7351# Check for GNU ac_path_SED and select it if it is found.
7352  # Check for GNU $ac_path_SED
7353case `"$ac_path_SED" --version 2>&1` in
7354*GNU*)
7355  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7356*)
7357  ac_count=0
7358  $as_echo_n 0123456789 >"conftest.in"
7359  while :
7360  do
7361    cat "conftest.in" "conftest.in" >"conftest.tmp"
7362    mv "conftest.tmp" "conftest.in"
7363    cp "conftest.in" "conftest.nl"
7364    $as_echo '' >> "conftest.nl"
7365    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7366    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7367    as_fn_arith $ac_count + 1 && ac_count=$as_val
7368    if test $ac_count -gt ${ac_path_SED_max-0}; then
7369      # Best one so far, save it but keep looking for a better one
7370      ac_cv_path_SED="$ac_path_SED"
7371      ac_path_SED_max=$ac_count
7372    fi
7373    # 10*(2^10) chars as input seems more than enough
7374    test $ac_count -gt 10 && break
7375  done
7376  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7377esac
7378
7379      $ac_path_SED_found && break 3
7380    done
7381  done
7382  done
7383IFS=$as_save_IFS
7384  if test -z "$ac_cv_path_SED"; then
7385    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7386  fi
7387else
7388  ac_cv_path_SED=$SED
7389fi
7390
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7393$as_echo "$ac_cv_path_SED" >&6; }
7394 SED="$ac_cv_path_SED"
7395  rm -f conftest.sed
7396
7397test -z "$SED" && SED=sed
7398Xsed="$SED -e 1s/^X//"
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7411$as_echo_n "checking for fgrep... " >&6; }
7412if ${ac_cv_path_FGREP+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7416   then ac_cv_path_FGREP="$GREP -F"
7417   else
7418     if test -z "$FGREP"; then
7419  ac_path_FGREP_found=false
7420  # Loop through the user's path and test for each of PROGNAME-LIST
7421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426    for ac_prog in fgrep; do
7427    for ac_exec_ext in '' $ac_executable_extensions; do
7428      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7429      as_fn_executable_p "$ac_path_FGREP" || continue
7430# Check for GNU ac_path_FGREP and select it if it is found.
7431  # Check for GNU $ac_path_FGREP
7432case `"$ac_path_FGREP" --version 2>&1` in
7433*GNU*)
7434  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7435*)
7436  ac_count=0
7437  $as_echo_n 0123456789 >"conftest.in"
7438  while :
7439  do
7440    cat "conftest.in" "conftest.in" >"conftest.tmp"
7441    mv "conftest.tmp" "conftest.in"
7442    cp "conftest.in" "conftest.nl"
7443    $as_echo 'FGREP' >> "conftest.nl"
7444    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7445    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7446    as_fn_arith $ac_count + 1 && ac_count=$as_val
7447    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7448      # Best one so far, save it but keep looking for a better one
7449      ac_cv_path_FGREP="$ac_path_FGREP"
7450      ac_path_FGREP_max=$ac_count
7451    fi
7452    # 10*(2^10) chars as input seems more than enough
7453    test $ac_count -gt 10 && break
7454  done
7455  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7456esac
7457
7458      $ac_path_FGREP_found && break 3
7459    done
7460  done
7461  done
7462IFS=$as_save_IFS
7463  if test -z "$ac_cv_path_FGREP"; then
7464    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7465  fi
7466else
7467  ac_cv_path_FGREP=$FGREP
7468fi
7469
7470   fi
7471fi
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7473$as_echo "$ac_cv_path_FGREP" >&6; }
7474 FGREP="$ac_cv_path_FGREP"
7475
7476
7477test -z "$GREP" && GREP=grep
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7496ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7498
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7500$as_echo_n "checking how to print strings... " >&6; }
7501# Test print first, because it will be a builtin if present.
7502if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7503   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7504  ECHO='print -r --'
7505elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7506  ECHO='printf %s\n'
7507else
7508  # Use this function as a fallback that always works.
7509  func_fallback_echo ()
7510  {
7511    eval 'cat <<_LTECHO_EOF
7512$1
7513_LTECHO_EOF'
7514  }
7515  ECHO='func_fallback_echo'
7516fi
7517
7518# func_echo_all arg...
7519# Invoke $ECHO with all args, space-separated.
7520func_echo_all ()
7521{
7522    $ECHO ""
7523}
7524
7525case $ECHO in
7526  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7527$as_echo "printf" >&6; } ;;
7528  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7529$as_echo "print -r" >&6; } ;;
7530  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7531$as_echo "cat" >&6; } ;;
7532esac
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549# Check whether --with-gnu-ld was given.
7550if test "${with_gnu_ld+set}" = set; then :
7551  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7552else
7553  with_gnu_ld=no
7554fi
7555
7556ac_prog=ld
7557if test yes = "$GCC"; then
7558  # Check if gcc -print-prog-name=ld gives a path.
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7560$as_echo_n "checking for ld used by $CC... " >&6; }
7561  case $host in
7562  *-*-mingw*)
7563    # gcc leaves a trailing carriage return, which upsets mingw
7564    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7565  *)
7566    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7567  esac
7568  case $ac_prog in
7569    # Accept absolute paths.
7570    [\\/]* | ?:[\\/]*)
7571      re_direlt='/[^/][^/]*/\.\./'
7572      # Canonicalize the pathname of ld
7573      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7574      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7575	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7576      done
7577      test -z "$LD" && LD=$ac_prog
7578      ;;
7579  "")
7580    # If it fails, then pretend we aren't using GCC.
7581    ac_prog=ld
7582    ;;
7583  *)
7584    # If it is relative, then search for the first ld in PATH.
7585    with_gnu_ld=unknown
7586    ;;
7587  esac
7588elif test yes = "$with_gnu_ld"; then
7589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7590$as_echo_n "checking for GNU ld... " >&6; }
7591else
7592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7593$as_echo_n "checking for non-GNU ld... " >&6; }
7594fi
7595if ${lt_cv_path_LD+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  if test -z "$LD"; then
7599  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7600  for ac_dir in $PATH; do
7601    IFS=$lt_save_ifs
7602    test -z "$ac_dir" && ac_dir=.
7603    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7604      lt_cv_path_LD=$ac_dir/$ac_prog
7605      # Check to see if the program is GNU ld.  I'd rather use --version,
7606      # but apparently some variants of GNU ld only accept -v.
7607      # Break only if it was the GNU/non-GNU ld that we prefer.
7608      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7609      *GNU* | *'with BFD'*)
7610	test no != "$with_gnu_ld" && break
7611	;;
7612      *)
7613	test yes != "$with_gnu_ld" && break
7614	;;
7615      esac
7616    fi
7617  done
7618  IFS=$lt_save_ifs
7619else
7620  lt_cv_path_LD=$LD # Let the user override the test with a path.
7621fi
7622fi
7623
7624LD=$lt_cv_path_LD
7625if test -n "$LD"; then
7626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7627$as_echo "$LD" >&6; }
7628else
7629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
7631fi
7632test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7634$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7635if ${lt_cv_prog_gnu_ld+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7639case `$LD -v 2>&1 </dev/null` in
7640*GNU* | *'with BFD'*)
7641  lt_cv_prog_gnu_ld=yes
7642  ;;
7643*)
7644  lt_cv_prog_gnu_ld=no
7645  ;;
7646esac
7647fi
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7649$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7650with_gnu_ld=$lt_cv_prog_gnu_ld
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662# Check whether --with-gnu-ld was given.
7663if test "${with_gnu_ld+set}" = set; then :
7664  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7665else
7666  with_gnu_ld=no
7667fi
7668
7669ac_prog=ld
7670if test yes = "$GCC"; then
7671  # Check if gcc -print-prog-name=ld gives a path.
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7673$as_echo_n "checking for ld used by $CC... " >&6; }
7674  case $host in
7675  *-*-mingw*)
7676    # gcc leaves a trailing carriage return, which upsets mingw
7677    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7678  *)
7679    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7680  esac
7681  case $ac_prog in
7682    # Accept absolute paths.
7683    [\\/]* | ?:[\\/]*)
7684      re_direlt='/[^/][^/]*/\.\./'
7685      # Canonicalize the pathname of ld
7686      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7687      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7688	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7689      done
7690      test -z "$LD" && LD=$ac_prog
7691      ;;
7692  "")
7693    # If it fails, then pretend we aren't using GCC.
7694    ac_prog=ld
7695    ;;
7696  *)
7697    # If it is relative, then search for the first ld in PATH.
7698    with_gnu_ld=unknown
7699    ;;
7700  esac
7701elif test yes = "$with_gnu_ld"; then
7702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7703$as_echo_n "checking for GNU ld... " >&6; }
7704else
7705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7706$as_echo_n "checking for non-GNU ld... " >&6; }
7707fi
7708if ${lt_cv_path_LD+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  if test -z "$LD"; then
7712  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7713  for ac_dir in $PATH; do
7714    IFS=$lt_save_ifs
7715    test -z "$ac_dir" && ac_dir=.
7716    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7717      lt_cv_path_LD=$ac_dir/$ac_prog
7718      # Check to see if the program is GNU ld.  I'd rather use --version,
7719      # but apparently some variants of GNU ld only accept -v.
7720      # Break only if it was the GNU/non-GNU ld that we prefer.
7721      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7722      *GNU* | *'with BFD'*)
7723	test no != "$with_gnu_ld" && break
7724	;;
7725      *)
7726	test yes != "$with_gnu_ld" && break
7727	;;
7728      esac
7729    fi
7730  done
7731  IFS=$lt_save_ifs
7732else
7733  lt_cv_path_LD=$LD # Let the user override the test with a path.
7734fi
7735fi
7736
7737LD=$lt_cv_path_LD
7738if test -n "$LD"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7740$as_echo "$LD" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7747$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7748if ${lt_cv_prog_gnu_ld+:} false; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7752case `$LD -v 2>&1 </dev/null` in
7753*GNU* | *'with BFD'*)
7754  lt_cv_prog_gnu_ld=yes
7755  ;;
7756*)
7757  lt_cv_prog_gnu_ld=no
7758  ;;
7759esac
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7762$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7763with_gnu_ld=$lt_cv_prog_gnu_ld
7764
7765
7766
7767
7768
7769
7770
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7772$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7773if ${ac_cv_prog_cc_c99+:} false; then :
7774  $as_echo_n "(cached) " >&6
7775else
7776  ac_cv_prog_cc_c99=no
7777ac_save_CC=$CC
7778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780#include <stdarg.h>
7781#include <stdbool.h>
7782#include <stdlib.h>
7783#include <wchar.h>
7784#include <stdio.h>
7785
7786// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7787#define debug(...) fprintf (stderr, __VA_ARGS__)
7788#define showlist(...) puts (#__VA_ARGS__)
7789#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7790static void
7791test_varargs_macros (void)
7792{
7793  int x = 1234;
7794  int y = 5678;
7795  debug ("Flag");
7796  debug ("X = %d\n", x);
7797  showlist (The first, second, and third items.);
7798  report (x>y, "x is %d but y is %d", x, y);
7799}
7800
7801// Check long long types.
7802#define BIG64 18446744073709551615ull
7803#define BIG32 4294967295ul
7804#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7805#if !BIG_OK
7806  your preprocessor is broken;
7807#endif
7808#if BIG_OK
7809#else
7810  your preprocessor is broken;
7811#endif
7812static long long int bignum = -9223372036854775807LL;
7813static unsigned long long int ubignum = BIG64;
7814
7815struct incomplete_array
7816{
7817  int datasize;
7818  double data[];
7819};
7820
7821struct named_init {
7822  int number;
7823  const wchar_t *name;
7824  double average;
7825};
7826
7827typedef const char *ccp;
7828
7829static inline int
7830test_restrict (ccp restrict text)
7831{
7832  // See if C++-style comments work.
7833  // Iterate through items via the restricted pointer.
7834  // Also check for declarations in for loops.
7835  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7836    continue;
7837  return 0;
7838}
7839
7840// Check varargs and va_copy.
7841static void
7842test_varargs (const char *format, ...)
7843{
7844  va_list args;
7845  va_start (args, format);
7846  va_list args_copy;
7847  va_copy (args_copy, args);
7848
7849  const char *str;
7850  int number;
7851  float fnumber;
7852
7853  while (*format)
7854    {
7855      switch (*format++)
7856	{
7857	case 's': // string
7858	  str = va_arg (args_copy, const char *);
7859	  break;
7860	case 'd': // int
7861	  number = va_arg (args_copy, int);
7862	  break;
7863	case 'f': // float
7864	  fnumber = va_arg (args_copy, double);
7865	  break;
7866	default:
7867	  break;
7868	}
7869    }
7870  va_end (args_copy);
7871  va_end (args);
7872}
7873
7874int
7875main ()
7876{
7877
7878  // Check bool.
7879  _Bool success = false;
7880
7881  // Check restrict.
7882  if (test_restrict ("String literal") == 0)
7883    success = true;
7884  char *restrict newvar = "Another string";
7885
7886  // Check varargs.
7887  test_varargs ("s, d' f .", "string", 65, 34.234);
7888  test_varargs_macros ();
7889
7890  // Check flexible array members.
7891  struct incomplete_array *ia =
7892    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7893  ia->datasize = 10;
7894  for (int i = 0; i < ia->datasize; ++i)
7895    ia->data[i] = i * 1.234;
7896
7897  // Check named initializers.
7898  struct named_init ni = {
7899    .number = 34,
7900    .name = L"Test wide string",
7901    .average = 543.34343,
7902  };
7903
7904  ni.number = 58;
7905
7906  int dynamic_array[ni.number];
7907  dynamic_array[ni.number - 1] = 543;
7908
7909  // work around unused variable warnings
7910  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7911	  || dynamic_array[ni.number - 1] != 543);
7912
7913  ;
7914  return 0;
7915}
7916_ACEOF
7917for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7918do
7919  CC="$ac_save_CC $ac_arg"
7920  if ac_fn_c_try_compile "$LINENO"; then :
7921  ac_cv_prog_cc_c99=$ac_arg
7922fi
7923rm -f core conftest.err conftest.$ac_objext
7924  test "x$ac_cv_prog_cc_c99" != "xno" && break
7925done
7926rm -f conftest.$ac_ext
7927CC=$ac_save_CC
7928
7929fi
7930# AC_CACHE_VAL
7931case "x$ac_cv_prog_cc_c99" in
7932  x)
7933    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7934$as_echo "none needed" >&6; } ;;
7935  xno)
7936    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7937$as_echo "unsupported" >&6; } ;;
7938  *)
7939    CC="$CC $ac_cv_prog_cc_c99"
7940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7941$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7942esac
7943if test "x$ac_cv_prog_cc_c99" != xno; then :
7944
7945fi
7946
7947
7948
7949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7950$as_echo_n "checking for C compiler vendor... " >&6; }
7951if ${ax_cv_c_compiler_vendor+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954
7955	vendors="
7956		intel:		__ICC,__ECC,__INTEL_COMPILER
7957		ibm:		__xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
7958		pathscale:	__PATHCC__,__PATHSCALE__
7959		clang:		__clang__
7960		cray:		_CRAYC
7961		fujitsu:	__FUJITSU
7962		sdcc:		SDCC,__SDCC
7963		sx:		_SX
7964		portland:	__PGI
7965		gnu:		__GNUC__
7966		sun:		__SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
7967		hp:		__HP_cc,__HP_aCC
7968		dec:		__DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7969		borland:	__BORLANDC__,__CODEGEARC__,__TURBOC__
7970		comeau:		__COMO__
7971		kai:		__KCC
7972		lcc:		__LCC__
7973		sgi:		__sgi,sgi
7974		microsoft:	_MSC_VER
7975		metrowerks:	__MWERKS__
7976		watcom:		__WATCOMC__
7977		tcc:		__TINYC__
7978		unknown:	UNKNOWN
7979	"
7980	for ventest in $vendors; do
7981	    case $ventest in
7982		*:)
7983		    vendor=$ventest
7984		    continue
7985		    ;;
7986		*)
7987		    vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
7988		    ;;
7989	    esac
7990
7991	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993
7994int
7995main ()
7996{
7997
7998#if !($vencpp)
7999      thisisanerror;
8000#endif
8001
8002  ;
8003  return 0;
8004}
8005_ACEOF
8006if ac_fn_c_try_compile "$LINENO"; then :
8007  break
8008fi
8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010	done
8011
8012	ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8013
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8016$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8017
8018    ac_ext=c
8019ac_cpp='$CPP $CPPFLAGS'
8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022ac_compiler_gnu=$ac_cv_c_compiler_gnu
8023
8024
8025
8026
8027
8028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for most reasonable warnings" >&5
8029$as_echo_n "checking CFLAGS for most reasonable warnings... " >&6; }
8030if ${ac_cv_cflags_warn_all+:} false; then :
8031  $as_echo_n "(cached) " >&6
8032else
8033
8034	ac_cv_cflags_warn_all=""
8035	ac_save_cflags_warn_all_found="yes"
8036		case "$ax_cv_c_compiler_vendor" in #(
8037  intel) :
8038    ac_cv_cflags_warn_all="-w2" ;; #(
8039  ibm) :
8040    ac_cv_cflags_warn_all="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" ;; #(
8041  pathscale) :
8042     ;; #(
8043  clang) :
8044    ac_cv_cflags_warn_all="-Wall" ;; #(
8045  cray) :
8046    ac_cv_cflags_warn_all="-h msglevel 2" ;; #(
8047  fujitsu) :
8048     ;; #(
8049  sdcc) :
8050     ;; #(
8051  sx) :
8052    ac_cv_cflags_warn_all="-pvctl,fullmsg" ;; #(
8053  portland) :
8054     ;; #(
8055  gnu) :
8056    ac_cv_cflags_warn_all="-Wall" ;; #(
8057  sun) :
8058    ac_cv_cflags_warn_all="-v" ;; #(
8059  hp) :
8060    ac_cv_cflags_warn_all="+w1" ;; #(
8061  dec) :
8062    ac_cv_cflags_warn_all="-verbose -w0 -warnprotos" ;; #(
8063  borland) :
8064     ;; #(
8065  comeau) :
8066     ;; #(
8067  kai) :
8068     ;; #(
8069  lcc) :
8070     ;; #(
8071  sgi) :
8072    ac_cv_cflags_warn_all="-fullwarn" ;; #(
8073  microsoft) :
8074     ;; #(
8075  metrowerks) :
8076     ;; #(
8077  watcom) :
8078     ;; #(
8079  tcc) :
8080     ;; #(
8081  unknown) :
8082
8083				    ac_cv_cflags_warn_all=""
8084				    ac_save_cflags_warn_all_found="no"
8085				 ;; #(
8086  *) :
8087
8088				    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&5
8089$as_echo "$as_me: WARNING: Unknown compiler vendor returned by AX_COMPILER_VENDOR" >&2;}
8090				    ac_cv_cflags_warn_all=""
8091				    ac_save_cflags_warn_all_found="no"
8092
8093	 ;;
8094esac
8095
8096	if test "x$ac_save_cflags_warn_all_found" = "xyes"; then :
8097  	    if test "x$ac_cv_cflags_warn_all" != "x"; then :
8098
8099if ${CFLAGS+:} false; then :
8100
8101  case " $CFLAGS " in #(
8102  *" $ac_cv_cflags_warn_all "*) :
8103    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8104  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8105  ac_status=$?
8106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8107  test $ac_status = 0; } ;; #(
8108  *) :
8109
8110     CFLAGS="$ac_cv_cflags_warn_all $CFLAGS"
8111     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8112  (: CFLAGS="$CFLAGS") 2>&5
8113  ac_status=$?
8114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8115  test $ac_status = 0; }
8116     ;;
8117esac
8118
8119else
8120
8121  CFLAGS=$ac_cv_cflags_warn_all
8122  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8123  (: CFLAGS="$CFLAGS") 2>&5
8124  ac_status=$?
8125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8126  test $ac_status = 0; }
8127
8128fi
8129
8130fi
8131
8132else
8133  	    true
8134
8135fi
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8138$as_echo "$ac_cv_cflags_warn_all" >&6; }
8139
8140    ac_ext=c
8141ac_cpp='$CPP $CPPFLAGS'
8142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8144ac_compiler_gnu=$ac_cv_c_compiler_gnu
8145
8146
8147
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8149$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8150set x ${MAKE-make}
8151ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8152if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8153  $as_echo_n "(cached) " >&6
8154else
8155  cat >conftest.make <<\_ACEOF
8156SHELL = /bin/sh
8157all:
8158	@echo '@@@%%%=$(MAKE)=@@@%%%'
8159_ACEOF
8160# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8161case `${MAKE-make} -f conftest.make 2>/dev/null` in
8162  *@@@%%%=?*=@@@%%%*)
8163    eval ac_cv_prog_make_${ac_make}_set=yes;;
8164  *)
8165    eval ac_cv_prog_make_${ac_make}_set=no;;
8166esac
8167rm -f conftest.make
8168fi
8169if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8171$as_echo "yes" >&6; }
8172  SET_MAKE=
8173else
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
8176  SET_MAKE="MAKE=${MAKE-make}"
8177fi
8178
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8180$as_echo_n "checking whether ln -s works... " >&6; }
8181LN_S=$as_ln_s
8182if test "$LN_S" = "ln -s"; then
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8184$as_echo "yes" >&6; }
8185else
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8187$as_echo "no, using $LN_S" >&6; }
8188fi
8189
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8191$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8192if ${ac_cv_path_SED+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8196     for ac_i in 1 2 3 4 5 6 7; do
8197       ac_script="$ac_script$as_nl$ac_script"
8198     done
8199     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8200     { ac_script=; unset ac_script;}
8201     if test -z "$SED"; then
8202  ac_path_SED_found=false
8203  # Loop through the user's path and test for each of PROGNAME-LIST
8204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207  IFS=$as_save_IFS
8208  test -z "$as_dir" && as_dir=.
8209    for ac_prog in sed gsed; do
8210    for ac_exec_ext in '' $ac_executable_extensions; do
8211      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8212      as_fn_executable_p "$ac_path_SED" || continue
8213# Check for GNU ac_path_SED and select it if it is found.
8214  # Check for GNU $ac_path_SED
8215case `"$ac_path_SED" --version 2>&1` in
8216*GNU*)
8217  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8218*)
8219  ac_count=0
8220  $as_echo_n 0123456789 >"conftest.in"
8221  while :
8222  do
8223    cat "conftest.in" "conftest.in" >"conftest.tmp"
8224    mv "conftest.tmp" "conftest.in"
8225    cp "conftest.in" "conftest.nl"
8226    $as_echo '' >> "conftest.nl"
8227    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8228    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8229    as_fn_arith $ac_count + 1 && ac_count=$as_val
8230    if test $ac_count -gt ${ac_path_SED_max-0}; then
8231      # Best one so far, save it but keep looking for a better one
8232      ac_cv_path_SED="$ac_path_SED"
8233      ac_path_SED_max=$ac_count
8234    fi
8235    # 10*(2^10) chars as input seems more than enough
8236    test $ac_count -gt 10 && break
8237  done
8238  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8239esac
8240
8241      $ac_path_SED_found && break 3
8242    done
8243  done
8244  done
8245IFS=$as_save_IFS
8246  if test -z "$ac_cv_path_SED"; then
8247    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8248  fi
8249else
8250  ac_cv_path_SED=$SED
8251fi
8252
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8255$as_echo "$ac_cv_path_SED" >&6; }
8256 SED="$ac_cv_path_SED"
8257  rm -f conftest.sed
8258
8259for ac_prog in gawk mawk nawk awk
8260do
8261  # Extract the first word of "$ac_prog", so it can be a program name with args.
8262set dummy $ac_prog; ac_word=$2
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if ${ac_cv_prog_AWK+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  if test -n "$AWK"; then
8269  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8270else
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274  IFS=$as_save_IFS
8275  test -z "$as_dir" && as_dir=.
8276    for ac_exec_ext in '' $ac_executable_extensions; do
8277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278    ac_cv_prog_AWK="$ac_prog"
8279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280    break 2
8281  fi
8282done
8283  done
8284IFS=$as_save_IFS
8285
8286fi
8287fi
8288AWK=$ac_cv_prog_AWK
8289if test -n "$AWK"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8291$as_echo "$AWK" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
8295fi
8296
8297
8298  test -n "$AWK" && break
8299done
8300
8301
8302if test -n "$ac_tool_prefix"; then
8303  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
8307if ${ac_cv_prog_RANLIB+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  if test -n "$RANLIB"; then
8311  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316  IFS=$as_save_IFS
8317  test -z "$as_dir" && as_dir=.
8318    for ac_exec_ext in '' $ac_executable_extensions; do
8319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322    break 2
8323  fi
8324done
8325  done
8326IFS=$as_save_IFS
8327
8328fi
8329fi
8330RANLIB=$ac_cv_prog_RANLIB
8331if test -n "$RANLIB"; then
8332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8333$as_echo "$RANLIB" >&6; }
8334else
8335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340fi
8341if test -z "$ac_cv_prog_RANLIB"; then
8342  ac_ct_RANLIB=$RANLIB
8343  # Extract the first word of "ranlib", so it can be a program name with args.
8344set dummy ranlib; ac_word=$2
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
8347if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  if test -n "$ac_ct_RANLIB"; then
8351  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356  IFS=$as_save_IFS
8357  test -z "$as_dir" && as_dir=.
8358    for ac_exec_ext in '' $ac_executable_extensions; do
8359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360    ac_cv_prog_ac_ct_RANLIB="ranlib"
8361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362    break 2
8363  fi
8364done
8365  done
8366IFS=$as_save_IFS
8367
8368fi
8369fi
8370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8371if test -n "$ac_ct_RANLIB"; then
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8373$as_echo "$ac_ct_RANLIB" >&6; }
8374else
8375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377fi
8378
8379  if test "x$ac_ct_RANLIB" = x; then
8380    RANLIB=":"
8381  else
8382    case $cross_compiling:$ac_tool_warned in
8383yes:)
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386ac_tool_warned=yes ;;
8387esac
8388    RANLIB=$ac_ct_RANLIB
8389  fi
8390else
8391  RANLIB="$ac_cv_prog_RANLIB"
8392fi
8393
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8395$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8396
8397# Check whether --with-dmalloc was given.
8398if test "${with_dmalloc+set}" = set; then :
8399  withval=$with_dmalloc; if test "$withval" = yes; then
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8401$as_echo "yes" >&6; }
8402
8403$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8404
8405  LIBS="$LIBS -ldmalloc"
8406  LDFLAGS="$LDFLAGS -g"
8407else
8408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410fi
8411else
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413$as_echo "no" >&6; }
8414fi
8415
8416
8417
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8419$as_echo_n "checking for __attribute__... " >&6; }
8420if ${ax_cv___attribute__+:} false; then :
8421  $as_echo_n "(cached) " >&6
8422else
8423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425#include <stdlib.h>
8426	  static void foo(void) __attribute__ ((unused));
8427	  static void
8428	  foo(void) {
8429	      exit(1);
8430	  }
8431
8432int
8433main ()
8434{
8435
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440if ac_fn_c_try_compile "$LINENO"; then :
8441  ax_cv___attribute__=yes
8442else
8443  ax_cv___attribute__=no
8444
8445fi
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8450$as_echo "$ax_cv___attribute__" >&6; }
8451  if test "$ax_cv___attribute__" = "yes"; then
8452
8453$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8454
8455  fi
8456
8457
8458
8459
8460
8461
8462
8463# Check whether --with-gcc-arch was given.
8464if test "${with_gcc_arch+set}" = set; then :
8465  withval=$with_gcc_arch; ax_gcc_arch=$withval
8466else
8467  ax_gcc_arch=yes
8468fi
8469
8470
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8472$as_echo_n "checking for gcc architecture flag... " >&6; }
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8474$as_echo "" >&6; }
8475if ${ax_cv_gcc_archflag+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478
8479ax_cv_gcc_archflag="unknown"
8480
8481if test "$GCC" = yes; then
8482
8483if test "x$ax_gcc_arch" = xyes; then
8484ax_gcc_arch=""
8485if test "$cross_compiling" = no; then
8486case $host_cpu in
8487  i[3456]86*|x86_64*|amd64*) # use cpuid codes
8488
8489ac_ext=c
8490ac_cpp='$CPP $CPPFLAGS'
8491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8496$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8497if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  if test "$cross_compiling" = yes; then :
8501  ax_cv_gcc_x86_cpuid_0=unknown
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505#include <stdio.h>
8506int
8507main ()
8508{
8509
8510     int op = 0, level = 0, eax, ebx, ecx, edx;
8511     FILE *f;
8512      __asm__ __volatile__ ("xchg %%ebx, %1\n"
8513        "cpuid\n"
8514        "xchg %%ebx, %1\n"
8515        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8516        : "a" (op), "2" (level));
8517
8518     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8519     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8520     fclose(f);
8521     return 0;
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527if ac_fn_c_try_run "$LINENO"; then :
8528  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8529else
8530  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8531fi
8532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8533  conftest.$ac_objext conftest.beam conftest.$ac_ext
8534fi
8535
8536fi
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8538$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8539ac_ext=c
8540ac_cpp='$CPP $CPPFLAGS'
8541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8543ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544
8545
8546
8547
8548ac_ext=c
8549ac_cpp='$CPP $CPPFLAGS'
8550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_c_compiler_gnu
8553
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8555$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8556if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  if test "$cross_compiling" = yes; then :
8560  ax_cv_gcc_x86_cpuid_1=unknown
8561else
8562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564#include <stdio.h>
8565int
8566main ()
8567{
8568
8569     int op = 1, level = 0, eax, ebx, ecx, edx;
8570     FILE *f;
8571      __asm__ __volatile__ ("xchg %%ebx, %1\n"
8572        "cpuid\n"
8573        "xchg %%ebx, %1\n"
8574        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8575        : "a" (op), "2" (level));
8576
8577     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8578     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8579     fclose(f);
8580     return 0;
8581
8582  ;
8583  return 0;
8584}
8585_ACEOF
8586if ac_fn_c_try_run "$LINENO"; then :
8587  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8588else
8589  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8590fi
8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8592  conftest.$ac_objext conftest.beam conftest.$ac_ext
8593fi
8594
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8597$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8598ac_ext=c
8599ac_cpp='$CPP $CPPFLAGS'
8600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8602ac_compiler_gnu=$ac_cv_c_compiler_gnu
8603
8604
8605
8606     case $ax_cv_gcc_x86_cpuid_0 in
8607       *:756e6547:6c65746e:49656e69) # Intel
8608          case $ax_cv_gcc_x86_cpuid_1 in
8609	    *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8610	    *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8611	    *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8612	    *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8613	    *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8614	    *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8615	    *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8616	    *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8617	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8618	    *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8619	    *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8620	    *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8621	    *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8622	    *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8623	    *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8624	    *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8625	    *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8626	    *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8627	    *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8628	    # fallback
8629	    *5??:*:*:*) ax_gcc_arch=pentium ;;
8630	    *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8631	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8632	    *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8633          esac ;;
8634       *:68747541:444d4163:69746e65) # AMD
8635          case $ax_cv_gcc_x86_cpuid_1 in
8636	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8637	    *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8638	    *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8639	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8640	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8641	    *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8642	    *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8643	    *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8644	    *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8645	    *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8646	    *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8647	    *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8648	    *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8649	    *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8650	    # fallback
8651	    *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8652	    *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8653	    *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8654	    *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8655	    *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8656	    *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8657	    *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8658	    *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8659          esac ;;
8660	*:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
8661	   case $ax_cv_gcc_x86_cpuid_1 in
8662	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8663	     *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8664	     *66?:*:*:*) ax_gcc_arch=winchip2 ;;
8665	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8666	     *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8667	   esac ;;
8668     esac
8669     if test x"$ax_gcc_arch" = x; then # fallback
8670	case $host_cpu in
8671	  i586*) ax_gcc_arch=pentium ;;
8672	  i686*) ax_gcc_arch=pentiumpro ;;
8673        esac
8674     fi
8675     ;;
8676
8677  sparc*)
8678     # Extract the first word of "prtdiag", so it can be a program name with args.
8679set dummy prtdiag; ac_word=$2
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if ${ac_cv_path_PRTDIAG+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  case $PRTDIAG in
8686  [\\/]* | ?:[\\/]*)
8687  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8688  ;;
8689  *)
8690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8692for as_dir in $as_dummy
8693do
8694  IFS=$as_save_IFS
8695  test -z "$as_dir" && as_dir=.
8696    for ac_exec_ext in '' $ac_executable_extensions; do
8697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700    break 2
8701  fi
8702done
8703  done
8704IFS=$as_save_IFS
8705
8706  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8707  ;;
8708esac
8709fi
8710PRTDIAG=$ac_cv_path_PRTDIAG
8711if test -n "$PRTDIAG"; then
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8713$as_echo "$PRTDIAG" >&6; }
8714else
8715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8721     cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
8722     case $cputype in
8723         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8724         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8725         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8726         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8727         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8728         *cypress*) ax_gcc_arch=cypress ;;
8729     esac ;;
8730
8731  alphaev5) ax_gcc_arch=ev5 ;;
8732  alphaev56) ax_gcc_arch=ev56 ;;
8733  alphapca56) ax_gcc_arch="pca56 ev56" ;;
8734  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8735  alphaev6) ax_gcc_arch=ev6 ;;
8736  alphaev67) ax_gcc_arch=ev67 ;;
8737  alphaev68) ax_gcc_arch="ev68 ev67" ;;
8738  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8739  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8740  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8741
8742  powerpc*)
8743     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8744     cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
8745     case $cputype in
8746       *750*) ax_gcc_arch="750 G3" ;;
8747       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8748       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8749       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8750       *970*) ax_gcc_arch="970 G5 power4";;
8751       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8752       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8753       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8754       *POWER7*) ax_gcc_arch="power7";;
8755       *POWER8*) ax_gcc_arch="power8";;
8756       *POWER9*) ax_gcc_arch="power9";;
8757       *POWER10*) ax_gcc_arch="power10";;
8758       *) ax_gcc_arch=$cputype ;;
8759     esac
8760     ax_gcc_arch="$ax_gcc_arch powerpc"
8761     ;;
8762  aarch64)
8763     cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8764     cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8765     cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
8766     case $cpuimpl in
8767       0x42) case $cpuarch in
8768               8) case $cpuvar in
8769                    0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
8770                  esac
8771                  ;;
8772             esac
8773             ;;
8774       0x43) case $cpuarch in
8775               8) case $cpuvar in
8776                    0x0) ax_gcc_arch="thunderx armv8-a native" ;;
8777                    0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
8778                  esac
8779                  ;;
8780             esac
8781             ;;
8782      esac
8783      ;;
8784esac
8785fi # not cross-compiling
8786fi # guess arch
8787
8788if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8789if test "xyes" = xyes; then # if we require portable code
8790  flag_prefixes="-mtune="
8791  if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
8792  # -mcpu=$arch and m$arch generate nonportable code on every arch except
8793  # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
8794  case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
8795else
8796  flag_prefixes="-march= -mcpu= -m"
8797fi
8798for flag_prefix in $flag_prefixes; do
8799  for arch in $ax_gcc_arch; do
8800    flag="$flag_prefix$arch"
8801    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8803$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8804if eval \${$as_CACHEVAR+:} false; then :
8805  $as_echo_n "(cached) " >&6
8806else
8807
8808  ax_check_save_flags=$CFLAGS
8809  CFLAGS="$CFLAGS  $flag"
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812
8813int
8814main ()
8815{
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821if ac_fn_c_try_compile "$LINENO"; then :
8822  eval "$as_CACHEVAR=yes"
8823else
8824  eval "$as_CACHEVAR=no"
8825fi
8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827  CFLAGS=$ax_check_save_flags
8828fi
8829eval ac_res=\$$as_CACHEVAR
8830	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8831$as_echo "$ac_res" >&6; }
8832if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
8833  if test "x$ax_cv_c_compiler_vendor" = xclang; then
8834      if test "xyes" = xyes; then
8835	if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
8836      fi
8837    fi; ax_cv_gcc_archflag=$flag; break
8838else
8839  :
8840fi
8841
8842  done
8843  test "x$ax_cv_gcc_archflag" = xunknown || break
8844done
8845fi
8846
8847fi # $GCC=yes
8848
8849fi
8850
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8852$as_echo_n "checking for gcc architecture flag... " >&6; }
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8854$as_echo "$ax_cv_gcc_archflag" >&6; }
8855if test "x$ax_cv_gcc_archflag" = xunknown; then
8856  :
8857else
8858  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8859fi
8860
8861
8862
8863
8864
8865
8866
8867
8868if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8869	if test -n "$ac_tool_prefix"; then
8870  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8871set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873$as_echo_n "checking for $ac_word... " >&6; }
8874if ${ac_cv_path_PKG_CONFIG+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  case $PKG_CONFIG in
8878  [\\/]* | ?:[\\/]*)
8879  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8880  ;;
8881  *)
8882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885  IFS=$as_save_IFS
8886  test -z "$as_dir" && as_dir=.
8887    for ac_exec_ext in '' $ac_executable_extensions; do
8888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891    break 2
8892  fi
8893done
8894  done
8895IFS=$as_save_IFS
8896
8897  ;;
8898esac
8899fi
8900PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8901if test -n "$PKG_CONFIG"; then
8902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8903$as_echo "$PKG_CONFIG" >&6; }
8904else
8905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909
8910fi
8911if test -z "$ac_cv_path_PKG_CONFIG"; then
8912  ac_pt_PKG_CONFIG=$PKG_CONFIG
8913  # Extract the first word of "pkg-config", so it can be a program name with args.
8914set dummy pkg-config; ac_word=$2
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8918  $as_echo_n "(cached) " >&6
8919else
8920  case $ac_pt_PKG_CONFIG in
8921  [\\/]* | ?:[\\/]*)
8922  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8923  ;;
8924  *)
8925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $PATH
8927do
8928  IFS=$as_save_IFS
8929  test -z "$as_dir" && as_dir=.
8930    for ac_exec_ext in '' $ac_executable_extensions; do
8931  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8933    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934    break 2
8935  fi
8936done
8937  done
8938IFS=$as_save_IFS
8939
8940  ;;
8941esac
8942fi
8943ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8944if test -n "$ac_pt_PKG_CONFIG"; then
8945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8946$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8947else
8948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
8950fi
8951
8952  if test "x$ac_pt_PKG_CONFIG" = x; then
8953    PKG_CONFIG=""
8954  else
8955    case $cross_compiling:$ac_tool_warned in
8956yes:)
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8959ac_tool_warned=yes ;;
8960esac
8961    PKG_CONFIG=$ac_pt_PKG_CONFIG
8962  fi
8963else
8964  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8965fi
8966
8967fi
8968if test -n "$PKG_CONFIG"; then
8969	_pkg_min_version=0.20
8970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8971$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8972	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8974$as_echo "yes" >&6; }
8975	else
8976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977$as_echo "no" >&6; }
8978		PKG_CONFIG=""
8979	fi
8980fi
8981
8982
8983
8984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8985$as_echo_n "checking for C compiler vendor... " >&6; }
8986if ${ax_cv_c_compiler_vendor+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989
8990	vendors="
8991		intel:		__ICC,__ECC,__INTEL_COMPILER
8992		ibm:		__xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
8993		pathscale:	__PATHCC__,__PATHSCALE__
8994		clang:		__clang__
8995		cray:		_CRAYC
8996		fujitsu:	__FUJITSU
8997		sdcc:		SDCC,__SDCC
8998		sx:		_SX
8999		portland:	__PGI
9000		gnu:		__GNUC__
9001		sun:		__SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
9002		hp:		__HP_cc,__HP_aCC
9003		dec:		__DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9004		borland:	__BORLANDC__,__CODEGEARC__,__TURBOC__
9005		comeau:		__COMO__
9006		kai:		__KCC
9007		lcc:		__LCC__
9008		sgi:		__sgi,sgi
9009		microsoft:	_MSC_VER
9010		metrowerks:	__MWERKS__
9011		watcom:		__WATCOMC__
9012		tcc:		__TINYC__
9013		unknown:	UNKNOWN
9014	"
9015	for ventest in $vendors; do
9016	    case $ventest in
9017		*:)
9018		    vendor=$ventest
9019		    continue
9020		    ;;
9021		*)
9022		    vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
9023		    ;;
9024	    esac
9025
9026	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027/* end confdefs.h.  */
9028
9029int
9030main ()
9031{
9032
9033#if !($vencpp)
9034      thisisanerror;
9035#endif
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_compile "$LINENO"; then :
9042  break
9043fi
9044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045	done
9046
9047	ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9048
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9051$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9052
9053
9054if test "x$GCC" = "xyes"; then
9055  CFLAGS="$CFLAGS -fexceptions"
9056  touch local.exp
9057else
9058  cat > local.exp <<EOF
9059set CC_FOR_TARGET "$CC"
9060EOF
9061fi
9062
9063# Check for linker script support
9064
9065  # Check whether --enable-ld-version-script was given.
9066if test "${enable_ld_version_script+set}" = set; then :
9067  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9068else
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9070$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9071if ${gl_cv_sys_ld_version_script+:} false; then :
9072  $as_echo_n "(cached) " >&6
9073else
9074  gl_cv_sys_ld_version_script=no
9075        save_LDFLAGS=$LDFLAGS
9076        LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9077        echo foo >conftest.map
9078        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h.  */
9080
9081int
9082main ()
9083{
9084
9085  ;
9086  return 0;
9087}
9088_ACEOF
9089if ac_fn_c_try_link "$LINENO"; then :
9090
9091else
9092  cat > conftest.map <<EOF
9093VERS_1 {
9094        global: sym;
9095};
9096
9097VERS_2 {
9098        global: sym;
9099} VERS_1;
9100EOF
9101           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103
9104int
9105main ()
9106{
9107
9108  ;
9109  return 0;
9110}
9111_ACEOF
9112if ac_fn_c_try_link "$LINENO"; then :
9113  gl_cv_sys_ld_version_script=yes
9114fi
9115rm -f core conftest.err conftest.$ac_objext \
9116    conftest$ac_exeext conftest.$ac_ext
9117fi
9118rm -f core conftest.err conftest.$ac_objext \
9119    conftest$ac_exeext conftest.$ac_ext
9120        rm -f conftest.map
9121        LDFLAGS=$save_LDFLAGS
9122fi
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
9124$as_echo "$gl_cv_sys_ld_version_script" >&6; }
9125     have_ld_version_script=$gl_cv_sys_ld_version_script
9126fi
9127
9128   if test "$have_ld_version_script" = yes; then
9129  HAVE_LD_VERSION_SCRIPT_TRUE=
9130  HAVE_LD_VERSION_SCRIPT_FALSE='#'
9131else
9132  HAVE_LD_VERSION_SCRIPT_TRUE='#'
9133  HAVE_LD_VERSION_SCRIPT_FALSE=
9134fi
9135
9136
9137
9138#
9139# Enable run-time checking.
9140#
9141# Check whether --enable-bounds-checking was given.
9142if test "${enable_bounds_checking+set}" = set; then :
9143  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9144else
9145  enable_bounds_checking='no'
9146fi
9147
9148
9149if test "$enable_bounds_checking" = yes; then
9150
9151$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
9152
9153fi
9154
9155#
9156# Tests for Windows
9157#
9158
9159
9160
9161native_win32_build='no'
9162cygwin_build='no'
9163case "${host_os}" in
9164    cygwin* )
9165        cygwin_build='yes'
9166    ;;
9167    mingw* )
9168        native_win32_build='yes'
9169    ;;
9170esac
9171 if test "${native_win32_build}" = 'yes'; then
9172  WIN32_NATIVE_BUILD_TRUE=
9173  WIN32_NATIVE_BUILD_FALSE='#'
9174else
9175  WIN32_NATIVE_BUILD_TRUE='#'
9176  WIN32_NATIVE_BUILD_FALSE=
9177fi
9178
9179 if test "${cygwin_build}" = 'yes'; then
9180  CYGWIN_BUILD_TRUE=
9181  CYGWIN_BUILD_FALSE='#'
9182else
9183  CYGWIN_BUILD_TRUE='#'
9184  CYGWIN_BUILD_FALSE=
9185fi
9186
9187
9188WinPathScript="${srcdirfull}/winpath.sh"
9189
9190
9191#
9192# Compiler flags tweaks
9193#
9194if test "${GCC}" != "yes"; then
9195    case "${host}" in
9196        *-*-hpux* )
9197            # aCC: HP ANSI C++ B3910B A.03.34
9198            CFLAGS="${CFLAGS} -Wp,-H30000"
9199            if test -n "${CXXFLAGS}"; then
9200                CXXFLAGS='-AA'
9201            else
9202                CXXFLAGS="${CXXFLAGS} -AA"
9203            fi
9204        ;;
9205        *-dec-osf5.* )
9206            # Compaq alphaev68-dec-osf5.1 compiler
9207            if test -n "${CXXFLAGS}"; then
9208                CXXFLAGS='-std strict_ansi -noimplicit_include'
9209            else
9210                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9211            fi
9212  esac
9213fi
9214
9215# Check for lazy-loading.
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
9217$as_echo_n "checking for linker lazyload option... " >&6; }
9218if ${im_cv_ld_lazyload+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221
9222im_cv_ld_lazyload='none'
9223case "${host}" in
9224  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9225    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9226       im_cv_ld_lazyload='-Wl,-zlazyload'
9227    fi
9228    ;;
9229esac
9230
9231fi
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9233$as_echo "$im_cv_ld_lazyload" >&6; }
9234if test "${im_cv_ld_lazyload}" != 'none' ; then
9235  if test -z "${LDFLAGS}" ; then
9236    LDFLAGS="${im_cv_ld_lazyload}"
9237  else
9238    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9239  fi
9240fi
9241
9242case "$host" in
9243  *darwin* | *-macos10*)
9244        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9245        # Check whether --enable-osx-universal-binary was given.
9246if test "${enable_osx_universal_binary+set}" = set; then :
9247  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9248else
9249  build_osxuniversal=no
9250fi
9251
9252
9253    if test "${build_osxuniversal}" != no ; then
9254      if test "$enable_dependency_tracking" != no ; then
9255        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9256Please re-run configure with these options:
9257  --disable-dependency-tracking --enable-osx-universal-binary
9258        " "$LINENO" 5
9259      fi
9260      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9261      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9262      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9263  fi
9264  ;;
9265esac
9266
9267#
9268# ARCH specific include directory
9269#
9270
9271# Check whether --with-includearch-dir was given.
9272if test "${with_includearch_dir+set}" = set; then :
9273  withval=$with_includearch_dir; includearch_dir=$withval
9274else
9275  includearch_dir=$INCLUDE_DIR
9276fi
9277
9278
9279eval "eval INCLUDEARCH_DIR=$includearch_dir"
9280
9281
9282#
9283# ARCH specific configuration directory
9284#
9285
9286# Check whether --with-sharearch-dir was given.
9287if test "${with_sharearch_dir+set}" = set; then :
9288  withval=$with_sharearch_dir; sharearch_dir=$withval
9289else
9290  sharearch_dir="${LIB_DIR}"
9291fi
9292
9293
9294eval "eval SHAREARCH_DIR=$sharearch_dir"
9295
9296
9297# Path to the pkgconfig folder
9298
9299# Check whether --with-pkgconfigdir was given.
9300if test "${with_pkgconfigdir+set}" = set; then :
9301  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9302else
9303  pkgconfigdir='${libdir}/pkgconfig'
9304fi
9305
9306
9307
9308#
9309# Enable support for POSIX thread APIs
9310#
9311
9312# Check whether --with-threads was given.
9313if test "${with_threads+set}" = set; then :
9314  withval=$with_threads; with_threads=$withval
9315else
9316  with_threads='yes'
9317fi
9318
9319
9320THREAD_LIBS=''
9321have_threads=no
9322if test "$with_threads" != 'no'; then
9323
9324
9325
9326
9327ac_ext=c
9328ac_cpp='$CPP $CPPFLAGS'
9329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9331ac_compiler_gnu=$ac_cv_c_compiler_gnu
9332
9333ax_pthread_ok=no
9334
9335# We used to check for pthread.h first, but this fails if pthread.h
9336# requires special compiler flags (e.g. on Tru64 or Sequent).
9337# It gets checked for in the link test anyway.
9338
9339# First of all, check if the user has set any of the PTHREAD_LIBS,
9340# etcetera environment variables, and if threads linking works using
9341# them:
9342if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9343        ax_pthread_save_CC="$CC"
9344        ax_pthread_save_CFLAGS="$CFLAGS"
9345        ax_pthread_save_LIBS="$LIBS"
9346        if test "x$PTHREAD_CC" != "x"; then :
9347  CC="$PTHREAD_CC"
9348fi
9349        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9350        LIBS="$PTHREAD_LIBS $LIBS"
9351        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9352$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9353        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h.  */
9355
9356/* Override any GCC internal prototype to avoid an error.
9357   Use char because int might match the return type of a GCC
9358   builtin and then its argument prototype would still apply.  */
9359#ifdef __cplusplus
9360extern "C"
9361#endif
9362char pthread_join ();
9363int
9364main ()
9365{
9366return pthread_join ();
9367  ;
9368  return 0;
9369}
9370_ACEOF
9371if ac_fn_c_try_link "$LINENO"; then :
9372  ax_pthread_ok=yes
9373fi
9374rm -f core conftest.err conftest.$ac_objext \
9375    conftest$ac_exeext conftest.$ac_ext
9376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9377$as_echo "$ax_pthread_ok" >&6; }
9378        if test "x$ax_pthread_ok" = "xno"; then
9379                PTHREAD_LIBS=""
9380                PTHREAD_CFLAGS=""
9381        fi
9382        CC="$ax_pthread_save_CC"
9383        CFLAGS="$ax_pthread_save_CFLAGS"
9384        LIBS="$ax_pthread_save_LIBS"
9385fi
9386
9387# We must check for the threads library under a number of different
9388# names; the ordering is very important because some systems
9389# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9390# libraries is broken (non-POSIX).
9391
9392# Create a list of thread flags to try. Items with a "," contain both
9393# C compiler flags (before ",") and linker flags (after ","). Other items
9394# starting with a "-" are C compiler flags, and remaining items are
9395# library names, except for "none" which indicates that we try without
9396# any flags at all, and "pthread-config" which is a program returning
9397# the flags for the Pth emulation library.
9398
9399ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9400
9401# The ordering *is* (sometimes) important.  Some notes on the
9402# individual items follow:
9403
9404# pthreads: AIX (must check this before -lpthread)
9405# none: in case threads are in libc; should be tried before -Kthread and
9406#       other compiler flags to prevent continual compiler warnings
9407# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9408# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9409#           (Note: HP C rejects this with "bad form for `-t' option")
9410# -pthreads: Solaris/gcc (Note: HP C also rejects)
9411# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9412#      doesn't hurt to check since this sometimes defines pthreads and
9413#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
9414#      is present but should not be used directly; and before -mthreads,
9415#      because the compiler interprets this as "-mt" + "-hreads")
9416# -mthreads: Mingw32/gcc, Lynx/gcc
9417# pthread: Linux, etcetera
9418# --thread-safe: KAI C++
9419# pthread-config: use pthread-config program (for GNU Pth library)
9420
9421case $host_os in
9422
9423        freebsd*)
9424
9425        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9426        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9427
9428        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9429        ;;
9430
9431        hpux*)
9432
9433        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9434        # multi-threading and also sets -lpthread."
9435
9436        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9437        ;;
9438
9439        openedition*)
9440
9441        # IBM z/OS requires a feature-test macro to be defined in order to
9442        # enable POSIX threads at all, so give the user a hint if this is
9443        # not set. (We don't define these ourselves, as they can affect
9444        # other portions of the system API in unpredictable ways.)
9445
9446        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448
9449#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9450             AX_PTHREAD_ZOS_MISSING
9451#            endif
9452
9453_ACEOF
9454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9455  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9457$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9458fi
9459rm -f conftest*
9460
9461        ;;
9462
9463        solaris*)
9464
9465        # On Solaris (at least, for some versions), libc contains stubbed
9466        # (non-functional) versions of the pthreads routines, so link-based
9467        # tests will erroneously succeed. (N.B.: The stubs are missing
9468        # pthread_cleanup_push, or rather a function called by this macro,
9469        # so we could check for that, but who knows whether they'll stub
9470        # that too in a future libc.)  So we'll check first for the
9471        # standard Solaris way of linking pthreads (-mt -lpthread).
9472
9473        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
9474        ;;
9475esac
9476
9477# Are we compiling with Clang?
9478
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9480$as_echo_n "checking whether $CC is Clang... " >&6; }
9481if ${ax_cv_PTHREAD_CLANG+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  ax_cv_PTHREAD_CLANG=no
9485     # Note that Autoconf sets GCC=yes for Clang as well as GCC
9486     if test "x$GCC" = "xyes"; then
9487        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h.  */
9489/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9490#            if defined(__clang__) && defined(__llvm__)
9491             AX_PTHREAD_CC_IS_CLANG
9492#            endif
9493
9494_ACEOF
9495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9496  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9497  ax_cv_PTHREAD_CLANG=yes
9498fi
9499rm -f conftest*
9500
9501     fi
9502
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9505$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9506ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9507
9508
9509# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9510
9511# Note that for GCC and Clang -pthread generally implies -lpthread,
9512# except when -nostdlib is passed.
9513# This is problematic using libtool to build C++ shared libraries with pthread:
9514# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
9515# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
9516# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
9517# To solve this, first try -pthread together with -lpthread for GCC
9518
9519if test "x$GCC" = "xyes"; then :
9520  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
9521fi
9522
9523# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
9524
9525if test "x$ax_pthread_clang" = "xyes"; then :
9526  ax_pthread_flags="-pthread,-lpthread -pthread"
9527fi
9528
9529
9530# The presence of a feature test macro requesting re-entrant function
9531# definitions is, on some systems, a strong hint that pthreads support is
9532# correctly enabled
9533
9534case $host_os in
9535        darwin* | hpux* | linux* | osf* | solaris*)
9536        ax_pthread_check_macro="_REENTRANT"
9537        ;;
9538
9539        aix*)
9540        ax_pthread_check_macro="_THREAD_SAFE"
9541        ;;
9542
9543        *)
9544        ax_pthread_check_macro="--"
9545        ;;
9546esac
9547if test "x$ax_pthread_check_macro" = "x--"; then :
9548  ax_pthread_check_cond=0
9549else
9550  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9551fi
9552
9553
9554if test "x$ax_pthread_ok" = "xno"; then
9555for ax_pthread_try_flag in $ax_pthread_flags; do
9556
9557        case $ax_pthread_try_flag in
9558                none)
9559                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9560$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9561                ;;
9562
9563                *,*)
9564                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
9565                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
9566                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
9567$as_echo_n "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
9568                ;;
9569
9570                -*)
9571                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9572$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9573                PTHREAD_CFLAGS="$ax_pthread_try_flag"
9574                ;;
9575
9576                pthread-config)
9577                # Extract the first word of "pthread-config", so it can be a program name with args.
9578set dummy pthread-config; ac_word=$2
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580$as_echo_n "checking for $ac_word... " >&6; }
9581if ${ac_cv_prog_ax_pthread_config+:} false; then :
9582  $as_echo_n "(cached) " >&6
9583else
9584  if test -n "$ax_pthread_config"; then
9585  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9586else
9587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588for as_dir in $PATH
9589do
9590  IFS=$as_save_IFS
9591  test -z "$as_dir" && as_dir=.
9592    for ac_exec_ext in '' $ac_executable_extensions; do
9593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594    ac_cv_prog_ax_pthread_config="yes"
9595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596    break 2
9597  fi
9598done
9599  done
9600IFS=$as_save_IFS
9601
9602  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9603fi
9604fi
9605ax_pthread_config=$ac_cv_prog_ax_pthread_config
9606if test -n "$ax_pthread_config"; then
9607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9608$as_echo "$ax_pthread_config" >&6; }
9609else
9610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614
9615                if test "x$ax_pthread_config" = "xno"; then :
9616  continue
9617fi
9618                PTHREAD_CFLAGS="`pthread-config --cflags`"
9619                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9620                ;;
9621
9622                *)
9623                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9624$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9625                PTHREAD_LIBS="-l$ax_pthread_try_flag"
9626                ;;
9627        esac
9628
9629        ax_pthread_save_CFLAGS="$CFLAGS"
9630        ax_pthread_save_LIBS="$LIBS"
9631        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9632        LIBS="$PTHREAD_LIBS $LIBS"
9633
9634        # Check for various functions.  We must include pthread.h,
9635        # since some functions may be macros.  (On the Sequent, we
9636        # need a special flag -Kthread to make this header compile.)
9637        # We check for pthread_join because it is in -lpthread on IRIX
9638        # while pthread_create is in libc.  We check for pthread_attr_init
9639        # due to DEC craziness with -lpthreads.  We check for
9640        # pthread_cleanup_push because it is one of the few pthread
9641        # functions on Solaris that doesn't have a non-functional libc stub.
9642        # We try pthread_create on general principles.
9643
9644        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645/* end confdefs.h.  */
9646#include <pthread.h>
9647#                       if $ax_pthread_check_cond
9648#                        error "$ax_pthread_check_macro must be defined"
9649#                       endif
9650                        static void *some_global = NULL;
9651                        static void routine(void *a)
9652                          {
9653                             /* To avoid any unused-parameter or
9654                                unused-but-set-parameter warning.  */
9655                             some_global = a;
9656                          }
9657                        static void *start_routine(void *a) { return a; }
9658int
9659main ()
9660{
9661pthread_t th; pthread_attr_t attr;
9662                        pthread_create(&th, 0, start_routine, 0);
9663                        pthread_join(th, 0);
9664                        pthread_attr_init(&attr);
9665                        pthread_cleanup_push(routine, 0);
9666                        pthread_cleanup_pop(0) /* ; */
9667  ;
9668  return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"; then :
9672  ax_pthread_ok=yes
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675    conftest$ac_exeext conftest.$ac_ext
9676
9677        CFLAGS="$ax_pthread_save_CFLAGS"
9678        LIBS="$ax_pthread_save_LIBS"
9679
9680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9681$as_echo "$ax_pthread_ok" >&6; }
9682        if test "x$ax_pthread_ok" = "xyes"; then :
9683  break
9684fi
9685
9686        PTHREAD_LIBS=""
9687        PTHREAD_CFLAGS=""
9688done
9689fi
9690
9691
9692# Clang needs special handling, because older versions handle the -pthread
9693# option in a rather... idiosyncratic way
9694
9695if test "x$ax_pthread_clang" = "xyes"; then
9696
9697        # Clang takes -pthread; it has never supported any other flag
9698
9699        # (Note 1: This will need to be revisited if a system that Clang
9700        # supports has POSIX threads in a separate library.  This tends not
9701        # to be the way of modern systems, but it's conceivable.)
9702
9703        # (Note 2: On some systems, notably Darwin, -pthread is not needed
9704        # to get POSIX threads support; the API is always present and
9705        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
9706        # -pthread does define _REENTRANT, and while the Darwin headers
9707        # ignore this macro, third-party headers might not.)
9708
9709        # However, older versions of Clang make a point of warning the user
9710        # that, in an invocation where only linking and no compilation is
9711        # taking place, the -pthread option has no effect ("argument unused
9712        # during compilation").  They expect -pthread to be passed in only
9713        # when source code is being compiled.
9714        #
9715        # Problem is, this is at odds with the way Automake and most other
9716        # C build frameworks function, which is that the same flags used in
9717        # compilation (CFLAGS) are also used in linking.  Many systems
9718        # supported by AX_PTHREAD require exactly this for POSIX threads
9719        # support, and in fact it is often not straightforward to specify a
9720        # flag that is used only in the compilation phase and not in
9721        # linking.  Such a scenario is extremely rare in practice.
9722        #
9723        # Even though use of the -pthread flag in linking would only print
9724        # a warning, this can be a nuisance for well-run software projects
9725        # that build with -Werror.  So if the active version of Clang has
9726        # this misfeature, we search for an option to squash it.
9727
9728        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9729$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9730if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9734             # Create an alternate version of $ac_link that compiles and
9735             # links in two steps (.c -> .o, .o -> exe) instead of one
9736             # (.c -> exe), because the warning occurs only in the second
9737             # step
9738             ax_pthread_save_ac_link="$ac_link"
9739             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9740             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9741             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9742             ax_pthread_save_CFLAGS="$CFLAGS"
9743             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9744                if test "x$ax_pthread_try" = "xunknown"; then :
9745  break
9746fi
9747                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9748                ac_link="$ax_pthread_save_ac_link"
9749                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751int main(void){return 0;}
9752_ACEOF
9753if ac_fn_c_try_link "$LINENO"; then :
9754  ac_link="$ax_pthread_2step_ac_link"
9755                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757int main(void){return 0;}
9758_ACEOF
9759if ac_fn_c_try_link "$LINENO"; then :
9760  break
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767    conftest$ac_exeext conftest.$ac_ext
9768             done
9769             ac_link="$ax_pthread_save_ac_link"
9770             CFLAGS="$ax_pthread_save_CFLAGS"
9771             if test "x$ax_pthread_try" = "x"; then :
9772  ax_pthread_try=no
9773fi
9774             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9775
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9778$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9779
9780        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9781                no | unknown) ;;
9782                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9783        esac
9784
9785fi # $ax_pthread_clang = yes
9786
9787
9788
9789# Various other checks:
9790if test "x$ax_pthread_ok" = "xyes"; then
9791        ax_pthread_save_CFLAGS="$CFLAGS"
9792        ax_pthread_save_LIBS="$LIBS"
9793        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9794        LIBS="$PTHREAD_LIBS $LIBS"
9795
9796        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9797        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9798$as_echo_n "checking for joinable pthread attribute... " >&6; }
9799if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9803             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9804                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806#include <pthread.h>
9807int
9808main ()
9809{
9810int attr = $ax_pthread_attr; return attr /* ; */
9811  ;
9812  return 0;
9813}
9814_ACEOF
9815if ac_fn_c_try_link "$LINENO"; then :
9816  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext conftest.$ac_ext
9820             done
9821
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9824$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9825        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9826               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9827               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9828
9829cat >>confdefs.h <<_ACEOF
9830#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9831_ACEOF
9832
9833               ax_pthread_joinable_attr_defined=yes
9834
9835fi
9836
9837        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9838$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9839if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9840  $as_echo_n "(cached) " >&6
9841else
9842  ax_cv_PTHREAD_SPECIAL_FLAGS=no
9843             case $host_os in
9844             solaris*)
9845             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9846             ;;
9847             esac
9848
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9851$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9852        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9853               test "x$ax_pthread_special_flags_added" != "xyes"; then :
9854  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9855               ax_pthread_special_flags_added=yes
9856fi
9857
9858        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9859$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9860if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865#include <pthread.h>
9866int
9867main ()
9868{
9869int i = PTHREAD_PRIO_INHERIT;
9870                                               return i;
9871  ;
9872  return 0;
9873}
9874_ACEOF
9875if ac_fn_c_try_link "$LINENO"; then :
9876  ax_cv_PTHREAD_PRIO_INHERIT=yes
9877else
9878  ax_cv_PTHREAD_PRIO_INHERIT=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext \
9881    conftest$ac_exeext conftest.$ac_ext
9882
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9885$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9886        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9887               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9888
9889$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9890
9891               ax_pthread_prio_inherit_defined=yes
9892
9893fi
9894
9895        CFLAGS="$ax_pthread_save_CFLAGS"
9896        LIBS="$ax_pthread_save_LIBS"
9897
9898        # More AIX lossage: compile with *_r variant
9899        if test "x$GCC" != "xyes"; then
9900            case $host_os in
9901                aix*)
9902                case "x/$CC" in #(
9903  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9904    #handle absolute path differently from PATH based program lookup
9905                     case "x$CC" in #(
9906  x/*) :
9907    if as_fn_executable_p ${CC}_r; then :
9908  PTHREAD_CC="${CC}_r"
9909fi ;; #(
9910  *) :
9911    for ac_prog in ${CC}_r
9912do
9913  # Extract the first word of "$ac_prog", so it can be a program name with args.
9914set dummy $ac_prog; ac_word=$2
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  if test -n "$PTHREAD_CC"; then
9921  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926  IFS=$as_save_IFS
9927  test -z "$as_dir" && as_dir=.
9928    for ac_exec_ext in '' $ac_executable_extensions; do
9929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930    ac_cv_prog_PTHREAD_CC="$ac_prog"
9931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932    break 2
9933  fi
9934done
9935  done
9936IFS=$as_save_IFS
9937
9938fi
9939fi
9940PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9941if test -n "$PTHREAD_CC"; then
9942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9943$as_echo "$PTHREAD_CC" >&6; }
9944else
9945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949
9950  test -n "$PTHREAD_CC" && break
9951done
9952test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9953 ;;
9954esac ;; #(
9955  *) :
9956     ;;
9957esac
9958                ;;
9959            esac
9960        fi
9961fi
9962
9963test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9964
9965
9966
9967
9968
9969# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9970if test "x$ax_pthread_ok" = "xyes"; then
9971
9972$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9973
9974        :
9975else
9976        ax_pthread_ok=no
9977
9978fi
9979ac_ext=c
9980ac_cpp='$CPP $CPPFLAGS'
9981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9983ac_compiler_gnu=$ac_cv_c_compiler_gnu
9984
9985
9986    if test "$ax_pthread_ok" = yes; then
9987        have_threads=yes
9988        DEF_THREAD="$PTHREAD_CFLAGS"
9989        CFLAGS="$CFLAGS $DEF_THREAD"
9990        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9991        THREAD_LIBS="$PTHREAD_LIBS"
9992        if test "$CC" != "$PTHREAD_CC"; then
9993            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
9994$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9995            CC="$PTHREAD_CC"
9996        fi
9997
9998$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9999
10000    fi
10001fi
10002LIBS="$LIBS $THREAD_LIBS"
10003
10004
10005# Enable support for OpenMP
10006if test "$have_threads" != 'yes'; then
10007  ac_cv_prog_c_openmp=unsupported
10008fi
10009
10010  OPENMP_CFLAGS=
10011  # Check whether --enable-openmp was given.
10012if test "${enable_openmp+set}" = set; then :
10013  enableval=$enable_openmp;
10014fi
10015
10016  if test "$enable_openmp" != no; then
10017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
10018$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
10019if ${ac_cv_prog_c_openmp+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024
10025#ifndef _OPENMP
10026 choke me
10027#endif
10028#include <omp.h>
10029int main () { return omp_get_num_threads (); }
10030
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"; then :
10033  ac_cv_prog_c_openmp='none needed'
10034else
10035  ac_cv_prog_c_openmp='unsupported'
10036	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10037                           -Popenmp --openmp; do
10038	    ac_save_CFLAGS=$CFLAGS
10039	    CFLAGS="$CFLAGS $ac_option"
10040	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042
10043#ifndef _OPENMP
10044 choke me
10045#endif
10046#include <omp.h>
10047int main () { return omp_get_num_threads (); }
10048
10049_ACEOF
10050if ac_fn_c_try_link "$LINENO"; then :
10051  ac_cv_prog_c_openmp=$ac_option
10052fi
10053rm -f core conftest.err conftest.$ac_objext \
10054    conftest$ac_exeext conftest.$ac_ext
10055	    CFLAGS=$ac_save_CFLAGS
10056	    if test "$ac_cv_prog_c_openmp" != unsupported; then
10057	      break
10058	    fi
10059	  done
10060fi
10061rm -f core conftest.err conftest.$ac_objext \
10062    conftest$ac_exeext conftest.$ac_ext
10063fi
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
10065$as_echo "$ac_cv_prog_c_openmp" >&6; }
10066    case $ac_cv_prog_c_openmp in #(
10067      "none needed" | unsupported)
10068	;; #(
10069      *)
10070	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
10071    esac
10072  fi
10073
10074
10075CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10076MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10077
10078if test "$enable_openmp" != no; then
10079  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10080    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10081  fi
10082fi
10083
10084# Enable support for OpenCL
10085no_cl=yes
10086    # Check whether --enable-opencl was given.
10087if test "${enable_opencl+set}" = set; then :
10088  enableval=$enable_opencl; enable_opencl=$enableval
10089else
10090  enable_opencl='no'
10091fi
10092
10093  if test x"$enable_opencl" != xno ; then
10094    CPPFLAGS_CL=""
10095    for ac_header in CL/cl.h OpenCL/cl.h
10096do :
10097  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10098ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10099if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10100  cat >>confdefs.h <<_ACEOF
10101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102_ACEOF
10103 HAVE_CL_H="yes"; break
10104else
10105  HAVE_CL_H="no"
10106fi
10107
10108done
10109
10110    if test x"$HAVE_CL_H" = xno ; then
10111      # check for AMD's SDK
10112      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AMD's SDK cl.h" >&5
10113$as_echo_n "checking for AMD's SDK cl.h... " >&6; }
10114      if test -d /opt/AMDAPP/include/CL ; then
10115        HAVE_CL_H="yes"
10116        $as_echo "#define HAVE_CL_CL_H 1" >>confdefs.h
10117
10118        CPPFLAGS_CL="-I/opt/AMDAPP/include"
10119      fi
10120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CL_H" >&5
10121$as_echo "$HAVE_CL_H" >&6; }
10122    fi
10123    if test x"$HAVE_CL_H" = xno ; then
10124      # check for NVIDIA's SDK
10125      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NVIDIA's SDK cl.h" >&5
10126$as_echo_n "checking for NVIDIA's SDK cl.h... " >&6; }
10127      if test -d /usr/local/cuda/include/CL ; then
10128        HAVE_CL_H="yes"
10129        $as_echo "#define HAVE_CL_CL_H 1" >>confdefs.h
10130
10131        CPPFLAGS_CL="-I/usr/local/cuda/include"
10132      elif test -d /usr/local/cuda-6.5/include/CL ; then
10133        HAVE_CL_H="yes"
10134        $as_echo "#define HAVE_CL_CL_H 1" >>confdefs.h
10135
10136        CPPFLAGS_CL="-I/usr/local/cuda-6.5/include"
10137      elif test -d /usr/local/cuda-6.0/include/CL ; then
10138        HAVE_CL_H="yes"
10139        $as_echo "#define HAVE_CL_CL_H 1" >>confdefs.h
10140
10141        CPPFLAGS_CL="-I/usr/local/cuda-6.0/include"
10142      elif test -d /usr/local/cuda-5.5/include/CL ; then
10143        HAVE_CL_H="yes"
10144        $as_echo "#define HAVE_CL_CL_H 1" >>confdefs.h
10145
10146        CPPFLAGS_CL="-I/usr/local/cuda-5.5/include"
10147      fi
10148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CL_H" >&5
10149$as_echo "$HAVE_CL_H" >&6; }
10150    fi
10151    if test x"$HAVE_CL_H" = xno ; then
10152      no_cl=yes
10153      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no OpenCL headers found" >&5
10154$as_echo "$as_me: WARNING: no OpenCL headers found" >&2;}
10155      CL_ENABLED=false
10156      CL_VERSION=0
10157    else
10158      #
10159      # First we check for Mac OS X, since OpenCL is standard there
10160      #
10161      LIBS_CL="none"
10162      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10163$as_echo_n "checking for OpenCL library... " >&6; }
10164      case "$host_os" in
10165        darwin*) # On Mac OS X we check for installed frameworks
10166
10167    case x"$host_os" in
10168    xdarwin*)
10169
10170      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework OpenCL" >&5
10171$as_echo_n "checking for framework OpenCL... " >&6; }
10172if ${ax_cv_check_OpenCL+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175
10176	ac_ext=c
10177ac_cpp='$CPP $CPPFLAGS'
10178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180ac_compiler_gnu=$ac_cv_c_compiler_gnu
10181
10182	ac_check_framework_save_LIBS=$LIBS
10183	LIBS="-framework OpenCL $LIBS"
10184	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h.  */
10186
10187int
10188main ()
10189{
10190
10191  ;
10192  return 0;
10193}
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"; then :
10196  ax_cv_check_OpenCL="yes"
10197else
10198  ax_cv_check_OpenCL="no"
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201    conftest$ac_exeext conftest.$ac_ext
10202	ac_ext=c
10203ac_cpp='$CPP $CPPFLAGS'
10204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206ac_compiler_gnu=$ac_cv_c_compiler_gnu
10207
10208fi
10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_OpenCL" >&5
10210$as_echo "$ax_cv_check_OpenCL" >&6; }
10211      if test x"$ax_cv_check_OpenCL" = "xyes" ; then
10212
10213          LIBS_CL="-framework OpenCL"
10214          no_cl=no
10215          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216$as_echo "yes" >&6; }
10217          CL_ENABLED=true
10218          CL_VERSION=1
10219
10220
10221      else
10222
10223          no_cl=yes
10224          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225$as_echo "no" >&6; }
10226          CL_ENABLED=false
10227          CL_VERSION=0
10228
10229      fi
10230      LIBS=$ac_check_framework_save_LIBS
10231          ;;
10232  esac
10233
10234      ;;
10235      *)
10236        save_LIBS=$LIBS
10237        save_CFLAGS=$CFLAGS
10238        CFLAGS=$CPPFLAGS_CL
10239        LIBS="$save_LIBS -L/usr/lib64/nvidia -L/usr/lib/nvidia -lOpenCL"
10240        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242
10243          #ifdef HAVE_OPENCL_CL_H
10244            #include <OpenCL/cl.h>
10245          #elif defined(HAVE_CL_CL_H)
10246            #include <CL/cl.h>
10247          #endif
10248          #include <stddef.h>
10249
10250int
10251main ()
10252{
10253
10254          clGetPlatformIDs(0, NULL, NULL);
10255
10256  ;
10257  return 0;
10258}
10259_ACEOF
10260if ac_fn_c_try_link "$LINENO"; then :
10261
10262          no_cl=no
10263          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10264$as_echo "yes" >&6; }
10265          CL_ENABLED=true
10266          CL_VERSION=1
10267          LIBS_CL="$save_LIBS -L/usr/lib64/nvidia -L/usr/lib/nvidia -lOpenCL"
10268
10269else
10270
10271          no_cl=yes
10272          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
10274          CL_ENABLED=false
10275          CL_VERSION=0
10276
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280
10281        LIBS=$save_LIBS
10282        CFLAGS=$save_CFLAGS
10283      ;;
10284      esac
10285    fi
10286  else
10287    no_cl=yes
10288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10289$as_echo_n "checking for OpenCL library... " >&6; }
10290    { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10291$as_echo "disabled" >&6; }
10292    CL_ENABLED=false
10293    CL_VERSION=0
10294  fi
10295
10296if test "X$no_cl" != 'Xyes'; then
10297  MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10298fi
10299
10300########
10301#
10302# Check for large file support
10303#
10304########
10305# Check whether --enable-largefile was given.
10306if test "${enable_largefile+set}" = set; then :
10307  enableval=$enable_largefile;
10308fi
10309
10310if test "$enable_largefile" != no; then
10311
10312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10313$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10314if ${ac_cv_sys_largefile_CC+:} false; then :
10315  $as_echo_n "(cached) " >&6
10316else
10317  ac_cv_sys_largefile_CC=no
10318     if test "$GCC" != yes; then
10319       ac_save_CC=$CC
10320       while :; do
10321	 # IRIX 6.2 and later do not support large files by default,
10322	 # so use the C compiler's -n32 option if that helps.
10323	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325#include <sys/types.h>
10326 /* Check that off_t can represent 2**63 - 1 correctly.
10327    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10328    since some C++ compilers masquerading as C compilers
10329    incorrectly reject 9223372036854775807.  */
10330#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10331  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10332		       && LARGE_OFF_T % 2147483647 == 1)
10333		      ? 1 : -1];
10334int
10335main ()
10336{
10337
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342	 if ac_fn_c_try_compile "$LINENO"; then :
10343  break
10344fi
10345rm -f core conftest.err conftest.$ac_objext
10346	 CC="$CC -n32"
10347	 if ac_fn_c_try_compile "$LINENO"; then :
10348  ac_cv_sys_largefile_CC=' -n32'; break
10349fi
10350rm -f core conftest.err conftest.$ac_objext
10351	 break
10352       done
10353       CC=$ac_save_CC
10354       rm -f conftest.$ac_ext
10355    fi
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10358$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10359  if test "$ac_cv_sys_largefile_CC" != no; then
10360    CC=$CC$ac_cv_sys_largefile_CC
10361  fi
10362
10363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10364$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10365if ${ac_cv_sys_file_offset_bits+:} false; then :
10366  $as_echo_n "(cached) " >&6
10367else
10368  while :; do
10369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h.  */
10371#include <sys/types.h>
10372 /* Check that off_t can represent 2**63 - 1 correctly.
10373    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10374    since some C++ compilers masquerading as C compilers
10375    incorrectly reject 9223372036854775807.  */
10376#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10377  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10378		       && LARGE_OFF_T % 2147483647 == 1)
10379		      ? 1 : -1];
10380int
10381main ()
10382{
10383
10384  ;
10385  return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_compile "$LINENO"; then :
10389  ac_cv_sys_file_offset_bits=no; break
10390fi
10391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394#define _FILE_OFFSET_BITS 64
10395#include <sys/types.h>
10396 /* Check that off_t can represent 2**63 - 1 correctly.
10397    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10398    since some C++ compilers masquerading as C compilers
10399    incorrectly reject 9223372036854775807.  */
10400#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10401  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10402		       && LARGE_OFF_T % 2147483647 == 1)
10403		      ? 1 : -1];
10404int
10405main ()
10406{
10407
10408  ;
10409  return 0;
10410}
10411_ACEOF
10412if ac_fn_c_try_compile "$LINENO"; then :
10413  ac_cv_sys_file_offset_bits=64; break
10414fi
10415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416  ac_cv_sys_file_offset_bits=unknown
10417  break
10418done
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10421$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10422case $ac_cv_sys_file_offset_bits in #(
10423  no | unknown) ;;
10424  *)
10425cat >>confdefs.h <<_ACEOF
10426#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10427_ACEOF
10428;;
10429esac
10430rm -rf conftest*
10431  if test $ac_cv_sys_file_offset_bits = unknown; then
10432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10433$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10434if ${ac_cv_sys_large_files+:} false; then :
10435  $as_echo_n "(cached) " >&6
10436else
10437  while :; do
10438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440#include <sys/types.h>
10441 /* Check that off_t can represent 2**63 - 1 correctly.
10442    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10443    since some C++ compilers masquerading as C compilers
10444    incorrectly reject 9223372036854775807.  */
10445#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10446  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10447		       && LARGE_OFF_T % 2147483647 == 1)
10448		      ? 1 : -1];
10449int
10450main ()
10451{
10452
10453  ;
10454  return 0;
10455}
10456_ACEOF
10457if ac_fn_c_try_compile "$LINENO"; then :
10458  ac_cv_sys_large_files=no; break
10459fi
10460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462/* end confdefs.h.  */
10463#define _LARGE_FILES 1
10464#include <sys/types.h>
10465 /* Check that off_t can represent 2**63 - 1 correctly.
10466    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10467    since some C++ compilers masquerading as C compilers
10468    incorrectly reject 9223372036854775807.  */
10469#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10470  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10471		       && LARGE_OFF_T % 2147483647 == 1)
10472		      ? 1 : -1];
10473int
10474main ()
10475{
10476
10477  ;
10478  return 0;
10479}
10480_ACEOF
10481if ac_fn_c_try_compile "$LINENO"; then :
10482  ac_cv_sys_large_files=1; break
10483fi
10484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485  ac_cv_sys_large_files=unknown
10486  break
10487done
10488fi
10489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10490$as_echo "$ac_cv_sys_large_files" >&6; }
10491case $ac_cv_sys_large_files in #(
10492  no | unknown) ;;
10493  *)
10494cat >>confdefs.h <<_ACEOF
10495#define _LARGE_FILES $ac_cv_sys_large_files
10496_ACEOF
10497;;
10498esac
10499rm -rf conftest*
10500  fi
10501
10502
10503fi
10504
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10506$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
10507if ${ac_cv_sys_largefile_source+:} false; then :
10508  $as_echo_n "(cached) " >&6
10509else
10510  while :; do
10511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512/* end confdefs.h.  */
10513#include <sys/types.h> /* for off_t */
10514     #include <stdio.h>
10515int
10516main ()
10517{
10518int (*fp) (FILE *, off_t, int) = fseeko;
10519     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525  ac_cv_sys_largefile_source=no; break
10526fi
10527rm -f core conftest.err conftest.$ac_objext \
10528    conftest$ac_exeext conftest.$ac_ext
10529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530/* end confdefs.h.  */
10531#define _LARGEFILE_SOURCE 1
10532#include <sys/types.h> /* for off_t */
10533     #include <stdio.h>
10534int
10535main ()
10536{
10537int (*fp) (FILE *, off_t, int) = fseeko;
10538     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10539  ;
10540  return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_link "$LINENO"; then :
10544  ac_cv_sys_largefile_source=1; break
10545fi
10546rm -f core conftest.err conftest.$ac_objext \
10547    conftest$ac_exeext conftest.$ac_ext
10548  ac_cv_sys_largefile_source=unknown
10549  break
10550done
10551fi
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
10553$as_echo "$ac_cv_sys_largefile_source" >&6; }
10554case $ac_cv_sys_largefile_source in #(
10555  no | unknown) ;;
10556  *)
10557cat >>confdefs.h <<_ACEOF
10558#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10559_ACEOF
10560;;
10561esac
10562rm -rf conftest*
10563
10564# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10565# in glibc 2.1.3, but that breaks too many other things.
10566# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10567if test $ac_cv_sys_largefile_source != unknown; then
10568
10569$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10570
10571fi
10572
10573LFS_CPPFLAGS=''
10574if test "$enable_largefile" != no; then
10575    case $ac_cv_sys_file_offset_bits in
10576    no)
10577        # nothing to do here as the host supports LFS fine
10578        ;;
10579    unknown)
10580        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
10581$as_echo_n "checking for native large file support... " >&6; }
10582        if test "$cross_compiling" = yes; then :
10583  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10585as_fn_error $? "cannot run test program while cross compiling
10586See \`config.log' for more details" "$LINENO" 5; }
10587else
10588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h.  */
10590#include <unistd.h>
10591          main () {
10592          exit(!(sizeof(off_t) == 8));
10593        }
10594int
10595main ()
10596{
10597
10598  ;
10599  return 0;
10600}
10601_ACEOF
10602if ac_fn_c_try_run "$LINENO"; then :
10603  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
10604
10605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10606$as_echo "yes" >&6; }
10607else
10608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10612  conftest.$ac_objext conftest.beam conftest.$ac_ext
10613fi
10614
10615        ;;
10616    *)
10617        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10618        ;;
10619    esac
10620    if test "$ac_cv_sys_large_files" != 'no'; then
10621        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10622    fi
10623    if test "$ac_cv_sys_largefile_source" != 'no'; then
10624        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10625    fi
10626fi
10627
10628
10629#
10630# Check for sendfile support
10631#
10632########
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Linux compatible sendfile()" >&5
10634$as_echo_n "checking Linux compatible sendfile()... " >&6; }
10635if ${ac_cv_have_linux_sendfile+:} false; then :
10636  $as_echo_n "(cached) " >&6
10637else
10638
10639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h.  */
10641
10642    #undef _FILE_OFFSET_BITS
10643    #include <sys/types.h>
10644    #include <sys/socket.h>
10645    #include <sys/sendfile.h>
10646
10647int
10648main ()
10649{
10650
10651    sendfile(0, 0, (void *) 0, 0);
10652
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657if ac_fn_c_try_link "$LINENO"; then :
10658
10659    ac_cv_have_linux_sendfile=yes
10660
10661else
10662
10663    ac_cv_have_linux_sendfile=no
10664
10665fi
10666rm -f core conftest.err conftest.$ac_objext \
10667    conftest$ac_exeext conftest.$ac_ext
10668
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_linux_sendfile" >&5
10671$as_echo "$ac_cv_have_linux_sendfile" >&6; }
10672if test $ac_cv_have_linux_sendfile = yes; then
10673
10674$as_echo "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
10675
10676fi
10677
10678#
10679# Set SETJMP_IS_THREAD_SAFE define.
10680#
10681case "${host_os}" in
10682  solaris2* ) ;;
10683  *)
10684$as_echo "#define SETJMP_IS_THREAD_SAFE 1" >>confdefs.h
10685 ;;
10686esac
10687
10688# Configure libtool
10689: ${AR_FLAGS=cr}
10690case `pwd` in
10691  *\ * | *\	*)
10692    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10693$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10694esac
10695
10696
10697
10698macro_version='2.4.6'
10699macro_revision='2.4.6'
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713ltmain=$ac_aux_dir/ltmain.sh
10714
10715# Backslashify metacharacters that are still active within
10716# double-quoted strings.
10717sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10718
10719# Same as above, but do not quote variable references.
10720double_quote_subst='s/\(["`\\]\)/\\\1/g'
10721
10722# Sed substitution to delay expansion of an escaped shell variable in a
10723# double_quote_subst'ed string.
10724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10725
10726# Sed substitution to delay expansion of an escaped single quote.
10727delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10728
10729# Sed substitution to avoid accidental globbing in evaled expressions
10730no_glob_subst='s/\*/\\\*/g'
10731
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10733$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10734if ${lt_cv_path_NM+:} false; then :
10735  $as_echo_n "(cached) " >&6
10736else
10737  if test -n "$NM"; then
10738  # Let the user override the test.
10739  lt_cv_path_NM=$NM
10740else
10741  lt_nm_to_check=${ac_tool_prefix}nm
10742  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10743    lt_nm_to_check="$lt_nm_to_check nm"
10744  fi
10745  for lt_tmp_nm in $lt_nm_to_check; do
10746    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10747    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10748      IFS=$lt_save_ifs
10749      test -z "$ac_dir" && ac_dir=.
10750      tmp_nm=$ac_dir/$lt_tmp_nm
10751      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
10752	# Check to see if the nm accepts a BSD-compat flag.
10753	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
10754	#   nm: unknown option "B" ignored
10755	# Tru64's nm complains that /dev/null is an invalid object file
10756	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
10757	case $build_os in
10758	mingw*) lt_bad_file=conftest.nm/nofile ;;
10759	*) lt_bad_file=/dev/null ;;
10760	esac
10761	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
10762	*$lt_bad_file* | *'Invalid file or object type'*)
10763	  lt_cv_path_NM="$tmp_nm -B"
10764	  break 2
10765	  ;;
10766	*)
10767	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10768	  */dev/null*)
10769	    lt_cv_path_NM="$tmp_nm -p"
10770	    break 2
10771	    ;;
10772	  *)
10773	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10774	    continue # so that we can try to find one that supports BSD flags
10775	    ;;
10776	  esac
10777	  ;;
10778	esac
10779      fi
10780    done
10781    IFS=$lt_save_ifs
10782  done
10783  : ${lt_cv_path_NM=no}
10784fi
10785fi
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10787$as_echo "$lt_cv_path_NM" >&6; }
10788if test no != "$lt_cv_path_NM"; then
10789  NM=$lt_cv_path_NM
10790else
10791  # Didn't find any BSD compatible name lister, look for dumpbin.
10792  if test -n "$DUMPBIN"; then :
10793    # Let the user override the test.
10794  else
10795    if test -n "$ac_tool_prefix"; then
10796  for ac_prog in dumpbin "link -dump"
10797  do
10798    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10801$as_echo_n "checking for $ac_word... " >&6; }
10802if ${ac_cv_prog_DUMPBIN+:} false; then :
10803  $as_echo_n "(cached) " >&6
10804else
10805  if test -n "$DUMPBIN"; then
10806  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811  IFS=$as_save_IFS
10812  test -z "$as_dir" && as_dir=.
10813    for ac_exec_ext in '' $ac_executable_extensions; do
10814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817    break 2
10818  fi
10819done
10820  done
10821IFS=$as_save_IFS
10822
10823fi
10824fi
10825DUMPBIN=$ac_cv_prog_DUMPBIN
10826if test -n "$DUMPBIN"; then
10827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10828$as_echo "$DUMPBIN" >&6; }
10829else
10830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831$as_echo "no" >&6; }
10832fi
10833
10834
10835    test -n "$DUMPBIN" && break
10836  done
10837fi
10838if test -z "$DUMPBIN"; then
10839  ac_ct_DUMPBIN=$DUMPBIN
10840  for ac_prog in dumpbin "link -dump"
10841do
10842  # Extract the first word of "$ac_prog", so it can be a program name with args.
10843set dummy $ac_prog; ac_word=$2
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845$as_echo_n "checking for $ac_word... " >&6; }
10846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  if test -n "$ac_ct_DUMPBIN"; then
10850  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10851else
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855  IFS=$as_save_IFS
10856  test -z "$as_dir" && as_dir=.
10857    for ac_exec_ext in '' $ac_executable_extensions; do
10858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861    break 2
10862  fi
10863done
10864  done
10865IFS=$as_save_IFS
10866
10867fi
10868fi
10869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10870if test -n "$ac_ct_DUMPBIN"; then
10871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10872$as_echo "$ac_ct_DUMPBIN" >&6; }
10873else
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
10876fi
10877
10878
10879  test -n "$ac_ct_DUMPBIN" && break
10880done
10881
10882  if test "x$ac_ct_DUMPBIN" = x; then
10883    DUMPBIN=":"
10884  else
10885    case $cross_compiling:$ac_tool_warned in
10886yes:)
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889ac_tool_warned=yes ;;
10890esac
10891    DUMPBIN=$ac_ct_DUMPBIN
10892  fi
10893fi
10894
10895    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
10896    *COFF*)
10897      DUMPBIN="$DUMPBIN -symbols -headers"
10898      ;;
10899    *)
10900      DUMPBIN=:
10901      ;;
10902    esac
10903  fi
10904
10905  if test : != "$DUMPBIN"; then
10906    NM=$DUMPBIN
10907  fi
10908fi
10909test -z "$NM" && NM=nm
10910
10911
10912
10913
10914
10915
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10917$as_echo_n "checking the name lister ($NM) interface... " >&6; }
10918if ${lt_cv_nm_interface+:} false; then :
10919  $as_echo_n "(cached) " >&6
10920else
10921  lt_cv_nm_interface="BSD nm"
10922  echo "int some_variable = 0;" > conftest.$ac_ext
10923  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10924  (eval "$ac_compile" 2>conftest.err)
10925  cat conftest.err >&5
10926  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10927  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10928  cat conftest.err >&5
10929  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10930  cat conftest.out >&5
10931  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10932    lt_cv_nm_interface="MS dumpbin"
10933  fi
10934  rm -f conftest*
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10937$as_echo "$lt_cv_nm_interface" >&6; }
10938
10939# find the maximum length of command line arguments
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10941$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10942if ${lt_cv_sys_max_cmd_len+:} false; then :
10943  $as_echo_n "(cached) " >&6
10944else
10945    i=0
10946  teststring=ABCD
10947
10948  case $build_os in
10949  msdosdjgpp*)
10950    # On DJGPP, this test can blow up pretty badly due to problems in libc
10951    # (any single argument exceeding 2000 bytes causes a buffer overrun
10952    # during glob expansion).  Even if it were fixed, the result of this
10953    # check would be larger than it should be.
10954    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10955    ;;
10956
10957  gnu*)
10958    # Under GNU Hurd, this test is not required because there is
10959    # no limit to the length of command line arguments.
10960    # Libtool will interpret -1 as no limit whatsoever
10961    lt_cv_sys_max_cmd_len=-1;
10962    ;;
10963
10964  cygwin* | mingw* | cegcc*)
10965    # On Win9x/ME, this test blows up -- it succeeds, but takes
10966    # about 5 minutes as the teststring grows exponentially.
10967    # Worse, since 9x/ME are not pre-emptively multitasking,
10968    # you end up with a "frozen" computer, even though with patience
10969    # the test eventually succeeds (with a max line length of 256k).
10970    # Instead, let's just punt: use the minimum linelength reported by
10971    # all of the supported platforms: 8192 (on NT/2K/XP).
10972    lt_cv_sys_max_cmd_len=8192;
10973    ;;
10974
10975  mint*)
10976    # On MiNT this can take a long time and run out of memory.
10977    lt_cv_sys_max_cmd_len=8192;
10978    ;;
10979
10980  amigaos*)
10981    # On AmigaOS with pdksh, this test takes hours, literally.
10982    # So we just punt and use a minimum line length of 8192.
10983    lt_cv_sys_max_cmd_len=8192;
10984    ;;
10985
10986  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
10987    # This has been around since 386BSD, at least.  Likely further.
10988    if test -x /sbin/sysctl; then
10989      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10990    elif test -x /usr/sbin/sysctl; then
10991      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10992    else
10993      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10994    fi
10995    # And add a safety zone
10996    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10997    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10998    ;;
10999
11000  interix*)
11001    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11002    lt_cv_sys_max_cmd_len=196608
11003    ;;
11004
11005  os2*)
11006    # The test takes a long time on OS/2.
11007    lt_cv_sys_max_cmd_len=8192
11008    ;;
11009
11010  osf*)
11011    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11012    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11013    # nice to cause kernel panics so lets avoid the loop below.
11014    # First set a reasonable default.
11015    lt_cv_sys_max_cmd_len=16384
11016    #
11017    if test -x /sbin/sysconfig; then
11018      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11019        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11020      esac
11021    fi
11022    ;;
11023  sco3.2v5*)
11024    lt_cv_sys_max_cmd_len=102400
11025    ;;
11026  sysv5* | sco5v6* | sysv4.2uw2*)
11027    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11028    if test -n "$kargmax"; then
11029      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11030    else
11031      lt_cv_sys_max_cmd_len=32768
11032    fi
11033    ;;
11034  *)
11035    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11036    if test -n "$lt_cv_sys_max_cmd_len" && \
11037       test undefined != "$lt_cv_sys_max_cmd_len"; then
11038      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11039      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11040    else
11041      # Make teststring a little bigger before we do anything with it.
11042      # a 1K string should be a reasonable start.
11043      for i in 1 2 3 4 5 6 7 8; do
11044        teststring=$teststring$teststring
11045      done
11046      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11047      # If test is not a shell built-in, we'll probably end up computing a
11048      # maximum length that is only half of the actual maximum length, but
11049      # we can't tell.
11050      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11051	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11052	      test 17 != "$i" # 1/2 MB should be enough
11053      do
11054        i=`expr $i + 1`
11055        teststring=$teststring$teststring
11056      done
11057      # Only check the string length outside the loop.
11058      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11059      teststring=
11060      # Add a significant safety factor because C++ compilers can tack on
11061      # massive amounts of additional arguments before passing them to the
11062      # linker.  It appears as though 1/2 is a usable value.
11063      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11064    fi
11065    ;;
11066  esac
11067
11068fi
11069
11070if test -n "$lt_cv_sys_max_cmd_len"; then
11071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11072$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11073else
11074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11075$as_echo "none" >&6; }
11076fi
11077max_cmd_len=$lt_cv_sys_max_cmd_len
11078
11079
11080
11081
11082
11083
11084: ${CP="cp -f"}
11085: ${MV="mv -f"}
11086: ${RM="rm -f"}
11087
11088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11089  lt_unset=unset
11090else
11091  lt_unset=false
11092fi
11093
11094
11095
11096
11097
11098# test EBCDIC or ASCII
11099case `echo X|tr X '\101'` in
11100 A) # ASCII based system
11101    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11102  lt_SP2NL='tr \040 \012'
11103  lt_NL2SP='tr \015\012 \040\040'
11104  ;;
11105 *) # EBCDIC based system
11106  lt_SP2NL='tr \100 \n'
11107  lt_NL2SP='tr \r\n \100\100'
11108  ;;
11109esac
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11120$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11121if ${lt_cv_to_host_file_cmd+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  case $host in
11125  *-*-mingw* )
11126    case $build in
11127      *-*-mingw* ) # actually msys
11128        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11129        ;;
11130      *-*-cygwin* )
11131        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11132        ;;
11133      * ) # otherwise, assume *nix
11134        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11135        ;;
11136    esac
11137    ;;
11138  *-*-cygwin* )
11139    case $build in
11140      *-*-mingw* ) # actually msys
11141        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11142        ;;
11143      *-*-cygwin* )
11144        lt_cv_to_host_file_cmd=func_convert_file_noop
11145        ;;
11146      * ) # otherwise, assume *nix
11147        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11148        ;;
11149    esac
11150    ;;
11151  * ) # unhandled hosts (and "normal" native builds)
11152    lt_cv_to_host_file_cmd=func_convert_file_noop
11153    ;;
11154esac
11155
11156fi
11157
11158to_host_file_cmd=$lt_cv_to_host_file_cmd
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11160$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11161
11162
11163
11164
11165
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11167$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11168if ${lt_cv_to_tool_file_cmd+:} false; then :
11169  $as_echo_n "(cached) " >&6
11170else
11171  #assume ordinary cross tools, or native build.
11172lt_cv_to_tool_file_cmd=func_convert_file_noop
11173case $host in
11174  *-*-mingw* )
11175    case $build in
11176      *-*-mingw* ) # actually msys
11177        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11178        ;;
11179    esac
11180    ;;
11181esac
11182
11183fi
11184
11185to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11187$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11188
11189
11190
11191
11192
11193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11194$as_echo_n "checking for $LD option to reload object files... " >&6; }
11195if ${lt_cv_ld_reload_flag+:} false; then :
11196  $as_echo_n "(cached) " >&6
11197else
11198  lt_cv_ld_reload_flag='-r'
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11201$as_echo "$lt_cv_ld_reload_flag" >&6; }
11202reload_flag=$lt_cv_ld_reload_flag
11203case $reload_flag in
11204"" | " "*) ;;
11205*) reload_flag=" $reload_flag" ;;
11206esac
11207reload_cmds='$LD$reload_flag -o $output$reload_objs'
11208case $host_os in
11209  cygwin* | mingw* | pw32* | cegcc*)
11210    if test yes != "$GCC"; then
11211      reload_cmds=false
11212    fi
11213    ;;
11214  darwin*)
11215    if test yes = "$GCC"; then
11216      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11217    else
11218      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11219    fi
11220    ;;
11221esac
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231if test -n "$ac_tool_prefix"; then
11232  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11233set dummy ${ac_tool_prefix}objdump; ac_word=$2
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235$as_echo_n "checking for $ac_word... " >&6; }
11236if ${ac_cv_prog_OBJDUMP+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  if test -n "$OBJDUMP"; then
11240  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11241else
11242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243for as_dir in $PATH
11244do
11245  IFS=$as_save_IFS
11246  test -z "$as_dir" && as_dir=.
11247    for ac_exec_ext in '' $ac_executable_extensions; do
11248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251    break 2
11252  fi
11253done
11254  done
11255IFS=$as_save_IFS
11256
11257fi
11258fi
11259OBJDUMP=$ac_cv_prog_OBJDUMP
11260if test -n "$OBJDUMP"; then
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11262$as_echo "$OBJDUMP" >&6; }
11263else
11264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265$as_echo "no" >&6; }
11266fi
11267
11268
11269fi
11270if test -z "$ac_cv_prog_OBJDUMP"; then
11271  ac_ct_OBJDUMP=$OBJDUMP
11272  # Extract the first word of "objdump", so it can be a program name with args.
11273set dummy objdump; ac_word=$2
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11277  $as_echo_n "(cached) " >&6
11278else
11279  if test -n "$ac_ct_OBJDUMP"; then
11280  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285  IFS=$as_save_IFS
11286  test -z "$as_dir" && as_dir=.
11287    for ac_exec_ext in '' $ac_executable_extensions; do
11288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291    break 2
11292  fi
11293done
11294  done
11295IFS=$as_save_IFS
11296
11297fi
11298fi
11299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11300if test -n "$ac_ct_OBJDUMP"; then
11301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11302$as_echo "$ac_ct_OBJDUMP" >&6; }
11303else
11304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306fi
11307
11308  if test "x$ac_ct_OBJDUMP" = x; then
11309    OBJDUMP="false"
11310  else
11311    case $cross_compiling:$ac_tool_warned in
11312yes:)
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11315ac_tool_warned=yes ;;
11316esac
11317    OBJDUMP=$ac_ct_OBJDUMP
11318  fi
11319else
11320  OBJDUMP="$ac_cv_prog_OBJDUMP"
11321fi
11322
11323test -z "$OBJDUMP" && OBJDUMP=objdump
11324
11325
11326
11327
11328
11329
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11331$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11332if ${lt_cv_deplibs_check_method+:} false; then :
11333  $as_echo_n "(cached) " >&6
11334else
11335  lt_cv_file_magic_cmd='$MAGIC_CMD'
11336lt_cv_file_magic_test_file=
11337lt_cv_deplibs_check_method='unknown'
11338# Need to set the preceding variable on all platforms that support
11339# interlibrary dependencies.
11340# 'none' -- dependencies not supported.
11341# 'unknown' -- same as none, but documents that we really don't know.
11342# 'pass_all' -- all dependencies passed with no checks.
11343# 'test_compile' -- check by making test program.
11344# 'file_magic [[regex]]' -- check by looking for files in library path
11345# that responds to the $file_magic_cmd with a given extended regex.
11346# If you have 'file' or equivalent on your system and you're not sure
11347# whether 'pass_all' will *always* work, you probably want this one.
11348
11349case $host_os in
11350aix[4-9]*)
11351  lt_cv_deplibs_check_method=pass_all
11352  ;;
11353
11354beos*)
11355  lt_cv_deplibs_check_method=pass_all
11356  ;;
11357
11358bsdi[45]*)
11359  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11360  lt_cv_file_magic_cmd='/usr/bin/file -L'
11361  lt_cv_file_magic_test_file=/shlib/libc.so
11362  ;;
11363
11364cygwin*)
11365  # func_win32_libid is a shell function defined in ltmain.sh
11366  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11367  lt_cv_file_magic_cmd='func_win32_libid'
11368  ;;
11369
11370mingw* | pw32*)
11371  # Base MSYS/MinGW do not provide the 'file' command needed by
11372  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11373  # unless we find 'file', for example because we are cross-compiling.
11374  if ( file / ) >/dev/null 2>&1; then
11375    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11376    lt_cv_file_magic_cmd='func_win32_libid'
11377  else
11378    # Keep this pattern in sync with the one in func_win32_libid.
11379    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11380    lt_cv_file_magic_cmd='$OBJDUMP -f'
11381  fi
11382  ;;
11383
11384cegcc*)
11385  # use the weaker test based on 'objdump'. See mingw*.
11386  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11387  lt_cv_file_magic_cmd='$OBJDUMP -f'
11388  ;;
11389
11390darwin* | rhapsody*)
11391  lt_cv_deplibs_check_method=pass_all
11392  ;;
11393
11394freebsd* | dragonfly*)
11395  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11396    case $host_cpu in
11397    i*86 )
11398      # Not sure whether the presence of OpenBSD here was a mistake.
11399      # Let's accept both of them until this is cleared up.
11400      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11401      lt_cv_file_magic_cmd=/usr/bin/file
11402      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11403      ;;
11404    esac
11405  else
11406    lt_cv_deplibs_check_method=pass_all
11407  fi
11408  ;;
11409
11410haiku*)
11411  lt_cv_deplibs_check_method=pass_all
11412  ;;
11413
11414hpux10.20* | hpux11*)
11415  lt_cv_file_magic_cmd=/usr/bin/file
11416  case $host_cpu in
11417  ia64*)
11418    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11419    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11420    ;;
11421  hppa*64*)
11422    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11423    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11424    ;;
11425  *)
11426    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11427    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11428    ;;
11429  esac
11430  ;;
11431
11432interix[3-9]*)
11433  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11434  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11435  ;;
11436
11437irix5* | irix6* | nonstopux*)
11438  case $LD in
11439  *-32|*"-32 ") libmagic=32-bit;;
11440  *-n32|*"-n32 ") libmagic=N32;;
11441  *-64|*"-64 ") libmagic=64-bit;;
11442  *) libmagic=never-match;;
11443  esac
11444  lt_cv_deplibs_check_method=pass_all
11445  ;;
11446
11447# This must be glibc/ELF.
11448linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11449  lt_cv_deplibs_check_method=pass_all
11450  ;;
11451
11452netbsd*)
11453  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11454    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11455  else
11456    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11457  fi
11458  ;;
11459
11460newos6*)
11461  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11462  lt_cv_file_magic_cmd=/usr/bin/file
11463  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11464  ;;
11465
11466*nto* | *qnx*)
11467  lt_cv_deplibs_check_method=pass_all
11468  ;;
11469
11470openbsd* | bitrig*)
11471  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11472    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11473  else
11474    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11475  fi
11476  ;;
11477
11478osf3* | osf4* | osf5*)
11479  lt_cv_deplibs_check_method=pass_all
11480  ;;
11481
11482rdos*)
11483  lt_cv_deplibs_check_method=pass_all
11484  ;;
11485
11486solaris*)
11487  lt_cv_deplibs_check_method=pass_all
11488  ;;
11489
11490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491  lt_cv_deplibs_check_method=pass_all
11492  ;;
11493
11494sysv4 | sysv4.3*)
11495  case $host_vendor in
11496  motorola)
11497    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]'
11498    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11499    ;;
11500  ncr)
11501    lt_cv_deplibs_check_method=pass_all
11502    ;;
11503  sequent)
11504    lt_cv_file_magic_cmd='/bin/file'
11505    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11506    ;;
11507  sni)
11508    lt_cv_file_magic_cmd='/bin/file'
11509    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11510    lt_cv_file_magic_test_file=/lib/libc.so
11511    ;;
11512  siemens)
11513    lt_cv_deplibs_check_method=pass_all
11514    ;;
11515  pc)
11516    lt_cv_deplibs_check_method=pass_all
11517    ;;
11518  esac
11519  ;;
11520
11521tpf*)
11522  lt_cv_deplibs_check_method=pass_all
11523  ;;
11524os2*)
11525  lt_cv_deplibs_check_method=pass_all
11526  ;;
11527esac
11528
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11531$as_echo "$lt_cv_deplibs_check_method" >&6; }
11532
11533file_magic_glob=
11534want_nocaseglob=no
11535if test "$build" = "$host"; then
11536  case $host_os in
11537  mingw* | pw32*)
11538    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11539      want_nocaseglob=yes
11540    else
11541      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11542    fi
11543    ;;
11544  esac
11545fi
11546
11547file_magic_cmd=$lt_cv_file_magic_cmd
11548deplibs_check_method=$lt_cv_deplibs_check_method
11549test -z "$deplibs_check_method" && deplibs_check_method=unknown
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572if test -n "$ac_tool_prefix"; then
11573  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11574set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576$as_echo_n "checking for $ac_word... " >&6; }
11577if ${ac_cv_prog_DLLTOOL+:} false; then :
11578  $as_echo_n "(cached) " >&6
11579else
11580  if test -n "$DLLTOOL"; then
11581  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11582else
11583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586  IFS=$as_save_IFS
11587  test -z "$as_dir" && as_dir=.
11588    for ac_exec_ext in '' $ac_executable_extensions; do
11589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592    break 2
11593  fi
11594done
11595  done
11596IFS=$as_save_IFS
11597
11598fi
11599fi
11600DLLTOOL=$ac_cv_prog_DLLTOOL
11601if test -n "$DLLTOOL"; then
11602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11603$as_echo "$DLLTOOL" >&6; }
11604else
11605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
11607fi
11608
11609
11610fi
11611if test -z "$ac_cv_prog_DLLTOOL"; then
11612  ac_ct_DLLTOOL=$DLLTOOL
11613  # Extract the first word of "dlltool", so it can be a program name with args.
11614set dummy dlltool; ac_word=$2
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11618  $as_echo_n "(cached) " >&6
11619else
11620  if test -n "$ac_ct_DLLTOOL"; then
11621  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626  IFS=$as_save_IFS
11627  test -z "$as_dir" && as_dir=.
11628    for ac_exec_ext in '' $ac_executable_extensions; do
11629  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632    break 2
11633  fi
11634done
11635  done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11641if test -n "$ac_ct_DLLTOOL"; then
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11643$as_echo "$ac_ct_DLLTOOL" >&6; }
11644else
11645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649  if test "x$ac_ct_DLLTOOL" = x; then
11650    DLLTOOL="false"
11651  else
11652    case $cross_compiling:$ac_tool_warned in
11653yes:)
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11656ac_tool_warned=yes ;;
11657esac
11658    DLLTOOL=$ac_ct_DLLTOOL
11659  fi
11660else
11661  DLLTOOL="$ac_cv_prog_DLLTOOL"
11662fi
11663
11664test -z "$DLLTOOL" && DLLTOOL=dlltool
11665
11666
11667
11668
11669
11670
11671
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11673$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11674if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677  lt_cv_sharedlib_from_linklib_cmd='unknown'
11678
11679case $host_os in
11680cygwin* | mingw* | pw32* | cegcc*)
11681  # two different shell functions defined in ltmain.sh;
11682  # decide which one to use based on capabilities of $DLLTOOL
11683  case `$DLLTOOL --help 2>&1` in
11684  *--identify-strict*)
11685    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11686    ;;
11687  *)
11688    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11689    ;;
11690  esac
11691  ;;
11692*)
11693  # fallback: assume linklib IS sharedlib
11694  lt_cv_sharedlib_from_linklib_cmd=$ECHO
11695  ;;
11696esac
11697
11698fi
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11700$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11701sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11702test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11703
11704
11705
11706
11707
11708
11709
11710if test -n "$ac_tool_prefix"; then
11711  for ac_prog in ar
11712  do
11713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if ${ac_cv_prog_AR+:} false; then :
11718  $as_echo_n "(cached) " >&6
11719else
11720  if test -n "$AR"; then
11721  ac_cv_prog_AR="$AR" # Let the user override the test.
11722else
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726  IFS=$as_save_IFS
11727  test -z "$as_dir" && as_dir=.
11728    for ac_exec_ext in '' $ac_executable_extensions; do
11729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732    break 2
11733  fi
11734done
11735  done
11736IFS=$as_save_IFS
11737
11738fi
11739fi
11740AR=$ac_cv_prog_AR
11741if test -n "$AR"; then
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11743$as_echo "$AR" >&6; }
11744else
11745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
11747fi
11748
11749
11750    test -n "$AR" && break
11751  done
11752fi
11753if test -z "$AR"; then
11754  ac_ct_AR=$AR
11755  for ac_prog in ar
11756do
11757  # Extract the first word of "$ac_prog", so it can be a program name with args.
11758set dummy $ac_prog; ac_word=$2
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760$as_echo_n "checking for $ac_word... " >&6; }
11761if ${ac_cv_prog_ac_ct_AR+:} false; then :
11762  $as_echo_n "(cached) " >&6
11763else
11764  if test -n "$ac_ct_AR"; then
11765  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11766else
11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770  IFS=$as_save_IFS
11771  test -z "$as_dir" && as_dir=.
11772    for ac_exec_ext in '' $ac_executable_extensions; do
11773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774    ac_cv_prog_ac_ct_AR="$ac_prog"
11775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776    break 2
11777  fi
11778done
11779  done
11780IFS=$as_save_IFS
11781
11782fi
11783fi
11784ac_ct_AR=$ac_cv_prog_ac_ct_AR
11785if test -n "$ac_ct_AR"; then
11786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11787$as_echo "$ac_ct_AR" >&6; }
11788else
11789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790$as_echo "no" >&6; }
11791fi
11792
11793
11794  test -n "$ac_ct_AR" && break
11795done
11796
11797  if test "x$ac_ct_AR" = x; then
11798    AR="false"
11799  else
11800    case $cross_compiling:$ac_tool_warned in
11801yes:)
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11804ac_tool_warned=yes ;;
11805esac
11806    AR=$ac_ct_AR
11807  fi
11808fi
11809
11810: ${AR=ar}
11811: ${AR_FLAGS=cru}
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11824$as_echo_n "checking for archiver @FILE support... " >&6; }
11825if ${lt_cv_ar_at_file+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  lt_cv_ar_at_file=no
11829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h.  */
11831
11832int
11833main ()
11834{
11835
11836  ;
11837  return 0;
11838}
11839_ACEOF
11840if ac_fn_c_try_compile "$LINENO"; then :
11841  echo conftest.$ac_objext > conftest.lst
11842      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11843      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11844  (eval $lt_ar_try) 2>&5
11845  ac_status=$?
11846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847  test $ac_status = 0; }
11848      if test 0 -eq "$ac_status"; then
11849	# Ensure the archiver fails upon bogus file names.
11850	rm -f conftest.$ac_objext libconftest.a
11851	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11852  (eval $lt_ar_try) 2>&5
11853  ac_status=$?
11854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11855  test $ac_status = 0; }
11856	if test 0 -ne "$ac_status"; then
11857          lt_cv_ar_at_file=@
11858        fi
11859      fi
11860      rm -f conftest.* libconftest.a
11861
11862fi
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864
11865fi
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11867$as_echo "$lt_cv_ar_at_file" >&6; }
11868
11869if test no = "$lt_cv_ar_at_file"; then
11870  archiver_list_spec=
11871else
11872  archiver_list_spec=$lt_cv_ar_at_file
11873fi
11874
11875
11876
11877
11878
11879
11880
11881if test -n "$ac_tool_prefix"; then
11882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11883set dummy ${ac_tool_prefix}strip; ac_word=$2
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if ${ac_cv_prog_STRIP+:} false; then :
11887  $as_echo_n "(cached) " >&6
11888else
11889  if test -n "$STRIP"; then
11890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895  IFS=$as_save_IFS
11896  test -z "$as_dir" && as_dir=.
11897    for ac_exec_ext in '' $ac_executable_extensions; do
11898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901    break 2
11902  fi
11903done
11904  done
11905IFS=$as_save_IFS
11906
11907fi
11908fi
11909STRIP=$ac_cv_prog_STRIP
11910if test -n "$STRIP"; then
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11912$as_echo "$STRIP" >&6; }
11913else
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
11916fi
11917
11918
11919fi
11920if test -z "$ac_cv_prog_STRIP"; then
11921  ac_ct_STRIP=$STRIP
11922  # Extract the first word of "strip", so it can be a program name with args.
11923set dummy strip; ac_word=$2
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925$as_echo_n "checking for $ac_word... " >&6; }
11926if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11927  $as_echo_n "(cached) " >&6
11928else
11929  if test -n "$ac_ct_STRIP"; then
11930  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11931else
11932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933for as_dir in $PATH
11934do
11935  IFS=$as_save_IFS
11936  test -z "$as_dir" && as_dir=.
11937    for ac_exec_ext in '' $ac_executable_extensions; do
11938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939    ac_cv_prog_ac_ct_STRIP="strip"
11940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941    break 2
11942  fi
11943done
11944  done
11945IFS=$as_save_IFS
11946
11947fi
11948fi
11949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11950if test -n "$ac_ct_STRIP"; then
11951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11952$as_echo "$ac_ct_STRIP" >&6; }
11953else
11954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
11956fi
11957
11958  if test "x$ac_ct_STRIP" = x; then
11959    STRIP=":"
11960  else
11961    case $cross_compiling:$ac_tool_warned in
11962yes:)
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965ac_tool_warned=yes ;;
11966esac
11967    STRIP=$ac_ct_STRIP
11968  fi
11969else
11970  STRIP="$ac_cv_prog_STRIP"
11971fi
11972
11973test -z "$STRIP" && STRIP=:
11974
11975
11976
11977
11978
11979
11980if test -n "$ac_tool_prefix"; then
11981  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11982set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984$as_echo_n "checking for $ac_word... " >&6; }
11985if ${ac_cv_prog_RANLIB+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  if test -n "$RANLIB"; then
11989  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11990else
11991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992for as_dir in $PATH
11993do
11994  IFS=$as_save_IFS
11995  test -z "$as_dir" && as_dir=.
11996    for ac_exec_ext in '' $ac_executable_extensions; do
11997  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11998    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11999    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000    break 2
12001  fi
12002done
12003  done
12004IFS=$as_save_IFS
12005
12006fi
12007fi
12008RANLIB=$ac_cv_prog_RANLIB
12009if test -n "$RANLIB"; then
12010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12011$as_echo "$RANLIB" >&6; }
12012else
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
12015fi
12016
12017
12018fi
12019if test -z "$ac_cv_prog_RANLIB"; then
12020  ac_ct_RANLIB=$RANLIB
12021  # Extract the first word of "ranlib", so it can be a program name with args.
12022set dummy ranlib; ac_word=$2
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024$as_echo_n "checking for $ac_word... " >&6; }
12025if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12026  $as_echo_n "(cached) " >&6
12027else
12028  if test -n "$ac_ct_RANLIB"; then
12029  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12030else
12031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $PATH
12033do
12034  IFS=$as_save_IFS
12035  test -z "$as_dir" && as_dir=.
12036    for ac_exec_ext in '' $ac_executable_extensions; do
12037  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12038    ac_cv_prog_ac_ct_RANLIB="ranlib"
12039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12040    break 2
12041  fi
12042done
12043  done
12044IFS=$as_save_IFS
12045
12046fi
12047fi
12048ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12049if test -n "$ac_ct_RANLIB"; then
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12051$as_echo "$ac_ct_RANLIB" >&6; }
12052else
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
12055fi
12056
12057  if test "x$ac_ct_RANLIB" = x; then
12058    RANLIB=":"
12059  else
12060    case $cross_compiling:$ac_tool_warned in
12061yes:)
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12064ac_tool_warned=yes ;;
12065esac
12066    RANLIB=$ac_ct_RANLIB
12067  fi
12068else
12069  RANLIB="$ac_cv_prog_RANLIB"
12070fi
12071
12072test -z "$RANLIB" && RANLIB=:
12073
12074
12075
12076
12077
12078
12079# Determine commands to create old-style static archives.
12080old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12081old_postinstall_cmds='chmod 644 $oldlib'
12082old_postuninstall_cmds=
12083
12084if test -n "$RANLIB"; then
12085  case $host_os in
12086  bitrig* | openbsd*)
12087    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12088    ;;
12089  *)
12090    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12091    ;;
12092  esac
12093  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12094fi
12095
12096case $host_os in
12097  darwin*)
12098    lock_old_archive_extraction=yes ;;
12099  *)
12100    lock_old_archive_extraction=no ;;
12101esac
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141# If no C compiler was specified, use CC.
12142LTCC=${LTCC-"$CC"}
12143
12144# If no C compiler flags were specified, use CFLAGS.
12145LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12146
12147# Allow CC to be a program name with arguments.
12148compiler=$CC
12149
12150
12151# Check for command to grab the raw symbol name followed by C symbol from nm.
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12153$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12154if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12155  $as_echo_n "(cached) " >&6
12156else
12157
12158# These are sane defaults that work on at least a few old systems.
12159# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12160
12161# Character class describing NM global symbol codes.
12162symcode='[BCDEGRST]'
12163
12164# Regexp to match symbols that can be accessed directly from C.
12165sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12166
12167# Define system-specific variables.
12168case $host_os in
12169aix*)
12170  symcode='[BCDT]'
12171  ;;
12172cygwin* | mingw* | pw32* | cegcc*)
12173  symcode='[ABCDGISTW]'
12174  ;;
12175hpux*)
12176  if test ia64 = "$host_cpu"; then
12177    symcode='[ABCDEGRST]'
12178  fi
12179  ;;
12180irix* | nonstopux*)
12181  symcode='[BCDEGRST]'
12182  ;;
12183osf*)
12184  symcode='[BCDEGQRST]'
12185  ;;
12186solaris*)
12187  symcode='[BDRT]'
12188  ;;
12189sco3.2v5*)
12190  symcode='[DT]'
12191  ;;
12192sysv4.2uw2*)
12193  symcode='[DT]'
12194  ;;
12195sysv5* | sco5v6* | unixware* | OpenUNIX*)
12196  symcode='[ABDT]'
12197  ;;
12198sysv4)
12199  symcode='[DFNSTU]'
12200  ;;
12201esac
12202
12203# If we're using GNU nm, then use its standard symbol codes.
12204case `$NM -V 2>&1` in
12205*GNU* | *'with BFD'*)
12206  symcode='[ABCDGIRSTW]' ;;
12207esac
12208
12209if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12210  # Gets list of data symbols to import.
12211  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12212  # Adjust the below global symbol transforms to fixup imported variables.
12213  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12214  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12215  lt_c_name_lib_hook="\
12216  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12217  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12218else
12219  # Disable hooks by default.
12220  lt_cv_sys_global_symbol_to_import=
12221  lt_cdecl_hook=
12222  lt_c_name_hook=
12223  lt_c_name_lib_hook=
12224fi
12225
12226# Transform an extracted symbol line into a proper C declaration.
12227# Some systems (esp. on ia64) link data and code symbols differently,
12228# so use this general approach.
12229lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12230$lt_cdecl_hook\
12231" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12232" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12233
12234# Transform an extracted symbol line into symbol name and symbol address
12235lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12236$lt_c_name_hook\
12237" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12238" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12239
12240# Transform an extracted symbol line into symbol name with lib prefix and
12241# symbol address.
12242lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12243$lt_c_name_lib_hook\
12244" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12245" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12246" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12247
12248# Handle CRLF in mingw tool chain
12249opt_cr=
12250case $build_os in
12251mingw*)
12252  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12253  ;;
12254esac
12255
12256# Try without a prefix underscore, then with it.
12257for ac_symprfx in "" "_"; do
12258
12259  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12260  symxfrm="\\1 $ac_symprfx\\2 \\2"
12261
12262  # Write the raw and C identifiers.
12263  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12264    # Fake it for dumpbin and say T for any non-static function,
12265    # D for any global variable and I for any imported variable.
12266    # Also find C++ and __fastcall symbols from MSVC++,
12267    # which start with @ or ?.
12268    lt_cv_sys_global_symbol_pipe="$AWK '"\
12269"     {last_section=section; section=\$ 3};"\
12270"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12271"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12272"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12273"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12274"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12275"     \$ 0!~/External *\|/{next};"\
12276"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12277"     {if(hide[section]) next};"\
12278"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12279"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12280"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12281"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12282"     ' prfx=^$ac_symprfx"
12283  else
12284    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12285  fi
12286  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12287
12288  # Check to see that the pipe works correctly.
12289  pipe_works=no
12290
12291  rm -f conftest*
12292  cat > conftest.$ac_ext <<_LT_EOF
12293#ifdef __cplusplus
12294extern "C" {
12295#endif
12296char nm_test_var;
12297void nm_test_func(void);
12298void nm_test_func(void){}
12299#ifdef __cplusplus
12300}
12301#endif
12302int main(){nm_test_var='a';nm_test_func();return(0);}
12303_LT_EOF
12304
12305  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12306  (eval $ac_compile) 2>&5
12307  ac_status=$?
12308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309  test $ac_status = 0; }; then
12310    # Now try to grab the symbols.
12311    nlist=conftest.nm
12312    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12313  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12314  ac_status=$?
12315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316  test $ac_status = 0; } && test -s "$nlist"; then
12317      # Try sorting and uniquifying the output.
12318      if sort "$nlist" | uniq > "$nlist"T; then
12319	mv -f "$nlist"T "$nlist"
12320      else
12321	rm -f "$nlist"T
12322      fi
12323
12324      # Make sure that we snagged all the symbols we need.
12325      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12326	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12327	  cat <<_LT_EOF > conftest.$ac_ext
12328/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12329#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12330/* DATA imports from DLLs on WIN32 can't be const, because runtime
12331   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12332# define LT_DLSYM_CONST
12333#elif defined __osf__
12334/* This system does not cope well with relocations in const data.  */
12335# define LT_DLSYM_CONST
12336#else
12337# define LT_DLSYM_CONST const
12338#endif
12339
12340#ifdef __cplusplus
12341extern "C" {
12342#endif
12343
12344_LT_EOF
12345	  # Now generate the symbol file.
12346	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12347
12348	  cat <<_LT_EOF >> conftest.$ac_ext
12349
12350/* The mapping between symbol names and symbols.  */
12351LT_DLSYM_CONST struct {
12352  const char *name;
12353  void       *address;
12354}
12355lt__PROGRAM__LTX_preloaded_symbols[] =
12356{
12357  { "@PROGRAM@", (void *) 0 },
12358_LT_EOF
12359	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12360	  cat <<\_LT_EOF >> conftest.$ac_ext
12361  {0, (void *) 0}
12362};
12363
12364/* This works around a problem in FreeBSD linker */
12365#ifdef FREEBSD_WORKAROUND
12366static const void *lt_preloaded_setup() {
12367  return lt__PROGRAM__LTX_preloaded_symbols;
12368}
12369#endif
12370
12371#ifdef __cplusplus
12372}
12373#endif
12374_LT_EOF
12375	  # Now try linking the two files.
12376	  mv conftest.$ac_objext conftstm.$ac_objext
12377	  lt_globsym_save_LIBS=$LIBS
12378	  lt_globsym_save_CFLAGS=$CFLAGS
12379	  LIBS=conftstm.$ac_objext
12380	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12381	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12382  (eval $ac_link) 2>&5
12383  ac_status=$?
12384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12385  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12386	    pipe_works=yes
12387	  fi
12388	  LIBS=$lt_globsym_save_LIBS
12389	  CFLAGS=$lt_globsym_save_CFLAGS
12390	else
12391	  echo "cannot find nm_test_func in $nlist" >&5
12392	fi
12393      else
12394	echo "cannot find nm_test_var in $nlist" >&5
12395      fi
12396    else
12397      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12398    fi
12399  else
12400    echo "$progname: failed program was:" >&5
12401    cat conftest.$ac_ext >&5
12402  fi
12403  rm -rf conftest* conftst*
12404
12405  # Do not use the global_symbol_pipe unless it works.
12406  if test yes = "$pipe_works"; then
12407    break
12408  else
12409    lt_cv_sys_global_symbol_pipe=
12410  fi
12411done
12412
12413fi
12414
12415if test -z "$lt_cv_sys_global_symbol_pipe"; then
12416  lt_cv_sys_global_symbol_to_cdecl=
12417fi
12418if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12420$as_echo "failed" >&6; }
12421else
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12423$as_echo "ok" >&6; }
12424fi
12425
12426# Response file support.
12427if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12428  nm_file_list_spec='@'
12429elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12430  nm_file_list_spec='@'
12431fi
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12470$as_echo_n "checking for sysroot... " >&6; }
12471
12472# Check whether --with-sysroot was given.
12473if test "${with_sysroot+set}" = set; then :
12474  withval=$with_sysroot;
12475else
12476  with_sysroot=no
12477fi
12478
12479
12480lt_sysroot=
12481case $with_sysroot in #(
12482 yes)
12483   if test yes = "$GCC"; then
12484     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12485   fi
12486   ;; #(
12487 /*)
12488   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12489   ;; #(
12490 no|'')
12491   ;; #(
12492 *)
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12494$as_echo "$with_sysroot" >&6; }
12495   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12496   ;;
12497esac
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12500$as_echo "${lt_sysroot:-no}" >&6; }
12501
12502
12503
12504
12505
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12507$as_echo_n "checking for a working dd... " >&6; }
12508if ${ac_cv_path_lt_DD+:} false; then :
12509  $as_echo_n "(cached) " >&6
12510else
12511  printf 0123456789abcdef0123456789abcdef >conftest.i
12512cat conftest.i conftest.i >conftest2.i
12513: ${lt_DD:=$DD}
12514if test -z "$lt_DD"; then
12515  ac_path_lt_DD_found=false
12516  # Loop through the user's path and test for each of PROGNAME-LIST
12517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518for as_dir in $PATH
12519do
12520  IFS=$as_save_IFS
12521  test -z "$as_dir" && as_dir=.
12522    for ac_prog in dd; do
12523    for ac_exec_ext in '' $ac_executable_extensions; do
12524      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12525      as_fn_executable_p "$ac_path_lt_DD" || continue
12526if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12527  cmp -s conftest.i conftest.out \
12528  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12529fi
12530      $ac_path_lt_DD_found && break 3
12531    done
12532  done
12533  done
12534IFS=$as_save_IFS
12535  if test -z "$ac_cv_path_lt_DD"; then
12536    :
12537  fi
12538else
12539  ac_cv_path_lt_DD=$lt_DD
12540fi
12541
12542rm -f conftest.i conftest2.i conftest.out
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12545$as_echo "$ac_cv_path_lt_DD" >&6; }
12546
12547
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12549$as_echo_n "checking how to truncate binary pipes... " >&6; }
12550if ${lt_cv_truncate_bin+:} false; then :
12551  $as_echo_n "(cached) " >&6
12552else
12553  printf 0123456789abcdef0123456789abcdef >conftest.i
12554cat conftest.i conftest.i >conftest2.i
12555lt_cv_truncate_bin=
12556if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12557  cmp -s conftest.i conftest.out \
12558  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12559fi
12560rm -f conftest.i conftest2.i conftest.out
12561test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12562fi
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12564$as_echo "$lt_cv_truncate_bin" >&6; }
12565
12566
12567
12568
12569
12570
12571
12572# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
12573func_cc_basename ()
12574{
12575    for cc_temp in $*""; do
12576      case $cc_temp in
12577        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12578        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12579        \-*) ;;
12580        *) break;;
12581      esac
12582    done
12583    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12584}
12585
12586# Check whether --enable-libtool-lock was given.
12587if test "${enable_libtool_lock+set}" = set; then :
12588  enableval=$enable_libtool_lock;
12589fi
12590
12591test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12592
12593# Some flags need to be propagated to the compiler or linker for good
12594# libtool support.
12595case $host in
12596ia64-*-hpux*)
12597  # Find out what ABI is being produced by ac_compile, and set mode
12598  # options accordingly.
12599  echo 'int i;' > conftest.$ac_ext
12600  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12601  (eval $ac_compile) 2>&5
12602  ac_status=$?
12603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604  test $ac_status = 0; }; then
12605    case `/usr/bin/file conftest.$ac_objext` in
12606      *ELF-32*)
12607	HPUX_IA64_MODE=32
12608	;;
12609      *ELF-64*)
12610	HPUX_IA64_MODE=64
12611	;;
12612    esac
12613  fi
12614  rm -rf conftest*
12615  ;;
12616*-*-irix6*)
12617  # Find out what ABI is being produced by ac_compile, and set linker
12618  # options accordingly.
12619  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12620  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12621  (eval $ac_compile) 2>&5
12622  ac_status=$?
12623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624  test $ac_status = 0; }; then
12625    if test yes = "$lt_cv_prog_gnu_ld"; then
12626      case `/usr/bin/file conftest.$ac_objext` in
12627	*32-bit*)
12628	  LD="${LD-ld} -melf32bsmip"
12629	  ;;
12630	*N32*)
12631	  LD="${LD-ld} -melf32bmipn32"
12632	  ;;
12633	*64-bit*)
12634	  LD="${LD-ld} -melf64bmip"
12635	;;
12636      esac
12637    else
12638      case `/usr/bin/file conftest.$ac_objext` in
12639	*32-bit*)
12640	  LD="${LD-ld} -32"
12641	  ;;
12642	*N32*)
12643	  LD="${LD-ld} -n32"
12644	  ;;
12645	*64-bit*)
12646	  LD="${LD-ld} -64"
12647	  ;;
12648      esac
12649    fi
12650  fi
12651  rm -rf conftest*
12652  ;;
12653
12654mips64*-*linux*)
12655  # Find out what ABI is being produced by ac_compile, and set linker
12656  # options accordingly.
12657  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12658  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12659  (eval $ac_compile) 2>&5
12660  ac_status=$?
12661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12662  test $ac_status = 0; }; then
12663    emul=elf
12664    case `/usr/bin/file conftest.$ac_objext` in
12665      *32-bit*)
12666	emul="${emul}32"
12667	;;
12668      *64-bit*)
12669	emul="${emul}64"
12670	;;
12671    esac
12672    case `/usr/bin/file conftest.$ac_objext` in
12673      *MSB*)
12674	emul="${emul}btsmip"
12675	;;
12676      *LSB*)
12677	emul="${emul}ltsmip"
12678	;;
12679    esac
12680    case `/usr/bin/file conftest.$ac_objext` in
12681      *N32*)
12682	emul="${emul}n32"
12683	;;
12684    esac
12685    LD="${LD-ld} -m $emul"
12686  fi
12687  rm -rf conftest*
12688  ;;
12689
12690x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12691s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12692  # Find out what ABI is being produced by ac_compile, and set linker
12693  # options accordingly.  Note that the listed cases only cover the
12694  # situations where additional linker options are needed (such as when
12695  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
12696  # vice versa); the common cases where no linker options are needed do
12697  # not appear in the list.
12698  echo 'int i;' > conftest.$ac_ext
12699  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12700  (eval $ac_compile) 2>&5
12701  ac_status=$?
12702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12703  test $ac_status = 0; }; then
12704    case `/usr/bin/file conftest.o` in
12705      *32-bit*)
12706	case $host in
12707	  x86_64-*kfreebsd*-gnu)
12708	    LD="${LD-ld} -m elf_i386_fbsd"
12709	    ;;
12710	  x86_64-*linux*)
12711	    case `/usr/bin/file conftest.o` in
12712	      *x86-64*)
12713		LD="${LD-ld} -m elf32_x86_64"
12714		;;
12715	      *)
12716		LD="${LD-ld} -m elf_i386"
12717		;;
12718	    esac
12719	    ;;
12720	  powerpc64le-*linux*)
12721	    LD="${LD-ld} -m elf32lppclinux"
12722	    ;;
12723	  powerpc64-*linux*)
12724	    LD="${LD-ld} -m elf32ppclinux"
12725	    ;;
12726	  s390x-*linux*)
12727	    LD="${LD-ld} -m elf_s390"
12728	    ;;
12729	  sparc64-*linux*)
12730	    LD="${LD-ld} -m elf32_sparc"
12731	    ;;
12732	esac
12733	;;
12734      *64-bit*)
12735	case $host in
12736	  x86_64-*kfreebsd*-gnu)
12737	    LD="${LD-ld} -m elf_x86_64_fbsd"
12738	    ;;
12739	  x86_64-*linux*)
12740	    LD="${LD-ld} -m elf_x86_64"
12741	    ;;
12742	  powerpcle-*linux*)
12743	    LD="${LD-ld} -m elf64lppc"
12744	    ;;
12745	  powerpc-*linux*)
12746	    LD="${LD-ld} -m elf64ppc"
12747	    ;;
12748	  s390*-*linux*|s390*-*tpf*)
12749	    LD="${LD-ld} -m elf64_s390"
12750	    ;;
12751	  sparc*-*linux*)
12752	    LD="${LD-ld} -m elf64_sparc"
12753	    ;;
12754	esac
12755	;;
12756    esac
12757  fi
12758  rm -rf conftest*
12759  ;;
12760
12761*-*-sco3.2v5*)
12762  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12763  SAVE_CFLAGS=$CFLAGS
12764  CFLAGS="$CFLAGS -belf"
12765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12766$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12767if ${lt_cv_cc_needs_belf+:} false; then :
12768  $as_echo_n "(cached) " >&6
12769else
12770  ac_ext=c
12771ac_cpp='$CPP $CPPFLAGS'
12772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775
12776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777/* end confdefs.h.  */
12778
12779int
12780main ()
12781{
12782
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
12788  lt_cv_cc_needs_belf=yes
12789else
12790  lt_cv_cc_needs_belf=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793    conftest$ac_exeext conftest.$ac_ext
12794     ac_ext=c
12795ac_cpp='$CPP $CPPFLAGS'
12796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798ac_compiler_gnu=$ac_cv_c_compiler_gnu
12799
12800fi
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12802$as_echo "$lt_cv_cc_needs_belf" >&6; }
12803  if test yes != "$lt_cv_cc_needs_belf"; then
12804    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12805    CFLAGS=$SAVE_CFLAGS
12806  fi
12807  ;;
12808*-*solaris*)
12809  # Find out what ABI is being produced by ac_compile, and set linker
12810  # options accordingly.
12811  echo 'int i;' > conftest.$ac_ext
12812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12813  (eval $ac_compile) 2>&5
12814  ac_status=$?
12815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816  test $ac_status = 0; }; then
12817    case `/usr/bin/file conftest.o` in
12818    *64-bit*)
12819      case $lt_cv_prog_gnu_ld in
12820      yes*)
12821        case $host in
12822        i?86-*-solaris*|x86_64-*-solaris*)
12823          LD="${LD-ld} -m elf_x86_64"
12824          ;;
12825        sparc*-*-solaris*)
12826          LD="${LD-ld} -m elf64_sparc"
12827          ;;
12828        esac
12829        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12830        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12831          LD=${LD-ld}_sol2
12832        fi
12833        ;;
12834      *)
12835	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12836	  LD="${LD-ld} -64"
12837	fi
12838	;;
12839      esac
12840      ;;
12841    esac
12842  fi
12843  rm -rf conftest*
12844  ;;
12845esac
12846
12847need_locks=$enable_libtool_lock
12848
12849if test -n "$ac_tool_prefix"; then
12850  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12851set dummy ${ac_tool_prefix}mt; ac_word=$2
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
12854if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12855  $as_echo_n "(cached) " >&6
12856else
12857  if test -n "$MANIFEST_TOOL"; then
12858  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12859else
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863  IFS=$as_save_IFS
12864  test -z "$as_dir" && as_dir=.
12865    for ac_exec_ext in '' $ac_executable_extensions; do
12866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12867    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12869    break 2
12870  fi
12871done
12872  done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12878if test -n "$MANIFEST_TOOL"; then
12879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12880$as_echo "$MANIFEST_TOOL" >&6; }
12881else
12882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884fi
12885
12886
12887fi
12888if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12889  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12890  # Extract the first word of "mt", so it can be a program name with args.
12891set dummy mt; ac_word=$2
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
12894if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12895  $as_echo_n "(cached) " >&6
12896else
12897  if test -n "$ac_ct_MANIFEST_TOOL"; then
12898  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903  IFS=$as_save_IFS
12904  test -z "$as_dir" && as_dir=.
12905    for ac_exec_ext in '' $ac_executable_extensions; do
12906  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909    break 2
12910  fi
12911done
12912  done
12913IFS=$as_save_IFS
12914
12915fi
12916fi
12917ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12918if test -n "$ac_ct_MANIFEST_TOOL"; then
12919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12920$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12921else
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
12924fi
12925
12926  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12927    MANIFEST_TOOL=":"
12928  else
12929    case $cross_compiling:$ac_tool_warned in
12930yes:)
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12933ac_tool_warned=yes ;;
12934esac
12935    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12936  fi
12937else
12938  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12939fi
12940
12941test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12943$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12944if ${lt_cv_path_mainfest_tool+:} false; then :
12945  $as_echo_n "(cached) " >&6
12946else
12947  lt_cv_path_mainfest_tool=no
12948  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12949  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12950  cat conftest.err >&5
12951  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12952    lt_cv_path_mainfest_tool=yes
12953  fi
12954  rm -f conftest*
12955fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12957$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12958if test yes != "$lt_cv_path_mainfest_tool"; then
12959  MANIFEST_TOOL=:
12960fi
12961
12962
12963
12964
12965
12966
12967  case $host_os in
12968    rhapsody* | darwin*)
12969    if test -n "$ac_tool_prefix"; then
12970  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12971set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973$as_echo_n "checking for $ac_word... " >&6; }
12974if ${ac_cv_prog_DSYMUTIL+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  if test -n "$DSYMUTIL"; then
12978  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12979else
12980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981for as_dir in $PATH
12982do
12983  IFS=$as_save_IFS
12984  test -z "$as_dir" && as_dir=.
12985    for ac_exec_ext in '' $ac_executable_extensions; do
12986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12987    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989    break 2
12990  fi
12991done
12992  done
12993IFS=$as_save_IFS
12994
12995fi
12996fi
12997DSYMUTIL=$ac_cv_prog_DSYMUTIL
12998if test -n "$DSYMUTIL"; then
12999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13000$as_echo "$DSYMUTIL" >&6; }
13001else
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003$as_echo "no" >&6; }
13004fi
13005
13006
13007fi
13008if test -z "$ac_cv_prog_DSYMUTIL"; then
13009  ac_ct_DSYMUTIL=$DSYMUTIL
13010  # Extract the first word of "dsymutil", so it can be a program name with args.
13011set dummy dsymutil; ac_word=$2
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13015  $as_echo_n "(cached) " >&6
13016else
13017  if test -n "$ac_ct_DSYMUTIL"; then
13018  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13019else
13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $PATH
13022do
13023  IFS=$as_save_IFS
13024  test -z "$as_dir" && as_dir=.
13025    for ac_exec_ext in '' $ac_executable_extensions; do
13026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13027    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029    break 2
13030  fi
13031done
13032  done
13033IFS=$as_save_IFS
13034
13035fi
13036fi
13037ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13038if test -n "$ac_ct_DSYMUTIL"; then
13039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13040$as_echo "$ac_ct_DSYMUTIL" >&6; }
13041else
13042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043$as_echo "no" >&6; }
13044fi
13045
13046  if test "x$ac_ct_DSYMUTIL" = x; then
13047    DSYMUTIL=":"
13048  else
13049    case $cross_compiling:$ac_tool_warned in
13050yes:)
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13053ac_tool_warned=yes ;;
13054esac
13055    DSYMUTIL=$ac_ct_DSYMUTIL
13056  fi
13057else
13058  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13059fi
13060
13061    if test -n "$ac_tool_prefix"; then
13062  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13063set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065$as_echo_n "checking for $ac_word... " >&6; }
13066if ${ac_cv_prog_NMEDIT+:} false; then :
13067  $as_echo_n "(cached) " >&6
13068else
13069  if test -n "$NMEDIT"; then
13070  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13071else
13072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075  IFS=$as_save_IFS
13076  test -z "$as_dir" && as_dir=.
13077    for ac_exec_ext in '' $ac_executable_extensions; do
13078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13079    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13081    break 2
13082  fi
13083done
13084  done
13085IFS=$as_save_IFS
13086
13087fi
13088fi
13089NMEDIT=$ac_cv_prog_NMEDIT
13090if test -n "$NMEDIT"; then
13091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13092$as_echo "$NMEDIT" >&6; }
13093else
13094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
13096fi
13097
13098
13099fi
13100if test -z "$ac_cv_prog_NMEDIT"; then
13101  ac_ct_NMEDIT=$NMEDIT
13102  # Extract the first word of "nmedit", so it can be a program name with args.
13103set dummy nmedit; ac_word=$2
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105$as_echo_n "checking for $ac_word... " >&6; }
13106if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13107  $as_echo_n "(cached) " >&6
13108else
13109  if test -n "$ac_ct_NMEDIT"; then
13110  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13111else
13112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113for as_dir in $PATH
13114do
13115  IFS=$as_save_IFS
13116  test -z "$as_dir" && as_dir=.
13117    for ac_exec_ext in '' $ac_executable_extensions; do
13118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121    break 2
13122  fi
13123done
13124  done
13125IFS=$as_save_IFS
13126
13127fi
13128fi
13129ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13130if test -n "$ac_ct_NMEDIT"; then
13131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13132$as_echo "$ac_ct_NMEDIT" >&6; }
13133else
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136fi
13137
13138  if test "x$ac_ct_NMEDIT" = x; then
13139    NMEDIT=":"
13140  else
13141    case $cross_compiling:$ac_tool_warned in
13142yes:)
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13145ac_tool_warned=yes ;;
13146esac
13147    NMEDIT=$ac_ct_NMEDIT
13148  fi
13149else
13150  NMEDIT="$ac_cv_prog_NMEDIT"
13151fi
13152
13153    if test -n "$ac_tool_prefix"; then
13154  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13155set dummy ${ac_tool_prefix}lipo; ac_word=$2
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157$as_echo_n "checking for $ac_word... " >&6; }
13158if ${ac_cv_prog_LIPO+:} false; then :
13159  $as_echo_n "(cached) " >&6
13160else
13161  if test -n "$LIPO"; then
13162  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13163else
13164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165for as_dir in $PATH
13166do
13167  IFS=$as_save_IFS
13168  test -z "$as_dir" && as_dir=.
13169    for ac_exec_ext in '' $ac_executable_extensions; do
13170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173    break 2
13174  fi
13175done
13176  done
13177IFS=$as_save_IFS
13178
13179fi
13180fi
13181LIPO=$ac_cv_prog_LIPO
13182if test -n "$LIPO"; then
13183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13184$as_echo "$LIPO" >&6; }
13185else
13186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187$as_echo "no" >&6; }
13188fi
13189
13190
13191fi
13192if test -z "$ac_cv_prog_LIPO"; then
13193  ac_ct_LIPO=$LIPO
13194  # Extract the first word of "lipo", so it can be a program name with args.
13195set dummy lipo; ac_word=$2
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197$as_echo_n "checking for $ac_word... " >&6; }
13198if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  if test -n "$ac_ct_LIPO"; then
13202  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207  IFS=$as_save_IFS
13208  test -z "$as_dir" && as_dir=.
13209    for ac_exec_ext in '' $ac_executable_extensions; do
13210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211    ac_cv_prog_ac_ct_LIPO="lipo"
13212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213    break 2
13214  fi
13215done
13216  done
13217IFS=$as_save_IFS
13218
13219fi
13220fi
13221ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13222if test -n "$ac_ct_LIPO"; then
13223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13224$as_echo "$ac_ct_LIPO" >&6; }
13225else
13226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
13228fi
13229
13230  if test "x$ac_ct_LIPO" = x; then
13231    LIPO=":"
13232  else
13233    case $cross_compiling:$ac_tool_warned in
13234yes:)
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13237ac_tool_warned=yes ;;
13238esac
13239    LIPO=$ac_ct_LIPO
13240  fi
13241else
13242  LIPO="$ac_cv_prog_LIPO"
13243fi
13244
13245    if test -n "$ac_tool_prefix"; then
13246  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13247set dummy ${ac_tool_prefix}otool; ac_word=$2
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249$as_echo_n "checking for $ac_word... " >&6; }
13250if ${ac_cv_prog_OTOOL+:} false; then :
13251  $as_echo_n "(cached) " >&6
13252else
13253  if test -n "$OTOOL"; then
13254  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13255else
13256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257for as_dir in $PATH
13258do
13259  IFS=$as_save_IFS
13260  test -z "$as_dir" && as_dir=.
13261    for ac_exec_ext in '' $ac_executable_extensions; do
13262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13263    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13265    break 2
13266  fi
13267done
13268  done
13269IFS=$as_save_IFS
13270
13271fi
13272fi
13273OTOOL=$ac_cv_prog_OTOOL
13274if test -n "$OTOOL"; then
13275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13276$as_echo "$OTOOL" >&6; }
13277else
13278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279$as_echo "no" >&6; }
13280fi
13281
13282
13283fi
13284if test -z "$ac_cv_prog_OTOOL"; then
13285  ac_ct_OTOOL=$OTOOL
13286  # Extract the first word of "otool", so it can be a program name with args.
13287set dummy otool; ac_word=$2
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
13290if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13291  $as_echo_n "(cached) " >&6
13292else
13293  if test -n "$ac_ct_OTOOL"; then
13294  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299  IFS=$as_save_IFS
13300  test -z "$as_dir" && as_dir=.
13301    for ac_exec_ext in '' $ac_executable_extensions; do
13302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303    ac_cv_prog_ac_ct_OTOOL="otool"
13304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305    break 2
13306  fi
13307done
13308  done
13309IFS=$as_save_IFS
13310
13311fi
13312fi
13313ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13314if test -n "$ac_ct_OTOOL"; then
13315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13316$as_echo "$ac_ct_OTOOL" >&6; }
13317else
13318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319$as_echo "no" >&6; }
13320fi
13321
13322  if test "x$ac_ct_OTOOL" = x; then
13323    OTOOL=":"
13324  else
13325    case $cross_compiling:$ac_tool_warned in
13326yes:)
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13329ac_tool_warned=yes ;;
13330esac
13331    OTOOL=$ac_ct_OTOOL
13332  fi
13333else
13334  OTOOL="$ac_cv_prog_OTOOL"
13335fi
13336
13337    if test -n "$ac_tool_prefix"; then
13338  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13339set dummy ${ac_tool_prefix}otool64; ac_word=$2
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341$as_echo_n "checking for $ac_word... " >&6; }
13342if ${ac_cv_prog_OTOOL64+:} false; then :
13343  $as_echo_n "(cached) " >&6
13344else
13345  if test -n "$OTOOL64"; then
13346  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13347else
13348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349for as_dir in $PATH
13350do
13351  IFS=$as_save_IFS
13352  test -z "$as_dir" && as_dir=.
13353    for ac_exec_ext in '' $ac_executable_extensions; do
13354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13355    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357    break 2
13358  fi
13359done
13360  done
13361IFS=$as_save_IFS
13362
13363fi
13364fi
13365OTOOL64=$ac_cv_prog_OTOOL64
13366if test -n "$OTOOL64"; then
13367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13368$as_echo "$OTOOL64" >&6; }
13369else
13370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
13372fi
13373
13374
13375fi
13376if test -z "$ac_cv_prog_OTOOL64"; then
13377  ac_ct_OTOOL64=$OTOOL64
13378  # Extract the first word of "otool64", so it can be a program name with args.
13379set dummy otool64; ac_word=$2
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381$as_echo_n "checking for $ac_word... " >&6; }
13382if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13383  $as_echo_n "(cached) " >&6
13384else
13385  if test -n "$ac_ct_OTOOL64"; then
13386  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13387else
13388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391  IFS=$as_save_IFS
13392  test -z "$as_dir" && as_dir=.
13393    for ac_exec_ext in '' $ac_executable_extensions; do
13394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395    ac_cv_prog_ac_ct_OTOOL64="otool64"
13396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397    break 2
13398  fi
13399done
13400  done
13401IFS=$as_save_IFS
13402
13403fi
13404fi
13405ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13406if test -n "$ac_ct_OTOOL64"; then
13407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13408$as_echo "$ac_ct_OTOOL64" >&6; }
13409else
13410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411$as_echo "no" >&6; }
13412fi
13413
13414  if test "x$ac_ct_OTOOL64" = x; then
13415    OTOOL64=":"
13416  else
13417    case $cross_compiling:$ac_tool_warned in
13418yes:)
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13421ac_tool_warned=yes ;;
13422esac
13423    OTOOL64=$ac_ct_OTOOL64
13424  fi
13425else
13426  OTOOL64="$ac_cv_prog_OTOOL64"
13427fi
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13456$as_echo_n "checking for -single_module linker flag... " >&6; }
13457if ${lt_cv_apple_cc_single_mod+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  lt_cv_apple_cc_single_mod=no
13461      if test -z "$LT_MULTI_MODULE"; then
13462	# By default we will add the -single_module flag. You can override
13463	# by either setting the environment variable LT_MULTI_MODULE
13464	# non-empty at configure time, or by adding -multi_module to the
13465	# link flags.
13466	rm -rf libconftest.dylib*
13467	echo "int foo(void){return 1;}" > conftest.c
13468	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13469-dynamiclib -Wl,-single_module conftest.c" >&5
13470	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13471	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13472        _lt_result=$?
13473	# If there is a non-empty error log, and "single_module"
13474	# appears in it, assume the flag caused a linker warning
13475        if test -s conftest.err && $GREP single_module conftest.err; then
13476	  cat conftest.err >&5
13477	# Otherwise, if the output was created with a 0 exit code from
13478	# the compiler, it worked.
13479	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13480	  lt_cv_apple_cc_single_mod=yes
13481	else
13482	  cat conftest.err >&5
13483	fi
13484	rm -rf libconftest.dylib*
13485	rm -f conftest.*
13486      fi
13487fi
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13489$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13490
13491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13492$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13493if ${lt_cv_ld_exported_symbols_list+:} false; then :
13494  $as_echo_n "(cached) " >&6
13495else
13496  lt_cv_ld_exported_symbols_list=no
13497      save_LDFLAGS=$LDFLAGS
13498      echo "_main" > conftest.sym
13499      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13500      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501/* end confdefs.h.  */
13502
13503int
13504main ()
13505{
13506
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512  lt_cv_ld_exported_symbols_list=yes
13513else
13514  lt_cv_ld_exported_symbols_list=no
13515fi
13516rm -f core conftest.err conftest.$ac_objext \
13517    conftest$ac_exeext conftest.$ac_ext
13518	LDFLAGS=$save_LDFLAGS
13519
13520fi
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13522$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13523
13524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13525$as_echo_n "checking for -force_load linker flag... " >&6; }
13526if ${lt_cv_ld_force_load+:} false; then :
13527  $as_echo_n "(cached) " >&6
13528else
13529  lt_cv_ld_force_load=no
13530      cat > conftest.c << _LT_EOF
13531int forced_loaded() { return 2;}
13532_LT_EOF
13533      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13534      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13535      echo "$AR cru libconftest.a conftest.o" >&5
13536      $AR cru libconftest.a conftest.o 2>&5
13537      echo "$RANLIB libconftest.a" >&5
13538      $RANLIB libconftest.a 2>&5
13539      cat > conftest.c << _LT_EOF
13540int main() { return 0;}
13541_LT_EOF
13542      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13543      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13544      _lt_result=$?
13545      if test -s conftest.err && $GREP force_load conftest.err; then
13546	cat conftest.err >&5
13547      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13548	lt_cv_ld_force_load=yes
13549      else
13550	cat conftest.err >&5
13551      fi
13552        rm -f conftest.err libconftest.a conftest conftest.c
13553        rm -rf conftest.dSYM
13554
13555fi
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13557$as_echo "$lt_cv_ld_force_load" >&6; }
13558    case $host_os in
13559    rhapsody* | darwin1.[012])
13560      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13561    darwin1.*)
13562      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13563    darwin*) # darwin 5.x on
13564      # if running on 10.5 or later, the deployment target defaults
13565      # to the OS version, if on x86, and 10.4, the deployment
13566      # target defaults to 10.4. Don't you love it?
13567      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13568	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13569	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13570	10.[012][,.]*)
13571	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13572	10.*)
13573	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13574      esac
13575    ;;
13576  esac
13577    if test yes = "$lt_cv_apple_cc_single_mod"; then
13578      _lt_dar_single_mod='$single_module'
13579    fi
13580    if test yes = "$lt_cv_ld_exported_symbols_list"; then
13581      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13582    else
13583      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13584    fi
13585    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13586      _lt_dsymutil='~$DSYMUTIL $lib || :'
13587    else
13588      _lt_dsymutil=
13589    fi
13590    ;;
13591  esac
13592
13593# func_munge_path_list VARIABLE PATH
13594# -----------------------------------
13595# VARIABLE is name of variable containing _space_ separated list of
13596# directories to be munged by the contents of PATH, which is string
13597# having a format:
13598# "DIR[:DIR]:"
13599#       string "DIR[ DIR]" will be prepended to VARIABLE
13600# ":DIR[:DIR]"
13601#       string "DIR[ DIR]" will be appended to VARIABLE
13602# "DIRP[:DIRP]::[DIRA:]DIRA"
13603#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13604#       "DIRA[ DIRA]" will be appended to VARIABLE
13605# "DIR[:DIR]"
13606#       VARIABLE will be replaced by "DIR[ DIR]"
13607func_munge_path_list ()
13608{
13609    case x$2 in
13610    x)
13611        ;;
13612    *:)
13613        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13614        ;;
13615    x:*)
13616        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13617        ;;
13618    *::*)
13619        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13620        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13621        ;;
13622    *)
13623        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13624        ;;
13625    esac
13626}
13627
13628for ac_header in dlfcn.h
13629do :
13630  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13631"
13632if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13633  cat >>confdefs.h <<_ACEOF
13634#define HAVE_DLFCN_H 1
13635_ACEOF
13636
13637fi
13638
13639done
13640
13641
13642
13643
13644
13645# Set options
13646enable_win32_dll=yes
13647
13648case $host in
13649*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
13650  if test -n "$ac_tool_prefix"; then
13651  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13652set dummy ${ac_tool_prefix}as; ac_word=$2
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654$as_echo_n "checking for $ac_word... " >&6; }
13655if ${ac_cv_prog_AS+:} false; then :
13656  $as_echo_n "(cached) " >&6
13657else
13658  if test -n "$AS"; then
13659  ac_cv_prog_AS="$AS" # Let the user override the test.
13660else
13661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662for as_dir in $PATH
13663do
13664  IFS=$as_save_IFS
13665  test -z "$as_dir" && as_dir=.
13666    for ac_exec_ext in '' $ac_executable_extensions; do
13667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668    ac_cv_prog_AS="${ac_tool_prefix}as"
13669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670    break 2
13671  fi
13672done
13673  done
13674IFS=$as_save_IFS
13675
13676fi
13677fi
13678AS=$ac_cv_prog_AS
13679if test -n "$AS"; then
13680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13681$as_echo "$AS" >&6; }
13682else
13683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684$as_echo "no" >&6; }
13685fi
13686
13687
13688fi
13689if test -z "$ac_cv_prog_AS"; then
13690  ac_ct_AS=$AS
13691  # Extract the first word of "as", so it can be a program name with args.
13692set dummy as; ac_word=$2
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694$as_echo_n "checking for $ac_word... " >&6; }
13695if ${ac_cv_prog_ac_ct_AS+:} false; then :
13696  $as_echo_n "(cached) " >&6
13697else
13698  if test -n "$ac_ct_AS"; then
13699  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704  IFS=$as_save_IFS
13705  test -z "$as_dir" && as_dir=.
13706    for ac_exec_ext in '' $ac_executable_extensions; do
13707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708    ac_cv_prog_ac_ct_AS="as"
13709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710    break 2
13711  fi
13712done
13713  done
13714IFS=$as_save_IFS
13715
13716fi
13717fi
13718ac_ct_AS=$ac_cv_prog_ac_ct_AS
13719if test -n "$ac_ct_AS"; then
13720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13721$as_echo "$ac_ct_AS" >&6; }
13722else
13723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724$as_echo "no" >&6; }
13725fi
13726
13727  if test "x$ac_ct_AS" = x; then
13728    AS="false"
13729  else
13730    case $cross_compiling:$ac_tool_warned in
13731yes:)
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13734ac_tool_warned=yes ;;
13735esac
13736    AS=$ac_ct_AS
13737  fi
13738else
13739  AS="$ac_cv_prog_AS"
13740fi
13741
13742  if test -n "$ac_tool_prefix"; then
13743  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13744set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746$as_echo_n "checking for $ac_word... " >&6; }
13747if ${ac_cv_prog_DLLTOOL+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  if test -n "$DLLTOOL"; then
13751  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756  IFS=$as_save_IFS
13757  test -z "$as_dir" && as_dir=.
13758    for ac_exec_ext in '' $ac_executable_extensions; do
13759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762    break 2
13763  fi
13764done
13765  done
13766IFS=$as_save_IFS
13767
13768fi
13769fi
13770DLLTOOL=$ac_cv_prog_DLLTOOL
13771if test -n "$DLLTOOL"; then
13772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13773$as_echo "$DLLTOOL" >&6; }
13774else
13775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776$as_echo "no" >&6; }
13777fi
13778
13779
13780fi
13781if test -z "$ac_cv_prog_DLLTOOL"; then
13782  ac_ct_DLLTOOL=$DLLTOOL
13783  # Extract the first word of "dlltool", so it can be a program name with args.
13784set dummy dlltool; ac_word=$2
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786$as_echo_n "checking for $ac_word... " >&6; }
13787if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13788  $as_echo_n "(cached) " >&6
13789else
13790  if test -n "$ac_ct_DLLTOOL"; then
13791  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13792else
13793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794for as_dir in $PATH
13795do
13796  IFS=$as_save_IFS
13797  test -z "$as_dir" && as_dir=.
13798    for ac_exec_ext in '' $ac_executable_extensions; do
13799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13800    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802    break 2
13803  fi
13804done
13805  done
13806IFS=$as_save_IFS
13807
13808fi
13809fi
13810ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13811if test -n "$ac_ct_DLLTOOL"; then
13812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13813$as_echo "$ac_ct_DLLTOOL" >&6; }
13814else
13815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816$as_echo "no" >&6; }
13817fi
13818
13819  if test "x$ac_ct_DLLTOOL" = x; then
13820    DLLTOOL="false"
13821  else
13822    case $cross_compiling:$ac_tool_warned in
13823yes:)
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13826ac_tool_warned=yes ;;
13827esac
13828    DLLTOOL=$ac_ct_DLLTOOL
13829  fi
13830else
13831  DLLTOOL="$ac_cv_prog_DLLTOOL"
13832fi
13833
13834  if test -n "$ac_tool_prefix"; then
13835  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13836set dummy ${ac_tool_prefix}objdump; ac_word=$2
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
13839if ${ac_cv_prog_OBJDUMP+:} false; then :
13840  $as_echo_n "(cached) " >&6
13841else
13842  if test -n "$OBJDUMP"; then
13843  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848  IFS=$as_save_IFS
13849  test -z "$as_dir" && as_dir=.
13850    for ac_exec_ext in '' $ac_executable_extensions; do
13851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13852    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13854    break 2
13855  fi
13856done
13857  done
13858IFS=$as_save_IFS
13859
13860fi
13861fi
13862OBJDUMP=$ac_cv_prog_OBJDUMP
13863if test -n "$OBJDUMP"; then
13864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13865$as_echo "$OBJDUMP" >&6; }
13866else
13867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
13869fi
13870
13871
13872fi
13873if test -z "$ac_cv_prog_OBJDUMP"; then
13874  ac_ct_OBJDUMP=$OBJDUMP
13875  # Extract the first word of "objdump", so it can be a program name with args.
13876set dummy objdump; ac_word=$2
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13878$as_echo_n "checking for $ac_word... " >&6; }
13879if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  if test -n "$ac_ct_OBJDUMP"; then
13883  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13884else
13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888  IFS=$as_save_IFS
13889  test -z "$as_dir" && as_dir=.
13890    for ac_exec_ext in '' $ac_executable_extensions; do
13891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13892    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13894    break 2
13895  fi
13896done
13897  done
13898IFS=$as_save_IFS
13899
13900fi
13901fi
13902ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13903if test -n "$ac_ct_OBJDUMP"; then
13904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13905$as_echo "$ac_ct_OBJDUMP" >&6; }
13906else
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13908$as_echo "no" >&6; }
13909fi
13910
13911  if test "x$ac_ct_OBJDUMP" = x; then
13912    OBJDUMP="false"
13913  else
13914    case $cross_compiling:$ac_tool_warned in
13915yes:)
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13918ac_tool_warned=yes ;;
13919esac
13920    OBJDUMP=$ac_ct_OBJDUMP
13921  fi
13922else
13923  OBJDUMP="$ac_cv_prog_OBJDUMP"
13924fi
13925
13926  ;;
13927esac
13928
13929test -z "$AS" && AS=as
13930
13931
13932
13933
13934
13935test -z "$DLLTOOL" && DLLTOOL=dlltool
13936
13937
13938
13939
13940
13941test -z "$OBJDUMP" && OBJDUMP=objdump
13942
13943
13944
13945
13946enable_dlopen=yes
13947
13948
13949
13950
13951
13952            # Check whether --enable-shared was given.
13953if test "${enable_shared+set}" = set; then :
13954  enableval=$enable_shared; p=${PACKAGE-default}
13955    case $enableval in
13956    yes) enable_shared=yes ;;
13957    no) enable_shared=no ;;
13958    *)
13959      enable_shared=no
13960      # Look at the argument we got.  We use all the common list separators.
13961      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13962      for pkg in $enableval; do
13963	IFS=$lt_save_ifs
13964	if test "X$pkg" = "X$p"; then
13965	  enable_shared=yes
13966	fi
13967      done
13968      IFS=$lt_save_ifs
13969      ;;
13970    esac
13971else
13972  enable_shared=yes
13973fi
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983  # Check whether --enable-static was given.
13984if test "${enable_static+set}" = set; then :
13985  enableval=$enable_static; p=${PACKAGE-default}
13986    case $enableval in
13987    yes) enable_static=yes ;;
13988    no) enable_static=no ;;
13989    *)
13990     enable_static=no
13991      # Look at the argument we got.  We use all the common list separators.
13992      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
13993      for pkg in $enableval; do
13994	IFS=$lt_save_ifs
13995	if test "X$pkg" = "X$p"; then
13996	  enable_static=yes
13997	fi
13998      done
13999      IFS=$lt_save_ifs
14000      ;;
14001    esac
14002else
14003  enable_static=yes
14004fi
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015# Check whether --with-pic was given.
14016if test "${with_pic+set}" = set; then :
14017  withval=$with_pic; lt_p=${PACKAGE-default}
14018    case $withval in
14019    yes|no) pic_mode=$withval ;;
14020    *)
14021      pic_mode=default
14022      # Look at the argument we got.  We use all the common list separators.
14023      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14024      for lt_pkg in $withval; do
14025	IFS=$lt_save_ifs
14026	if test "X$lt_pkg" = "X$lt_p"; then
14027	  pic_mode=yes
14028	fi
14029      done
14030      IFS=$lt_save_ifs
14031      ;;
14032    esac
14033else
14034  pic_mode=default
14035fi
14036
14037
14038
14039
14040
14041
14042
14043
14044  # Check whether --enable-fast-install was given.
14045if test "${enable_fast_install+set}" = set; then :
14046  enableval=$enable_fast_install; p=${PACKAGE-default}
14047    case $enableval in
14048    yes) enable_fast_install=yes ;;
14049    no) enable_fast_install=no ;;
14050    *)
14051      enable_fast_install=no
14052      # Look at the argument we got.  We use all the common list separators.
14053      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14054      for pkg in $enableval; do
14055	IFS=$lt_save_ifs
14056	if test "X$pkg" = "X$p"; then
14057	  enable_fast_install=yes
14058	fi
14059      done
14060      IFS=$lt_save_ifs
14061      ;;
14062    esac
14063else
14064  enable_fast_install=yes
14065fi
14066
14067
14068
14069
14070
14071
14072
14073
14074  shared_archive_member_spec=
14075case $host,$enable_shared in
14076power*-*-aix[5-9]*,yes)
14077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14078$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14079
14080# Check whether --with-aix-soname was given.
14081if test "${with_aix_soname+set}" = set; then :
14082  withval=$with_aix_soname; case $withval in
14083    aix|svr4|both)
14084      ;;
14085    *)
14086      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14087      ;;
14088    esac
14089    lt_cv_with_aix_soname=$with_aix_soname
14090else
14091  if ${lt_cv_with_aix_soname+:} false; then :
14092  $as_echo_n "(cached) " >&6
14093else
14094  lt_cv_with_aix_soname=aix
14095fi
14096
14097    with_aix_soname=$lt_cv_with_aix_soname
14098fi
14099
14100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14101$as_echo "$with_aix_soname" >&6; }
14102  if test aix != "$with_aix_soname"; then
14103    # For the AIX way of multilib, we name the shared archive member
14104    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14105    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14106    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14107    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14108    if test 64 = "${OBJECT_MODE-32}"; then
14109      shared_archive_member_spec=shr_64
14110    else
14111      shared_archive_member_spec=shr
14112    fi
14113  fi
14114  ;;
14115*)
14116  with_aix_soname=aix
14117  ;;
14118esac
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129# This can be used to rebuild libtool when needed
14130LIBTOOL_DEPS=$ltmain
14131
14132# Always use our own libtool.
14133LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164test -z "$LN_S" && LN_S="ln -s"
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179if test -n "${ZSH_VERSION+set}"; then
14180   setopt NO_GLOB_SUBST
14181fi
14182
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14184$as_echo_n "checking for objdir... " >&6; }
14185if ${lt_cv_objdir+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188  rm -f .libs 2>/dev/null
14189mkdir .libs 2>/dev/null
14190if test -d .libs; then
14191  lt_cv_objdir=.libs
14192else
14193  # MS-DOS does not allow filenames that begin with a dot.
14194  lt_cv_objdir=_libs
14195fi
14196rmdir .libs 2>/dev/null
14197fi
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14199$as_echo "$lt_cv_objdir" >&6; }
14200objdir=$lt_cv_objdir
14201
14202
14203
14204
14205
14206cat >>confdefs.h <<_ACEOF
14207#define LT_OBJDIR "$lt_cv_objdir/"
14208_ACEOF
14209
14210
14211
14212
14213case $host_os in
14214aix3*)
14215  # AIX sometimes has problems with the GCC collect2 program.  For some
14216  # reason, if we set the COLLECT_NAMES environment variable, the problems
14217  # vanish in a puff of smoke.
14218  if test set != "${COLLECT_NAMES+set}"; then
14219    COLLECT_NAMES=
14220    export COLLECT_NAMES
14221  fi
14222  ;;
14223esac
14224
14225# Global variables:
14226ofile=libtool
14227can_build_shared=yes
14228
14229# All known linkers require a '.a' archive for static linking (except MSVC,
14230# which needs '.lib').
14231libext=a
14232
14233with_gnu_ld=$lt_cv_prog_gnu_ld
14234
14235old_CC=$CC
14236old_CFLAGS=$CFLAGS
14237
14238# Set sane defaults for various variables
14239test -z "$CC" && CC=cc
14240test -z "$LTCC" && LTCC=$CC
14241test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14242test -z "$LD" && LD=ld
14243test -z "$ac_objext" && ac_objext=o
14244
14245func_cc_basename $compiler
14246cc_basename=$func_cc_basename_result
14247
14248
14249# Only perform the check for file, if the check method requires it
14250test -z "$MAGIC_CMD" && MAGIC_CMD=file
14251case $deplibs_check_method in
14252file_magic*)
14253  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14255$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14256if ${lt_cv_path_MAGIC_CMD+:} false; then :
14257  $as_echo_n "(cached) " >&6
14258else
14259  case $MAGIC_CMD in
14260[\\/*] |  ?:[\\/]*)
14261  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14262  ;;
14263*)
14264  lt_save_MAGIC_CMD=$MAGIC_CMD
14265  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14266  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14267  for ac_dir in $ac_dummy; do
14268    IFS=$lt_save_ifs
14269    test -z "$ac_dir" && ac_dir=.
14270    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14271      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14272      if test -n "$file_magic_test_file"; then
14273	case $deplibs_check_method in
14274	"file_magic "*)
14275	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14276	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14277	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14278	    $EGREP "$file_magic_regex" > /dev/null; then
14279	    :
14280	  else
14281	    cat <<_LT_EOF 1>&2
14282
14283*** Warning: the command libtool uses to detect shared libraries,
14284*** $file_magic_cmd, produces output that libtool cannot recognize.
14285*** The result is that libtool may fail to recognize shared libraries
14286*** as such.  This will affect the creation of libtool libraries that
14287*** depend on shared libraries, but programs linked with such libtool
14288*** libraries will work regardless of this problem.  Nevertheless, you
14289*** may want to report the problem to your system manager and/or to
14290*** bug-libtool@gnu.org
14291
14292_LT_EOF
14293	  fi ;;
14294	esac
14295      fi
14296      break
14297    fi
14298  done
14299  IFS=$lt_save_ifs
14300  MAGIC_CMD=$lt_save_MAGIC_CMD
14301  ;;
14302esac
14303fi
14304
14305MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14306if test -n "$MAGIC_CMD"; then
14307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14308$as_echo "$MAGIC_CMD" >&6; }
14309else
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
14312fi
14313
14314
14315
14316
14317
14318if test -z "$lt_cv_path_MAGIC_CMD"; then
14319  if test -n "$ac_tool_prefix"; then
14320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14321$as_echo_n "checking for file... " >&6; }
14322if ${lt_cv_path_MAGIC_CMD+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  case $MAGIC_CMD in
14326[\\/*] |  ?:[\\/]*)
14327  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14328  ;;
14329*)
14330  lt_save_MAGIC_CMD=$MAGIC_CMD
14331  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14332  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14333  for ac_dir in $ac_dummy; do
14334    IFS=$lt_save_ifs
14335    test -z "$ac_dir" && ac_dir=.
14336    if test -f "$ac_dir/file"; then
14337      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14338      if test -n "$file_magic_test_file"; then
14339	case $deplibs_check_method in
14340	"file_magic "*)
14341	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14342	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14343	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14344	    $EGREP "$file_magic_regex" > /dev/null; then
14345	    :
14346	  else
14347	    cat <<_LT_EOF 1>&2
14348
14349*** Warning: the command libtool uses to detect shared libraries,
14350*** $file_magic_cmd, produces output that libtool cannot recognize.
14351*** The result is that libtool may fail to recognize shared libraries
14352*** as such.  This will affect the creation of libtool libraries that
14353*** depend on shared libraries, but programs linked with such libtool
14354*** libraries will work regardless of this problem.  Nevertheless, you
14355*** may want to report the problem to your system manager and/or to
14356*** bug-libtool@gnu.org
14357
14358_LT_EOF
14359	  fi ;;
14360	esac
14361      fi
14362      break
14363    fi
14364  done
14365  IFS=$lt_save_ifs
14366  MAGIC_CMD=$lt_save_MAGIC_CMD
14367  ;;
14368esac
14369fi
14370
14371MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14372if test -n "$MAGIC_CMD"; then
14373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14374$as_echo "$MAGIC_CMD" >&6; }
14375else
14376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377$as_echo "no" >&6; }
14378fi
14379
14380
14381  else
14382    MAGIC_CMD=:
14383  fi
14384fi
14385
14386  fi
14387  ;;
14388esac
14389
14390# Use C for the default configuration in the libtool script
14391
14392lt_save_CC=$CC
14393ac_ext=c
14394ac_cpp='$CPP $CPPFLAGS'
14395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14397ac_compiler_gnu=$ac_cv_c_compiler_gnu
14398
14399
14400# Source file extension for C test sources.
14401ac_ext=c
14402
14403# Object file extension for compiled C test sources.
14404objext=o
14405objext=$objext
14406
14407# Code to be used in simple compile tests
14408lt_simple_compile_test_code="int some_variable = 0;"
14409
14410# Code to be used in simple link tests
14411lt_simple_link_test_code='int main(){return(0);}'
14412
14413
14414
14415
14416
14417
14418
14419# If no C compiler was specified, use CC.
14420LTCC=${LTCC-"$CC"}
14421
14422# If no C compiler flags were specified, use CFLAGS.
14423LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14424
14425# Allow CC to be a program name with arguments.
14426compiler=$CC
14427
14428# Save the default compiler, since it gets overwritten when the other
14429# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14430compiler_DEFAULT=$CC
14431
14432# save warnings/boilerplate of simple test code
14433ac_outfile=conftest.$ac_objext
14434echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14435eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14436_lt_compiler_boilerplate=`cat conftest.err`
14437$RM conftest*
14438
14439ac_outfile=conftest.$ac_objext
14440echo "$lt_simple_link_test_code" >conftest.$ac_ext
14441eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14442_lt_linker_boilerplate=`cat conftest.err`
14443$RM -r conftest*
14444
14445
14446## CAVEAT EMPTOR:
14447## There is no encapsulation within the following macros, do not change
14448## the running order or otherwise move them around unless you know exactly
14449## what you are doing...
14450if test -n "$compiler"; then
14451
14452lt_prog_compiler_no_builtin_flag=
14453
14454if test yes = "$GCC"; then
14455  case $cc_basename in
14456  nvcc*)
14457    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14458  *)
14459    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14460  esac
14461
14462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14463$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14464if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14465  $as_echo_n "(cached) " >&6
14466else
14467  lt_cv_prog_compiler_rtti_exceptions=no
14468   ac_outfile=conftest.$ac_objext
14469   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14471   # Insert the option either (1) after the last *FLAGS variable, or
14472   # (2) before a word containing "conftest.", or (3) at the end.
14473   # Note that $ac_compile itself does not contain backslashes and begins
14474   # with a dollar sign (not a hyphen), so the echo should work correctly.
14475   # The option is referenced via a variable to avoid confusing sed.
14476   lt_compile=`echo "$ac_compile" | $SED \
14477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479   -e 's:$: $lt_compiler_flag:'`
14480   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481   (eval "$lt_compile" 2>conftest.err)
14482   ac_status=$?
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   if (exit $ac_status) && test -s "$ac_outfile"; then
14486     # The compiler can only warn and ignore the option if not recognized
14487     # So say no if there are warnings other than the usual output.
14488     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491       lt_cv_prog_compiler_rtti_exceptions=yes
14492     fi
14493   fi
14494   $RM conftest*
14495
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14498$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14499
14500if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14501    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14502else
14503    :
14504fi
14505
14506fi
14507
14508
14509
14510
14511
14512
14513  lt_prog_compiler_wl=
14514lt_prog_compiler_pic=
14515lt_prog_compiler_static=
14516
14517
14518  if test yes = "$GCC"; then
14519    lt_prog_compiler_wl='-Wl,'
14520    lt_prog_compiler_static='-static'
14521
14522    case $host_os in
14523      aix*)
14524      # All AIX code is PIC.
14525      if test ia64 = "$host_cpu"; then
14526	# AIX 5 now supports IA64 processor
14527	lt_prog_compiler_static='-Bstatic'
14528      fi
14529      lt_prog_compiler_pic='-fPIC'
14530      ;;
14531
14532    amigaos*)
14533      case $host_cpu in
14534      powerpc)
14535            # see comment about AmigaOS4 .so support
14536            lt_prog_compiler_pic='-fPIC'
14537        ;;
14538      m68k)
14539            # FIXME: we need at least 68020 code to build shared libraries, but
14540            # adding the '-m68020' flag to GCC prevents building anything better,
14541            # like '-m68040'.
14542            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14543        ;;
14544      esac
14545      ;;
14546
14547    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14548      # PIC is the default for these OSes.
14549      ;;
14550
14551    mingw* | cygwin* | pw32* | os2* | cegcc*)
14552      # This hack is so that the source file can tell whether it is being
14553      # built for inclusion in a dll (and should export symbols for example).
14554      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14555      # (--disable-auto-import) libraries
14556      lt_prog_compiler_pic='-DDLL_EXPORT'
14557      case $host_os in
14558      os2*)
14559	lt_prog_compiler_static='$wl-static'
14560	;;
14561      esac
14562      ;;
14563
14564    darwin* | rhapsody*)
14565      # PIC is the default on this platform
14566      # Common symbols not allowed in MH_DYLIB files
14567      lt_prog_compiler_pic='-fno-common'
14568      ;;
14569
14570    haiku*)
14571      # PIC is the default for Haiku.
14572      # The "-static" flag exists, but is broken.
14573      lt_prog_compiler_static=
14574      ;;
14575
14576    hpux*)
14577      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14578      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14579      # sets the default TLS model and affects inlining.
14580      case $host_cpu in
14581      hppa*64*)
14582	# +Z the default
14583	;;
14584      *)
14585	lt_prog_compiler_pic='-fPIC'
14586	;;
14587      esac
14588      ;;
14589
14590    interix[3-9]*)
14591      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14592      # Instead, we relocate shared libraries at runtime.
14593      ;;
14594
14595    msdosdjgpp*)
14596      # Just because we use GCC doesn't mean we suddenly get shared libraries
14597      # on systems that don't support them.
14598      lt_prog_compiler_can_build_shared=no
14599      enable_shared=no
14600      ;;
14601
14602    *nto* | *qnx*)
14603      # QNX uses GNU C++, but need to define -shared option too, otherwise
14604      # it will coredump.
14605      lt_prog_compiler_pic='-fPIC -shared'
14606      ;;
14607
14608    sysv4*MP*)
14609      if test -d /usr/nec; then
14610	lt_prog_compiler_pic=-Kconform_pic
14611      fi
14612      ;;
14613
14614    *)
14615      lt_prog_compiler_pic='-fPIC'
14616      ;;
14617    esac
14618
14619    case $cc_basename in
14620    nvcc*) # Cuda Compiler Driver 2.2
14621      lt_prog_compiler_wl='-Xlinker '
14622      if test -n "$lt_prog_compiler_pic"; then
14623        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14624      fi
14625      ;;
14626    esac
14627  else
14628    # PORTME Check for flag to pass linker flags through the system compiler.
14629    case $host_os in
14630    aix*)
14631      lt_prog_compiler_wl='-Wl,'
14632      if test ia64 = "$host_cpu"; then
14633	# AIX 5 now supports IA64 processor
14634	lt_prog_compiler_static='-Bstatic'
14635      else
14636	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14637      fi
14638      ;;
14639
14640    darwin* | rhapsody*)
14641      # PIC is the default on this platform
14642      # Common symbols not allowed in MH_DYLIB files
14643      lt_prog_compiler_pic='-fno-common'
14644      case $cc_basename in
14645      nagfor*)
14646        # NAG Fortran compiler
14647        lt_prog_compiler_wl='-Wl,-Wl,,'
14648        lt_prog_compiler_pic='-PIC'
14649        lt_prog_compiler_static='-Bstatic'
14650        ;;
14651      esac
14652      ;;
14653
14654    mingw* | cygwin* | pw32* | os2* | cegcc*)
14655      # This hack is so that the source file can tell whether it is being
14656      # built for inclusion in a dll (and should export symbols for example).
14657      lt_prog_compiler_pic='-DDLL_EXPORT'
14658      case $host_os in
14659      os2*)
14660	lt_prog_compiler_static='$wl-static'
14661	;;
14662      esac
14663      ;;
14664
14665    hpux9* | hpux10* | hpux11*)
14666      lt_prog_compiler_wl='-Wl,'
14667      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14668      # not for PA HP-UX.
14669      case $host_cpu in
14670      hppa*64*|ia64*)
14671	# +Z the default
14672	;;
14673      *)
14674	lt_prog_compiler_pic='+Z'
14675	;;
14676      esac
14677      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14678      lt_prog_compiler_static='$wl-a ${wl}archive'
14679      ;;
14680
14681    irix5* | irix6* | nonstopux*)
14682      lt_prog_compiler_wl='-Wl,'
14683      # PIC (with -KPIC) is the default.
14684      lt_prog_compiler_static='-non_shared'
14685      ;;
14686
14687    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14688      case $cc_basename in
14689      # old Intel for x86_64, which still supported -KPIC.
14690      ecc*)
14691	lt_prog_compiler_wl='-Wl,'
14692	lt_prog_compiler_pic='-KPIC'
14693	lt_prog_compiler_static='-static'
14694        ;;
14695      # icc used to be incompatible with GCC.
14696      # ICC 10 doesn't accept -KPIC any more.
14697      icc* | ifort*)
14698	lt_prog_compiler_wl='-Wl,'
14699	lt_prog_compiler_pic='-fPIC'
14700	lt_prog_compiler_static='-static'
14701        ;;
14702      # Lahey Fortran 8.1.
14703      lf95*)
14704	lt_prog_compiler_wl='-Wl,'
14705	lt_prog_compiler_pic='--shared'
14706	lt_prog_compiler_static='--static'
14707	;;
14708      nagfor*)
14709	# NAG Fortran compiler
14710	lt_prog_compiler_wl='-Wl,-Wl,,'
14711	lt_prog_compiler_pic='-PIC'
14712	lt_prog_compiler_static='-Bstatic'
14713	;;
14714      tcc*)
14715	# Fabrice Bellard et al's Tiny C Compiler
14716	lt_prog_compiler_wl='-Wl,'
14717	lt_prog_compiler_pic='-fPIC'
14718	lt_prog_compiler_static='-static'
14719	;;
14720      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14721        # Portland Group compilers (*not* the Pentium gcc compiler,
14722	# which looks to be a dead project)
14723	lt_prog_compiler_wl='-Wl,'
14724	lt_prog_compiler_pic='-fpic'
14725	lt_prog_compiler_static='-Bstatic'
14726        ;;
14727      ccc*)
14728        lt_prog_compiler_wl='-Wl,'
14729        # All Alpha code is PIC.
14730        lt_prog_compiler_static='-non_shared'
14731        ;;
14732      xl* | bgxl* | bgf* | mpixl*)
14733	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14734	lt_prog_compiler_wl='-Wl,'
14735	lt_prog_compiler_pic='-qpic'
14736	lt_prog_compiler_static='-qstaticlink'
14737	;;
14738      *)
14739	case `$CC -V 2>&1 | sed 5q` in
14740	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14741	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14742	  lt_prog_compiler_pic='-KPIC'
14743	  lt_prog_compiler_static='-Bstatic'
14744	  lt_prog_compiler_wl=''
14745	  ;;
14746	*Sun\ F* | *Sun*Fortran*)
14747	  lt_prog_compiler_pic='-KPIC'
14748	  lt_prog_compiler_static='-Bstatic'
14749	  lt_prog_compiler_wl='-Qoption ld '
14750	  ;;
14751	*Sun\ C*)
14752	  # Sun C 5.9
14753	  lt_prog_compiler_pic='-KPIC'
14754	  lt_prog_compiler_static='-Bstatic'
14755	  lt_prog_compiler_wl='-Wl,'
14756	  ;;
14757        *Intel*\ [CF]*Compiler*)
14758	  lt_prog_compiler_wl='-Wl,'
14759	  lt_prog_compiler_pic='-fPIC'
14760	  lt_prog_compiler_static='-static'
14761	  ;;
14762	*Portland\ Group*)
14763	  lt_prog_compiler_wl='-Wl,'
14764	  lt_prog_compiler_pic='-fpic'
14765	  lt_prog_compiler_static='-Bstatic'
14766	  ;;
14767	esac
14768	;;
14769      esac
14770      ;;
14771
14772    newsos6)
14773      lt_prog_compiler_pic='-KPIC'
14774      lt_prog_compiler_static='-Bstatic'
14775      ;;
14776
14777    *nto* | *qnx*)
14778      # QNX uses GNU C++, but need to define -shared option too, otherwise
14779      # it will coredump.
14780      lt_prog_compiler_pic='-fPIC -shared'
14781      ;;
14782
14783    osf3* | osf4* | osf5*)
14784      lt_prog_compiler_wl='-Wl,'
14785      # All OSF/1 code is PIC.
14786      lt_prog_compiler_static='-non_shared'
14787      ;;
14788
14789    rdos*)
14790      lt_prog_compiler_static='-non_shared'
14791      ;;
14792
14793    solaris*)
14794      lt_prog_compiler_pic='-KPIC'
14795      lt_prog_compiler_static='-Bstatic'
14796      case $cc_basename in
14797      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14798	lt_prog_compiler_wl='-Qoption ld ';;
14799      *)
14800	lt_prog_compiler_wl='-Wl,';;
14801      esac
14802      ;;
14803
14804    sunos4*)
14805      lt_prog_compiler_wl='-Qoption ld '
14806      lt_prog_compiler_pic='-PIC'
14807      lt_prog_compiler_static='-Bstatic'
14808      ;;
14809
14810    sysv4 | sysv4.2uw2* | sysv4.3*)
14811      lt_prog_compiler_wl='-Wl,'
14812      lt_prog_compiler_pic='-KPIC'
14813      lt_prog_compiler_static='-Bstatic'
14814      ;;
14815
14816    sysv4*MP*)
14817      if test -d /usr/nec; then
14818	lt_prog_compiler_pic='-Kconform_pic'
14819	lt_prog_compiler_static='-Bstatic'
14820      fi
14821      ;;
14822
14823    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14824      lt_prog_compiler_wl='-Wl,'
14825      lt_prog_compiler_pic='-KPIC'
14826      lt_prog_compiler_static='-Bstatic'
14827      ;;
14828
14829    unicos*)
14830      lt_prog_compiler_wl='-Wl,'
14831      lt_prog_compiler_can_build_shared=no
14832      ;;
14833
14834    uts4*)
14835      lt_prog_compiler_pic='-pic'
14836      lt_prog_compiler_static='-Bstatic'
14837      ;;
14838
14839    *)
14840      lt_prog_compiler_can_build_shared=no
14841      ;;
14842    esac
14843  fi
14844
14845case $host_os in
14846  # For platforms that do not support PIC, -DPIC is meaningless:
14847  *djgpp*)
14848    lt_prog_compiler_pic=
14849    ;;
14850  *)
14851    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14852    ;;
14853esac
14854
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14857if ${lt_cv_prog_compiler_pic+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14861fi
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14863$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14864lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14865
14866#
14867# Check to make sure the PIC flag actually works.
14868#
14869if test -n "$lt_prog_compiler_pic"; then
14870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14872if ${lt_cv_prog_compiler_pic_works+:} false; then :
14873  $as_echo_n "(cached) " >&6
14874else
14875  lt_cv_prog_compiler_pic_works=no
14876   ac_outfile=conftest.$ac_objext
14877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14879   # Insert the option either (1) after the last *FLAGS variable, or
14880   # (2) before a word containing "conftest.", or (3) at the end.
14881   # Note that $ac_compile itself does not contain backslashes and begins
14882   # with a dollar sign (not a hyphen), so the echo should work correctly.
14883   # The option is referenced via a variable to avoid confusing sed.
14884   lt_compile=`echo "$ac_compile" | $SED \
14885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14887   -e 's:$: $lt_compiler_flag:'`
14888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14889   (eval "$lt_compile" 2>conftest.err)
14890   ac_status=$?
14891   cat conftest.err >&5
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   if (exit $ac_status) && test -s "$ac_outfile"; then
14894     # The compiler can only warn and ignore the option if not recognized
14895     # So say no if there are warnings other than the usual output.
14896     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14897     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14898     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14899       lt_cv_prog_compiler_pic_works=yes
14900     fi
14901   fi
14902   $RM conftest*
14903
14904fi
14905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14906$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14907
14908if test yes = "$lt_cv_prog_compiler_pic_works"; then
14909    case $lt_prog_compiler_pic in
14910     "" | " "*) ;;
14911     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14912     esac
14913else
14914    lt_prog_compiler_pic=
14915     lt_prog_compiler_can_build_shared=no
14916fi
14917
14918fi
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930#
14931# Check to make sure the static flag actually works.
14932#
14933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14936if ${lt_cv_prog_compiler_static_works+:} false; then :
14937  $as_echo_n "(cached) " >&6
14938else
14939  lt_cv_prog_compiler_static_works=no
14940   save_LDFLAGS=$LDFLAGS
14941   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14942   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14943   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14944     # The linker can only warn and ignore the option if not recognized
14945     # So say no if there are warnings
14946     if test -s conftest.err; then
14947       # Append any errors to the config.log.
14948       cat conftest.err 1>&5
14949       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14950       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14951       if diff conftest.exp conftest.er2 >/dev/null; then
14952         lt_cv_prog_compiler_static_works=yes
14953       fi
14954     else
14955       lt_cv_prog_compiler_static_works=yes
14956     fi
14957   fi
14958   $RM -r conftest*
14959   LDFLAGS=$save_LDFLAGS
14960
14961fi
14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14963$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14964
14965if test yes = "$lt_cv_prog_compiler_static_works"; then
14966    :
14967else
14968    lt_prog_compiler_static=
14969fi
14970
14971
14972
14973
14974
14975
14976
14977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14979if ${lt_cv_prog_compiler_c_o+:} false; then :
14980  $as_echo_n "(cached) " >&6
14981else
14982  lt_cv_prog_compiler_c_o=no
14983   $RM -r conftest 2>/dev/null
14984   mkdir conftest
14985   cd conftest
14986   mkdir out
14987   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14988
14989   lt_compiler_flag="-o out/conftest2.$ac_objext"
14990   # Insert the option either (1) after the last *FLAGS variable, or
14991   # (2) before a word containing "conftest.", or (3) at the end.
14992   # Note that $ac_compile itself does not contain backslashes and begins
14993   # with a dollar sign (not a hyphen), so the echo should work correctly.
14994   lt_compile=`echo "$ac_compile" | $SED \
14995   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14997   -e 's:$: $lt_compiler_flag:'`
14998   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14999   (eval "$lt_compile" 2>out/conftest.err)
15000   ac_status=$?
15001   cat out/conftest.err >&5
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15004   then
15005     # The compiler can only warn and ignore the option if not recognized
15006     # So say no if there are warnings
15007     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15008     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15009     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15010       lt_cv_prog_compiler_c_o=yes
15011     fi
15012   fi
15013   chmod u+w . 2>&5
15014   $RM conftest*
15015   # SGI C++ compiler will create directory out/ii_files/ for
15016   # template instantiation
15017   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15018   $RM out/* && rmdir out
15019   cd ..
15020   $RM -r conftest
15021   $RM conftest*
15022
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15025$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15026
15027
15028
15029
15030
15031
15032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15034if ${lt_cv_prog_compiler_c_o+:} false; then :
15035  $as_echo_n "(cached) " >&6
15036else
15037  lt_cv_prog_compiler_c_o=no
15038   $RM -r conftest 2>/dev/null
15039   mkdir conftest
15040   cd conftest
15041   mkdir out
15042   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15043
15044   lt_compiler_flag="-o out/conftest2.$ac_objext"
15045   # Insert the option either (1) after the last *FLAGS variable, or
15046   # (2) before a word containing "conftest.", or (3) at the end.
15047   # Note that $ac_compile itself does not contain backslashes and begins
15048   # with a dollar sign (not a hyphen), so the echo should work correctly.
15049   lt_compile=`echo "$ac_compile" | $SED \
15050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052   -e 's:$: $lt_compiler_flag:'`
15053   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15054   (eval "$lt_compile" 2>out/conftest.err)
15055   ac_status=$?
15056   cat out/conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15059   then
15060     # The compiler can only warn and ignore the option if not recognized
15061     # So say no if there are warnings
15062     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15063     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15064     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15065       lt_cv_prog_compiler_c_o=yes
15066     fi
15067   fi
15068   chmod u+w . 2>&5
15069   $RM conftest*
15070   # SGI C++ compiler will create directory out/ii_files/ for
15071   # template instantiation
15072   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15073   $RM out/* && rmdir out
15074   cd ..
15075   $RM -r conftest
15076   $RM conftest*
15077
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15080$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15081
15082
15083
15084
15085hard_links=nottested
15086if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15087  # do not overwrite the value of need_locks provided by the user
15088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15089$as_echo_n "checking if we can lock with hard links... " >&6; }
15090  hard_links=yes
15091  $RM conftest*
15092  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15093  touch conftest.a
15094  ln conftest.a conftest.b 2>&5 || hard_links=no
15095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15097$as_echo "$hard_links" >&6; }
15098  if test no = "$hard_links"; then
15099    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15100$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15101    need_locks=warn
15102  fi
15103else
15104  need_locks=no
15105fi
15106
15107
15108
15109
15110
15111
15112  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15114
15115  runpath_var=
15116  allow_undefined_flag=
15117  always_export_symbols=no
15118  archive_cmds=
15119  archive_expsym_cmds=
15120  compiler_needs_object=no
15121  enable_shared_with_static_runtimes=no
15122  export_dynamic_flag_spec=
15123  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15124  hardcode_automatic=no
15125  hardcode_direct=no
15126  hardcode_direct_absolute=no
15127  hardcode_libdir_flag_spec=
15128  hardcode_libdir_separator=
15129  hardcode_minus_L=no
15130  hardcode_shlibpath_var=unsupported
15131  inherit_rpath=no
15132  link_all_deplibs=unknown
15133  module_cmds=
15134  module_expsym_cmds=
15135  old_archive_from_new_cmds=
15136  old_archive_from_expsyms_cmds=
15137  thread_safe_flag_spec=
15138  whole_archive_flag_spec=
15139  # include_expsyms should be a list of space-separated symbols to be *always*
15140  # included in the symbol list
15141  include_expsyms=
15142  # exclude_expsyms can be an extended regexp of symbols to exclude
15143  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15144  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15145  # as well as any symbol that contains 'd'.
15146  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15147  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15148  # platforms (ab)use it in PIC code, but their linkers get confused if
15149  # the symbol is explicitly referenced.  Since portable code cannot
15150  # rely on this symbol name, it's probably fine to never include it in
15151  # preloaded symbol tables.
15152  # Exclude shared library initialization/finalization symbols.
15153  extract_expsyms_cmds=
15154
15155  case $host_os in
15156  cygwin* | mingw* | pw32* | cegcc*)
15157    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15158    # When not using gcc, we currently assume that we are using
15159    # Microsoft Visual C++.
15160    if test yes != "$GCC"; then
15161      with_gnu_ld=no
15162    fi
15163    ;;
15164  interix*)
15165    # we just hope/assume this is gcc and not c89 (= MSVC++)
15166    with_gnu_ld=yes
15167    ;;
15168  openbsd* | bitrig*)
15169    with_gnu_ld=no
15170    ;;
15171  esac
15172
15173  ld_shlibs=yes
15174
15175  # On some targets, GNU ld is compatible enough with the native linker
15176  # that we're better off using the native interface for both.
15177  lt_use_gnu_ld_interface=no
15178  if test yes = "$with_gnu_ld"; then
15179    case $host_os in
15180      aix*)
15181	# The AIX port of GNU ld has always aspired to compatibility
15182	# with the native linker.  However, as the warning in the GNU ld
15183	# block says, versions before 2.19.5* couldn't really create working
15184	# shared libraries, regardless of the interface used.
15185	case `$LD -v 2>&1` in
15186	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15187	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15188	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15189	  *)
15190	    lt_use_gnu_ld_interface=yes
15191	    ;;
15192	esac
15193	;;
15194      *)
15195	lt_use_gnu_ld_interface=yes
15196	;;
15197    esac
15198  fi
15199
15200  if test yes = "$lt_use_gnu_ld_interface"; then
15201    # If archive_cmds runs LD, not CC, wlarc should be empty
15202    wlarc='$wl'
15203
15204    # Set some defaults for GNU ld with shared library support. These
15205    # are reset later if shared libraries are not supported. Putting them
15206    # here allows them to be overridden if necessary.
15207    runpath_var=LD_RUN_PATH
15208    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15209    export_dynamic_flag_spec='$wl--export-dynamic'
15210    # ancient GNU ld didn't support --whole-archive et. al.
15211    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15212      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15213    else
15214      whole_archive_flag_spec=
15215    fi
15216    supports_anon_versioning=no
15217    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15218      *GNU\ gold*) supports_anon_versioning=yes ;;
15219      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15220      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15221      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15222      *\ 2.11.*) ;; # other 2.11 versions
15223      *) supports_anon_versioning=yes ;;
15224    esac
15225
15226    # See if GNU ld supports shared libraries.
15227    case $host_os in
15228    aix[3-9]*)
15229      # On AIX/PPC, the GNU linker is very broken
15230      if test ia64 != "$host_cpu"; then
15231	ld_shlibs=no
15232	cat <<_LT_EOF 1>&2
15233
15234*** Warning: the GNU linker, at least up to release 2.19, is reported
15235*** to be unable to reliably create shared libraries on AIX.
15236*** Therefore, libtool is disabling shared libraries support.  If you
15237*** really care for shared libraries, you may want to install binutils
15238*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15239*** You will then need to restart the configuration process.
15240
15241_LT_EOF
15242      fi
15243      ;;
15244
15245    amigaos*)
15246      case $host_cpu in
15247      powerpc)
15248            # see comment about AmigaOS4 .so support
15249            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15250            archive_expsym_cmds=''
15251        ;;
15252      m68k)
15253            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)'
15254            hardcode_libdir_flag_spec='-L$libdir'
15255            hardcode_minus_L=yes
15256        ;;
15257      esac
15258      ;;
15259
15260    beos*)
15261      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15262	allow_undefined_flag=unsupported
15263	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15264	# support --undefined.  This deserves some investigation.  FIXME
15265	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15266      else
15267	ld_shlibs=no
15268      fi
15269      ;;
15270
15271    cygwin* | mingw* | pw32* | cegcc*)
15272      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15273      # as there is no search path for DLLs.
15274      hardcode_libdir_flag_spec='-L$libdir'
15275      export_dynamic_flag_spec='$wl--export-all-symbols'
15276      allow_undefined_flag=unsupported
15277      always_export_symbols=no
15278      enable_shared_with_static_runtimes=yes
15279      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15280      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15281
15282      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15284	# If the export-symbols file already is a .def file, use it as
15285	# is; otherwise, prepend EXPORTS...
15286	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15287          cp $export_symbols $output_objdir/$soname.def;
15288        else
15289          echo EXPORTS > $output_objdir/$soname.def;
15290          cat $export_symbols >> $output_objdir/$soname.def;
15291        fi~
15292        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15293      else
15294	ld_shlibs=no
15295      fi
15296      ;;
15297
15298    haiku*)
15299      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15300      link_all_deplibs=yes
15301      ;;
15302
15303    os2*)
15304      hardcode_libdir_flag_spec='-L$libdir'
15305      hardcode_minus_L=yes
15306      allow_undefined_flag=unsupported
15307      shrext_cmds=.dll
15308      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15309	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15310	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15311	$ECHO EXPORTS >> $output_objdir/$libname.def~
15312	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15313	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15314	emximp -o $lib $output_objdir/$libname.def'
15315      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15316	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15317	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15318	$ECHO EXPORTS >> $output_objdir/$libname.def~
15319	prefix_cmds="$SED"~
15320	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15321	  prefix_cmds="$prefix_cmds -e 1d";
15322	fi~
15323	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15324	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15325	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15326	emximp -o $lib $output_objdir/$libname.def'
15327      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15328      enable_shared_with_static_runtimes=yes
15329      ;;
15330
15331    interix[3-9]*)
15332      hardcode_direct=no
15333      hardcode_shlibpath_var=no
15334      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15335      export_dynamic_flag_spec='$wl-E'
15336      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15337      # Instead, shared libraries are loaded at an image base (0x10000000 by
15338      # default) and relocated if they conflict, which is a slow very memory
15339      # consuming and fragmenting process.  To avoid this, we pick a random,
15340      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15341      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15342      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15343      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15344      ;;
15345
15346    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15347      tmp_diet=no
15348      if test linux-dietlibc = "$host_os"; then
15349	case $cc_basename in
15350	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15351	esac
15352      fi
15353      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15354	 && test no = "$tmp_diet"
15355      then
15356	tmp_addflag=' $pic_flag'
15357	tmp_sharedflag='-shared'
15358	case $cc_basename,$host_cpu in
15359        pgcc*)				# Portland Group C compiler
15360	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15361	  tmp_addflag=' $pic_flag'
15362	  ;;
15363	pgf77* | pgf90* | pgf95* | pgfortran*)
15364					# Portland Group f77 and f90 compilers
15365	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15366	  tmp_addflag=' $pic_flag -Mnomain' ;;
15367	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15368	  tmp_addflag=' -i_dynamic' ;;
15369	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15370	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15371	ifc* | ifort*)			# Intel Fortran compiler
15372	  tmp_addflag=' -nofor_main' ;;
15373	lf95*)				# Lahey Fortran 8.1
15374	  whole_archive_flag_spec=
15375	  tmp_sharedflag='--shared' ;;
15376        nagfor*)                        # NAGFOR 5.3
15377          tmp_sharedflag='-Wl,-shared' ;;
15378	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15379	  tmp_sharedflag='-qmkshrobj'
15380	  tmp_addflag= ;;
15381	nvcc*)	# Cuda Compiler Driver 2.2
15382	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15383	  compiler_needs_object=yes
15384	  ;;
15385	esac
15386	case `$CC -V 2>&1 | sed 5q` in
15387	*Sun\ C*)			# Sun C 5.9
15388	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15389	  compiler_needs_object=yes
15390	  tmp_sharedflag='-G' ;;
15391	*Sun\ F*)			# Sun Fortran 8.3
15392	  tmp_sharedflag='-G' ;;
15393	esac
15394	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15395
15396        if test yes = "$supports_anon_versioning"; then
15397          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15398            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15399            echo "local: *; };" >> $output_objdir/$libname.ver~
15400            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15401        fi
15402
15403	case $cc_basename in
15404	tcc*)
15405	  export_dynamic_flag_spec='-rdynamic'
15406	  ;;
15407	xlf* | bgf* | bgxlf* | mpixlf*)
15408	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15409	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15410	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15411	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15412	  if test yes = "$supports_anon_versioning"; then
15413	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15414              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15415              echo "local: *; };" >> $output_objdir/$libname.ver~
15416              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15417	  fi
15418	  ;;
15419	esac
15420      else
15421        ld_shlibs=no
15422      fi
15423      ;;
15424
15425    netbsd*)
15426      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15427	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15428	wlarc=
15429      else
15430	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15431	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15432      fi
15433      ;;
15434
15435    solaris*)
15436      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15437	ld_shlibs=no
15438	cat <<_LT_EOF 1>&2
15439
15440*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15441*** create shared libraries on Solaris systems.  Therefore, libtool
15442*** is disabling shared libraries support.  We urge you to upgrade GNU
15443*** binutils to release 2.9.1 or newer.  Another option is to modify
15444*** your PATH or compiler configuration so that the native linker is
15445*** used, and then restart.
15446
15447_LT_EOF
15448      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15449	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15450	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15451      else
15452	ld_shlibs=no
15453      fi
15454      ;;
15455
15456    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15457      case `$LD -v 2>&1` in
15458        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15459	ld_shlibs=no
15460	cat <<_LT_EOF 1>&2
15461
15462*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15463*** reliably create shared libraries on SCO systems.  Therefore, libtool
15464*** is disabling shared libraries support.  We urge you to upgrade GNU
15465*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15466*** your PATH or compiler configuration so that the native linker is
15467*** used, and then restart.
15468
15469_LT_EOF
15470	;;
15471	*)
15472	  # For security reasons, it is highly recommended that you always
15473	  # use absolute paths for naming shared libraries, and exclude the
15474	  # DT_RUNPATH tag from executables and libraries.  But doing so
15475	  # requires that you compile everything twice, which is a pain.
15476	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15477	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15478	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15479	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15480	  else
15481	    ld_shlibs=no
15482	  fi
15483	;;
15484      esac
15485      ;;
15486
15487    sunos4*)
15488      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489      wlarc=
15490      hardcode_direct=yes
15491      hardcode_shlibpath_var=no
15492      ;;
15493
15494    *)
15495      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15496	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15497	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15498      else
15499	ld_shlibs=no
15500      fi
15501      ;;
15502    esac
15503
15504    if test no = "$ld_shlibs"; then
15505      runpath_var=
15506      hardcode_libdir_flag_spec=
15507      export_dynamic_flag_spec=
15508      whole_archive_flag_spec=
15509    fi
15510  else
15511    # PORTME fill in a description of your system's linker (not GNU ld)
15512    case $host_os in
15513    aix3*)
15514      allow_undefined_flag=unsupported
15515      always_export_symbols=yes
15516      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'
15517      # Note: this linker hardcodes the directories in LIBPATH if there
15518      # are no directories specified by -L.
15519      hardcode_minus_L=yes
15520      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15521	# Neither direct hardcoding nor static linking is supported with a
15522	# broken collect2.
15523	hardcode_direct=unsupported
15524      fi
15525      ;;
15526
15527    aix[4-9]*)
15528      if test ia64 = "$host_cpu"; then
15529	# On IA64, the linker does run time linking by default, so we don't
15530	# have to do anything special.
15531	aix_use_runtimelinking=no
15532	exp_sym_flag='-Bexport'
15533	no_entry_flag=
15534      else
15535	# If we're using GNU nm, then we don't want the "-C" option.
15536	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15537	# Without the "-l" option, or with the "-B" option, AIX nm treats
15538	# weak defined symbols like other global defined symbols, whereas
15539	# GNU nm marks them as "W".
15540	# While the 'weak' keyword is ignored in the Export File, we need
15541	# it in the Import File for the 'aix-soname' feature, so we have
15542	# to replace the "-B" option with "-P" for AIX nm.
15543	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15544	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15545	else
15546	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15547	fi
15548	aix_use_runtimelinking=no
15549
15550	# Test if we are trying to use run time linking or normal
15551	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15552	# have runtime linking enabled, and use it for executables.
15553	# For shared libraries, we enable/disable runtime linking
15554	# depending on the kind of the shared library created -
15555	# when "with_aix_soname,aix_use_runtimelinking" is:
15556	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15557	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15558	#            lib.a           static archive
15559	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15560	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15561	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15562	#            lib.a(lib.so.V) shared, rtl:no
15563	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15564	#            lib.a           static archive
15565	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15566	  for ld_flag in $LDFLAGS; do
15567	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15568	    aix_use_runtimelinking=yes
15569	    break
15570	  fi
15571	  done
15572	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15573	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15574	    # so we don't have lib.a shared libs to link our executables.
15575	    # We have to force runtime linking in this case.
15576	    aix_use_runtimelinking=yes
15577	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15578	  fi
15579	  ;;
15580	esac
15581
15582	exp_sym_flag='-bexport'
15583	no_entry_flag='-bnoentry'
15584      fi
15585
15586      # When large executables or shared objects are built, AIX ld can
15587      # have problems creating the table of contents.  If linking a library
15588      # or program results in "error TOC overflow" add -mminimal-toc to
15589      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15590      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15591
15592      archive_cmds=''
15593      hardcode_direct=yes
15594      hardcode_direct_absolute=yes
15595      hardcode_libdir_separator=':'
15596      link_all_deplibs=yes
15597      file_list_spec='$wl-f,'
15598      case $with_aix_soname,$aix_use_runtimelinking in
15599      aix,*) ;; # traditional, no import file
15600      svr4,* | *,yes) # use import file
15601	# The Import File defines what to hardcode.
15602	hardcode_direct=no
15603	hardcode_direct_absolute=no
15604	;;
15605      esac
15606
15607      if test yes = "$GCC"; then
15608	case $host_os in aix4.[012]|aix4.[012].*)
15609	# We only want to do this on AIX 4.2 and lower, the check
15610	# below for broken collect2 doesn't work under 4.3+
15611	  collect2name=`$CC -print-prog-name=collect2`
15612	  if test -f "$collect2name" &&
15613	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15614	  then
15615	  # We have reworked collect2
15616	  :
15617	  else
15618	  # We have old collect2
15619	  hardcode_direct=unsupported
15620	  # It fails to find uninstalled libraries when the uninstalled
15621	  # path is not listed in the libpath.  Setting hardcode_minus_L
15622	  # to unsupported forces relinking
15623	  hardcode_minus_L=yes
15624	  hardcode_libdir_flag_spec='-L$libdir'
15625	  hardcode_libdir_separator=
15626	  fi
15627	  ;;
15628	esac
15629	shared_flag='-shared'
15630	if test yes = "$aix_use_runtimelinking"; then
15631	  shared_flag="$shared_flag "'$wl-G'
15632	fi
15633	# Need to ensure runtime linking is disabled for the traditional
15634	# shared library, or the linker may eventually find shared libraries
15635	# /with/ Import File - we do not want to mix them.
15636	shared_flag_aix='-shared'
15637	shared_flag_svr4='-shared $wl-G'
15638      else
15639	# not using gcc
15640	if test ia64 = "$host_cpu"; then
15641	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15642	# chokes on -Wl,-G. The following line is correct:
15643	  shared_flag='-G'
15644	else
15645	  if test yes = "$aix_use_runtimelinking"; then
15646	    shared_flag='$wl-G'
15647	  else
15648	    shared_flag='$wl-bM:SRE'
15649	  fi
15650	  shared_flag_aix='$wl-bM:SRE'
15651	  shared_flag_svr4='$wl-G'
15652	fi
15653      fi
15654
15655      export_dynamic_flag_spec='$wl-bexpall'
15656      # It seems that -bexpall does not export symbols beginning with
15657      # underscore (_), so it is better to generate a list of symbols to export.
15658      always_export_symbols=yes
15659      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15660	# Warning - without using the other runtime loading flags (-brtl),
15661	# -berok will link without error, but may produce a broken library.
15662	allow_undefined_flag='-berok'
15663        # Determine the default libpath from the value encoded in an
15664        # empty executable.
15665        if test set = "${lt_cv_aix_libpath+set}"; then
15666  aix_libpath=$lt_cv_aix_libpath
15667else
15668  if ${lt_cv_aix_libpath_+:} false; then :
15669  $as_echo_n "(cached) " >&6
15670else
15671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h.  */
15673
15674int
15675main ()
15676{
15677
15678  ;
15679  return 0;
15680}
15681_ACEOF
15682if ac_fn_c_try_link "$LINENO"; then :
15683
15684  lt_aix_libpath_sed='
15685      /Import File Strings/,/^$/ {
15686	  /^0/ {
15687	      s/^0  *\([^ ]*\) *$/\1/
15688	      p
15689	  }
15690      }'
15691  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15692  # Check for a 64-bit object if we didn't find anything.
15693  if test -z "$lt_cv_aix_libpath_"; then
15694    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15695  fi
15696fi
15697rm -f core conftest.err conftest.$ac_objext \
15698    conftest$ac_exeext conftest.$ac_ext
15699  if test -z "$lt_cv_aix_libpath_"; then
15700    lt_cv_aix_libpath_=/usr/lib:/lib
15701  fi
15702
15703fi
15704
15705  aix_libpath=$lt_cv_aix_libpath_
15706fi
15707
15708        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15709        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15710      else
15711	if test ia64 = "$host_cpu"; then
15712	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15713	  allow_undefined_flag="-z nodefs"
15714	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15715	else
15716	 # Determine the default libpath from the value encoded in an
15717	 # empty executable.
15718	 if test set = "${lt_cv_aix_libpath+set}"; then
15719  aix_libpath=$lt_cv_aix_libpath
15720else
15721  if ${lt_cv_aix_libpath_+:} false; then :
15722  $as_echo_n "(cached) " >&6
15723else
15724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725/* end confdefs.h.  */
15726
15727int
15728main ()
15729{
15730
15731  ;
15732  return 0;
15733}
15734_ACEOF
15735if ac_fn_c_try_link "$LINENO"; then :
15736
15737  lt_aix_libpath_sed='
15738      /Import File Strings/,/^$/ {
15739	  /^0/ {
15740	      s/^0  *\([^ ]*\) *$/\1/
15741	      p
15742	  }
15743      }'
15744  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15745  # Check for a 64-bit object if we didn't find anything.
15746  if test -z "$lt_cv_aix_libpath_"; then
15747    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15748  fi
15749fi
15750rm -f core conftest.err conftest.$ac_objext \
15751    conftest$ac_exeext conftest.$ac_ext
15752  if test -z "$lt_cv_aix_libpath_"; then
15753    lt_cv_aix_libpath_=/usr/lib:/lib
15754  fi
15755
15756fi
15757
15758  aix_libpath=$lt_cv_aix_libpath_
15759fi
15760
15761	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15762	  # Warning - without using the other run time loading flags,
15763	  # -berok will link without error, but may produce a broken library.
15764	  no_undefined_flag=' $wl-bernotok'
15765	  allow_undefined_flag=' $wl-berok'
15766	  if test yes = "$with_gnu_ld"; then
15767	    # We only use this code for GNU lds that support --whole-archive.
15768	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15769	  else
15770	    # Exported symbols can be pulled into shared objects from archives
15771	    whole_archive_flag_spec='$convenience'
15772	  fi
15773	  archive_cmds_need_lc=yes
15774	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15775	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15776	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15777	  if test svr4 != "$with_aix_soname"; then
15778	    # This is similar to how AIX traditionally builds its shared libraries.
15779	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15780	  fi
15781	  if test aix != "$with_aix_soname"; then
15782	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15783	  else
15784	    # used by -dlpreopen to get the symbols
15785	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15786	  fi
15787	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15788	fi
15789      fi
15790      ;;
15791
15792    amigaos*)
15793      case $host_cpu in
15794      powerpc)
15795            # see comment about AmigaOS4 .so support
15796            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15797            archive_expsym_cmds=''
15798        ;;
15799      m68k)
15800            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)'
15801            hardcode_libdir_flag_spec='-L$libdir'
15802            hardcode_minus_L=yes
15803        ;;
15804      esac
15805      ;;
15806
15807    bsdi[45]*)
15808      export_dynamic_flag_spec=-rdynamic
15809      ;;
15810
15811    cygwin* | mingw* | pw32* | cegcc*)
15812      # When not using gcc, we currently assume that we are using
15813      # Microsoft Visual C++.
15814      # hardcode_libdir_flag_spec is actually meaningless, as there is
15815      # no search path for DLLs.
15816      case $cc_basename in
15817      cl*)
15818	# Native MSVC
15819	hardcode_libdir_flag_spec=' '
15820	allow_undefined_flag=unsupported
15821	always_export_symbols=yes
15822	file_list_spec='@'
15823	# Tell ltmain to make .lib files, not .a files.
15824	libext=lib
15825	# Tell ltmain to make .dll files, not .so files.
15826	shrext_cmds=.dll
15827	# FIXME: Setting linknames here is a bad hack.
15828	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15829	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15830            cp "$export_symbols" "$output_objdir/$soname.def";
15831            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15832          else
15833            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15834          fi~
15835          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15836          linknames='
15837	# The linker will not automatically build a static lib if we build a DLL.
15838	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15839	enable_shared_with_static_runtimes=yes
15840	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15841	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15842	# Don't use ranlib
15843	old_postinstall_cmds='chmod 644 $oldlib'
15844	postlink_cmds='lt_outputfile="@OUTPUT@"~
15845          lt_tool_outputfile="@TOOL_OUTPUT@"~
15846          case $lt_outputfile in
15847            *.exe|*.EXE) ;;
15848            *)
15849              lt_outputfile=$lt_outputfile.exe
15850              lt_tool_outputfile=$lt_tool_outputfile.exe
15851              ;;
15852          esac~
15853          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15854            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15855            $RM "$lt_outputfile.manifest";
15856          fi'
15857	;;
15858      *)
15859	# Assume MSVC wrapper
15860	hardcode_libdir_flag_spec=' '
15861	allow_undefined_flag=unsupported
15862	# Tell ltmain to make .lib files, not .a files.
15863	libext=lib
15864	# Tell ltmain to make .dll files, not .so files.
15865	shrext_cmds=.dll
15866	# FIXME: Setting linknames here is a bad hack.
15867	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15868	# The linker will automatically build a .lib file if we build a DLL.
15869	old_archive_from_new_cmds='true'
15870	# FIXME: Should let the user specify the lib program.
15871	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15872	enable_shared_with_static_runtimes=yes
15873	;;
15874      esac
15875      ;;
15876
15877    darwin* | rhapsody*)
15878
15879
15880  archive_cmds_need_lc=no
15881  hardcode_direct=no
15882  hardcode_automatic=yes
15883  hardcode_shlibpath_var=unsupported
15884  if test yes = "$lt_cv_ld_force_load"; then
15885    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15886
15887  else
15888    whole_archive_flag_spec=''
15889  fi
15890  link_all_deplibs=yes
15891  allow_undefined_flag=$_lt_dar_allow_undefined
15892  case $cc_basename in
15893     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15894     *) _lt_dar_can_shared=$GCC ;;
15895  esac
15896  if test yes = "$_lt_dar_can_shared"; then
15897    output_verbose_link_cmd=func_echo_all
15898    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15899    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15900    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15901    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15902
15903  else
15904  ld_shlibs=no
15905  fi
15906
15907      ;;
15908
15909    dgux*)
15910      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911      hardcode_libdir_flag_spec='-L$libdir'
15912      hardcode_shlibpath_var=no
15913      ;;
15914
15915    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15916    # support.  Future versions do this automatically, but an explicit c++rt0.o
15917    # does not break anything, and helps significantly (at the cost of a little
15918    # extra space).
15919    freebsd2.2*)
15920      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15921      hardcode_libdir_flag_spec='-R$libdir'
15922      hardcode_direct=yes
15923      hardcode_shlibpath_var=no
15924      ;;
15925
15926    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15927    freebsd2.*)
15928      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15929      hardcode_direct=yes
15930      hardcode_minus_L=yes
15931      hardcode_shlibpath_var=no
15932      ;;
15933
15934    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15935    freebsd* | dragonfly*)
15936      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15937      hardcode_libdir_flag_spec='-R$libdir'
15938      hardcode_direct=yes
15939      hardcode_shlibpath_var=no
15940      ;;
15941
15942    hpux9*)
15943      if test yes = "$GCC"; then
15944	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15945      else
15946	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15947      fi
15948      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15949      hardcode_libdir_separator=:
15950      hardcode_direct=yes
15951
15952      # hardcode_minus_L: Not really in the search PATH,
15953      # but as the default location of the library.
15954      hardcode_minus_L=yes
15955      export_dynamic_flag_spec='$wl-E'
15956      ;;
15957
15958    hpux10*)
15959      if test yes,no = "$GCC,$with_gnu_ld"; then
15960	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15961      else
15962	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15963      fi
15964      if test no = "$with_gnu_ld"; then
15965	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
15966	hardcode_libdir_separator=:
15967	hardcode_direct=yes
15968	hardcode_direct_absolute=yes
15969	export_dynamic_flag_spec='$wl-E'
15970	# hardcode_minus_L: Not really in the search PATH,
15971	# but as the default location of the library.
15972	hardcode_minus_L=yes
15973      fi
15974      ;;
15975
15976    hpux11*)
15977      if test yes,no = "$GCC,$with_gnu_ld"; then
15978	case $host_cpu in
15979	hppa*64*)
15980	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15981	  ;;
15982	ia64*)
15983	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15984	  ;;
15985	*)
15986	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15987	  ;;
15988	esac
15989      else
15990	case $host_cpu in
15991	hppa*64*)
15992	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15993	  ;;
15994	ia64*)
15995	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15996	  ;;
15997	*)
15998
15999	  # Older versions of the 11.00 compiler do not understand -b yet
16000	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16001	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16002$as_echo_n "checking if $CC understands -b... " >&6; }
16003if ${lt_cv_prog_compiler__b+:} false; then :
16004  $as_echo_n "(cached) " >&6
16005else
16006  lt_cv_prog_compiler__b=no
16007   save_LDFLAGS=$LDFLAGS
16008   LDFLAGS="$LDFLAGS -b"
16009   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16010   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16011     # The linker can only warn and ignore the option if not recognized
16012     # So say no if there are warnings
16013     if test -s conftest.err; then
16014       # Append any errors to the config.log.
16015       cat conftest.err 1>&5
16016       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16017       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16018       if diff conftest.exp conftest.er2 >/dev/null; then
16019         lt_cv_prog_compiler__b=yes
16020       fi
16021     else
16022       lt_cv_prog_compiler__b=yes
16023     fi
16024   fi
16025   $RM -r conftest*
16026   LDFLAGS=$save_LDFLAGS
16027
16028fi
16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16030$as_echo "$lt_cv_prog_compiler__b" >&6; }
16031
16032if test yes = "$lt_cv_prog_compiler__b"; then
16033    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16034else
16035    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16036fi
16037
16038	  ;;
16039	esac
16040      fi
16041      if test no = "$with_gnu_ld"; then
16042	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16043	hardcode_libdir_separator=:
16044
16045	case $host_cpu in
16046	hppa*64*|ia64*)
16047	  hardcode_direct=no
16048	  hardcode_shlibpath_var=no
16049	  ;;
16050	*)
16051	  hardcode_direct=yes
16052	  hardcode_direct_absolute=yes
16053	  export_dynamic_flag_spec='$wl-E'
16054
16055	  # hardcode_minus_L: Not really in the search PATH,
16056	  # but as the default location of the library.
16057	  hardcode_minus_L=yes
16058	  ;;
16059	esac
16060      fi
16061      ;;
16062
16063    irix5* | irix6* | nonstopux*)
16064      if test yes = "$GCC"; then
16065	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16066	# Try to use the -exported_symbol ld option, if it does not
16067	# work, assume that -exports_file does not work either and
16068	# implicitly export all symbols.
16069	# This should be the same for all languages, so no per-tag cache variable.
16070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16071$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16072if ${lt_cv_irix_exported_symbol+:} false; then :
16073  $as_echo_n "(cached) " >&6
16074else
16075  save_LDFLAGS=$LDFLAGS
16076	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16077	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079int foo (void) { return 0; }
16080_ACEOF
16081if ac_fn_c_try_link "$LINENO"; then :
16082  lt_cv_irix_exported_symbol=yes
16083else
16084  lt_cv_irix_exported_symbol=no
16085fi
16086rm -f core conftest.err conftest.$ac_objext \
16087    conftest$ac_exeext conftest.$ac_ext
16088           LDFLAGS=$save_LDFLAGS
16089fi
16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16091$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16092	if test yes = "$lt_cv_irix_exported_symbol"; then
16093          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
16094	fi
16095      else
16096	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16097	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
16098      fi
16099      archive_cmds_need_lc='no'
16100      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16101      hardcode_libdir_separator=:
16102      inherit_rpath=yes
16103      link_all_deplibs=yes
16104      ;;
16105
16106    linux*)
16107      case $cc_basename in
16108      tcc*)
16109	# Fabrice Bellard et al's Tiny C Compiler
16110	ld_shlibs=yes
16111	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16112	;;
16113      esac
16114      ;;
16115
16116    netbsd*)
16117      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16118	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16119      else
16120	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16121      fi
16122      hardcode_libdir_flag_spec='-R$libdir'
16123      hardcode_direct=yes
16124      hardcode_shlibpath_var=no
16125      ;;
16126
16127    newsos6)
16128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129      hardcode_direct=yes
16130      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16131      hardcode_libdir_separator=:
16132      hardcode_shlibpath_var=no
16133      ;;
16134
16135    *nto* | *qnx*)
16136      ;;
16137
16138    openbsd* | bitrig*)
16139      if test -f /usr/libexec/ld.so; then
16140	hardcode_direct=yes
16141	hardcode_shlibpath_var=no
16142	hardcode_direct_absolute=yes
16143	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16144	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16145	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16146	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16147	  export_dynamic_flag_spec='$wl-E'
16148	else
16149	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16150	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16151	fi
16152      else
16153	ld_shlibs=no
16154      fi
16155      ;;
16156
16157    os2*)
16158      hardcode_libdir_flag_spec='-L$libdir'
16159      hardcode_minus_L=yes
16160      allow_undefined_flag=unsupported
16161      shrext_cmds=.dll
16162      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16163	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16164	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16165	$ECHO EXPORTS >> $output_objdir/$libname.def~
16166	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16167	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16168	emximp -o $lib $output_objdir/$libname.def'
16169      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16170	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16171	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16172	$ECHO EXPORTS >> $output_objdir/$libname.def~
16173	prefix_cmds="$SED"~
16174	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16175	  prefix_cmds="$prefix_cmds -e 1d";
16176	fi~
16177	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16178	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16179	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16180	emximp -o $lib $output_objdir/$libname.def'
16181      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16182      enable_shared_with_static_runtimes=yes
16183      ;;
16184
16185    osf3*)
16186      if test yes = "$GCC"; then
16187	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16188	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16189      else
16190	allow_undefined_flag=' -expect_unresolved \*'
16191	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16192      fi
16193      archive_cmds_need_lc='no'
16194      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16195      hardcode_libdir_separator=:
16196      ;;
16197
16198    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16199      if test yes = "$GCC"; then
16200	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16201	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16202	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16203      else
16204	allow_undefined_flag=' -expect_unresolved \*'
16205	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16206	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16207          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
16208
16209	# Both c and cxx compiler support -rpath directly
16210	hardcode_libdir_flag_spec='-rpath $libdir'
16211      fi
16212      archive_cmds_need_lc='no'
16213      hardcode_libdir_separator=:
16214      ;;
16215
16216    solaris*)
16217      no_undefined_flag=' -z defs'
16218      if test yes = "$GCC"; then
16219	wlarc='$wl'
16220	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16221	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16222          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16223      else
16224	case `$CC -V 2>&1` in
16225	*"Compilers 5.0"*)
16226	  wlarc=''
16227	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16229            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16230	  ;;
16231	*)
16232	  wlarc='$wl'
16233	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16234	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16235            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16236	  ;;
16237	esac
16238      fi
16239      hardcode_libdir_flag_spec='-R$libdir'
16240      hardcode_shlibpath_var=no
16241      case $host_os in
16242      solaris2.[0-5] | solaris2.[0-5].*) ;;
16243      *)
16244	# The compiler driver will combine and reorder linker options,
16245	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16246	# but is careful enough not to reorder.
16247	# Supported since Solaris 2.6 (maybe 2.5.1?)
16248	if test yes = "$GCC"; then
16249	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16250	else
16251	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16252	fi
16253	;;
16254      esac
16255      link_all_deplibs=yes
16256      ;;
16257
16258    sunos4*)
16259      if test sequent = "$host_vendor"; then
16260	# Use $CC to link under sequent, because it throws in some extra .o
16261	# files that make .init and .fini sections work.
16262	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16263      else
16264	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16265      fi
16266      hardcode_libdir_flag_spec='-L$libdir'
16267      hardcode_direct=yes
16268      hardcode_minus_L=yes
16269      hardcode_shlibpath_var=no
16270      ;;
16271
16272    sysv4)
16273      case $host_vendor in
16274	sni)
16275	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16276	  hardcode_direct=yes # is this really true???
16277	;;
16278	siemens)
16279	  ## LD is ld it makes a PLAMLIB
16280	  ## CC just makes a GrossModule.
16281	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16282	  reload_cmds='$CC -r -o $output$reload_objs'
16283	  hardcode_direct=no
16284        ;;
16285	motorola)
16286	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16287	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16288	;;
16289      esac
16290      runpath_var='LD_RUN_PATH'
16291      hardcode_shlibpath_var=no
16292      ;;
16293
16294    sysv4.3*)
16295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16296      hardcode_shlibpath_var=no
16297      export_dynamic_flag_spec='-Bexport'
16298      ;;
16299
16300    sysv4*MP*)
16301      if test -d /usr/nec; then
16302	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16303	hardcode_shlibpath_var=no
16304	runpath_var=LD_RUN_PATH
16305	hardcode_runpath_var=yes
16306	ld_shlibs=yes
16307      fi
16308      ;;
16309
16310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16311      no_undefined_flag='$wl-z,text'
16312      archive_cmds_need_lc=no
16313      hardcode_shlibpath_var=no
16314      runpath_var='LD_RUN_PATH'
16315
16316      if test yes = "$GCC"; then
16317	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16318	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16319      else
16320	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16321	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16322      fi
16323      ;;
16324
16325    sysv5* | sco3.2v5* | sco5v6*)
16326      # Note: We CANNOT use -z defs as we might desire, because we do not
16327      # link with -lc, and that would cause any symbols used from libc to
16328      # always be unresolved, which means just about no library would
16329      # ever link correctly.  If we're not using GNU ld we use -z text
16330      # though, which does catch some bad symbols but isn't as heavy-handed
16331      # as -z defs.
16332      no_undefined_flag='$wl-z,text'
16333      allow_undefined_flag='$wl-z,nodefs'
16334      archive_cmds_need_lc=no
16335      hardcode_shlibpath_var=no
16336      hardcode_libdir_flag_spec='$wl-R,$libdir'
16337      hardcode_libdir_separator=':'
16338      link_all_deplibs=yes
16339      export_dynamic_flag_spec='$wl-Bexport'
16340      runpath_var='LD_RUN_PATH'
16341
16342      if test yes = "$GCC"; then
16343	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16344	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16345      else
16346	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16347	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16348      fi
16349      ;;
16350
16351    uts4*)
16352      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16353      hardcode_libdir_flag_spec='-L$libdir'
16354      hardcode_shlibpath_var=no
16355      ;;
16356
16357    *)
16358      ld_shlibs=no
16359      ;;
16360    esac
16361
16362    if test sni = "$host_vendor"; then
16363      case $host in
16364      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16365	export_dynamic_flag_spec='$wl-Blargedynsym'
16366	;;
16367      esac
16368    fi
16369  fi
16370
16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16372$as_echo "$ld_shlibs" >&6; }
16373test no = "$ld_shlibs" && can_build_shared=no
16374
16375with_gnu_ld=$with_gnu_ld
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391#
16392# Do we need to explicitly link libc?
16393#
16394case "x$archive_cmds_need_lc" in
16395x|xyes)
16396  # Assume -lc should be added
16397  archive_cmds_need_lc=yes
16398
16399  if test yes,yes = "$GCC,$enable_shared"; then
16400    case $archive_cmds in
16401    *'~'*)
16402      # FIXME: we may have to deal with multi-command sequences.
16403      ;;
16404    '$CC '*)
16405      # Test whether the compiler implicitly links with -lc since on some
16406      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16407      # to ld, don't add -lc before -lgcc.
16408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16410if ${lt_cv_archive_cmds_need_lc+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  $RM conftest*
16414	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16415
16416	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16417  (eval $ac_compile) 2>&5
16418  ac_status=$?
16419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16420  test $ac_status = 0; } 2>conftest.err; then
16421	  soname=conftest
16422	  lib=conftest
16423	  libobjs=conftest.$ac_objext
16424	  deplibs=
16425	  wl=$lt_prog_compiler_wl
16426	  pic_flag=$lt_prog_compiler_pic
16427	  compiler_flags=-v
16428	  linker_flags=-v
16429	  verstring=
16430	  output_objdir=.
16431	  libname=conftest
16432	  lt_save_allow_undefined_flag=$allow_undefined_flag
16433	  allow_undefined_flag=
16434	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16435  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16436  ac_status=$?
16437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16438  test $ac_status = 0; }
16439	  then
16440	    lt_cv_archive_cmds_need_lc=no
16441	  else
16442	    lt_cv_archive_cmds_need_lc=yes
16443	  fi
16444	  allow_undefined_flag=$lt_save_allow_undefined_flag
16445	else
16446	  cat conftest.err 1>&5
16447	fi
16448	$RM conftest*
16449
16450fi
16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16452$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16453      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16454      ;;
16455    esac
16456  fi
16457  ;;
16458esac
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16612$as_echo_n "checking dynamic linker characteristics... " >&6; }
16613
16614if test yes = "$GCC"; then
16615  case $host_os in
16616    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16617    *) lt_awk_arg='/^libraries:/' ;;
16618  esac
16619  case $host_os in
16620    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16621    *) lt_sed_strip_eq='s|=/|/|g' ;;
16622  esac
16623  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16624  case $lt_search_path_spec in
16625  *\;*)
16626    # if the path contains ";" then we assume it to be the separator
16627    # otherwise default to the standard path separator (i.e. ":") - it is
16628    # assumed that no part of a normal pathname contains ";" but that should
16629    # okay in the real world where ";" in dirpaths is itself problematic.
16630    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16631    ;;
16632  *)
16633    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16634    ;;
16635  esac
16636  # Ok, now we have the path, separated by spaces, we can step through it
16637  # and add multilib dir if necessary...
16638  lt_tmp_lt_search_path_spec=
16639  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16640  # ...but if some path component already ends with the multilib dir we assume
16641  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16642  case "$lt_multi_os_dir; $lt_search_path_spec " in
16643  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16644    lt_multi_os_dir=
16645    ;;
16646  esac
16647  for lt_sys_path in $lt_search_path_spec; do
16648    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16649      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16650    elif test -n "$lt_multi_os_dir"; then
16651      test -d "$lt_sys_path" && \
16652	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16653    fi
16654  done
16655  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16656BEGIN {RS = " "; FS = "/|\n";} {
16657  lt_foo = "";
16658  lt_count = 0;
16659  for (lt_i = NF; lt_i > 0; lt_i--) {
16660    if ($lt_i != "" && $lt_i != ".") {
16661      if ($lt_i == "..") {
16662        lt_count++;
16663      } else {
16664        if (lt_count == 0) {
16665          lt_foo = "/" $lt_i lt_foo;
16666        } else {
16667          lt_count--;
16668        }
16669      }
16670    }
16671  }
16672  if (lt_foo != "") { lt_freq[lt_foo]++; }
16673  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16674}'`
16675  # AWK program above erroneously prepends '/' to C:/dos/paths
16676  # for these hosts.
16677  case $host_os in
16678    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16679      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16680  esac
16681  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16682else
16683  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16684fi
16685library_names_spec=
16686libname_spec='lib$name'
16687soname_spec=
16688shrext_cmds=.so
16689postinstall_cmds=
16690postuninstall_cmds=
16691finish_cmds=
16692finish_eval=
16693shlibpath_var=
16694shlibpath_overrides_runpath=unknown
16695version_type=none
16696dynamic_linker="$host_os ld.so"
16697sys_lib_dlsearch_path_spec="/lib /usr/lib"
16698need_lib_prefix=unknown
16699hardcode_into_libs=no
16700
16701# when you set need_version to no, make sure it does not cause -set_version
16702# flags to be left without arguments
16703need_version=unknown
16704
16705
16706
16707case $host_os in
16708aix3*)
16709  version_type=linux # correct to gnu/linux during the next big refactor
16710  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16711  shlibpath_var=LIBPATH
16712
16713  # AIX 3 has no versioning support, so we append a major version to the name.
16714  soname_spec='$libname$release$shared_ext$major'
16715  ;;
16716
16717aix[4-9]*)
16718  version_type=linux # correct to gnu/linux during the next big refactor
16719  need_lib_prefix=no
16720  need_version=no
16721  hardcode_into_libs=yes
16722  if test ia64 = "$host_cpu"; then
16723    # AIX 5 supports IA64
16724    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16725    shlibpath_var=LD_LIBRARY_PATH
16726  else
16727    # With GCC up to 2.95.x, collect2 would create an import file
16728    # for dependence libraries.  The import file would start with
16729    # the line '#! .'.  This would cause the generated library to
16730    # depend on '.', always an invalid library.  This was fixed in
16731    # development snapshots of GCC prior to 3.0.
16732    case $host_os in
16733      aix4 | aix4.[01] | aix4.[01].*)
16734      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16735	   echo ' yes '
16736	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16737	:
16738      else
16739	can_build_shared=no
16740      fi
16741      ;;
16742    esac
16743    # Using Import Files as archive members, it is possible to support
16744    # filename-based versioning of shared library archives on AIX. While
16745    # this would work for both with and without runtime linking, it will
16746    # prevent static linking of such archives. So we do filename-based
16747    # shared library versioning with .so extension only, which is used
16748    # when both runtime linking and shared linking is enabled.
16749    # Unfortunately, runtime linking may impact performance, so we do
16750    # not want this to be the default eventually. Also, we use the
16751    # versioned .so libs for executables only if there is the -brtl
16752    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16753    # To allow for filename-based versioning support, we need to create
16754    # libNAME.so.V as an archive file, containing:
16755    # *) an Import File, referring to the versioned filename of the
16756    #    archive as well as the shared archive member, telling the
16757    #    bitwidth (32 or 64) of that shared object, and providing the
16758    #    list of exported symbols of that shared object, eventually
16759    #    decorated with the 'weak' keyword
16760    # *) the shared object with the F_LOADONLY flag set, to really avoid
16761    #    it being seen by the linker.
16762    # At run time we better use the real file rather than another symlink,
16763    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16764
16765    case $with_aix_soname,$aix_use_runtimelinking in
16766    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16767    # soname into executable. Probably we can add versioning support to
16768    # collect2, so additional links can be useful in future.
16769    aix,yes) # traditional libtool
16770      dynamic_linker='AIX unversionable lib.so'
16771      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16772      # instead of lib<name>.a to let people know that these are not
16773      # typical AIX shared libraries.
16774      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16775      ;;
16776    aix,no) # traditional AIX only
16777      dynamic_linker='AIX lib.a(lib.so.V)'
16778      # We preserve .a as extension for shared libraries through AIX4.2
16779      # and later when we are not doing run time linking.
16780      library_names_spec='$libname$release.a $libname.a'
16781      soname_spec='$libname$release$shared_ext$major'
16782      ;;
16783    svr4,*) # full svr4 only
16784      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16785      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16786      # We do not specify a path in Import Files, so LIBPATH fires.
16787      shlibpath_overrides_runpath=yes
16788      ;;
16789    *,yes) # both, prefer svr4
16790      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16791      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16792      # unpreferred sharedlib libNAME.a needs extra handling
16793      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16794      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16795      # We do not specify a path in Import Files, so LIBPATH fires.
16796      shlibpath_overrides_runpath=yes
16797      ;;
16798    *,no) # both, prefer aix
16799      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16800      library_names_spec='$libname$release.a $libname.a'
16801      soname_spec='$libname$release$shared_ext$major'
16802      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16803      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16804      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16805      ;;
16806    esac
16807    shlibpath_var=LIBPATH
16808  fi
16809  ;;
16810
16811amigaos*)
16812  case $host_cpu in
16813  powerpc)
16814    # Since July 2007 AmigaOS4 officially supports .so libraries.
16815    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16816    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16817    ;;
16818  m68k)
16819    library_names_spec='$libname.ixlibrary $libname.a'
16820    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16821    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16822    ;;
16823  esac
16824  ;;
16825
16826beos*)
16827  library_names_spec='$libname$shared_ext'
16828  dynamic_linker="$host_os ld.so"
16829  shlibpath_var=LIBRARY_PATH
16830  ;;
16831
16832bsdi[45]*)
16833  version_type=linux # correct to gnu/linux during the next big refactor
16834  need_version=no
16835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16836  soname_spec='$libname$release$shared_ext$major'
16837  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16838  shlibpath_var=LD_LIBRARY_PATH
16839  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16840  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16841  # the default ld.so.conf also contains /usr/contrib/lib and
16842  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16843  # libtool to hard-code these into programs
16844  ;;
16845
16846cygwin* | mingw* | pw32* | cegcc*)
16847  version_type=windows
16848  shrext_cmds=.dll
16849  need_version=no
16850  need_lib_prefix=no
16851
16852  case $GCC,$cc_basename in
16853  yes,*)
16854    # gcc
16855    library_names_spec='$libname.dll.a'
16856    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16857    postinstall_cmds='base_file=`basename \$file`~
16858      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16859      dldir=$destdir/`dirname \$dlpath`~
16860      test -d \$dldir || mkdir -p \$dldir~
16861      $install_prog $dir/$dlname \$dldir/$dlname~
16862      chmod a+x \$dldir/$dlname~
16863      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16864        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16865      fi'
16866    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16867      dlpath=$dir/\$dldll~
16868       $RM \$dlpath'
16869    shlibpath_overrides_runpath=yes
16870
16871    case $host_os in
16872    cygwin*)
16873      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16874      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16875
16876      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16877      ;;
16878    mingw* | cegcc*)
16879      # MinGW DLLs use traditional 'lib' prefix
16880      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16881      ;;
16882    pw32*)
16883      # pw32 DLLs use 'pw' prefix rather than 'lib'
16884      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16885      ;;
16886    esac
16887    dynamic_linker='Win32 ld.exe'
16888    ;;
16889
16890  *,cl*)
16891    # Native MSVC
16892    libname_spec='$name'
16893    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16894    library_names_spec='$libname.dll.lib'
16895
16896    case $build_os in
16897    mingw*)
16898      sys_lib_search_path_spec=
16899      lt_save_ifs=$IFS
16900      IFS=';'
16901      for lt_path in $LIB
16902      do
16903        IFS=$lt_save_ifs
16904        # Let DOS variable expansion print the short 8.3 style file name.
16905        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16906        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16907      done
16908      IFS=$lt_save_ifs
16909      # Convert to MSYS style.
16910      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16911      ;;
16912    cygwin*)
16913      # Convert to unix form, then to dos form, then back to unix form
16914      # but this time dos style (no spaces!) so that the unix form looks
16915      # like /cygdrive/c/PROGRA~1:/cygdr...
16916      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16917      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16918      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16919      ;;
16920    *)
16921      sys_lib_search_path_spec=$LIB
16922      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16923        # It is most probably a Windows format PATH.
16924        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16925      else
16926        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16927      fi
16928      # FIXME: find the short name or the path components, as spaces are
16929      # common. (e.g. "Program Files" -> "PROGRA~1")
16930      ;;
16931    esac
16932
16933    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16934    postinstall_cmds='base_file=`basename \$file`~
16935      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16936      dldir=$destdir/`dirname \$dlpath`~
16937      test -d \$dldir || mkdir -p \$dldir~
16938      $install_prog $dir/$dlname \$dldir/$dlname'
16939    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16940      dlpath=$dir/\$dldll~
16941       $RM \$dlpath'
16942    shlibpath_overrides_runpath=yes
16943    dynamic_linker='Win32 link.exe'
16944    ;;
16945
16946  *)
16947    # Assume MSVC wrapper
16948    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16949    dynamic_linker='Win32 ld.exe'
16950    ;;
16951  esac
16952  # FIXME: first we should search . and the directory the executable is in
16953  shlibpath_var=PATH
16954  ;;
16955
16956darwin* | rhapsody*)
16957  dynamic_linker="$host_os dyld"
16958  version_type=darwin
16959  need_lib_prefix=no
16960  need_version=no
16961  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16962  soname_spec='$libname$release$major$shared_ext'
16963  shlibpath_overrides_runpath=yes
16964  shlibpath_var=DYLD_LIBRARY_PATH
16965  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16966
16967  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16968  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16969  ;;
16970
16971dgux*)
16972  version_type=linux # correct to gnu/linux during the next big refactor
16973  need_lib_prefix=no
16974  need_version=no
16975  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16976  soname_spec='$libname$release$shared_ext$major'
16977  shlibpath_var=LD_LIBRARY_PATH
16978  ;;
16979
16980freebsd* | dragonfly*)
16981  # DragonFly does not have aout.  When/if they implement a new
16982  # versioning mechanism, adjust this.
16983  if test -x /usr/bin/objformat; then
16984    objformat=`/usr/bin/objformat`
16985  else
16986    case $host_os in
16987    freebsd[23].*) objformat=aout ;;
16988    *) objformat=elf ;;
16989    esac
16990  fi
16991  version_type=freebsd-$objformat
16992  case $version_type in
16993    freebsd-elf*)
16994      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16995      soname_spec='$libname$release$shared_ext$major'
16996      need_version=no
16997      need_lib_prefix=no
16998      ;;
16999    freebsd-*)
17000      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17001      need_version=yes
17002      ;;
17003  esac
17004  shlibpath_var=LD_LIBRARY_PATH
17005  case $host_os in
17006  freebsd2.*)
17007    shlibpath_overrides_runpath=yes
17008    ;;
17009  freebsd3.[01]* | freebsdelf3.[01]*)
17010    shlibpath_overrides_runpath=yes
17011    hardcode_into_libs=yes
17012    ;;
17013  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17014  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17015    shlibpath_overrides_runpath=no
17016    hardcode_into_libs=yes
17017    ;;
17018  *) # from 4.6 on, and DragonFly
17019    shlibpath_overrides_runpath=yes
17020    hardcode_into_libs=yes
17021    ;;
17022  esac
17023  ;;
17024
17025haiku*)
17026  version_type=linux # correct to gnu/linux during the next big refactor
17027  need_lib_prefix=no
17028  need_version=no
17029  dynamic_linker="$host_os runtime_loader"
17030  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17031  soname_spec='$libname$release$shared_ext$major'
17032  shlibpath_var=LIBRARY_PATH
17033  shlibpath_overrides_runpath=no
17034  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17035  hardcode_into_libs=yes
17036  ;;
17037
17038hpux9* | hpux10* | hpux11*)
17039  # Give a soname corresponding to the major version so that dld.sl refuses to
17040  # link against other versions.
17041  version_type=sunos
17042  need_lib_prefix=no
17043  need_version=no
17044  case $host_cpu in
17045  ia64*)
17046    shrext_cmds='.so'
17047    hardcode_into_libs=yes
17048    dynamic_linker="$host_os dld.so"
17049    shlibpath_var=LD_LIBRARY_PATH
17050    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17051    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17052    soname_spec='$libname$release$shared_ext$major'
17053    if test 32 = "$HPUX_IA64_MODE"; then
17054      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17055      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17056    else
17057      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17058      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17059    fi
17060    ;;
17061  hppa*64*)
17062    shrext_cmds='.sl'
17063    hardcode_into_libs=yes
17064    dynamic_linker="$host_os dld.sl"
17065    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17066    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17067    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17068    soname_spec='$libname$release$shared_ext$major'
17069    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17070    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17071    ;;
17072  *)
17073    shrext_cmds='.sl'
17074    dynamic_linker="$host_os dld.sl"
17075    shlibpath_var=SHLIB_PATH
17076    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17077    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17078    soname_spec='$libname$release$shared_ext$major'
17079    ;;
17080  esac
17081  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17082  postinstall_cmds='chmod 555 $lib'
17083  # or fails outright, so override atomically:
17084  install_override_mode=555
17085  ;;
17086
17087interix[3-9]*)
17088  version_type=linux # correct to gnu/linux during the next big refactor
17089  need_lib_prefix=no
17090  need_version=no
17091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17092  soname_spec='$libname$release$shared_ext$major'
17093  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17094  shlibpath_var=LD_LIBRARY_PATH
17095  shlibpath_overrides_runpath=no
17096  hardcode_into_libs=yes
17097  ;;
17098
17099irix5* | irix6* | nonstopux*)
17100  case $host_os in
17101    nonstopux*) version_type=nonstopux ;;
17102    *)
17103	if test yes = "$lt_cv_prog_gnu_ld"; then
17104		version_type=linux # correct to gnu/linux during the next big refactor
17105	else
17106		version_type=irix
17107	fi ;;
17108  esac
17109  need_lib_prefix=no
17110  need_version=no
17111  soname_spec='$libname$release$shared_ext$major'
17112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17113  case $host_os in
17114  irix5* | nonstopux*)
17115    libsuff= shlibsuff=
17116    ;;
17117  *)
17118    case $LD in # libtool.m4 will add one of these switches to LD
17119    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17120      libsuff= shlibsuff= libmagic=32-bit;;
17121    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17122      libsuff=32 shlibsuff=N32 libmagic=N32;;
17123    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17124      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17125    *) libsuff= shlibsuff= libmagic=never-match;;
17126    esac
17127    ;;
17128  esac
17129  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17130  shlibpath_overrides_runpath=no
17131  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17132  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17133  hardcode_into_libs=yes
17134  ;;
17135
17136# No shared lib support for Linux oldld, aout, or coff.
17137linux*oldld* | linux*aout* | linux*coff*)
17138  dynamic_linker=no
17139  ;;
17140
17141linux*android*)
17142  version_type=none # Android doesn't support versioned libraries.
17143  need_lib_prefix=no
17144  need_version=no
17145  library_names_spec='$libname$release$shared_ext'
17146  soname_spec='$libname$release$shared_ext'
17147  finish_cmds=
17148  shlibpath_var=LD_LIBRARY_PATH
17149  shlibpath_overrides_runpath=yes
17150
17151  # This implies no fast_install, which is unacceptable.
17152  # Some rework will be needed to allow for fast_install
17153  # before this can be enabled.
17154  hardcode_into_libs=yes
17155
17156  dynamic_linker='Android linker'
17157  # Don't embed -rpath directories since the linker doesn't support them.
17158  hardcode_libdir_flag_spec='-L$libdir'
17159  ;;
17160
17161# This must be glibc/ELF.
17162linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17163  version_type=linux # correct to gnu/linux during the next big refactor
17164  need_lib_prefix=no
17165  need_version=no
17166  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17167  soname_spec='$libname$release$shared_ext$major'
17168  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17169  shlibpath_var=LD_LIBRARY_PATH
17170  shlibpath_overrides_runpath=no
17171
17172  # Some binutils ld are patched to set DT_RUNPATH
17173  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17174  $as_echo_n "(cached) " >&6
17175else
17176  lt_cv_shlibpath_overrides_runpath=no
17177    save_LDFLAGS=$LDFLAGS
17178    save_libdir=$libdir
17179    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17180	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17181    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182/* end confdefs.h.  */
17183
17184int
17185main ()
17186{
17187
17188  ;
17189  return 0;
17190}
17191_ACEOF
17192if ac_fn_c_try_link "$LINENO"; then :
17193  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17194  lt_cv_shlibpath_overrides_runpath=yes
17195fi
17196fi
17197rm -f core conftest.err conftest.$ac_objext \
17198    conftest$ac_exeext conftest.$ac_ext
17199    LDFLAGS=$save_LDFLAGS
17200    libdir=$save_libdir
17201
17202fi
17203
17204  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17205
17206  # This implies no fast_install, which is unacceptable.
17207  # Some rework will be needed to allow for fast_install
17208  # before this can be enabled.
17209  hardcode_into_libs=yes
17210
17211  # Add ABI-specific directories to the system library path.
17212  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17213
17214  # Ideally, we could use ldconfig to report *all* directores which are
17215  # searched for libraries, however this is still not possible.  Aside from not
17216  # being certain /sbin/ldconfig is available, command
17217  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17218  # even though it is searched at run-time.  Try to do the best guess by
17219  # appending ld.so.conf contents (and includes) to the search path.
17220  if test -f /etc/ld.so.conf; then
17221    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17222    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17223  fi
17224
17225  # We used to test for /lib/ld.so.1 and disable shared libraries on
17226  # powerpc, because MkLinux only supported shared libraries with the
17227  # GNU dynamic linker.  Since this was broken with cross compilers,
17228  # most powerpc-linux boxes support dynamic linking these days and
17229  # people can always --disable-shared, the test was removed, and we
17230  # assume the GNU/Linux dynamic linker is in use.
17231  dynamic_linker='GNU/Linux ld.so'
17232  ;;
17233
17234netbsd*)
17235  version_type=sunos
17236  need_lib_prefix=no
17237  need_version=no
17238  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17239    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17240    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17241    dynamic_linker='NetBSD (a.out) ld.so'
17242  else
17243    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17244    soname_spec='$libname$release$shared_ext$major'
17245    dynamic_linker='NetBSD ld.elf_so'
17246  fi
17247  shlibpath_var=LD_LIBRARY_PATH
17248  shlibpath_overrides_runpath=yes
17249  hardcode_into_libs=yes
17250  ;;
17251
17252newsos6)
17253  version_type=linux # correct to gnu/linux during the next big refactor
17254  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17255  shlibpath_var=LD_LIBRARY_PATH
17256  shlibpath_overrides_runpath=yes
17257  ;;
17258
17259*nto* | *qnx*)
17260  version_type=qnx
17261  need_lib_prefix=no
17262  need_version=no
17263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17264  soname_spec='$libname$release$shared_ext$major'
17265  shlibpath_var=LD_LIBRARY_PATH
17266  shlibpath_overrides_runpath=no
17267  hardcode_into_libs=yes
17268  dynamic_linker='ldqnx.so'
17269  ;;
17270
17271openbsd* | bitrig*)
17272  version_type=sunos
17273  sys_lib_dlsearch_path_spec=/usr/lib
17274  need_lib_prefix=no
17275  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17276    need_version=no
17277  else
17278    need_version=yes
17279  fi
17280  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17281  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282  shlibpath_var=LD_LIBRARY_PATH
17283  shlibpath_overrides_runpath=yes
17284  ;;
17285
17286os2*)
17287  libname_spec='$name'
17288  version_type=windows
17289  shrext_cmds=.dll
17290  need_version=no
17291  need_lib_prefix=no
17292  # OS/2 can only load a DLL with a base name of 8 characters or less.
17293  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17294    v=$($ECHO $release$versuffix | tr -d .-);
17295    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17296    $ECHO $n$v`$shared_ext'
17297  library_names_spec='${libname}_dll.$libext'
17298  dynamic_linker='OS/2 ld.exe'
17299  shlibpath_var=BEGINLIBPATH
17300  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17301  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17302  postinstall_cmds='base_file=`basename \$file`~
17303    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17304    dldir=$destdir/`dirname \$dlpath`~
17305    test -d \$dldir || mkdir -p \$dldir~
17306    $install_prog $dir/$dlname \$dldir/$dlname~
17307    chmod a+x \$dldir/$dlname~
17308    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17309      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17310    fi'
17311  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17312    dlpath=$dir/\$dldll~
17313    $RM \$dlpath'
17314  ;;
17315
17316osf3* | osf4* | osf5*)
17317  version_type=osf
17318  need_lib_prefix=no
17319  need_version=no
17320  soname_spec='$libname$release$shared_ext$major'
17321  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17322  shlibpath_var=LD_LIBRARY_PATH
17323  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17324  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17325  ;;
17326
17327rdos*)
17328  dynamic_linker=no
17329  ;;
17330
17331solaris*)
17332  version_type=linux # correct to gnu/linux during the next big refactor
17333  need_lib_prefix=no
17334  need_version=no
17335  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17336  soname_spec='$libname$release$shared_ext$major'
17337  shlibpath_var=LD_LIBRARY_PATH
17338  shlibpath_overrides_runpath=yes
17339  hardcode_into_libs=yes
17340  # ldd complains unless libraries are executable
17341  postinstall_cmds='chmod +x $lib'
17342  ;;
17343
17344sunos4*)
17345  version_type=sunos
17346  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17347  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17348  shlibpath_var=LD_LIBRARY_PATH
17349  shlibpath_overrides_runpath=yes
17350  if test yes = "$with_gnu_ld"; then
17351    need_lib_prefix=no
17352  fi
17353  need_version=yes
17354  ;;
17355
17356sysv4 | sysv4.3*)
17357  version_type=linux # correct to gnu/linux during the next big refactor
17358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17359  soname_spec='$libname$release$shared_ext$major'
17360  shlibpath_var=LD_LIBRARY_PATH
17361  case $host_vendor in
17362    sni)
17363      shlibpath_overrides_runpath=no
17364      need_lib_prefix=no
17365      runpath_var=LD_RUN_PATH
17366      ;;
17367    siemens)
17368      need_lib_prefix=no
17369      ;;
17370    motorola)
17371      need_lib_prefix=no
17372      need_version=no
17373      shlibpath_overrides_runpath=no
17374      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17375      ;;
17376  esac
17377  ;;
17378
17379sysv4*MP*)
17380  if test -d /usr/nec; then
17381    version_type=linux # correct to gnu/linux during the next big refactor
17382    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17383    soname_spec='$libname$shared_ext.$major'
17384    shlibpath_var=LD_LIBRARY_PATH
17385  fi
17386  ;;
17387
17388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17389  version_type=sco
17390  need_lib_prefix=no
17391  need_version=no
17392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17393  soname_spec='$libname$release$shared_ext$major'
17394  shlibpath_var=LD_LIBRARY_PATH
17395  shlibpath_overrides_runpath=yes
17396  hardcode_into_libs=yes
17397  if test yes = "$with_gnu_ld"; then
17398    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17399  else
17400    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17401    case $host_os in
17402      sco3.2v5*)
17403        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17404	;;
17405    esac
17406  fi
17407  sys_lib_dlsearch_path_spec='/usr/lib'
17408  ;;
17409
17410tpf*)
17411  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17412  version_type=linux # correct to gnu/linux during the next big refactor
17413  need_lib_prefix=no
17414  need_version=no
17415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17416  shlibpath_var=LD_LIBRARY_PATH
17417  shlibpath_overrides_runpath=no
17418  hardcode_into_libs=yes
17419  ;;
17420
17421uts4*)
17422  version_type=linux # correct to gnu/linux during the next big refactor
17423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424  soname_spec='$libname$release$shared_ext$major'
17425  shlibpath_var=LD_LIBRARY_PATH
17426  ;;
17427
17428*)
17429  dynamic_linker=no
17430  ;;
17431esac
17432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17433$as_echo "$dynamic_linker" >&6; }
17434test no = "$dynamic_linker" && can_build_shared=no
17435
17436variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17437if test yes = "$GCC"; then
17438  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17439fi
17440
17441if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17442  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17443fi
17444
17445if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17446  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17447fi
17448
17449# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17450configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17451
17452# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17453func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17454
17455# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17456configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17555$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17556hardcode_action=
17557if test -n "$hardcode_libdir_flag_spec" ||
17558   test -n "$runpath_var" ||
17559   test yes = "$hardcode_automatic"; then
17560
17561  # We can hardcode non-existent directories.
17562  if test no != "$hardcode_direct" &&
17563     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17564     # have to relink, otherwise we might link with an installed library
17565     # when we should be linking with a yet-to-be-installed one
17566     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17567     test no != "$hardcode_minus_L"; then
17568    # Linking always hardcodes the temporary library directory.
17569    hardcode_action=relink
17570  else
17571    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17572    hardcode_action=immediate
17573  fi
17574else
17575  # We cannot hardcode anything, or else we can only hardcode existing
17576  # directories.
17577  hardcode_action=unsupported
17578fi
17579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17580$as_echo "$hardcode_action" >&6; }
17581
17582if test relink = "$hardcode_action" ||
17583   test yes = "$inherit_rpath"; then
17584  # Fast installation is not supported
17585  enable_fast_install=no
17586elif test yes = "$shlibpath_overrides_runpath" ||
17587     test no = "$enable_shared"; then
17588  # Fast installation is not necessary
17589  enable_fast_install=needless
17590fi
17591
17592
17593
17594
17595
17596
17597  if test yes != "$enable_dlopen"; then
17598  enable_dlopen=unknown
17599  enable_dlopen_self=unknown
17600  enable_dlopen_self_static=unknown
17601else
17602  lt_cv_dlopen=no
17603  lt_cv_dlopen_libs=
17604
17605  case $host_os in
17606  beos*)
17607    lt_cv_dlopen=load_add_on
17608    lt_cv_dlopen_libs=
17609    lt_cv_dlopen_self=yes
17610    ;;
17611
17612  mingw* | pw32* | cegcc*)
17613    lt_cv_dlopen=LoadLibrary
17614    lt_cv_dlopen_libs=
17615    ;;
17616
17617  cygwin*)
17618    lt_cv_dlopen=dlopen
17619    lt_cv_dlopen_libs=
17620    ;;
17621
17622  darwin*)
17623    # if libdl is installed we need to link against it
17624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17625$as_echo_n "checking for dlopen in -ldl... " >&6; }
17626if ${ac_cv_lib_dl_dlopen+:} false; then :
17627  $as_echo_n "(cached) " >&6
17628else
17629  ac_check_lib_save_LIBS=$LIBS
17630LIBS="-ldl  $LIBS"
17631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632/* end confdefs.h.  */
17633
17634/* Override any GCC internal prototype to avoid an error.
17635   Use char because int might match the return type of a GCC
17636   builtin and then its argument prototype would still apply.  */
17637#ifdef __cplusplus
17638extern "C"
17639#endif
17640char dlopen ();
17641int
17642main ()
17643{
17644return dlopen ();
17645  ;
17646  return 0;
17647}
17648_ACEOF
17649if ac_fn_c_try_link "$LINENO"; then :
17650  ac_cv_lib_dl_dlopen=yes
17651else
17652  ac_cv_lib_dl_dlopen=no
17653fi
17654rm -f core conftest.err conftest.$ac_objext \
17655    conftest$ac_exeext conftest.$ac_ext
17656LIBS=$ac_check_lib_save_LIBS
17657fi
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17659$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17660if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17661  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17662else
17663
17664    lt_cv_dlopen=dyld
17665    lt_cv_dlopen_libs=
17666    lt_cv_dlopen_self=yes
17667
17668fi
17669
17670    ;;
17671
17672  tpf*)
17673    # Don't try to run any link tests for TPF.  We know it's impossible
17674    # because TPF is a cross-compiler, and we know how we open DSOs.
17675    lt_cv_dlopen=dlopen
17676    lt_cv_dlopen_libs=
17677    lt_cv_dlopen_self=no
17678    ;;
17679
17680  *)
17681    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17682if test "x$ac_cv_func_shl_load" = xyes; then :
17683  lt_cv_dlopen=shl_load
17684else
17685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17686$as_echo_n "checking for shl_load in -ldld... " >&6; }
17687if ${ac_cv_lib_dld_shl_load+:} false; then :
17688  $as_echo_n "(cached) " >&6
17689else
17690  ac_check_lib_save_LIBS=$LIBS
17691LIBS="-ldld  $LIBS"
17692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693/* end confdefs.h.  */
17694
17695/* Override any GCC internal prototype to avoid an error.
17696   Use char because int might match the return type of a GCC
17697   builtin and then its argument prototype would still apply.  */
17698#ifdef __cplusplus
17699extern "C"
17700#endif
17701char shl_load ();
17702int
17703main ()
17704{
17705return shl_load ();
17706  ;
17707  return 0;
17708}
17709_ACEOF
17710if ac_fn_c_try_link "$LINENO"; then :
17711  ac_cv_lib_dld_shl_load=yes
17712else
17713  ac_cv_lib_dld_shl_load=no
17714fi
17715rm -f core conftest.err conftest.$ac_objext \
17716    conftest$ac_exeext conftest.$ac_ext
17717LIBS=$ac_check_lib_save_LIBS
17718fi
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17720$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17721if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17722  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17723else
17724  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17725if test "x$ac_cv_func_dlopen" = xyes; then :
17726  lt_cv_dlopen=dlopen
17727else
17728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17729$as_echo_n "checking for dlopen in -ldl... " >&6; }
17730if ${ac_cv_lib_dl_dlopen+:} false; then :
17731  $as_echo_n "(cached) " >&6
17732else
17733  ac_check_lib_save_LIBS=$LIBS
17734LIBS="-ldl  $LIBS"
17735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737
17738/* Override any GCC internal prototype to avoid an error.
17739   Use char because int might match the return type of a GCC
17740   builtin and then its argument prototype would still apply.  */
17741#ifdef __cplusplus
17742extern "C"
17743#endif
17744char dlopen ();
17745int
17746main ()
17747{
17748return dlopen ();
17749  ;
17750  return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_link "$LINENO"; then :
17754  ac_cv_lib_dl_dlopen=yes
17755else
17756  ac_cv_lib_dl_dlopen=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext \
17759    conftest$ac_exeext conftest.$ac_ext
17760LIBS=$ac_check_lib_save_LIBS
17761fi
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17763$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17764if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17765  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17766else
17767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17768$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17769if ${ac_cv_lib_svld_dlopen+:} false; then :
17770  $as_echo_n "(cached) " >&6
17771else
17772  ac_check_lib_save_LIBS=$LIBS
17773LIBS="-lsvld  $LIBS"
17774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h.  */
17776
17777/* Override any GCC internal prototype to avoid an error.
17778   Use char because int might match the return type of a GCC
17779   builtin and then its argument prototype would still apply.  */
17780#ifdef __cplusplus
17781extern "C"
17782#endif
17783char dlopen ();
17784int
17785main ()
17786{
17787return dlopen ();
17788  ;
17789  return 0;
17790}
17791_ACEOF
17792if ac_fn_c_try_link "$LINENO"; then :
17793  ac_cv_lib_svld_dlopen=yes
17794else
17795  ac_cv_lib_svld_dlopen=no
17796fi
17797rm -f core conftest.err conftest.$ac_objext \
17798    conftest$ac_exeext conftest.$ac_ext
17799LIBS=$ac_check_lib_save_LIBS
17800fi
17801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17802$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17803if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17804  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17805else
17806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17807$as_echo_n "checking for dld_link in -ldld... " >&6; }
17808if ${ac_cv_lib_dld_dld_link+:} false; then :
17809  $as_echo_n "(cached) " >&6
17810else
17811  ac_check_lib_save_LIBS=$LIBS
17812LIBS="-ldld  $LIBS"
17813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814/* end confdefs.h.  */
17815
17816/* Override any GCC internal prototype to avoid an error.
17817   Use char because int might match the return type of a GCC
17818   builtin and then its argument prototype would still apply.  */
17819#ifdef __cplusplus
17820extern "C"
17821#endif
17822char dld_link ();
17823int
17824main ()
17825{
17826return dld_link ();
17827  ;
17828  return 0;
17829}
17830_ACEOF
17831if ac_fn_c_try_link "$LINENO"; then :
17832  ac_cv_lib_dld_dld_link=yes
17833else
17834  ac_cv_lib_dld_dld_link=no
17835fi
17836rm -f core conftest.err conftest.$ac_objext \
17837    conftest$ac_exeext conftest.$ac_ext
17838LIBS=$ac_check_lib_save_LIBS
17839fi
17840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17841$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17842if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17843  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17844fi
17845
17846
17847fi
17848
17849
17850fi
17851
17852
17853fi
17854
17855
17856fi
17857
17858
17859fi
17860
17861    ;;
17862  esac
17863
17864  if test no = "$lt_cv_dlopen"; then
17865    enable_dlopen=no
17866  else
17867    enable_dlopen=yes
17868  fi
17869
17870  case $lt_cv_dlopen in
17871  dlopen)
17872    save_CPPFLAGS=$CPPFLAGS
17873    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17874
17875    save_LDFLAGS=$LDFLAGS
17876    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17877
17878    save_LIBS=$LIBS
17879    LIBS="$lt_cv_dlopen_libs $LIBS"
17880
17881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17882$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17883if ${lt_cv_dlopen_self+:} false; then :
17884  $as_echo_n "(cached) " >&6
17885else
17886  	  if test yes = "$cross_compiling"; then :
17887  lt_cv_dlopen_self=cross
17888else
17889  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890  lt_status=$lt_dlunknown
17891  cat > conftest.$ac_ext <<_LT_EOF
17892#line $LINENO "configure"
17893#include "confdefs.h"
17894
17895#if HAVE_DLFCN_H
17896#include <dlfcn.h>
17897#endif
17898
17899#include <stdio.h>
17900
17901#ifdef RTLD_GLOBAL
17902#  define LT_DLGLOBAL		RTLD_GLOBAL
17903#else
17904#  ifdef DL_GLOBAL
17905#    define LT_DLGLOBAL		DL_GLOBAL
17906#  else
17907#    define LT_DLGLOBAL		0
17908#  endif
17909#endif
17910
17911/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912   find out it does not work in some platform. */
17913#ifndef LT_DLLAZY_OR_NOW
17914#  ifdef RTLD_LAZY
17915#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17916#  else
17917#    ifdef DL_LAZY
17918#      define LT_DLLAZY_OR_NOW		DL_LAZY
17919#    else
17920#      ifdef RTLD_NOW
17921#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17922#      else
17923#        ifdef DL_NOW
17924#          define LT_DLLAZY_OR_NOW	DL_NOW
17925#        else
17926#          define LT_DLLAZY_OR_NOW	0
17927#        endif
17928#      endif
17929#    endif
17930#  endif
17931#endif
17932
17933/* When -fvisibility=hidden is used, assume the code has been annotated
17934   correspondingly for the symbols needed.  */
17935#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17936int fnord () __attribute__((visibility("default")));
17937#endif
17938
17939int fnord () { return 42; }
17940int main ()
17941{
17942  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17943  int status = $lt_dlunknown;
17944
17945  if (self)
17946    {
17947      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17948      else
17949        {
17950	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17951          else puts (dlerror ());
17952	}
17953      /* dlclose (self); */
17954    }
17955  else
17956    puts (dlerror ());
17957
17958  return status;
17959}
17960_LT_EOF
17961  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17962  (eval $ac_link) 2>&5
17963  ac_status=$?
17964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17966    (./conftest; exit; ) >&5 2>/dev/null
17967    lt_status=$?
17968    case x$lt_status in
17969      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17970      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17971      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17972    esac
17973  else :
17974    # compilation failed
17975    lt_cv_dlopen_self=no
17976  fi
17977fi
17978rm -fr conftest*
17979
17980
17981fi
17982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17983$as_echo "$lt_cv_dlopen_self" >&6; }
17984
17985    if test yes = "$lt_cv_dlopen_self"; then
17986      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17988$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17989if ${lt_cv_dlopen_self_static+:} false; then :
17990  $as_echo_n "(cached) " >&6
17991else
17992  	  if test yes = "$cross_compiling"; then :
17993  lt_cv_dlopen_self_static=cross
17994else
17995  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17996  lt_status=$lt_dlunknown
17997  cat > conftest.$ac_ext <<_LT_EOF
17998#line $LINENO "configure"
17999#include "confdefs.h"
18000
18001#if HAVE_DLFCN_H
18002#include <dlfcn.h>
18003#endif
18004
18005#include <stdio.h>
18006
18007#ifdef RTLD_GLOBAL
18008#  define LT_DLGLOBAL		RTLD_GLOBAL
18009#else
18010#  ifdef DL_GLOBAL
18011#    define LT_DLGLOBAL		DL_GLOBAL
18012#  else
18013#    define LT_DLGLOBAL		0
18014#  endif
18015#endif
18016
18017/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18018   find out it does not work in some platform. */
18019#ifndef LT_DLLAZY_OR_NOW
18020#  ifdef RTLD_LAZY
18021#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18022#  else
18023#    ifdef DL_LAZY
18024#      define LT_DLLAZY_OR_NOW		DL_LAZY
18025#    else
18026#      ifdef RTLD_NOW
18027#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18028#      else
18029#        ifdef DL_NOW
18030#          define LT_DLLAZY_OR_NOW	DL_NOW
18031#        else
18032#          define LT_DLLAZY_OR_NOW	0
18033#        endif
18034#      endif
18035#    endif
18036#  endif
18037#endif
18038
18039/* When -fvisibility=hidden is used, assume the code has been annotated
18040   correspondingly for the symbols needed.  */
18041#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18042int fnord () __attribute__((visibility("default")));
18043#endif
18044
18045int fnord () { return 42; }
18046int main ()
18047{
18048  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18049  int status = $lt_dlunknown;
18050
18051  if (self)
18052    {
18053      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18054      else
18055        {
18056	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18057          else puts (dlerror ());
18058	}
18059      /* dlclose (self); */
18060    }
18061  else
18062    puts (dlerror ());
18063
18064  return status;
18065}
18066_LT_EOF
18067  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18068  (eval $ac_link) 2>&5
18069  ac_status=$?
18070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18072    (./conftest; exit; ) >&5 2>/dev/null
18073    lt_status=$?
18074    case x$lt_status in
18075      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18076      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18077      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18078    esac
18079  else :
18080    # compilation failed
18081    lt_cv_dlopen_self_static=no
18082  fi
18083fi
18084rm -fr conftest*
18085
18086
18087fi
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18089$as_echo "$lt_cv_dlopen_self_static" >&6; }
18090    fi
18091
18092    CPPFLAGS=$save_CPPFLAGS
18093    LDFLAGS=$save_LDFLAGS
18094    LIBS=$save_LIBS
18095    ;;
18096  esac
18097
18098  case $lt_cv_dlopen_self in
18099  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18100  *) enable_dlopen_self=unknown ;;
18101  esac
18102
18103  case $lt_cv_dlopen_self_static in
18104  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18105  *) enable_dlopen_self_static=unknown ;;
18106  esac
18107fi
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125striplib=
18126old_striplib=
18127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18128$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18129if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18130  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18131  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18133$as_echo "yes" >&6; }
18134else
18135# FIXME - insert some real tests, host_os isn't really good enough
18136  case $host_os in
18137  darwin*)
18138    if test -n "$STRIP"; then
18139      striplib="$STRIP -x"
18140      old_striplib="$STRIP -S"
18141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18142$as_echo "yes" >&6; }
18143    else
18144      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18145$as_echo "no" >&6; }
18146    fi
18147    ;;
18148  *)
18149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150$as_echo "no" >&6; }
18151    ;;
18152  esac
18153fi
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166  # Report what library types will actually be built
18167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18168$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18170$as_echo "$can_build_shared" >&6; }
18171
18172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18173$as_echo_n "checking whether to build shared libraries... " >&6; }
18174  test no = "$can_build_shared" && enable_shared=no
18175
18176  # On AIX, shared libraries and static libraries use the same namespace, and
18177  # are all built from PIC.
18178  case $host_os in
18179  aix3*)
18180    test yes = "$enable_shared" && enable_static=no
18181    if test -n "$RANLIB"; then
18182      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18183      postinstall_cmds='$RANLIB $lib'
18184    fi
18185    ;;
18186
18187  aix[4-9]*)
18188    if test ia64 != "$host_cpu"; then
18189      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18190      yes,aix,yes) ;;			# shared object as lib.so file only
18191      yes,svr4,*) ;;			# shared object as lib.so archive member only
18192      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18193      esac
18194    fi
18195    ;;
18196  esac
18197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18198$as_echo "$enable_shared" >&6; }
18199
18200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18201$as_echo_n "checking whether to build static libraries... " >&6; }
18202  # Make sure either enable_shared or enable_static is yes.
18203  test yes = "$enable_shared" || enable_static=yes
18204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18205$as_echo "$enable_static" >&6; }
18206
18207
18208
18209
18210fi
18211ac_ext=c
18212ac_cpp='$CPP $CPPFLAGS'
18213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215ac_compiler_gnu=$ac_cv_c_compiler_gnu
18216
18217CC=$lt_save_CC
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233        ac_config_commands="$ac_config_commands libtool"
18234
18235
18236
18237
18238# Only expand once:
18239
18240
18241ac_ext=cpp
18242ac_cpp='$CXXCPP $CPPFLAGS'
18243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18246if test -z "$CXX"; then
18247  if test -n "$CCC"; then
18248    CXX=$CCC
18249  else
18250    if test -n "$ac_tool_prefix"; then
18251  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18252  do
18253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18256$as_echo_n "checking for $ac_word... " >&6; }
18257if ${ac_cv_prog_CXX+:} false; then :
18258  $as_echo_n "(cached) " >&6
18259else
18260  if test -n "$CXX"; then
18261  ac_cv_prog_CXX="$CXX" # Let the user override the test.
18262else
18263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18264for as_dir in $PATH
18265do
18266  IFS=$as_save_IFS
18267  test -z "$as_dir" && as_dir=.
18268    for ac_exec_ext in '' $ac_executable_extensions; do
18269  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18270    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18272    break 2
18273  fi
18274done
18275  done
18276IFS=$as_save_IFS
18277
18278fi
18279fi
18280CXX=$ac_cv_prog_CXX
18281if test -n "$CXX"; then
18282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18283$as_echo "$CXX" >&6; }
18284else
18285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18286$as_echo "no" >&6; }
18287fi
18288
18289
18290    test -n "$CXX" && break
18291  done
18292fi
18293if test -z "$CXX"; then
18294  ac_ct_CXX=$CXX
18295  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18296do
18297  # Extract the first word of "$ac_prog", so it can be a program name with args.
18298set dummy $ac_prog; ac_word=$2
18299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18300$as_echo_n "checking for $ac_word... " >&6; }
18301if ${ac_cv_prog_ac_ct_CXX+:} false; then :
18302  $as_echo_n "(cached) " >&6
18303else
18304  if test -n "$ac_ct_CXX"; then
18305  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18306else
18307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18308for as_dir in $PATH
18309do
18310  IFS=$as_save_IFS
18311  test -z "$as_dir" && as_dir=.
18312    for ac_exec_ext in '' $ac_executable_extensions; do
18313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18314    ac_cv_prog_ac_ct_CXX="$ac_prog"
18315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18316    break 2
18317  fi
18318done
18319  done
18320IFS=$as_save_IFS
18321
18322fi
18323fi
18324ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18325if test -n "$ac_ct_CXX"; then
18326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18327$as_echo "$ac_ct_CXX" >&6; }
18328else
18329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18330$as_echo "no" >&6; }
18331fi
18332
18333
18334  test -n "$ac_ct_CXX" && break
18335done
18336
18337  if test "x$ac_ct_CXX" = x; then
18338    CXX="g++"
18339  else
18340    case $cross_compiling:$ac_tool_warned in
18341yes:)
18342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18344ac_tool_warned=yes ;;
18345esac
18346    CXX=$ac_ct_CXX
18347  fi
18348fi
18349
18350  fi
18351fi
18352# Provide some information about the compiler.
18353$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18354set X $ac_compile
18355ac_compiler=$2
18356for ac_option in --version -v -V -qversion; do
18357  { { ac_try="$ac_compiler $ac_option >&5"
18358case "(($ac_try" in
18359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360  *) ac_try_echo=$ac_try;;
18361esac
18362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18363$as_echo "$ac_try_echo"; } >&5
18364  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18365  ac_status=$?
18366  if test -s conftest.err; then
18367    sed '10a\
18368... rest of stderr output deleted ...
18369         10q' conftest.err >conftest.er1
18370    cat conftest.er1 >&5
18371  fi
18372  rm -f conftest.er1 conftest.err
18373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18374  test $ac_status = 0; }
18375done
18376
18377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
18378$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
18379if ${ac_cv_cxx_compiler_gnu+:} false; then :
18380  $as_echo_n "(cached) " >&6
18381else
18382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383/* end confdefs.h.  */
18384
18385int
18386main ()
18387{
18388#ifndef __GNUC__
18389       choke me
18390#endif
18391
18392  ;
18393  return 0;
18394}
18395_ACEOF
18396if ac_fn_cxx_try_compile "$LINENO"; then :
18397  ac_compiler_gnu=yes
18398else
18399  ac_compiler_gnu=no
18400fi
18401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18403
18404fi
18405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
18406$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
18407if test $ac_compiler_gnu = yes; then
18408  GXX=yes
18409else
18410  GXX=
18411fi
18412ac_test_CXXFLAGS=${CXXFLAGS+set}
18413ac_save_CXXFLAGS=$CXXFLAGS
18414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
18415$as_echo_n "checking whether $CXX accepts -g... " >&6; }
18416if ${ac_cv_prog_cxx_g+:} false; then :
18417  $as_echo_n "(cached) " >&6
18418else
18419  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18420   ac_cxx_werror_flag=yes
18421   ac_cv_prog_cxx_g=no
18422   CXXFLAGS="-g"
18423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424/* end confdefs.h.  */
18425
18426int
18427main ()
18428{
18429
18430  ;
18431  return 0;
18432}
18433_ACEOF
18434if ac_fn_cxx_try_compile "$LINENO"; then :
18435  ac_cv_prog_cxx_g=yes
18436else
18437  CXXFLAGS=""
18438      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439/* end confdefs.h.  */
18440
18441int
18442main ()
18443{
18444
18445  ;
18446  return 0;
18447}
18448_ACEOF
18449if ac_fn_cxx_try_compile "$LINENO"; then :
18450
18451else
18452  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18453	 CXXFLAGS="-g"
18454	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455/* end confdefs.h.  */
18456
18457int
18458main ()
18459{
18460
18461  ;
18462  return 0;
18463}
18464_ACEOF
18465if ac_fn_cxx_try_compile "$LINENO"; then :
18466  ac_cv_prog_cxx_g=yes
18467fi
18468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469fi
18470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471fi
18472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
18476$as_echo "$ac_cv_prog_cxx_g" >&6; }
18477if test "$ac_test_CXXFLAGS" = set; then
18478  CXXFLAGS=$ac_save_CXXFLAGS
18479elif test $ac_cv_prog_cxx_g = yes; then
18480  if test "$GXX" = yes; then
18481    CXXFLAGS="-g -O2"
18482  else
18483    CXXFLAGS="-g"
18484  fi
18485else
18486  if test "$GXX" = yes; then
18487    CXXFLAGS="-O2"
18488  else
18489    CXXFLAGS=
18490  fi
18491fi
18492ac_ext=c
18493ac_cpp='$CPP $CPPFLAGS'
18494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496ac_compiler_gnu=$ac_cv_c_compiler_gnu
18497
18498depcc="$CXX"  am_compiler_list=
18499
18500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18501$as_echo_n "checking dependency style of $depcc... " >&6; }
18502if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
18503  $as_echo_n "(cached) " >&6
18504else
18505  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18506  # We make a subdir and do the tests there.  Otherwise we can end up
18507  # making bogus files that we don't know about and never remove.  For
18508  # instance it was reported that on HP-UX the gcc test will end up
18509  # making a dummy file named 'D' -- because '-MD' means "put the output
18510  # in D".
18511  rm -rf conftest.dir
18512  mkdir conftest.dir
18513  # Copy depcomp to subdir because otherwise we won't find it if we're
18514  # using a relative directory.
18515  cp "$am_depcomp" conftest.dir
18516  cd conftest.dir
18517  # We will build objects and dependencies in a subdirectory because
18518  # it helps to detect inapplicable dependency modes.  For instance
18519  # both Tru64's cc and ICC support -MD to output dependencies as a
18520  # side effect of compilation, but ICC will put the dependencies in
18521  # the current directory while Tru64 will put them in the object
18522  # directory.
18523  mkdir sub
18524
18525  am_cv_CXX_dependencies_compiler_type=none
18526  if test "$am_compiler_list" = ""; then
18527     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18528  fi
18529  am__universal=false
18530  case " $depcc " in #(
18531     *\ -arch\ *\ -arch\ *) am__universal=true ;;
18532     esac
18533
18534  for depmode in $am_compiler_list; do
18535    # Setup a source with many dependencies, because some compilers
18536    # like to wrap large dependency lists on column 80 (with \), and
18537    # we should not choose a depcomp mode which is confused by this.
18538    #
18539    # We need to recreate these files for each test, as the compiler may
18540    # overwrite some of them when testing with obscure command lines.
18541    # This happens at least with the AIX C compiler.
18542    : > sub/conftest.c
18543    for i in 1 2 3 4 5 6; do
18544      echo '#include "conftst'$i'.h"' >> sub/conftest.c
18545      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18546      # Solaris 10 /bin/sh.
18547      echo '/* dummy */' > sub/conftst$i.h
18548    done
18549    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18550
18551    # We check with '-c' and '-o' for the sake of the "dashmstdout"
18552    # mode.  It turns out that the SunPro C++ compiler does not properly
18553    # handle '-M -o', and we need to detect this.  Also, some Intel
18554    # versions had trouble with output in subdirs.
18555    am__obj=sub/conftest.${OBJEXT-o}
18556    am__minus_obj="-o $am__obj"
18557    case $depmode in
18558    gcc)
18559      # This depmode causes a compiler race in universal mode.
18560      test "$am__universal" = false || continue
18561      ;;
18562    nosideeffect)
18563      # After this tag, mechanisms are not by side-effect, so they'll
18564      # only be used when explicitly requested.
18565      if test "x$enable_dependency_tracking" = xyes; then
18566	continue
18567      else
18568	break
18569      fi
18570      ;;
18571    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18572      # This compiler won't grok '-c -o', but also, the minuso test has
18573      # not run yet.  These depmodes are late enough in the game, and
18574      # so weak that their functioning should not be impacted.
18575      am__obj=conftest.${OBJEXT-o}
18576      am__minus_obj=
18577      ;;
18578    none) break ;;
18579    esac
18580    if depmode=$depmode \
18581       source=sub/conftest.c object=$am__obj \
18582       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18583       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18584         >/dev/null 2>conftest.err &&
18585       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18586       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18587       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18588       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18589      # icc doesn't choke on unknown options, it will just issue warnings
18590      # or remarks (even with -Werror).  So we grep stderr for any message
18591      # that says an option was ignored or not supported.
18592      # When given -MP, icc 7.0 and 7.1 complain thusly:
18593      #   icc: Command line warning: ignoring option '-M'; no argument required
18594      # The diagnosis changed in icc 8.0:
18595      #   icc: Command line remark: option '-MP' not supported
18596      if (grep 'ignoring option' conftest.err ||
18597          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18598        am_cv_CXX_dependencies_compiler_type=$depmode
18599        break
18600      fi
18601    fi
18602  done
18603
18604  cd ..
18605  rm -rf conftest.dir
18606else
18607  am_cv_CXX_dependencies_compiler_type=none
18608fi
18609
18610fi
18611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18612$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
18613CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18614
18615 if
18616  test "x$enable_dependency_tracking" != xno \
18617  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18618  am__fastdepCXX_TRUE=
18619  am__fastdepCXX_FALSE='#'
18620else
18621  am__fastdepCXX_TRUE='#'
18622  am__fastdepCXX_FALSE=
18623fi
18624
18625
18626
18627
18628
18629func_stripname_cnf ()
18630{
18631  case $2 in
18632  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
18633  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
18634  esac
18635} # func_stripname_cnf
18636
18637      if test -n "$CXX" && ( test no != "$CXX" &&
18638    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18639    (test g++ != "$CXX"))); then
18640  ac_ext=cpp
18641ac_cpp='$CXXCPP $CPPFLAGS'
18642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18646$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18647if test -z "$CXXCPP"; then
18648  if ${ac_cv_prog_CXXCPP+:} false; then :
18649  $as_echo_n "(cached) " >&6
18650else
18651      # Double quotes because CXXCPP needs to be expanded
18652    for CXXCPP in "$CXX -E" "/lib/cpp"
18653    do
18654      ac_preproc_ok=false
18655for ac_cxx_preproc_warn_flag in '' yes
18656do
18657  # Use a header file that comes with gcc, so configuring glibc
18658  # with a fresh cross-compiler works.
18659  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18660  # <limits.h> exists even on freestanding compilers.
18661  # On the NeXT, cc -E runs the code through the compiler's parser,
18662  # not just through cpp. "Syntax error" is here to catch this case.
18663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664/* end confdefs.h.  */
18665#ifdef __STDC__
18666# include <limits.h>
18667#else
18668# include <assert.h>
18669#endif
18670		     Syntax error
18671_ACEOF
18672if ac_fn_cxx_try_cpp "$LINENO"; then :
18673
18674else
18675  # Broken: fails on valid input.
18676continue
18677fi
18678rm -f conftest.err conftest.i conftest.$ac_ext
18679
18680  # OK, works on sane cases.  Now check whether nonexistent headers
18681  # can be detected and how.
18682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683/* end confdefs.h.  */
18684#include <ac_nonexistent.h>
18685_ACEOF
18686if ac_fn_cxx_try_cpp "$LINENO"; then :
18687  # Broken: success on invalid input.
18688continue
18689else
18690  # Passes both tests.
18691ac_preproc_ok=:
18692break
18693fi
18694rm -f conftest.err conftest.i conftest.$ac_ext
18695
18696done
18697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18698rm -f conftest.i conftest.err conftest.$ac_ext
18699if $ac_preproc_ok; then :
18700  break
18701fi
18702
18703    done
18704    ac_cv_prog_CXXCPP=$CXXCPP
18705
18706fi
18707  CXXCPP=$ac_cv_prog_CXXCPP
18708else
18709  ac_cv_prog_CXXCPP=$CXXCPP
18710fi
18711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18712$as_echo "$CXXCPP" >&6; }
18713ac_preproc_ok=false
18714for ac_cxx_preproc_warn_flag in '' yes
18715do
18716  # Use a header file that comes with gcc, so configuring glibc
18717  # with a fresh cross-compiler works.
18718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18719  # <limits.h> exists even on freestanding compilers.
18720  # On the NeXT, cc -E runs the code through the compiler's parser,
18721  # not just through cpp. "Syntax error" is here to catch this case.
18722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723/* end confdefs.h.  */
18724#ifdef __STDC__
18725# include <limits.h>
18726#else
18727# include <assert.h>
18728#endif
18729		     Syntax error
18730_ACEOF
18731if ac_fn_cxx_try_cpp "$LINENO"; then :
18732
18733else
18734  # Broken: fails on valid input.
18735continue
18736fi
18737rm -f conftest.err conftest.i conftest.$ac_ext
18738
18739  # OK, works on sane cases.  Now check whether nonexistent headers
18740  # can be detected and how.
18741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742/* end confdefs.h.  */
18743#include <ac_nonexistent.h>
18744_ACEOF
18745if ac_fn_cxx_try_cpp "$LINENO"; then :
18746  # Broken: success on invalid input.
18747continue
18748else
18749  # Passes both tests.
18750ac_preproc_ok=:
18751break
18752fi
18753rm -f conftest.err conftest.i conftest.$ac_ext
18754
18755done
18756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18757rm -f conftest.i conftest.err conftest.$ac_ext
18758if $ac_preproc_ok; then :
18759
18760else
18761  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18763as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18764See \`config.log' for more details" "$LINENO" 5; }
18765fi
18766
18767ac_ext=c
18768ac_cpp='$CPP $CPPFLAGS'
18769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771ac_compiler_gnu=$ac_cv_c_compiler_gnu
18772
18773else
18774  _lt_caught_CXX_error=yes
18775fi
18776
18777ac_ext=cpp
18778ac_cpp='$CXXCPP $CPPFLAGS'
18779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18782
18783archive_cmds_need_lc_CXX=no
18784allow_undefined_flag_CXX=
18785always_export_symbols_CXX=no
18786archive_expsym_cmds_CXX=
18787compiler_needs_object_CXX=no
18788export_dynamic_flag_spec_CXX=
18789hardcode_direct_CXX=no
18790hardcode_direct_absolute_CXX=no
18791hardcode_libdir_flag_spec_CXX=
18792hardcode_libdir_separator_CXX=
18793hardcode_minus_L_CXX=no
18794hardcode_shlibpath_var_CXX=unsupported
18795hardcode_automatic_CXX=no
18796inherit_rpath_CXX=no
18797module_cmds_CXX=
18798module_expsym_cmds_CXX=
18799link_all_deplibs_CXX=unknown
18800old_archive_cmds_CXX=$old_archive_cmds
18801reload_flag_CXX=$reload_flag
18802reload_cmds_CXX=$reload_cmds
18803no_undefined_flag_CXX=
18804whole_archive_flag_spec_CXX=
18805enable_shared_with_static_runtimes_CXX=no
18806
18807# Source file extension for C++ test sources.
18808ac_ext=cpp
18809
18810# Object file extension for compiled C++ test sources.
18811objext=o
18812objext_CXX=$objext
18813
18814# No sense in running all these tests if we already determined that
18815# the CXX compiler isn't working.  Some variables (like enable_shared)
18816# are currently assumed to apply to all compilers on this platform,
18817# and will be corrupted by setting them based on a non-working compiler.
18818if test yes != "$_lt_caught_CXX_error"; then
18819  # Code to be used in simple compile tests
18820  lt_simple_compile_test_code="int some_variable = 0;"
18821
18822  # Code to be used in simple link tests
18823  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18824
18825  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18826
18827
18828
18829
18830
18831
18832# If no C compiler was specified, use CC.
18833LTCC=${LTCC-"$CC"}
18834
18835# If no C compiler flags were specified, use CFLAGS.
18836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18837
18838# Allow CC to be a program name with arguments.
18839compiler=$CC
18840
18841
18842  # save warnings/boilerplate of simple test code
18843  ac_outfile=conftest.$ac_objext
18844echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18845eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18846_lt_compiler_boilerplate=`cat conftest.err`
18847$RM conftest*
18848
18849  ac_outfile=conftest.$ac_objext
18850echo "$lt_simple_link_test_code" >conftest.$ac_ext
18851eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18852_lt_linker_boilerplate=`cat conftest.err`
18853$RM -r conftest*
18854
18855
18856  # Allow CC to be a program name with arguments.
18857  lt_save_CC=$CC
18858  lt_save_CFLAGS=$CFLAGS
18859  lt_save_LD=$LD
18860  lt_save_GCC=$GCC
18861  GCC=$GXX
18862  lt_save_with_gnu_ld=$with_gnu_ld
18863  lt_save_path_LD=$lt_cv_path_LD
18864  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18865    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18866  else
18867    $as_unset lt_cv_prog_gnu_ld
18868  fi
18869  if test -n "${lt_cv_path_LDCXX+set}"; then
18870    lt_cv_path_LD=$lt_cv_path_LDCXX
18871  else
18872    $as_unset lt_cv_path_LD
18873  fi
18874  test -z "${LDCXX+set}" || LD=$LDCXX
18875  CC=${CXX-"c++"}
18876  CFLAGS=$CXXFLAGS
18877  compiler=$CC
18878  compiler_CXX=$CC
18879  func_cc_basename $compiler
18880cc_basename=$func_cc_basename_result
18881
18882
18883  if test -n "$compiler"; then
18884    # We don't want -fno-exception when compiling C++ code, so set the
18885    # no_builtin_flag separately
18886    if test yes = "$GXX"; then
18887      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18888    else
18889      lt_prog_compiler_no_builtin_flag_CXX=
18890    fi
18891
18892    if test yes = "$GXX"; then
18893      # Set up default GNU C++ configuration
18894
18895
18896
18897# Check whether --with-gnu-ld was given.
18898if test "${with_gnu_ld+set}" = set; then :
18899  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
18900else
18901  with_gnu_ld=no
18902fi
18903
18904ac_prog=ld
18905if test yes = "$GCC"; then
18906  # Check if gcc -print-prog-name=ld gives a path.
18907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18908$as_echo_n "checking for ld used by $CC... " >&6; }
18909  case $host in
18910  *-*-mingw*)
18911    # gcc leaves a trailing carriage return, which upsets mingw
18912    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18913  *)
18914    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18915  esac
18916  case $ac_prog in
18917    # Accept absolute paths.
18918    [\\/]* | ?:[\\/]*)
18919      re_direlt='/[^/][^/]*/\.\./'
18920      # Canonicalize the pathname of ld
18921      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18922      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18923	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18924      done
18925      test -z "$LD" && LD=$ac_prog
18926      ;;
18927  "")
18928    # If it fails, then pretend we aren't using GCC.
18929    ac_prog=ld
18930    ;;
18931  *)
18932    # If it is relative, then search for the first ld in PATH.
18933    with_gnu_ld=unknown
18934    ;;
18935  esac
18936elif test yes = "$with_gnu_ld"; then
18937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18938$as_echo_n "checking for GNU ld... " >&6; }
18939else
18940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18941$as_echo_n "checking for non-GNU ld... " >&6; }
18942fi
18943if ${lt_cv_path_LD+:} false; then :
18944  $as_echo_n "(cached) " >&6
18945else
18946  if test -z "$LD"; then
18947  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18948  for ac_dir in $PATH; do
18949    IFS=$lt_save_ifs
18950    test -z "$ac_dir" && ac_dir=.
18951    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18952      lt_cv_path_LD=$ac_dir/$ac_prog
18953      # Check to see if the program is GNU ld.  I'd rather use --version,
18954      # but apparently some variants of GNU ld only accept -v.
18955      # Break only if it was the GNU/non-GNU ld that we prefer.
18956      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18957      *GNU* | *'with BFD'*)
18958	test no != "$with_gnu_ld" && break
18959	;;
18960      *)
18961	test yes != "$with_gnu_ld" && break
18962	;;
18963      esac
18964    fi
18965  done
18966  IFS=$lt_save_ifs
18967else
18968  lt_cv_path_LD=$LD # Let the user override the test with a path.
18969fi
18970fi
18971
18972LD=$lt_cv_path_LD
18973if test -n "$LD"; then
18974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18975$as_echo "$LD" >&6; }
18976else
18977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18978$as_echo "no" >&6; }
18979fi
18980test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18982$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18983if ${lt_cv_prog_gnu_ld+:} false; then :
18984  $as_echo_n "(cached) " >&6
18985else
18986  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18987case `$LD -v 2>&1 </dev/null` in
18988*GNU* | *'with BFD'*)
18989  lt_cv_prog_gnu_ld=yes
18990  ;;
18991*)
18992  lt_cv_prog_gnu_ld=no
18993  ;;
18994esac
18995fi
18996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18997$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18998with_gnu_ld=$lt_cv_prog_gnu_ld
18999
19000
19001
19002
19003
19004
19005
19006      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19007      # archiving commands below assume that GNU ld is being used.
19008      if test yes = "$with_gnu_ld"; then
19009        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19010        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19011
19012        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19013        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19014
19015        # If archive_cmds runs LD, not CC, wlarc should be empty
19016        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19017        #     investigate it a little bit more. (MM)
19018        wlarc='$wl'
19019
19020        # ancient GNU ld didn't support --whole-archive et. al.
19021        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19022	  $GREP 'no-whole-archive' > /dev/null; then
19023          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19024        else
19025          whole_archive_flag_spec_CXX=
19026        fi
19027      else
19028        with_gnu_ld=no
19029        wlarc=
19030
19031        # A generic and very simple default shared library creation
19032        # command for GNU C++ for the case where it uses the native
19033        # linker, instead of GNU ld.  If possible, this setting should
19034        # overridden to take advantage of the native linker features on
19035        # the platform it is being used on.
19036        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19037      fi
19038
19039      # Commands to make compiler produce verbose output that lists
19040      # what "hidden" libraries, object files and flags are used when
19041      # linking a shared library.
19042      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19043
19044    else
19045      GXX=no
19046      with_gnu_ld=no
19047      wlarc=
19048    fi
19049
19050    # PORTME: fill in a description of your system's C++ link characteristics
19051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19053    ld_shlibs_CXX=yes
19054    case $host_os in
19055      aix3*)
19056        # FIXME: insert proper C++ library support
19057        ld_shlibs_CXX=no
19058        ;;
19059      aix[4-9]*)
19060        if test ia64 = "$host_cpu"; then
19061          # On IA64, the linker does run time linking by default, so we don't
19062          # have to do anything special.
19063          aix_use_runtimelinking=no
19064          exp_sym_flag='-Bexport'
19065          no_entry_flag=
19066        else
19067          aix_use_runtimelinking=no
19068
19069          # Test if we are trying to use run time linking or normal
19070          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19071          # have runtime linking enabled, and use it for executables.
19072          # For shared libraries, we enable/disable runtime linking
19073          # depending on the kind of the shared library created -
19074          # when "with_aix_soname,aix_use_runtimelinking" is:
19075          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19076          # "aix,yes"  lib.so          shared, rtl:yes, for executables
19077          #            lib.a           static archive
19078          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
19079          #            lib.a(lib.so.V) shared, rtl:no,  for executables
19080          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19081          #            lib.a(lib.so.V) shared, rtl:no
19082          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19083          #            lib.a           static archive
19084          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19085	    for ld_flag in $LDFLAGS; do
19086	      case $ld_flag in
19087	      *-brtl*)
19088	        aix_use_runtimelinking=yes
19089	        break
19090	        ;;
19091	      esac
19092	    done
19093	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19094	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
19095	      # so we don't have lib.a shared libs to link our executables.
19096	      # We have to force runtime linking in this case.
19097	      aix_use_runtimelinking=yes
19098	      LDFLAGS="$LDFLAGS -Wl,-brtl"
19099	    fi
19100	    ;;
19101          esac
19102
19103          exp_sym_flag='-bexport'
19104          no_entry_flag='-bnoentry'
19105        fi
19106
19107        # When large executables or shared objects are built, AIX ld can
19108        # have problems creating the table of contents.  If linking a library
19109        # or program results in "error TOC overflow" add -mminimal-toc to
19110        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19111        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19112
19113        archive_cmds_CXX=''
19114        hardcode_direct_CXX=yes
19115        hardcode_direct_absolute_CXX=yes
19116        hardcode_libdir_separator_CXX=':'
19117        link_all_deplibs_CXX=yes
19118        file_list_spec_CXX='$wl-f,'
19119        case $with_aix_soname,$aix_use_runtimelinking in
19120        aix,*) ;;	# no import file
19121        svr4,* | *,yes) # use import file
19122          # The Import File defines what to hardcode.
19123          hardcode_direct_CXX=no
19124          hardcode_direct_absolute_CXX=no
19125          ;;
19126        esac
19127
19128        if test yes = "$GXX"; then
19129          case $host_os in aix4.[012]|aix4.[012].*)
19130          # We only want to do this on AIX 4.2 and lower, the check
19131          # below for broken collect2 doesn't work under 4.3+
19132	  collect2name=`$CC -print-prog-name=collect2`
19133	  if test -f "$collect2name" &&
19134	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19135	  then
19136	    # We have reworked collect2
19137	    :
19138	  else
19139	    # We have old collect2
19140	    hardcode_direct_CXX=unsupported
19141	    # It fails to find uninstalled libraries when the uninstalled
19142	    # path is not listed in the libpath.  Setting hardcode_minus_L
19143	    # to unsupported forces relinking
19144	    hardcode_minus_L_CXX=yes
19145	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19146	    hardcode_libdir_separator_CXX=
19147	  fi
19148          esac
19149          shared_flag='-shared'
19150	  if test yes = "$aix_use_runtimelinking"; then
19151	    shared_flag=$shared_flag' $wl-G'
19152	  fi
19153	  # Need to ensure runtime linking is disabled for the traditional
19154	  # shared library, or the linker may eventually find shared libraries
19155	  # /with/ Import File - we do not want to mix them.
19156	  shared_flag_aix='-shared'
19157	  shared_flag_svr4='-shared $wl-G'
19158        else
19159          # not using gcc
19160          if test ia64 = "$host_cpu"; then
19161	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19162	  # chokes on -Wl,-G. The following line is correct:
19163	  shared_flag='-G'
19164          else
19165	    if test yes = "$aix_use_runtimelinking"; then
19166	      shared_flag='$wl-G'
19167	    else
19168	      shared_flag='$wl-bM:SRE'
19169	    fi
19170	    shared_flag_aix='$wl-bM:SRE'
19171	    shared_flag_svr4='$wl-G'
19172          fi
19173        fi
19174
19175        export_dynamic_flag_spec_CXX='$wl-bexpall'
19176        # It seems that -bexpall does not export symbols beginning with
19177        # underscore (_), so it is better to generate a list of symbols to
19178	# export.
19179        always_export_symbols_CXX=yes
19180	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19181          # Warning - without using the other runtime loading flags (-brtl),
19182          # -berok will link without error, but may produce a broken library.
19183          # The "-G" linker flag allows undefined symbols.
19184          no_undefined_flag_CXX='-bernotok'
19185          # Determine the default libpath from the value encoded in an empty
19186          # executable.
19187          if test set = "${lt_cv_aix_libpath+set}"; then
19188  aix_libpath=$lt_cv_aix_libpath
19189else
19190  if ${lt_cv_aix_libpath__CXX+:} false; then :
19191  $as_echo_n "(cached) " >&6
19192else
19193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19194/* end confdefs.h.  */
19195
19196int
19197main ()
19198{
19199
19200  ;
19201  return 0;
19202}
19203_ACEOF
19204if ac_fn_cxx_try_link "$LINENO"; then :
19205
19206  lt_aix_libpath_sed='
19207      /Import File Strings/,/^$/ {
19208	  /^0/ {
19209	      s/^0  *\([^ ]*\) *$/\1/
19210	      p
19211	  }
19212      }'
19213  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19214  # Check for a 64-bit object if we didn't find anything.
19215  if test -z "$lt_cv_aix_libpath__CXX"; then
19216    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19217  fi
19218fi
19219rm -f core conftest.err conftest.$ac_objext \
19220    conftest$ac_exeext conftest.$ac_ext
19221  if test -z "$lt_cv_aix_libpath__CXX"; then
19222    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19223  fi
19224
19225fi
19226
19227  aix_libpath=$lt_cv_aix_libpath__CXX
19228fi
19229
19230          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19231
19232          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
19233        else
19234          if test ia64 = "$host_cpu"; then
19235	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19236	    allow_undefined_flag_CXX="-z nodefs"
19237	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
19238          else
19239	    # Determine the default libpath from the value encoded in an
19240	    # empty executable.
19241	    if test set = "${lt_cv_aix_libpath+set}"; then
19242  aix_libpath=$lt_cv_aix_libpath
19243else
19244  if ${lt_cv_aix_libpath__CXX+:} false; then :
19245  $as_echo_n "(cached) " >&6
19246else
19247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248/* end confdefs.h.  */
19249
19250int
19251main ()
19252{
19253
19254  ;
19255  return 0;
19256}
19257_ACEOF
19258if ac_fn_cxx_try_link "$LINENO"; then :
19259
19260  lt_aix_libpath_sed='
19261      /Import File Strings/,/^$/ {
19262	  /^0/ {
19263	      s/^0  *\([^ ]*\) *$/\1/
19264	      p
19265	  }
19266      }'
19267  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19268  # Check for a 64-bit object if we didn't find anything.
19269  if test -z "$lt_cv_aix_libpath__CXX"; then
19270    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19271  fi
19272fi
19273rm -f core conftest.err conftest.$ac_objext \
19274    conftest$ac_exeext conftest.$ac_ext
19275  if test -z "$lt_cv_aix_libpath__CXX"; then
19276    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19277  fi
19278
19279fi
19280
19281  aix_libpath=$lt_cv_aix_libpath__CXX
19282fi
19283
19284	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19285	    # Warning - without using the other run time loading flags,
19286	    # -berok will link without error, but may produce a broken library.
19287	    no_undefined_flag_CXX=' $wl-bernotok'
19288	    allow_undefined_flag_CXX=' $wl-berok'
19289	    if test yes = "$with_gnu_ld"; then
19290	      # We only use this code for GNU lds that support --whole-archive.
19291	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19292	    else
19293	      # Exported symbols can be pulled into shared objects from archives
19294	      whole_archive_flag_spec_CXX='$convenience'
19295	    fi
19296	    archive_cmds_need_lc_CXX=yes
19297	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19298	    # -brtl affects multiple linker settings, -berok does not and is overridden later
19299	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19300	    if test svr4 != "$with_aix_soname"; then
19301	      # This is similar to how AIX traditionally builds its shared
19302	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19303	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19304	    fi
19305	    if test aix != "$with_aix_soname"; then
19306	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19307	    else
19308	      # used by -dlpreopen to get the symbols
19309	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19310	    fi
19311	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19312          fi
19313        fi
19314        ;;
19315
19316      beos*)
19317	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19318	  allow_undefined_flag_CXX=unsupported
19319	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19320	  # support --undefined.  This deserves some investigation.  FIXME
19321	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19322	else
19323	  ld_shlibs_CXX=no
19324	fi
19325	;;
19326
19327      chorus*)
19328        case $cc_basename in
19329          *)
19330	  # FIXME: insert proper C++ library support
19331	  ld_shlibs_CXX=no
19332	  ;;
19333        esac
19334        ;;
19335
19336      cygwin* | mingw* | pw32* | cegcc*)
19337	case $GXX,$cc_basename in
19338	,cl* | no,cl*)
19339	  # Native MSVC
19340	  # hardcode_libdir_flag_spec is actually meaningless, as there is
19341	  # no search path for DLLs.
19342	  hardcode_libdir_flag_spec_CXX=' '
19343	  allow_undefined_flag_CXX=unsupported
19344	  always_export_symbols_CXX=yes
19345	  file_list_spec_CXX='@'
19346	  # Tell ltmain to make .lib files, not .a files.
19347	  libext=lib
19348	  # Tell ltmain to make .dll files, not .so files.
19349	  shrext_cmds=.dll
19350	  # FIXME: Setting linknames here is a bad hack.
19351	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19352	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19353              cp "$export_symbols" "$output_objdir/$soname.def";
19354              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19355            else
19356              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19357            fi~
19358            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19359            linknames='
19360	  # The linker will not automatically build a static lib if we build a DLL.
19361	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19362	  enable_shared_with_static_runtimes_CXX=yes
19363	  # Don't use ranlib
19364	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
19365	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19366            lt_tool_outputfile="@TOOL_OUTPUT@"~
19367            case $lt_outputfile in
19368              *.exe|*.EXE) ;;
19369              *)
19370                lt_outputfile=$lt_outputfile.exe
19371                lt_tool_outputfile=$lt_tool_outputfile.exe
19372                ;;
19373            esac~
19374            func_to_tool_file "$lt_outputfile"~
19375            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19376              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19377              $RM "$lt_outputfile.manifest";
19378            fi'
19379	  ;;
19380	*)
19381	  # g++
19382	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19383	  # as there is no search path for DLLs.
19384	  hardcode_libdir_flag_spec_CXX='-L$libdir'
19385	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19386	  allow_undefined_flag_CXX=unsupported
19387	  always_export_symbols_CXX=no
19388	  enable_shared_with_static_runtimes_CXX=yes
19389
19390	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19391	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19392	    # If the export-symbols file already is a .def file, use it as
19393	    # is; otherwise, prepend EXPORTS...
19394	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19395              cp $export_symbols $output_objdir/$soname.def;
19396            else
19397              echo EXPORTS > $output_objdir/$soname.def;
19398              cat $export_symbols >> $output_objdir/$soname.def;
19399            fi~
19400            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19401	  else
19402	    ld_shlibs_CXX=no
19403	  fi
19404	  ;;
19405	esac
19406	;;
19407      darwin* | rhapsody*)
19408
19409
19410  archive_cmds_need_lc_CXX=no
19411  hardcode_direct_CXX=no
19412  hardcode_automatic_CXX=yes
19413  hardcode_shlibpath_var_CXX=unsupported
19414  if test yes = "$lt_cv_ld_force_load"; then
19415    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19416
19417  else
19418    whole_archive_flag_spec_CXX=''
19419  fi
19420  link_all_deplibs_CXX=yes
19421  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19422  case $cc_basename in
19423     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19424     *) _lt_dar_can_shared=$GCC ;;
19425  esac
19426  if test yes = "$_lt_dar_can_shared"; then
19427    output_verbose_link_cmd=func_echo_all
19428    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19429    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19430    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
19431    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
19432       if test yes != "$lt_cv_apple_cc_single_mod"; then
19433      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
19434      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
19435    fi
19436
19437  else
19438  ld_shlibs_CXX=no
19439  fi
19440
19441	;;
19442
19443      os2*)
19444	hardcode_libdir_flag_spec_CXX='-L$libdir'
19445	hardcode_minus_L_CXX=yes
19446	allow_undefined_flag_CXX=unsupported
19447	shrext_cmds=.dll
19448	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19449	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19450	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19451	  $ECHO EXPORTS >> $output_objdir/$libname.def~
19452	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19453	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19454	  emximp -o $lib $output_objdir/$libname.def'
19455	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19456	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19457	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19458	  $ECHO EXPORTS >> $output_objdir/$libname.def~
19459	  prefix_cmds="$SED"~
19460	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
19461	    prefix_cmds="$prefix_cmds -e 1d";
19462	  fi~
19463	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19464	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19465	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19466	  emximp -o $lib $output_objdir/$libname.def'
19467	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19468	enable_shared_with_static_runtimes_CXX=yes
19469	;;
19470
19471      dgux*)
19472        case $cc_basename in
19473          ec++*)
19474	    # FIXME: insert proper C++ library support
19475	    ld_shlibs_CXX=no
19476	    ;;
19477          ghcx*)
19478	    # Green Hills C++ Compiler
19479	    # FIXME: insert proper C++ library support
19480	    ld_shlibs_CXX=no
19481	    ;;
19482          *)
19483	    # FIXME: insert proper C++ library support
19484	    ld_shlibs_CXX=no
19485	    ;;
19486        esac
19487        ;;
19488
19489      freebsd2.*)
19490        # C++ shared libraries reported to be fairly broken before
19491	# switch to ELF
19492        ld_shlibs_CXX=no
19493        ;;
19494
19495      freebsd-elf*)
19496        archive_cmds_need_lc_CXX=no
19497        ;;
19498
19499      freebsd* | dragonfly*)
19500        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19501        # conventions
19502        ld_shlibs_CXX=yes
19503        ;;
19504
19505      haiku*)
19506        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19507        link_all_deplibs_CXX=yes
19508        ;;
19509
19510      hpux9*)
19511        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19512        hardcode_libdir_separator_CXX=:
19513        export_dynamic_flag_spec_CXX='$wl-E'
19514        hardcode_direct_CXX=yes
19515        hardcode_minus_L_CXX=yes # Not in the search PATH,
19516				             # but as the default
19517				             # location of the library.
19518
19519        case $cc_basename in
19520          CC*)
19521            # FIXME: insert proper C++ library support
19522            ld_shlibs_CXX=no
19523            ;;
19524          aCC*)
19525            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19526            # Commands to make compiler produce verbose output that lists
19527            # what "hidden" libraries, object files and flags are used when
19528            # linking a shared library.
19529            #
19530            # There doesn't appear to be a way to prevent this compiler from
19531            # explicitly linking system object files so we need to strip them
19532            # from the output so that they don't get included in the library
19533            # dependencies.
19534            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19535            ;;
19536          *)
19537            if test yes = "$GXX"; then
19538              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19539            else
19540              # FIXME: insert proper C++ library support
19541              ld_shlibs_CXX=no
19542            fi
19543            ;;
19544        esac
19545        ;;
19546
19547      hpux10*|hpux11*)
19548        if test no = "$with_gnu_ld"; then
19549	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19550	  hardcode_libdir_separator_CXX=:
19551
19552          case $host_cpu in
19553            hppa*64*|ia64*)
19554              ;;
19555            *)
19556	      export_dynamic_flag_spec_CXX='$wl-E'
19557              ;;
19558          esac
19559        fi
19560        case $host_cpu in
19561          hppa*64*|ia64*)
19562            hardcode_direct_CXX=no
19563            hardcode_shlibpath_var_CXX=no
19564            ;;
19565          *)
19566            hardcode_direct_CXX=yes
19567            hardcode_direct_absolute_CXX=yes
19568            hardcode_minus_L_CXX=yes # Not in the search PATH,
19569					         # but as the default
19570					         # location of the library.
19571            ;;
19572        esac
19573
19574        case $cc_basename in
19575          CC*)
19576	    # FIXME: insert proper C++ library support
19577	    ld_shlibs_CXX=no
19578	    ;;
19579          aCC*)
19580	    case $host_cpu in
19581	      hppa*64*)
19582	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19583	        ;;
19584	      ia64*)
19585	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19586	        ;;
19587	      *)
19588	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19589	        ;;
19590	    esac
19591	    # Commands to make compiler produce verbose output that lists
19592	    # what "hidden" libraries, object files and flags are used when
19593	    # linking a shared library.
19594	    #
19595	    # There doesn't appear to be a way to prevent this compiler from
19596	    # explicitly linking system object files so we need to strip them
19597	    # from the output so that they don't get included in the library
19598	    # dependencies.
19599	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19600	    ;;
19601          *)
19602	    if test yes = "$GXX"; then
19603	      if test no = "$with_gnu_ld"; then
19604	        case $host_cpu in
19605	          hppa*64*)
19606	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19607	            ;;
19608	          ia64*)
19609	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610	            ;;
19611	          *)
19612	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19613	            ;;
19614	        esac
19615	      fi
19616	    else
19617	      # FIXME: insert proper C++ library support
19618	      ld_shlibs_CXX=no
19619	    fi
19620	    ;;
19621        esac
19622        ;;
19623
19624      interix[3-9]*)
19625	hardcode_direct_CXX=no
19626	hardcode_shlibpath_var_CXX=no
19627	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19628	export_dynamic_flag_spec_CXX='$wl-E'
19629	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19630	# Instead, shared libraries are loaded at an image base (0x10000000 by
19631	# default) and relocated if they conflict, which is a slow very memory
19632	# consuming and fragmenting process.  To avoid this, we pick a random,
19633	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19634	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19635	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19636	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19637	;;
19638      irix5* | irix6*)
19639        case $cc_basename in
19640          CC*)
19641	    # SGI C++
19642	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19643
19644	    # Archives containing C++ object files must be created using
19645	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19646	    # necessary to make sure instantiated templates are included
19647	    # in the archive.
19648	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19649	    ;;
19650          *)
19651	    if test yes = "$GXX"; then
19652	      if test no = "$with_gnu_ld"; then
19653	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19654	      else
19655	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
19656	      fi
19657	    fi
19658	    link_all_deplibs_CXX=yes
19659	    ;;
19660        esac
19661        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19662        hardcode_libdir_separator_CXX=:
19663        inherit_rpath_CXX=yes
19664        ;;
19665
19666      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19667        case $cc_basename in
19668          KCC*)
19669	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19670
19671	    # KCC will only create a shared library if the output file
19672	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19673	    # to its proper name (with version) after linking.
19674	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19675	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
19676	    # Commands to make compiler produce verbose output that lists
19677	    # what "hidden" libraries, object files and flags are used when
19678	    # linking a shared library.
19679	    #
19680	    # There doesn't appear to be a way to prevent this compiler from
19681	    # explicitly linking system object files so we need to strip them
19682	    # from the output so that they don't get included in the library
19683	    # dependencies.
19684	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19685
19686	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19687	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19688
19689	    # Archives containing C++ object files must be created using
19690	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19691	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19692	    ;;
19693	  icpc* | ecpc* )
19694	    # Intel C++
19695	    with_gnu_ld=yes
19696	    # version 8.0 and above of icpc choke on multiply defined symbols
19697	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19698	    # earlier do not add the objects themselves.
19699	    case `$CC -V 2>&1` in
19700	      *"Version 7."*)
19701	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19702		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19703		;;
19704	      *)  # Version 8.0 or newer
19705	        tmp_idyn=
19706	        case $host_cpu in
19707		  ia64*) tmp_idyn=' -i_dynamic';;
19708		esac
19709	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19710		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19711		;;
19712	    esac
19713	    archive_cmds_need_lc_CXX=no
19714	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19715	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19716	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19717	    ;;
19718          pgCC* | pgcpp*)
19719            # Portland Group C++ compiler
19720	    case `$CC -V` in
19721	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19722	      prelink_cmds_CXX='tpldir=Template.dir~
19723               rm -rf $tpldir~
19724               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19725               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19726	      old_archive_cmds_CXX='tpldir=Template.dir~
19727                rm -rf $tpldir~
19728                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19729                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19730                $RANLIB $oldlib'
19731	      archive_cmds_CXX='tpldir=Template.dir~
19732                rm -rf $tpldir~
19733                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19734                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19735	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19736                rm -rf $tpldir~
19737                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19738                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19739	      ;;
19740	    *) # Version 6 and above use weak symbols
19741	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19742	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19743	      ;;
19744	    esac
19745
19746	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
19747	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19748	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
19749            ;;
19750	  cxx*)
19751	    # Compaq C++
19752	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19753	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
19754
19755	    runpath_var=LD_RUN_PATH
19756	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19757	    hardcode_libdir_separator_CXX=:
19758
19759	    # Commands to make compiler produce verbose output that lists
19760	    # what "hidden" libraries, object files and flags are used when
19761	    # linking a shared library.
19762	    #
19763	    # There doesn't appear to be a way to prevent this compiler from
19764	    # explicitly linking system object files so we need to strip them
19765	    # from the output so that they don't get included in the library
19766	    # dependencies.
19767	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19768	    ;;
19769	  xl* | mpixl* | bgxl*)
19770	    # IBM XL 8.0 on PPC, with GNU ld
19771	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19772	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19773	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19774	    if test yes = "$supports_anon_versioning"; then
19775	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19776                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19777                echo "local: *; };" >> $output_objdir/$libname.ver~
19778                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19779	    fi
19780	    ;;
19781	  *)
19782	    case `$CC -V 2>&1 | sed 5q` in
19783	    *Sun\ C*)
19784	      # Sun C++ 5.9
19785	      no_undefined_flag_CXX=' -zdefs'
19786	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19787	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
19788	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19789	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
19790	      compiler_needs_object_CXX=yes
19791
19792	      # Not sure whether something based on
19793	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19794	      # would be better.
19795	      output_verbose_link_cmd='func_echo_all'
19796
19797	      # Archives containing C++ object files must be created using
19798	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19799	      # necessary to make sure instantiated templates are included
19800	      # in the archive.
19801	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19802	      ;;
19803	    esac
19804	    ;;
19805	esac
19806	;;
19807
19808      lynxos*)
19809        # FIXME: insert proper C++ library support
19810	ld_shlibs_CXX=no
19811	;;
19812
19813      m88k*)
19814        # FIXME: insert proper C++ library support
19815        ld_shlibs_CXX=no
19816	;;
19817
19818      mvs*)
19819        case $cc_basename in
19820          cxx*)
19821	    # FIXME: insert proper C++ library support
19822	    ld_shlibs_CXX=no
19823	    ;;
19824	  *)
19825	    # FIXME: insert proper C++ library support
19826	    ld_shlibs_CXX=no
19827	    ;;
19828	esac
19829	;;
19830
19831      netbsd*)
19832        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19833	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19834	  wlarc=
19835	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19836	  hardcode_direct_CXX=yes
19837	  hardcode_shlibpath_var_CXX=no
19838	fi
19839	# Workaround some broken pre-1.5 toolchains
19840	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19841	;;
19842
19843      *nto* | *qnx*)
19844        ld_shlibs_CXX=yes
19845	;;
19846
19847      openbsd* | bitrig*)
19848	if test -f /usr/libexec/ld.so; then
19849	  hardcode_direct_CXX=yes
19850	  hardcode_shlibpath_var_CXX=no
19851	  hardcode_direct_absolute_CXX=yes
19852	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19853	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19854	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
19855	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
19856	    export_dynamic_flag_spec_CXX='$wl-E'
19857	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19858	  fi
19859	  output_verbose_link_cmd=func_echo_all
19860	else
19861	  ld_shlibs_CXX=no
19862	fi
19863	;;
19864
19865      osf3* | osf4* | osf5*)
19866        case $cc_basename in
19867          KCC*)
19868	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19869
19870	    # KCC will only create a shared library if the output file
19871	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19872	    # to its proper name (with version) after linking.
19873	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19874
19875	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19876	    hardcode_libdir_separator_CXX=:
19877
19878	    # Archives containing C++ object files must be created using
19879	    # the KAI C++ compiler.
19880	    case $host in
19881	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19882	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19883	    esac
19884	    ;;
19885          RCC*)
19886	    # Rational C++ 2.4.1
19887	    # FIXME: insert proper C++ library support
19888	    ld_shlibs_CXX=no
19889	    ;;
19890          cxx*)
19891	    case $host in
19892	      osf3*)
19893	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19894	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19895	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19896		;;
19897	      *)
19898	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19899	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19900	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19901                  echo "-hidden">> $lib.exp~
19902                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
19903                  $RM $lib.exp'
19904	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19905		;;
19906	    esac
19907
19908	    hardcode_libdir_separator_CXX=:
19909
19910	    # Commands to make compiler produce verbose output that lists
19911	    # what "hidden" libraries, object files and flags are used when
19912	    # linking a shared library.
19913	    #
19914	    # There doesn't appear to be a way to prevent this compiler from
19915	    # explicitly linking system object files so we need to strip them
19916	    # from the output so that they don't get included in the library
19917	    # dependencies.
19918	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19919	    ;;
19920	  *)
19921	    if test yes,no = "$GXX,$with_gnu_ld"; then
19922	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19923	      case $host in
19924	        osf3*)
19925	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19926		  ;;
19927	        *)
19928	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19929		  ;;
19930	      esac
19931
19932	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19933	      hardcode_libdir_separator_CXX=:
19934
19935	      # Commands to make compiler produce verbose output that lists
19936	      # what "hidden" libraries, object files and flags are used when
19937	      # linking a shared library.
19938	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19939
19940	    else
19941	      # FIXME: insert proper C++ library support
19942	      ld_shlibs_CXX=no
19943	    fi
19944	    ;;
19945        esac
19946        ;;
19947
19948      psos*)
19949        # FIXME: insert proper C++ library support
19950        ld_shlibs_CXX=no
19951        ;;
19952
19953      sunos4*)
19954        case $cc_basename in
19955          CC*)
19956	    # Sun C++ 4.x
19957	    # FIXME: insert proper C++ library support
19958	    ld_shlibs_CXX=no
19959	    ;;
19960          lcc*)
19961	    # Lucid
19962	    # FIXME: insert proper C++ library support
19963	    ld_shlibs_CXX=no
19964	    ;;
19965          *)
19966	    # FIXME: insert proper C++ library support
19967	    ld_shlibs_CXX=no
19968	    ;;
19969        esac
19970        ;;
19971
19972      solaris*)
19973        case $cc_basename in
19974          CC* | sunCC*)
19975	    # Sun C++ 4.2, 5.x and Centerline C++
19976            archive_cmds_need_lc_CXX=yes
19977	    no_undefined_flag_CXX=' -zdefs'
19978	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19979	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19980              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19981
19982	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19983	    hardcode_shlibpath_var_CXX=no
19984	    case $host_os in
19985	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19986	      *)
19987		# The compiler driver will combine and reorder linker options,
19988		# but understands '-z linker_flag'.
19989	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19990		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19991	        ;;
19992	    esac
19993	    link_all_deplibs_CXX=yes
19994
19995	    output_verbose_link_cmd='func_echo_all'
19996
19997	    # Archives containing C++ object files must be created using
19998	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19999	    # necessary to make sure instantiated templates are included
20000	    # in the archive.
20001	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20002	    ;;
20003          gcx*)
20004	    # Green Hills C++ Compiler
20005	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20006
20007	    # The C++ compiler must be used to create the archive.
20008	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20009	    ;;
20010          *)
20011	    # GNU C++ compiler with Solaris linker
20012	    if test yes,no = "$GXX,$with_gnu_ld"; then
20013	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
20014	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20015	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20016	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20017                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20018
20019	        # Commands to make compiler produce verbose output that lists
20020	        # what "hidden" libraries, object files and flags are used when
20021	        # linking a shared library.
20022	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20023	      else
20024	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
20025	        # platform.
20026	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20027	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20028                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20029
20030	        # Commands to make compiler produce verbose output that lists
20031	        # what "hidden" libraries, object files and flags are used when
20032	        # linking a shared library.
20033	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20034	      fi
20035
20036	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20037	      case $host_os in
20038		solaris2.[0-5] | solaris2.[0-5].*) ;;
20039		*)
20040		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20041		  ;;
20042	      esac
20043	    fi
20044	    ;;
20045        esac
20046        ;;
20047
20048    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20049      no_undefined_flag_CXX='$wl-z,text'
20050      archive_cmds_need_lc_CXX=no
20051      hardcode_shlibpath_var_CXX=no
20052      runpath_var='LD_RUN_PATH'
20053
20054      case $cc_basename in
20055        CC*)
20056	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20058	  ;;
20059	*)
20060	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20061	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20062	  ;;
20063      esac
20064      ;;
20065
20066      sysv5* | sco3.2v5* | sco5v6*)
20067	# Note: We CANNOT use -z defs as we might desire, because we do not
20068	# link with -lc, and that would cause any symbols used from libc to
20069	# always be unresolved, which means just about no library would
20070	# ever link correctly.  If we're not using GNU ld we use -z text
20071	# though, which does catch some bad symbols but isn't as heavy-handed
20072	# as -z defs.
20073	no_undefined_flag_CXX='$wl-z,text'
20074	allow_undefined_flag_CXX='$wl-z,nodefs'
20075	archive_cmds_need_lc_CXX=no
20076	hardcode_shlibpath_var_CXX=no
20077	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20078	hardcode_libdir_separator_CXX=':'
20079	link_all_deplibs_CXX=yes
20080	export_dynamic_flag_spec_CXX='$wl-Bexport'
20081	runpath_var='LD_RUN_PATH'
20082
20083	case $cc_basename in
20084          CC*)
20085	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20086	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20088              '"$old_archive_cmds_CXX"
20089	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20090              '"$reload_cmds_CXX"
20091	    ;;
20092	  *)
20093	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20095	    ;;
20096	esac
20097      ;;
20098
20099      tandem*)
20100        case $cc_basename in
20101          NCC*)
20102	    # NonStop-UX NCC 3.20
20103	    # FIXME: insert proper C++ library support
20104	    ld_shlibs_CXX=no
20105	    ;;
20106          *)
20107	    # FIXME: insert proper C++ library support
20108	    ld_shlibs_CXX=no
20109	    ;;
20110        esac
20111        ;;
20112
20113      vxworks*)
20114        # FIXME: insert proper C++ library support
20115        ld_shlibs_CXX=no
20116        ;;
20117
20118      *)
20119        # FIXME: insert proper C++ library support
20120        ld_shlibs_CXX=no
20121        ;;
20122    esac
20123
20124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20125$as_echo "$ld_shlibs_CXX" >&6; }
20126    test no = "$ld_shlibs_CXX" && can_build_shared=no
20127
20128    GCC_CXX=$GXX
20129    LD_CXX=$LD
20130
20131    ## CAVEAT EMPTOR:
20132    ## There is no encapsulation within the following macros, do not change
20133    ## the running order or otherwise move them around unless you know exactly
20134    ## what you are doing...
20135    # Dependencies to place before and after the object being linked:
20136predep_objects_CXX=
20137postdep_objects_CXX=
20138predeps_CXX=
20139postdeps_CXX=
20140compiler_lib_search_path_CXX=
20141
20142cat > conftest.$ac_ext <<_LT_EOF
20143class Foo
20144{
20145public:
20146  Foo (void) { a = 0; }
20147private:
20148  int a;
20149};
20150_LT_EOF
20151
20152
20153_lt_libdeps_save_CFLAGS=$CFLAGS
20154case "$CC $CFLAGS " in #(
20155*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20156*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20157*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20158esac
20159
20160if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20161  (eval $ac_compile) 2>&5
20162  ac_status=$?
20163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20164  test $ac_status = 0; }; then
20165  # Parse the compiler output and extract the necessary
20166  # objects, libraries and library flags.
20167
20168  # Sentinel used to keep track of whether or not we are before
20169  # the conftest object file.
20170  pre_test_object_deps_done=no
20171
20172  for p in `eval "$output_verbose_link_cmd"`; do
20173    case $prev$p in
20174
20175    -L* | -R* | -l*)
20176       # Some compilers place space between "-{L,R}" and the path.
20177       # Remove the space.
20178       if test x-L = "$p" ||
20179          test x-R = "$p"; then
20180	 prev=$p
20181	 continue
20182       fi
20183
20184       # Expand the sysroot to ease extracting the directories later.
20185       if test -z "$prev"; then
20186         case $p in
20187         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20188         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20189         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20190         esac
20191       fi
20192       case $p in
20193       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20194       esac
20195       if test no = "$pre_test_object_deps_done"; then
20196	 case $prev in
20197	 -L | -R)
20198	   # Internal compiler library paths should come after those
20199	   # provided the user.  The postdeps already come after the
20200	   # user supplied libs so there is no need to process them.
20201	   if test -z "$compiler_lib_search_path_CXX"; then
20202	     compiler_lib_search_path_CXX=$prev$p
20203	   else
20204	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20205	   fi
20206	   ;;
20207	 # The "-l" case would never come before the object being
20208	 # linked, so don't bother handling this case.
20209	 esac
20210       else
20211	 if test -z "$postdeps_CXX"; then
20212	   postdeps_CXX=$prev$p
20213	 else
20214	   postdeps_CXX="${postdeps_CXX} $prev$p"
20215	 fi
20216       fi
20217       prev=
20218       ;;
20219
20220    *.lto.$objext) ;; # Ignore GCC LTO objects
20221    *.$objext)
20222       # This assumes that the test object file only shows up
20223       # once in the compiler output.
20224       if test "$p" = "conftest.$objext"; then
20225	 pre_test_object_deps_done=yes
20226	 continue
20227       fi
20228
20229       if test no = "$pre_test_object_deps_done"; then
20230	 if test -z "$predep_objects_CXX"; then
20231	   predep_objects_CXX=$p
20232	 else
20233	   predep_objects_CXX="$predep_objects_CXX $p"
20234	 fi
20235       else
20236	 if test -z "$postdep_objects_CXX"; then
20237	   postdep_objects_CXX=$p
20238	 else
20239	   postdep_objects_CXX="$postdep_objects_CXX $p"
20240	 fi
20241       fi
20242       ;;
20243
20244    *) ;; # Ignore the rest.
20245
20246    esac
20247  done
20248
20249  # Clean up.
20250  rm -f a.out a.exe
20251else
20252  echo "libtool.m4: error: problem compiling CXX test program"
20253fi
20254
20255$RM -f confest.$objext
20256CFLAGS=$_lt_libdeps_save_CFLAGS
20257
20258# PORTME: override above test on systems where it is broken
20259case $host_os in
20260interix[3-9]*)
20261  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20262  # hack all around it, let's just trust "g++" to DTRT.
20263  predep_objects_CXX=
20264  postdep_objects_CXX=
20265  postdeps_CXX=
20266  ;;
20267esac
20268
20269
20270case " $postdeps_CXX " in
20271*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20272esac
20273 compiler_lib_search_dirs_CXX=
20274if test -n "${compiler_lib_search_path_CXX}"; then
20275 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20276fi
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308    lt_prog_compiler_wl_CXX=
20309lt_prog_compiler_pic_CXX=
20310lt_prog_compiler_static_CXX=
20311
20312
20313  # C++ specific cases for pic, static, wl, etc.
20314  if test yes = "$GXX"; then
20315    lt_prog_compiler_wl_CXX='-Wl,'
20316    lt_prog_compiler_static_CXX='-static'
20317
20318    case $host_os in
20319    aix*)
20320      # All AIX code is PIC.
20321      if test ia64 = "$host_cpu"; then
20322	# AIX 5 now supports IA64 processor
20323	lt_prog_compiler_static_CXX='-Bstatic'
20324      fi
20325      lt_prog_compiler_pic_CXX='-fPIC'
20326      ;;
20327
20328    amigaos*)
20329      case $host_cpu in
20330      powerpc)
20331            # see comment about AmigaOS4 .so support
20332            lt_prog_compiler_pic_CXX='-fPIC'
20333        ;;
20334      m68k)
20335            # FIXME: we need at least 68020 code to build shared libraries, but
20336            # adding the '-m68020' flag to GCC prevents building anything better,
20337            # like '-m68040'.
20338            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20339        ;;
20340      esac
20341      ;;
20342
20343    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20344      # PIC is the default for these OSes.
20345      ;;
20346    mingw* | cygwin* | os2* | pw32* | cegcc*)
20347      # This hack is so that the source file can tell whether it is being
20348      # built for inclusion in a dll (and should export symbols for example).
20349      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20350      # (--disable-auto-import) libraries
20351      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20352      case $host_os in
20353      os2*)
20354	lt_prog_compiler_static_CXX='$wl-static'
20355	;;
20356      esac
20357      ;;
20358    darwin* | rhapsody*)
20359      # PIC is the default on this platform
20360      # Common symbols not allowed in MH_DYLIB files
20361      lt_prog_compiler_pic_CXX='-fno-common'
20362      ;;
20363    *djgpp*)
20364      # DJGPP does not support shared libraries at all
20365      lt_prog_compiler_pic_CXX=
20366      ;;
20367    haiku*)
20368      # PIC is the default for Haiku.
20369      # The "-static" flag exists, but is broken.
20370      lt_prog_compiler_static_CXX=
20371      ;;
20372    interix[3-9]*)
20373      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20374      # Instead, we relocate shared libraries at runtime.
20375      ;;
20376    sysv4*MP*)
20377      if test -d /usr/nec; then
20378	lt_prog_compiler_pic_CXX=-Kconform_pic
20379      fi
20380      ;;
20381    hpux*)
20382      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20383      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20384      # sets the default TLS model and affects inlining.
20385      case $host_cpu in
20386      hppa*64*)
20387	;;
20388      *)
20389	lt_prog_compiler_pic_CXX='-fPIC'
20390	;;
20391      esac
20392      ;;
20393    *qnx* | *nto*)
20394      # QNX uses GNU C++, but need to define -shared option too, otherwise
20395      # it will coredump.
20396      lt_prog_compiler_pic_CXX='-fPIC -shared'
20397      ;;
20398    *)
20399      lt_prog_compiler_pic_CXX='-fPIC'
20400      ;;
20401    esac
20402  else
20403    case $host_os in
20404      aix[4-9]*)
20405	# All AIX code is PIC.
20406	if test ia64 = "$host_cpu"; then
20407	  # AIX 5 now supports IA64 processor
20408	  lt_prog_compiler_static_CXX='-Bstatic'
20409	else
20410	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20411	fi
20412	;;
20413      chorus*)
20414	case $cc_basename in
20415	cxch68*)
20416	  # Green Hills C++ Compiler
20417	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20418	  ;;
20419	esac
20420	;;
20421      mingw* | cygwin* | os2* | pw32* | cegcc*)
20422	# This hack is so that the source file can tell whether it is being
20423	# built for inclusion in a dll (and should export symbols for example).
20424	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20425	;;
20426      dgux*)
20427	case $cc_basename in
20428	  ec++*)
20429	    lt_prog_compiler_pic_CXX='-KPIC'
20430	    ;;
20431	  ghcx*)
20432	    # Green Hills C++ Compiler
20433	    lt_prog_compiler_pic_CXX='-pic'
20434	    ;;
20435	  *)
20436	    ;;
20437	esac
20438	;;
20439      freebsd* | dragonfly*)
20440	# FreeBSD uses GNU C++
20441	;;
20442      hpux9* | hpux10* | hpux11*)
20443	case $cc_basename in
20444	  CC*)
20445	    lt_prog_compiler_wl_CXX='-Wl,'
20446	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20447	    if test ia64 != "$host_cpu"; then
20448	      lt_prog_compiler_pic_CXX='+Z'
20449	    fi
20450	    ;;
20451	  aCC*)
20452	    lt_prog_compiler_wl_CXX='-Wl,'
20453	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20454	    case $host_cpu in
20455	    hppa*64*|ia64*)
20456	      # +Z the default
20457	      ;;
20458	    *)
20459	      lt_prog_compiler_pic_CXX='+Z'
20460	      ;;
20461	    esac
20462	    ;;
20463	  *)
20464	    ;;
20465	esac
20466	;;
20467      interix*)
20468	# This is c89, which is MS Visual C++ (no shared libs)
20469	# Anyone wants to do a port?
20470	;;
20471      irix5* | irix6* | nonstopux*)
20472	case $cc_basename in
20473	  CC*)
20474	    lt_prog_compiler_wl_CXX='-Wl,'
20475	    lt_prog_compiler_static_CXX='-non_shared'
20476	    # CC pic flag -KPIC is the default.
20477	    ;;
20478	  *)
20479	    ;;
20480	esac
20481	;;
20482      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20483	case $cc_basename in
20484	  KCC*)
20485	    # KAI C++ Compiler
20486	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20487	    lt_prog_compiler_pic_CXX='-fPIC'
20488	    ;;
20489	  ecpc* )
20490	    # old Intel C++ for x86_64, which still supported -KPIC.
20491	    lt_prog_compiler_wl_CXX='-Wl,'
20492	    lt_prog_compiler_pic_CXX='-KPIC'
20493	    lt_prog_compiler_static_CXX='-static'
20494	    ;;
20495	  icpc* )
20496	    # Intel C++, used to be incompatible with GCC.
20497	    # ICC 10 doesn't accept -KPIC any more.
20498	    lt_prog_compiler_wl_CXX='-Wl,'
20499	    lt_prog_compiler_pic_CXX='-fPIC'
20500	    lt_prog_compiler_static_CXX='-static'
20501	    ;;
20502	  pgCC* | pgcpp*)
20503	    # Portland Group C++ compiler
20504	    lt_prog_compiler_wl_CXX='-Wl,'
20505	    lt_prog_compiler_pic_CXX='-fpic'
20506	    lt_prog_compiler_static_CXX='-Bstatic'
20507	    ;;
20508	  cxx*)
20509	    # Compaq C++
20510	    # Make sure the PIC flag is empty.  It appears that all Alpha
20511	    # Linux and Compaq Tru64 Unix objects are PIC.
20512	    lt_prog_compiler_pic_CXX=
20513	    lt_prog_compiler_static_CXX='-non_shared'
20514	    ;;
20515	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20516	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20517	    lt_prog_compiler_wl_CXX='-Wl,'
20518	    lt_prog_compiler_pic_CXX='-qpic'
20519	    lt_prog_compiler_static_CXX='-qstaticlink'
20520	    ;;
20521	  *)
20522	    case `$CC -V 2>&1 | sed 5q` in
20523	    *Sun\ C*)
20524	      # Sun C++ 5.9
20525	      lt_prog_compiler_pic_CXX='-KPIC'
20526	      lt_prog_compiler_static_CXX='-Bstatic'
20527	      lt_prog_compiler_wl_CXX='-Qoption ld '
20528	      ;;
20529	    esac
20530	    ;;
20531	esac
20532	;;
20533      lynxos*)
20534	;;
20535      m88k*)
20536	;;
20537      mvs*)
20538	case $cc_basename in
20539	  cxx*)
20540	    lt_prog_compiler_pic_CXX='-W c,exportall'
20541	    ;;
20542	  *)
20543	    ;;
20544	esac
20545	;;
20546      netbsd*)
20547	;;
20548      *qnx* | *nto*)
20549        # QNX uses GNU C++, but need to define -shared option too, otherwise
20550        # it will coredump.
20551        lt_prog_compiler_pic_CXX='-fPIC -shared'
20552        ;;
20553      osf3* | osf4* | osf5*)
20554	case $cc_basename in
20555	  KCC*)
20556	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20557	    ;;
20558	  RCC*)
20559	    # Rational C++ 2.4.1
20560	    lt_prog_compiler_pic_CXX='-pic'
20561	    ;;
20562	  cxx*)
20563	    # Digital/Compaq C++
20564	    lt_prog_compiler_wl_CXX='-Wl,'
20565	    # Make sure the PIC flag is empty.  It appears that all Alpha
20566	    # Linux and Compaq Tru64 Unix objects are PIC.
20567	    lt_prog_compiler_pic_CXX=
20568	    lt_prog_compiler_static_CXX='-non_shared'
20569	    ;;
20570	  *)
20571	    ;;
20572	esac
20573	;;
20574      psos*)
20575	;;
20576      solaris*)
20577	case $cc_basename in
20578	  CC* | sunCC*)
20579	    # Sun C++ 4.2, 5.x and Centerline C++
20580	    lt_prog_compiler_pic_CXX='-KPIC'
20581	    lt_prog_compiler_static_CXX='-Bstatic'
20582	    lt_prog_compiler_wl_CXX='-Qoption ld '
20583	    ;;
20584	  gcx*)
20585	    # Green Hills C++ Compiler
20586	    lt_prog_compiler_pic_CXX='-PIC'
20587	    ;;
20588	  *)
20589	    ;;
20590	esac
20591	;;
20592      sunos4*)
20593	case $cc_basename in
20594	  CC*)
20595	    # Sun C++ 4.x
20596	    lt_prog_compiler_pic_CXX='-pic'
20597	    lt_prog_compiler_static_CXX='-Bstatic'
20598	    ;;
20599	  lcc*)
20600	    # Lucid
20601	    lt_prog_compiler_pic_CXX='-pic'
20602	    ;;
20603	  *)
20604	    ;;
20605	esac
20606	;;
20607      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20608	case $cc_basename in
20609	  CC*)
20610	    lt_prog_compiler_wl_CXX='-Wl,'
20611	    lt_prog_compiler_pic_CXX='-KPIC'
20612	    lt_prog_compiler_static_CXX='-Bstatic'
20613	    ;;
20614	esac
20615	;;
20616      tandem*)
20617	case $cc_basename in
20618	  NCC*)
20619	    # NonStop-UX NCC 3.20
20620	    lt_prog_compiler_pic_CXX='-KPIC'
20621	    ;;
20622	  *)
20623	    ;;
20624	esac
20625	;;
20626      vxworks*)
20627	;;
20628      *)
20629	lt_prog_compiler_can_build_shared_CXX=no
20630	;;
20631    esac
20632  fi
20633
20634case $host_os in
20635  # For platforms that do not support PIC, -DPIC is meaningless:
20636  *djgpp*)
20637    lt_prog_compiler_pic_CXX=
20638    ;;
20639  *)
20640    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20641    ;;
20642esac
20643
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20645$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20646if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20647  $as_echo_n "(cached) " >&6
20648else
20649  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20650fi
20651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20652$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20653lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20654
20655#
20656# Check to make sure the PIC flag actually works.
20657#
20658if test -n "$lt_prog_compiler_pic_CXX"; then
20659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20660$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20661if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20662  $as_echo_n "(cached) " >&6
20663else
20664  lt_cv_prog_compiler_pic_works_CXX=no
20665   ac_outfile=conftest.$ac_objext
20666   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20667   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
20668   # Insert the option either (1) after the last *FLAGS variable, or
20669   # (2) before a word containing "conftest.", or (3) at the end.
20670   # Note that $ac_compile itself does not contain backslashes and begins
20671   # with a dollar sign (not a hyphen), so the echo should work correctly.
20672   # The option is referenced via a variable to avoid confusing sed.
20673   lt_compile=`echo "$ac_compile" | $SED \
20674   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20675   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20676   -e 's:$: $lt_compiler_flag:'`
20677   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20678   (eval "$lt_compile" 2>conftest.err)
20679   ac_status=$?
20680   cat conftest.err >&5
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   if (exit $ac_status) && test -s "$ac_outfile"; then
20683     # The compiler can only warn and ignore the option if not recognized
20684     # So say no if there are warnings other than the usual output.
20685     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20686     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20687     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20688       lt_cv_prog_compiler_pic_works_CXX=yes
20689     fi
20690   fi
20691   $RM conftest*
20692
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20695$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20696
20697if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20698    case $lt_prog_compiler_pic_CXX in
20699     "" | " "*) ;;
20700     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20701     esac
20702else
20703    lt_prog_compiler_pic_CXX=
20704     lt_prog_compiler_can_build_shared_CXX=no
20705fi
20706
20707fi
20708
20709
20710
20711
20712
20713#
20714# Check to make sure the static flag actually works.
20715#
20716wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20718$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20719if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
20720  $as_echo_n "(cached) " >&6
20721else
20722  lt_cv_prog_compiler_static_works_CXX=no
20723   save_LDFLAGS=$LDFLAGS
20724   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20725   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20726   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20727     # The linker can only warn and ignore the option if not recognized
20728     # So say no if there are warnings
20729     if test -s conftest.err; then
20730       # Append any errors to the config.log.
20731       cat conftest.err 1>&5
20732       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20733       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20734       if diff conftest.exp conftest.er2 >/dev/null; then
20735         lt_cv_prog_compiler_static_works_CXX=yes
20736       fi
20737     else
20738       lt_cv_prog_compiler_static_works_CXX=yes
20739     fi
20740   fi
20741   $RM -r conftest*
20742   LDFLAGS=$save_LDFLAGS
20743
20744fi
20745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20746$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20747
20748if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20749    :
20750else
20751    lt_prog_compiler_static_CXX=
20752fi
20753
20754
20755
20756
20757    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20758$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20759if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20760  $as_echo_n "(cached) " >&6
20761else
20762  lt_cv_prog_compiler_c_o_CXX=no
20763   $RM -r conftest 2>/dev/null
20764   mkdir conftest
20765   cd conftest
20766   mkdir out
20767   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20768
20769   lt_compiler_flag="-o out/conftest2.$ac_objext"
20770   # Insert the option either (1) after the last *FLAGS variable, or
20771   # (2) before a word containing "conftest.", or (3) at the end.
20772   # Note that $ac_compile itself does not contain backslashes and begins
20773   # with a dollar sign (not a hyphen), so the echo should work correctly.
20774   lt_compile=`echo "$ac_compile" | $SED \
20775   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20776   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20777   -e 's:$: $lt_compiler_flag:'`
20778   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20779   (eval "$lt_compile" 2>out/conftest.err)
20780   ac_status=$?
20781   cat out/conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20784   then
20785     # The compiler can only warn and ignore the option if not recognized
20786     # So say no if there are warnings
20787     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20788     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20789     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20790       lt_cv_prog_compiler_c_o_CXX=yes
20791     fi
20792   fi
20793   chmod u+w . 2>&5
20794   $RM conftest*
20795   # SGI C++ compiler will create directory out/ii_files/ for
20796   # template instantiation
20797   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20798   $RM out/* && rmdir out
20799   cd ..
20800   $RM -r conftest
20801   $RM conftest*
20802
20803fi
20804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20805$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20806
20807
20808
20809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20810$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20811if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20812  $as_echo_n "(cached) " >&6
20813else
20814  lt_cv_prog_compiler_c_o_CXX=no
20815   $RM -r conftest 2>/dev/null
20816   mkdir conftest
20817   cd conftest
20818   mkdir out
20819   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20820
20821   lt_compiler_flag="-o out/conftest2.$ac_objext"
20822   # Insert the option either (1) after the last *FLAGS variable, or
20823   # (2) before a word containing "conftest.", or (3) at the end.
20824   # Note that $ac_compile itself does not contain backslashes and begins
20825   # with a dollar sign (not a hyphen), so the echo should work correctly.
20826   lt_compile=`echo "$ac_compile" | $SED \
20827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20829   -e 's:$: $lt_compiler_flag:'`
20830   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20831   (eval "$lt_compile" 2>out/conftest.err)
20832   ac_status=$?
20833   cat out/conftest.err >&5
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20836   then
20837     # The compiler can only warn and ignore the option if not recognized
20838     # So say no if there are warnings
20839     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20840     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20841     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20842       lt_cv_prog_compiler_c_o_CXX=yes
20843     fi
20844   fi
20845   chmod u+w . 2>&5
20846   $RM conftest*
20847   # SGI C++ compiler will create directory out/ii_files/ for
20848   # template instantiation
20849   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20850   $RM out/* && rmdir out
20851   cd ..
20852   $RM -r conftest
20853   $RM conftest*
20854
20855fi
20856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20857$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20858
20859
20860
20861
20862hard_links=nottested
20863if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
20864  # do not overwrite the value of need_locks provided by the user
20865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20866$as_echo_n "checking if we can lock with hard links... " >&6; }
20867  hard_links=yes
20868  $RM conftest*
20869  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20870  touch conftest.a
20871  ln conftest.a conftest.b 2>&5 || hard_links=no
20872  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20874$as_echo "$hard_links" >&6; }
20875  if test no = "$hard_links"; then
20876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20877$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20878    need_locks=warn
20879  fi
20880else
20881  need_locks=no
20882fi
20883
20884
20885
20886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20887$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20888
20889  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20890  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20891  case $host_os in
20892  aix[4-9]*)
20893    # If we're using GNU nm, then we don't want the "-C" option.
20894    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20895    # Without the "-l" option, or with the "-B" option, AIX nm treats
20896    # weak defined symbols like other global defined symbols, whereas
20897    # GNU nm marks them as "W".
20898    # While the 'weak' keyword is ignored in the Export File, we need
20899    # it in the Import File for the 'aix-soname' feature, so we have
20900    # to replace the "-B" option with "-P" for AIX nm.
20901    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20902      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
20903    else
20904      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
20905    fi
20906    ;;
20907  pw32*)
20908    export_symbols_cmds_CXX=$ltdll_cmds
20909    ;;
20910  cygwin* | mingw* | cegcc*)
20911    case $cc_basename in
20912    cl*)
20913      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20914      ;;
20915    *)
20916      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20917      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20918      ;;
20919    esac
20920    ;;
20921  *)
20922    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20923    ;;
20924  esac
20925
20926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20927$as_echo "$ld_shlibs_CXX" >&6; }
20928test no = "$ld_shlibs_CXX" && can_build_shared=no
20929
20930with_gnu_ld_CXX=$with_gnu_ld
20931
20932
20933
20934
20935
20936
20937#
20938# Do we need to explicitly link libc?
20939#
20940case "x$archive_cmds_need_lc_CXX" in
20941x|xyes)
20942  # Assume -lc should be added
20943  archive_cmds_need_lc_CXX=yes
20944
20945  if test yes,yes = "$GCC,$enable_shared"; then
20946    case $archive_cmds_CXX in
20947    *'~'*)
20948      # FIXME: we may have to deal with multi-command sequences.
20949      ;;
20950    '$CC '*)
20951      # Test whether the compiler implicitly links with -lc since on some
20952      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20953      # to ld, don't add -lc before -lgcc.
20954      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20955$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20956if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
20957  $as_echo_n "(cached) " >&6
20958else
20959  $RM conftest*
20960	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20961
20962	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20963  (eval $ac_compile) 2>&5
20964  ac_status=$?
20965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20966  test $ac_status = 0; } 2>conftest.err; then
20967	  soname=conftest
20968	  lib=conftest
20969	  libobjs=conftest.$ac_objext
20970	  deplibs=
20971	  wl=$lt_prog_compiler_wl_CXX
20972	  pic_flag=$lt_prog_compiler_pic_CXX
20973	  compiler_flags=-v
20974	  linker_flags=-v
20975	  verstring=
20976	  output_objdir=.
20977	  libname=conftest
20978	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20979	  allow_undefined_flag_CXX=
20980	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20981  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20982  ac_status=$?
20983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20984  test $ac_status = 0; }
20985	  then
20986	    lt_cv_archive_cmds_need_lc_CXX=no
20987	  else
20988	    lt_cv_archive_cmds_need_lc_CXX=yes
20989	  fi
20990	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20991	else
20992	  cat conftest.err 1>&5
20993	fi
20994	$RM conftest*
20995
20996fi
20997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20998$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20999      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21000      ;;
21001    esac
21002  fi
21003  ;;
21004esac
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21068$as_echo_n "checking dynamic linker characteristics... " >&6; }
21069
21070library_names_spec=
21071libname_spec='lib$name'
21072soname_spec=
21073shrext_cmds=.so
21074postinstall_cmds=
21075postuninstall_cmds=
21076finish_cmds=
21077finish_eval=
21078shlibpath_var=
21079shlibpath_overrides_runpath=unknown
21080version_type=none
21081dynamic_linker="$host_os ld.so"
21082sys_lib_dlsearch_path_spec="/lib /usr/lib"
21083need_lib_prefix=unknown
21084hardcode_into_libs=no
21085
21086# when you set need_version to no, make sure it does not cause -set_version
21087# flags to be left without arguments
21088need_version=unknown
21089
21090
21091
21092case $host_os in
21093aix3*)
21094  version_type=linux # correct to gnu/linux during the next big refactor
21095  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21096  shlibpath_var=LIBPATH
21097
21098  # AIX 3 has no versioning support, so we append a major version to the name.
21099  soname_spec='$libname$release$shared_ext$major'
21100  ;;
21101
21102aix[4-9]*)
21103  version_type=linux # correct to gnu/linux during the next big refactor
21104  need_lib_prefix=no
21105  need_version=no
21106  hardcode_into_libs=yes
21107  if test ia64 = "$host_cpu"; then
21108    # AIX 5 supports IA64
21109    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21110    shlibpath_var=LD_LIBRARY_PATH
21111  else
21112    # With GCC up to 2.95.x, collect2 would create an import file
21113    # for dependence libraries.  The import file would start with
21114    # the line '#! .'.  This would cause the generated library to
21115    # depend on '.', always an invalid library.  This was fixed in
21116    # development snapshots of GCC prior to 3.0.
21117    case $host_os in
21118      aix4 | aix4.[01] | aix4.[01].*)
21119      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21120	   echo ' yes '
21121	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21122	:
21123      else
21124	can_build_shared=no
21125      fi
21126      ;;
21127    esac
21128    # Using Import Files as archive members, it is possible to support
21129    # filename-based versioning of shared library archives on AIX. While
21130    # this would work for both with and without runtime linking, it will
21131    # prevent static linking of such archives. So we do filename-based
21132    # shared library versioning with .so extension only, which is used
21133    # when both runtime linking and shared linking is enabled.
21134    # Unfortunately, runtime linking may impact performance, so we do
21135    # not want this to be the default eventually. Also, we use the
21136    # versioned .so libs for executables only if there is the -brtl
21137    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21138    # To allow for filename-based versioning support, we need to create
21139    # libNAME.so.V as an archive file, containing:
21140    # *) an Import File, referring to the versioned filename of the
21141    #    archive as well as the shared archive member, telling the
21142    #    bitwidth (32 or 64) of that shared object, and providing the
21143    #    list of exported symbols of that shared object, eventually
21144    #    decorated with the 'weak' keyword
21145    # *) the shared object with the F_LOADONLY flag set, to really avoid
21146    #    it being seen by the linker.
21147    # At run time we better use the real file rather than another symlink,
21148    # but for link time we create the symlink libNAME.so -> libNAME.so.V
21149
21150    case $with_aix_soname,$aix_use_runtimelinking in
21151    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21152    # soname into executable. Probably we can add versioning support to
21153    # collect2, so additional links can be useful in future.
21154    aix,yes) # traditional libtool
21155      dynamic_linker='AIX unversionable lib.so'
21156      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21157      # instead of lib<name>.a to let people know that these are not
21158      # typical AIX shared libraries.
21159      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21160      ;;
21161    aix,no) # traditional AIX only
21162      dynamic_linker='AIX lib.a(lib.so.V)'
21163      # We preserve .a as extension for shared libraries through AIX4.2
21164      # and later when we are not doing run time linking.
21165      library_names_spec='$libname$release.a $libname.a'
21166      soname_spec='$libname$release$shared_ext$major'
21167      ;;
21168    svr4,*) # full svr4 only
21169      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21170      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21171      # We do not specify a path in Import Files, so LIBPATH fires.
21172      shlibpath_overrides_runpath=yes
21173      ;;
21174    *,yes) # both, prefer svr4
21175      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21176      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21177      # unpreferred sharedlib libNAME.a needs extra handling
21178      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
21179      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
21180      # We do not specify a path in Import Files, so LIBPATH fires.
21181      shlibpath_overrides_runpath=yes
21182      ;;
21183    *,no) # both, prefer aix
21184      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21185      library_names_spec='$libname$release.a $libname.a'
21186      soname_spec='$libname$release$shared_ext$major'
21187      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21188      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
21189      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
21190      ;;
21191    esac
21192    shlibpath_var=LIBPATH
21193  fi
21194  ;;
21195
21196amigaos*)
21197  case $host_cpu in
21198  powerpc)
21199    # Since July 2007 AmigaOS4 officially supports .so libraries.
21200    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21201    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21202    ;;
21203  m68k)
21204    library_names_spec='$libname.ixlibrary $libname.a'
21205    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21206    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21207    ;;
21208  esac
21209  ;;
21210
21211beos*)
21212  library_names_spec='$libname$shared_ext'
21213  dynamic_linker="$host_os ld.so"
21214  shlibpath_var=LIBRARY_PATH
21215  ;;
21216
21217bsdi[45]*)
21218  version_type=linux # correct to gnu/linux during the next big refactor
21219  need_version=no
21220  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21221  soname_spec='$libname$release$shared_ext$major'
21222  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21223  shlibpath_var=LD_LIBRARY_PATH
21224  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21225  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21226  # the default ld.so.conf also contains /usr/contrib/lib and
21227  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21228  # libtool to hard-code these into programs
21229  ;;
21230
21231cygwin* | mingw* | pw32* | cegcc*)
21232  version_type=windows
21233  shrext_cmds=.dll
21234  need_version=no
21235  need_lib_prefix=no
21236
21237  case $GCC,$cc_basename in
21238  yes,*)
21239    # gcc
21240    library_names_spec='$libname.dll.a'
21241    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21242    postinstall_cmds='base_file=`basename \$file`~
21243      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21244      dldir=$destdir/`dirname \$dlpath`~
21245      test -d \$dldir || mkdir -p \$dldir~
21246      $install_prog $dir/$dlname \$dldir/$dlname~
21247      chmod a+x \$dldir/$dlname~
21248      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21249        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21250      fi'
21251    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21252      dlpath=$dir/\$dldll~
21253       $RM \$dlpath'
21254    shlibpath_overrides_runpath=yes
21255
21256    case $host_os in
21257    cygwin*)
21258      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21259      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21260
21261      ;;
21262    mingw* | cegcc*)
21263      # MinGW DLLs use traditional 'lib' prefix
21264      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21265      ;;
21266    pw32*)
21267      # pw32 DLLs use 'pw' prefix rather than 'lib'
21268      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21269      ;;
21270    esac
21271    dynamic_linker='Win32 ld.exe'
21272    ;;
21273
21274  *,cl*)
21275    # Native MSVC
21276    libname_spec='$name'
21277    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21278    library_names_spec='$libname.dll.lib'
21279
21280    case $build_os in
21281    mingw*)
21282      sys_lib_search_path_spec=
21283      lt_save_ifs=$IFS
21284      IFS=';'
21285      for lt_path in $LIB
21286      do
21287        IFS=$lt_save_ifs
21288        # Let DOS variable expansion print the short 8.3 style file name.
21289        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21290        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21291      done
21292      IFS=$lt_save_ifs
21293      # Convert to MSYS style.
21294      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21295      ;;
21296    cygwin*)
21297      # Convert to unix form, then to dos form, then back to unix form
21298      # but this time dos style (no spaces!) so that the unix form looks
21299      # like /cygdrive/c/PROGRA~1:/cygdr...
21300      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21301      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21302      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21303      ;;
21304    *)
21305      sys_lib_search_path_spec=$LIB
21306      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21307        # It is most probably a Windows format PATH.
21308        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21309      else
21310        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21311      fi
21312      # FIXME: find the short name or the path components, as spaces are
21313      # common. (e.g. "Program Files" -> "PROGRA~1")
21314      ;;
21315    esac
21316
21317    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21318    postinstall_cmds='base_file=`basename \$file`~
21319      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21320      dldir=$destdir/`dirname \$dlpath`~
21321      test -d \$dldir || mkdir -p \$dldir~
21322      $install_prog $dir/$dlname \$dldir/$dlname'
21323    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21324      dlpath=$dir/\$dldll~
21325       $RM \$dlpath'
21326    shlibpath_overrides_runpath=yes
21327    dynamic_linker='Win32 link.exe'
21328    ;;
21329
21330  *)
21331    # Assume MSVC wrapper
21332    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21333    dynamic_linker='Win32 ld.exe'
21334    ;;
21335  esac
21336  # FIXME: first we should search . and the directory the executable is in
21337  shlibpath_var=PATH
21338  ;;
21339
21340darwin* | rhapsody*)
21341  dynamic_linker="$host_os dyld"
21342  version_type=darwin
21343  need_lib_prefix=no
21344  need_version=no
21345  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21346  soname_spec='$libname$release$major$shared_ext'
21347  shlibpath_overrides_runpath=yes
21348  shlibpath_var=DYLD_LIBRARY_PATH
21349  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21350
21351  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21352  ;;
21353
21354dgux*)
21355  version_type=linux # correct to gnu/linux during the next big refactor
21356  need_lib_prefix=no
21357  need_version=no
21358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21359  soname_spec='$libname$release$shared_ext$major'
21360  shlibpath_var=LD_LIBRARY_PATH
21361  ;;
21362
21363freebsd* | dragonfly*)
21364  # DragonFly does not have aout.  When/if they implement a new
21365  # versioning mechanism, adjust this.
21366  if test -x /usr/bin/objformat; then
21367    objformat=`/usr/bin/objformat`
21368  else
21369    case $host_os in
21370    freebsd[23].*) objformat=aout ;;
21371    *) objformat=elf ;;
21372    esac
21373  fi
21374  version_type=freebsd-$objformat
21375  case $version_type in
21376    freebsd-elf*)
21377      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21378      soname_spec='$libname$release$shared_ext$major'
21379      need_version=no
21380      need_lib_prefix=no
21381      ;;
21382    freebsd-*)
21383      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21384      need_version=yes
21385      ;;
21386  esac
21387  shlibpath_var=LD_LIBRARY_PATH
21388  case $host_os in
21389  freebsd2.*)
21390    shlibpath_overrides_runpath=yes
21391    ;;
21392  freebsd3.[01]* | freebsdelf3.[01]*)
21393    shlibpath_overrides_runpath=yes
21394    hardcode_into_libs=yes
21395    ;;
21396  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21397  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21398    shlibpath_overrides_runpath=no
21399    hardcode_into_libs=yes
21400    ;;
21401  *) # from 4.6 on, and DragonFly
21402    shlibpath_overrides_runpath=yes
21403    hardcode_into_libs=yes
21404    ;;
21405  esac
21406  ;;
21407
21408haiku*)
21409  version_type=linux # correct to gnu/linux during the next big refactor
21410  need_lib_prefix=no
21411  need_version=no
21412  dynamic_linker="$host_os runtime_loader"
21413  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21414  soname_spec='$libname$release$shared_ext$major'
21415  shlibpath_var=LIBRARY_PATH
21416  shlibpath_overrides_runpath=no
21417  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21418  hardcode_into_libs=yes
21419  ;;
21420
21421hpux9* | hpux10* | hpux11*)
21422  # Give a soname corresponding to the major version so that dld.sl refuses to
21423  # link against other versions.
21424  version_type=sunos
21425  need_lib_prefix=no
21426  need_version=no
21427  case $host_cpu in
21428  ia64*)
21429    shrext_cmds='.so'
21430    hardcode_into_libs=yes
21431    dynamic_linker="$host_os dld.so"
21432    shlibpath_var=LD_LIBRARY_PATH
21433    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21434    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21435    soname_spec='$libname$release$shared_ext$major'
21436    if test 32 = "$HPUX_IA64_MODE"; then
21437      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21438      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21439    else
21440      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21441      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21442    fi
21443    ;;
21444  hppa*64*)
21445    shrext_cmds='.sl'
21446    hardcode_into_libs=yes
21447    dynamic_linker="$host_os dld.sl"
21448    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21450    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21451    soname_spec='$libname$release$shared_ext$major'
21452    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21453    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21454    ;;
21455  *)
21456    shrext_cmds='.sl'
21457    dynamic_linker="$host_os dld.sl"
21458    shlibpath_var=SHLIB_PATH
21459    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21460    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21461    soname_spec='$libname$release$shared_ext$major'
21462    ;;
21463  esac
21464  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21465  postinstall_cmds='chmod 555 $lib'
21466  # or fails outright, so override atomically:
21467  install_override_mode=555
21468  ;;
21469
21470interix[3-9]*)
21471  version_type=linux # correct to gnu/linux during the next big refactor
21472  need_lib_prefix=no
21473  need_version=no
21474  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21475  soname_spec='$libname$release$shared_ext$major'
21476  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21477  shlibpath_var=LD_LIBRARY_PATH
21478  shlibpath_overrides_runpath=no
21479  hardcode_into_libs=yes
21480  ;;
21481
21482irix5* | irix6* | nonstopux*)
21483  case $host_os in
21484    nonstopux*) version_type=nonstopux ;;
21485    *)
21486	if test yes = "$lt_cv_prog_gnu_ld"; then
21487		version_type=linux # correct to gnu/linux during the next big refactor
21488	else
21489		version_type=irix
21490	fi ;;
21491  esac
21492  need_lib_prefix=no
21493  need_version=no
21494  soname_spec='$libname$release$shared_ext$major'
21495  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21496  case $host_os in
21497  irix5* | nonstopux*)
21498    libsuff= shlibsuff=
21499    ;;
21500  *)
21501    case $LD in # libtool.m4 will add one of these switches to LD
21502    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21503      libsuff= shlibsuff= libmagic=32-bit;;
21504    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21505      libsuff=32 shlibsuff=N32 libmagic=N32;;
21506    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21507      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21508    *) libsuff= shlibsuff= libmagic=never-match;;
21509    esac
21510    ;;
21511  esac
21512  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21513  shlibpath_overrides_runpath=no
21514  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21515  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21516  hardcode_into_libs=yes
21517  ;;
21518
21519# No shared lib support for Linux oldld, aout, or coff.
21520linux*oldld* | linux*aout* | linux*coff*)
21521  dynamic_linker=no
21522  ;;
21523
21524linux*android*)
21525  version_type=none # Android doesn't support versioned libraries.
21526  need_lib_prefix=no
21527  need_version=no
21528  library_names_spec='$libname$release$shared_ext'
21529  soname_spec='$libname$release$shared_ext'
21530  finish_cmds=
21531  shlibpath_var=LD_LIBRARY_PATH
21532  shlibpath_overrides_runpath=yes
21533
21534  # This implies no fast_install, which is unacceptable.
21535  # Some rework will be needed to allow for fast_install
21536  # before this can be enabled.
21537  hardcode_into_libs=yes
21538
21539  dynamic_linker='Android linker'
21540  # Don't embed -rpath directories since the linker doesn't support them.
21541  hardcode_libdir_flag_spec_CXX='-L$libdir'
21542  ;;
21543
21544# This must be glibc/ELF.
21545linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21546  version_type=linux # correct to gnu/linux during the next big refactor
21547  need_lib_prefix=no
21548  need_version=no
21549  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21550  soname_spec='$libname$release$shared_ext$major'
21551  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21552  shlibpath_var=LD_LIBRARY_PATH
21553  shlibpath_overrides_runpath=no
21554
21555  # Some binutils ld are patched to set DT_RUNPATH
21556  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21557  $as_echo_n "(cached) " >&6
21558else
21559  lt_cv_shlibpath_overrides_runpath=no
21560    save_LDFLAGS=$LDFLAGS
21561    save_libdir=$libdir
21562    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21563	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565/* end confdefs.h.  */
21566
21567int
21568main ()
21569{
21570
21571  ;
21572  return 0;
21573}
21574_ACEOF
21575if ac_fn_cxx_try_link "$LINENO"; then :
21576  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21577  lt_cv_shlibpath_overrides_runpath=yes
21578fi
21579fi
21580rm -f core conftest.err conftest.$ac_objext \
21581    conftest$ac_exeext conftest.$ac_ext
21582    LDFLAGS=$save_LDFLAGS
21583    libdir=$save_libdir
21584
21585fi
21586
21587  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21588
21589  # This implies no fast_install, which is unacceptable.
21590  # Some rework will be needed to allow for fast_install
21591  # before this can be enabled.
21592  hardcode_into_libs=yes
21593
21594  # Add ABI-specific directories to the system library path.
21595  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21596
21597  # Ideally, we could use ldconfig to report *all* directores which are
21598  # searched for libraries, however this is still not possible.  Aside from not
21599  # being certain /sbin/ldconfig is available, command
21600  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21601  # even though it is searched at run-time.  Try to do the best guess by
21602  # appending ld.so.conf contents (and includes) to the search path.
21603  if test -f /etc/ld.so.conf; then
21604    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21605    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21606  fi
21607
21608  # We used to test for /lib/ld.so.1 and disable shared libraries on
21609  # powerpc, because MkLinux only supported shared libraries with the
21610  # GNU dynamic linker.  Since this was broken with cross compilers,
21611  # most powerpc-linux boxes support dynamic linking these days and
21612  # people can always --disable-shared, the test was removed, and we
21613  # assume the GNU/Linux dynamic linker is in use.
21614  dynamic_linker='GNU/Linux ld.so'
21615  ;;
21616
21617netbsd*)
21618  version_type=sunos
21619  need_lib_prefix=no
21620  need_version=no
21621  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21622    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21623    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21624    dynamic_linker='NetBSD (a.out) ld.so'
21625  else
21626    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21627    soname_spec='$libname$release$shared_ext$major'
21628    dynamic_linker='NetBSD ld.elf_so'
21629  fi
21630  shlibpath_var=LD_LIBRARY_PATH
21631  shlibpath_overrides_runpath=yes
21632  hardcode_into_libs=yes
21633  ;;
21634
21635newsos6)
21636  version_type=linux # correct to gnu/linux during the next big refactor
21637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21638  shlibpath_var=LD_LIBRARY_PATH
21639  shlibpath_overrides_runpath=yes
21640  ;;
21641
21642*nto* | *qnx*)
21643  version_type=qnx
21644  need_lib_prefix=no
21645  need_version=no
21646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21647  soname_spec='$libname$release$shared_ext$major'
21648  shlibpath_var=LD_LIBRARY_PATH
21649  shlibpath_overrides_runpath=no
21650  hardcode_into_libs=yes
21651  dynamic_linker='ldqnx.so'
21652  ;;
21653
21654openbsd* | bitrig*)
21655  version_type=sunos
21656  sys_lib_dlsearch_path_spec=/usr/lib
21657  need_lib_prefix=no
21658  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21659    need_version=no
21660  else
21661    need_version=yes
21662  fi
21663  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21664  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21665  shlibpath_var=LD_LIBRARY_PATH
21666  shlibpath_overrides_runpath=yes
21667  ;;
21668
21669os2*)
21670  libname_spec='$name'
21671  version_type=windows
21672  shrext_cmds=.dll
21673  need_version=no
21674  need_lib_prefix=no
21675  # OS/2 can only load a DLL with a base name of 8 characters or less.
21676  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21677    v=$($ECHO $release$versuffix | tr -d .-);
21678    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21679    $ECHO $n$v`$shared_ext'
21680  library_names_spec='${libname}_dll.$libext'
21681  dynamic_linker='OS/2 ld.exe'
21682  shlibpath_var=BEGINLIBPATH
21683  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21684  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21685  postinstall_cmds='base_file=`basename \$file`~
21686    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21687    dldir=$destdir/`dirname \$dlpath`~
21688    test -d \$dldir || mkdir -p \$dldir~
21689    $install_prog $dir/$dlname \$dldir/$dlname~
21690    chmod a+x \$dldir/$dlname~
21691    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21692      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21693    fi'
21694  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21695    dlpath=$dir/\$dldll~
21696    $RM \$dlpath'
21697  ;;
21698
21699osf3* | osf4* | osf5*)
21700  version_type=osf
21701  need_lib_prefix=no
21702  need_version=no
21703  soname_spec='$libname$release$shared_ext$major'
21704  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21705  shlibpath_var=LD_LIBRARY_PATH
21706  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21707  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21708  ;;
21709
21710rdos*)
21711  dynamic_linker=no
21712  ;;
21713
21714solaris*)
21715  version_type=linux # correct to gnu/linux during the next big refactor
21716  need_lib_prefix=no
21717  need_version=no
21718  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21719  soname_spec='$libname$release$shared_ext$major'
21720  shlibpath_var=LD_LIBRARY_PATH
21721  shlibpath_overrides_runpath=yes
21722  hardcode_into_libs=yes
21723  # ldd complains unless libraries are executable
21724  postinstall_cmds='chmod +x $lib'
21725  ;;
21726
21727sunos4*)
21728  version_type=sunos
21729  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21730  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21731  shlibpath_var=LD_LIBRARY_PATH
21732  shlibpath_overrides_runpath=yes
21733  if test yes = "$with_gnu_ld"; then
21734    need_lib_prefix=no
21735  fi
21736  need_version=yes
21737  ;;
21738
21739sysv4 | sysv4.3*)
21740  version_type=linux # correct to gnu/linux during the next big refactor
21741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21742  soname_spec='$libname$release$shared_ext$major'
21743  shlibpath_var=LD_LIBRARY_PATH
21744  case $host_vendor in
21745    sni)
21746      shlibpath_overrides_runpath=no
21747      need_lib_prefix=no
21748      runpath_var=LD_RUN_PATH
21749      ;;
21750    siemens)
21751      need_lib_prefix=no
21752      ;;
21753    motorola)
21754      need_lib_prefix=no
21755      need_version=no
21756      shlibpath_overrides_runpath=no
21757      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21758      ;;
21759  esac
21760  ;;
21761
21762sysv4*MP*)
21763  if test -d /usr/nec; then
21764    version_type=linux # correct to gnu/linux during the next big refactor
21765    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21766    soname_spec='$libname$shared_ext.$major'
21767    shlibpath_var=LD_LIBRARY_PATH
21768  fi
21769  ;;
21770
21771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21772  version_type=sco
21773  need_lib_prefix=no
21774  need_version=no
21775  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21776  soname_spec='$libname$release$shared_ext$major'
21777  shlibpath_var=LD_LIBRARY_PATH
21778  shlibpath_overrides_runpath=yes
21779  hardcode_into_libs=yes
21780  if test yes = "$with_gnu_ld"; then
21781    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21782  else
21783    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21784    case $host_os in
21785      sco3.2v5*)
21786        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21787	;;
21788    esac
21789  fi
21790  sys_lib_dlsearch_path_spec='/usr/lib'
21791  ;;
21792
21793tpf*)
21794  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21795  version_type=linux # correct to gnu/linux during the next big refactor
21796  need_lib_prefix=no
21797  need_version=no
21798  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21799  shlibpath_var=LD_LIBRARY_PATH
21800  shlibpath_overrides_runpath=no
21801  hardcode_into_libs=yes
21802  ;;
21803
21804uts4*)
21805  version_type=linux # correct to gnu/linux during the next big refactor
21806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21807  soname_spec='$libname$release$shared_ext$major'
21808  shlibpath_var=LD_LIBRARY_PATH
21809  ;;
21810
21811*)
21812  dynamic_linker=no
21813  ;;
21814esac
21815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21816$as_echo "$dynamic_linker" >&6; }
21817test no = "$dynamic_linker" && can_build_shared=no
21818
21819variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21820if test yes = "$GCC"; then
21821  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21822fi
21823
21824if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21825  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21826fi
21827
21828if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21829  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21830fi
21831
21832# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21833configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21834
21835# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21836func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21837
21838# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21839configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21881$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21882hardcode_action_CXX=
21883if test -n "$hardcode_libdir_flag_spec_CXX" ||
21884   test -n "$runpath_var_CXX" ||
21885   test yes = "$hardcode_automatic_CXX"; then
21886
21887  # We can hardcode non-existent directories.
21888  if test no != "$hardcode_direct_CXX" &&
21889     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21890     # have to relink, otherwise we might link with an installed library
21891     # when we should be linking with a yet-to-be-installed one
21892     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
21893     test no != "$hardcode_minus_L_CXX"; then
21894    # Linking always hardcodes the temporary library directory.
21895    hardcode_action_CXX=relink
21896  else
21897    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21898    hardcode_action_CXX=immediate
21899  fi
21900else
21901  # We cannot hardcode anything, or else we can only hardcode existing
21902  # directories.
21903  hardcode_action_CXX=unsupported
21904fi
21905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21906$as_echo "$hardcode_action_CXX" >&6; }
21907
21908if test relink = "$hardcode_action_CXX" ||
21909   test yes = "$inherit_rpath_CXX"; then
21910  # Fast installation is not supported
21911  enable_fast_install=no
21912elif test yes = "$shlibpath_overrides_runpath" ||
21913     test no = "$enable_shared"; then
21914  # Fast installation is not necessary
21915  enable_fast_install=needless
21916fi
21917
21918
21919
21920
21921
21922
21923
21924  fi # test -n "$compiler"
21925
21926  CC=$lt_save_CC
21927  CFLAGS=$lt_save_CFLAGS
21928  LDCXX=$LD
21929  LD=$lt_save_LD
21930  GCC=$lt_save_GCC
21931  with_gnu_ld=$lt_save_with_gnu_ld
21932  lt_cv_path_LDCXX=$lt_cv_path_LD
21933  lt_cv_path_LD=$lt_save_path_LD
21934  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21935  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21936fi # test yes != "$_lt_caught_CXX_error"
21937
21938ac_ext=c
21939ac_cpp='$CPP $CPPFLAGS'
21940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21942ac_compiler_gnu=$ac_cv_c_compiler_gnu
21943
21944
21945
21946
21947# Check to see if building shared libraries
21948libtool_build_shared_libs='no'
21949if test "$enable_shared" = 'yes'; then
21950    libtool_build_shared_libs='yes'
21951fi
21952
21953# Check to see if building static libraries
21954libtool_build_static_libs='no'
21955if test "$enable_static" = 'yes'; then
21956    libtool_build_static_libs='yes'
21957fi
21958
21959 if test "${libtool_build_shared_libs}" = 'yes'; then
21960  WITH_SHARED_LIBS_TRUE=
21961  WITH_SHARED_LIBS_FALSE='#'
21962else
21963  WITH_SHARED_LIBS_TRUE='#'
21964  WITH_SHARED_LIBS_FALSE=
21965fi
21966
21967#
21968# Enable support for building loadable modules
21969#
21970build_modules='no'
21971
21972# Check whether --with-modules was given.
21973if test "${with_modules+set}" = set; then :
21974  withval=$with_modules; with_modules=$withval
21975else
21976  with_modules='no'
21977fi
21978
21979
21980# Only allow building loadable modules if we are building shared libraries
21981if test "$with_modules" != 'no' ; then
21982    if test "$libtool_build_shared_libs" = 'no'; then
21983        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21984$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21985    build_modules='no'
21986  else
21987    build_modules='yes'
21988  fi
21989fi
21990if test "$build_modules" != 'no' ; then
21991
21992$as_echo "#define BUILD_MODULES 1" >>confdefs.h
21993
21994    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
21995fi
21996 if test "$build_modules" != 'no'; then
21997  WITH_MODULES_TRUE=
21998  WITH_MODULES_FALSE='#'
21999else
22000  WITH_MODULES_TRUE='#'
22001  WITH_MODULES_FALSE=
22002fi
22003
22004
22005# Enable build using delegate libraries built in subdirectories rather than installed
22006# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib zip)
22007# Check whether --enable-delegate-build was given.
22008if test "${enable_delegate_build+set}" = set; then :
22009  enableval=$enable_delegate_build; enable_delegate_build=$enableval
22010else
22011  enable_delegate_build='no'
22012fi
22013
22014
22015# Check whether --enable-deprecated was given.
22016if test "${enable_deprecated+set}" = set; then :
22017  enableval=$enable_deprecated; enable_deprecated=$enableval
22018else
22019  enable_deprecated='no'
22020fi
22021
22022
22023if test "$enable_deprecated" = 'yes'; then
22024
22025$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
22026
22027else
22028  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22029fi
22030
22031# Build a version of ImageMagick which operates uninstalled.
22032# Used to build distributions located via MAGICK_HOME / executable path
22033# Check whether --enable-installed was given.
22034if test "${enable_installed+set}" = set; then :
22035  enableval=$enable_installed; enable_installed=$enableval
22036else
22037  enable_installed='yes'
22038fi
22039
22040
22041if test "$enable_installed" = 'yes'; then
22042
22043$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
22044
22045else
22046    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22047fi
22048
22049# Permit enciphering and deciphering image pixels.
22050# Check whether --enable-cipher was given.
22051if test "${enable_cipher+set}" = set; then :
22052  enableval=$enable_cipher; enable_cipher=$enableval
22053else
22054  enable_cipher='yes'
22055fi
22056
22057
22058if test "$enable_cipher" = 'yes'; then
22059
22060$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
22061
22062    MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
22063fi
22064
22065# Build a zero-configuration version of ImageMagick.
22066# Check whether --enable-zero-configuration was given.
22067if test "${enable_zero_configuration+set}" = set; then :
22068  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
22069else
22070  enable_zero_configuration='no'
22071fi
22072
22073
22074if test "$enable_zero_configuration" = 'yes'; then
22075
22076$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
22077
22078    MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
22079fi
22080 if test "$enable_zero_configuration" = yes; then
22081  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE=
22082  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE='#'
22083else
22084  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE='#'
22085  MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE=
22086fi
22087
22088
22089# Build a high dynamic range version of ImageMagick.
22090# Check whether --enable-hdri was given.
22091if test "${enable_hdri+set}" = set; then :
22092  enableval=$enable_hdri; enable_hdri=$enableval
22093else
22094  enable_hdri='yes'
22095fi
22096
22097
22098MAGICK_HDRI=""
22099if test "$enable_hdri" = 'yes'; then
22100    MAGICK_HDRI="HDRI"
22101    magick_hdri_enable='1';
22102    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
22103else
22104    magick_hdri_enable='0'
22105fi
22106
22107cat >>confdefs.h <<_ACEOF
22108#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22109_ACEOF
22110
22111MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22112CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22113CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22114
22115# Enable pipes (|) in filenames.
22116# Check whether --enable-pipes was given.
22117if test "${enable_pipes+set}" = set; then :
22118  enableval=$enable_pipes; enable_pipes=$enableval
22119else
22120  enable_pipes='no'
22121fi
22122
22123
22124if test "$enable_pipes" = 'yes'; then
22125
22126$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h
22127
22128    MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
22129fi
22130
22131# Build a version of ImageMagick with assert statements.
22132# Check whether --enable-assert was given.
22133if test "${enable_assert+set}" = set; then :
22134  enableval=$enable_assert; enable_assert=$enableval
22135else
22136  enable_assert='yes'
22137fi
22138
22139
22140if test "$enable_assert" = 'no'; then
22141
22142$as_echo "#define NDEBUG 1" >>confdefs.h
22143
22144fi
22145
22146# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
22147
22148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22149$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22150    # Check whether --enable-maintainer-mode was given.
22151if test "${enable_maintainer_mode+set}" = set; then :
22152  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22153else
22154  USE_MAINTAINER_MODE=no
22155fi
22156
22157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22158$as_echo "$USE_MAINTAINER_MODE" >&6; }
22159   if test $USE_MAINTAINER_MODE = yes; then
22160  MAINTAINER_MODE_TRUE=
22161  MAINTAINER_MODE_FALSE='#'
22162else
22163  MAINTAINER_MODE_TRUE='#'
22164  MAINTAINER_MODE_FALSE=
22165fi
22166
22167  MAINT=$MAINTAINER_MODE_TRUE
22168
22169
22170
22171# Enable hugepages support
22172# Check whether --enable-hugepages was given.
22173if test "${enable_hugepages+set}" = set; then :
22174  enableval=$enable_hugepages; enable_hugepages=$enableval
22175else
22176  enable_hugepages='no'
22177fi
22178
22179
22180# Enable ccmalloc memory debugging support
22181# Check whether --enable-ccmalloc was given.
22182if test "${enable_ccmalloc+set}" = set; then :
22183  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22184else
22185  enable_ccmalloc='no'
22186fi
22187
22188
22189# Enable Electric Fence memory debugging support
22190# Check whether --enable-efence was given.
22191if test "${enable_efence+set}" = set; then :
22192  enableval=$enable_efence; enable_efence=$enableval
22193else
22194  enable_efence='no'
22195fi
22196
22197
22198# Enable prof-based profiling support
22199# Check whether --enable-prof was given.
22200if test "${enable_prof+set}" = set; then :
22201  enableval=$enable_prof; enable_prof=$enableval
22202else
22203  enable_prof='no'
22204fi
22205
22206
22207# Enable gprof-based profiling support
22208# Check whether --enable-gprof was given.
22209if test "${enable_gprof+set}" = set; then :
22210  enableval=$enable_gprof; enable_gprof=$enableval
22211else
22212  enable_gprof='no'
22213fi
22214
22215
22216# Enable gcov-based profiling support
22217# Check whether --enable-gcov was given.
22218if test "${enable_gcov+set}" = set; then :
22219  enableval=$enable_gcov; enable_gcov=$enableval
22220else
22221  enable_gcov='no'
22222fi
22223
22224
22225enable_profiling='no'
22226if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22227    enable_profiling='yes'
22228    if test "$libtool_build_shared_libs" = 'yes'; then
22229        echo "Warning: Can not profile code using shared libraries"
22230    fi
22231fi
22232
22233# Magick API method prefix
22234
22235# Check whether --with-method-prefix was given.
22236if test "${with_method_prefix+set}" = set; then :
22237  withval=$with_method_prefix; with_method_prefix=$withval
22238else
22239  with_method_prefix='no'
22240fi
22241
22242
22243if test "$with_method_prefix" != 'no'; then
22244
22245cat >>confdefs.h <<_ACEOF
22246#define NAMESPACE_PREFIX $with_method_prefix
22247_ACEOF
22248
22249
22250cat >>confdefs.h <<_ACEOF
22251#define NAMESPACE_PREFIX_TAG $with_method_prefix
22252_ACEOF
22253
22254    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
22255fi
22256
22257# Enable legacy support (default no)
22258# Check whether --enable-legacy-support was given.
22259if test "${enable_legacy_support+set}" = set; then :
22260  enableval=$enable_legacy_support; with_legacy_support=$enableval
22261else
22262  with_legacy_support='no'
22263fi
22264
22265 if test "$with_legacy_support" != 'no'; then
22266  LEGACY_SUPPORT_TRUE=
22267  LEGACY_SUPPORT_FALSE='#'
22268else
22269  LEGACY_SUPPORT_TRUE='#'
22270  LEGACY_SUPPORT_FALSE=
22271fi
22272
22273
22274# Enable building command line utilities (default yes)
22275
22276# Check whether --with-utilities was given.
22277if test "${with_utilities+set}" = set; then :
22278  withval=$with_utilities; with_utilities=$withval
22279else
22280  with_utilities='yes'
22281fi
22282
22283 if test "$with_utilities" = 'yes'; then
22284  WITH_UTILITIES_TRUE=
22285  WITH_UTILITIES_FALSE='#'
22286else
22287  WITH_UTILITIES_TRUE='#'
22288  WITH_UTILITIES_FALSE=
22289fi
22290
22291
22292# Number of bits in a Quantum
22293
22294# Check whether --with-quantum-depth was given.
22295if test "${with_quantum_depth+set}" = set; then :
22296  withval=$with_quantum_depth; with_quantum_depth=$withval
22297else
22298  with_quantum_depth=16
22299fi
22300
22301
22302if test "$with_quantum_depth" != '8'; then
22303    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22304fi
22305
22306case "${with_quantum_depth}" in
22307    8 ) ;;
22308    16 ) ;;
22309    32 ) ;;
22310    64 ) ;;
22311    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
22312esac
22313QUANTUM_DEPTH="$with_quantum_depth"
22314
22315cat >>confdefs.h <<_ACEOF
22316#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
22317_ACEOF
22318
22319MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22320CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22321CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
22322
22323# define a lib suffix for abi purpose
22324MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
22325if test "$enable_hdri" = 'yes'; then
22326  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
22327fi
22328
22329
22330# Set pixel cache threshold
22331
22332# Check whether --with-cache was given.
22333if test "${with_cache+set}" = set; then :
22334  withval=$with_cache; with_cache=$withval
22335else
22336  with_cache=''
22337fi
22338
22339
22340if test "$with_cache" != ''; then
22341
22342cat >>confdefs.h <<_ACEOF
22343#define PixelCacheThreshold "$with_cache"
22344_ACEOF
22345
22346    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22347fi
22348
22349# Disable/Enable support for full delegate paths
22350
22351# Check whether --with-frozenpaths was given.
22352if test "${with_frozenpaths+set}" = set; then :
22353  withval=$with_frozenpaths; with_frozenpaths=$withval
22354else
22355  with_frozenpaths='no'
22356fi
22357
22358
22359# Enable build/install of Magick++
22360
22361# Check whether --with-magick-plus-plus was given.
22362if test "${with_magick_plus_plus+set}" = set; then :
22363  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22364else
22365  with_magick_plus_plus='yes'
22366fi
22367
22368
22369# Encode the this name into the shared library.
22370
22371# Check whether --with-package-release-name was given.
22372if test "${with_package_release_name+set}" = set; then :
22373  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22374fi
22375
22376
22377
22378# Disable build/install of PerlMagick.
22379
22380# Check whether --with-perl was given.
22381if test "${with_perl+set}" = set; then :
22382  withval=$with_perl; with_perl=$withval
22383else
22384  with_perl='no'
22385fi
22386
22387
22388# Options to pass when configuring PerlMagick
22389
22390# Check whether --with-perl-options was given.
22391if test "${with_perl_options+set}" = set; then :
22392  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
22393fi
22394
22395
22396
22397# Enable jemalloc, object-caching memory allocation library.
22398
22399# Check whether --with-jemalloc was given.
22400if test "${with_jemalloc+set}" = set; then :
22401  withval=$with_jemalloc; with_jemalloc=$withval
22402else
22403  with_jemalloc='no'
22404fi
22405
22406if test "$with_jemalloc" != 'yes' ; then
22407    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
22408fi
22409
22410# Enable use of TCMalloc library.
22411
22412# Check whether --with-tcmalloc was given.
22413if test "${with_tcmalloc+set}" = set; then :
22414  withval=$with_tcmalloc; with_tcmalloc=$withval
22415else
22416  with_tcmalloc='no'
22417fi
22418
22419if test "$with_tcmalloc" != 'no' ; then
22420   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tcmalloc=$with_tcmalloc "
22421fi
22422
22423# Enable umem, object-caching memory allocation library.
22424
22425# Check whether --with-umem was given.
22426if test "${with_umem+set}" = set; then :
22427  withval=$with_umem; with_umem=$withval
22428else
22429  with_umem='no'
22430fi
22431
22432if test "$with_umem" != 'yes' ; then
22433    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22434fi
22435
22436#
22437# Specify path to shared libstdc++ if not in normal location
22438#
22439
22440# Check whether --with-libstdc was given.
22441if test "${with_libstdc+set}" = set; then :
22442  withval=$with_libstdc; with_libstdc=$withval
22443else
22444  with_libstdc=''
22445fi
22446
22447
22448if test "$with_libstdc" != ''; then
22449    if test -d "$with_libstdc"; then
22450        LIBSTDCLDFLAGS="-L$with_libstdc"
22451    fi
22452fi
22453
22454
22455# Does gcc required -traditional?
22456if test $ac_cv_c_compiler_gnu = yes; then
22457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
22458$as_echo_n "checking whether $CC needs -traditional... " >&6; }
22459if ${ac_cv_prog_gcc_traditional+:} false; then :
22460  $as_echo_n "(cached) " >&6
22461else
22462    ac_pattern="Autoconf.*'x'"
22463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464/* end confdefs.h.  */
22465#include <sgtty.h>
22466Autoconf TIOCGETP
22467_ACEOF
22468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22469  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22470  ac_cv_prog_gcc_traditional=yes
22471else
22472  ac_cv_prog_gcc_traditional=no
22473fi
22474rm -f conftest*
22475
22476
22477  if test $ac_cv_prog_gcc_traditional = no; then
22478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22479/* end confdefs.h.  */
22480#include <termio.h>
22481Autoconf TCGETA
22482_ACEOF
22483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22484  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
22485  ac_cv_prog_gcc_traditional=yes
22486fi
22487rm -f conftest*
22488
22489  fi
22490fi
22491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
22492$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22493  if test $ac_cv_prog_gcc_traditional = yes; then
22494    CC="$CC -traditional"
22495  fi
22496fi
22497
22498
22499########
22500#
22501# Set defines required to build DLLs and modules using MinGW
22502#
22503########
22504# These options are set for multi-thread DLL module build
22505#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
22506#  module:              _DLL
22507#  executable/Magick++: _DLL _MAGICKMOD_
22508MODULE_EXTRA_CPPFLAGS=''
22509LIBRARY_EXTRA_CPPFLAGS=''
22510if test "${native_win32_build}" = 'yes'; then
22511    if test "${libtool_build_shared_libs}" = 'yes'; then
22512        CPPFLAGS="$CPPFLAGS -D_DLL"
22513        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22514        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22515        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22516        if test "$build_modules" = 'yes'; then
22517            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22518        else
22519            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22520        fi
22521    else
22522        CPPFLAGS="$CPPFLAGS -D_LIB"
22523        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22524        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22525    fi
22526    if test "$with_threads" = 'yes'; then
22527         CPPFLAGS="$CPPFLAGS -D_MT"
22528         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22529         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22530    fi
22531fi
22532
22533
22534
22535# Check standard headers
22536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22537$as_echo_n "checking for ANSI C header files... " >&6; }
22538if ${ac_cv_header_stdc+:} false; then :
22539  $as_echo_n "(cached) " >&6
22540else
22541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22542/* end confdefs.h.  */
22543#include <stdlib.h>
22544#include <stdarg.h>
22545#include <string.h>
22546#include <float.h>
22547
22548int
22549main ()
22550{
22551
22552  ;
22553  return 0;
22554}
22555_ACEOF
22556if ac_fn_c_try_compile "$LINENO"; then :
22557  ac_cv_header_stdc=yes
22558else
22559  ac_cv_header_stdc=no
22560fi
22561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22562
22563if test $ac_cv_header_stdc = yes; then
22564  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566/* end confdefs.h.  */
22567#include <string.h>
22568
22569_ACEOF
22570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22571  $EGREP "memchr" >/dev/null 2>&1; then :
22572
22573else
22574  ac_cv_header_stdc=no
22575fi
22576rm -f conftest*
22577
22578fi
22579
22580if test $ac_cv_header_stdc = yes; then
22581  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583/* end confdefs.h.  */
22584#include <stdlib.h>
22585
22586_ACEOF
22587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22588  $EGREP "free" >/dev/null 2>&1; then :
22589
22590else
22591  ac_cv_header_stdc=no
22592fi
22593rm -f conftest*
22594
22595fi
22596
22597if test $ac_cv_header_stdc = yes; then
22598  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22599  if test "$cross_compiling" = yes; then :
22600  :
22601else
22602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603/* end confdefs.h.  */
22604#include <ctype.h>
22605#include <stdlib.h>
22606#if ((' ' & 0x0FF) == 0x020)
22607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22609#else
22610# define ISLOWER(c) \
22611		   (('a' <= (c) && (c) <= 'i') \
22612		     || ('j' <= (c) && (c) <= 'r') \
22613		     || ('s' <= (c) && (c) <= 'z'))
22614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22615#endif
22616
22617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22618int
22619main ()
22620{
22621  int i;
22622  for (i = 0; i < 256; i++)
22623    if (XOR (islower (i), ISLOWER (i))
22624	|| toupper (i) != TOUPPER (i))
22625      return 2;
22626  return 0;
22627}
22628_ACEOF
22629if ac_fn_c_try_run "$LINENO"; then :
22630
22631else
22632  ac_cv_header_stdc=no
22633fi
22634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22635  conftest.$ac_objext conftest.beam conftest.$ac_ext
22636fi
22637
22638fi
22639fi
22640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22641$as_echo "$ac_cv_header_stdc" >&6; }
22642if test $ac_cv_header_stdc = yes; then
22643
22644$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22645
22646fi
22647
22648if ! test x"$ac_cv_header_stdc" = x"yes"; then
22649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
22650    header files.  Compilation cannot proceed.  Please install the ANSI C
22651    headers and rerun this script." >&5
22652$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22653    header files.  Compilation cannot proceed.  Please install the ANSI C
22654    headers and rerun this script." >&2;};
22655fi
22656
22657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22658$as_echo_n "checking whether to enable assertions... " >&6; }
22659  # Check whether --enable-assert was given.
22660if test "${enable_assert+set}" = set; then :
22661  enableval=$enable_assert; ac_enable_assert=$enableval
22662     if       test "x$enableval" = xno; then :
22663
22664$as_echo "#define NDEBUG 1" >>confdefs.h
22665
22666elif test "x$enableval" != xyes; then :
22667  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22668$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22669	ac_enable_assert=yes
22670fi
22671else
22672  ac_enable_assert=yes
22673fi
22674
22675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22676$as_echo "$ac_enable_assert" >&6; }
22677
22678ac_header_dirent=no
22679for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22680  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22682$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22683if eval \${$as_ac_Header+:} false; then :
22684  $as_echo_n "(cached) " >&6
22685else
22686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687/* end confdefs.h.  */
22688#include <sys/types.h>
22689#include <$ac_hdr>
22690
22691int
22692main ()
22693{
22694if ((DIR *) 0)
22695return 0;
22696  ;
22697  return 0;
22698}
22699_ACEOF
22700if ac_fn_c_try_compile "$LINENO"; then :
22701  eval "$as_ac_Header=yes"
22702else
22703  eval "$as_ac_Header=no"
22704fi
22705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706fi
22707eval ac_res=\$$as_ac_Header
22708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22709$as_echo "$ac_res" >&6; }
22710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22711  cat >>confdefs.h <<_ACEOF
22712#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22713_ACEOF
22714
22715ac_header_dirent=$ac_hdr; break
22716fi
22717
22718done
22719# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22720if test $ac_header_dirent = dirent.h; then
22721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22722$as_echo_n "checking for library containing opendir... " >&6; }
22723if ${ac_cv_search_opendir+:} false; then :
22724  $as_echo_n "(cached) " >&6
22725else
22726  ac_func_search_save_LIBS=$LIBS
22727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22728/* end confdefs.h.  */
22729
22730/* Override any GCC internal prototype to avoid an error.
22731   Use char because int might match the return type of a GCC
22732   builtin and then its argument prototype would still apply.  */
22733#ifdef __cplusplus
22734extern "C"
22735#endif
22736char opendir ();
22737int
22738main ()
22739{
22740return opendir ();
22741  ;
22742  return 0;
22743}
22744_ACEOF
22745for ac_lib in '' dir; do
22746  if test -z "$ac_lib"; then
22747    ac_res="none required"
22748  else
22749    ac_res=-l$ac_lib
22750    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22751  fi
22752  if ac_fn_c_try_link "$LINENO"; then :
22753  ac_cv_search_opendir=$ac_res
22754fi
22755rm -f core conftest.err conftest.$ac_objext \
22756    conftest$ac_exeext
22757  if ${ac_cv_search_opendir+:} false; then :
22758  break
22759fi
22760done
22761if ${ac_cv_search_opendir+:} false; then :
22762
22763else
22764  ac_cv_search_opendir=no
22765fi
22766rm conftest.$ac_ext
22767LIBS=$ac_func_search_save_LIBS
22768fi
22769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22770$as_echo "$ac_cv_search_opendir" >&6; }
22771ac_res=$ac_cv_search_opendir
22772if test "$ac_res" != no; then :
22773  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22774
22775fi
22776
22777else
22778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22779$as_echo_n "checking for library containing opendir... " >&6; }
22780if ${ac_cv_search_opendir+:} false; then :
22781  $as_echo_n "(cached) " >&6
22782else
22783  ac_func_search_save_LIBS=$LIBS
22784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22785/* end confdefs.h.  */
22786
22787/* Override any GCC internal prototype to avoid an error.
22788   Use char because int might match the return type of a GCC
22789   builtin and then its argument prototype would still apply.  */
22790#ifdef __cplusplus
22791extern "C"
22792#endif
22793char opendir ();
22794int
22795main ()
22796{
22797return opendir ();
22798  ;
22799  return 0;
22800}
22801_ACEOF
22802for ac_lib in '' x; do
22803  if test -z "$ac_lib"; then
22804    ac_res="none required"
22805  else
22806    ac_res=-l$ac_lib
22807    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22808  fi
22809  if ac_fn_c_try_link "$LINENO"; then :
22810  ac_cv_search_opendir=$ac_res
22811fi
22812rm -f core conftest.err conftest.$ac_objext \
22813    conftest$ac_exeext
22814  if ${ac_cv_search_opendir+:} false; then :
22815  break
22816fi
22817done
22818if ${ac_cv_search_opendir+:} false; then :
22819
22820else
22821  ac_cv_search_opendir=no
22822fi
22823rm conftest.$ac_ext
22824LIBS=$ac_func_search_save_LIBS
22825fi
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22827$as_echo "$ac_cv_search_opendir" >&6; }
22828ac_res=$ac_cv_search_opendir
22829if test "$ac_res" != no; then :
22830  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22831
22832fi
22833
22834fi
22835
22836
22837# Check additional headers
22838for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h float.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h malloc.h netdb.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h stddef.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/uio.h sys/wait.h utime.h wchar.h xlocale.h
22839do :
22840  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22841ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22842if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22843  cat >>confdefs.h <<_ACEOF
22844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22845_ACEOF
22846
22847fi
22848
22849done
22850
22851
22852########
22853#
22854# Checks for typedefs, structures, and compiler characteristics.
22855#
22856########
22857
22858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22859$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22860if ${ac_cv_header_stdbool_h+:} false; then :
22861  $as_echo_n "(cached) " >&6
22862else
22863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864/* end confdefs.h.  */
22865
22866             #include <stdbool.h>
22867             #ifndef bool
22868              "error: bool is not defined"
22869             #endif
22870             #ifndef false
22871              "error: false is not defined"
22872             #endif
22873             #if false
22874              "error: false is not 0"
22875             #endif
22876             #ifndef true
22877              "error: true is not defined"
22878             #endif
22879             #if true != 1
22880              "error: true is not 1"
22881             #endif
22882             #ifndef __bool_true_false_are_defined
22883              "error: __bool_true_false_are_defined is not defined"
22884             #endif
22885
22886             struct s { _Bool s: 1; _Bool t; } s;
22887
22888             char a[true == 1 ? 1 : -1];
22889             char b[false == 0 ? 1 : -1];
22890             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22891             char d[(bool) 0.5 == true ? 1 : -1];
22892             /* See body of main program for 'e'.  */
22893             char f[(_Bool) 0.0 == false ? 1 : -1];
22894             char g[true];
22895             char h[sizeof (_Bool)];
22896             char i[sizeof s.t];
22897             enum { j = false, k = true, l = false * true, m = true * 256 };
22898             /* The following fails for
22899                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22900             _Bool n[m];
22901             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22902             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22903             /* Catch a bug in an HP-UX C compiler.  See
22904                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22905                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22906              */
22907             _Bool q = true;
22908             _Bool *pq = &q;
22909
22910int
22911main ()
22912{
22913
22914             bool e = &s;
22915             *pq |= q;
22916             *pq |= ! q;
22917             /* Refer to every declared value, to avoid compiler optimizations.  */
22918             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22919                     + !m + !n + !o + !p + !q + !pq);
22920
22921  ;
22922  return 0;
22923}
22924_ACEOF
22925if ac_fn_c_try_compile "$LINENO"; then :
22926  ac_cv_header_stdbool_h=yes
22927else
22928  ac_cv_header_stdbool_h=no
22929fi
22930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931fi
22932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22933$as_echo "$ac_cv_header_stdbool_h" >&6; }
22934   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22935if test "x$ac_cv_type__Bool" = xyes; then :
22936
22937cat >>confdefs.h <<_ACEOF
22938#define HAVE__BOOL 1
22939_ACEOF
22940
22941
22942fi
22943
22944
22945if test $ac_cv_header_stdbool_h = yes; then
22946
22947$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
22948
22949fi
22950
22951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22952$as_echo_n "checking for working volatile... " >&6; }
22953if ${ac_cv_c_volatile+:} false; then :
22954  $as_echo_n "(cached) " >&6
22955else
22956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957/* end confdefs.h.  */
22958
22959int
22960main ()
22961{
22962
22963volatile int x;
22964int * volatile y = (int *) 0;
22965return !x && !y;
22966  ;
22967  return 0;
22968}
22969_ACEOF
22970if ac_fn_c_try_compile "$LINENO"; then :
22971  ac_cv_c_volatile=yes
22972else
22973  ac_cv_c_volatile=no
22974fi
22975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976fi
22977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22978$as_echo "$ac_cv_c_volatile" >&6; }
22979if test $ac_cv_c_volatile = no; then
22980
22981$as_echo "#define volatile /**/" >>confdefs.h
22982
22983fi
22984
22985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
22986$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22987if ${ac_cv_c_stringize+:} false; then :
22988  $as_echo_n "(cached) " >&6
22989else
22990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991/* end confdefs.h.  */
22992#define x(y) #y
22993
22994char *s = x(teststring);
22995_ACEOF
22996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22997  $EGREP "#teststring" >/dev/null 2>&1; then :
22998  ac_cv_c_stringize=no
22999else
23000  ac_cv_c_stringize=yes
23001fi
23002rm -f conftest*
23003
23004fi
23005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
23006$as_echo "$ac_cv_c_stringize" >&6; }
23007if test $ac_cv_c_stringize = yes; then
23008
23009$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
23010
23011fi
23012
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
23014$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23015if ${ac_cv_header_stat_broken+:} false; then :
23016  $as_echo_n "(cached) " >&6
23017else
23018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019/* end confdefs.h.  */
23020#include <sys/types.h>
23021#include <sys/stat.h>
23022
23023#if defined S_ISBLK && defined S_IFDIR
23024extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23025#endif
23026
23027#if defined S_ISBLK && defined S_IFCHR
23028extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23029#endif
23030
23031#if defined S_ISLNK && defined S_IFREG
23032extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23033#endif
23034
23035#if defined S_ISSOCK && defined S_IFREG
23036extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23037#endif
23038
23039_ACEOF
23040if ac_fn_c_try_compile "$LINENO"; then :
23041  ac_cv_header_stat_broken=no
23042else
23043  ac_cv_header_stat_broken=yes
23044fi
23045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046fi
23047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
23048$as_echo "$ac_cv_header_stat_broken" >&6; }
23049if test $ac_cv_header_stat_broken = yes; then
23050
23051$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
23052
23053fi
23054
23055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23056$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23057if ${ac_cv_header_time+:} false; then :
23058  $as_echo_n "(cached) " >&6
23059else
23060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061/* end confdefs.h.  */
23062#include <sys/types.h>
23063#include <sys/time.h>
23064#include <time.h>
23065
23066int
23067main ()
23068{
23069if ((struct tm *) 0)
23070return 0;
23071  ;
23072  return 0;
23073}
23074_ACEOF
23075if ac_fn_c_try_compile "$LINENO"; then :
23076  ac_cv_header_time=yes
23077else
23078  ac_cv_header_time=no
23079fi
23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081fi
23082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23083$as_echo "$ac_cv_header_time" >&6; }
23084if test $ac_cv_header_time = yes; then
23085
23086$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23087
23088fi
23089
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23091$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23092if ${ac_cv_struct_tm+:} false; then :
23093  $as_echo_n "(cached) " >&6
23094else
23095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096/* end confdefs.h.  */
23097#include <sys/types.h>
23098#include <time.h>
23099
23100int
23101main ()
23102{
23103struct tm tm;
23104				     int *p = &tm.tm_sec;
23105				     return !p;
23106  ;
23107  return 0;
23108}
23109_ACEOF
23110if ac_fn_c_try_compile "$LINENO"; then :
23111  ac_cv_struct_tm=time.h
23112else
23113  ac_cv_struct_tm=sys/time.h
23114fi
23115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23116fi
23117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23118$as_echo "$ac_cv_struct_tm" >&6; }
23119if test $ac_cv_struct_tm = sys/time.h; then
23120
23121$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23122
23123fi
23124
23125ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23126#include <$ac_cv_struct_tm>
23127
23128"
23129if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
23130
23131cat >>confdefs.h <<_ACEOF
23132#define HAVE_STRUCT_TM_TM_ZONE 1
23133_ACEOF
23134
23135
23136fi
23137
23138if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23139
23140$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23141
23142else
23143  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23144"
23145if test "x$ac_cv_have_decl_tzname" = xyes; then :
23146  ac_have_decl=1
23147else
23148  ac_have_decl=0
23149fi
23150
23151cat >>confdefs.h <<_ACEOF
23152#define HAVE_DECL_TZNAME $ac_have_decl
23153_ACEOF
23154
23155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23156$as_echo_n "checking for tzname... " >&6; }
23157if ${ac_cv_var_tzname+:} false; then :
23158  $as_echo_n "(cached) " >&6
23159else
23160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h.  */
23162#include <time.h>
23163#if !HAVE_DECL_TZNAME
23164extern char *tzname[];
23165#endif
23166
23167int
23168main ()
23169{
23170return tzname[0][0];
23171  ;
23172  return 0;
23173}
23174_ACEOF
23175if ac_fn_c_try_link "$LINENO"; then :
23176  ac_cv_var_tzname=yes
23177else
23178  ac_cv_var_tzname=no
23179fi
23180rm -f core conftest.err conftest.$ac_objext \
23181    conftest$ac_exeext conftest.$ac_ext
23182fi
23183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23184$as_echo "$ac_cv_var_tzname" >&6; }
23185  if test $ac_cv_var_tzname = yes; then
23186
23187$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23188
23189  fi
23190fi
23191
23192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
23193$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23194if ${ac_cv_sys_interpreter+:} false; then :
23195  $as_echo_n "(cached) " >&6
23196else
23197  echo '#! /bin/cat
23198exit 69
23199' >conftest
23200chmod u+x conftest
23201(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23202if test $? -ne 69; then
23203   ac_cv_sys_interpreter=yes
23204else
23205   ac_cv_sys_interpreter=no
23206fi
23207rm -f conftest
23208fi
23209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
23210$as_echo "$ac_cv_sys_interpreter" >&6; }
23211interpval=$ac_cv_sys_interpreter
23212
23213
23214#
23215# Checks for language qualifiers and semantics.
23216#
23217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23218$as_echo_n "checking whether char is unsigned... " >&6; }
23219if ${ac_cv_c_char_unsigned+:} false; then :
23220  $as_echo_n "(cached) " >&6
23221else
23222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223/* end confdefs.h.  */
23224$ac_includes_default
23225int
23226main ()
23227{
23228static int test_array [1 - 2 * !(((char) -1) < 0)];
23229test_array [0] = 0;
23230return test_array [0];
23231
23232  ;
23233  return 0;
23234}
23235_ACEOF
23236if ac_fn_c_try_compile "$LINENO"; then :
23237  ac_cv_c_char_unsigned=no
23238else
23239  ac_cv_c_char_unsigned=yes
23240fi
23241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242fi
23243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23244$as_echo "$ac_cv_c_char_unsigned" >&6; }
23245if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23246  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23247
23248fi
23249
23250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23251$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23252if ${ac_cv_c_const+:} false; then :
23253  $as_echo_n "(cached) " >&6
23254else
23255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23256/* end confdefs.h.  */
23257
23258int
23259main ()
23260{
23261
23262#ifndef __cplusplus
23263  /* Ultrix mips cc rejects this sort of thing.  */
23264  typedef int charset[2];
23265  const charset cs = { 0, 0 };
23266  /* SunOS 4.1.1 cc rejects this.  */
23267  char const *const *pcpcc;
23268  char **ppc;
23269  /* NEC SVR4.0.2 mips cc rejects this.  */
23270  struct point {int x, y;};
23271  static struct point const zero = {0,0};
23272  /* AIX XL C 1.02.0.0 rejects this.
23273     It does not let you subtract one const X* pointer from another in
23274     an arm of an if-expression whose if-part is not a constant
23275     expression */
23276  const char *g = "string";
23277  pcpcc = &g + (g ? g-g : 0);
23278  /* HPUX 7.0 cc rejects these. */
23279  ++pcpcc;
23280  ppc = (char**) pcpcc;
23281  pcpcc = (char const *const *) ppc;
23282  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23283    char tx;
23284    char *t = &tx;
23285    char const *s = 0 ? (char *) 0 : (char const *) 0;
23286
23287    *t++ = 0;
23288    if (s) return 0;
23289  }
23290  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23291    int x[] = {25, 17};
23292    const int *foo = &x[0];
23293    ++foo;
23294  }
23295  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23296    typedef const int *iptr;
23297    iptr p = 0;
23298    ++p;
23299  }
23300  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23301       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23302    struct s { int j; const int *ap[3]; } bx;
23303    struct s *b = &bx; b->j = 5;
23304  }
23305  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23306    const int foo = 10;
23307    if (!foo) return 0;
23308  }
23309  return !cs[0] && !zero.x;
23310#endif
23311
23312  ;
23313  return 0;
23314}
23315_ACEOF
23316if ac_fn_c_try_compile "$LINENO"; then :
23317  ac_cv_c_const=yes
23318else
23319  ac_cv_c_const=no
23320fi
23321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322fi
23323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23324$as_echo "$ac_cv_c_const" >&6; }
23325if test $ac_cv_c_const = no; then
23326
23327$as_echo "#define const /**/" >>confdefs.h
23328
23329fi
23330
23331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23332$as_echo_n "checking for inline... " >&6; }
23333if ${ac_cv_c_inline+:} false; then :
23334  $as_echo_n "(cached) " >&6
23335else
23336  ac_cv_c_inline=no
23337for ac_kw in inline __inline__ __inline; do
23338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339/* end confdefs.h.  */
23340#ifndef __cplusplus
23341typedef int foo_t;
23342static $ac_kw foo_t static_foo () {return 0; }
23343$ac_kw foo_t foo () {return 0; }
23344#endif
23345
23346_ACEOF
23347if ac_fn_c_try_compile "$LINENO"; then :
23348  ac_cv_c_inline=$ac_kw
23349fi
23350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351  test "$ac_cv_c_inline" != no && break
23352done
23353
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23356$as_echo "$ac_cv_c_inline" >&6; }
23357
23358case $ac_cv_c_inline in
23359  inline | yes) ;;
23360  *)
23361    case $ac_cv_c_inline in
23362      no) ac_val=;;
23363      *) ac_val=$ac_cv_c_inline;;
23364    esac
23365    cat >>confdefs.h <<_ACEOF
23366#ifndef __cplusplus
23367#define inline $ac_val
23368#endif
23369_ACEOF
23370    ;;
23371esac
23372
23373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
23374$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23375if ${ac_cv_c_restrict+:} false; then :
23376  $as_echo_n "(cached) " >&6
23377else
23378  ac_cv_c_restrict=no
23379   # The order here caters to the fact that C++ does not require restrict.
23380   for ac_kw in __restrict __restrict__ _Restrict restrict; do
23381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23382/* end confdefs.h.  */
23383typedef int * int_ptr;
23384	int foo (int_ptr $ac_kw ip) {
23385	return ip[0];
23386       }
23387int
23388main ()
23389{
23390int s[1];
23391	int * $ac_kw t = s;
23392	t[0] = 0;
23393	return foo(t)
23394  ;
23395  return 0;
23396}
23397_ACEOF
23398if ac_fn_c_try_compile "$LINENO"; then :
23399  ac_cv_c_restrict=$ac_kw
23400fi
23401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402     test "$ac_cv_c_restrict" != no && break
23403   done
23404
23405fi
23406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
23407$as_echo "$ac_cv_c_restrict" >&6; }
23408
23409 case $ac_cv_c_restrict in
23410   restrict) ;;
23411   no) $as_echo "#define restrict /**/" >>confdefs.h
23412 ;;
23413   *)  cat >>confdefs.h <<_ACEOF
23414#define restrict $ac_cv_c_restrict
23415_ACEOF
23416 ;;
23417 esac
23418
23419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23420$as_echo_n "checking for working volatile... " >&6; }
23421if ${ac_cv_c_volatile+:} false; then :
23422  $as_echo_n "(cached) " >&6
23423else
23424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23425/* end confdefs.h.  */
23426
23427int
23428main ()
23429{
23430
23431volatile int x;
23432int * volatile y = (int *) 0;
23433return !x && !y;
23434  ;
23435  return 0;
23436}
23437_ACEOF
23438if ac_fn_c_try_compile "$LINENO"; then :
23439  ac_cv_c_volatile=yes
23440else
23441  ac_cv_c_volatile=no
23442fi
23443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23444fi
23445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23446$as_echo "$ac_cv_c_volatile" >&6; }
23447if test $ac_cv_c_volatile = no; then
23448
23449$as_echo "#define volatile /**/" >>confdefs.h
23450
23451fi
23452
23453
23454# If words are stored with the most significant byte first (like
23455# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23457$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23458if ${ac_cv_c_bigendian+:} false; then :
23459  $as_echo_n "(cached) " >&6
23460else
23461  ac_cv_c_bigendian=unknown
23462    # See if we're dealing with a universal compiler.
23463    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464/* end confdefs.h.  */
23465#ifndef __APPLE_CC__
23466	       not a universal capable compiler
23467	     #endif
23468	     typedef int dummy;
23469
23470_ACEOF
23471if ac_fn_c_try_compile "$LINENO"; then :
23472
23473	# Check for potential -arch flags.  It is not universal unless
23474	# there are at least two -arch flags with different values.
23475	ac_arch=
23476	ac_prev=
23477	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23478	 if test -n "$ac_prev"; then
23479	   case $ac_word in
23480	     i?86 | x86_64 | ppc | ppc64)
23481	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23482		 ac_arch=$ac_word
23483	       else
23484		 ac_cv_c_bigendian=universal
23485		 break
23486	       fi
23487	       ;;
23488	   esac
23489	   ac_prev=
23490	 elif test "x$ac_word" = "x-arch"; then
23491	   ac_prev=arch
23492	 fi
23493       done
23494fi
23495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496    if test $ac_cv_c_bigendian = unknown; then
23497      # See if sys/param.h defines the BYTE_ORDER macro.
23498      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499/* end confdefs.h.  */
23500#include <sys/types.h>
23501	     #include <sys/param.h>
23502
23503int
23504main ()
23505{
23506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23507		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23508		     && LITTLE_ENDIAN)
23509	      bogus endian macros
23510	     #endif
23511
23512  ;
23513  return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_compile "$LINENO"; then :
23517  # It does; now see whether it defined to BIG_ENDIAN or not.
23518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23519/* end confdefs.h.  */
23520#include <sys/types.h>
23521		#include <sys/param.h>
23522
23523int
23524main ()
23525{
23526#if BYTE_ORDER != BIG_ENDIAN
23527		 not big endian
23528		#endif
23529
23530  ;
23531  return 0;
23532}
23533_ACEOF
23534if ac_fn_c_try_compile "$LINENO"; then :
23535  ac_cv_c_bigendian=yes
23536else
23537  ac_cv_c_bigendian=no
23538fi
23539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540fi
23541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542    fi
23543    if test $ac_cv_c_bigendian = unknown; then
23544      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23546/* end confdefs.h.  */
23547#include <limits.h>
23548
23549int
23550main ()
23551{
23552#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23553	      bogus endian macros
23554	     #endif
23555
23556  ;
23557  return 0;
23558}
23559_ACEOF
23560if ac_fn_c_try_compile "$LINENO"; then :
23561  # It does; now see whether it defined to _BIG_ENDIAN or not.
23562	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563/* end confdefs.h.  */
23564#include <limits.h>
23565
23566int
23567main ()
23568{
23569#ifndef _BIG_ENDIAN
23570		 not big endian
23571		#endif
23572
23573  ;
23574  return 0;
23575}
23576_ACEOF
23577if ac_fn_c_try_compile "$LINENO"; then :
23578  ac_cv_c_bigendian=yes
23579else
23580  ac_cv_c_bigendian=no
23581fi
23582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583fi
23584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585    fi
23586    if test $ac_cv_c_bigendian = unknown; then
23587      # Compile a test program.
23588      if test "$cross_compiling" = yes; then :
23589  # Try to guess by grepping values from an object file.
23590	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591/* end confdefs.h.  */
23592short int ascii_mm[] =
23593		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23594		short int ascii_ii[] =
23595		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23596		int use_ascii (int i) {
23597		  return ascii_mm[i] + ascii_ii[i];
23598		}
23599		short int ebcdic_ii[] =
23600		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23601		short int ebcdic_mm[] =
23602		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23603		int use_ebcdic (int i) {
23604		  return ebcdic_mm[i] + ebcdic_ii[i];
23605		}
23606		extern int foo;
23607
23608int
23609main ()
23610{
23611return use_ascii (foo) == use_ebcdic (foo);
23612  ;
23613  return 0;
23614}
23615_ACEOF
23616if ac_fn_c_try_compile "$LINENO"; then :
23617  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23618	      ac_cv_c_bigendian=yes
23619	    fi
23620	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23621	      if test "$ac_cv_c_bigendian" = unknown; then
23622		ac_cv_c_bigendian=no
23623	      else
23624		# finding both strings is unlikely to happen, but who knows?
23625		ac_cv_c_bigendian=unknown
23626	      fi
23627	    fi
23628fi
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630else
23631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632/* end confdefs.h.  */
23633$ac_includes_default
23634int
23635main ()
23636{
23637
23638	     /* Are we little or big endian?  From Harbison&Steele.  */
23639	     union
23640	     {
23641	       long int l;
23642	       char c[sizeof (long int)];
23643	     } u;
23644	     u.l = 1;
23645	     return u.c[sizeof (long int) - 1] == 1;
23646
23647  ;
23648  return 0;
23649}
23650_ACEOF
23651if ac_fn_c_try_run "$LINENO"; then :
23652  ac_cv_c_bigendian=no
23653else
23654  ac_cv_c_bigendian=yes
23655fi
23656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23657  conftest.$ac_objext conftest.beam conftest.$ac_ext
23658fi
23659
23660    fi
23661fi
23662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23663$as_echo "$ac_cv_c_bigendian" >&6; }
23664 case $ac_cv_c_bigendian in #(
23665   yes)
23666     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23667;; #(
23668   no)
23669      ;; #(
23670   universal)
23671
23672$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23673
23674     ;; #(
23675   *)
23676     as_fn_error $? "unknown endianness
23677 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23678 esac
23679
23680
23681# Define to a suitable type, if standard headers do not define it.
23682ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23683case $ac_cv_c_int8_t in #(
23684  no|yes) ;; #(
23685  *)
23686
23687cat >>confdefs.h <<_ACEOF
23688#define int8_t $ac_cv_c_int8_t
23689_ACEOF
23690;;
23691esac
23692
23693ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23694case $ac_cv_c_int16_t in #(
23695  no|yes) ;; #(
23696  *)
23697
23698cat >>confdefs.h <<_ACEOF
23699#define int16_t $ac_cv_c_int16_t
23700_ACEOF
23701;;
23702esac
23703
23704ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23705case $ac_cv_c_int32_t in #(
23706  no|yes) ;; #(
23707  *)
23708
23709cat >>confdefs.h <<_ACEOF
23710#define int32_t $ac_cv_c_int32_t
23711_ACEOF
23712;;
23713esac
23714
23715ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23716case $ac_cv_c_int64_t in #(
23717  no|yes) ;; #(
23718  *)
23719
23720cat >>confdefs.h <<_ACEOF
23721#define int64_t $ac_cv_c_int64_t
23722_ACEOF
23723;;
23724esac
23725
23726
23727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23728$as_echo_n "checking for unsigned long long int... " >&6; }
23729if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23730  $as_echo_n "(cached) " >&6
23731else
23732  ac_cv_type_unsigned_long_long_int=yes
23733     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735/* end confdefs.h.  */
23736
23737  /* For now, do not test the preprocessor; as of 2007 there are too many
23738	 implementations with broken preprocessors.  Perhaps this can
23739	 be revisited in 2012.  In the meantime, code should not expect
23740	 #if to work with literals wider than 32 bits.  */
23741      /* Test literals.  */
23742      long long int ll = 9223372036854775807ll;
23743      long long int nll = -9223372036854775807LL;
23744      unsigned long long int ull = 18446744073709551615ULL;
23745      /* Test constant expressions.   */
23746      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23747		     ? 1 : -1)];
23748      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23749		     ? 1 : -1)];
23750      int i = 63;
23751int
23752main ()
23753{
23754/* Test availability of runtime routines for shift and division.  */
23755      long long int llmax = 9223372036854775807ll;
23756      unsigned long long int ullmax = 18446744073709551615ull;
23757      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23758	      | (llmax / ll) | (llmax % ll)
23759	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23760	      | (ullmax / ull) | (ullmax % ull));
23761  ;
23762  return 0;
23763}
23764
23765_ACEOF
23766if ac_fn_c_try_link "$LINENO"; then :
23767
23768else
23769  ac_cv_type_unsigned_long_long_int=no
23770fi
23771rm -f core conftest.err conftest.$ac_objext \
23772    conftest$ac_exeext conftest.$ac_ext
23773     fi
23774fi
23775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23776$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23777  if test $ac_cv_type_unsigned_long_long_int = yes; then
23778
23779$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23780
23781  fi
23782
23783
23784
23785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23786$as_echo_n "checking for long long int... " >&6; }
23787if ${ac_cv_type_long_long_int+:} false; then :
23788  $as_echo_n "(cached) " >&6
23789else
23790  ac_cv_type_long_long_int=yes
23791      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23792	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23793	if test $ac_cv_type_long_long_int = yes; then
23794	  	  	  	  if test "$cross_compiling" = yes; then :
23795  :
23796else
23797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23798/* end confdefs.h.  */
23799#include <limits.h>
23800		 #ifndef LLONG_MAX
23801		 # define HALF \
23802			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23803		 # define LLONG_MAX (HALF - 1 + HALF)
23804		 #endif
23805int
23806main ()
23807{
23808long long int n = 1;
23809		 int i;
23810		 for (i = 0; ; i++)
23811		   {
23812		     long long int m = n << i;
23813		     if (m >> i != n)
23814		       return 1;
23815		     if (LLONG_MAX / 2 < m)
23816		       break;
23817		   }
23818		 return 0;
23819  ;
23820  return 0;
23821}
23822_ACEOF
23823if ac_fn_c_try_run "$LINENO"; then :
23824
23825else
23826  ac_cv_type_long_long_int=no
23827fi
23828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23829  conftest.$ac_objext conftest.beam conftest.$ac_ext
23830fi
23831
23832	fi
23833      fi
23834fi
23835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23836$as_echo "$ac_cv_type_long_long_int" >&6; }
23837  if test $ac_cv_type_long_long_int = yes; then
23838
23839$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23840
23841  fi
23842
23843
23844
23845  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23846if test "x$ac_cv_type_intmax_t" = xyes; then :
23847
23848$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23849
23850else
23851  test $ac_cv_type_long_long_int = yes \
23852       && ac_type='long long int' \
23853       || ac_type='long int'
23854
23855cat >>confdefs.h <<_ACEOF
23856#define intmax_t $ac_type
23857_ACEOF
23858
23859fi
23860
23861
23862
23863  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23864if test "x$ac_cv_type_intptr_t" = xyes; then :
23865
23866$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
23867
23868else
23869  for ac_type in 'int' 'long int' 'long long int'; do
23870       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871/* end confdefs.h.  */
23872$ac_includes_default
23873int
23874main ()
23875{
23876static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23877test_array [0] = 0;
23878return test_array [0];
23879
23880  ;
23881  return 0;
23882}
23883_ACEOF
23884if ac_fn_c_try_compile "$LINENO"; then :
23885
23886cat >>confdefs.h <<_ACEOF
23887#define intptr_t $ac_type
23888_ACEOF
23889
23890	  ac_type=
23891fi
23892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893       test -z "$ac_type" && break
23894     done
23895fi
23896
23897
23898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23899$as_echo_n "checking for mbstate_t... " >&6; }
23900if ${ac_cv_type_mbstate_t+:} false; then :
23901  $as_echo_n "(cached) " >&6
23902else
23903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904/* end confdefs.h.  */
23905$ac_includes_default
23906#	    include <wchar.h>
23907int
23908main ()
23909{
23910mbstate_t x; return sizeof x;
23911  ;
23912  return 0;
23913}
23914_ACEOF
23915if ac_fn_c_try_compile "$LINENO"; then :
23916  ac_cv_type_mbstate_t=yes
23917else
23918  ac_cv_type_mbstate_t=no
23919fi
23920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921fi
23922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23923$as_echo "$ac_cv_type_mbstate_t" >&6; }
23924   if test $ac_cv_type_mbstate_t = yes; then
23925
23926$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23927
23928   else
23929
23930$as_echo "#define mbstate_t int" >>confdefs.h
23931
23932   fi
23933ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23934if test "x$ac_cv_type_mode_t" = xyes; then :
23935
23936else
23937
23938cat >>confdefs.h <<_ACEOF
23939#define mode_t int
23940_ACEOF
23941
23942fi
23943
23944ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23945if test "x$ac_cv_type_off_t" = xyes; then :
23946
23947else
23948
23949cat >>confdefs.h <<_ACEOF
23950#define off_t long int
23951_ACEOF
23952
23953fi
23954
23955ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23956if test "x$ac_cv_type_pid_t" = xyes; then :
23957
23958else
23959
23960cat >>confdefs.h <<_ACEOF
23961#define pid_t int
23962_ACEOF
23963
23964fi
23965
23966ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23967if test "x$ac_cv_type_size_t" = xyes; then :
23968
23969else
23970
23971cat >>confdefs.h <<_ACEOF
23972#define size_t unsigned int
23973_ACEOF
23974
23975fi
23976
23977ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23978if test "x$ac_cv_type_ssize_t" = xyes; then :
23979
23980else
23981
23982cat >>confdefs.h <<_ACEOF
23983#define ssize_t int
23984_ACEOF
23985
23986fi
23987
23988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23989$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23990if ${ac_cv_type_uid_t+:} false; then :
23991  $as_echo_n "(cached) " >&6
23992else
23993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23994/* end confdefs.h.  */
23995#include <sys/types.h>
23996
23997_ACEOF
23998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23999  $EGREP "uid_t" >/dev/null 2>&1; then :
24000  ac_cv_type_uid_t=yes
24001else
24002  ac_cv_type_uid_t=no
24003fi
24004rm -f conftest*
24005
24006fi
24007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24008$as_echo "$ac_cv_type_uid_t" >&6; }
24009if test $ac_cv_type_uid_t = no; then
24010
24011$as_echo "#define uid_t int" >>confdefs.h
24012
24013
24014$as_echo "#define gid_t int" >>confdefs.h
24015
24016fi
24017
24018ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24019case $ac_cv_c_uint8_t in #(
24020  no|yes) ;; #(
24021  *)
24022
24023$as_echo "#define _UINT8_T 1" >>confdefs.h
24024
24025
24026cat >>confdefs.h <<_ACEOF
24027#define uint8_t $ac_cv_c_uint8_t
24028_ACEOF
24029;;
24030  esac
24031
24032ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24033case $ac_cv_c_uint16_t in #(
24034  no|yes) ;; #(
24035  *)
24036
24037
24038cat >>confdefs.h <<_ACEOF
24039#define uint16_t $ac_cv_c_uint16_t
24040_ACEOF
24041;;
24042  esac
24043
24044ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24045case $ac_cv_c_uint32_t in #(
24046  no|yes) ;; #(
24047  *)
24048
24049$as_echo "#define _UINT32_T 1" >>confdefs.h
24050
24051
24052cat >>confdefs.h <<_ACEOF
24053#define uint32_t $ac_cv_c_uint32_t
24054_ACEOF
24055;;
24056  esac
24057
24058ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24059case $ac_cv_c_uint64_t in #(
24060  no|yes) ;; #(
24061  *)
24062
24063$as_echo "#define _UINT64_T 1" >>confdefs.h
24064
24065
24066cat >>confdefs.h <<_ACEOF
24067#define uint64_t $ac_cv_c_uint64_t
24068_ACEOF
24069;;
24070  esac
24071
24072
24073
24074  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24075if test "x$ac_cv_type_uintmax_t" = xyes; then :
24076
24077$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24078
24079else
24080  test $ac_cv_type_unsigned_long_long_int = yes \
24081       && ac_type='unsigned long long int' \
24082       || ac_type='unsigned long int'
24083
24084cat >>confdefs.h <<_ACEOF
24085#define uintmax_t $ac_type
24086_ACEOF
24087
24088fi
24089
24090
24091
24092  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24093if test "x$ac_cv_type_uintptr_t" = xyes; then :
24094
24095$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24096
24097else
24098  for ac_type in 'unsigned int' 'unsigned long int' \
24099	'unsigned long long int'; do
24100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101/* end confdefs.h.  */
24102$ac_includes_default
24103int
24104main ()
24105{
24106static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24107test_array [0] = 0;
24108return test_array [0];
24109
24110  ;
24111  return 0;
24112}
24113_ACEOF
24114if ac_fn_c_try_compile "$LINENO"; then :
24115
24116cat >>confdefs.h <<_ACEOF
24117#define uintptr_t $ac_type
24118_ACEOF
24119
24120	  ac_type=
24121fi
24122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123       test -z "$ac_type" && break
24124     done
24125fi
24126
24127
24128
24129# Float_t and double_t are intended to be the the most efficient type.
24130# The cast to long int works around a bug in the HP C Compiler
24131# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24132# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24133# This bug is HP SR number 8606223364.
24134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
24135$as_echo_n "checking size of float_t... " >&6; }
24136if ${ac_cv_sizeof_float_t+:} false; then :
24137  $as_echo_n "(cached) " >&6
24138else
24139  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
24140"; then :
24141
24142else
24143  if test "$ac_cv_type_float_t" = yes; then
24144     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24146as_fn_error 77 "cannot compute sizeof (float_t)
24147See \`config.log' for more details" "$LINENO" 5; }
24148   else
24149     ac_cv_sizeof_float_t=0
24150   fi
24151fi
24152
24153fi
24154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
24155$as_echo "$ac_cv_sizeof_float_t" >&6; }
24156
24157
24158
24159cat >>confdefs.h <<_ACEOF
24160#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
24161_ACEOF
24162
24163
24164# The cast to long int works around a bug in the HP C Compiler
24165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24167# This bug is HP SR number 8606223364.
24168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
24169$as_echo_n "checking size of double_t... " >&6; }
24170if ${ac_cv_sizeof_double_t+:} false; then :
24171  $as_echo_n "(cached) " >&6
24172else
24173  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
24174"; then :
24175
24176else
24177  if test "$ac_cv_type_double_t" = yes; then
24178     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24180as_fn_error 77 "cannot compute sizeof (double_t)
24181See \`config.log' for more details" "$LINENO" 5; }
24182   else
24183     ac_cv_sizeof_double_t=0
24184   fi
24185fi
24186
24187fi
24188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24189$as_echo "$ac_cv_sizeof_double_t" >&6; }
24190
24191
24192
24193cat >>confdefs.h <<_ACEOF
24194#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24195_ACEOF
24196
24197
24198
24199# Get size of float, double and long double for comparaison.
24200# The cast to long int works around a bug in the HP C Compiler
24201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24203# This bug is HP SR number 8606223364.
24204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24205$as_echo_n "checking size of float... " >&6; }
24206if ${ac_cv_sizeof_float+:} false; then :
24207  $as_echo_n "(cached) " >&6
24208else
24209  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
24210
24211else
24212  if test "$ac_cv_type_float" = yes; then
24213     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24215as_fn_error 77 "cannot compute sizeof (float)
24216See \`config.log' for more details" "$LINENO" 5; }
24217   else
24218     ac_cv_sizeof_float=0
24219   fi
24220fi
24221
24222fi
24223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24224$as_echo "$ac_cv_sizeof_float" >&6; }
24225
24226
24227
24228cat >>confdefs.h <<_ACEOF
24229#define SIZEOF_FLOAT $ac_cv_sizeof_float
24230_ACEOF
24231
24232
24233# The cast to long int works around a bug in the HP C Compiler
24234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24236# This bug is HP SR number 8606223364.
24237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24238$as_echo_n "checking size of double... " >&6; }
24239if ${ac_cv_sizeof_double+:} false; then :
24240  $as_echo_n "(cached) " >&6
24241else
24242  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
24243
24244else
24245  if test "$ac_cv_type_double" = yes; then
24246     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24248as_fn_error 77 "cannot compute sizeof (double)
24249See \`config.log' for more details" "$LINENO" 5; }
24250   else
24251     ac_cv_sizeof_double=0
24252   fi
24253fi
24254
24255fi
24256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24257$as_echo "$ac_cv_sizeof_double" >&6; }
24258
24259
24260
24261cat >>confdefs.h <<_ACEOF
24262#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24263_ACEOF
24264
24265
24266# The cast to long int works around a bug in the HP C Compiler
24267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24269# This bug is HP SR number 8606223364.
24270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24271$as_echo_n "checking size of long double... " >&6; }
24272if ${ac_cv_sizeof_long_double+:} false; then :
24273  $as_echo_n "(cached) " >&6
24274else
24275  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
24276
24277else
24278  if test "$ac_cv_type_long_double" = yes; then
24279     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24281as_fn_error 77 "cannot compute sizeof (long double)
24282See \`config.log' for more details" "$LINENO" 5; }
24283   else
24284     ac_cv_sizeof_long_double=0
24285   fi
24286fi
24287
24288fi
24289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24290$as_echo "$ac_cv_sizeof_long_double" >&6; }
24291
24292
24293
24294cat >>confdefs.h <<_ACEOF
24295#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24296_ACEOF
24297
24298
24299
24300# Obtain size of a 'unsigned long long' and define as
24301# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
24302# supported then the value defined is zero.
24303# The cast to long int works around a bug in the HP C Compiler
24304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24306# This bug is HP SR number 8606223364.
24307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
24308$as_echo_n "checking size of unsigned long long... " >&6; }
24309if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
24310  $as_echo_n "(cached) " >&6
24311else
24312  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
24313
24314else
24315  if test "$ac_cv_type_unsigned_long_long" = yes; then
24316     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24318as_fn_error 77 "cannot compute sizeof (unsigned long long)
24319See \`config.log' for more details" "$LINENO" 5; }
24320   else
24321     ac_cv_sizeof_unsigned_long_long=0
24322   fi
24323fi
24324
24325fi
24326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
24327$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24328
24329
24330
24331cat >>confdefs.h <<_ACEOF
24332#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24333_ACEOF
24334
24335
24336# The cast to long int works around a bug in the HP C Compiler
24337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24339# This bug is HP SR number 8606223364.
24340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24341$as_echo_n "checking size of ssize_t... " >&6; }
24342if ${ac_cv_sizeof_ssize_t+:} false; then :
24343  $as_echo_n "(cached) " >&6
24344else
24345  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
24346
24347else
24348  if test "$ac_cv_type_ssize_t" = yes; then
24349     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24351as_fn_error 77 "cannot compute sizeof (ssize_t)
24352See \`config.log' for more details" "$LINENO" 5; }
24353   else
24354     ac_cv_sizeof_ssize_t=0
24355   fi
24356fi
24357
24358fi
24359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24360$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24361
24362
24363
24364cat >>confdefs.h <<_ACEOF
24365#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24366_ACEOF
24367
24368
24369
24370# The cast to long int works around a bug in the HP C Compiler
24371# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24372# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24373# This bug is HP SR number 8606223364.
24374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
24375$as_echo_n "checking size of void *... " >&6; }
24376if ${ac_cv_sizeof_void_p+:} false; then :
24377  $as_echo_n "(cached) " >&6
24378else
24379  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
24380
24381else
24382  if test "$ac_cv_type_void_p" = yes; then
24383     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24385as_fn_error 77 "cannot compute sizeof (void *)
24386See \`config.log' for more details" "$LINENO" 5; }
24387   else
24388     ac_cv_sizeof_void_p=0
24389   fi
24390fi
24391
24392fi
24393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
24394$as_echo "$ac_cv_sizeof_void_p" >&6; }
24395
24396
24397
24398cat >>confdefs.h <<_ACEOF
24399#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24400_ACEOF
24401
24402
24403
24404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
24405$as_echo_n "checking whether our compiler supports __func__... " >&6; }
24406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24407/* end confdefs.h.  */
24408
24409int
24410main ()
24411{
24412{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24413  ;
24414  return 0;
24415}
24416_ACEOF
24417if ac_fn_c_try_compile "$LINENO"; then :
24418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24419$as_echo "yes" >&6; }
24420else
24421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24422$as_echo "no" >&6; }
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
24424$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
24425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24426/* end confdefs.h.  */
24427
24428int
24429main ()
24430{
24431{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24432  ;
24433  return 0;
24434}
24435_ACEOF
24436if ac_fn_c_try_compile "$LINENO"; then :
24437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24438$as_echo "yes" >&6; }
24439
24440$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
24441
24442else
24443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24444$as_echo "no" >&6; }
24445
24446$as_echo "#define __func__ __FILE__" >>confdefs.h
24447
24448fi
24449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24450fi
24451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24452
24453########
24454#
24455# Check for functions
24456#
24457########
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24459$as_echo_n "checking whether closedir returns void... " >&6; }
24460if ${ac_cv_func_closedir_void+:} false; then :
24461  $as_echo_n "(cached) " >&6
24462else
24463  if test "$cross_compiling" = yes; then :
24464  ac_cv_func_closedir_void=yes
24465else
24466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467/* end confdefs.h.  */
24468$ac_includes_default
24469#include <$ac_header_dirent>
24470#ifndef __cplusplus
24471int closedir ();
24472#endif
24473
24474int
24475main ()
24476{
24477return closedir (opendir (".")) != 0;
24478  ;
24479  return 0;
24480}
24481_ACEOF
24482if ac_fn_c_try_run "$LINENO"; then :
24483  ac_cv_func_closedir_void=no
24484else
24485  ac_cv_func_closedir_void=yes
24486fi
24487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24488  conftest.$ac_objext conftest.beam conftest.$ac_ext
24489fi
24490
24491fi
24492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24493$as_echo "$ac_cv_func_closedir_void" >&6; }
24494if test $ac_cv_func_closedir_void = yes; then
24495
24496$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24497
24498fi
24499
24500
24501
24502
24503  for ac_header in $ac_header_list
24504do :
24505  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24506ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24507"
24508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24509  cat >>confdefs.h <<_ACEOF
24510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24511_ACEOF
24512
24513fi
24514
24515done
24516
24517
24518
24519
24520
24521
24522
24523
24524for ac_func in getpagesize
24525do :
24526  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24527if test "x$ac_cv_func_getpagesize" = xyes; then :
24528  cat >>confdefs.h <<_ACEOF
24529#define HAVE_GETPAGESIZE 1
24530_ACEOF
24531
24532fi
24533done
24534
24535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24536$as_echo_n "checking for working mmap... " >&6; }
24537if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24538  $as_echo_n "(cached) " >&6
24539else
24540  if test "$cross_compiling" = yes; then :
24541  ac_cv_func_mmap_fixed_mapped=no
24542else
24543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544/* end confdefs.h.  */
24545$ac_includes_default
24546/* malloc might have been renamed as rpl_malloc. */
24547#undef malloc
24548
24549/* Thanks to Mike Haertel and Jim Avera for this test.
24550   Here is a matrix of mmap possibilities:
24551	mmap private not fixed
24552	mmap private fixed at somewhere currently unmapped
24553	mmap private fixed at somewhere already mapped
24554	mmap shared not fixed
24555	mmap shared fixed at somewhere currently unmapped
24556	mmap shared fixed at somewhere already mapped
24557   For private mappings, we should verify that changes cannot be read()
24558   back from the file, nor mmap's back from the file at a different
24559   address.  (There have been systems where private was not correctly
24560   implemented like the infamous i386 svr4.0, and systems where the
24561   VM page cache was not coherent with the file system buffer cache
24562   like early versions of FreeBSD and possibly contemporary NetBSD.)
24563   For shared mappings, we should conversely verify that changes get
24564   propagated back to all the places they're supposed to be.
24565
24566   Grep wants private fixed already mapped.
24567   The main things grep needs to know about mmap are:
24568   * does it exist and is it safe to write into the mmap'd area
24569   * how to use it (BSD variants)  */
24570
24571#include <fcntl.h>
24572#include <sys/mman.h>
24573
24574#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24575char *malloc ();
24576#endif
24577
24578/* This mess was copied from the GNU getpagesize.h.  */
24579#ifndef HAVE_GETPAGESIZE
24580# ifdef _SC_PAGESIZE
24581#  define getpagesize() sysconf(_SC_PAGESIZE)
24582# else /* no _SC_PAGESIZE */
24583#  ifdef HAVE_SYS_PARAM_H
24584#   include <sys/param.h>
24585#   ifdef EXEC_PAGESIZE
24586#    define getpagesize() EXEC_PAGESIZE
24587#   else /* no EXEC_PAGESIZE */
24588#    ifdef NBPG
24589#     define getpagesize() NBPG * CLSIZE
24590#     ifndef CLSIZE
24591#      define CLSIZE 1
24592#     endif /* no CLSIZE */
24593#    else /* no NBPG */
24594#     ifdef NBPC
24595#      define getpagesize() NBPC
24596#     else /* no NBPC */
24597#      ifdef PAGESIZE
24598#       define getpagesize() PAGESIZE
24599#      endif /* PAGESIZE */
24600#     endif /* no NBPC */
24601#    endif /* no NBPG */
24602#   endif /* no EXEC_PAGESIZE */
24603#  else /* no HAVE_SYS_PARAM_H */
24604#   define getpagesize() 8192	/* punt totally */
24605#  endif /* no HAVE_SYS_PARAM_H */
24606# endif /* no _SC_PAGESIZE */
24607
24608#endif /* no HAVE_GETPAGESIZE */
24609
24610int
24611main ()
24612{
24613  char *data, *data2, *data3;
24614  const char *cdata2;
24615  int i, pagesize;
24616  int fd, fd2;
24617
24618  pagesize = getpagesize ();
24619
24620  /* First, make a file with some known garbage in it. */
24621  data = (char *) malloc (pagesize);
24622  if (!data)
24623    return 1;
24624  for (i = 0; i < pagesize; ++i)
24625    *(data + i) = rand ();
24626  umask (0);
24627  fd = creat ("conftest.mmap", 0600);
24628  if (fd < 0)
24629    return 2;
24630  if (write (fd, data, pagesize) != pagesize)
24631    return 3;
24632  close (fd);
24633
24634  /* Next, check that the tail of a page is zero-filled.  File must have
24635     non-zero length, otherwise we risk SIGBUS for entire page.  */
24636  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24637  if (fd2 < 0)
24638    return 4;
24639  cdata2 = "";
24640  if (write (fd2, cdata2, 1) != 1)
24641    return 5;
24642  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24643  if (data2 == MAP_FAILED)
24644    return 6;
24645  for (i = 0; i < pagesize; ++i)
24646    if (*(data2 + i))
24647      return 7;
24648  close (fd2);
24649  if (munmap (data2, pagesize))
24650    return 8;
24651
24652  /* Next, try to mmap the file at a fixed address which already has
24653     something else allocated at it.  If we can, also make sure that
24654     we see the same garbage.  */
24655  fd = open ("conftest.mmap", O_RDWR);
24656  if (fd < 0)
24657    return 9;
24658  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24659		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24660    return 10;
24661  for (i = 0; i < pagesize; ++i)
24662    if (*(data + i) != *(data2 + i))
24663      return 11;
24664
24665  /* Finally, make sure that changes to the mapped area do not
24666     percolate back to the file as seen by read().  (This is a bug on
24667     some variants of i386 svr4.0.)  */
24668  for (i = 0; i < pagesize; ++i)
24669    *(data2 + i) = *(data2 + i) + 1;
24670  data3 = (char *) malloc (pagesize);
24671  if (!data3)
24672    return 12;
24673  if (read (fd, data3, pagesize) != pagesize)
24674    return 13;
24675  for (i = 0; i < pagesize; ++i)
24676    if (*(data + i) != *(data3 + i))
24677      return 14;
24678  close (fd);
24679  return 0;
24680}
24681_ACEOF
24682if ac_fn_c_try_run "$LINENO"; then :
24683  ac_cv_func_mmap_fixed_mapped=yes
24684else
24685  ac_cv_func_mmap_fixed_mapped=no
24686fi
24687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24688  conftest.$ac_objext conftest.beam conftest.$ac_ext
24689fi
24690
24691fi
24692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24693$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24694if test $ac_cv_func_mmap_fixed_mapped = yes; then
24695
24696$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24697
24698fi
24699rm -f conftest.mmap conftest.txt
24700
24701for ac_header in vfork.h
24702do :
24703  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24704if test "x$ac_cv_header_vfork_h" = xyes; then :
24705  cat >>confdefs.h <<_ACEOF
24706#define HAVE_VFORK_H 1
24707_ACEOF
24708
24709fi
24710
24711done
24712
24713for ac_func in fork vfork
24714do :
24715  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24716ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24717if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24718  cat >>confdefs.h <<_ACEOF
24719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24720_ACEOF
24721
24722fi
24723done
24724
24725if test "x$ac_cv_func_fork" = xyes; then
24726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24727$as_echo_n "checking for working fork... " >&6; }
24728if ${ac_cv_func_fork_works+:} false; then :
24729  $as_echo_n "(cached) " >&6
24730else
24731  if test "$cross_compiling" = yes; then :
24732  ac_cv_func_fork_works=cross
24733else
24734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735/* end confdefs.h.  */
24736$ac_includes_default
24737int
24738main ()
24739{
24740
24741	  /* By Ruediger Kuhlmann. */
24742	  return fork () < 0;
24743
24744  ;
24745  return 0;
24746}
24747_ACEOF
24748if ac_fn_c_try_run "$LINENO"; then :
24749  ac_cv_func_fork_works=yes
24750else
24751  ac_cv_func_fork_works=no
24752fi
24753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24754  conftest.$ac_objext conftest.beam conftest.$ac_ext
24755fi
24756
24757fi
24758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24759$as_echo "$ac_cv_func_fork_works" >&6; }
24760
24761else
24762  ac_cv_func_fork_works=$ac_cv_func_fork
24763fi
24764if test "x$ac_cv_func_fork_works" = xcross; then
24765  case $host in
24766    *-*-amigaos* | *-*-msdosdjgpp*)
24767      # Override, as these systems have only a dummy fork() stub
24768      ac_cv_func_fork_works=no
24769      ;;
24770    *)
24771      ac_cv_func_fork_works=yes
24772      ;;
24773  esac
24774  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24775$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24776fi
24777ac_cv_func_vfork_works=$ac_cv_func_vfork
24778if test "x$ac_cv_func_vfork" = xyes; then
24779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24780$as_echo_n "checking for working vfork... " >&6; }
24781if ${ac_cv_func_vfork_works+:} false; then :
24782  $as_echo_n "(cached) " >&6
24783else
24784  if test "$cross_compiling" = yes; then :
24785  ac_cv_func_vfork_works=cross
24786else
24787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788/* end confdefs.h.  */
24789/* Thanks to Paul Eggert for this test.  */
24790$ac_includes_default
24791#include <sys/wait.h>
24792#ifdef HAVE_VFORK_H
24793# include <vfork.h>
24794#endif
24795/* On some sparc systems, changes by the child to local and incoming
24796   argument registers are propagated back to the parent.  The compiler
24797   is told about this with #include <vfork.h>, but some compilers
24798   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24799   static variable whose address is put into a register that is
24800   clobbered by the vfork.  */
24801static void
24802#ifdef __cplusplus
24803sparc_address_test (int arg)
24804# else
24805sparc_address_test (arg) int arg;
24806#endif
24807{
24808  static pid_t child;
24809  if (!child) {
24810    child = vfork ();
24811    if (child < 0) {
24812      perror ("vfork");
24813      _exit(2);
24814    }
24815    if (!child) {
24816      arg = getpid();
24817      write(-1, "", 0);
24818      _exit (arg);
24819    }
24820  }
24821}
24822
24823int
24824main ()
24825{
24826  pid_t parent = getpid ();
24827  pid_t child;
24828
24829  sparc_address_test (0);
24830
24831  child = vfork ();
24832
24833  if (child == 0) {
24834    /* Here is another test for sparc vfork register problems.  This
24835       test uses lots of local variables, at least as many local
24836       variables as main has allocated so far including compiler
24837       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24838       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24839       reuse the register of parent for one of the local variables,
24840       since it will think that parent can't possibly be used any more
24841       in this routine.  Assigning to the local variable will thus
24842       munge parent in the parent process.  */
24843    pid_t
24844      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24845      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24846    /* Convince the compiler that p..p7 are live; otherwise, it might
24847       use the same hardware register for all 8 local variables.  */
24848    if (p != p1 || p != p2 || p != p3 || p != p4
24849	|| p != p5 || p != p6 || p != p7)
24850      _exit(1);
24851
24852    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24853       from child file descriptors.  If the child closes a descriptor
24854       before it execs or exits, this munges the parent's descriptor
24855       as well.  Test for this by closing stdout in the child.  */
24856    _exit(close(fileno(stdout)) != 0);
24857  } else {
24858    int status;
24859    struct stat st;
24860
24861    while (wait(&status) != child)
24862      ;
24863    return (
24864	 /* Was there some problem with vforking?  */
24865	 child < 0
24866
24867	 /* Did the child fail?  (This shouldn't happen.)  */
24868	 || status
24869
24870	 /* Did the vfork/compiler bug occur?  */
24871	 || parent != getpid()
24872
24873	 /* Did the file descriptor bug occur?  */
24874	 || fstat(fileno(stdout), &st) != 0
24875	 );
24876  }
24877}
24878_ACEOF
24879if ac_fn_c_try_run "$LINENO"; then :
24880  ac_cv_func_vfork_works=yes
24881else
24882  ac_cv_func_vfork_works=no
24883fi
24884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24885  conftest.$ac_objext conftest.beam conftest.$ac_ext
24886fi
24887
24888fi
24889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24890$as_echo "$ac_cv_func_vfork_works" >&6; }
24891
24892fi;
24893if test "x$ac_cv_func_fork_works" = xcross; then
24894  ac_cv_func_vfork_works=$ac_cv_func_vfork
24895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24896$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24897fi
24898
24899if test "x$ac_cv_func_vfork_works" = xyes; then
24900
24901$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24902
24903else
24904
24905$as_echo "#define vfork fork" >>confdefs.h
24906
24907fi
24908if test "x$ac_cv_func_fork_works" = xyes; then
24909
24910$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24911
24912fi
24913
24914for ac_header in stdlib.h
24915do :
24916  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24917if test "x$ac_cv_header_stdlib_h" = xyes; then :
24918  cat >>confdefs.h <<_ACEOF
24919#define HAVE_STDLIB_H 1
24920_ACEOF
24921
24922fi
24923
24924done
24925
24926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24927$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24928if ${ac_cv_func_malloc_0_nonnull+:} false; then :
24929  $as_echo_n "(cached) " >&6
24930else
24931  if test "$cross_compiling" = yes; then :
24932  ac_cv_func_malloc_0_nonnull=no
24933else
24934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24935/* end confdefs.h.  */
24936#if defined STDC_HEADERS || defined HAVE_STDLIB_H
24937# include <stdlib.h>
24938#else
24939char *malloc ();
24940#endif
24941
24942int
24943main ()
24944{
24945return ! malloc (0);
24946  ;
24947  return 0;
24948}
24949_ACEOF
24950if ac_fn_c_try_run "$LINENO"; then :
24951  ac_cv_func_malloc_0_nonnull=yes
24952else
24953  ac_cv_func_malloc_0_nonnull=no
24954fi
24955rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24956  conftest.$ac_objext conftest.beam conftest.$ac_ext
24957fi
24958
24959fi
24960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24961$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24962if test $ac_cv_func_malloc_0_nonnull = yes; then :
24963
24964$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
24965
24966else
24967  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
24968
24969   case " $LIBOBJS " in
24970  *" malloc.$ac_objext "* ) ;;
24971  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
24972 ;;
24973esac
24974
24975
24976$as_echo "#define malloc rpl_malloc" >>confdefs.h
24977
24978fi
24979
24980
24981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24982$as_echo_n "checking for working memcmp... " >&6; }
24983if ${ac_cv_func_memcmp_working+:} false; then :
24984  $as_echo_n "(cached) " >&6
24985else
24986  if test "$cross_compiling" = yes; then :
24987  ac_cv_func_memcmp_working=no
24988else
24989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990/* end confdefs.h.  */
24991$ac_includes_default
24992int
24993main ()
24994{
24995
24996  /* Some versions of memcmp are not 8-bit clean.  */
24997  char c0 = '\100', c1 = '\200', c2 = '\201';
24998  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24999    return 1;
25000
25001  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25002     or more and with at least one buffer not starting on a 4-byte boundary.
25003     William Lewis provided this test program.   */
25004  {
25005    char foo[21];
25006    char bar[21];
25007    int i;
25008    for (i = 0; i < 4; i++)
25009      {
25010	char *a = foo + i;
25011	char *b = bar + i;
25012	strcpy (a, "--------01111111");
25013	strcpy (b, "--------10000000");
25014	if (memcmp (a, b, 16) >= 0)
25015	  return 1;
25016      }
25017    return 0;
25018  }
25019
25020  ;
25021  return 0;
25022}
25023_ACEOF
25024if ac_fn_c_try_run "$LINENO"; then :
25025  ac_cv_func_memcmp_working=yes
25026else
25027  ac_cv_func_memcmp_working=no
25028fi
25029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25030  conftest.$ac_objext conftest.beam conftest.$ac_ext
25031fi
25032
25033fi
25034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
25035$as_echo "$ac_cv_func_memcmp_working" >&6; }
25036test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25037  *" memcmp.$ac_objext "* ) ;;
25038  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25039 ;;
25040esac
25041
25042
25043for ac_header in stdlib.h
25044do :
25045  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
25046if test "x$ac_cv_header_stdlib_h" = xyes; then :
25047  cat >>confdefs.h <<_ACEOF
25048#define HAVE_STDLIB_H 1
25049_ACEOF
25050
25051fi
25052
25053done
25054
25055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
25056$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
25057if ${ac_cv_func_realloc_0_nonnull+:} false; then :
25058  $as_echo_n "(cached) " >&6
25059else
25060  if test "$cross_compiling" = yes; then :
25061  ac_cv_func_realloc_0_nonnull=no
25062else
25063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25064/* end confdefs.h.  */
25065#if defined STDC_HEADERS || defined HAVE_STDLIB_H
25066# include <stdlib.h>
25067#else
25068char *realloc ();
25069#endif
25070
25071int
25072main ()
25073{
25074return ! realloc (0, 0);
25075  ;
25076  return 0;
25077}
25078_ACEOF
25079if ac_fn_c_try_run "$LINENO"; then :
25080  ac_cv_func_realloc_0_nonnull=yes
25081else
25082  ac_cv_func_realloc_0_nonnull=no
25083fi
25084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25085  conftest.$ac_objext conftest.beam conftest.$ac_ext
25086fi
25087
25088fi
25089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
25090$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
25091if test $ac_cv_func_realloc_0_nonnull = yes; then :
25092
25093$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
25094
25095else
25096  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
25097
25098   case " $LIBOBJS " in
25099  *" realloc.$ac_objext "* ) ;;
25100  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
25101 ;;
25102esac
25103
25104
25105$as_echo "#define realloc rpl_realloc" >>confdefs.h
25106
25107fi
25108
25109
25110for ac_header in sys/select.h sys/socket.h
25111do :
25112  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25113ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25114if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25115  cat >>confdefs.h <<_ACEOF
25116#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25117_ACEOF
25118
25119fi
25120
25121done
25122
25123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
25124$as_echo_n "checking types of arguments for select... " >&6; }
25125if ${ac_cv_func_select_args+:} false; then :
25126  $as_echo_n "(cached) " >&6
25127else
25128  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25129 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25130  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25132/* end confdefs.h.  */
25133$ac_includes_default
25134#ifdef HAVE_SYS_SELECT_H
25135# include <sys/select.h>
25136#endif
25137#ifdef HAVE_SYS_SOCKET_H
25138# include <sys/socket.h>
25139#endif
25140
25141int
25142main ()
25143{
25144extern int select ($ac_arg1,
25145					    $ac_arg234, $ac_arg234, $ac_arg234,
25146					    $ac_arg5);
25147  ;
25148  return 0;
25149}
25150_ACEOF
25151if ac_fn_c_try_compile "$LINENO"; then :
25152  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25153fi
25154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155  done
25156 done
25157done
25158# Provide a safe default value.
25159: "${ac_cv_func_select_args=int,int *,struct timeval *}"
25160
25161fi
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
25163$as_echo "$ac_cv_func_select_args" >&6; }
25164ac_save_IFS=$IFS; IFS=','
25165set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25166IFS=$ac_save_IFS
25167shift
25168
25169cat >>confdefs.h <<_ACEOF
25170#define SELECT_TYPE_ARG1 $1
25171_ACEOF
25172
25173
25174cat >>confdefs.h <<_ACEOF
25175#define SELECT_TYPE_ARG234 ($2)
25176_ACEOF
25177
25178
25179cat >>confdefs.h <<_ACEOF
25180#define SELECT_TYPE_ARG5 ($3)
25181_ACEOF
25182
25183rm -f conftest*
25184
25185if ${ac_cv_func_setvbuf_reversed+:} false; then :
25186  $as_echo_n "(cached) " >&6
25187else
25188  ac_cv_func_setvbuf_reversed=no
25189fi
25190
25191
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
25193$as_echo_n "checking for working strtod... " >&6; }
25194if ${ac_cv_func_strtod+:} false; then :
25195  $as_echo_n "(cached) " >&6
25196else
25197  if test "$cross_compiling" = yes; then :
25198  ac_cv_func_strtod=no
25199else
25200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201/* end confdefs.h.  */
25202
25203$ac_includes_default
25204#ifndef strtod
25205double strtod ();
25206#endif
25207int
25208main()
25209{
25210  {
25211    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
25212    char *string = " +69";
25213    char *term;
25214    double value;
25215    value = strtod (string, &term);
25216    if (value != 69 || term != (string + 4))
25217      return 1;
25218  }
25219
25220  {
25221    /* Under Solaris 2.4, strtod returns the wrong value for the
25222       terminating character under some conditions.  */
25223    char *string = "NaN";
25224    char *term;
25225    strtod (string, &term);
25226    if (term != string && *(term - 1) == 0)
25227      return 1;
25228  }
25229  return 0;
25230}
25231
25232_ACEOF
25233if ac_fn_c_try_run "$LINENO"; then :
25234  ac_cv_func_strtod=yes
25235else
25236  ac_cv_func_strtod=no
25237fi
25238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25239  conftest.$ac_objext conftest.beam conftest.$ac_ext
25240fi
25241
25242fi
25243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
25244$as_echo "$ac_cv_func_strtod" >&6; }
25245if test $ac_cv_func_strtod = no; then
25246  case " $LIBOBJS " in
25247  *" strtod.$ac_objext "* ) ;;
25248  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25249 ;;
25250esac
25251
25252ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
25253if test "x$ac_cv_func_pow" = xyes; then :
25254
25255fi
25256
25257if test $ac_cv_func_pow = no; then
25258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
25259$as_echo_n "checking for pow in -lm... " >&6; }
25260if ${ac_cv_lib_m_pow+:} false; then :
25261  $as_echo_n "(cached) " >&6
25262else
25263  ac_check_lib_save_LIBS=$LIBS
25264LIBS="-lm  $LIBS"
25265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25266/* end confdefs.h.  */
25267
25268/* Override any GCC internal prototype to avoid an error.
25269   Use char because int might match the return type of a GCC
25270   builtin and then its argument prototype would still apply.  */
25271#ifdef __cplusplus
25272extern "C"
25273#endif
25274char pow ();
25275int
25276main ()
25277{
25278return pow ();
25279  ;
25280  return 0;
25281}
25282_ACEOF
25283if ac_fn_c_try_link "$LINENO"; then :
25284  ac_cv_lib_m_pow=yes
25285else
25286  ac_cv_lib_m_pow=no
25287fi
25288rm -f core conftest.err conftest.$ac_objext \
25289    conftest$ac_exeext conftest.$ac_ext
25290LIBS=$ac_check_lib_save_LIBS
25291fi
25292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
25293$as_echo "$ac_cv_lib_m_pow" >&6; }
25294if test "x$ac_cv_lib_m_pow" = xyes; then :
25295  POW_LIB=-lm
25296else
25297  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
25298$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25299fi
25300
25301fi
25302
25303fi
25304
25305ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25306if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25307  ac_have_decl=1
25308else
25309  ac_have_decl=0
25310fi
25311
25312cat >>confdefs.h <<_ACEOF
25313#define HAVE_DECL_STRERROR_R $ac_have_decl
25314_ACEOF
25315
25316for ac_func in strerror_r
25317do :
25318  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25319if test "x$ac_cv_func_strerror_r" = xyes; then :
25320  cat >>confdefs.h <<_ACEOF
25321#define HAVE_STRERROR_R 1
25322_ACEOF
25323
25324fi
25325done
25326
25327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25328$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25329if ${ac_cv_func_strerror_r_char_p+:} false; then :
25330  $as_echo_n "(cached) " >&6
25331else
25332
25333    ac_cv_func_strerror_r_char_p=no
25334    if test $ac_cv_have_decl_strerror_r = yes; then
25335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25336/* end confdefs.h.  */
25337$ac_includes_default
25338int
25339main ()
25340{
25341
25342	  char buf[100];
25343	  char x = *strerror_r (0, buf, sizeof buf);
25344	  char *p = strerror_r (0, buf, sizeof buf);
25345	  return !p || x;
25346
25347  ;
25348  return 0;
25349}
25350_ACEOF
25351if ac_fn_c_try_compile "$LINENO"; then :
25352  ac_cv_func_strerror_r_char_p=yes
25353fi
25354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355    else
25356      # strerror_r is not declared.  Choose between
25357      # systems that have relatively inaccessible declarations for the
25358      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
25359      # former has a strerror_r that returns char*, while the latter
25360      # has a strerror_r that returns `int'.
25361      # This test should segfault on the DEC system.
25362      if test "$cross_compiling" = yes; then :
25363  :
25364else
25365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25366/* end confdefs.h.  */
25367$ac_includes_default
25368	extern char *strerror_r ();
25369int
25370main ()
25371{
25372char buf[100];
25373	  char x = *strerror_r (0, buf, sizeof buf);
25374	  return ! isalpha (x);
25375  ;
25376  return 0;
25377}
25378_ACEOF
25379if ac_fn_c_try_run "$LINENO"; then :
25380  ac_cv_func_strerror_r_char_p=yes
25381fi
25382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25383  conftest.$ac_objext conftest.beam conftest.$ac_ext
25384fi
25385
25386    fi
25387
25388fi
25389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25390$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25391if test $ac_cv_func_strerror_r_char_p = yes; then
25392
25393$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25394
25395fi
25396
25397for ac_func in vprintf
25398do :
25399  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25400if test "x$ac_cv_func_vprintf" = xyes; then :
25401  cat >>confdefs.h <<_ACEOF
25402#define HAVE_VPRINTF 1
25403_ACEOF
25404
25405ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
25406if test "x$ac_cv_func__doprnt" = xyes; then :
25407
25408$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
25409
25410fi
25411
25412fi
25413done
25414
25415
25416
25417#
25418# Find math library
25419#
25420MATH_LIBS=''
25421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25422$as_echo_n "checking for sqrt in -lm... " >&6; }
25423if ${ac_cv_lib_m_sqrt+:} false; then :
25424  $as_echo_n "(cached) " >&6
25425else
25426  ac_check_lib_save_LIBS=$LIBS
25427LIBS="-lm  $LIBS"
25428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429/* end confdefs.h.  */
25430
25431/* Override any GCC internal prototype to avoid an error.
25432   Use char because int might match the return type of a GCC
25433   builtin and then its argument prototype would still apply.  */
25434#ifdef __cplusplus
25435extern "C"
25436#endif
25437char sqrt ();
25438int
25439main ()
25440{
25441return sqrt ();
25442  ;
25443  return 0;
25444}
25445_ACEOF
25446if ac_fn_c_try_link "$LINENO"; then :
25447  ac_cv_lib_m_sqrt=yes
25448else
25449  ac_cv_lib_m_sqrt=no
25450fi
25451rm -f core conftest.err conftest.$ac_objext \
25452    conftest$ac_exeext conftest.$ac_ext
25453LIBS=$ac_check_lib_save_LIBS
25454fi
25455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25456$as_echo "$ac_cv_lib_m_sqrt" >&6; }
25457if test "x$ac_cv_lib_m_sqrt" = xyes; then :
25458  MATH_LIBS="-lm"
25459fi
25460
25461LIBS="$MATH_LIBS $LIBS"
25462
25463
25464#
25465# Find socket library
25466#
25467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
25468$as_echo_n "checking for library containing gethostbyname... " >&6; }
25469if ${ac_cv_search_gethostbyname+:} false; then :
25470  $as_echo_n "(cached) " >&6
25471else
25472  ac_func_search_save_LIBS=$LIBS
25473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h.  */
25475
25476/* Override any GCC internal prototype to avoid an error.
25477   Use char because int might match the return type of a GCC
25478   builtin and then its argument prototype would still apply.  */
25479#ifdef __cplusplus
25480extern "C"
25481#endif
25482char gethostbyname ();
25483int
25484main ()
25485{
25486return gethostbyname ();
25487  ;
25488  return 0;
25489}
25490_ACEOF
25491for ac_lib in '' resolv nsl; do
25492  if test -z "$ac_lib"; then
25493    ac_res="none required"
25494  else
25495    ac_res=-l$ac_lib
25496    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25497  fi
25498  if ac_fn_c_try_link "$LINENO"; then :
25499  ac_cv_search_gethostbyname=$ac_res
25500fi
25501rm -f core conftest.err conftest.$ac_objext \
25502    conftest$ac_exeext
25503  if ${ac_cv_search_gethostbyname+:} false; then :
25504  break
25505fi
25506done
25507if ${ac_cv_search_gethostbyname+:} false; then :
25508
25509else
25510  ac_cv_search_gethostbyname=no
25511fi
25512rm conftest.$ac_ext
25513LIBS=$ac_func_search_save_LIBS
25514fi
25515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
25516$as_echo "$ac_cv_search_gethostbyname" >&6; }
25517ac_res=$ac_cv_search_gethostbyname
25518if test "$ac_res" != no; then :
25519  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25520
25521fi
25522
25523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
25524$as_echo_n "checking for library containing socket... " >&6; }
25525if ${ac_cv_search_socket+:} false; then :
25526  $as_echo_n "(cached) " >&6
25527else
25528  ac_func_search_save_LIBS=$LIBS
25529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530/* end confdefs.h.  */
25531
25532/* Override any GCC internal prototype to avoid an error.
25533   Use char because int might match the return type of a GCC
25534   builtin and then its argument prototype would still apply.  */
25535#ifdef __cplusplus
25536extern "C"
25537#endif
25538char socket ();
25539int
25540main ()
25541{
25542return socket ();
25543  ;
25544  return 0;
25545}
25546_ACEOF
25547for ac_lib in '' socket; do
25548  if test -z "$ac_lib"; then
25549    ac_res="none required"
25550  else
25551    ac_res=-l$ac_lib
25552    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25553  fi
25554  if ac_fn_c_try_link "$LINENO"; then :
25555  ac_cv_search_socket=$ac_res
25556fi
25557rm -f core conftest.err conftest.$ac_objext \
25558    conftest$ac_exeext
25559  if ${ac_cv_search_socket+:} false; then :
25560  break
25561fi
25562done
25563if ${ac_cv_search_socket+:} false; then :
25564
25565else
25566  ac_cv_search_socket=no
25567fi
25568rm conftest.$ac_ext
25569LIBS=$ac_func_search_save_LIBS
25570fi
25571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
25572$as_echo "$ac_cv_search_socket" >&6; }
25573ac_res=$ac_cv_search_socket
25574if test "$ac_res" != no; then :
25575  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25576
25577
25578$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
25579
25580  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
25581
25582fi
25583
25584
25585#
25586# Check for clock_gettime().
25587#
25588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
25589$as_echo_n "checking for library containing clock_gettime... " >&6; }
25590if ${ac_cv_search_clock_gettime+:} false; then :
25591  $as_echo_n "(cached) " >&6
25592else
25593  ac_func_search_save_LIBS=$LIBS
25594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595/* end confdefs.h.  */
25596
25597/* Override any GCC internal prototype to avoid an error.
25598   Use char because int might match the return type of a GCC
25599   builtin and then its argument prototype would still apply.  */
25600#ifdef __cplusplus
25601extern "C"
25602#endif
25603char clock_gettime ();
25604int
25605main ()
25606{
25607return clock_gettime ();
25608  ;
25609  return 0;
25610}
25611_ACEOF
25612for ac_lib in '' rt; do
25613  if test -z "$ac_lib"; then
25614    ac_res="none required"
25615  else
25616    ac_res=-l$ac_lib
25617    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25618  fi
25619  if ac_fn_c_try_link "$LINENO"; then :
25620  ac_cv_search_clock_gettime=$ac_res
25621fi
25622rm -f core conftest.err conftest.$ac_objext \
25623    conftest$ac_exeext
25624  if ${ac_cv_search_clock_gettime+:} false; then :
25625  break
25626fi
25627done
25628if ${ac_cv_search_clock_gettime+:} false; then :
25629
25630else
25631  ac_cv_search_clock_gettime=no
25632fi
25633rm conftest.$ac_ext
25634LIBS=$ac_func_search_save_LIBS
25635fi
25636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25637$as_echo "$ac_cv_search_clock_gettime" >&6; }
25638ac_res=$ac_cv_search_clock_gettime
25639if test "$ac_res" != no; then :
25640  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25641
25642
25643$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25644
25645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25646$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648/* end confdefs.h.  */
25649
25650    #include <time.h>
25651int
25652main ()
25653{
25654clockid_t clockType = CLOCK_REALTIME;
25655  ;
25656  return 0;
25657}
25658_ACEOF
25659if ac_fn_c_try_compile "$LINENO"; then :
25660
25661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25662$as_echo "yes" >&6; }
25663
25664$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25665
25666
25667else
25668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669$as_echo "no" >&6; }
25670
25671fi
25672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673
25674else
25675
25676    for ac_func in gettimeofday ftime
25677do :
25678  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25680if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25681  cat >>confdefs.h <<_ACEOF
25682#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25683_ACEOF
25684 break
25685fi
25686done
25687
25688
25689
25690fi
25691
25692
25693########
25694#
25695# Check for function prototypes
25696#
25697########
25698
25699ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25700#include <unistd.h>
25701"
25702if test "x$ac_cv_have_decl_pread" = xyes; then :
25703  ac_have_decl=1
25704else
25705  ac_have_decl=0
25706fi
25707
25708cat >>confdefs.h <<_ACEOF
25709#define HAVE_DECL_PREAD $ac_have_decl
25710_ACEOF
25711ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25712#include <unistd.h>
25713"
25714if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25715  ac_have_decl=1
25716else
25717  ac_have_decl=0
25718fi
25719
25720cat >>confdefs.h <<_ACEOF
25721#define HAVE_DECL_PWRITE $ac_have_decl
25722_ACEOF
25723
25724
25725ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25726#include <strings.h>
25727"
25728if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25729  ac_have_decl=1
25730else
25731  ac_have_decl=0
25732fi
25733
25734cat >>confdefs.h <<_ACEOF
25735#define HAVE_DECL_STRLCPY $ac_have_decl
25736_ACEOF
25737
25738
25739ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25740#include <stdio.h>
25741#include <stdarg.h>
25742"
25743if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25744  ac_have_decl=1
25745else
25746  ac_have_decl=0
25747fi
25748
25749cat >>confdefs.h <<_ACEOF
25750#define HAVE_DECL_VSNPRINTF $ac_have_decl
25751_ACEOF
25752
25753
25754########
25755#
25756# C++ Support Tests (For Magick++)
25757#
25758########
25759have_magick_plus_plus='no'
25760if test "$with_magick_plus_plus" = 'yes'; then
25761    OLIBS="$LIBS"
25762    LIBS=''
25763    ac_ext=cpp
25764ac_cpp='$CXXCPP $CPPFLAGS'
25765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25768
25769
25770    # Full set of headers used...
25771    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25772    # functional iomanip iosfwd iostream iterator list string strstream utility
25773    ac_ext=cpp
25774ac_cpp='$CXXCPP $CPPFLAGS'
25775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25778
25779    ac_ext=cpp
25780ac_cpp='$CXXCPP $CPPFLAGS'
25781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25784if test -z "$CXX"; then
25785  if test -n "$CCC"; then
25786    CXX=$CCC
25787  else
25788    if test -n "$ac_tool_prefix"; then
25789  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25790  do
25791    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25794$as_echo_n "checking for $ac_word... " >&6; }
25795if ${ac_cv_prog_CXX+:} false; then :
25796  $as_echo_n "(cached) " >&6
25797else
25798  if test -n "$CXX"; then
25799  ac_cv_prog_CXX="$CXX" # Let the user override the test.
25800else
25801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25802for as_dir in $PATH
25803do
25804  IFS=$as_save_IFS
25805  test -z "$as_dir" && as_dir=.
25806    for ac_exec_ext in '' $ac_executable_extensions; do
25807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25808    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25810    break 2
25811  fi
25812done
25813  done
25814IFS=$as_save_IFS
25815
25816fi
25817fi
25818CXX=$ac_cv_prog_CXX
25819if test -n "$CXX"; then
25820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25821$as_echo "$CXX" >&6; }
25822else
25823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25824$as_echo "no" >&6; }
25825fi
25826
25827
25828    test -n "$CXX" && break
25829  done
25830fi
25831if test -z "$CXX"; then
25832  ac_ct_CXX=$CXX
25833  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25834do
25835  # Extract the first word of "$ac_prog", so it can be a program name with args.
25836set dummy $ac_prog; ac_word=$2
25837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25838$as_echo_n "checking for $ac_word... " >&6; }
25839if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25840  $as_echo_n "(cached) " >&6
25841else
25842  if test -n "$ac_ct_CXX"; then
25843  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25844else
25845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25846for as_dir in $PATH
25847do
25848  IFS=$as_save_IFS
25849  test -z "$as_dir" && as_dir=.
25850    for ac_exec_ext in '' $ac_executable_extensions; do
25851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25852    ac_cv_prog_ac_ct_CXX="$ac_prog"
25853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25854    break 2
25855  fi
25856done
25857  done
25858IFS=$as_save_IFS
25859
25860fi
25861fi
25862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25863if test -n "$ac_ct_CXX"; then
25864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25865$as_echo "$ac_ct_CXX" >&6; }
25866else
25867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25868$as_echo "no" >&6; }
25869fi
25870
25871
25872  test -n "$ac_ct_CXX" && break
25873done
25874
25875  if test "x$ac_ct_CXX" = x; then
25876    CXX="g++"
25877  else
25878    case $cross_compiling:$ac_tool_warned in
25879yes:)
25880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25882ac_tool_warned=yes ;;
25883esac
25884    CXX=$ac_ct_CXX
25885  fi
25886fi
25887
25888  fi
25889fi
25890# Provide some information about the compiler.
25891$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25892set X $ac_compile
25893ac_compiler=$2
25894for ac_option in --version -v -V -qversion; do
25895  { { ac_try="$ac_compiler $ac_option >&5"
25896case "(($ac_try" in
25897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25898  *) ac_try_echo=$ac_try;;
25899esac
25900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25901$as_echo "$ac_try_echo"; } >&5
25902  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25903  ac_status=$?
25904  if test -s conftest.err; then
25905    sed '10a\
25906... rest of stderr output deleted ...
25907         10q' conftest.err >conftest.er1
25908    cat conftest.er1 >&5
25909  fi
25910  rm -f conftest.er1 conftest.err
25911  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25912  test $ac_status = 0; }
25913done
25914
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25916$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25917if ${ac_cv_cxx_compiler_gnu+:} false; then :
25918  $as_echo_n "(cached) " >&6
25919else
25920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25921/* end confdefs.h.  */
25922
25923int
25924main ()
25925{
25926#ifndef __GNUC__
25927       choke me
25928#endif
25929
25930  ;
25931  return 0;
25932}
25933_ACEOF
25934if ac_fn_cxx_try_compile "$LINENO"; then :
25935  ac_compiler_gnu=yes
25936else
25937  ac_compiler_gnu=no
25938fi
25939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25940ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25941
25942fi
25943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25944$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25945if test $ac_compiler_gnu = yes; then
25946  GXX=yes
25947else
25948  GXX=
25949fi
25950ac_test_CXXFLAGS=${CXXFLAGS+set}
25951ac_save_CXXFLAGS=$CXXFLAGS
25952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25953$as_echo_n "checking whether $CXX accepts -g... " >&6; }
25954if ${ac_cv_prog_cxx_g+:} false; then :
25955  $as_echo_n "(cached) " >&6
25956else
25957  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25958   ac_cxx_werror_flag=yes
25959   ac_cv_prog_cxx_g=no
25960   CXXFLAGS="-g"
25961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25962/* end confdefs.h.  */
25963
25964int
25965main ()
25966{
25967
25968  ;
25969  return 0;
25970}
25971_ACEOF
25972if ac_fn_cxx_try_compile "$LINENO"; then :
25973  ac_cv_prog_cxx_g=yes
25974else
25975  CXXFLAGS=""
25976      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25977/* end confdefs.h.  */
25978
25979int
25980main ()
25981{
25982
25983  ;
25984  return 0;
25985}
25986_ACEOF
25987if ac_fn_cxx_try_compile "$LINENO"; then :
25988
25989else
25990  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25991	 CXXFLAGS="-g"
25992	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993/* end confdefs.h.  */
25994
25995int
25996main ()
25997{
25998
25999  ;
26000  return 0;
26001}
26002_ACEOF
26003if ac_fn_cxx_try_compile "$LINENO"; then :
26004  ac_cv_prog_cxx_g=yes
26005fi
26006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26007fi
26008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009fi
26010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26012fi
26013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
26014$as_echo "$ac_cv_prog_cxx_g" >&6; }
26015if test "$ac_test_CXXFLAGS" = set; then
26016  CXXFLAGS=$ac_save_CXXFLAGS
26017elif test $ac_cv_prog_cxx_g = yes; then
26018  if test "$GXX" = yes; then
26019    CXXFLAGS="-g -O2"
26020  else
26021    CXXFLAGS="-g"
26022  fi
26023else
26024  if test "$GXX" = yes; then
26025    CXXFLAGS="-O2"
26026  else
26027    CXXFLAGS=
26028  fi
26029fi
26030ac_ext=cpp
26031ac_cpp='$CXXCPP $CPPFLAGS'
26032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26035
26036depcc="$CXX"  am_compiler_list=
26037
26038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26039$as_echo_n "checking dependency style of $depcc... " >&6; }
26040if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26041  $as_echo_n "(cached) " >&6
26042else
26043  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26044  # We make a subdir and do the tests there.  Otherwise we can end up
26045  # making bogus files that we don't know about and never remove.  For
26046  # instance it was reported that on HP-UX the gcc test will end up
26047  # making a dummy file named 'D' -- because '-MD' means "put the output
26048  # in D".
26049  rm -rf conftest.dir
26050  mkdir conftest.dir
26051  # Copy depcomp to subdir because otherwise we won't find it if we're
26052  # using a relative directory.
26053  cp "$am_depcomp" conftest.dir
26054  cd conftest.dir
26055  # We will build objects and dependencies in a subdirectory because
26056  # it helps to detect inapplicable dependency modes.  For instance
26057  # both Tru64's cc and ICC support -MD to output dependencies as a
26058  # side effect of compilation, but ICC will put the dependencies in
26059  # the current directory while Tru64 will put them in the object
26060  # directory.
26061  mkdir sub
26062
26063  am_cv_CXX_dependencies_compiler_type=none
26064  if test "$am_compiler_list" = ""; then
26065     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26066  fi
26067  am__universal=false
26068  case " $depcc " in #(
26069     *\ -arch\ *\ -arch\ *) am__universal=true ;;
26070     esac
26071
26072  for depmode in $am_compiler_list; do
26073    # Setup a source with many dependencies, because some compilers
26074    # like to wrap large dependency lists on column 80 (with \), and
26075    # we should not choose a depcomp mode which is confused by this.
26076    #
26077    # We need to recreate these files for each test, as the compiler may
26078    # overwrite some of them when testing with obscure command lines.
26079    # This happens at least with the AIX C compiler.
26080    : > sub/conftest.c
26081    for i in 1 2 3 4 5 6; do
26082      echo '#include "conftst'$i'.h"' >> sub/conftest.c
26083      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26084      # Solaris 10 /bin/sh.
26085      echo '/* dummy */' > sub/conftst$i.h
26086    done
26087    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26088
26089    # We check with '-c' and '-o' for the sake of the "dashmstdout"
26090    # mode.  It turns out that the SunPro C++ compiler does not properly
26091    # handle '-M -o', and we need to detect this.  Also, some Intel
26092    # versions had trouble with output in subdirs.
26093    am__obj=sub/conftest.${OBJEXT-o}
26094    am__minus_obj="-o $am__obj"
26095    case $depmode in
26096    gcc)
26097      # This depmode causes a compiler race in universal mode.
26098      test "$am__universal" = false || continue
26099      ;;
26100    nosideeffect)
26101      # After this tag, mechanisms are not by side-effect, so they'll
26102      # only be used when explicitly requested.
26103      if test "x$enable_dependency_tracking" = xyes; then
26104	continue
26105      else
26106	break
26107      fi
26108      ;;
26109    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26110      # This compiler won't grok '-c -o', but also, the minuso test has
26111      # not run yet.  These depmodes are late enough in the game, and
26112      # so weak that their functioning should not be impacted.
26113      am__obj=conftest.${OBJEXT-o}
26114      am__minus_obj=
26115      ;;
26116    none) break ;;
26117    esac
26118    if depmode=$depmode \
26119       source=sub/conftest.c object=$am__obj \
26120       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26121       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26122         >/dev/null 2>conftest.err &&
26123       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26124       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26125       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26126       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26127      # icc doesn't choke on unknown options, it will just issue warnings
26128      # or remarks (even with -Werror).  So we grep stderr for any message
26129      # that says an option was ignored or not supported.
26130      # When given -MP, icc 7.0 and 7.1 complain thusly:
26131      #   icc: Command line warning: ignoring option '-M'; no argument required
26132      # The diagnosis changed in icc 8.0:
26133      #   icc: Command line remark: option '-MP' not supported
26134      if (grep 'ignoring option' conftest.err ||
26135          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26136        am_cv_CXX_dependencies_compiler_type=$depmode
26137        break
26138      fi
26139    fi
26140  done
26141
26142  cd ..
26143  rm -rf conftest.dir
26144else
26145  am_cv_CXX_dependencies_compiler_type=none
26146fi
26147
26148fi
26149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26150$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26151CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26152
26153 if
26154  test "x$enable_dependency_tracking" != xno \
26155  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26156  am__fastdepCXX_TRUE=
26157  am__fastdepCXX_FALSE='#'
26158else
26159  am__fastdepCXX_TRUE='#'
26160  am__fastdepCXX_FALSE=
26161fi
26162
26163
26164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26165$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
26166if ${ax_cv_cxx_bool+:} false; then :
26167  $as_echo_n "(cached) " >&6
26168else
26169       ac_ext=cpp
26170ac_cpp='$CXXCPP $CPPFLAGS'
26171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26174
26175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176/* end confdefs.h.  */
26177       int f(int  x){return 1;}
26178                        int f(char x){return 1;}
26179                        int f(bool x){return 1;}
26180int
26181main ()
26182{
26183bool b = true; return f(b);
26184  ;
26185  return 0;
26186}
26187_ACEOF
26188if ac_fn_cxx_try_compile "$LINENO"; then :
26189  ax_cv_cxx_bool=yes
26190else
26191  ax_cv_cxx_bool=no
26192fi
26193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194     ac_ext=cpp
26195ac_cpp='$CXXCPP $CPPFLAGS'
26196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26199
26200
26201fi
26202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26203$as_echo "$ax_cv_cxx_bool" >&6; }
26204  if test "X$ax_cv_cxx_bool" = Xyes; then :
26205
26206$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26207
26208fi
26209
26210    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26211$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
26212if ${ax_cv_cxx_namespaces+:} false; then :
26213  $as_echo_n "(cached) " >&6
26214else
26215  ac_ext=cpp
26216ac_cpp='$CXXCPP $CPPFLAGS'
26217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26220
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222/* end confdefs.h.  */
26223namespace Outer { namespace Inner { int i = 0; }}
26224                                   using namespace Outer::Inner; int foo(void) { return i;}
26225_ACEOF
26226if ac_fn_cxx_try_compile "$LINENO"; then :
26227  ax_cv_cxx_namespaces=yes
26228else
26229  ax_cv_cxx_namespaces=no
26230fi
26231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26232 ac_ext=cpp
26233ac_cpp='$CXXCPP $CPPFLAGS'
26234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26237
26238
26239fi
26240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26241$as_echo "$ax_cv_cxx_namespaces" >&6; }
26242if test "$ax_cv_cxx_namespaces" = yes; then
26243
26244$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26245
26246fi
26247
26248
26249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26250$as_echo_n "checking if g++ supports namespace std... " >&6; }
26251if ${ax_cv_cxx_have_std_namespace+:} false; then :
26252  $as_echo_n "(cached) " >&6
26253else
26254  ac_ext=cpp
26255ac_cpp='$CXXCPP $CPPFLAGS'
26256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26259
26260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261/* end confdefs.h.  */
26262#include <iostream>
26263                  std::istream& is = std::cin;
26264int
26265main ()
26266{
26267
26268  ;
26269  return 0;
26270}
26271_ACEOF
26272if ac_fn_cxx_try_compile "$LINENO"; then :
26273  ax_cv_cxx_have_std_namespace=yes
26274else
26275  ax_cv_cxx_have_std_namespace=no
26276fi
26277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26278  ac_ext=cpp
26279ac_cpp='$CXXCPP $CPPFLAGS'
26280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26283
26284
26285fi
26286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26287$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26288  if test "$ax_cv_cxx_have_std_namespace" = yes; then
26289
26290$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26291
26292  fi
26293
26294    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26295$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
26296if ${ac_cv_cxx_have_std_libs+:} false; then :
26297  $as_echo_n "(cached) " >&6
26298else
26299
26300
26301 ac_ext=cpp
26302ac_cpp='$CXXCPP $CPPFLAGS'
26303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26306
26307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26308/* end confdefs.h.  */
26309#include <iostream>
26310#include <map>
26311#include <iomanip>
26312#include <cmath>
26313#ifdef HAVE_NAMESPACES
26314using namespace std;
26315#endif
26316int
26317main ()
26318{
26319return 0;
26320  ;
26321  return 0;
26322}
26323_ACEOF
26324if ac_fn_cxx_try_compile "$LINENO"; then :
26325  ac_cv_cxx_have_std_libs=yes
26326else
26327  ac_cv_cxx_have_std_libs=no
26328fi
26329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 ac_ext=cpp
26331ac_cpp='$CXXCPP $CPPFLAGS'
26332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26335
26336
26337fi
26338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26339$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26340if test "$ac_cv_cxx_have_std_libs" = yes; then
26341
26342$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26343
26344fi
26345
26346
26347  OPENMP_CXXFLAGS=
26348  # Check whether --enable-openmp was given.
26349if test "${enable_openmp+set}" = set; then :
26350  enableval=$enable_openmp;
26351fi
26352
26353  if test "$enable_openmp" != no; then
26354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26355$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
26356if ${ac_cv_prog_cxx_openmp+:} false; then :
26357  $as_echo_n "(cached) " >&6
26358else
26359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360/* end confdefs.h.  */
26361
26362#ifndef _OPENMP
26363 choke me
26364#endif
26365#include <omp.h>
26366int main () { return omp_get_num_threads (); }
26367
26368_ACEOF
26369if ac_fn_cxx_try_link "$LINENO"; then :
26370  ac_cv_prog_cxx_openmp='none needed'
26371else
26372  ac_cv_prog_cxx_openmp='unsupported'
26373	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26374                           -Popenmp --openmp; do
26375	    ac_save_CXXFLAGS=$CXXFLAGS
26376	    CXXFLAGS="$CXXFLAGS $ac_option"
26377	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26378/* end confdefs.h.  */
26379
26380#ifndef _OPENMP
26381 choke me
26382#endif
26383#include <omp.h>
26384int main () { return omp_get_num_threads (); }
26385
26386_ACEOF
26387if ac_fn_cxx_try_link "$LINENO"; then :
26388  ac_cv_prog_cxx_openmp=$ac_option
26389fi
26390rm -f core conftest.err conftest.$ac_objext \
26391    conftest$ac_exeext conftest.$ac_ext
26392	    CXXFLAGS=$ac_save_CXXFLAGS
26393	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26394	      break
26395	    fi
26396	  done
26397fi
26398rm -f core conftest.err conftest.$ac_objext \
26399    conftest$ac_exeext conftest.$ac_ext
26400fi
26401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
26402$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26403    case $ac_cv_prog_cxx_openmp in #(
26404      "none needed" | unsupported)
26405	;; #(
26406      *)
26407	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
26408    esac
26409  fi
26410
26411
26412    ac_ext=c
26413ac_cpp='$CPP $CPPFLAGS'
26414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26416ac_compiler_gnu=$ac_cv_c_compiler_gnu
26417
26418
26419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
26420$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26421    if \
26422        test $ax_cv_cxx_bool = 'yes' && \
26423        test $ax_cv_cxx_namespaces = 'yes' && \
26424        test $ac_cv_cxx_have_std_libs = 'yes' && \
26425        test $ax_cv_cxx_have_std_namespace = 'yes'; then
26426        have_magick_plus_plus='yes'
26427    else
26428        have_magick_plus_plus='no (failed tests)'
26429    fi
26430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
26431$as_echo "$have_magick_plus_plus" >&6; }
26432    LIBS="$OLIBS"
26433fi
26434 if test "$have_magick_plus_plus" = 'yes'; then
26435  WITH_MAGICK_PLUS_PLUS_TRUE=
26436  WITH_MAGICK_PLUS_PLUS_FALSE='#'
26437else
26438  WITH_MAGICK_PLUS_PLUS_TRUE='#'
26439  WITH_MAGICK_PLUS_PLUS_FALSE=
26440fi
26441
26442
26443# Only check for delegate libraries in subdirectories if requested.
26444if test "$enable_delegate_build" != 'no'; then
26445    # Check for delegate sub-directories and add -I & -L options as required.
26446    # This presumes that delegates are installed as detailed in the ImageMagick
26447    # README. If delegates are installed in a standard location where the
26448    # compiler will automatically find them then these options should not be
26449    # required.
26450
26451    #
26452    # Most delegates have includes in the same directory as the library, but not all...
26453    #
26454    # Includes
26455    for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib zip; do
26456        if test -d "$builddir/$dir"; then
26457            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26458        else
26459            if test -d "$srcdirfull/$dir"; then
26460                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26461            fi
26462        fi
26463    done
26464
26465    # Libraries
26466    for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib zip; do
26467    if test -d "$builddir/$dir/.libs"; then
26468        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26469    else
26470        if test -d "$srcdirfull/$dir/.libs"; then
26471            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26472        fi
26473    fi
26474    if test -d "$builddir/$dir"; then
26475        LDFLAGS="$LDFLAGS -L$builddir/$dir"
26476    else
26477        if test -d "$srcdirfull/$dir"; then
26478            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26479        fi
26480    fi
26481  done
26482fi
26483
26484# Assume that delegate headers reside under same directory as ImageMagick
26485# installation prefix.
26486MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
26487
26488#
26489# Find the X11 RGB database
26490#
26491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
26492$as_echo_n "checking for X11 configure files... " >&6; }
26493if ${im_cv_x_configure+:} false; then :
26494  $as_echo_n "(cached) " >&6
26495else
26496  # Look for the header file in a standard set of common directories.
26497# Check X11 before X11Rn because it is often a symlink to the current release.
26498    for ac_dir in          \
26499    /lib/usr/lib/X11       \
26500    /usr/X11/lib           \
26501    /usr/X11R4/lib         \
26502    /usr/X11R5/lib         \
26503    /usr/X11R6/lib         \
26504    /usr/X11R7/lib         \
26505    /usr/X386/lib          \
26506    /usr/XFree86/lib/X11   \
26507    /usr/athena/lib        \
26508    /usr/lib               \
26509    /usr/lib/X11           \
26510    /usr/lib/X11R4         \
26511    /usr/lib/X11R5         \
26512    /usr/lib/X11R6         \
26513    /usr/lib/X11R7         \
26514    /usr/local/X11/lib     \
26515    /usr/local/X11R4/lib   \
26516    /usr/local/X11R5/lib   \
26517    /usr/local/X11R6/lib   \
26518    /usr/local/lib         \
26519    /usr/local/lib/X11     \
26520    /usr/local/lib/X11R4   \
26521    /usr/local/lib/X11R5   \
26522    /usr/local/lib/X11R6   \
26523    /usr/local/lib/X11R7   \
26524    /usr/local/x11r5/lib   \
26525    /usr/lpp/Xamples/lib   \
26526    /usr/openwin/lib       \
26527    /usr/openwin/share/lib \
26528    /usr/unsupported/lib   \
26529    /usr/x386/lib          \
26530    ; do
26531    if test -f "$ac_dir/X11/rgb.txt"; then
26532      im_cv_x_configure="$ac_dir/X11/"
26533      break
26534    elif test -f "$ac_dir/rgb.txt"; then
26535      im_cv_x_configure="$ac_dir/"
26536      break
26537    fi
26538
26539  done
26540fi
26541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
26542$as_echo "$im_cv_x_configure" >&6; }
26543X11_CONFIGURE_PATH="$im_cv_x_configure"
26544case "${build_os}" in
26545  mingw* )
26546    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26547  ;;
26548esac
26549
26550cat >>confdefs.h <<_ACEOF
26551#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26552_ACEOF
26553
26554
26555#
26556# Find OpenMP library
26557#
26558GOMP_LIBS=''
26559if test "$enable_openmp" != 'no'; then
26560  if test "${GCC}" = "yes"; then
26561    # Open64 (passes for GCC but uses different OpenMP implementation)
26562    if test "x$GOMP_LIBS" = x ; then
26563      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26564        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26565$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26566if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26567  $as_echo_n "(cached) " >&6
26568else
26569  ac_check_lib_save_LIBS=$LIBS
26570LIBS="-lopenmp  $LIBS"
26571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572/* end confdefs.h.  */
26573
26574/* Override any GCC internal prototype to avoid an error.
26575   Use char because int might match the return type of a GCC
26576   builtin and then its argument prototype would still apply.  */
26577#ifdef __cplusplus
26578extern "C"
26579#endif
26580char omp_get_num_procs ();
26581int
26582main ()
26583{
26584return omp_get_num_procs ();
26585  ;
26586  return 0;
26587}
26588_ACEOF
26589if ac_fn_c_try_link "$LINENO"; then :
26590  ac_cv_lib_openmp_omp_get_num_procs=yes
26591else
26592  ac_cv_lib_openmp_omp_get_num_procs=no
26593fi
26594rm -f core conftest.err conftest.$ac_objext \
26595    conftest$ac_exeext conftest.$ac_ext
26596LIBS=$ac_check_lib_save_LIBS
26597fi
26598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26599$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26600if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26601  GOMP_LIBS="-lopenmp"
26602fi
26603
26604      fi
26605    fi
26606    # Clang (passes for GCC but uses different OpenMP implementation)
26607    if test "x$LIB_OMP" = x ; then
26608      if $CC --version 2>&1 | grep clang > /dev/null ; then
26609        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lomp" >&5
26610$as_echo_n "checking for GOMP_parallel_start in -lomp... " >&6; }
26611if ${ac_cv_lib_omp_GOMP_parallel_start+:} false; then :
26612  $as_echo_n "(cached) " >&6
26613else
26614  ac_check_lib_save_LIBS=$LIBS
26615LIBS="-lomp  $LIBS"
26616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617/* end confdefs.h.  */
26618
26619/* Override any GCC internal prototype to avoid an error.
26620   Use char because int might match the return type of a GCC
26621   builtin and then its argument prototype would still apply.  */
26622#ifdef __cplusplus
26623extern "C"
26624#endif
26625char GOMP_parallel_start ();
26626int
26627main ()
26628{
26629return GOMP_parallel_start ();
26630  ;
26631  return 0;
26632}
26633_ACEOF
26634if ac_fn_c_try_link "$LINENO"; then :
26635  ac_cv_lib_omp_GOMP_parallel_start=yes
26636else
26637  ac_cv_lib_omp_GOMP_parallel_start=no
26638fi
26639rm -f core conftest.err conftest.$ac_objext \
26640    conftest$ac_exeext conftest.$ac_ext
26641LIBS=$ac_check_lib_save_LIBS
26642fi
26643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_omp_GOMP_parallel_start" >&5
26644$as_echo "$ac_cv_lib_omp_GOMP_parallel_start" >&6; }
26645if test "x$ac_cv_lib_omp_GOMP_parallel_start" = xyes; then :
26646  LIB_OMP="-lomp"
26647fi
26648
26649      fi
26650    fi
26651    # GCC
26652    if test "x$GOMP_LIBS" = x ; then
26653      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
26654$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
26655if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
26656  $as_echo_n "(cached) " >&6
26657else
26658  ac_check_lib_save_LIBS=$LIBS
26659LIBS="-lgomp  $LIBS"
26660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661/* end confdefs.h.  */
26662
26663/* Override any GCC internal prototype to avoid an error.
26664   Use char because int might match the return type of a GCC
26665   builtin and then its argument prototype would still apply.  */
26666#ifdef __cplusplus
26667extern "C"
26668#endif
26669char GOMP_parallel_start ();
26670int
26671main ()
26672{
26673return GOMP_parallel_start ();
26674  ;
26675  return 0;
26676}
26677_ACEOF
26678if ac_fn_c_try_link "$LINENO"; then :
26679  ac_cv_lib_gomp_GOMP_parallel_start=yes
26680else
26681  ac_cv_lib_gomp_GOMP_parallel_start=no
26682fi
26683rm -f core conftest.err conftest.$ac_objext \
26684    conftest$ac_exeext conftest.$ac_ext
26685LIBS=$ac_check_lib_save_LIBS
26686fi
26687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
26688$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
26689if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26690  GOMP_LIBS="-lgomp"
26691fi
26692
26693    fi
26694  else
26695    # Sun CC
26696    if test "x$GOMP_LIBS" = x ; then
26697      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26698$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26699if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26700  $as_echo_n "(cached) " >&6
26701else
26702  ac_check_lib_save_LIBS=$LIBS
26703LIBS="-lmtsk  $LIBS"
26704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705/* end confdefs.h.  */
26706
26707/* Override any GCC internal prototype to avoid an error.
26708   Use char because int might match the return type of a GCC
26709   builtin and then its argument prototype would still apply.  */
26710#ifdef __cplusplus
26711extern "C"
26712#endif
26713char sunw_mp_register_warn ();
26714int
26715main ()
26716{
26717return sunw_mp_register_warn ();
26718  ;
26719  return 0;
26720}
26721_ACEOF
26722if ac_fn_c_try_link "$LINENO"; then :
26723  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26724else
26725  ac_cv_lib_mtsk_sunw_mp_register_warn=no
26726fi
26727rm -f core conftest.err conftest.$ac_objext \
26728    conftest$ac_exeext conftest.$ac_ext
26729LIBS=$ac_check_lib_save_LIBS
26730fi
26731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26732$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26733if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26734  GOMP_LIBS="-lmtsk"
26735fi
26736
26737    fi
26738    # AIX xlc
26739    if test "x$GOMP_LIBS" = x ; then
26740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26741$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26742if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26743  $as_echo_n "(cached) " >&6
26744else
26745  ac_check_lib_save_LIBS=$LIBS
26746LIBS="-lxlsmp  $LIBS"
26747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748/* end confdefs.h.  */
26749
26750/* Override any GCC internal prototype to avoid an error.
26751   Use char because int might match the return type of a GCC
26752   builtin and then its argument prototype would still apply.  */
26753#ifdef __cplusplus
26754extern "C"
26755#endif
26756char _xlsmpFlush ();
26757int
26758main ()
26759{
26760return _xlsmpFlush ();
26761  ;
26762  return 0;
26763}
26764_ACEOF
26765if ac_fn_c_try_link "$LINENO"; then :
26766  ac_cv_lib_xlsmp__xlsmpFlush=yes
26767else
26768  ac_cv_lib_xlsmp__xlsmpFlush=no
26769fi
26770rm -f core conftest.err conftest.$ac_objext \
26771    conftest$ac_exeext conftest.$ac_ext
26772LIBS=$ac_check_lib_save_LIBS
26773fi
26774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26775$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26776if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26777  GOMP_LIBS="-lxlsmp"
26778fi
26779
26780    fi
26781    # SGI IRIX 6.5 MIPSpro C/C++
26782    if test "x$GOMP_LIBS" = x ; then
26783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26784$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26785if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26786  $as_echo_n "(cached) " >&6
26787else
26788  ac_check_lib_save_LIBS=$LIBS
26789LIBS="-lmp  $LIBS"
26790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26791/* end confdefs.h.  */
26792
26793/* Override any GCC internal prototype to avoid an error.
26794   Use char because int might match the return type of a GCC
26795   builtin and then its argument prototype would still apply.  */
26796#ifdef __cplusplus
26797extern "C"
26798#endif
26799char mp_destroy ();
26800int
26801main ()
26802{
26803return mp_destroy ();
26804  ;
26805  return 0;
26806}
26807_ACEOF
26808if ac_fn_c_try_link "$LINENO"; then :
26809  ac_cv_lib_mp_mp_destroy=yes
26810else
26811  ac_cv_lib_mp_mp_destroy=no
26812fi
26813rm -f core conftest.err conftest.$ac_objext \
26814    conftest$ac_exeext conftest.$ac_ext
26815LIBS=$ac_check_lib_save_LIBS
26816fi
26817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26818$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26819if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26820  GOMP_LIBS="-lmp"
26821fi
26822
26823    fi
26824  fi
26825  LIBS="$GOMP_LIBS $LIBS"
26826fi
26827
26828
26829#
26830# Check for jemalloc.
26831#
26832have_jemalloc='no'
26833JEMALLOC_LIBS=''
26834if test "$with_jemalloc" != 'no'; then
26835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support" >&5
26836$as_echo_n "checking for JEMALLOC support... " >&6; }
26837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26838$as_echo "" >&6; }
26839  failed=0
26840  passed=0
26841  ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
26842if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
26843  passed=`expr $passed + 1`
26844else
26845  failed=`expr $failed + 1`
26846fi
26847
26848
26849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
26850$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
26851if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
26852  $as_echo_n "(cached) " >&6
26853else
26854  ac_check_lib_save_LIBS=$LIBS
26855LIBS="-ljemalloc  $LIBS"
26856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26857/* end confdefs.h.  */
26858
26859/* Override any GCC internal prototype to avoid an error.
26860   Use char because int might match the return type of a GCC
26861   builtin and then its argument prototype would still apply.  */
26862#ifdef __cplusplus
26863extern "C"
26864#endif
26865char malloc_stats_print ();
26866int
26867main ()
26868{
26869return malloc_stats_print ();
26870  ;
26871  return 0;
26872}
26873_ACEOF
26874if ac_fn_c_try_link "$LINENO"; then :
26875  ac_cv_lib_jemalloc_malloc_stats_print=yes
26876else
26877  ac_cv_lib_jemalloc_malloc_stats_print=no
26878fi
26879rm -f core conftest.err conftest.$ac_objext \
26880    conftest$ac_exeext conftest.$ac_ext
26881LIBS=$ac_check_lib_save_LIBS
26882fi
26883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
26884$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
26885if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
26886  passed=`expr $passed + 1`
26887else
26888  failed=`expr $failed + 1`
26889fi
26890
26891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
26892$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
26893  if test $passed -gt 0; then
26894    if test $failed -gt 0; then
26895      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26896$as_echo "no -- some components failed test" >&6; }
26897      have_jemalloc='no (failed tests)'
26898    else
26899      JEMALLOC_LIBS='-ljemalloc'
26900      LIBS="$JEMALLOC_LIBS $LIBS"
26901
26902$as_echo "#define HAVE_JEMALLOC 1" >>confdefs.h
26903
26904      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26905$as_echo "yes" >&6; }
26906      have_jemalloc='yes'
26907    fi
26908  else
26909    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26910$as_echo "no" >&6; }
26911  fi
26912fi
26913 if test "$have_jemalloc" = 'yes'; then
26914  HAVE_JEMALLOC_TRUE=
26915  HAVE_JEMALLOC_FALSE='#'
26916else
26917  HAVE_JEMALLOC_TRUE='#'
26918  HAVE_JEMALLOC_FALSE=
26919fi
26920
26921
26922
26923#
26924# Check for TCMalloc library
26925#
26926have_tcmalloc='no'
26927TCMALLOC_LIBS=''
26928OLIBS="$LIBS"
26929if test "$have_threads" = 'yes' -a "$with_tcmalloc" != 'no'; then
26930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking tcmalloc library support" >&5
26931$as_echo_n "checking tcmalloc library support... " >&6; }
26932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26933$as_echo "" >&6; }
26934    failed=0
26935    passed=0
26936
26937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mallinfo in -ltcmalloc_minimal" >&5
26938$as_echo_n "checking for mallinfo in -ltcmalloc_minimal... " >&6; }
26939if ${ac_cv_lib_tcmalloc_minimal_mallinfo+:} false; then :
26940  $as_echo_n "(cached) " >&6
26941else
26942  ac_check_lib_save_LIBS=$LIBS
26943LIBS="-ltcmalloc_minimal  $LIBS"
26944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26945/* end confdefs.h.  */
26946
26947/* Override any GCC internal prototype to avoid an error.
26948   Use char because int might match the return type of a GCC
26949   builtin and then its argument prototype would still apply.  */
26950#ifdef __cplusplus
26951extern "C"
26952#endif
26953char mallinfo ();
26954int
26955main ()
26956{
26957return mallinfo ();
26958  ;
26959  return 0;
26960}
26961_ACEOF
26962if ac_fn_c_try_link "$LINENO"; then :
26963  ac_cv_lib_tcmalloc_minimal_mallinfo=yes
26964else
26965  ac_cv_lib_tcmalloc_minimal_mallinfo=no
26966fi
26967rm -f core conftest.err conftest.$ac_objext \
26968    conftest$ac_exeext conftest.$ac_ext
26969LIBS=$ac_check_lib_save_LIBS
26970fi
26971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_mallinfo" >&5
26972$as_echo "$ac_cv_lib_tcmalloc_minimal_mallinfo" >&6; }
26973if test "x$ac_cv_lib_tcmalloc_minimal_mallinfo" = xyes; then :
26974  passed=`expr $passed + 1`
26975else
26976  failed=`expr $failed + 1`
26977fi
26978
26979
26980    if test $passed -gt 0; then
26981        if test $failed -gt 0; then
26982            have_tcmalloc='no (some components failed test)'
26983        else
26984            TCMALLOC_LIBS=-ltcmalloc_minimal
26985            LIBS="$TCMALLOC_LIBS $LIBS"
26986            CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free"
26987
26988$as_echo "#define HAVE_TCMALLOC 1" >>confdefs.h
26989
26990            have_tcmalloc='yes'
26991        fi
26992    fi
26993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcmalloc memory allocation library is complete" >&5
26994$as_echo_n "checking if tcmalloc memory allocation library is complete... " >&6; }
26995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tcmalloc" >&5
26996$as_echo "$have_tcmalloc" >&6; }
26997fi
26998 if test "$have_tcmalloc" = 'yes'; then
26999  HAVE_TCMALLOC_TRUE=
27000  HAVE_TCMALLOC_FALSE='#'
27001else
27002  HAVE_TCMALLOC_TRUE='#'
27003  HAVE_TCMALLOC_FALSE=
27004fi
27005
27006
27007
27008#
27009# Check for umem.
27010#
27011have_umem='no'
27012UMEM_LIBS=''
27013if test "$with_umem" != 'no'; then
27014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support" >&5
27015$as_echo_n "checking for UMEM support... " >&6; }
27016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27017$as_echo "" >&6; }
27018  failed=0
27019  passed=0
27020  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
27021if test "x$ac_cv_header_umem_h" = xyes; then :
27022  passed=`expr $passed + 1`
27023else
27024  failed=`expr $failed + 1`
27025fi
27026
27027
27028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
27029$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
27030if ${ac_cv_lib_umem_umem_alloc+:} false; then :
27031  $as_echo_n "(cached) " >&6
27032else
27033  ac_check_lib_save_LIBS=$LIBS
27034LIBS="-lumem  $LIBS"
27035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036/* end confdefs.h.  */
27037
27038/* Override any GCC internal prototype to avoid an error.
27039   Use char because int might match the return type of a GCC
27040   builtin and then its argument prototype would still apply.  */
27041#ifdef __cplusplus
27042extern "C"
27043#endif
27044char umem_alloc ();
27045int
27046main ()
27047{
27048return umem_alloc ();
27049  ;
27050  return 0;
27051}
27052_ACEOF
27053if ac_fn_c_try_link "$LINENO"; then :
27054  ac_cv_lib_umem_umem_alloc=yes
27055else
27056  ac_cv_lib_umem_umem_alloc=no
27057fi
27058rm -f core conftest.err conftest.$ac_objext \
27059    conftest$ac_exeext conftest.$ac_ext
27060LIBS=$ac_check_lib_save_LIBS
27061fi
27062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
27063$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
27064if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
27065  passed=`expr $passed + 1`
27066else
27067  failed=`expr $failed + 1`
27068fi
27069
27070
27071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
27072$as_echo_n "checking for umem_free in -lumem... " >&6; }
27073if ${ac_cv_lib_umem_umem_free+:} false; then :
27074  $as_echo_n "(cached) " >&6
27075else
27076  ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lumem  $LIBS"
27078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079/* end confdefs.h.  */
27080
27081/* Override any GCC internal prototype to avoid an error.
27082   Use char because int might match the return type of a GCC
27083   builtin and then its argument prototype would still apply.  */
27084#ifdef __cplusplus
27085extern "C"
27086#endif
27087char umem_free ();
27088int
27089main ()
27090{
27091return umem_free ();
27092  ;
27093  return 0;
27094}
27095_ACEOF
27096if ac_fn_c_try_link "$LINENO"; then :
27097  ac_cv_lib_umem_umem_free=yes
27098else
27099  ac_cv_lib_umem_umem_free=no
27100fi
27101rm -f core conftest.err conftest.$ac_objext \
27102    conftest$ac_exeext conftest.$ac_ext
27103LIBS=$ac_check_lib_save_LIBS
27104fi
27105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
27106$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
27107if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
27108  passed=`expr $passed + 1`
27109else
27110  failed=`expr $failed + 1`
27111fi
27112
27113
27114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
27115$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27116  if test $passed -gt 0; then
27117    if test $failed -gt 0; then
27118      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27119$as_echo "no -- some components failed test" >&6; }
27120      have_umem='no (failed tests)'
27121    else
27122      UMEM_LIBS='-lumem'
27123      LIBS="$UMEM_LIBS $LIBS"
27124
27125$as_echo "#define HAVE_UMEM 1" >>confdefs.h
27126
27127      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27128$as_echo "yes" >&6; }
27129      have_umem='yes'
27130    fi
27131  else
27132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27133$as_echo "no" >&6; }
27134  fi
27135fi
27136 if test "$have_umem" = 'yes'; then
27137  HAVE_UMEM_TRUE=
27138  HAVE_UMEM_FALSE='#'
27139else
27140  HAVE_UMEM_TRUE='#'
27141  HAVE_UMEM_FALSE=
27142fi
27143
27144
27145
27146#
27147# Add support for ccmalloc memory debugging library if requested
27148#
27149have_ccmalloc='no'
27150CCMALLOC_LIBS=''
27151if test "$enable_ccmalloc" = 'yes'; then
27152    # Extract the first word of "ccmalloc", so it can be a program name with args.
27153set dummy ccmalloc; ac_word=$2
27154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27155$as_echo_n "checking for $ac_word... " >&6; }
27156if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
27157  $as_echo_n "(cached) " >&6
27158else
27159  case $CCMALLOCDelegate in
27160  [\\/]* | ?:[\\/]*)
27161  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27162  ;;
27163  *)
27164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27165for as_dir in $PATH
27166do
27167  IFS=$as_save_IFS
27168  test -z "$as_dir" && as_dir=.
27169    for ac_exec_ext in '' $ac_executable_extensions; do
27170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27171    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
27172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27173    break 2
27174  fi
27175done
27176  done
27177IFS=$as_save_IFS
27178
27179  ;;
27180esac
27181fi
27182CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27183if test -n "$CCMALLOCDelegate"; then
27184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
27185$as_echo "$CCMALLOCDelegate" >&6; }
27186else
27187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27188$as_echo "no" >&6; }
27189fi
27190
27191
27192    if test -n "$CCMALLOCDelegate"; then
27193        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27194        OLIBS="$LIBS"
27195        # Assume that gcc is used with ccmalloc.
27196        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
27197       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
27198$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
27199if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
27200  $as_echo_n "(cached) " >&6
27201else
27202  ac_check_lib_save_LIBS=$LIBS
27203LIBS="-lccmalloc  $LIBS"
27204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27205/* end confdefs.h.  */
27206
27207/* Override any GCC internal prototype to avoid an error.
27208   Use char because int might match the return type of a GCC
27209   builtin and then its argument prototype would still apply.  */
27210#ifdef __cplusplus
27211extern "C"
27212#endif
27213char ccmalloc_malloc ();
27214int
27215main ()
27216{
27217return ccmalloc_malloc ();
27218  ;
27219  return 0;
27220}
27221_ACEOF
27222if ac_fn_c_try_link "$LINENO"; then :
27223  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27224else
27225  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
27226fi
27227rm -f core conftest.err conftest.$ac_objext \
27228    conftest$ac_exeext conftest.$ac_ext
27229LIBS=$ac_check_lib_save_LIBS
27230fi
27231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
27232$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
27233if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
27234  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27235else
27236  ,-ldl
27237fi
27238
27239        if test -n "$CCMALLOC_LIBS"; then
27240            LIBS="$OLIBS"
27241            LIBS="$LIBS $CCMALLOC_LIBS"
27242            have_ccmalloc='yes'
27243        else
27244            LIBS="$OLIBS"
27245        fi
27246    fi
27247fi
27248
27249#
27250# Add support for 'huge pages' if requested
27251#
27252if test "x$enable_hugepages" != "xno"; then :
27253
27254
27255$as_echo "#define HAVE_HUGEPAGES  1" >>confdefs.h
27256
27257
27258fi
27259
27260#
27261# Add support for efence memory debugging library if requested
27262#
27263if test "$enable_efence" = 'yes'; then
27264    EFENCE_LIBS='-lefence'
27265    LIBS="$EFENCE_LIBS $LIBS"
27266fi
27267
27268
27269#
27270# Check for BZLIB
27271#
27272
27273
27274# Check whether --with-bzlib was given.
27275if test "${with_bzlib+set}" = set; then :
27276  withval=$with_bzlib; with_bzlib=$withval
27277else
27278  with_bzlib='yes'
27279fi
27280
27281
27282if test "$with_bzlib" != 'yes'; then
27283    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27284fi
27285
27286have_bzlib='no'
27287if test "$with_bzlib" != 'no'; then
27288    BZLIB_LIBS=''
27289    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27290$as_echo "-------------------------------------------------------------" >&6; }
27291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
27292$as_echo_n "checking for BZLIB... " >&6; }
27293    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27294$as_echo "" >&6; }
27295    failed=0
27296    passed=0
27297    found_libbz=0
27298    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
27299if test "x$ac_cv_header_bzlib_h" = xyes; then :
27300  passed=`expr $passed + 1`
27301else
27302  failed=`expr $failed + 1`
27303fi
27304
27305
27306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
27307$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
27308if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
27309  $as_echo_n "(cached) " >&6
27310else
27311  ac_check_lib_save_LIBS=$LIBS
27312LIBS="-lbz2  $LIBS"
27313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27314/* end confdefs.h.  */
27315
27316/* Override any GCC internal prototype to avoid an error.
27317   Use char because int might match the return type of a GCC
27318   builtin and then its argument prototype would still apply.  */
27319#ifdef __cplusplus
27320extern "C"
27321#endif
27322char BZ2_bzDecompress ();
27323int
27324main ()
27325{
27326return BZ2_bzDecompress ();
27327  ;
27328  return 0;
27329}
27330_ACEOF
27331if ac_fn_c_try_link "$LINENO"; then :
27332  ac_cv_lib_bz2_BZ2_bzDecompress=yes
27333else
27334  ac_cv_lib_bz2_BZ2_bzDecompress=no
27335fi
27336rm -f core conftest.err conftest.$ac_objext \
27337    conftest$ac_exeext conftest.$ac_ext
27338LIBS=$ac_check_lib_save_LIBS
27339fi
27340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
27341$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
27342if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
27343  found_libbz=`expr $found_libbz + 1`
27344fi
27345
27346    if test "$native_win32_build" = 'yes'; then
27347      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
27348$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
27349if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
27350  $as_echo_n "(cached) " >&6
27351else
27352  ac_check_lib_save_LIBS=$LIBS
27353LIBS="-lbz2  $LIBS"
27354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27355/* end confdefs.h.  */
27356
27357/* Override any GCC internal prototype to avoid an error.
27358   Use char because int might match the return type of a GCC
27359   builtin and then its argument prototype would still apply.  */
27360#ifdef __cplusplus
27361extern "C"
27362#endif
27363char _imp__BZ2_decompress ();
27364int
27365main ()
27366{
27367return _imp__BZ2_decompress ();
27368  ;
27369  return 0;
27370}
27371_ACEOF
27372if ac_fn_c_try_link "$LINENO"; then :
27373  ac_cv_lib_bz2__imp__BZ2_decompress=yes
27374else
27375  ac_cv_lib_bz2__imp__BZ2_decompress=no
27376fi
27377rm -f core conftest.err conftest.$ac_objext \
27378    conftest$ac_exeext conftest.$ac_ext
27379LIBS=$ac_check_lib_save_LIBS
27380fi
27381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
27382$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
27383if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
27384  found_libbz=`expr $found_libbz + 1`
27385fi
27386
27387    fi
27388    if test $found_libbz -gt 0; then
27389      passed=`expr $passed + 1`
27390    else
27391      failed=`expr $failed + 1`
27392    fi
27393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
27394$as_echo_n "checking if BZLIB package is complete... " >&6; }
27395    if test $passed -gt 0; then
27396      if test $failed -gt 0; then
27397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27398$as_echo "no -- some components failed test" >&6; }
27399        have_bzlib='no (failed tests)'
27400      else
27401        BZLIB_LIBS='-lbz2'
27402        LIBS="$BZLIB_LIBS $LIBS"
27403
27404$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
27405
27406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27407$as_echo "yes" >&6; }
27408        have_bzlib='yes'
27409      fi
27410    else
27411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27412$as_echo "no" >&6; }
27413    fi
27414fi
27415 if test "$have_bzlib" = 'yes'; then
27416  BZLIB_DELEGATE_TRUE=
27417  BZLIB_DELEGATE_FALSE='#'
27418else
27419  BZLIB_DELEGATE_TRUE='#'
27420  BZLIB_DELEGATE_FALSE=
27421fi
27422
27423
27424
27425#
27426# Find the X11 include and library directories.
27427#
27428IPC_LIBS=''
27429X11_LIBS=''
27430XEXT_LIBS=''
27431XT_LIBS=''
27432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
27433$as_echo_n "checking for X... " >&6; }
27434
27435
27436# Check whether --with-x was given.
27437if test "${with_x+set}" = set; then :
27438  withval=$with_x;
27439fi
27440
27441# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27442if test "x$with_x" = xno; then
27443  # The user explicitly disabled X.
27444  have_x=disabled
27445else
27446  case $x_includes,$x_libraries in #(
27447    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
27448    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
27449  $as_echo_n "(cached) " >&6
27450else
27451  # One or both of the vars are not set, and there is no cached value.
27452ac_x_includes=no ac_x_libraries=no
27453rm -f -r conftest.dir
27454if mkdir conftest.dir; then
27455  cd conftest.dir
27456  cat >Imakefile <<'_ACEOF'
27457incroot:
27458	@echo incroot='${INCROOT}'
27459usrlibdir:
27460	@echo usrlibdir='${USRLIBDIR}'
27461libdir:
27462	@echo libdir='${LIBDIR}'
27463_ACEOF
27464  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
27465    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27466    for ac_var in incroot usrlibdir libdir; do
27467      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27468    done
27469    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27470    for ac_extension in a so sl dylib la dll; do
27471      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27472	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27473	ac_im_usrlibdir=$ac_im_libdir; break
27474      fi
27475    done
27476    # Screen out bogus values from the imake configuration.  They are
27477    # bogus both because they are the default anyway, and because
27478    # using them would break gcc on systems where it needs fixed includes.
27479    case $ac_im_incroot in
27480	/usr/include) ac_x_includes= ;;
27481	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27482    esac
27483    case $ac_im_usrlibdir in
27484	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
27485	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27486    esac
27487  fi
27488  cd ..
27489  rm -f -r conftest.dir
27490fi
27491
27492# Standard set of common directories for X headers.
27493# Check X11 before X11Rn because it is often a symlink to the current release.
27494ac_x_header_dirs='
27495/usr/X11/include
27496/usr/X11R7/include
27497/usr/X11R6/include
27498/usr/X11R5/include
27499/usr/X11R4/include
27500
27501/usr/include/X11
27502/usr/include/X11R7
27503/usr/include/X11R6
27504/usr/include/X11R5
27505/usr/include/X11R4
27506
27507/usr/local/X11/include
27508/usr/local/X11R7/include
27509/usr/local/X11R6/include
27510/usr/local/X11R5/include
27511/usr/local/X11R4/include
27512
27513/usr/local/include/X11
27514/usr/local/include/X11R7
27515/usr/local/include/X11R6
27516/usr/local/include/X11R5
27517/usr/local/include/X11R4
27518
27519/usr/X386/include
27520/usr/x386/include
27521/usr/XFree86/include/X11
27522
27523/usr/include
27524/usr/local/include
27525/usr/unsupported/include
27526/usr/athena/include
27527/usr/local/x11r5/include
27528/usr/lpp/Xamples/include
27529
27530/usr/openwin/include
27531/usr/openwin/share/include'
27532
27533if test "$ac_x_includes" = no; then
27534  # Guess where to find include files, by looking for Xlib.h.
27535  # First, try using that file with no special directory specified.
27536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27537/* end confdefs.h.  */
27538#include <X11/Xlib.h>
27539_ACEOF
27540if ac_fn_c_try_cpp "$LINENO"; then :
27541  # We can compile using X headers with no special include directory.
27542ac_x_includes=
27543else
27544  for ac_dir in $ac_x_header_dirs; do
27545  if test -r "$ac_dir/X11/Xlib.h"; then
27546    ac_x_includes=$ac_dir
27547    break
27548  fi
27549done
27550fi
27551rm -f conftest.err conftest.i conftest.$ac_ext
27552fi # $ac_x_includes = no
27553
27554if test "$ac_x_libraries" = no; then
27555  # Check for the libraries.
27556  # See if we find them without any special options.
27557  # Don't add to $LIBS permanently.
27558  ac_save_LIBS=$LIBS
27559  LIBS="-lX11 $LIBS"
27560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561/* end confdefs.h.  */
27562#include <X11/Xlib.h>
27563int
27564main ()
27565{
27566XrmInitialize ()
27567  ;
27568  return 0;
27569}
27570_ACEOF
27571if ac_fn_c_try_link "$LINENO"; then :
27572  LIBS=$ac_save_LIBS
27573# We can link X programs with no special library path.
27574ac_x_libraries=
27575else
27576  LIBS=$ac_save_LIBS
27577for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27578do
27579  # Don't even attempt the hair of trying to link an X program!
27580  for ac_extension in a so sl dylib la dll; do
27581    if test -r "$ac_dir/libX11.$ac_extension"; then
27582      ac_x_libraries=$ac_dir
27583      break 2
27584    fi
27585  done
27586done
27587fi
27588rm -f core conftest.err conftest.$ac_objext \
27589    conftest$ac_exeext conftest.$ac_ext
27590fi # $ac_x_libraries = no
27591
27592case $ac_x_includes,$ac_x_libraries in #(
27593  no,* | *,no | *\'*)
27594    # Didn't find X, or a directory has "'" in its name.
27595    ac_cv_have_x="have_x=no";; #(
27596  *)
27597    # Record where we found X for the cache.
27598    ac_cv_have_x="have_x=yes\
27599	ac_x_includes='$ac_x_includes'\
27600	ac_x_libraries='$ac_x_libraries'"
27601esac
27602fi
27603;; #(
27604    *) have_x=yes;;
27605  esac
27606  eval "$ac_cv_have_x"
27607fi # $with_x != no
27608
27609if test "$have_x" != yes; then
27610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
27611$as_echo "$have_x" >&6; }
27612  no_x=yes
27613else
27614  # If each of the values was on the command line, it overrides each guess.
27615  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27616  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27617  # Update the cache value to reflect the command line values.
27618  ac_cv_have_x="have_x=yes\
27619	ac_x_includes='$x_includes'\
27620	ac_x_libraries='$x_libraries'"
27621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
27622$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27623fi
27624
27625if test "$no_x" = yes; then
27626  # Not all programs may use this symbol, but it does not hurt to define it.
27627
27628$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
27629
27630  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27631else
27632  if test -n "$x_includes"; then
27633    X_CFLAGS="$X_CFLAGS -I$x_includes"
27634  fi
27635
27636  # It would also be nice to do this for all -L options, not just this one.
27637  if test -n "$x_libraries"; then
27638    X_LIBS="$X_LIBS -L$x_libraries"
27639    # For Solaris; some versions of Sun CC require a space after -R and
27640    # others require no space.  Words are not sufficient . . . .
27641    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
27642$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27643    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27644    ac_xsave_c_werror_flag=$ac_c_werror_flag
27645    ac_c_werror_flag=yes
27646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27647/* end confdefs.h.  */
27648
27649int
27650main ()
27651{
27652
27653  ;
27654  return 0;
27655}
27656_ACEOF
27657if ac_fn_c_try_link "$LINENO"; then :
27658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27659$as_echo "no" >&6; }
27660       X_LIBS="$X_LIBS -R$x_libraries"
27661else
27662  LIBS="$ac_xsave_LIBS -R $x_libraries"
27663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27664/* end confdefs.h.  */
27665
27666int
27667main ()
27668{
27669
27670  ;
27671  return 0;
27672}
27673_ACEOF
27674if ac_fn_c_try_link "$LINENO"; then :
27675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27676$as_echo "yes" >&6; }
27677	  X_LIBS="$X_LIBS -R $x_libraries"
27678else
27679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
27680$as_echo "neither works" >&6; }
27681fi
27682rm -f core conftest.err conftest.$ac_objext \
27683    conftest$ac_exeext conftest.$ac_ext
27684fi
27685rm -f core conftest.err conftest.$ac_objext \
27686    conftest$ac_exeext conftest.$ac_ext
27687    ac_c_werror_flag=$ac_xsave_c_werror_flag
27688    LIBS=$ac_xsave_LIBS
27689  fi
27690
27691  # Check for system-dependent libraries X programs must link with.
27692  # Do this before checking for the system-independent R6 libraries
27693  # (-lICE), since we may need -lsocket or whatever for X linking.
27694
27695  if test "$ISC" = yes; then
27696    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27697  else
27698    # Martyn Johnson says this is needed for Ultrix, if the X
27699    # libraries were built with DECnet support.  And Karl Berry says
27700    # the Alpha needs dnet_stub (dnet does not exist).
27701    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27702    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27703/* end confdefs.h.  */
27704
27705/* Override any GCC internal prototype to avoid an error.
27706   Use char because int might match the return type of a GCC
27707   builtin and then its argument prototype would still apply.  */
27708#ifdef __cplusplus
27709extern "C"
27710#endif
27711char XOpenDisplay ();
27712int
27713main ()
27714{
27715return XOpenDisplay ();
27716  ;
27717  return 0;
27718}
27719_ACEOF
27720if ac_fn_c_try_link "$LINENO"; then :
27721
27722else
27723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
27724$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
27725if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
27726  $as_echo_n "(cached) " >&6
27727else
27728  ac_check_lib_save_LIBS=$LIBS
27729LIBS="-ldnet  $LIBS"
27730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27731/* end confdefs.h.  */
27732
27733/* Override any GCC internal prototype to avoid an error.
27734   Use char because int might match the return type of a GCC
27735   builtin and then its argument prototype would still apply.  */
27736#ifdef __cplusplus
27737extern "C"
27738#endif
27739char dnet_ntoa ();
27740int
27741main ()
27742{
27743return dnet_ntoa ();
27744  ;
27745  return 0;
27746}
27747_ACEOF
27748if ac_fn_c_try_link "$LINENO"; then :
27749  ac_cv_lib_dnet_dnet_ntoa=yes
27750else
27751  ac_cv_lib_dnet_dnet_ntoa=no
27752fi
27753rm -f core conftest.err conftest.$ac_objext \
27754    conftest$ac_exeext conftest.$ac_ext
27755LIBS=$ac_check_lib_save_LIBS
27756fi
27757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27758$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27759if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27760  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27761fi
27762
27763    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27765$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27766if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27767  $as_echo_n "(cached) " >&6
27768else
27769  ac_check_lib_save_LIBS=$LIBS
27770LIBS="-ldnet_stub  $LIBS"
27771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27772/* end confdefs.h.  */
27773
27774/* Override any GCC internal prototype to avoid an error.
27775   Use char because int might match the return type of a GCC
27776   builtin and then its argument prototype would still apply.  */
27777#ifdef __cplusplus
27778extern "C"
27779#endif
27780char dnet_ntoa ();
27781int
27782main ()
27783{
27784return dnet_ntoa ();
27785  ;
27786  return 0;
27787}
27788_ACEOF
27789if ac_fn_c_try_link "$LINENO"; then :
27790  ac_cv_lib_dnet_stub_dnet_ntoa=yes
27791else
27792  ac_cv_lib_dnet_stub_dnet_ntoa=no
27793fi
27794rm -f core conftest.err conftest.$ac_objext \
27795    conftest$ac_exeext conftest.$ac_ext
27796LIBS=$ac_check_lib_save_LIBS
27797fi
27798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27799$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27800if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27801  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27802fi
27803
27804    fi
27805fi
27806rm -f core conftest.err conftest.$ac_objext \
27807    conftest$ac_exeext conftest.$ac_ext
27808    LIBS="$ac_xsave_LIBS"
27809
27810    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27811    # to get the SysV transport functions.
27812    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27813    # needs -lnsl.
27814    # The nsl library prevents programs from opening the X display
27815    # on Irix 5.2, according to T.E. Dickey.
27816    # The functions gethostbyname, getservbyname, and inet_addr are
27817    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27818    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27819if test "x$ac_cv_func_gethostbyname" = xyes; then :
27820
27821fi
27822
27823    if test $ac_cv_func_gethostbyname = no; then
27824      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27825$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27826if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27827  $as_echo_n "(cached) " >&6
27828else
27829  ac_check_lib_save_LIBS=$LIBS
27830LIBS="-lnsl  $LIBS"
27831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27832/* end confdefs.h.  */
27833
27834/* Override any GCC internal prototype to avoid an error.
27835   Use char because int might match the return type of a GCC
27836   builtin and then its argument prototype would still apply.  */
27837#ifdef __cplusplus
27838extern "C"
27839#endif
27840char gethostbyname ();
27841int
27842main ()
27843{
27844return gethostbyname ();
27845  ;
27846  return 0;
27847}
27848_ACEOF
27849if ac_fn_c_try_link "$LINENO"; then :
27850  ac_cv_lib_nsl_gethostbyname=yes
27851else
27852  ac_cv_lib_nsl_gethostbyname=no
27853fi
27854rm -f core conftest.err conftest.$ac_objext \
27855    conftest$ac_exeext conftest.$ac_ext
27856LIBS=$ac_check_lib_save_LIBS
27857fi
27858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27859$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27860if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27861  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27862fi
27863
27864      if test $ac_cv_lib_nsl_gethostbyname = no; then
27865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27866$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27867if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27868  $as_echo_n "(cached) " >&6
27869else
27870  ac_check_lib_save_LIBS=$LIBS
27871LIBS="-lbsd  $LIBS"
27872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27873/* end confdefs.h.  */
27874
27875/* Override any GCC internal prototype to avoid an error.
27876   Use char because int might match the return type of a GCC
27877   builtin and then its argument prototype would still apply.  */
27878#ifdef __cplusplus
27879extern "C"
27880#endif
27881char gethostbyname ();
27882int
27883main ()
27884{
27885return gethostbyname ();
27886  ;
27887  return 0;
27888}
27889_ACEOF
27890if ac_fn_c_try_link "$LINENO"; then :
27891  ac_cv_lib_bsd_gethostbyname=yes
27892else
27893  ac_cv_lib_bsd_gethostbyname=no
27894fi
27895rm -f core conftest.err conftest.$ac_objext \
27896    conftest$ac_exeext conftest.$ac_ext
27897LIBS=$ac_check_lib_save_LIBS
27898fi
27899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27900$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27901if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27902  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27903fi
27904
27905      fi
27906    fi
27907
27908    # lieder@skyler.mavd.honeywell.com says without -lsocket,
27909    # socket/setsockopt and other routines are undefined under SCO ODT
27910    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27911    # on later versions), says Simon Leinen: it contains gethostby*
27912    # variants that don't use the name server (or something).  -lsocket
27913    # must be given before -lnsl if both are needed.  We assume that
27914    # if connect needs -lnsl, so does gethostbyname.
27915    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27916if test "x$ac_cv_func_connect" = xyes; then :
27917
27918fi
27919
27920    if test $ac_cv_func_connect = no; then
27921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27922$as_echo_n "checking for connect in -lsocket... " >&6; }
27923if ${ac_cv_lib_socket_connect+:} false; then :
27924  $as_echo_n "(cached) " >&6
27925else
27926  ac_check_lib_save_LIBS=$LIBS
27927LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929/* end confdefs.h.  */
27930
27931/* Override any GCC internal prototype to avoid an error.
27932   Use char because int might match the return type of a GCC
27933   builtin and then its argument prototype would still apply.  */
27934#ifdef __cplusplus
27935extern "C"
27936#endif
27937char connect ();
27938int
27939main ()
27940{
27941return connect ();
27942  ;
27943  return 0;
27944}
27945_ACEOF
27946if ac_fn_c_try_link "$LINENO"; then :
27947  ac_cv_lib_socket_connect=yes
27948else
27949  ac_cv_lib_socket_connect=no
27950fi
27951rm -f core conftest.err conftest.$ac_objext \
27952    conftest$ac_exeext conftest.$ac_ext
27953LIBS=$ac_check_lib_save_LIBS
27954fi
27955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27956$as_echo "$ac_cv_lib_socket_connect" >&6; }
27957if test "x$ac_cv_lib_socket_connect" = xyes; then :
27958  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27959fi
27960
27961    fi
27962
27963    # Guillermo Gomez says -lposix is necessary on A/UX.
27964    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27965if test "x$ac_cv_func_remove" = xyes; then :
27966
27967fi
27968
27969    if test $ac_cv_func_remove = no; then
27970      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27971$as_echo_n "checking for remove in -lposix... " >&6; }
27972if ${ac_cv_lib_posix_remove+:} false; then :
27973  $as_echo_n "(cached) " >&6
27974else
27975  ac_check_lib_save_LIBS=$LIBS
27976LIBS="-lposix  $LIBS"
27977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27978/* end confdefs.h.  */
27979
27980/* Override any GCC internal prototype to avoid an error.
27981   Use char because int might match the return type of a GCC
27982   builtin and then its argument prototype would still apply.  */
27983#ifdef __cplusplus
27984extern "C"
27985#endif
27986char remove ();
27987int
27988main ()
27989{
27990return remove ();
27991  ;
27992  return 0;
27993}
27994_ACEOF
27995if ac_fn_c_try_link "$LINENO"; then :
27996  ac_cv_lib_posix_remove=yes
27997else
27998  ac_cv_lib_posix_remove=no
27999fi
28000rm -f core conftest.err conftest.$ac_objext \
28001    conftest$ac_exeext conftest.$ac_ext
28002LIBS=$ac_check_lib_save_LIBS
28003fi
28004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
28005$as_echo "$ac_cv_lib_posix_remove" >&6; }
28006if test "x$ac_cv_lib_posix_remove" = xyes; then :
28007  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28008fi
28009
28010    fi
28011
28012    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28013    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
28014if test "x$ac_cv_func_shmat" = xyes; then :
28015
28016fi
28017
28018    if test $ac_cv_func_shmat = no; then
28019      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
28020$as_echo_n "checking for shmat in -lipc... " >&6; }
28021if ${ac_cv_lib_ipc_shmat+:} false; then :
28022  $as_echo_n "(cached) " >&6
28023else
28024  ac_check_lib_save_LIBS=$LIBS
28025LIBS="-lipc  $LIBS"
28026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28027/* end confdefs.h.  */
28028
28029/* Override any GCC internal prototype to avoid an error.
28030   Use char because int might match the return type of a GCC
28031   builtin and then its argument prototype would still apply.  */
28032#ifdef __cplusplus
28033extern "C"
28034#endif
28035char shmat ();
28036int
28037main ()
28038{
28039return shmat ();
28040  ;
28041  return 0;
28042}
28043_ACEOF
28044if ac_fn_c_try_link "$LINENO"; then :
28045  ac_cv_lib_ipc_shmat=yes
28046else
28047  ac_cv_lib_ipc_shmat=no
28048fi
28049rm -f core conftest.err conftest.$ac_objext \
28050    conftest$ac_exeext conftest.$ac_ext
28051LIBS=$ac_check_lib_save_LIBS
28052fi
28053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
28054$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
28055if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
28056  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28057fi
28058
28059    fi
28060  fi
28061
28062  # Check for libraries that X11R6 Xt/Xaw programs need.
28063  ac_save_LDFLAGS=$LDFLAGS
28064  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28065  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28066  # check for ICE first), but we must link in the order -lSM -lICE or
28067  # we get undefined symbols.  So assume we have SM if we have ICE.
28068  # These have to be linked with before -lX11, unlike the other
28069  # libraries we check for below, so use a different variable.
28070  # John Interrante, Karl Berry
28071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
28072$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
28073if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
28074  $as_echo_n "(cached) " >&6
28075else
28076  ac_check_lib_save_LIBS=$LIBS
28077LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28079/* end confdefs.h.  */
28080
28081/* Override any GCC internal prototype to avoid an error.
28082   Use char because int might match the return type of a GCC
28083   builtin and then its argument prototype would still apply.  */
28084#ifdef __cplusplus
28085extern "C"
28086#endif
28087char IceConnectionNumber ();
28088int
28089main ()
28090{
28091return IceConnectionNumber ();
28092  ;
28093  return 0;
28094}
28095_ACEOF
28096if ac_fn_c_try_link "$LINENO"; then :
28097  ac_cv_lib_ICE_IceConnectionNumber=yes
28098else
28099  ac_cv_lib_ICE_IceConnectionNumber=no
28100fi
28101rm -f core conftest.err conftest.$ac_objext \
28102    conftest$ac_exeext conftest.$ac_ext
28103LIBS=$ac_check_lib_save_LIBS
28104fi
28105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28106$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28107if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
28108  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28109fi
28110
28111  LDFLAGS=$ac_save_LDFLAGS
28112
28113fi
28114
28115if test "$no_x" != 'yes'; then
28116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28117$as_echo "-------------------------------------------------------------" >&6; }
28118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
28119$as_echo_n "checking for X11... " >&6; }
28120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28121$as_echo "" >&6; }
28122    LDFLAGS="$LDFLAGS $X_LIBS"
28123    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28124    LIBS="$X11_LIBS $LIBS"
28125    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28126
28127
28128$as_echo "#define X11_DELEGATE 1" >>confdefs.h
28129
28130    #
28131    # Check for X11 shared memory extension
28132    #
28133    # shmctl is required to support the shared memory extension
28134    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
28135if test "x$ac_cv_func_shmctl" = xyes; then :
28136  have_shmctl='yes'
28137fi
28138
28139    if test "$have_shmctl" != 'yes'; then
28140        PERSIST_LIBS=$LIBS
28141        LIBS="$LIBS -lcygipc"
28142        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143/* end confdefs.h.  */
28144
28145/* Override any GCC internal prototype to avoid an error.
28146   Use char because int might match the return type of a GCC
28147   builtin and then its argument prototype would still apply.  */
28148#ifdef __cplusplus
28149extern "C"
28150#endif
28151char shmctl ();
28152int
28153main ()
28154{
28155return shmctl ();
28156  ;
28157  return 0;
28158}
28159_ACEOF
28160if ac_fn_c_try_link "$LINENO"; then :
28161  have_shmctl='yes'; IPC_LIBS='-lcygipc'
28162fi
28163rm -f core conftest.err conftest.$ac_objext \
28164    conftest$ac_exeext conftest.$ac_ext
28165        LIBS=$PERSIST_LIBS
28166    fi
28167
28168    if test "$have_shmctl" = 'yes'; then
28169        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
28170$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
28171if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
28172  $as_echo_n "(cached) " >&6
28173else
28174  ac_check_lib_save_LIBS=$LIBS
28175LIBS="-lXext  $LIBS"
28176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177/* end confdefs.h.  */
28178
28179/* Override any GCC internal prototype to avoid an error.
28180   Use char because int might match the return type of a GCC
28181   builtin and then its argument prototype would still apply.  */
28182#ifdef __cplusplus
28183extern "C"
28184#endif
28185char XShmAttach ();
28186int
28187main ()
28188{
28189return XShmAttach ();
28190  ;
28191  return 0;
28192}
28193_ACEOF
28194if ac_fn_c_try_link "$LINENO"; then :
28195  ac_cv_lib_Xext_XShmAttach=yes
28196else
28197  ac_cv_lib_Xext_XShmAttach=no
28198fi
28199rm -f core conftest.err conftest.$ac_objext \
28200    conftest$ac_exeext conftest.$ac_ext
28201LIBS=$ac_check_lib_save_LIBS
28202fi
28203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
28204$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
28205if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
28206  XEXT_LIBS='-lXext' ;
28207$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
28208
28209fi
28210
28211    fi
28212
28213    #
28214    # Check for X11 shape extension
28215    #
28216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
28217$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
28218if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
28219  $as_echo_n "(cached) " >&6
28220else
28221  ac_check_lib_save_LIBS=$LIBS
28222LIBS="-lXext  $LIBS"
28223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28224/* end confdefs.h.  */
28225
28226/* Override any GCC internal prototype to avoid an error.
28227   Use char because int might match the return type of a GCC
28228   builtin and then its argument prototype would still apply.  */
28229#ifdef __cplusplus
28230extern "C"
28231#endif
28232char XShapeCombineMask ();
28233int
28234main ()
28235{
28236return XShapeCombineMask ();
28237  ;
28238  return 0;
28239}
28240_ACEOF
28241if ac_fn_c_try_link "$LINENO"; then :
28242  ac_cv_lib_Xext_XShapeCombineMask=yes
28243else
28244  ac_cv_lib_Xext_XShapeCombineMask=no
28245fi
28246rm -f core conftest.err conftest.$ac_objext \
28247    conftest$ac_exeext conftest.$ac_ext
28248LIBS=$ac_check_lib_save_LIBS
28249fi
28250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
28251$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
28252if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
28253  XEXT_LIBS='-lXext' ;
28254$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
28255
28256fi
28257
28258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
28259$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
28260if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
28261  $as_echo_n "(cached) " >&6
28262else
28263  ac_check_lib_save_LIBS=$LIBS
28264LIBS="-lXt  $LIBS"
28265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28266/* end confdefs.h.  */
28267
28268/* Override any GCC internal prototype to avoid an error.
28269   Use char because int might match the return type of a GCC
28270   builtin and then its argument prototype would still apply.  */
28271#ifdef __cplusplus
28272extern "C"
28273#endif
28274char XtSetEventDispatcher ();
28275int
28276main ()
28277{
28278return XtSetEventDispatcher ();
28279  ;
28280  return 0;
28281}
28282_ACEOF
28283if ac_fn_c_try_link "$LINENO"; then :
28284  ac_cv_lib_Xt_XtSetEventDispatcher=yes
28285else
28286  ac_cv_lib_Xt_XtSetEventDispatcher=no
28287fi
28288rm -f core conftest.err conftest.$ac_objext \
28289    conftest$ac_exeext conftest.$ac_ext
28290LIBS=$ac_check_lib_save_LIBS
28291fi
28292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
28293$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
28294if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
28295  XT_LIBS='-lXt'
28296fi
28297
28298    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28299fi
28300if test "$no_x" != 'yes'; then
28301  have_x='yes'
28302else
28303  have_x='no'
28304fi
28305 if test "$have_x" = 'yes'; then
28306  X11_DELEGATE_TRUE=
28307  X11_DELEGATE_FALSE='#'
28308else
28309  X11_DELEGATE_TRUE='#'
28310  X11_DELEGATE_FALSE=
28311fi
28312
28313
28314
28315
28316
28317#
28318# Check for ZIP
28319#
28320
28321# Check whether --with-zip was given.
28322if test "${with_zip+set}" = set; then :
28323  withval=$with_zip; with_zip=$withval
28324else
28325  with_zip='yes'
28326fi
28327
28328
28329if test "$with_zip" != 'yes'; then
28330    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zip=$with_zip "
28331fi
28332
28333have_zip='no'
28334ZIP_CFLAGS=""
28335ZIP_LIBS=""
28336ZIP_PKG=""
28337if test "x$with_zip" = "xyes"; then
28338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28339$as_echo "-------------------------------------------------------------" >&6; }
28340
28341pkg_failed=no
28342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzip >= 1.0.0" >&5
28343$as_echo_n "checking for libzip >= 1.0.0... " >&6; }
28344
28345if test -n "$ZIP_CFLAGS"; then
28346    pkg_cv_ZIP_CFLAGS="$ZIP_CFLAGS"
28347 elif test -n "$PKG_CONFIG"; then
28348    if test -n "$PKG_CONFIG" && \
28349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
28350  ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
28351  ac_status=$?
28352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28353  test $ac_status = 0; }; then
28354  pkg_cv_ZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip >= 1.0.0" 2>/dev/null`
28355		      test "x$?" != "x0" && pkg_failed=yes
28356else
28357  pkg_failed=yes
28358fi
28359 else
28360    pkg_failed=untried
28361fi
28362if test -n "$ZIP_LIBS"; then
28363    pkg_cv_ZIP_LIBS="$ZIP_LIBS"
28364 elif test -n "$PKG_CONFIG"; then
28365    if test -n "$PKG_CONFIG" && \
28366    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip >= 1.0.0\""; } >&5
28367  ($PKG_CONFIG --exists --print-errors "libzip >= 1.0.0") 2>&5
28368  ac_status=$?
28369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28370  test $ac_status = 0; }; then
28371  pkg_cv_ZIP_LIBS=`$PKG_CONFIG --libs "libzip >= 1.0.0" 2>/dev/null`
28372		      test "x$?" != "x0" && pkg_failed=yes
28373else
28374  pkg_failed=yes
28375fi
28376 else
28377    pkg_failed=untried
28378fi
28379
28380
28381
28382if test $pkg_failed = yes; then
28383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28384$as_echo "no" >&6; }
28385
28386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28387        _pkg_short_errors_supported=yes
28388else
28389        _pkg_short_errors_supported=no
28390fi
28391        if test $_pkg_short_errors_supported = yes; then
28392	        ZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
28393        else
28394	        ZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip >= 1.0.0" 2>&1`
28395        fi
28396	# Put the nasty error message in config.log where it belongs
28397	echo "$ZIP_PKG_ERRORS" >&5
28398
28399	have_zip=no
28400elif test $pkg_failed = untried; then
28401        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402$as_echo "no" >&6; }
28403	have_zip=no
28404else
28405	ZIP_CFLAGS=$pkg_cv_ZIP_CFLAGS
28406	ZIP_LIBS=$pkg_cv_ZIP_LIBS
28407        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28408$as_echo "yes" >&6; }
28409	have_zip=yes
28410fi
28411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28412$as_echo "" >&6; }
28413fi
28414
28415if test "$have_zip" = 'yes'; then
28416
28417$as_echo "#define ZIP_DELEGATE 1" >>confdefs.h
28418
28419  CFLAGS="$ZIP_CFLAGS $CFLAGS"
28420  LIBS="$ZIP_LIBS $LIBS"
28421fi
28422
28423 if test "$have_zip" = 'yes'; then
28424  ZIP_DELEGATE_TRUE=
28425  ZIP_DELEGATE_FALSE='#'
28426else
28427  ZIP_DELEGATE_TRUE='#'
28428  ZIP_DELEGATE_FALSE=
28429fi
28430
28431
28432
28433
28434
28435#
28436# Check for ZLIB
28437#
28438
28439# Check whether --with-zlib was given.
28440if test "${with_zlib+set}" = set; then :
28441  withval=$with_zlib; with_zlib=$withval
28442else
28443  with_zlib='yes'
28444fi
28445
28446
28447if test "$with_zlib" != 'yes'; then
28448    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28449fi
28450
28451have_zlib='no'
28452ZLIB_CFLAGS=""
28453ZLIB_LIBS=""
28454ZLIB_PKG=""
28455if test "x$with_zlib" = "xyes"; then
28456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28457$as_echo "-------------------------------------------------------------" >&6; }
28458
28459pkg_failed=no
28460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.0.0" >&5
28461$as_echo_n "checking for zlib >= 1.0.0... " >&6; }
28462
28463if test -n "$ZLIB_CFLAGS"; then
28464    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
28465 elif test -n "$PKG_CONFIG"; then
28466    if test -n "$PKG_CONFIG" && \
28467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28468  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28469  ac_status=$?
28470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28471  test $ac_status = 0; }; then
28472  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
28473		      test "x$?" != "x0" && pkg_failed=yes
28474else
28475  pkg_failed=yes
28476fi
28477 else
28478    pkg_failed=untried
28479fi
28480if test -n "$ZLIB_LIBS"; then
28481    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
28482 elif test -n "$PKG_CONFIG"; then
28483    if test -n "$PKG_CONFIG" && \
28484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
28485  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
28486  ac_status=$?
28487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28488  test $ac_status = 0; }; then
28489  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
28490		      test "x$?" != "x0" && pkg_failed=yes
28491else
28492  pkg_failed=yes
28493fi
28494 else
28495    pkg_failed=untried
28496fi
28497
28498
28499
28500if test $pkg_failed = yes; then
28501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28502$as_echo "no" >&6; }
28503
28504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28505        _pkg_short_errors_supported=yes
28506else
28507        _pkg_short_errors_supported=no
28508fi
28509        if test $_pkg_short_errors_supported = yes; then
28510	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28511        else
28512	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
28513        fi
28514	# Put the nasty error message in config.log where it belongs
28515	echo "$ZLIB_PKG_ERRORS" >&5
28516
28517	have_zlib=no
28518elif test $pkg_failed = untried; then
28519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520$as_echo "no" >&6; }
28521	have_zlib=no
28522else
28523	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
28524	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
28525        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28526$as_echo "yes" >&6; }
28527	have_zlib=yes
28528fi
28529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28530$as_echo "" >&6; }
28531fi
28532
28533if test "$have_zlib" = 'yes'; then
28534
28535$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
28536
28537  CFLAGS="$ZLIB_CFLAGS $CFLAGS"
28538  LIBS="$ZLIB_LIBS $LIBS"
28539fi
28540
28541 if test "$have_zlib" = 'yes'; then
28542  ZLIB_DELEGATE_TRUE=
28543  ZLIB_DELEGATE_FALSE='#'
28544else
28545  ZLIB_DELEGATE_TRUE='#'
28546  ZLIB_DELEGATE_FALSE=
28547fi
28548
28549
28550
28551
28552
28553#
28554# Check for ZSTD
28555#
28556
28557# Check whether --with-zstd was given.
28558if test "${with_zstd+set}" = set; then :
28559  withval=$with_zstd; with_zstd=$withval
28560else
28561  with_zstd='yes'
28562fi
28563
28564
28565if test "$with_zstd" != 'yes'; then
28566    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd "
28567fi
28568
28569have_zstd='no'
28570ZSTD_CFLAGS=""
28571ZSTD_LIBS=""
28572ZSTD_PKG=""
28573if test "x$with_zstd" = "xyes"; then
28574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28575$as_echo "-------------------------------------------------------------" >&6; }
28576
28577pkg_failed=no
28578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.0.0" >&5
28579$as_echo_n "checking for libzstd >= 1.0.0... " >&6; }
28580
28581if test -n "$LIBZSTD_CFLAGS"; then
28582    pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
28583 elif test -n "$PKG_CONFIG"; then
28584    if test -n "$PKG_CONFIG" && \
28585    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
28586  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
28587  ac_status=$?
28588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28589  test $ac_status = 0; }; then
28590  pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.0.0" 2>/dev/null`
28591		      test "x$?" != "x0" && pkg_failed=yes
28592else
28593  pkg_failed=yes
28594fi
28595 else
28596    pkg_failed=untried
28597fi
28598if test -n "$LIBZSTD_LIBS"; then
28599    pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
28600 elif test -n "$PKG_CONFIG"; then
28601    if test -n "$PKG_CONFIG" && \
28602    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
28603  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
28604  ac_status=$?
28605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28606  test $ac_status = 0; }; then
28607  pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.0.0" 2>/dev/null`
28608		      test "x$?" != "x0" && pkg_failed=yes
28609else
28610  pkg_failed=yes
28611fi
28612 else
28613    pkg_failed=untried
28614fi
28615
28616
28617
28618if test $pkg_failed = yes; then
28619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28620$as_echo "no" >&6; }
28621
28622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28623        _pkg_short_errors_supported=yes
28624else
28625        _pkg_short_errors_supported=no
28626fi
28627        if test $_pkg_short_errors_supported = yes; then
28628	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
28629        else
28630	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
28631        fi
28632	# Put the nasty error message in config.log where it belongs
28633	echo "$LIBZSTD_PKG_ERRORS" >&5
28634
28635	have_zstd=no
28636elif test $pkg_failed = untried; then
28637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28638$as_echo "no" >&6; }
28639	have_zstd=no
28640else
28641	LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
28642	LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
28643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28644$as_echo "yes" >&6; }
28645	have_zstd=yes
28646fi
28647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28648$as_echo "" >&6; }
28649fi
28650
28651if test "$have_zstd" = 'yes'; then
28652
28653$as_echo "#define ZSTD_DELEGATE 1" >>confdefs.h
28654
28655  CFLAGS="$ZSTD_CFLAGS $CFLAGS"
28656  LIBS="$ZSTD_LIBS $LIBS"
28657fi
28658
28659 if test "$have_zstd" = 'yes'; then
28660  ZSTD_DELEGATE_TRUE=
28661  ZSTD_DELEGATE_FALSE='#'
28662else
28663  ZSTD_DELEGATE_TRUE='#'
28664  ZSTD_DELEGATE_FALSE=
28665fi
28666
28667
28668
28669
28670
28671# whether modules are built or not.
28672if test "$build_modules" != 'no' || test "X$no_cl" != 'Xyes'; then
28673  with_ltdl='yes'
28674else
28675  with_ltdl='no'
28676fi
28677have_ltdl='no'
28678LTDL_LIBS=''
28679if test "$with_ltdl" = 'yes'; then
28680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28681$as_echo "-------------------------------------------------------------" >&6; }
28682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
28683$as_echo_n "checking for libltdl... " >&6; }
28684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28685$as_echo "" >&6; }
28686  failed=0
28687  passed=0
28688  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
28689if test "x$ac_cv_header_ltdl_h" = xyes; then :
28690  passed=`expr $passed + 1`
28691else
28692  failed=`expr $failed + 1`
28693fi
28694
28695
28696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
28697$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
28698if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
28699  $as_echo_n "(cached) " >&6
28700else
28701  ac_check_lib_save_LIBS=$LIBS
28702LIBS="-lltdl  $LIBS"
28703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28704/* end confdefs.h.  */
28705
28706/* Override any GCC internal prototype to avoid an error.
28707   Use char because int might match the return type of a GCC
28708   builtin and then its argument prototype would still apply.  */
28709#ifdef __cplusplus
28710extern "C"
28711#endif
28712char lt_dlinit ();
28713int
28714main ()
28715{
28716return lt_dlinit ();
28717  ;
28718  return 0;
28719}
28720_ACEOF
28721if ac_fn_c_try_link "$LINENO"; then :
28722  ac_cv_lib_ltdl_lt_dlinit=yes
28723else
28724  ac_cv_lib_ltdl_lt_dlinit=no
28725fi
28726rm -f core conftest.err conftest.$ac_objext \
28727    conftest$ac_exeext conftest.$ac_ext
28728LIBS=$ac_check_lib_save_LIBS
28729fi
28730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
28731$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
28732if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
28733  passed=`expr $passed + 1`
28734else
28735  failed=`expr $failed + 1`
28736fi
28737
28738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
28739$as_echo_n "checking if libltdl package is complete... " >&6; }
28740  if test $passed -gt 0 ; then
28741    if test $failed -gt 0 ; then
28742      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28743$as_echo "no -- some components failed test" >&6; }
28744      have_ltdl='no (failed tests)'
28745    else
28746      LTDL_LIBS='-lltdl'
28747      LIBS="$LTDL_LIBS $LIBS"
28748
28749$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
28750
28751
28752cat >>confdefs.h <<_ACEOF
28753#define LTDL_MODULE_EXT "${shrext_cmds}"
28754_ACEOF
28755
28756      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28757$as_echo "yes" >&6; }
28758      have_ltdl='yes'
28759    fi
28760  else
28761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762$as_echo "no" >&6; }
28763  fi
28764  if test "$have_ltdl" != 'yes' ; then
28765    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28767as_fn_error 1 "libltdl is required for modules and OpenCL builds
28768See \`config.log' for more details" "$LINENO" 5; }
28769  fi
28770fi
28771 if test "$have_ltdl" != 'no'; then
28772  WITH_LTDL_TRUE=
28773  WITH_LTDL_FALSE='#'
28774else
28775  WITH_LTDL_TRUE='#'
28776  WITH_LTDL_FALSE=
28777fi
28778
28779
28780#
28781# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28782#
28783LIB_DL=''
28784if test "$enable_profiling" = 'yes'; then
28785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
28786$as_echo_n "checking for dlopen in -ldl... " >&6; }
28787if ${ac_cv_lib_dl_dlopen+:} false; then :
28788  $as_echo_n "(cached) " >&6
28789else
28790  ac_check_lib_save_LIBS=$LIBS
28791LIBS="-ldl  $LIBS"
28792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793/* end confdefs.h.  */
28794
28795/* Override any GCC internal prototype to avoid an error.
28796   Use char because int might match the return type of a GCC
28797   builtin and then its argument prototype would still apply.  */
28798#ifdef __cplusplus
28799extern "C"
28800#endif
28801char dlopen ();
28802int
28803main ()
28804{
28805return dlopen ();
28806  ;
28807  return 0;
28808}
28809_ACEOF
28810if ac_fn_c_try_link "$LINENO"; then :
28811  ac_cv_lib_dl_dlopen=yes
28812else
28813  ac_cv_lib_dl_dlopen=no
28814fi
28815rm -f core conftest.err conftest.$ac_objext \
28816    conftest$ac_exeext conftest.$ac_ext
28817LIBS=$ac_check_lib_save_LIBS
28818fi
28819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
28820$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28821if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
28822  LIB_DL='-ldl'
28823fi
28824
28825    LIBS="$LIB_DL $LIBS"
28826fi
28827
28828
28829
28830#
28831# Set Apple font directory.
28832#
28833
28834# Check whether --with-apple-font-dir was given.
28835if test "${with_apple_font_dir+set}" = set; then :
28836  withval=$with_apple_font_dir; with_apple_font_dir=$withval
28837else
28838  with_apple_font_dir='default'
28839fi
28840
28841
28842if test "$with_apple_font_dir" != 'default'; then
28843    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
28844fi
28845
28846
28847#
28848# Check for Autotrace delegate library.
28849#
28850
28851# Check whether --with-autotrace was given.
28852if test "${with_autotrace+set}" = set; then :
28853  withval=$with_autotrace; with_autotrace=$withval
28854else
28855  with_autotrace='no'
28856fi
28857
28858
28859if test "$with_autotrace" != 'yes'; then
28860    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28861fi
28862
28863have_autotrace='no'
28864AUTOTRACE_CFLAGS=""
28865AUTOTRACE_LIBS=""
28866AUTOTRACE_PKG=""
28867if test "x$with_autotrace" = "xyes"; then
28868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28869$as_echo "-------------------------------------------------------------" >&6; }
28870
28871pkg_failed=no
28872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autotrace >= 0.31.2" >&5
28873$as_echo_n "checking for autotrace >= 0.31.2... " >&6; }
28874
28875if test -n "$AUTOTRACE_CFLAGS"; then
28876    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28877 elif test -n "$PKG_CONFIG"; then
28878    if test -n "$PKG_CONFIG" && \
28879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
28880  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
28881  ac_status=$?
28882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28883  test $ac_status = 0; }; then
28884  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.2" 2>/dev/null`
28885		      test "x$?" != "x0" && pkg_failed=yes
28886else
28887  pkg_failed=yes
28888fi
28889 else
28890    pkg_failed=untried
28891fi
28892if test -n "$AUTOTRACE_LIBS"; then
28893    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28894 elif test -n "$PKG_CONFIG"; then
28895    if test -n "$PKG_CONFIG" && \
28896    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.2\""; } >&5
28897  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.2") 2>&5
28898  ac_status=$?
28899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28900  test $ac_status = 0; }; then
28901  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.2" 2>/dev/null`
28902		      test "x$?" != "x0" && pkg_failed=yes
28903else
28904  pkg_failed=yes
28905fi
28906 else
28907    pkg_failed=untried
28908fi
28909
28910
28911
28912if test $pkg_failed = yes; then
28913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914$as_echo "no" >&6; }
28915
28916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28917        _pkg_short_errors_supported=yes
28918else
28919        _pkg_short_errors_supported=no
28920fi
28921        if test $_pkg_short_errors_supported = yes; then
28922	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
28923        else
28924	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.2" 2>&1`
28925        fi
28926	# Put the nasty error message in config.log where it belongs
28927	echo "$AUTOTRACE_PKG_ERRORS" >&5
28928
28929	have_autotrace=no
28930elif test $pkg_failed = untried; then
28931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932$as_echo "no" >&6; }
28933	have_autotrace=no
28934else
28935	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28936	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28938$as_echo "yes" >&6; }
28939	have_autotrace=yes
28940fi
28941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28942$as_echo "" >&6; }
28943fi
28944
28945if test "$have_autotrace" = 'yes'; then
28946
28947$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28948
28949  CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
28950fi
28951
28952 if test "$have_autotrace" = 'yes'; then
28953  AUTOTRACE_DELEGATE_TRUE=
28954  AUTOTRACE_DELEGATE_FALSE='#'
28955else
28956  AUTOTRACE_DELEGATE_TRUE='#'
28957  AUTOTRACE_DELEGATE_FALSE=
28958fi
28959
28960
28961
28962
28963
28964#
28965# Check for Display Postscript delegate library.
28966#
28967
28968# Check whether --with-dps was given.
28969if test "${with_dps+set}" = set; then :
28970  withval=$with_dps; with_dps=$withval
28971else
28972  with_dps='yes'
28973fi
28974
28975
28976if test "$with_dps" != 'yes'; then
28977    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28978fi
28979
28980have_dps='no'
28981DPS_LIBS=''
28982if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28984$as_echo "-------------------------------------------------------------" >&6; }
28985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28986$as_echo_n "checking for DPS... " >&6; }
28987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28988$as_echo "" >&6; }
28989    failed=0
28990    passed=0
28991    PERSIST_CPPFLAGS="$CPPFLAGS"
28992    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28993    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28994if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28995  passed=`expr $passed + 1`
28996else
28997  failed=`expr $failed + 1`
28998fi
28999
29000
29001    # DPS issues:
29002    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
29003    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
29004    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
29005    # ImageMagick itself doesn't use -lXt.
29006    have_libdps='no'
29007    LIBDPS_XT=''
29008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
29009$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
29010if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
29011  $as_echo_n "(cached) " >&6
29012else
29013  ac_check_lib_save_LIBS=$LIBS
29014LIBS="-ldps  $LIBS"
29015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016/* end confdefs.h.  */
29017
29018/* Override any GCC internal prototype to avoid an error.
29019   Use char because int might match the return type of a GCC
29020   builtin and then its argument prototype would still apply.  */
29021#ifdef __cplusplus
29022extern "C"
29023#endif
29024char DPSInitialize ();
29025int
29026main ()
29027{
29028return DPSInitialize ();
29029  ;
29030  return 0;
29031}
29032_ACEOF
29033if ac_fn_c_try_link "$LINENO"; then :
29034  ac_cv_lib_dps_DPSInitialize=yes
29035else
29036  ac_cv_lib_dps_DPSInitialize=no
29037fi
29038rm -f core conftest.err conftest.$ac_objext \
29039    conftest$ac_exeext conftest.$ac_ext
29040LIBS=$ac_check_lib_save_LIBS
29041fi
29042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
29043$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
29044if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
29045  have_libdps='yes'
29046else
29047  have_libdps='no',
29048fi
29049
29050    if test "$have_libdps" != 'yes'; then
29051        # Unset cache variable so we can try again.
29052        unset ac_cv_lib_dps_DPSInitialize
29053        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
29054$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
29055if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
29056  $as_echo_n "(cached) " >&6
29057else
29058  ac_check_lib_save_LIBS=$LIBS
29059LIBS="-ldps  $LIBS"
29060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29061/* end confdefs.h.  */
29062
29063/* Override any GCC internal prototype to avoid an error.
29064   Use char because int might match the return type of a GCC
29065   builtin and then its argument prototype would still apply.  */
29066#ifdef __cplusplus
29067extern "C"
29068#endif
29069char DPSInitialize ();
29070int
29071main ()
29072{
29073return DPSInitialize ();
29074  ;
29075  return 0;
29076}
29077_ACEOF
29078if ac_fn_c_try_link "$LINENO"; then :
29079  ac_cv_lib_dps_DPSInitialize=yes
29080else
29081  ac_cv_lib_dps_DPSInitialize=no
29082fi
29083rm -f core conftest.err conftest.$ac_objext \
29084    conftest$ac_exeext conftest.$ac_ext
29085LIBS=$ac_check_lib_save_LIBS
29086fi
29087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
29088$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
29089if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
29090  have_libdps='yes'
29091else
29092  have_libdps='no',-lXt
29093fi
29094
29095        if test "$have_libdps" = 'yes'; then
29096            LIBDPS_XT='-lXt'
29097        fi
29098    fi
29099    if test "$have_libdps" = 'yes'; then
29100        passed=`expr $passed + 1`
29101    else
29102        failed=`expr $failed + 1`
29103    fi
29104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
29105$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
29106if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
29107  $as_echo_n "(cached) " >&6
29108else
29109  ac_check_lib_save_LIBS=$LIBS
29110LIBS="-ldpstk  $LIBS"
29111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29112/* end confdefs.h.  */
29113
29114/* Override any GCC internal prototype to avoid an error.
29115   Use char because int might match the return type of a GCC
29116   builtin and then its argument prototype would still apply.  */
29117#ifdef __cplusplus
29118extern "C"
29119#endif
29120char XDPSPixelsPerPoint ();
29121int
29122main ()
29123{
29124return XDPSPixelsPerPoint ();
29125  ;
29126  return 0;
29127}
29128_ACEOF
29129if ac_fn_c_try_link "$LINENO"; then :
29130  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29131else
29132  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
29133fi
29134rm -f core conftest.err conftest.$ac_objext \
29135    conftest$ac_exeext conftest.$ac_ext
29136LIBS=$ac_check_lib_save_LIBS
29137fi
29138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
29139$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
29140if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
29141  passed=`expr $passed + 1`
29142else
29143  failed=`expr $failed + 1`,-ldps $LIBDPS_XT
29144fi
29145
29146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
29147$as_echo_n "checking if DPS package is complete... " >&6; }
29148    if test $passed -gt 0; then
29149        if test $failed -gt 0; then
29150            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29151$as_echo "no -- some components failed test" >&6; }
29152            have_dps='no (failed tests)'
29153            CPPFLAGS="$PERSIST_CPPFLAGS"
29154        else
29155            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29156            LIBS="$DPS_LIBS $LIBS"
29157
29158$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
29159
29160            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161$as_echo "yes" >&6; }
29162            have_dps='yes'
29163        fi
29164    else
29165        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29166$as_echo "no" >&6; }
29167        CPPFLAGS=$PERSIST_CPPFLAGS
29168    fi
29169fi
29170 if test "$have_dps" = 'yes'; then
29171  DPS_DELEGATE_TRUE=
29172  DPS_DELEGATE_FALSE='#'
29173else
29174  DPS_DELEGATE_TRUE='#'
29175  DPS_DELEGATE_FALSE=
29176fi
29177
29178
29179
29180
29181#
29182# Set DejaVu font directory.
29183#
29184
29185# Check whether --with-dejavu-font-dir was given.
29186if test "${with_dejavu_font_dir+set}" = set; then :
29187  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29188else
29189  with_dejavu_font_dir='default'
29190fi
29191
29192
29193if test "$with_dejavu_font_dir" != 'default'; then
29194    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29195fi
29196
29197
29198#
29199# Check for FFTW delegate library.
29200#
29201
29202# Check whether --with-fftw was given.
29203if test "${with_fftw+set}" = set; then :
29204  withval=$with_fftw; with_fftw=$withval
29205else
29206  with_fftw='no'
29207fi
29208
29209
29210if test "$with_fftw" != 'yes'; then
29211    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29212fi
29213
29214have_fftw='no'
29215FFTW_CFLAGS=""
29216FFTW_LIBS=""
29217FFTW_PKG=""
29218if test "x$with_fftw" = "xyes"; then
29219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29220$as_echo "-------------------------------------------------------------" >&6; }
29221
29222pkg_failed=no
29223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0.0" >&5
29224$as_echo_n "checking for fftw3 >= 3.0.0... " >&6; }
29225
29226if test -n "$fftw3_CFLAGS"; then
29227    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29228 elif test -n "$PKG_CONFIG"; then
29229    if test -n "$PKG_CONFIG" && \
29230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29231  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29232  ac_status=$?
29233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29234  test $ac_status = 0; }; then
29235  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29236		      test "x$?" != "x0" && pkg_failed=yes
29237else
29238  pkg_failed=yes
29239fi
29240 else
29241    pkg_failed=untried
29242fi
29243if test -n "$fftw3_LIBS"; then
29244    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29245 elif test -n "$PKG_CONFIG"; then
29246    if test -n "$PKG_CONFIG" && \
29247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29248  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29249  ac_status=$?
29250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29251  test $ac_status = 0; }; then
29252  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29253		      test "x$?" != "x0" && pkg_failed=yes
29254else
29255  pkg_failed=yes
29256fi
29257 else
29258    pkg_failed=untried
29259fi
29260
29261
29262
29263if test $pkg_failed = yes; then
29264        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29265$as_echo "no" >&6; }
29266
29267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29268        _pkg_short_errors_supported=yes
29269else
29270        _pkg_short_errors_supported=no
29271fi
29272        if test $_pkg_short_errors_supported = yes; then
29273	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29274        else
29275	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29276        fi
29277	# Put the nasty error message in config.log where it belongs
29278	echo "$fftw3_PKG_ERRORS" >&5
29279
29280	have_fftw=no
29281elif test $pkg_failed = untried; then
29282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29283$as_echo "no" >&6; }
29284	have_fftw=no
29285else
29286	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29287	fftw3_LIBS=$pkg_cv_fftw3_LIBS
29288        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29289$as_echo "yes" >&6; }
29290	have_fftw=yes
29291fi
29292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29293$as_echo "" >&6; }
29294fi
29295
29296if test "$have_fftw" = 'yes'; then
29297
29298$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
29299
29300  FFTW_CFLAGS="$fftw3_CFLAGS"
29301  FFTW_LIBS="$fftw3_LIBS"
29302  CFLAGS="$fftw3_CFLAGS $CFLAGS"
29303fi
29304
29305 if test "$have_fftw" = 'yes'; then
29306  FFTW_DELEGATE_TRUE=
29307  FFTW_DELEGATE_FALSE='#'
29308else
29309  FFTW_DELEGATE_TRUE='#'
29310  FFTW_DELEGATE_FALSE=
29311fi
29312
29313
29314
29315
29316
29317#
29318# Check for FLIF delegate library.
29319#
29320
29321# Check whether --with-flif was given.
29322if test "${with_flif+set}" = set; then :
29323  withval=$with_flif; with_flif=$withval
29324else
29325  with_flif='yes'
29326fi
29327
29328
29329if test "$with_flif" != 'yes'; then
29330    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
29331fi
29332
29333have_flif='no'
29334FLIF_LIBS=''
29335if test "$with_flif" != 'no'; then
29336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29337$as_echo "-------------------------------------------------------------" >&6; }
29338    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
29339$as_echo_n "checking for FLIF... " >&6; }
29340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29341$as_echo "" >&6; }
29342    failed=0
29343    passed=0
29344    ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
29345if test "x$ac_cv_header_flif_h" = xyes; then :
29346  passed=`expr $passed + 1`
29347else
29348  failed=`expr $failed + 1`
29349fi
29350
29351
29352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
29353$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; }
29354if ${ac_cv_lib_flif_flif_create_decoder+:} false; then :
29355  $as_echo_n "(cached) " >&6
29356else
29357  ac_check_lib_save_LIBS=$LIBS
29358LIBS="-lflif  $LIBS"
29359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29360/* end confdefs.h.  */
29361
29362/* Override any GCC internal prototype to avoid an error.
29363   Use char because int might match the return type of a GCC
29364   builtin and then its argument prototype would still apply.  */
29365#ifdef __cplusplus
29366extern "C"
29367#endif
29368char flif_create_decoder ();
29369int
29370main ()
29371{
29372return flif_create_decoder ();
29373  ;
29374  return 0;
29375}
29376_ACEOF
29377if ac_fn_c_try_link "$LINENO"; then :
29378  ac_cv_lib_flif_flif_create_decoder=yes
29379else
29380  ac_cv_lib_flif_flif_create_decoder=no
29381fi
29382rm -f core conftest.err conftest.$ac_objext \
29383    conftest$ac_exeext conftest.$ac_ext
29384LIBS=$ac_check_lib_save_LIBS
29385fi
29386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
29387$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; }
29388if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then :
29389  passed=`expr $passed + 1`
29390else
29391  failed=`expr $failed + 1`
29392fi
29393
29394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
29395$as_echo_n "checking if FLIF package is complete... " >&6; }
29396    if test $passed -gt 0; then
29397        if test $failed -gt 0; then
29398            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29399$as_echo "no -- some components failed test" >&6; }
29400            have_flif='no (failed tests)'
29401        else
29402            FLIF_LIBS='-lflif'
29403            LIBS="$FLIF_LIBS $LIBS"
29404
29405$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h
29406
29407            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29408$as_echo "yes" >&6; }
29409            have_flif='yes'
29410        fi
29411    else
29412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29413$as_echo "no" >&6; }
29414    fi
29415fi
29416 if test "$have_flif" = 'yes'; then
29417  FLIF_DELEGATE_TRUE=
29418  FLIF_DELEGATE_FALSE='#'
29419else
29420  FLIF_DELEGATE_TRUE='#'
29421  FLIF_DELEGATE_FALSE=
29422fi
29423
29424
29425
29426
29427#
29428# Check for FlashPIX delegate library.
29429#
29430
29431# Check whether --with-fpx was given.
29432if test "${with_fpx+set}" = set; then :
29433  withval=$with_fpx; with_fpx=$withval
29434else
29435  with_fpx='yes'
29436fi
29437
29438
29439if test "$with_fpx" != 'yes'; then
29440    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29441fi
29442
29443have_fpx='no'
29444FPX_LIBS=''
29445if test "$with_fpx" != 'no'; then
29446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29447$as_echo "-------------------------------------------------------------" >&6; }
29448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
29449$as_echo_n "checking for FlashPIX... " >&6; }
29450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29451$as_echo "" >&6; }
29452    failed=0
29453    passed=0
29454    ac_ext=cpp
29455ac_cpp='$CXXCPP $CPPFLAGS'
29456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29459
29460
29461ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
29462if test "x$ac_cv_header_fpxlib_h" = xyes; then :
29463  passed=`expr $passed + 1`
29464else
29465  failed=`expr $failed + 1`
29466fi
29467
29468
29469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
29470$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
29471if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
29472  $as_echo_n "(cached) " >&6
29473else
29474  ac_check_lib_save_LIBS=$LIBS
29475LIBS="-lfpx  $LIBS"
29476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29477/* end confdefs.h.  */
29478
29479/* Override any GCC internal prototype to avoid an error.
29480   Use char because int might match the return type of a GCC
29481   builtin and then its argument prototype would still apply.  */
29482#ifdef __cplusplus
29483extern "C"
29484#endif
29485char FPX_OpenImageByFilename ();
29486int
29487main ()
29488{
29489return FPX_OpenImageByFilename ();
29490  ;
29491  return 0;
29492}
29493_ACEOF
29494if ac_fn_cxx_try_link "$LINENO"; then :
29495  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29496else
29497  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
29498fi
29499rm -f core conftest.err conftest.$ac_objext \
29500    conftest$ac_exeext conftest.$ac_ext
29501LIBS=$ac_check_lib_save_LIBS
29502fi
29503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
29504$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
29505if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
29506  passed=`expr $passed + 1`
29507else
29508  failed=`expr $failed + 1`
29509fi
29510
29511
29512    ac_ext=c
29513ac_cpp='$CPP $CPPFLAGS'
29514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29516ac_compiler_gnu=$ac_cv_c_compiler_gnu
29517
29518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
29519$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29520    if test $passed -gt 0; then
29521        if test $failed -gt 0; then
29522            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29523$as_echo "no -- some components failed test" >&6; }
29524            have_fpx='no (failed tests)'
29525        else
29526            FPX_LIBS='-lfpx'
29527
29528$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
29529
29530            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531$as_echo "yes" >&6; }
29532            have_fpx='yes'
29533            PERLMAINCC="$CXX"
29534        fi
29535    else
29536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29537$as_echo "no" >&6; }
29538    fi
29539fi
29540 if test "$have_fpx" = 'yes'; then
29541  FPX_DELEGATE_TRUE=
29542  FPX_DELEGATE_FALSE='#'
29543else
29544  FPX_DELEGATE_TRUE='#'
29545  FPX_DELEGATE_FALSE=
29546fi
29547
29548
29549
29550
29551#
29552# Check for DJVU delegate library.
29553#
29554
29555# Check whether --with-djvu was given.
29556if test "${with_djvu+set}" = set; then :
29557  withval=$with_djvu; with_djvu=$withval
29558else
29559  with_djvu='yes'
29560fi
29561
29562
29563if test "$with_djvu" != 'yes'; then
29564    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29565fi
29566
29567have_djvu='no'
29568DJVU_CFLAGS=""
29569DJVU_LIBS=""
29570DJVU_PKG=""
29571if test "x$with_djvu" = "xyes"; then
29572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29573$as_echo "-------------------------------------------------------------" >&6; }
29574
29575pkg_failed=no
29576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi >= 3.5.0" >&5
29577$as_echo_n "checking for ddjvuapi >= 3.5.0... " >&6; }
29578
29579if test -n "$ddjvuapi_CFLAGS"; then
29580    pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29581 elif test -n "$PKG_CONFIG"; then
29582    if test -n "$PKG_CONFIG" && \
29583    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29584  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29585  ac_status=$?
29586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29587  test $ac_status = 0; }; then
29588  pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29589		      test "x$?" != "x0" && pkg_failed=yes
29590else
29591  pkg_failed=yes
29592fi
29593 else
29594    pkg_failed=untried
29595fi
29596if test -n "$ddjvuapi_LIBS"; then
29597    pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29598 elif test -n "$PKG_CONFIG"; then
29599    if test -n "$PKG_CONFIG" && \
29600    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29601  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29602  ac_status=$?
29603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29604  test $ac_status = 0; }; then
29605  pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29606		      test "x$?" != "x0" && pkg_failed=yes
29607else
29608  pkg_failed=yes
29609fi
29610 else
29611    pkg_failed=untried
29612fi
29613
29614
29615
29616if test $pkg_failed = yes; then
29617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29618$as_echo "no" >&6; }
29619
29620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29621        _pkg_short_errors_supported=yes
29622else
29623        _pkg_short_errors_supported=no
29624fi
29625        if test $_pkg_short_errors_supported = yes; then
29626	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29627        else
29628	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29629        fi
29630	# Put the nasty error message in config.log where it belongs
29631	echo "$ddjvuapi_PKG_ERRORS" >&5
29632
29633	have_djvu=no
29634elif test $pkg_failed = untried; then
29635        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29636$as_echo "no" >&6; }
29637	have_djvu=no
29638else
29639	ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29640	ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29642$as_echo "yes" >&6; }
29643	have_djvu=yes
29644fi
29645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29646$as_echo "" >&6; }
29647fi
29648
29649if test "$have_djvu" = 'yes'; then
29650
29651$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29652
29653  DJVU_CFLAGS="$ddjvuapi_CFLAGS"
29654  DJVU_LIBS="$ddjvuapi_LIBS"
29655  CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
29656fi
29657
29658 if test "$have_djvu" = 'yes'; then
29659  DJVU_DELEGATE_TRUE=
29660  DJVU_DELEGATE_FALSE='#'
29661else
29662  DJVU_DELEGATE_TRUE='#'
29663  DJVU_DELEGATE_FALSE=
29664fi
29665
29666
29667
29668
29669
29670#
29671# Check for fontconfig delegate library.
29672#
29673
29674# Check whether --with-fontconfig was given.
29675if test "${with_fontconfig+set}" = set; then :
29676  withval=$with_fontconfig; with_fontconfig=$withval
29677else
29678  with_fontconfig='yes'
29679fi
29680
29681
29682if test "$with_fontconfig" != 'yes'; then
29683    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29684fi
29685
29686have_fontconfig='no'
29687FONTCONFIG_CFLAGS=""
29688FONTCONFIG_LIBS=""
29689FONTCONFIG_PKG=""
29690if test "x$with_fontconfig" = "xyes"; then
29691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29692$as_echo "-------------------------------------------------------------" >&6; }
29693
29694pkg_failed=no
29695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.1.0" >&5
29696$as_echo_n "checking for fontconfig >= 2.1.0... " >&6; }
29697
29698if test -n "$FONTCONFIG_CFLAGS"; then
29699    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29700 elif test -n "$PKG_CONFIG"; then
29701    if test -n "$PKG_CONFIG" && \
29702    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29703  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29704  ac_status=$?
29705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29706  test $ac_status = 0; }; then
29707  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29708		      test "x$?" != "x0" && pkg_failed=yes
29709else
29710  pkg_failed=yes
29711fi
29712 else
29713    pkg_failed=untried
29714fi
29715if test -n "$FONTCONFIG_LIBS"; then
29716    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29717 elif test -n "$PKG_CONFIG"; then
29718    if test -n "$PKG_CONFIG" && \
29719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29720  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29721  ac_status=$?
29722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29723  test $ac_status = 0; }; then
29724  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29725		      test "x$?" != "x0" && pkg_failed=yes
29726else
29727  pkg_failed=yes
29728fi
29729 else
29730    pkg_failed=untried
29731fi
29732
29733
29734
29735if test $pkg_failed = yes; then
29736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29737$as_echo "no" >&6; }
29738
29739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29740        _pkg_short_errors_supported=yes
29741else
29742        _pkg_short_errors_supported=no
29743fi
29744        if test $_pkg_short_errors_supported = yes; then
29745	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
29746        else
29747	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
29748        fi
29749	# Put the nasty error message in config.log where it belongs
29750	echo "$FONTCONFIG_PKG_ERRORS" >&5
29751
29752	have_fontconfig=no
29753elif test $pkg_failed = untried; then
29754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755$as_echo "no" >&6; }
29756	have_fontconfig=no
29757else
29758	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29759	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29761$as_echo "yes" >&6; }
29762	have_fontconfig=yes
29763fi
29764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29765$as_echo "" >&6; }
29766fi
29767
29768if test "$have_fontconfig" = 'yes'; then
29769
29770$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
29771
29772  CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
29773fi
29774
29775 if test "$have_fontconfig" = 'yes'; then
29776  FONTCONFIG_DELEGATE_TRUE=
29777  FONTCONFIG_DELEGATE_FALSE='#'
29778else
29779  FONTCONFIG_DELEGATE_TRUE='#'
29780  FONTCONFIG_DELEGATE_FALSE=
29781fi
29782
29783
29784
29785
29786
29787#
29788# Check for the Freetype delegate library.
29789#
29790
29791# Check whether --with-freetype was given.
29792if test "${with_freetype+set}" = set; then :
29793  withval=$with_freetype; with_freetype=$withval
29794else
29795  with_freetype='yes'
29796fi
29797
29798
29799if test "$with_freetype" != 'yes'; then
29800    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29801fi
29802
29803have_freetype='no'
29804FREETYPE_CFLAGS=""
29805FREETYPE_LIBS=""
29806FREETYPE_PKG=""
29807if test "x$with_freetype" = "xyes"; then
29808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29809$as_echo "-------------------------------------------------------------" >&6; }
29810
29811pkg_failed=no
29812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
29813$as_echo_n "checking for freetype2... " >&6; }
29814
29815if test -n "$FREETYPE_CFLAGS"; then
29816    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
29817 elif test -n "$PKG_CONFIG"; then
29818    if test -n "$PKG_CONFIG" && \
29819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29820  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29821  ac_status=$?
29822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29823  test $ac_status = 0; }; then
29824  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
29825		      test "x$?" != "x0" && pkg_failed=yes
29826else
29827  pkg_failed=yes
29828fi
29829 else
29830    pkg_failed=untried
29831fi
29832if test -n "$FREETYPE_LIBS"; then
29833    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
29834 elif test -n "$PKG_CONFIG"; then
29835    if test -n "$PKG_CONFIG" && \
29836    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
29837  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
29838  ac_status=$?
29839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29840  test $ac_status = 0; }; then
29841  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
29842		      test "x$?" != "x0" && pkg_failed=yes
29843else
29844  pkg_failed=yes
29845fi
29846 else
29847    pkg_failed=untried
29848fi
29849
29850
29851
29852if test $pkg_failed = yes; then
29853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29854$as_echo "no" >&6; }
29855
29856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29857        _pkg_short_errors_supported=yes
29858else
29859        _pkg_short_errors_supported=no
29860fi
29861        if test $_pkg_short_errors_supported = yes; then
29862	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
29863        else
29864	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
29865        fi
29866	# Put the nasty error message in config.log where it belongs
29867	echo "$FREETYPE_PKG_ERRORS" >&5
29868
29869	have_freetype=no
29870elif test $pkg_failed = untried; then
29871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29872$as_echo "no" >&6; }
29873	have_freetype=no
29874else
29875	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
29876	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
29877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29878$as_echo "yes" >&6; }
29879	have_freetype=yes
29880fi
29881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29882$as_echo "" >&6; }
29883fi
29884
29885if test "$have_freetype" = 'yes'; then
29886
29887$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
29888
29889  CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
29890  MAGICKCORE_FREETYPE_DELEGATE=1
29891else
29892  MAGICKCORE_FREETYPE_DELEGATE=0
29893fi
29894
29895
29896
29897
29898
29899
29900#
29901# Check for the raqm delegate library.
29902#
29903
29904# Check whether --with-raqm was given.
29905if test "${with_raqm+set}" = set; then :
29906  withval=$with_raqm; with_raqm=$withval
29907else
29908  with_raqm='yes'
29909fi
29910
29911
29912if test "$with_raqm" != 'yes'; then
29913    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
29914fi
29915
29916have_raqm='no'
29917RAQM_CFLAGS=""
29918RAQM_LIBS=""
29919RAQM_PKG=""
29920if test "x$with_raqm" = "xyes"; then
29921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29922$as_echo "-------------------------------------------------------------" >&6; }
29923
29924pkg_failed=no
29925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm" >&5
29926$as_echo_n "checking for raqm... " >&6; }
29927
29928if test -n "$RAQM_CFLAGS"; then
29929    pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
29930 elif test -n "$PKG_CONFIG"; then
29931    if test -n "$PKG_CONFIG" && \
29932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
29933  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
29934  ac_status=$?
29935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936  test $ac_status = 0; }; then
29937  pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
29938		      test "x$?" != "x0" && pkg_failed=yes
29939else
29940  pkg_failed=yes
29941fi
29942 else
29943    pkg_failed=untried
29944fi
29945if test -n "$RAQM_LIBS"; then
29946    pkg_cv_RAQM_LIBS="$RAQM_LIBS"
29947 elif test -n "$PKG_CONFIG"; then
29948    if test -n "$PKG_CONFIG" && \
29949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
29950  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
29951  ac_status=$?
29952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29953  test $ac_status = 0; }; then
29954  pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
29955		      test "x$?" != "x0" && pkg_failed=yes
29956else
29957  pkg_failed=yes
29958fi
29959 else
29960    pkg_failed=untried
29961fi
29962
29963
29964
29965if test $pkg_failed = yes; then
29966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29967$as_echo "no" >&6; }
29968
29969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29970        _pkg_short_errors_supported=yes
29971else
29972        _pkg_short_errors_supported=no
29973fi
29974        if test $_pkg_short_errors_supported = yes; then
29975	        RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
29976        else
29977	        RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
29978        fi
29979	# Put the nasty error message in config.log where it belongs
29980	echo "$RAQM_PKG_ERRORS" >&5
29981
29982	have_raqm=no
29983elif test $pkg_failed = untried; then
29984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29985$as_echo "no" >&6; }
29986	have_raqm=no
29987else
29988	RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
29989	RAQM_LIBS=$pkg_cv_RAQM_LIBS
29990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991$as_echo "yes" >&6; }
29992	have_raqm=yes
29993fi
29994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29995$as_echo "" >&6; }
29996fi
29997
29998if test "$have_raqm" = 'yes'; then
29999
30000$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h
30001
30002  CFLAGS="$RAQM_CFLAGS $CFLAGS"
30003fi
30004
30005 if test "$have_raqm" = 'yes'; then
30006  RAQM_DELEGATE_TRUE=
30007  RAQM_DELEGATE_FALSE='#'
30008else
30009  RAQM_DELEGATE_TRUE='#'
30010  RAQM_DELEGATE_FALSE=
30011fi
30012
30013
30014
30015
30016
30017#
30018# Enable Windows gdi32 libraries
30019#
30020
30021# Check whether --with-gdi32 was given.
30022if test "${with_gdi32+set}" = set; then :
30023  withval=$with_gdi32; with_gdi32=$withval
30024else
30025  with_gdi32='yes'
30026fi
30027
30028if test "$with_gdi32" != 'yes' ; then
30029    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gdi32=$with_gdi32 "
30030fi
30031
30032#
30033# Check for Windows gdi32 library.
30034#
30035have_gdi32='no'
30036if test "$with_gdi32" != 'no'; then
30037  GDI32_LIBS=''
30038  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows GDI32 support" >&5
30039$as_echo_n "checking for Windows GDI32 support... " >&6; }
30040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30041$as_echo "" >&6; }
30042  failed=0
30043  passed=0
30044  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
30045if test "x$ac_cv_header_windows_h" = xyes; then :
30046  passed=`expr $passed + 1`
30047else
30048  failed=`expr $failed + 1`
30049fi
30050
30051
30052  ac_fn_c_check_header_compile "$LINENO" "winuser.h" "ac_cv_header_winuser_h" "#include <windows.h>
30053"
30054if test "x$ac_cv_header_winuser_h" = xyes; then :
30055  passed=`expr $passed + 1`
30056else
30057  failed=`expr $failed + 1`
30058fi
30059
30060
30061  ac_fn_c_check_header_compile "$LINENO" "wingdi.h" "ac_cv_header_wingdi_h" "#include <windows.h>
30062"
30063if test "x$ac_cv_header_wingdi_h" = xyes; then :
30064  passed=`expr $passed + 1`
30065else
30066  failed=`expr $failed + 1`
30067fi
30068
30069
30070  if test "$cygwin_build" = yes -o "$native_win32_build" = yes; then
30071    passed=`expr $passed + 1`
30072  fi
30073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows GDI32 support is complete" >&5
30074$as_echo_n "checking if Windows GDI32 support is complete... " >&6; }
30075  if test $passed -gt 0; then
30076    if test $failed -gt 0; then
30077      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30078$as_echo "no -- some components failed test" >&6; }
30079      have_gdi32='no (failed tests)'
30080    else
30081      GDI32_LIBS='-lgdi32 -luser32'
30082      LIBS="$GDI32_LIBS $LIBS"
30083
30084$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
30085
30086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30087$as_echo "yes" >&6; }
30088      have_gdi32='yes'
30089    fi
30090  else
30091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092$as_echo "no" >&6; }
30093  fi
30094fi
30095 if test "$have_gdi32" = 'yes'; then
30096  WINGDI32_DELEGATE_TRUE=
30097  WINGDI32_DELEGATE_FALSE='#'
30098else
30099  WINGDI32_DELEGATE_TRUE='#'
30100  WINGDI32_DELEGATE_FALSE=
30101fi
30102
30103
30104
30105
30106
30107#
30108# Check for Ghostscript library or framework.
30109#
30110# Test for iapi.h & test for gsapi_new_instance in -lgs
30111# or -framework Ghostscript
30112
30113
30114# Check whether --with-gslib was given.
30115if test "${with_gslib+set}" = set; then :
30116  withval=$with_gslib; with_gslib=$withval
30117else
30118  with_gslib='no'
30119fi
30120
30121
30122gslib_framework='no'
30123if test "$with_gslib" != 'yes'; then
30124    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
30125fi
30126
30127have_gslib='no'
30128GS_LIBS=''
30129if test "$with_gslib" != 'no'; then
30130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30131$as_echo "-------------------------------------------------------------" >&6; }
30132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30133$as_echo_n "checking for Ghostscript... " >&6; }
30134    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30135$as_echo "" >&6; }
30136    framework=0
30137    failed=0
30138    passed=0
30139    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
30140if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
30141  passed=`expr $passed + 1`
30142else
30143  failed=`expr $failed + 1`
30144fi
30145
30146
30147    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
30148if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
30149  passed=`expr $passed + 1`
30150else
30151  failed=`expr $failed + 1`
30152fi
30153
30154
30155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
30156$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
30157if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
30158  $as_echo_n "(cached) " >&6
30159else
30160  ac_check_framework_save_LIBS=$LIBS
30161LIBS="-framework Ghostscript  $LIBS"
30162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163/* end confdefs.h.  */
30164
30165/* Override any GCC internal prototype to avoid an error.
30166   Use char because int might match the return type of a GCC
30167   builtin and then its argument prototype would still apply.  */
30168#ifdef __cplusplus
30169extern "C"
30170#endif
30171char gsapi_new_instance ();
30172int
30173main ()
30174{
30175return gsapi_new_instance ();
30176  ;
30177  return 0;
30178}
30179_ACEOF
30180if ac_fn_c_try_link "$LINENO"; then :
30181  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
30182else
30183  ac_cv_framework_Ghostscript_gsapi_new_instance=no
30184fi
30185rm -f core conftest.err conftest.$ac_objext \
30186    conftest$ac_exeext conftest.$ac_ext
30187LIBS=$ac_check_framework_save_LIBS
30188fi
30189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
30190$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
30191if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
30192  framework=`expr $framework + 1`
30193else
30194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
30195$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
30196if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
30197  $as_echo_n "(cached) " >&6
30198else
30199  ac_check_lib_save_LIBS=$LIBS
30200LIBS="-lgs  $LIBS"
30201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30202/* end confdefs.h.  */
30203
30204/* Override any GCC internal prototype to avoid an error.
30205   Use char because int might match the return type of a GCC
30206   builtin and then its argument prototype would still apply.  */
30207#ifdef __cplusplus
30208extern "C"
30209#endif
30210char gsapi_new_instance ();
30211int
30212main ()
30213{
30214return gsapi_new_instance ();
30215  ;
30216  return 0;
30217}
30218_ACEOF
30219if ac_fn_c_try_link "$LINENO"; then :
30220  ac_cv_lib_gs_gsapi_new_instance=yes
30221else
30222  ac_cv_lib_gs_gsapi_new_instance=no
30223fi
30224rm -f core conftest.err conftest.$ac_objext \
30225    conftest$ac_exeext conftest.$ac_ext
30226LIBS=$ac_check_lib_save_LIBS
30227fi
30228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
30229$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
30230if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
30231  passed=`expr $passed + 1`
30232else
30233  failed=`expr $failed + 1`
30234fi
30235
30236fi
30237    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
30238$as_echo_n "checking if Ghostscript package is complete... " >&6; }
30239    if test $passed -gt 0; then
30240        if test $failed -gt 0; then
30241            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30242$as_echo "no -- some components failed test" >&6; }
30243            have_gslib='no (failed tests)'
30244        else
30245            if test $framework -gt 0; then
30246                GS_LIBS='-framework Ghostscript'
30247                gslib_framework='yes'
30248                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
30249$as_echo "yes, using framework." >&6; }
30250            else
30251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
30252$as_echo "yes, using library." >&6; }
30253                GS_LIBS='-lgs'
30254            fi
30255            LIBS="$GS_LIBS $LIBS"
30256
30257$as_echo "#define GS_DELEGATE 1" >>confdefs.h
30258
30259            have_gslib='yes'
30260        fi
30261    else
30262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263$as_echo "no" >&6; }
30264    fi
30265fi
30266 if test "$have_gslib" = 'yes'; then
30267  GS_DELEGATE_TRUE=
30268  GS_DELEGATE_FALSE='#'
30269else
30270  GS_DELEGATE_TRUE='#'
30271  GS_DELEGATE_FALSE=
30272fi
30273
30274
30275
30276# Set default font search path
30277
30278# Check whether --with-fontpath was given.
30279if test "${with_fontpath+set}" = set; then :
30280  withval=$with_fontpath; with_fontpath=$withval
30281else
30282  with_fontpath=''
30283fi
30284
30285
30286if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
30287    with_fontpath=''
30288else
30289
30290cat >>confdefs.h <<_ACEOF
30291#define MAGICK_FONT_PATH "$with_fontpath"
30292_ACEOF
30293
30294fi
30295if test "$with_fontpath=" != ''; then
30296    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
30297fi
30298
30299# Set Ghostscript font directory
30300
30301# Check whether --with-gs-font-dir was given.
30302if test "${with_gs_font_dir+set}" = set; then :
30303  withval=$with_gs_font_dir; with_gs_font_dir=$withval
30304else
30305  with_gs_font_dir='default'
30306fi
30307
30308
30309if test "$with_gs_font_dir" != 'default'; then
30310    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
30311fi
30312
30313
30314#
30315# Check for GVC delegate library.
30316#
30317
30318# Check whether --with-gvc was given.
30319if test "${with_gvc+set}" = set; then :
30320  withval=$with_gvc; with_gvc=$withval
30321else
30322  with_gvc='yes'
30323fi
30324
30325
30326if test "$with_gvc" != 'yes'; then
30327    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
30328fi
30329
30330GVC_PKG=""
30331if test "x$with_gvc" = "xyes"; then
30332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30333$as_echo "-------------------------------------------------------------" >&6; }
30334
30335pkg_failed=no
30336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgvc >= 2.9.0" >&5
30337$as_echo_n "checking for libgvc >= 2.9.0... " >&6; }
30338
30339if test -n "$GVC_CFLAGS"; then
30340    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30341 elif test -n "$PKG_CONFIG"; then
30342    if test -n "$PKG_CONFIG" && \
30343    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30344  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30345  ac_status=$?
30346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30347  test $ac_status = 0; }; then
30348  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
30349		      test "x$?" != "x0" && pkg_failed=yes
30350else
30351  pkg_failed=yes
30352fi
30353 else
30354    pkg_failed=untried
30355fi
30356if test -n "$GVC_LIBS"; then
30357    pkg_cv_GVC_LIBS="$GVC_LIBS"
30358 elif test -n "$PKG_CONFIG"; then
30359    if test -n "$PKG_CONFIG" && \
30360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30361  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30362  ac_status=$?
30363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364  test $ac_status = 0; }; then
30365  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
30366		      test "x$?" != "x0" && pkg_failed=yes
30367else
30368  pkg_failed=yes
30369fi
30370 else
30371    pkg_failed=untried
30372fi
30373
30374
30375
30376if test $pkg_failed = yes; then
30377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30378$as_echo "no" >&6; }
30379
30380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30381        _pkg_short_errors_supported=yes
30382else
30383        _pkg_short_errors_supported=no
30384fi
30385        if test $_pkg_short_errors_supported = yes; then
30386	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
30387        else
30388	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
30389        fi
30390	# Put the nasty error message in config.log where it belongs
30391	echo "$GVC_PKG_ERRORS" >&5
30392
30393	have_gvc=no
30394elif test $pkg_failed = untried; then
30395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30396$as_echo "no" >&6; }
30397	have_gvc=no
30398else
30399	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30400	GVC_LIBS=$pkg_cv_GVC_LIBS
30401        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30402$as_echo "yes" >&6; }
30403	have_gvc=yes
30404fi
30405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30406$as_echo "" >&6; }
30407fi
30408
30409if test "$have_gvc" = 'yes'; then
30410
30411$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
30412
30413  CFLAGS="$GVC_CFLAGS $CFLAGS"
30414fi
30415
30416 if test "$have_gvc" = 'yes'; then
30417  GVC_DELEGATE_TRUE=
30418  GVC_DELEGATE_FALSE='#'
30419else
30420  GVC_DELEGATE_TRUE='#'
30421  GVC_DELEGATE_FALSE=
30422fi
30423
30424
30425
30426
30427
30428#
30429# Check for the HEIC delegate library.
30430#
30431
30432# Check whether --with-heic was given.
30433if test "${with_heic+set}" = set; then :
30434  withval=$with_heic; with_heic=$withval
30435else
30436  with_heic='yes'
30437fi
30438
30439
30440if test "$with_heic" != 'yes'; then
30441    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic "
30442fi
30443
30444have_heic='no'
30445HEIF_CFLAGS=""
30446HEIF_LIBS=""
30447HEIF_PKG=""
30448if test "x$with_heic" = "xyes"; then
30449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30450$as_echo "-------------------------------------------------------------" >&6; }
30451
30452pkg_failed=no
30453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libheif" >&5
30454$as_echo_n "checking for libheif... " >&6; }
30455
30456if test -n "$HEIF_CFLAGS"; then
30457    pkg_cv_HEIF_CFLAGS="$HEIF_CFLAGS"
30458 elif test -n "$PKG_CONFIG"; then
30459    if test -n "$PKG_CONFIG" && \
30460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
30461  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
30462  ac_status=$?
30463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30464  test $ac_status = 0; }; then
30465  pkg_cv_HEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif" 2>/dev/null`
30466		      test "x$?" != "x0" && pkg_failed=yes
30467else
30468  pkg_failed=yes
30469fi
30470 else
30471    pkg_failed=untried
30472fi
30473if test -n "$HEIF_LIBS"; then
30474    pkg_cv_HEIF_LIBS="$HEIF_LIBS"
30475 elif test -n "$PKG_CONFIG"; then
30476    if test -n "$PKG_CONFIG" && \
30477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
30478  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
30479  ac_status=$?
30480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30481  test $ac_status = 0; }; then
30482  pkg_cv_HEIF_LIBS=`$PKG_CONFIG --libs "libheif" 2>/dev/null`
30483		      test "x$?" != "x0" && pkg_failed=yes
30484else
30485  pkg_failed=yes
30486fi
30487 else
30488    pkg_failed=untried
30489fi
30490
30491
30492
30493if test $pkg_failed = yes; then
30494        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30495$as_echo "no" >&6; }
30496
30497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30498        _pkg_short_errors_supported=yes
30499else
30500        _pkg_short_errors_supported=no
30501fi
30502        if test $_pkg_short_errors_supported = yes; then
30503	        HEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif" 2>&1`
30504        else
30505	        HEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif" 2>&1`
30506        fi
30507	# Put the nasty error message in config.log where it belongs
30508	echo "$HEIF_PKG_ERRORS" >&5
30509
30510	have_heic=no
30511elif test $pkg_failed = untried; then
30512        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30513$as_echo "no" >&6; }
30514	have_heic=no
30515else
30516	HEIF_CFLAGS=$pkg_cv_HEIF_CFLAGS
30517	HEIF_LIBS=$pkg_cv_HEIF_LIBS
30518        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30519$as_echo "yes" >&6; }
30520	have_heic=yes
30521fi
30522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30523$as_echo "" >&6; }
30524fi
30525
30526if test "$have_heic" = 'yes'; then
30527
30528$as_echo "#define HEIC_DELEGATE 1" >>confdefs.h
30529
30530  CFLAGS="$HEIF_CFLAGS $CFLAGS"
30531fi
30532
30533 if test "$have_heic" = 'yes'; then
30534  HEIC_DELEGATE_TRUE=
30535  HEIC_DELEGATE_FALSE='#'
30536else
30537  HEIC_DELEGATE_TRUE='#'
30538  HEIC_DELEGATE_FALSE=
30539fi
30540
30541
30542
30543
30544
30545#
30546# Check for JBIG delegate library.
30547#
30548
30549# Check whether --with-jbig was given.
30550if test "${with_jbig+set}" = set; then :
30551  withval=$with_jbig; with_jbig=$withval
30552else
30553  with_jbig='yes'
30554fi
30555
30556
30557have_jbig='no'
30558JBIG_LIBS=''
30559if test "$with_jbig" != 'no'; then
30560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30561$as_echo "-------------------------------------------------------------" >&6; }
30562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
30563$as_echo_n "checking for JBIG... " >&6; }
30564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30565$as_echo "" >&6; }
30566    failed=0
30567    passed=0
30568    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
30569if test "x$ac_cv_header_jbig_h" = xyes; then :
30570  passed=`expr $passed + 1`
30571else
30572  failed=`expr $failed + 1`
30573fi
30574
30575
30576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
30577$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
30578if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
30579  $as_echo_n "(cached) " >&6
30580else
30581  ac_check_lib_save_LIBS=$LIBS
30582LIBS="-ljbig  $LIBS"
30583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30584/* end confdefs.h.  */
30585
30586/* Override any GCC internal prototype to avoid an error.
30587   Use char because int might match the return type of a GCC
30588   builtin and then its argument prototype would still apply.  */
30589#ifdef __cplusplus
30590extern "C"
30591#endif
30592char jbg_dec_init ();
30593int
30594main ()
30595{
30596return jbg_dec_init ();
30597  ;
30598  return 0;
30599}
30600_ACEOF
30601if ac_fn_c_try_link "$LINENO"; then :
30602  ac_cv_lib_jbig_jbg_dec_init=yes
30603else
30604  ac_cv_lib_jbig_jbg_dec_init=no
30605fi
30606rm -f core conftest.err conftest.$ac_objext \
30607    conftest$ac_exeext conftest.$ac_ext
30608LIBS=$ac_check_lib_save_LIBS
30609fi
30610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
30611$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
30612if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
30613  passed=`expr $passed + 1`
30614else
30615  failed=`expr $failed + 1`
30616fi
30617
30618
30619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
30620$as_echo_n "checking if JBIG package is complete... " >&6; }
30621    if test $passed -gt 0; then
30622        if test $failed -gt 0; then
30623            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30624$as_echo "no -- some components failed test" >&6; }
30625            have_jbig='no (failed tests)'
30626        else
30627            JBIG_LIBS='-ljbig'
30628            LIBS="$JBIG_LIBS $LIBS"
30629
30630$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
30631
30632            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30633$as_echo "yes" >&6; }
30634            have_jbig='yes'
30635        fi
30636    else
30637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30638$as_echo "no" >&6; }
30639    fi
30640fi
30641 if test "$have_jbig" = 'yes'; then
30642  JBIG_DELEGATE_TRUE=
30643  JBIG_DELEGATE_FALSE='#'
30644else
30645  JBIG_DELEGATE_TRUE='#'
30646  JBIG_DELEGATE_FALSE=
30647fi
30648
30649
30650
30651
30652#
30653# Check for JPEG delegate library.
30654#
30655
30656# Check whether --with-jpeg was given.
30657if test "${with_jpeg+set}" = set; then :
30658  withval=$with_jpeg; with_jpeg=$withval
30659else
30660  with_jpeg='yes'
30661fi
30662
30663
30664if test "$with_jpeg" != 'yes'; then
30665    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30666fi
30667
30668have_jpeg='no'
30669JPEG_LIBS=''
30670if test "$with_jpeg" != 'no'; then
30671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30672$as_echo "-------------------------------------------------------------" >&6; }
30673    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
30674$as_echo_n "checking for JPEG... " >&6; }
30675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30676$as_echo "" >&6; }
30677    failed=0
30678    passed=0
30679    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
30680if test "x$ac_cv_header_jconfig_h" = xyes; then :
30681  passed=`expr $passed + 1`
30682else
30683  failed=`expr $failed + 1`
30684fi
30685
30686
30687    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
30688if test "x$ac_cv_header_jerror_h" = xyes; then :
30689  passed=`expr $passed + 1`
30690else
30691  failed=`expr $failed + 1`
30692fi
30693
30694
30695    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
30696if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
30697  passed=`expr $passed + 1`
30698else
30699  failed=`expr $failed + 1`
30700fi
30701
30702
30703    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
30704if test "x$ac_cv_header_jpeglib_h" = xyes; then :
30705  passed=`expr $passed + 1`
30706else
30707  failed=`expr $failed + 1`
30708fi
30709
30710
30711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
30712$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
30713if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
30714  $as_echo_n "(cached) " >&6
30715else
30716  ac_check_lib_save_LIBS=$LIBS
30717LIBS="-ljpeg  $LIBS"
30718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30719/* end confdefs.h.  */
30720
30721/* Override any GCC internal prototype to avoid an error.
30722   Use char because int might match the return type of a GCC
30723   builtin and then its argument prototype would still apply.  */
30724#ifdef __cplusplus
30725extern "C"
30726#endif
30727char jpeg_read_header ();
30728int
30729main ()
30730{
30731return jpeg_read_header ();
30732  ;
30733  return 0;
30734}
30735_ACEOF
30736if ac_fn_c_try_link "$LINENO"; then :
30737  ac_cv_lib_jpeg_jpeg_read_header=yes
30738else
30739  ac_cv_lib_jpeg_jpeg_read_header=no
30740fi
30741rm -f core conftest.err conftest.$ac_objext \
30742    conftest$ac_exeext conftest.$ac_ext
30743LIBS=$ac_check_lib_save_LIBS
30744fi
30745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
30746$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
30747if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
30748  passed=`expr $passed + 1`
30749else
30750  failed=`expr $failed + 1`
30751fi
30752
30753
30754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
30755$as_echo_n "checking if JPEG package is complete... " >&6; }
30756    if test $passed -gt 0; then
30757        if test $failed -gt 0; then
30758            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30759$as_echo "no -- some components failed test" >&6; }
30760            have_jpeg='no (failed tests)'
30761        else
30762            JPEG_LIBS='-ljpeg'
30763            LIBS="$JPEG_LIBS $LIBS"
30764
30765$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
30766
30767            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30768$as_echo "yes" >&6; }
30769            have_jpeg='yes'
30770        fi
30771    else
30772        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30773$as_echo "no" >&6; }
30774    fi
30775fi
30776 if test "$have_jpeg" = 'yes'; then
30777  JPEG_DELEGATE_TRUE=
30778  JPEG_DELEGATE_FALSE='#'
30779else
30780  JPEG_DELEGATE_TRUE='#'
30781  JPEG_DELEGATE_FALSE=
30782fi
30783
30784
30785
30786
30787#
30788# Check for JPEG-XL delegate library.
30789#
30790
30791# Check whether --with-jxl was given.
30792if test "${with_jxl+set}" = set; then :
30793  withval=$with_jxl; with_jxl=$withval
30794else
30795  with_jxl='no'
30796fi
30797
30798
30799if test "$with_jxl" != 'yes'; then
30800    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jxl=$with_jxl "
30801fi
30802if test "$enable_static" = 'yes'; then
30803    if test "$with_utilities" = 'yes'; then
30804        with_jxl='no'
30805    fi
30806fi
30807
30808# Check for the JPEG-XL library.
30809have_jxl='no'
30810JXL_LIBS=''
30811if test "$with_jxl" != 'no'; then
30812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30813$as_echo "-------------------------------------------------------------" >&6; }
30814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg-xl" >&5
30815$as_echo_n "checking for jpeg-xl... " >&6; }
30816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30817$as_echo "" >&6; }
30818  failed=0
30819  passed=0
30820  ac_fn_c_check_header_mongrel "$LINENO" "jxl/decode.h" "ac_cv_header_jxl_decode_h" "$ac_includes_default"
30821if test "x$ac_cv_header_jxl_decode_h" = xyes; then :
30822  passed=`expr $passed + 1`
30823else
30824  failed=`expr $failed + 1`
30825fi
30826
30827
30828  ac_fn_c_check_header_mongrel "$LINENO" "jxl/encode.h" "ac_cv_header_jxl_encode_h" "$ac_includes_default"
30829if test "x$ac_cv_header_jxl_encode_h" = xyes; then :
30830  passed=`expr $passed + 1`
30831else
30832  failed=`expr $failed + 1`
30833fi
30834
30835
30836  # This check should be changed once we have a .pc file for the JPEG-XL library.
30837  if test "$enable_static" != 'yes'; then
30838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JxlDecoderCreate in -ljxl" >&5
30839$as_echo_n "checking for JxlDecoderCreate in -ljxl... " >&6; }
30840if ${ac_cv_lib_jxl_JxlDecoderCreate+:} false; then :
30841  $as_echo_n "(cached) " >&6
30842else
30843  ac_check_lib_save_LIBS=$LIBS
30844LIBS="-ljxl  $LIBS"
30845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30846/* end confdefs.h.  */
30847
30848/* Override any GCC internal prototype to avoid an error.
30849   Use char because int might match the return type of a GCC
30850   builtin and then its argument prototype would still apply.  */
30851#ifdef __cplusplus
30852extern "C"
30853#endif
30854char JxlDecoderCreate ();
30855int
30856main ()
30857{
30858return JxlDecoderCreate ();
30859  ;
30860  return 0;
30861}
30862_ACEOF
30863if ac_fn_c_try_link "$LINENO"; then :
30864  ac_cv_lib_jxl_JxlDecoderCreate=yes
30865else
30866  ac_cv_lib_jxl_JxlDecoderCreate=no
30867fi
30868rm -f core conftest.err conftest.$ac_objext \
30869    conftest$ac_exeext conftest.$ac_ext
30870LIBS=$ac_check_lib_save_LIBS
30871fi
30872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jxl_JxlDecoderCreate" >&5
30873$as_echo "$ac_cv_lib_jxl_JxlDecoderCreate" >&6; }
30874if test "x$ac_cv_lib_jxl_JxlDecoderCreate" = xyes; then :
30875  passed=`expr $passed + 1`
30876else
30877  failed=`expr $failed + 1`
30878fi
30879
30880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JxlEncoderSetBasicInfo in -ljxl" >&5
30881$as_echo_n "checking for JxlEncoderSetBasicInfo in -ljxl... " >&6; }
30882if ${ac_cv_lib_jxl_JxlEncoderSetBasicInfo+:} false; then :
30883  $as_echo_n "(cached) " >&6
30884else
30885  ac_check_lib_save_LIBS=$LIBS
30886LIBS="-ljxl  $LIBS"
30887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30888/* end confdefs.h.  */
30889
30890/* Override any GCC internal prototype to avoid an error.
30891   Use char because int might match the return type of a GCC
30892   builtin and then its argument prototype would still apply.  */
30893#ifdef __cplusplus
30894extern "C"
30895#endif
30896char JxlEncoderSetBasicInfo ();
30897int
30898main ()
30899{
30900return JxlEncoderSetBasicInfo ();
30901  ;
30902  return 0;
30903}
30904_ACEOF
30905if ac_fn_c_try_link "$LINENO"; then :
30906  ac_cv_lib_jxl_JxlEncoderSetBasicInfo=yes
30907else
30908  ac_cv_lib_jxl_JxlEncoderSetBasicInfo=no
30909fi
30910rm -f core conftest.err conftest.$ac_objext \
30911    conftest$ac_exeext conftest.$ac_ext
30912LIBS=$ac_check_lib_save_LIBS
30913fi
30914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jxl_JxlEncoderSetBasicInfo" >&5
30915$as_echo "$ac_cv_lib_jxl_JxlEncoderSetBasicInfo" >&6; }
30916if test "x$ac_cv_lib_jxl_JxlEncoderSetBasicInfo" = xyes; then :
30917  passed=`expr $passed + 1`
30918else
30919  failed=`expr $failed + 1`
30920fi
30921
30922  fi
30923
30924  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jpeg-xl package is complete" >&5
30925$as_echo_n "checking if jpeg-xl package is complete... " >&6; }
30926  if test $passed -gt 0; then
30927      if test $failed -gt 0; then
30928          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30929$as_echo "no -- some components failed test" >&6; }
30930          have_jxl='no (failed tests)'
30931      else
30932          JXL_LIBS='-ljxl'
30933          LIBS="$JXL_LIBS $LIBS"
30934
30935$as_echo "#define JXL_DELEGATE 1" >>confdefs.h
30936
30937          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30938$as_echo "yes" >&6; }
30939          have_jxl='yes'
30940      fi
30941  else
30942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30943$as_echo "no" >&6; }
30944  fi
30945fi
30946 if test "$have_jxl" = 'yes'; then
30947  JXL_DELEGATE_TRUE=
30948  JXL_DELEGATE_FALSE='#'
30949else
30950  JXL_DELEGATE_TRUE='#'
30951  JXL_DELEGATE_FALSE=
30952fi
30953
30954
30955
30956
30957#
30958# Check for LCMS delegate library.
30959#
30960
30961# Check whether --with-lcms was given.
30962if test "${with_lcms+set}" = set; then :
30963  withval=$with_lcms; with_lcms=$withval
30964else
30965  with_lcms='yes'
30966fi
30967
30968if test "$with_lcms" != 'yes' ; then
30969    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30970fi
30971
30972have_lcms='no'
30973LCMS_CFLAGS=""
30974LCMS_LIBS=""
30975LCMS_PKG=""
30976if test "x$with_lcms" = "xyes"; then
30977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30978$as_echo "-------------------------------------------------------------" >&6; }
30979
30980pkg_failed=no
30981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms2 >= 2.0.0" >&5
30982$as_echo_n "checking for lcms2 >= 2.0.0... " >&6; }
30983
30984if test -n "$LCMS2_CFLAGS"; then
30985    pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30986 elif test -n "$PKG_CONFIG"; then
30987    if test -n "$PKG_CONFIG" && \
30988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30989  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30990  ac_status=$?
30991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30992  test $ac_status = 0; }; then
30993  pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30994		      test "x$?" != "x0" && pkg_failed=yes
30995else
30996  pkg_failed=yes
30997fi
30998 else
30999    pkg_failed=untried
31000fi
31001if test -n "$LCMS2_LIBS"; then
31002    pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
31003 elif test -n "$PKG_CONFIG"; then
31004    if test -n "$PKG_CONFIG" && \
31005    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
31006  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
31007  ac_status=$?
31008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31009  test $ac_status = 0; }; then
31010  pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
31011		      test "x$?" != "x0" && pkg_failed=yes
31012else
31013  pkg_failed=yes
31014fi
31015 else
31016    pkg_failed=untried
31017fi
31018
31019
31020
31021if test $pkg_failed = yes; then
31022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31023$as_echo "no" >&6; }
31024
31025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31026        _pkg_short_errors_supported=yes
31027else
31028        _pkg_short_errors_supported=no
31029fi
31030        if test $_pkg_short_errors_supported = yes; then
31031	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31032        else
31033	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31034        fi
31035	# Put the nasty error message in config.log where it belongs
31036	echo "$LCMS2_PKG_ERRORS" >&5
31037
31038	have_lcms=no
31039elif test $pkg_failed = untried; then
31040        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31041$as_echo "no" >&6; }
31042	have_lcms=no
31043else
31044	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
31045	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
31046        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31047$as_echo "yes" >&6; }
31048	have_lcms=yes
31049fi
31050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31051$as_echo "" >&6; }
31052fi
31053
31054if test "$have_lcms" = 'yes'; then
31055
31056$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
31057
31058  LCMS_CFLAGS="$LCMS2_CFLAGS"
31059  LCMS_LIBS="$LCMS2_LIBS"
31060  CFLAGS="$LCMS2_CFLAGS $CFLAGS"
31061  ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
31062if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
31063  have_lcms_header='yes'
31064fi
31065
31066
31067  if test "$have_lcms_header" = 'yes'; then
31068
31069$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
31070
31071  else
31072
31073$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
31074
31075  fi
31076fi
31077
31078 if test "$have_lcms" = 'yes'; then
31079  LCMS_DELEGATE_TRUE=
31080  LCMS_DELEGATE_FALSE='#'
31081else
31082  LCMS_DELEGATE_TRUE='#'
31083  LCMS_DELEGATE_FALSE=
31084fi
31085
31086
31087
31088
31089
31090#
31091# Check for the OpenJP2 delegate library.
31092#
31093
31094# Check whether --with-openjp2 was given.
31095if test "${with_openjp2+set}" = set; then :
31096  withval=$with_openjp2; with_openjp2=$withval
31097else
31098  with_openjp2='yes'
31099fi
31100
31101
31102if test "$with_openjp2" != 'yes'; then
31103    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
31104fi
31105
31106have_openjp2='no'
31107LIBOPENJP2_CFLAGS=""
31108LIBOPENJP2_LIBS=""
31109LIBOPENJP2_PKG=""
31110if test "$with_openjp2" != 'no'; then
31111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31112$as_echo "-------------------------------------------------------------" >&6; }
31113
31114pkg_failed=no
31115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libopenjp2 >= 2.1.0" >&5
31116$as_echo_n "checking for libopenjp2 >= 2.1.0... " >&6; }
31117
31118if test -n "$LIBOPENJP2_CFLAGS"; then
31119    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
31120 elif test -n "$PKG_CONFIG"; then
31121    if test -n "$PKG_CONFIG" && \
31122    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31123  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31124  ac_status=$?
31125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31126  test $ac_status = 0; }; then
31127  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
31128		      test "x$?" != "x0" && pkg_failed=yes
31129else
31130  pkg_failed=yes
31131fi
31132 else
31133    pkg_failed=untried
31134fi
31135if test -n "$LIBOPENJP2_LIBS"; then
31136    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
31137 elif test -n "$PKG_CONFIG"; then
31138    if test -n "$PKG_CONFIG" && \
31139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31140  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31141  ac_status=$?
31142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31143  test $ac_status = 0; }; then
31144  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
31145		      test "x$?" != "x0" && pkg_failed=yes
31146else
31147  pkg_failed=yes
31148fi
31149 else
31150    pkg_failed=untried
31151fi
31152
31153
31154
31155if test $pkg_failed = yes; then
31156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31157$as_echo "no" >&6; }
31158
31159if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31160        _pkg_short_errors_supported=yes
31161else
31162        _pkg_short_errors_supported=no
31163fi
31164        if test $_pkg_short_errors_supported = yes; then
31165	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
31166        else
31167	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
31168        fi
31169	# Put the nasty error message in config.log where it belongs
31170	echo "$LIBOPENJP2_PKG_ERRORS" >&5
31171
31172	have_openjp2=no
31173elif test $pkg_failed = untried; then
31174        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31175$as_echo "no" >&6; }
31176	have_openjp2=no
31177else
31178	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
31179	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
31180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31181$as_echo "yes" >&6; }
31182	have_openjp2=yes
31183fi
31184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31185$as_echo "" >&6; }
31186fi
31187
31188if test "$have_openjp2" = 'yes'; then
31189
31190$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
31191
31192  CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
31193fi
31194
31195 if test "$have_openjp2" = 'yes'; then
31196  LIBOPENJP2_DELEGATE_TRUE=
31197  LIBOPENJP2_DELEGATE_FALSE='#'
31198else
31199  LIBOPENJP2_DELEGATE_TRUE='#'
31200  LIBOPENJP2_DELEGATE_FALSE=
31201fi
31202
31203
31204
31205
31206
31207
31208#
31209# Check for the LQR (Liquid Rescale) delegate library.
31210#
31211
31212# Check whether --with-lqr was given.
31213if test "${with_lqr+set}" = set; then :
31214  withval=$with_lqr; with_lqr=$withval
31215else
31216  with_lqr='yes'
31217fi
31218
31219
31220if test "$with_lqr" != 'yes'; then
31221    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
31222fi
31223
31224have_lqr='no'
31225LQR_CFLAGS=""
31226LQR_LIBS=""
31227LQR_PKG=""
31228if test "x$with_lqr" = "xyes"; then
31229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31230$as_echo "-------------------------------------------------------------" >&6; }
31231
31232pkg_failed=no
31233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqr-1 >= 0.1.0" >&5
31234$as_echo_n "checking for lqr-1 >= 0.1.0... " >&6; }
31235
31236if test -n "$LQR_CFLAGS"; then
31237    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
31238 elif test -n "$PKG_CONFIG"; then
31239    if test -n "$PKG_CONFIG" && \
31240    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31241  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31242  ac_status=$?
31243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31244  test $ac_status = 0; }; then
31245  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
31246		      test "x$?" != "x0" && pkg_failed=yes
31247else
31248  pkg_failed=yes
31249fi
31250 else
31251    pkg_failed=untried
31252fi
31253if test -n "$LQR_LIBS"; then
31254    pkg_cv_LQR_LIBS="$LQR_LIBS"
31255 elif test -n "$PKG_CONFIG"; then
31256    if test -n "$PKG_CONFIG" && \
31257    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31258  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31259  ac_status=$?
31260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31261  test $ac_status = 0; }; then
31262  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
31263		      test "x$?" != "x0" && pkg_failed=yes
31264else
31265  pkg_failed=yes
31266fi
31267 else
31268    pkg_failed=untried
31269fi
31270
31271
31272
31273if test $pkg_failed = yes; then
31274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31275$as_echo "no" >&6; }
31276
31277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31278        _pkg_short_errors_supported=yes
31279else
31280        _pkg_short_errors_supported=no
31281fi
31282        if test $_pkg_short_errors_supported = yes; then
31283	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
31284        else
31285	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
31286        fi
31287	# Put the nasty error message in config.log where it belongs
31288	echo "$LQR_PKG_ERRORS" >&5
31289
31290	have_lqr=no
31291elif test $pkg_failed = untried; then
31292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31293$as_echo "no" >&6; }
31294	have_lqr=no
31295else
31296	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
31297	LQR_LIBS=$pkg_cv_LQR_LIBS
31298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31299$as_echo "yes" >&6; }
31300	have_lqr=yes
31301fi
31302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31303$as_echo "" >&6; }
31304fi
31305
31306if test "$have_lqr" = 'yes'; then
31307
31308$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
31309
31310  CFLAGS="$LQR_CFLAGS $CFLAGS"
31311fi
31312
31313 if test "$have_lqr" = 'yes'; then
31314  LQR_DELEGATE_TRUE=
31315  LQR_DELEGATE_FALSE='#'
31316else
31317  LQR_DELEGATE_TRUE='#'
31318  LQR_DELEGATE_FALSE=
31319fi
31320
31321
31322
31323
31324
31325# Disable LZMA (lzma library)
31326
31327# Check whether --with-lzma was given.
31328if test "${with_lzma+set}" = set; then :
31329  withval=$with_lzma; with_lzma=$withval
31330else
31331  with_lzma='yes'
31332fi
31333
31334if test "$with_lzma" != 'yes' ; then
31335    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
31336fi
31337
31338LZMA_PKG=""
31339if test "x$with_lzma" = "xyes"; then
31340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31341$as_echo "-------------------------------------------------------------" >&6; }
31342
31343pkg_failed=no
31344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma >= 2.9.0" >&5
31345$as_echo_n "checking for liblzma >= 2.9.0... " >&6; }
31346
31347if test -n "$LZMA_CFLAGS"; then
31348    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
31349 elif test -n "$PKG_CONFIG"; then
31350    if test -n "$PKG_CONFIG" && \
31351    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31352  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31353  ac_status=$?
31354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31355  test $ac_status = 0; }; then
31356  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
31357		      test "x$?" != "x0" && pkg_failed=yes
31358else
31359  pkg_failed=yes
31360fi
31361 else
31362    pkg_failed=untried
31363fi
31364if test -n "$LZMA_LIBS"; then
31365    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
31366 elif test -n "$PKG_CONFIG"; then
31367    if test -n "$PKG_CONFIG" && \
31368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31369  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31370  ac_status=$?
31371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31372  test $ac_status = 0; }; then
31373  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
31374		      test "x$?" != "x0" && pkg_failed=yes
31375else
31376  pkg_failed=yes
31377fi
31378 else
31379    pkg_failed=untried
31380fi
31381
31382
31383
31384if test $pkg_failed = yes; then
31385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31386$as_echo "no" >&6; }
31387
31388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31389        _pkg_short_errors_supported=yes
31390else
31391        _pkg_short_errors_supported=no
31392fi
31393        if test $_pkg_short_errors_supported = yes; then
31394	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
31395        else
31396	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
31397        fi
31398	# Put the nasty error message in config.log where it belongs
31399	echo "$LZMA_PKG_ERRORS" >&5
31400
31401	have_lzma=no
31402elif test $pkg_failed = untried; then
31403        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31404$as_echo "no" >&6; }
31405	have_lzma=no
31406else
31407	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
31408	LZMA_LIBS=$pkg_cv_LZMA_LIBS
31409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31410$as_echo "yes" >&6; }
31411	have_lzma=yes
31412fi
31413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31414$as_echo "" >&6; }
31415else
31416  have_lzma=no
31417fi
31418
31419if test "$have_lzma" = 'yes'; then
31420
31421$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
31422
31423  CFLAGS="$LZMA_CFLAGS $CFLAGS"
31424fi
31425
31426 if test "$have_lzma" = 'yes'; then
31427  LZMA_DELEGATE_TRUE=
31428  LZMA_DELEGATE_FALSE='#'
31429else
31430  LZMA_DELEGATE_TRUE='#'
31431  LZMA_DELEGATE_FALSE=
31432fi
31433
31434
31435
31436
31437
31438#
31439# Check for the OpenEXR delegate library.
31440#
31441
31442# Check whether --with-openexr was given.
31443if test "${with_openexr+set}" = set; then :
31444  withval=$with_openexr; with_openexr=$withval
31445else
31446  with_openexr='yes'
31447fi
31448
31449
31450if test "$with_openexr" != 'yes'; then
31451    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31452fi
31453
31454have_openexr='no'
31455OPENEXR_CFLAGS=""
31456OPENEXR_LIBS=""
31457OPENEXR_PKG=""
31458if test "x$with_openexr" = "xyes"; then
31459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31460$as_echo "-------------------------------------------------------------" >&6; }
31461
31462pkg_failed=no
31463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenEXR >= 1.0.6" >&5
31464$as_echo_n "checking for OpenEXR >= 1.0.6... " >&6; }
31465
31466if test -n "$OPENEXR_CFLAGS"; then
31467    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31468 elif test -n "$PKG_CONFIG"; then
31469    if test -n "$PKG_CONFIG" && \
31470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31471  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31472  ac_status=$?
31473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31474  test $ac_status = 0; }; then
31475  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
31476		      test "x$?" != "x0" && pkg_failed=yes
31477else
31478  pkg_failed=yes
31479fi
31480 else
31481    pkg_failed=untried
31482fi
31483if test -n "$OPENEXR_LIBS"; then
31484    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31485 elif test -n "$PKG_CONFIG"; then
31486    if test -n "$PKG_CONFIG" && \
31487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31488  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31489  ac_status=$?
31490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491  test $ac_status = 0; }; then
31492  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
31493		      test "x$?" != "x0" && pkg_failed=yes
31494else
31495  pkg_failed=yes
31496fi
31497 else
31498    pkg_failed=untried
31499fi
31500
31501
31502
31503if test $pkg_failed = yes; then
31504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31505$as_echo "no" >&6; }
31506
31507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31508        _pkg_short_errors_supported=yes
31509else
31510        _pkg_short_errors_supported=no
31511fi
31512        if test $_pkg_short_errors_supported = yes; then
31513	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
31514        else
31515	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
31516        fi
31517	# Put the nasty error message in config.log where it belongs
31518	echo "$OPENEXR_PKG_ERRORS" >&5
31519
31520	have_openexr=no
31521elif test $pkg_failed = untried; then
31522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31523$as_echo "no" >&6; }
31524	have_openexr=no
31525else
31526	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31527	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31528        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31529$as_echo "yes" >&6; }
31530	have_openexr=yes
31531fi
31532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31533$as_echo "" >&6; }
31534fi
31535
31536if test "$have_openexr" = 'yes'; then
31537
31538$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
31539
31540  CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31541fi
31542
31543 if test "$have_openexr" = 'yes'; then
31544  OPENEXR_DELEGATE_TRUE=
31545  OPENEXR_DELEGATE_FALSE='#'
31546else
31547  OPENEXR_DELEGATE_TRUE='#'
31548  OPENEXR_DELEGATE_FALSE=
31549fi
31550
31551
31552
31553
31554
31555#
31556# Check for PANGO delegate library.
31557#
31558
31559# Check whether --with-pango was given.
31560if test "${with_pango+set}" = set; then :
31561  withval=$with_pango; with_pango=$withval
31562else
31563  with_pango='yes'
31564fi
31565
31566
31567if test "$with_pango" != 'yes'; then
31568    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31569fi
31570
31571have_pango='no'
31572have_pangocairo='no'
31573PANGO_CFLAGS=""
31574PANGO_LIBS=""
31575PANGO_PKG=""
31576if test "x$with_pango" = "xyes"; then
31577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31578$as_echo "-------------------------------------------------------------" >&6; }
31579
31580pkg_failed=no
31581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangocairo >= 1.28.1" >&5
31582$as_echo_n "checking for pangocairo >= 1.28.1... " >&6; }
31583
31584if test -n "$PANGO_CFLAGS"; then
31585    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31586 elif test -n "$PKG_CONFIG"; then
31587    if test -n "$PKG_CONFIG" && \
31588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31589  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31590  ac_status=$?
31591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31592  test $ac_status = 0; }; then
31593  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
31594		      test "x$?" != "x0" && pkg_failed=yes
31595else
31596  pkg_failed=yes
31597fi
31598 else
31599    pkg_failed=untried
31600fi
31601if test -n "$PANGO_LIBS"; then
31602    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31603 elif test -n "$PKG_CONFIG"; then
31604    if test -n "$PKG_CONFIG" && \
31605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31606  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
31607  ac_status=$?
31608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31609  test $ac_status = 0; }; then
31610  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
31611		      test "x$?" != "x0" && pkg_failed=yes
31612else
31613  pkg_failed=yes
31614fi
31615 else
31616    pkg_failed=untried
31617fi
31618
31619
31620
31621if test $pkg_failed = yes; then
31622        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31623$as_echo "no" >&6; }
31624
31625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31626        _pkg_short_errors_supported=yes
31627else
31628        _pkg_short_errors_supported=no
31629fi
31630        if test $_pkg_short_errors_supported = yes; then
31631	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
31632        else
31633	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
31634        fi
31635	# Put the nasty error message in config.log where it belongs
31636	echo "$PANGO_PKG_ERRORS" >&5
31637
31638	have_pangocairo=no
31639elif test $pkg_failed = untried; then
31640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31641$as_echo "no" >&6; }
31642	have_pangocairo=no
31643else
31644	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31645	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31647$as_echo "yes" >&6; }
31648	have_pangocairo=yes
31649fi
31650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31651$as_echo "" >&6; }
31652
31653pkg_failed=no
31654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.28.1" >&5
31655$as_echo_n "checking for pango >= 1.28.1... " >&6; }
31656
31657if test -n "$PANGO_CFLAGS"; then
31658    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31659 elif test -n "$PKG_CONFIG"; then
31660    if test -n "$PKG_CONFIG" && \
31661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31662  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31663  ac_status=$?
31664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665  test $ac_status = 0; }; then
31666  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
31667		      test "x$?" != "x0" && pkg_failed=yes
31668else
31669  pkg_failed=yes
31670fi
31671 else
31672    pkg_failed=untried
31673fi
31674if test -n "$PANGO_LIBS"; then
31675    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31676 elif test -n "$PKG_CONFIG"; then
31677    if test -n "$PKG_CONFIG" && \
31678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31679  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
31680  ac_status=$?
31681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31682  test $ac_status = 0; }; then
31683  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
31684		      test "x$?" != "x0" && pkg_failed=yes
31685else
31686  pkg_failed=yes
31687fi
31688 else
31689    pkg_failed=untried
31690fi
31691
31692
31693
31694if test $pkg_failed = yes; then
31695        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31696$as_echo "no" >&6; }
31697
31698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31699        _pkg_short_errors_supported=yes
31700else
31701        _pkg_short_errors_supported=no
31702fi
31703        if test $_pkg_short_errors_supported = yes; then
31704	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
31705        else
31706	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
31707        fi
31708	# Put the nasty error message in config.log where it belongs
31709	echo "$PANGO_PKG_ERRORS" >&5
31710
31711	have_pango=no
31712elif test $pkg_failed = untried; then
31713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714$as_echo "no" >&6; }
31715	have_pango=no
31716else
31717	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31718	PANGO_LIBS=$pkg_cv_PANGO_LIBS
31719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31720$as_echo "yes" >&6; }
31721	have_pango=yes
31722fi
31723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31724$as_echo "" >&6; }
31725fi
31726
31727if test "$have_pango" = 'yes'; then
31728
31729$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31730
31731  CFLAGS="$PANGO_CFLAGS $CFLAGS"
31732fi
31733
31734if test "$have_pangocairo" = 'yes'; then
31735
31736$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
31737
31738  CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
31739fi
31740
31741 if test "$have_pango" = 'yes'; then
31742  PANGO_DELEGATE_TRUE=
31743  PANGO_DELEGATE_FALSE='#'
31744else
31745  PANGO_DELEGATE_TRUE='#'
31746  PANGO_DELEGATE_FALSE=
31747fi
31748
31749 if test "$have_pangocairo" = 'yes'; then
31750  PANGOCAIRO_DELEGATE_TRUE=
31751  PANGOCAIRO_DELEGATE_FALSE='#'
31752else
31753  PANGOCAIRO_DELEGATE_TRUE='#'
31754  PANGOCAIRO_DELEGATE_FALSE=
31755fi
31756
31757
31758
31759
31760
31761#
31762# Check for PNG delegate library.
31763#
31764
31765# Check whether --with-png was given.
31766if test "${with_png+set}" = set; then :
31767  withval=$with_png; with_png=$withval
31768else
31769  with_png='yes'
31770fi
31771
31772
31773if test "$with_png" != 'yes'; then
31774    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31775fi
31776
31777have_png='no'
31778PNG_CFLAGS=""
31779PNG_LIBS=""
31780PNG_PKG=""
31781if test "x$with_png" = "xyes"; then
31782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31783$as_echo "-------------------------------------------------------------" >&6; }
31784
31785pkg_failed=no
31786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5
31787$as_echo_n "checking for libpng >= 1.0.0... " >&6; }
31788
31789if test -n "$PNG_CFLAGS"; then
31790    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31791 elif test -n "$PKG_CONFIG"; then
31792    if test -n "$PKG_CONFIG" && \
31793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31794  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31795  ac_status=$?
31796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31797  test $ac_status = 0; }; then
31798  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31799		      test "x$?" != "x0" && pkg_failed=yes
31800else
31801  pkg_failed=yes
31802fi
31803 else
31804    pkg_failed=untried
31805fi
31806if test -n "$PNG_LIBS"; then
31807    pkg_cv_PNG_LIBS="$PNG_LIBS"
31808 elif test -n "$PKG_CONFIG"; then
31809    if test -n "$PKG_CONFIG" && \
31810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31811  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31812  ac_status=$?
31813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31814  test $ac_status = 0; }; then
31815  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31816		      test "x$?" != "x0" && pkg_failed=yes
31817else
31818  pkg_failed=yes
31819fi
31820 else
31821    pkg_failed=untried
31822fi
31823
31824
31825
31826if test $pkg_failed = yes; then
31827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828$as_echo "no" >&6; }
31829
31830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31831        _pkg_short_errors_supported=yes
31832else
31833        _pkg_short_errors_supported=no
31834fi
31835        if test $_pkg_short_errors_supported = yes; then
31836	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31837        else
31838	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31839        fi
31840	# Put the nasty error message in config.log where it belongs
31841	echo "$PNG_PKG_ERRORS" >&5
31842
31843	have_png=no
31844elif test $pkg_failed = untried; then
31845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31846$as_echo "no" >&6; }
31847	have_png=no
31848else
31849	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31850	PNG_LIBS=$pkg_cv_PNG_LIBS
31851        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31852$as_echo "yes" >&6; }
31853	have_png=yes
31854fi
31855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31856$as_echo "" >&6; }
31857fi
31858
31859if test "$have_png" = 'yes'; then
31860
31861$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
31862
31863  CFLAGS="$PNG_CFLAGS $CFLAGS"
31864fi
31865
31866 if test "$have_png" = 'yes'; then
31867  PNG_DELEGATE_TRUE=
31868  PNG_DELEGATE_FALSE='#'
31869else
31870  PNG_DELEGATE_TRUE='#'
31871  PNG_DELEGATE_FALSE=
31872fi
31873
31874
31875
31876
31877
31878#
31879# Check for the Raw delegate library.
31880#
31881
31882# Check whether --with-raw was given.
31883if test "${with_raw+set}" = set; then :
31884  withval=$with_raw; with_raw=$withval
31885else
31886  with_raw='yes'
31887fi
31888
31889
31890if test "$with_raw" != 'yes'; then
31891    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw "
31892fi
31893
31894have_raw='no'
31895RAW_R_CFLAGS=""
31896RAW_R_LIBS=""
31897RAW_R_PKG=""
31898if test "x$with_raw" = "xyes"; then
31899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31900$as_echo "-------------------------------------------------------------" >&6; }
31901
31902pkg_failed=no
31903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw_r >= 0.14.8" >&5
31904$as_echo_n "checking for libraw_r >= 0.14.8... " >&6; }
31905
31906if test -n "$RAW_R_CFLAGS"; then
31907    pkg_cv_RAW_R_CFLAGS="$RAW_R_CFLAGS"
31908 elif test -n "$PKG_CONFIG"; then
31909    if test -n "$PKG_CONFIG" && \
31910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
31911  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
31912  ac_status=$?
31913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31914  test $ac_status = 0; }; then
31915  pkg_cv_RAW_R_CFLAGS=`$PKG_CONFIG --cflags "libraw_r >= 0.14.8" 2>/dev/null`
31916		      test "x$?" != "x0" && pkg_failed=yes
31917else
31918  pkg_failed=yes
31919fi
31920 else
31921    pkg_failed=untried
31922fi
31923if test -n "$RAW_R_LIBS"; then
31924    pkg_cv_RAW_R_LIBS="$RAW_R_LIBS"
31925 elif test -n "$PKG_CONFIG"; then
31926    if test -n "$PKG_CONFIG" && \
31927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
31928  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
31929  ac_status=$?
31930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31931  test $ac_status = 0; }; then
31932  pkg_cv_RAW_R_LIBS=`$PKG_CONFIG --libs "libraw_r >= 0.14.8" 2>/dev/null`
31933		      test "x$?" != "x0" && pkg_failed=yes
31934else
31935  pkg_failed=yes
31936fi
31937 else
31938    pkg_failed=untried
31939fi
31940
31941
31942
31943if test $pkg_failed = yes; then
31944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31945$as_echo "no" >&6; }
31946
31947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31948        _pkg_short_errors_supported=yes
31949else
31950        _pkg_short_errors_supported=no
31951fi
31952        if test $_pkg_short_errors_supported = yes; then
31953	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
31954        else
31955	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
31956        fi
31957	# Put the nasty error message in config.log where it belongs
31958	echo "$RAW_R_PKG_ERRORS" >&5
31959
31960	have_raw=no
31961elif test $pkg_failed = untried; then
31962        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31963$as_echo "no" >&6; }
31964	have_raw=no
31965else
31966	RAW_R_CFLAGS=$pkg_cv_RAW_R_CFLAGS
31967	RAW_R_LIBS=$pkg_cv_RAW_R_LIBS
31968        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31969$as_echo "yes" >&6; }
31970	have_raw=yes
31971fi
31972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31973$as_echo "" >&6; }
31974fi
31975
31976if test "$have_raw" = 'yes'; then
31977
31978$as_echo "#define RAW_R_DELEGATE 1" >>confdefs.h
31979
31980  CFLAGS="$RAW_R_CFLAGS $CFLAGS"
31981fi
31982
31983 if test "$have_raw" = 'yes'; then
31984  RAW_R_DELEGATE_TRUE=
31985  RAW_R_DELEGATE_FALSE='#'
31986else
31987  RAW_R_DELEGATE_TRUE='#'
31988  RAW_R_DELEGATE_FALSE=
31989fi
31990
31991
31992
31993
31994
31995#
31996# Check for RSVG delegate library.
31997#
31998
31999# Check whether --with-rsvg was given.
32000if test "${with_rsvg+set}" = set; then :
32001  withval=$with_rsvg; with_rsvg=$withval
32002else
32003  with_rsvg='no'
32004fi
32005
32006
32007if test "$with_rsvg" != 'yes'; then
32008    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
32009fi
32010
32011have_rsvg='no'
32012have_cairo='no'
32013RSVG_CFLAGS=""
32014RSVG_LIBS=""
32015RSVG_PKG=""
32016if test "x$with_rsvg" = "xyes"; then
32017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32018$as_echo "-------------------------------------------------------------" >&6; }
32019
32020pkg_failed=no
32021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librsvg-2.0 >= 2.9.0" >&5
32022$as_echo_n "checking for librsvg-2.0 >= 2.9.0... " >&6; }
32023
32024if test -n "$RSVG_CFLAGS"; then
32025    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
32026 elif test -n "$PKG_CONFIG"; then
32027    if test -n "$PKG_CONFIG" && \
32028    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32029  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32030  ac_status=$?
32031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32032  test $ac_status = 0; }; then
32033  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32034		      test "x$?" != "x0" && pkg_failed=yes
32035else
32036  pkg_failed=yes
32037fi
32038 else
32039    pkg_failed=untried
32040fi
32041if test -n "$RSVG_LIBS"; then
32042    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
32043 elif test -n "$PKG_CONFIG"; then
32044    if test -n "$PKG_CONFIG" && \
32045    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32046  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32047  ac_status=$?
32048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32049  test $ac_status = 0; }; then
32050  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32051		      test "x$?" != "x0" && pkg_failed=yes
32052else
32053  pkg_failed=yes
32054fi
32055 else
32056    pkg_failed=untried
32057fi
32058
32059
32060
32061if test $pkg_failed = yes; then
32062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32063$as_echo "no" >&6; }
32064
32065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32066        _pkg_short_errors_supported=yes
32067else
32068        _pkg_short_errors_supported=no
32069fi
32070        if test $_pkg_short_errors_supported = yes; then
32071	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32072        else
32073	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32074        fi
32075	# Put the nasty error message in config.log where it belongs
32076	echo "$RSVG_PKG_ERRORS" >&5
32077
32078	have_rsvg=no
32079elif test $pkg_failed = untried; then
32080        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081$as_echo "no" >&6; }
32082	have_rsvg=no
32083else
32084	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
32085	RSVG_LIBS=$pkg_cv_RSVG_LIBS
32086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32087$as_echo "yes" >&6; }
32088	have_rsvg=yes
32089fi
32090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32091$as_echo "" >&6; }
32092
32093pkg_failed=no
32094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-svg" >&5
32095$as_echo_n "checking for cairo-svg... " >&6; }
32096
32097if test -n "$CAIRO_SVG_CFLAGS"; then
32098    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
32099 elif test -n "$PKG_CONFIG"; then
32100    if test -n "$PKG_CONFIG" && \
32101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32102  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32103  ac_status=$?
32104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32105  test $ac_status = 0; }; then
32106  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
32107		      test "x$?" != "x0" && pkg_failed=yes
32108else
32109  pkg_failed=yes
32110fi
32111 else
32112    pkg_failed=untried
32113fi
32114if test -n "$CAIRO_SVG_LIBS"; then
32115    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32116 elif test -n "$PKG_CONFIG"; then
32117    if test -n "$PKG_CONFIG" && \
32118    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32119  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32120  ac_status=$?
32121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32122  test $ac_status = 0; }; then
32123  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
32124		      test "x$?" != "x0" && pkg_failed=yes
32125else
32126  pkg_failed=yes
32127fi
32128 else
32129    pkg_failed=untried
32130fi
32131
32132
32133
32134if test $pkg_failed = yes; then
32135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32136$as_echo "no" >&6; }
32137
32138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32139        _pkg_short_errors_supported=yes
32140else
32141        _pkg_short_errors_supported=no
32142fi
32143        if test $_pkg_short_errors_supported = yes; then
32144	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
32145        else
32146	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
32147        fi
32148	# Put the nasty error message in config.log where it belongs
32149	echo "$CAIRO_SVG_PKG_ERRORS" >&5
32150
32151	have_cairo=no
32152elif test $pkg_failed = untried; then
32153        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32154$as_echo "no" >&6; }
32155	have_cairo=no
32156else
32157	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32158	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32159        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32160$as_echo "yes" >&6; }
32161	have_cairo=yes
32162fi
32163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32164$as_echo "" >&6; }
32165fi
32166
32167if test "$have_rsvg" = 'yes'; then
32168
32169$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
32170
32171  CFLAGS="$RSVG_CFLAGS $CFLAGS"
32172fi
32173
32174if test "$have_cairo" = 'yes'; then
32175
32176$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
32177
32178  CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
32179fi
32180
32181 if test "$have_rsvg" = 'yes'; then
32182  RSVG_DELEGATE_TRUE=
32183  RSVG_DELEGATE_FALSE='#'
32184else
32185  RSVG_DELEGATE_TRUE='#'
32186  RSVG_DELEGATE_FALSE=
32187fi
32188
32189 if test "$have_cairo" = 'yes'; then
32190  CAIRO_DELEGATE_TRUE=
32191  CAIRO_DELEGATE_FALSE='#'
32192else
32193  CAIRO_DELEGATE_TRUE='#'
32194  CAIRO_DELEGATE_FALSE=
32195fi
32196
32197
32198
32199
32200
32201#
32202# Check for TIFF delegate library.
32203#
32204
32205# Check whether --with-tiff was given.
32206if test "${with_tiff+set}" = set; then :
32207  withval=$with_tiff; with_tiff=$withval
32208else
32209  with_tiff='yes'
32210fi
32211
32212
32213if test "$with_tiff" != 'yes'; then
32214    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32215fi
32216
32217have_tiff='no'
32218TIFF_LIBS=''
32219if test "$with_tiff" != 'no'; then
32220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32221$as_echo "-------------------------------------------------------------" >&6; }
32222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
32223$as_echo_n "checking for TIFF... " >&6; }
32224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32225$as_echo "" >&6; }
32226    failed=0
32227    passed=0
32228    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
32229if test "x$ac_cv_header_tiff_h" = xyes; then :
32230  passed=`expr $passed + 1`
32231else
32232  failed=`expr $failed + 1`
32233fi
32234
32235
32236    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
32237if test "x$ac_cv_header_tiffio_h" = xyes; then :
32238  passed=`expr $passed + 1`
32239else
32240  failed=`expr $failed + 1`
32241fi
32242
32243
32244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
32245$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
32246if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
32247  $as_echo_n "(cached) " >&6
32248else
32249  ac_check_lib_save_LIBS=$LIBS
32250LIBS="-ltiff  $LIBS"
32251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252/* end confdefs.h.  */
32253
32254/* Override any GCC internal prototype to avoid an error.
32255   Use char because int might match the return type of a GCC
32256   builtin and then its argument prototype would still apply.  */
32257#ifdef __cplusplus
32258extern "C"
32259#endif
32260char TIFFOpen ();
32261int
32262main ()
32263{
32264return TIFFOpen ();
32265  ;
32266  return 0;
32267}
32268_ACEOF
32269if ac_fn_c_try_link "$LINENO"; then :
32270  ac_cv_lib_tiff_TIFFOpen=yes
32271else
32272  ac_cv_lib_tiff_TIFFOpen=no
32273fi
32274rm -f core conftest.err conftest.$ac_objext \
32275    conftest$ac_exeext conftest.$ac_ext
32276LIBS=$ac_check_lib_save_LIBS
32277fi
32278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
32279$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
32280if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
32281  passed=`expr $passed + 1`
32282else
32283  failed=`expr $failed + 1`
32284fi
32285
32286    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
32287$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
32288if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
32289  $as_echo_n "(cached) " >&6
32290else
32291  ac_check_lib_save_LIBS=$LIBS
32292LIBS="-ltiff  $LIBS"
32293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32294/* end confdefs.h.  */
32295
32296/* Override any GCC internal prototype to avoid an error.
32297   Use char because int might match the return type of a GCC
32298   builtin and then its argument prototype would still apply.  */
32299#ifdef __cplusplus
32300extern "C"
32301#endif
32302char TIFFClientOpen ();
32303int
32304main ()
32305{
32306return TIFFClientOpen ();
32307  ;
32308  return 0;
32309}
32310_ACEOF
32311if ac_fn_c_try_link "$LINENO"; then :
32312  ac_cv_lib_tiff_TIFFClientOpen=yes
32313else
32314  ac_cv_lib_tiff_TIFFClientOpen=no
32315fi
32316rm -f core conftest.err conftest.$ac_objext \
32317    conftest$ac_exeext conftest.$ac_ext
32318LIBS=$ac_check_lib_save_LIBS
32319fi
32320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
32321$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
32322if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
32323  passed=`expr $passed + 1`
32324else
32325  failed=`expr $failed + 1`
32326fi
32327
32328    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
32329$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
32330if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
32331  $as_echo_n "(cached) " >&6
32332else
32333  ac_check_lib_save_LIBS=$LIBS
32334LIBS="-ltiff  $LIBS"
32335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336/* end confdefs.h.  */
32337
32338/* Override any GCC internal prototype to avoid an error.
32339   Use char because int might match the return type of a GCC
32340   builtin and then its argument prototype would still apply.  */
32341#ifdef __cplusplus
32342extern "C"
32343#endif
32344char TIFFIsByteSwapped ();
32345int
32346main ()
32347{
32348return TIFFIsByteSwapped ();
32349  ;
32350  return 0;
32351}
32352_ACEOF
32353if ac_fn_c_try_link "$LINENO"; then :
32354  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32355else
32356  ac_cv_lib_tiff_TIFFIsByteSwapped=no
32357fi
32358rm -f core conftest.err conftest.$ac_objext \
32359    conftest$ac_exeext conftest.$ac_ext
32360LIBS=$ac_check_lib_save_LIBS
32361fi
32362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
32363$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
32364if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
32365  passed=`expr $passed + 1`
32366else
32367  failed=`expr $failed + 1`
32368fi
32369
32370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
32371$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
32372if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
32373  $as_echo_n "(cached) " >&6
32374else
32375  ac_check_lib_save_LIBS=$LIBS
32376LIBS="-ltiff  $LIBS"
32377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32378/* end confdefs.h.  */
32379
32380/* Override any GCC internal prototype to avoid an error.
32381   Use char because int might match the return type of a GCC
32382   builtin and then its argument prototype would still apply.  */
32383#ifdef __cplusplus
32384extern "C"
32385#endif
32386char TIFFReadRGBATile ();
32387int
32388main ()
32389{
32390return TIFFReadRGBATile ();
32391  ;
32392  return 0;
32393}
32394_ACEOF
32395if ac_fn_c_try_link "$LINENO"; then :
32396  ac_cv_lib_tiff_TIFFReadRGBATile=yes
32397else
32398  ac_cv_lib_tiff_TIFFReadRGBATile=no
32399fi
32400rm -f core conftest.err conftest.$ac_objext \
32401    conftest$ac_exeext conftest.$ac_ext
32402LIBS=$ac_check_lib_save_LIBS
32403fi
32404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
32405$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
32406if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
32407  passed=`expr $passed + 1`
32408else
32409  failed=`expr $failed + 1`
32410fi
32411
32412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
32413$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
32414if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
32415  $as_echo_n "(cached) " >&6
32416else
32417  ac_check_lib_save_LIBS=$LIBS
32418LIBS="-ltiff  $LIBS"
32419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32420/* end confdefs.h.  */
32421
32422/* Override any GCC internal prototype to avoid an error.
32423   Use char because int might match the return type of a GCC
32424   builtin and then its argument prototype would still apply.  */
32425#ifdef __cplusplus
32426extern "C"
32427#endif
32428char TIFFReadRGBAStrip ();
32429int
32430main ()
32431{
32432return TIFFReadRGBAStrip ();
32433  ;
32434  return 0;
32435}
32436_ACEOF
32437if ac_fn_c_try_link "$LINENO"; then :
32438  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32439else
32440  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
32441fi
32442rm -f core conftest.err conftest.$ac_objext \
32443    conftest$ac_exeext conftest.$ac_ext
32444LIBS=$ac_check_lib_save_LIBS
32445fi
32446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
32447$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
32448if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
32449  passed=`expr $passed + 1`
32450else
32451  failed=`expr $failed + 1`
32452fi
32453
32454    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
32455$as_echo_n "checking if TIFF package is complete... " >&6; }
32456    if test $passed -gt 0; then
32457        if test $failed -gt 0; then
32458            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32459$as_echo "no -- some components failed test" >&6; }
32460            have_tiff='no (failed tests)'
32461        else
32462            TIFF_LIBS='-ltiff'
32463            LIBS="$TIFF_LIBS $LIBS"
32464
32465$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
32466
32467            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32468$as_echo "yes" >&6; }
32469            have_tiff='yes'
32470            for ac_header in tiffconf.h
32471do :
32472  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
32473if test "x$ac_cv_header_tiffconf_h" = xyes; then :
32474  cat >>confdefs.h <<_ACEOF
32475#define HAVE_TIFFCONF_H 1
32476_ACEOF
32477
32478fi
32479
32480done
32481
32482            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
32483              TIFFIsBigEndian TIFFSetErrorHandlerExt TIFFSetTagExtender \
32484              TIFFReadEXIFDirectory TIFFReadGPSDirectory \
32485              TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
32486do :
32487  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32488ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32489if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32490  cat >>confdefs.h <<_ACEOF
32491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32492_ACEOF
32493
32494fi
32495done
32496
32497        fi
32498    else
32499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32500$as_echo "no" >&6; }
32501    fi
32502fi
32503 if test "$have_tiff" = 'yes'; then
32504  TIFF_DELEGATE_TRUE=
32505  TIFF_DELEGATE_FALSE='#'
32506else
32507  TIFF_DELEGATE_TRUE='#'
32508  TIFF_DELEGATE_FALSE=
32509fi
32510
32511
32512
32513
32514#
32515# Set URW Base35 font directory.
32516#
32517
32518# Check whether --with-urw-base35-font-dir was given.
32519if test "${with_urw_base35_font_dir+set}" = set; then :
32520  withval=$with_urw_base35_font_dir; with_urw_base35_font_dir=$withval
32521else
32522  with_urw_base35_font_dir='default'
32523fi
32524
32525
32526if test "$with_urw_base35_font_dir" != 'default'; then
32527    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir "
32528fi
32529
32530
32531#
32532# Check for the WEBP delegate library.
32533#
32534
32535# Check whether --with-webp was given.
32536if test "${with_webp+set}" = set; then :
32537  withval=$with_webp; with_webp=$withval
32538else
32539  with_webp='yes'
32540fi
32541
32542
32543if test "$with_webp" != 'yes'; then
32544    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32545fi
32546
32547have_webp='no'
32548have_webpmux='no'
32549WEBP_CFLAGS=""
32550WEBP_LIBS=""
32551WEBP_PKG=""
32552WEBPMUX_CFLAGS=""
32553WEBPMUX_LIBS=""
32554WEBPMUX_PKG=""
32555if test "x$with_webp" = "xyes"; then
32556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32557$as_echo "-------------------------------------------------------------" >&6; }
32558
32559pkg_failed=no
32560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5
32561$as_echo_n "checking for libwebp... " >&6; }
32562
32563if test -n "$WEBP_CFLAGS"; then
32564    pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
32565 elif test -n "$PKG_CONFIG"; then
32566    if test -n "$PKG_CONFIG" && \
32567    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
32568  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
32569  ac_status=$?
32570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32571  test $ac_status = 0; }; then
32572  pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
32573		      test "x$?" != "x0" && pkg_failed=yes
32574else
32575  pkg_failed=yes
32576fi
32577 else
32578    pkg_failed=untried
32579fi
32580if test -n "$WEBP_LIBS"; then
32581    pkg_cv_WEBP_LIBS="$WEBP_LIBS"
32582 elif test -n "$PKG_CONFIG"; then
32583    if test -n "$PKG_CONFIG" && \
32584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
32585  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
32586  ac_status=$?
32587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32588  test $ac_status = 0; }; then
32589  pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
32590		      test "x$?" != "x0" && pkg_failed=yes
32591else
32592  pkg_failed=yes
32593fi
32594 else
32595    pkg_failed=untried
32596fi
32597
32598
32599
32600if test $pkg_failed = yes; then
32601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32602$as_echo "no" >&6; }
32603
32604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32605        _pkg_short_errors_supported=yes
32606else
32607        _pkg_short_errors_supported=no
32608fi
32609        if test $_pkg_short_errors_supported = yes; then
32610	        WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1`
32611        else
32612	        WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1`
32613        fi
32614	# Put the nasty error message in config.log where it belongs
32615	echo "$WEBP_PKG_ERRORS" >&5
32616
32617	have_webp=no
32618elif test $pkg_failed = untried; then
32619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32620$as_echo "no" >&6; }
32621	have_webp=no
32622else
32623	WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
32624	WEBP_LIBS=$pkg_cv_WEBP_LIBS
32625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32626$as_echo "yes" >&6; }
32627	have_webp=yes
32628fi
32629
32630pkg_failed=no
32631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" >&5
32632$as_echo_n "checking for libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0... " >&6; }
32633
32634if test -n "$WEBPMUX_CFLAGS"; then
32635    pkg_cv_WEBPMUX_CFLAGS="$WEBPMUX_CFLAGS"
32636 elif test -n "$PKG_CONFIG"; then
32637    if test -n "$PKG_CONFIG" && \
32638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
32639  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
32640  ac_status=$?
32641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32642  test $ac_status = 0; }; then
32643  pkg_cv_WEBPMUX_CFLAGS=`$PKG_CONFIG --cflags "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
32644		      test "x$?" != "x0" && pkg_failed=yes
32645else
32646  pkg_failed=yes
32647fi
32648 else
32649    pkg_failed=untried
32650fi
32651if test -n "$WEBPMUX_LIBS"; then
32652    pkg_cv_WEBPMUX_LIBS="$WEBPMUX_LIBS"
32653 elif test -n "$PKG_CONFIG"; then
32654    if test -n "$PKG_CONFIG" && \
32655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0\""; } >&5
32656  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0") 2>&5
32657  ac_status=$?
32658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32659  test $ac_status = 0; }; then
32660  pkg_cv_WEBPMUX_LIBS=`$PKG_CONFIG --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>/dev/null`
32661		      test "x$?" != "x0" && pkg_failed=yes
32662else
32663  pkg_failed=yes
32664fi
32665 else
32666    pkg_failed=untried
32667fi
32668
32669
32670
32671if test $pkg_failed = yes; then
32672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673$as_echo "no" >&6; }
32674
32675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32676        _pkg_short_errors_supported=yes
32677else
32678        _pkg_short_errors_supported=no
32679fi
32680        if test $_pkg_short_errors_supported = yes; then
32681	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
32682        else
32683	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebpmux >= 0.5.0 libwebpdemux >= 0.5.0" 2>&1`
32684        fi
32685	# Put the nasty error message in config.log where it belongs
32686	echo "$WEBPMUX_PKG_ERRORS" >&5
32687
32688	have_webpmux=no
32689elif test $pkg_failed = untried; then
32690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32691$as_echo "no" >&6; }
32692	have_webpmux=no
32693else
32694	WEBPMUX_CFLAGS=$pkg_cv_WEBPMUX_CFLAGS
32695	WEBPMUX_LIBS=$pkg_cv_WEBPMUX_LIBS
32696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32697$as_echo "yes" >&6; }
32698	have_webpmux=yes
32699fi
32700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32701$as_echo "" >&6; }
32702fi
32703
32704if test "$have_webp" = 'yes'; then
32705
32706$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32707
32708  CFLAGS="$WEBP_CFLAGS $CFLAGS"
32709fi
32710
32711if test "$have_webpmux" = 'yes'; then
32712
32713$as_echo "#define WEBPMUX_DELEGATE 1" >>confdefs.h
32714
32715  CFLAGS="$WEBPMUX_CFLAGS $CFLAGS"
32716fi
32717
32718 if test "$have_webp" = 'yes'; then
32719  WEBP_DELEGATE_TRUE=
32720  WEBP_DELEGATE_FALSE='#'
32721else
32722  WEBP_DELEGATE_TRUE='#'
32723  WEBP_DELEGATE_FALSE=
32724fi
32725
32726 if test "$have_webpmux" = 'yes'; then
32727  WEBPMUX_DELEGATE_TRUE=
32728  WEBPMUX_DELEGATE_FALSE='#'
32729else
32730  WEBPMUX_DELEGATE_TRUE='#'
32731  WEBPMUX_DELEGATE_FALSE=
32732fi
32733
32734
32735
32736
32737
32738
32739
32740#
32741# Set Windows font directory.
32742#
32743
32744# Check whether --with-windows-font-dir was given.
32745if test "${with_windows_font_dir+set}" = set; then :
32746  withval=$with_windows_font_dir; with_windows_font_dir=$withval
32747else
32748  with_windows_font_dir='default'
32749fi
32750
32751
32752if test "$with_windows_font_dir" != 'default'; then
32753    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32754fi
32755
32756
32757#
32758# Check for WMF delegate library.
32759#
32760
32761# Check whether --with-wmf was given.
32762if test "${with_wmf+set}" = set; then :
32763  withval=$with_wmf; with_wmf=$withval
32764else
32765  with_wmf=$build_modules
32766fi
32767
32768
32769if test "$with_wmf" != 'yes'; then
32770    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32771fi
32772
32773have_wmf='no'
32774WMF_LIBS=''
32775WMF_CFLAGS=''
32776OLIBS="$LIBS"
32777if test "$with_wmf" != 'no'; then
32778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support" >&5
32779$as_echo_n "checking for WMF support... " >&6; }
32780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32781$as_echo "" >&6; }
32782
32783  have_libwmflite='no'
32784  have_libwmf_ipa_h='no'
32785
32786  ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32787"
32788if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32789  have_libwmf_ipa_h='yes'
32790fi
32791
32792
32793  if test "$have_libwmf_ipa_h" = 'yes'; then
32794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32795$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32796if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32797  $as_echo_n "(cached) " >&6
32798else
32799  ac_check_lib_save_LIBS=$LIBS
32800LIBS="-lwmflite  $LIBS"
32801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32802/* end confdefs.h.  */
32803
32804/* Override any GCC internal prototype to avoid an error.
32805   Use char because int might match the return type of a GCC
32806   builtin and then its argument prototype would still apply.  */
32807#ifdef __cplusplus
32808extern "C"
32809#endif
32810char wmf_lite_create ();
32811int
32812main ()
32813{
32814return wmf_lite_create ();
32815  ;
32816  return 0;
32817}
32818_ACEOF
32819if ac_fn_c_try_link "$LINENO"; then :
32820  ac_cv_lib_wmflite_wmf_lite_create=yes
32821else
32822  ac_cv_lib_wmflite_wmf_lite_create=no
32823fi
32824rm -f core conftest.err conftest.$ac_objext \
32825    conftest$ac_exeext conftest.$ac_ext
32826LIBS=$ac_check_lib_save_LIBS
32827fi
32828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32829$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32830if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32831  have_libwmflite='yes'
32832fi
32833
32834    if test "$have_libwmflite" = 'yes'; then
32835
32836$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
32837
32838      WMF_LIBS='-lwmflite'
32839      LIBS="$WMF_LIBS $LIBS"
32840      have_wmf='yes'
32841    else
32842      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32843$as_echo "no -- some components failed test" >&6; }
32844      have_wmf='no (failed tests)'
32845      have_wmflite='no (failed tests)'
32846      LIBS="$OLIBS"
32847      WMF_LIBS=''
32848    fi
32849  fi
32850fi
32851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32852$as_echo_n "checking if WMF package is complete... " >&6; }
32853if test "$have_wmf" = 'yes'; then
32854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32855$as_echo "yes" >&6; }
32856else
32857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32858$as_echo "no" >&6; }
32859fi
32860 if test "$have_wmf" = 'yes'; then
32861  WMF_DELEGATE_TRUE=
32862  WMF_DELEGATE_FALSE='#'
32863else
32864  WMF_DELEGATE_TRUE='#'
32865  WMF_DELEGATE_FALSE=
32866fi
32867
32868
32869
32870
32871
32872#
32873# Check for XML delegate library.
32874#
32875
32876# Check whether --with-xml was given.
32877if test "${with_xml+set}" = set; then :
32878  withval=$with_xml; with_xml=$withval
32879else
32880  with_xml='yes'
32881fi
32882
32883
32884if test "$with_xml" != 'yes' ; then
32885    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32886fi
32887
32888have_xml='no'
32889XML_CFLAGS=""
32890XML_LIBS=""
32891XML_PKG=""
32892if test "x$with_xml" = "xyes"; then
32893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32894$as_echo "-------------------------------------------------------------" >&6; }
32895
32896pkg_failed=no
32897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0.0" >&5
32898$as_echo_n "checking for libxml-2.0 >= 2.0.0... " >&6; }
32899
32900if test -n "$XML_CFLAGS"; then
32901    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
32902 elif test -n "$PKG_CONFIG"; then
32903    if test -n "$PKG_CONFIG" && \
32904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32905  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32906  ac_status=$?
32907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32908  test $ac_status = 0; }; then
32909  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
32910		      test "x$?" != "x0" && pkg_failed=yes
32911else
32912  pkg_failed=yes
32913fi
32914 else
32915    pkg_failed=untried
32916fi
32917if test -n "$XML_LIBS"; then
32918    pkg_cv_XML_LIBS="$XML_LIBS"
32919 elif test -n "$PKG_CONFIG"; then
32920    if test -n "$PKG_CONFIG" && \
32921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32922  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32923  ac_status=$?
32924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32925  test $ac_status = 0; }; then
32926  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
32927		      test "x$?" != "x0" && pkg_failed=yes
32928else
32929  pkg_failed=yes
32930fi
32931 else
32932    pkg_failed=untried
32933fi
32934
32935
32936
32937if test $pkg_failed = yes; then
32938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32939$as_echo "no" >&6; }
32940
32941if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32942        _pkg_short_errors_supported=yes
32943else
32944        _pkg_short_errors_supported=no
32945fi
32946        if test $_pkg_short_errors_supported = yes; then
32947	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32948        else
32949	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32950        fi
32951	# Put the nasty error message in config.log where it belongs
32952	echo "$XML_PKG_ERRORS" >&5
32953
32954	have_xml=no
32955elif test $pkg_failed = untried; then
32956        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32957$as_echo "no" >&6; }
32958	have_xml=no
32959else
32960	XML_CFLAGS=$pkg_cv_XML_CFLAGS
32961	XML_LIBS=$pkg_cv_XML_LIBS
32962        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32963$as_echo "yes" >&6; }
32964	have_xml=yes
32965fi
32966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32967$as_echo "" >&6; }
32968fi
32969
32970if test "$have_xml" = 'yes'; then
32971
32972$as_echo "#define XML_DELEGATE 1" >>confdefs.h
32973
32974  CFLAGS="$XML_CFLAGS $CFLAGS"
32975fi
32976
32977 if test "$have_xml" = 'yes'; then
32978  XML_DELEGATE_TRUE=
32979  XML_DELEGATE_FALSE='#'
32980else
32981  XML_DELEGATE_TRUE='#'
32982  XML_DELEGATE_FALSE=
32983fi
32984
32985
32986
32987
32988
32989# Check for functions
32990#
32991for ac_func in acosh _aligned_malloc aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getpwnam_r getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkdir mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread putenv pwrite qsort_r raise rand_r readlink realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strcasestr strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
32992do :
32993  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32994ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32995if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32996  cat >>confdefs.h <<_ACEOF
32997#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32998_ACEOF
32999
33000fi
33001done
33002
33003
33004# Substitute compiler name to build/link PerlMagick
33005#
33006
33007
33008#
33009# Configure install Paths
33010#
33011
33012# Path to ImageMagick header files
33013INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33014INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
33015DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
33016case "${build_os}" in
33017  mingw* )
33018    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
33019    ;;
33020esac
33021
33022cat >>confdefs.h <<_ACEOF
33023#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
33024_ACEOF
33025
33026
33027
33028# Path to ImageMagick header files (arch part)
33029INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
33030DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
33031case "${build_os}" in
33032  mingw* )
33033    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
33034    ;;
33035esac
33036
33037cat >>confdefs.h <<_ACEOF
33038#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
33039_ACEOF
33040
33041
33042
33043# Subdirectory under lib to place ImageMagick lib files
33044LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_BASE_VERSION}"
33045
33046cat >>confdefs.h <<_ACEOF
33047#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
33048_ACEOF
33049
33050
33051# Path to ImageMagick bin directory
33052EXECUTABLE_PATH="${BIN_DIR}"
33053DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33054case "${build_os}" in
33055  mingw* )
33056    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33057    ;;
33058esac
33059
33060cat >>confdefs.h <<_ACEOF
33061#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33062_ACEOF
33063
33064
33065
33066# Path to ImageMagick lib
33067LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33068DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33069case "${build_os}" in
33070  mingw* )
33071    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33072    ;;
33073esac
33074
33075cat >>confdefs.h <<_ACEOF
33076#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33077_ACEOF
33078
33079
33080
33081#
33082# path to local binaries
33083if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33084   LIB_BIN_BASEDIRNAME="bin"
33085fi
33086
33087cat >>confdefs.h <<_ACEOF
33088#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33089_ACEOF
33090
33091
33092
33093if test "x$LIB_BIN_DIR" = "x"; then
33094   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33095fi
33096
33097
33098LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33099
33100LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33101
33102
33103#
33104# path to modules lib
33105if test "x$MODULES_BASEDIRNAME" = "x"; then
33106   MODULES_BASEDIRNAME="modules"
33107fi
33108
33109cat >>confdefs.h <<_ACEOF
33110#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
33111_ACEOF
33112
33113
33114
33115if test "x$MODULES_DIRNAME" = "x"; then
33116  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33117else
33118
33119cat >>confdefs.h <<_ACEOF
33120#define MODULES_DIRNAME "$MODULES_DIRNAME"
33121_ACEOF
33122
33123fi
33124
33125
33126MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
33127
33128MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33129
33130
33131#
33132# path to coders lib
33133if test "x$CODER_DIRNAME" = "x"; then
33134   CODER_DIRNAME="coders"
33135fi
33136
33137cat >>confdefs.h <<_ACEOF
33138#define CODER_DIRNAME "$CODER_DIRNAME"
33139_ACEOF
33140
33141
33142
33143CODER_RELATIVE_PATH="${CODER_DIRNAME}"
33144CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
33145
33146
33147#
33148# Subdirectory under lib to place ImageMagick filter module files
33149#
33150# path to coders lib
33151if test "x$FILTER_DIRNAME" = "x"; then
33152   FILTER_DIRNAME="filters"
33153fi
33154
33155cat >>confdefs.h <<_ACEOF
33156#define FILTER_DIRNAME "$FILTER_DIRNAME"
33157_ACEOF
33158
33159
33160
33161FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
33162FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
33163
33164
33165#
33166# Path to ImageMagick documentation files
33167DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33168DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
33169DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
33170case "${build_os}" in
33171  mingw* )
33172    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
33173    ;;
33174esac
33175
33176cat >>confdefs.h <<_ACEOF
33177#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
33178_ACEOF
33179
33180
33181
33182#
33183# Enable/Disable documentation
33184# Check whether --enable-docs was given.
33185if test "${enable_docs+set}" = set; then :
33186  enableval=$enable_docs; wantdocs=$enableval
33187else
33188  wantdocs=yes
33189fi
33190
33191 if test "$wantdocs" = "yes"; then
33192  INSTALL_DOC_TRUE=
33193  INSTALL_DOC_FALSE='#'
33194else
33195  INSTALL_DOC_TRUE='#'
33196  INSTALL_DOC_FALSE=
33197fi
33198
33199
33200# Subdirectory to place architecture-dependent configuration files
33201CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33202
33203cat >>confdefs.h <<_ACEOF
33204#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
33205_ACEOF
33206
33207CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33208DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
33209case "${build_os}" in
33210  mingw* )
33211    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
33212    ;;
33213esac
33214
33215cat >>confdefs.h <<_ACEOF
33216#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
33217_ACEOF
33218
33219
33220
33221# Subdirectory to place architecture-independent configuration files
33222SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33223
33224cat >>confdefs.h <<_ACEOF
33225#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
33226_ACEOF
33227
33228SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
33229DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
33230case "${build_os}" in
33231  mingw* )
33232    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
33233    ;;
33234esac
33235
33236cat >>confdefs.h <<_ACEOF
33237#define SHARE_PATH "$DEFINE_SHARE_PATH"
33238_ACEOF
33239
33240
33241
33242#
33243# Subdirectory to place architecture-dependent configuration files.
33244if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
33245   SHAREARCH_BASEDIRNAME="config"
33246fi
33247
33248cat >>confdefs.h <<_ACEOF
33249#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
33250_ACEOF
33251
33252
33253
33254if test "x$SHAREARCH_DIRNAME" = "x"; then
33255  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33256else
33257
33258cat >>confdefs.h <<_ACEOF
33259#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
33260_ACEOF
33261
33262fi
33263
33264
33265SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
33266
33267SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
33268
33269
33270#
33271# program_transform_name is formed for use in a Makefile, so create a
33272# modified version for use in a shell script.
33273configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
33274
33275# Default delegate definitions
33276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33277$as_echo "-------------------------------------------------------------" >&6; }
33278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
33279$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
33280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33281$as_echo "" >&6; }
33282BPGDecodeDelegateDefault='bpgdec'
33283BPGEncodeDelegateDefault='bpgenc'
33284BlenderDecodeDelegateDefault='blender'
33285BrowseDelegateDefault='xdg-open'
33286DNGDecodeDelegateDefault='ufraw-batch'
33287DOCDecodeDelegateDefault='libreoffice'
33288GVCDecodeDelegateDefault='dot'
33289DVIDecodeDelegateDefault='dvips'
33290EditorDelegateDefault='xterm'
33291ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
33292DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
33293Fig2devDelegateDefault='fig2dev'
33294MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
33295HPGLDecodeDelegateDefault='hp2xx'
33296HTMLDecodeDelegateDefault='html2ps'
33297ILBMDecodeDelegateDefault='ilbmtoppm'
33298ILBMEncodeDelegateDefault='ppmtoilbm'
33299JXRDecodeDelegateDefault='JxrDecApp'
33300JXREncodeDelegateDefault='JxrEncApp'
33301LEPDelegateDefault='lepton'
33302LPDelegateDefault='lp'
33303LPRDelegateDefault='lpr'
33304LaunchDelegateDefault='gimp'
33305MrSIDDecodeDelegateDefault='mrsidgeodecode'
33306MVDelegateDefault='mv'
33307PCLDelegateDefault='pcl6'
33308if test "$native_win32_build" = 'yes'; then
33309    PSDelegateDefault='gswin32c'
33310elif test "$gslib_framework" = 'yes'; then
33311    PSDelegateDefault='gsc'
33312else
33313    PSDelegateDefault='gs'
33314fi
33315RMDelegateDefault='rm'
33316RSVGDecodeDelegateDefault='rsvg-convert'
33317SVGDecodeDelegateDefault='inkscape'
33318TextEncodeDelegateDefault='tesseract'
33319TraceEncodeDelegateDefault='potrace'
33320VIDEODecodeDelegateDefault='ffmpeg'
33321VIDEOEncodeDelegateDefault='ffmpeg'
33322WebPDecodeDelegateDefault='dwebp'
33323WebPEncodeDelegateDefault='cwebp'
33324WWWDecodeDelegateDefault='curl'
33325XPSDelegateDefault='gxps'
33326
33327# Search for delegates
33328# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
33329set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
33330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33331$as_echo_n "checking for $ac_word... " >&6; }
33332if ${ac_cv_path_BPGDecodeDelegate+:} false; then :
33333  $as_echo_n "(cached) " >&6
33334else
33335  case $BPGDecodeDelegate in
33336  [\\/]* | ?:[\\/]*)
33337  ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
33338  ;;
33339  *)
33340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343  IFS=$as_save_IFS
33344  test -z "$as_dir" && as_dir=.
33345    for ac_exec_ext in '' $ac_executable_extensions; do
33346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33347    ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33349    break 2
33350  fi
33351done
33352  done
33353IFS=$as_save_IFS
33354
33355  test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
33356  ;;
33357esac
33358fi
33359BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
33360if test -n "$BPGDecodeDelegate"; then
33361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
33362$as_echo "$BPGDecodeDelegate" >&6; }
33363else
33364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33365$as_echo "no" >&6; }
33366fi
33367
33368
33369# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
33370set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
33371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33372$as_echo_n "checking for $ac_word... " >&6; }
33373if ${ac_cv_path_BPGEncodeDelegate+:} false; then :
33374  $as_echo_n "(cached) " >&6
33375else
33376  case $BPGEncodeDelegate in
33377  [\\/]* | ?:[\\/]*)
33378  ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
33379  ;;
33380  *)
33381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384  IFS=$as_save_IFS
33385  test -z "$as_dir" && as_dir=.
33386    for ac_exec_ext in '' $ac_executable_extensions; do
33387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33388    ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33390    break 2
33391  fi
33392done
33393  done
33394IFS=$as_save_IFS
33395
33396  test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
33397  ;;
33398esac
33399fi
33400BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
33401if test -n "$BPGEncodeDelegate"; then
33402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
33403$as_echo "$BPGEncodeDelegate" >&6; }
33404else
33405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33411set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
33412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33413$as_echo_n "checking for $ac_word... " >&6; }
33414if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
33415  $as_echo_n "(cached) " >&6
33416else
33417  case $BlenderDecodeDelegate in
33418  [\\/]* | ?:[\\/]*)
33419  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33420  ;;
33421  *)
33422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425  IFS=$as_save_IFS
33426  test -z "$as_dir" && as_dir=.
33427    for ac_exec_ext in '' $ac_executable_extensions; do
33428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33429    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33431    break 2
33432  fi
33433done
33434  done
33435IFS=$as_save_IFS
33436
33437  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33438  ;;
33439esac
33440fi
33441BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33442if test -n "$BlenderDecodeDelegate"; then
33443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
33444$as_echo "$BlenderDecodeDelegate" >&6; }
33445else
33446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33447$as_echo "no" >&6; }
33448fi
33449
33450
33451for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33452do
33453  # Extract the first word of "$ac_prog", so it can be a program name with args.
33454set dummy $ac_prog; ac_word=$2
33455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33456$as_echo_n "checking for $ac_word... " >&6; }
33457if ${ac_cv_path_BrowseDelegate+:} false; then :
33458  $as_echo_n "(cached) " >&6
33459else
33460  case $BrowseDelegate in
33461  [\\/]* | ?:[\\/]*)
33462  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33463  ;;
33464  *)
33465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468  IFS=$as_save_IFS
33469  test -z "$as_dir" && as_dir=.
33470    for ac_exec_ext in '' $ac_executable_extensions; do
33471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33472    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
33473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33474    break 2
33475  fi
33476done
33477  done
33478IFS=$as_save_IFS
33479
33480  ;;
33481esac
33482fi
33483BrowseDelegate=$ac_cv_path_BrowseDelegate
33484if test -n "$BrowseDelegate"; then
33485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
33486$as_echo "$BrowseDelegate" >&6; }
33487else
33488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33489$as_echo "no" >&6; }
33490fi
33491
33492
33493  test -n "$BrowseDelegate" && break
33494done
33495test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33496
33497# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33498set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
33499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33500$as_echo_n "checking for $ac_word... " >&6; }
33501if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
33502  $as_echo_n "(cached) " >&6
33503else
33504  case $DNGDecodeDelegate in
33505  [\\/]* | ?:[\\/]*)
33506  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33507  ;;
33508  *)
33509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33510for as_dir in $PATH
33511do
33512  IFS=$as_save_IFS
33513  test -z "$as_dir" && as_dir=.
33514    for ac_exec_ext in '' $ac_executable_extensions; do
33515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33516    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33518    break 2
33519  fi
33520done
33521  done
33522IFS=$as_save_IFS
33523
33524  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33525  ;;
33526esac
33527fi
33528DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33529if test -n "$DNGDecodeDelegate"; then
33530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
33531$as_echo "$DNGDecodeDelegate" >&6; }
33532else
33533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33534$as_echo "no" >&6; }
33535fi
33536
33537
33538# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33539set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
33540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33541$as_echo_n "checking for $ac_word... " >&6; }
33542if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
33543  $as_echo_n "(cached) " >&6
33544else
33545  case $DOCDecodeDelegate in
33546  [\\/]* | ?:[\\/]*)
33547  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
33548  ;;
33549  *)
33550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33551for as_dir in $PATH
33552do
33553  IFS=$as_save_IFS
33554  test -z "$as_dir" && as_dir=.
33555    for ac_exec_ext in '' $ac_executable_extensions; do
33556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33557    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33559    break 2
33560  fi
33561done
33562  done
33563IFS=$as_save_IFS
33564
33565  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
33566  ;;
33567esac
33568fi
33569DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33570if test -n "$DOCDecodeDelegate"; then
33571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33572$as_echo "$DOCDecodeDelegate" >&6; }
33573else
33574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575$as_echo "no" >&6; }
33576fi
33577
33578
33579# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33580set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33582$as_echo_n "checking for $ac_word... " >&6; }
33583if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
33584  $as_echo_n "(cached) " >&6
33585else
33586  case $DVIDecodeDelegate in
33587  [\\/]* | ?:[\\/]*)
33588  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33589  ;;
33590  *)
33591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33592for as_dir in $PATH
33593do
33594  IFS=$as_save_IFS
33595  test -z "$as_dir" && as_dir=.
33596    for ac_exec_ext in '' $ac_executable_extensions; do
33597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33598    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33600    break 2
33601  fi
33602done
33603  done
33604IFS=$as_save_IFS
33605
33606  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33607  ;;
33608esac
33609fi
33610DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33611if test -n "$DVIDecodeDelegate"; then
33612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
33613$as_echo "$DVIDecodeDelegate" >&6; }
33614else
33615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33616$as_echo "no" >&6; }
33617fi
33618
33619
33620# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33621set dummy "$ConvertDelegateDefault"; ac_word=$2
33622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33623$as_echo_n "checking for $ac_word... " >&6; }
33624if ${ac_cv_path_ConvertDelegate+:} false; then :
33625  $as_echo_n "(cached) " >&6
33626else
33627  case $ConvertDelegate in
33628  [\\/]* | ?:[\\/]*)
33629  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33630  ;;
33631  *)
33632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635  IFS=$as_save_IFS
33636  test -z "$as_dir" && as_dir=.
33637    for ac_exec_ext in '' $ac_executable_extensions; do
33638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33639    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
33640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33641    break 2
33642  fi
33643done
33644  done
33645IFS=$as_save_IFS
33646
33647  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33648  ;;
33649esac
33650fi
33651ConvertDelegate=$ac_cv_path_ConvertDelegate
33652if test -n "$ConvertDelegate"; then
33653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
33654$as_echo "$ConvertDelegate" >&6; }
33655else
33656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33657$as_echo "no" >&6; }
33658fi
33659
33660
33661# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33662set dummy "$DisplayDelegateDefault"; ac_word=$2
33663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33664$as_echo_n "checking for $ac_word... " >&6; }
33665if ${ac_cv_path_DisplayDelegate+:} false; then :
33666  $as_echo_n "(cached) " >&6
33667else
33668  case $DisplayDelegate in
33669  [\\/]* | ?:[\\/]*)
33670  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33671  ;;
33672  *)
33673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33674for as_dir in $PATH
33675do
33676  IFS=$as_save_IFS
33677  test -z "$as_dir" && as_dir=.
33678    for ac_exec_ext in '' $ac_executable_extensions; do
33679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33680    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
33681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33682    break 2
33683  fi
33684done
33685  done
33686IFS=$as_save_IFS
33687
33688  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33689  ;;
33690esac
33691fi
33692DisplayDelegate=$ac_cv_path_DisplayDelegate
33693if test -n "$DisplayDelegate"; then
33694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
33695$as_echo "$DisplayDelegate" >&6; }
33696else
33697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698$as_echo "no" >&6; }
33699fi
33700
33701
33702# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33703set dummy "$EditorDelegateDefault"; ac_word=$2
33704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33705$as_echo_n "checking for $ac_word... " >&6; }
33706if ${ac_cv_path_EditorDelegate+:} false; then :
33707  $as_echo_n "(cached) " >&6
33708else
33709  case $EditorDelegate in
33710  [\\/]* | ?:[\\/]*)
33711  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33712  ;;
33713  *)
33714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33715for as_dir in $PATH
33716do
33717  IFS=$as_save_IFS
33718  test -z "$as_dir" && as_dir=.
33719    for ac_exec_ext in '' $ac_executable_extensions; do
33720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33721    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33723    break 2
33724  fi
33725done
33726  done
33727IFS=$as_save_IFS
33728
33729  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33730  ;;
33731esac
33732fi
33733EditorDelegate=$ac_cv_path_EditorDelegate
33734if test -n "$EditorDelegate"; then
33735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33736$as_echo "$EditorDelegate" >&6; }
33737else
33738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33739$as_echo "no" >&6; }
33740fi
33741
33742
33743# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33744set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33746$as_echo_n "checking for $ac_word... " >&6; }
33747if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33748  $as_echo_n "(cached) " >&6
33749else
33750  case $GVCDecodeDelegate in
33751  [\\/]* | ?:[\\/]*)
33752  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33753  ;;
33754  *)
33755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756for as_dir in $PATH
33757do
33758  IFS=$as_save_IFS
33759  test -z "$as_dir" && as_dir=.
33760    for ac_exec_ext in '' $ac_executable_extensions; do
33761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33762    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33764    break 2
33765  fi
33766done
33767  done
33768IFS=$as_save_IFS
33769
33770  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33771  ;;
33772esac
33773fi
33774GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33775if test -n "$GVCDecodeDelegate"; then
33776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33777$as_echo "$GVCDecodeDelegate" >&6; }
33778else
33779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33780$as_echo "no" >&6; }
33781fi
33782
33783
33784# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33785set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
33786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33787$as_echo_n "checking for $ac_word... " >&6; }
33788if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
33789  $as_echo_n "(cached) " >&6
33790else
33791  case $HPGLDecodeDelegate in
33792  [\\/]* | ?:[\\/]*)
33793  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33794  ;;
33795  *)
33796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33797for as_dir in $PATH
33798do
33799  IFS=$as_save_IFS
33800  test -z "$as_dir" && as_dir=.
33801    for ac_exec_ext in '' $ac_executable_extensions; do
33802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33803    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33805    break 2
33806  fi
33807done
33808  done
33809IFS=$as_save_IFS
33810
33811  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33812  ;;
33813esac
33814fi
33815HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33816if test -n "$HPGLDecodeDelegate"; then
33817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
33818$as_echo "$HPGLDecodeDelegate" >&6; }
33819else
33820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33821$as_echo "no" >&6; }
33822fi
33823
33824
33825# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33826set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
33827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33828$as_echo_n "checking for $ac_word... " >&6; }
33829if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
33830  $as_echo_n "(cached) " >&6
33831else
33832  case $HTMLDecodeDelegate in
33833  [\\/]* | ?:[\\/]*)
33834  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33835  ;;
33836  *)
33837  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840  IFS=$as_save_IFS
33841  test -z "$as_dir" && as_dir=.
33842    for ac_exec_ext in '' $ac_executable_extensions; do
33843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33844    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33846    break 2
33847  fi
33848done
33849  done
33850IFS=$as_save_IFS
33851
33852  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33853  ;;
33854esac
33855fi
33856HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33857if test -n "$HTMLDecodeDelegate"; then
33858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
33859$as_echo "$HTMLDecodeDelegate" >&6; }
33860else
33861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33862$as_echo "no" >&6; }
33863fi
33864
33865
33866# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33867set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
33868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33869$as_echo_n "checking for $ac_word... " >&6; }
33870if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
33871  $as_echo_n "(cached) " >&6
33872else
33873  case $ILBMDecodeDelegate in
33874  [\\/]* | ?:[\\/]*)
33875  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33876  ;;
33877  *)
33878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33879for as_dir in $PATH
33880do
33881  IFS=$as_save_IFS
33882  test -z "$as_dir" && as_dir=.
33883    for ac_exec_ext in '' $ac_executable_extensions; do
33884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33885    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33887    break 2
33888  fi
33889done
33890  done
33891IFS=$as_save_IFS
33892
33893  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33894  ;;
33895esac
33896fi
33897ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33898if test -n "$ILBMDecodeDelegate"; then
33899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
33900$as_echo "$ILBMDecodeDelegate" >&6; }
33901else
33902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33903$as_echo "no" >&6; }
33904fi
33905
33906
33907# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33908set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
33909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33910$as_echo_n "checking for $ac_word... " >&6; }
33911if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
33912  $as_echo_n "(cached) " >&6
33913else
33914  case $ILBMEncodeDelegate in
33915  [\\/]* | ?:[\\/]*)
33916  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33917  ;;
33918  *)
33919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922  IFS=$as_save_IFS
33923  test -z "$as_dir" && as_dir=.
33924    for ac_exec_ext in '' $ac_executable_extensions; do
33925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33926    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33928    break 2
33929  fi
33930done
33931  done
33932IFS=$as_save_IFS
33933
33934  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33935  ;;
33936esac
33937fi
33938ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33939if test -n "$ILBMEncodeDelegate"; then
33940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
33941$as_echo "$ILBMEncodeDelegate" >&6; }
33942else
33943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33944$as_echo "no" >&6; }
33945fi
33946
33947
33948# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33949set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33951$as_echo_n "checking for $ac_word... " >&6; }
33952if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33953  $as_echo_n "(cached) " >&6
33954else
33955  case $JXRDecodeDelegate in
33956  [\\/]* | ?:[\\/]*)
33957  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33958  ;;
33959  *)
33960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33961for as_dir in $PATH
33962do
33963  IFS=$as_save_IFS
33964  test -z "$as_dir" && as_dir=.
33965    for ac_exec_ext in '' $ac_executable_extensions; do
33966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33967    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33969    break 2
33970  fi
33971done
33972  done
33973IFS=$as_save_IFS
33974
33975  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33976  ;;
33977esac
33978fi
33979JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33980if test -n "$JXRDecodeDelegate"; then
33981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33982$as_echo "$JXRDecodeDelegate" >&6; }
33983else
33984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33985$as_echo "no" >&6; }
33986fi
33987
33988
33989# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33990set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33992$as_echo_n "checking for $ac_word... " >&6; }
33993if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33994  $as_echo_n "(cached) " >&6
33995else
33996  case $JXREncodeDelegate in
33997  [\\/]* | ?:[\\/]*)
33998  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33999  ;;
34000  *)
34001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002for as_dir in $PATH
34003do
34004  IFS=$as_save_IFS
34005  test -z "$as_dir" && as_dir=.
34006    for ac_exec_ext in '' $ac_executable_extensions; do
34007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34008    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34010    break 2
34011  fi
34012done
34013  done
34014IFS=$as_save_IFS
34015
34016  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34017  ;;
34018esac
34019fi
34020JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34021if test -n "$JXREncodeDelegate"; then
34022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34023$as_echo "$JXREncodeDelegate" >&6; }
34024else
34025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34026$as_echo "no" >&6; }
34027fi
34028
34029
34030# Extract the first word of ""$LEPDelegateDefault"", so it can be a program name with args.
34031set dummy "$LEPDelegateDefault"; ac_word=$2
34032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34033$as_echo_n "checking for $ac_word... " >&6; }
34034if ${ac_cv_path_LEPDelegate+:} false; then :
34035  $as_echo_n "(cached) " >&6
34036else
34037  case $LEPDelegate in
34038  [\\/]* | ?:[\\/]*)
34039  ac_cv_path_LEPDelegate="$LEPDelegate" # Let the user override the test with a path.
34040  ;;
34041  *)
34042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34043for as_dir in $PATH
34044do
34045  IFS=$as_save_IFS
34046  test -z "$as_dir" && as_dir=.
34047    for ac_exec_ext in '' $ac_executable_extensions; do
34048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34049    ac_cv_path_LEPDelegate="$as_dir/$ac_word$ac_exec_ext"
34050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34051    break 2
34052  fi
34053done
34054  done
34055IFS=$as_save_IFS
34056
34057  test -z "$ac_cv_path_LEPDelegate" && ac_cv_path_LEPDelegate=""$LEPDelegateDefault""
34058  ;;
34059esac
34060fi
34061LEPDelegate=$ac_cv_path_LEPDelegate
34062if test -n "$LEPDelegate"; then
34063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEPDelegate" >&5
34064$as_echo "$LEPDelegate" >&6; }
34065else
34066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34067$as_echo "no" >&6; }
34068fi
34069
34070
34071# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34072set dummy "$LPDelegateDefault"; ac_word=$2
34073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34074$as_echo_n "checking for $ac_word... " >&6; }
34075if ${ac_cv_path_LPDelegate+:} false; then :
34076  $as_echo_n "(cached) " >&6
34077else
34078  case $LPDelegate in
34079  [\\/]* | ?:[\\/]*)
34080  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34081  ;;
34082  *)
34083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34084for as_dir in $PATH
34085do
34086  IFS=$as_save_IFS
34087  test -z "$as_dir" && as_dir=.
34088    for ac_exec_ext in '' $ac_executable_extensions; do
34089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34090    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
34091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34092    break 2
34093  fi
34094done
34095  done
34096IFS=$as_save_IFS
34097
34098  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34099  ;;
34100esac
34101fi
34102LPDelegate=$ac_cv_path_LPDelegate
34103if test -n "$LPDelegate"; then
34104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
34105$as_echo "$LPDelegate" >&6; }
34106else
34107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34108$as_echo "no" >&6; }
34109fi
34110
34111
34112# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34113set dummy "$LPRDelegateDefault"; ac_word=$2
34114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34115$as_echo_n "checking for $ac_word... " >&6; }
34116if ${ac_cv_path_LPRDelegate+:} false; then :
34117  $as_echo_n "(cached) " >&6
34118else
34119  case $LPRDelegate in
34120  [\\/]* | ?:[\\/]*)
34121  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34122  ;;
34123  *)
34124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34125for as_dir in $PATH
34126do
34127  IFS=$as_save_IFS
34128  test -z "$as_dir" && as_dir=.
34129    for ac_exec_ext in '' $ac_executable_extensions; do
34130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34131    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
34132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34133    break 2
34134  fi
34135done
34136  done
34137IFS=$as_save_IFS
34138
34139  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34140  ;;
34141esac
34142fi
34143LPRDelegate=$ac_cv_path_LPRDelegate
34144if test -n "$LPRDelegate"; then
34145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
34146$as_echo "$LPRDelegate" >&6; }
34147else
34148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34149$as_echo "no" >&6; }
34150fi
34151
34152
34153# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34154set dummy "$LaunchDelegateDefault"; ac_word=$2
34155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34156$as_echo_n "checking for $ac_word... " >&6; }
34157if ${ac_cv_path_LaunchDelegate+:} false; then :
34158  $as_echo_n "(cached) " >&6
34159else
34160  case $LaunchDelegate in
34161  [\\/]* | ?:[\\/]*)
34162  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34163  ;;
34164  *)
34165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34166for as_dir in $PATH
34167do
34168  IFS=$as_save_IFS
34169  test -z "$as_dir" && as_dir=.
34170    for ac_exec_ext in '' $ac_executable_extensions; do
34171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34172    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
34173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34174    break 2
34175  fi
34176done
34177  done
34178IFS=$as_save_IFS
34179
34180  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34181  ;;
34182esac
34183fi
34184LaunchDelegate=$ac_cv_path_LaunchDelegate
34185if test -n "$LaunchDelegate"; then
34186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
34187$as_echo "$LaunchDelegate" >&6; }
34188else
34189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34190$as_echo "no" >&6; }
34191fi
34192
34193
34194# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34195set dummy "$MogrifyDelegateDefault"; ac_word=$2
34196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34197$as_echo_n "checking for $ac_word... " >&6; }
34198if ${ac_cv_path_MogrifyDelegate+:} false; then :
34199  $as_echo_n "(cached) " >&6
34200else
34201  case $MogrifyDelegate in
34202  [\\/]* | ?:[\\/]*)
34203  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34204  ;;
34205  *)
34206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34207for as_dir in $PATH
34208do
34209  IFS=$as_save_IFS
34210  test -z "$as_dir" && as_dir=.
34211    for ac_exec_ext in '' $ac_executable_extensions; do
34212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34213    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34215    break 2
34216  fi
34217done
34218  done
34219IFS=$as_save_IFS
34220
34221  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34222  ;;
34223esac
34224fi
34225MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34226if test -n "$MogrifyDelegate"; then
34227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34228$as_echo "$MogrifyDelegate" >&6; }
34229else
34230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34231$as_echo "no" >&6; }
34232fi
34233
34234
34235# Extract the first word of ""$VIDEODecodeDelegateDefault"", so it can be a program name with args.
34236set dummy "$VIDEODecodeDelegateDefault"; ac_word=$2
34237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34238$as_echo_n "checking for $ac_word... " >&6; }
34239if ${ac_cv_path_VIDEODecodeDelegate+:} false; then :
34240  $as_echo_n "(cached) " >&6
34241else
34242  case $VIDEODecodeDelegate in
34243  [\\/]* | ?:[\\/]*)
34244  ac_cv_path_VIDEODecodeDelegate="$VIDEODecodeDelegate" # Let the user override the test with a path.
34245  ;;
34246  *)
34247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34248for as_dir in $PATH
34249do
34250  IFS=$as_save_IFS
34251  test -z "$as_dir" && as_dir=.
34252    for ac_exec_ext in '' $ac_executable_extensions; do
34253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34254    ac_cv_path_VIDEODecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34256    break 2
34257  fi
34258done
34259  done
34260IFS=$as_save_IFS
34261
34262  test -z "$ac_cv_path_VIDEODecodeDelegate" && ac_cv_path_VIDEODecodeDelegate=""$VIDEODecodeDelegateDefault""
34263  ;;
34264esac
34265fi
34266VIDEODecodeDelegate=$ac_cv_path_VIDEODecodeDelegate
34267if test -n "$VIDEODecodeDelegate"; then
34268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIDEODecodeDelegate" >&5
34269$as_echo "$VIDEODecodeDelegate" >&6; }
34270else
34271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34272$as_echo "no" >&6; }
34273fi
34274
34275
34276# Extract the first word of ""$VIDEOEncodeDelegateDefault"", so it can be a program name with args.
34277set dummy "$VIDEOEncodeDelegateDefault"; ac_word=$2
34278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34279$as_echo_n "checking for $ac_word... " >&6; }
34280if ${ac_cv_path_VIDEOEncodeDelegate+:} false; then :
34281  $as_echo_n "(cached) " >&6
34282else
34283  case $VIDEOEncodeDelegate in
34284  [\\/]* | ?:[\\/]*)
34285  ac_cv_path_VIDEOEncodeDelegate="$VIDEOEncodeDelegate" # Let the user override the test with a path.
34286  ;;
34287  *)
34288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291  IFS=$as_save_IFS
34292  test -z "$as_dir" && as_dir=.
34293    for ac_exec_ext in '' $ac_executable_extensions; do
34294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34295    ac_cv_path_VIDEOEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34297    break 2
34298  fi
34299done
34300  done
34301IFS=$as_save_IFS
34302
34303  test -z "$ac_cv_path_VIDEOEncodeDelegate" && ac_cv_path_VIDEOEncodeDelegate=""$VIDEOEncodeDelegateDefault""
34304  ;;
34305esac
34306fi
34307VIDEOEncodeDelegate=$ac_cv_path_VIDEOEncodeDelegate
34308if test -n "$VIDEOEncodeDelegate"; then
34309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIDEOEncodeDelegate" >&5
34310$as_echo "$VIDEOEncodeDelegate" >&6; }
34311else
34312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34313$as_echo "no" >&6; }
34314fi
34315
34316
34317# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34318set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34320$as_echo_n "checking for $ac_word... " >&6; }
34321if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
34322  $as_echo_n "(cached) " >&6
34323else
34324  case $MrSIDDecodeDelegate in
34325  [\\/]* | ?:[\\/]*)
34326  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34327  ;;
34328  *)
34329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34330for as_dir in $PATH
34331do
34332  IFS=$as_save_IFS
34333  test -z "$as_dir" && as_dir=.
34334    for ac_exec_ext in '' $ac_executable_extensions; do
34335  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34336    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34337    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34338    break 2
34339  fi
34340done
34341  done
34342IFS=$as_save_IFS
34343
34344  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34345  ;;
34346esac
34347fi
34348MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34349if test -n "$MrSIDDecodeDelegate"; then
34350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34351$as_echo "$MrSIDDecodeDelegate" >&6; }
34352else
34353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34354$as_echo "no" >&6; }
34355fi
34356
34357
34358# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34359set dummy "$MVDelegateDefault"; ac_word=$2
34360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34361$as_echo_n "checking for $ac_word... " >&6; }
34362if ${ac_cv_path_MVDelegate+:} false; then :
34363  $as_echo_n "(cached) " >&6
34364else
34365  case $MVDelegate in
34366  [\\/]* | ?:[\\/]*)
34367  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34368  ;;
34369  *)
34370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34371for as_dir in $PATH
34372do
34373  IFS=$as_save_IFS
34374  test -z "$as_dir" && as_dir=.
34375    for ac_exec_ext in '' $ac_executable_extensions; do
34376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34377    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
34378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34379    break 2
34380  fi
34381done
34382  done
34383IFS=$as_save_IFS
34384
34385  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34386  ;;
34387esac
34388fi
34389MVDelegate=$ac_cv_path_MVDelegate
34390if test -n "$MVDelegate"; then
34391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
34392$as_echo "$MVDelegate" >&6; }
34393else
34394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34395$as_echo "no" >&6; }
34396fi
34397
34398
34399# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34400set dummy "$PCLDelegateDefault"; ac_word=$2
34401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34402$as_echo_n "checking for $ac_word... " >&6; }
34403if ${ac_cv_path_PCLDelegate+:} false; then :
34404  $as_echo_n "(cached) " >&6
34405else
34406  case $PCLDelegate in
34407  [\\/]* | ?:[\\/]*)
34408  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34409  ;;
34410  *)
34411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34412for as_dir in $PATH
34413do
34414  IFS=$as_save_IFS
34415  test -z "$as_dir" && as_dir=.
34416    for ac_exec_ext in '' $ac_executable_extensions; do
34417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34418    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
34419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34420    break 2
34421  fi
34422done
34423  done
34424IFS=$as_save_IFS
34425
34426  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34427  ;;
34428esac
34429fi
34430PCLDelegate=$ac_cv_path_PCLDelegate
34431if test -n "$PCLDelegate"; then
34432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
34433$as_echo "$PCLDelegate" >&6; }
34434else
34435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34436$as_echo "no" >&6; }
34437fi
34438
34439
34440for ac_prog in gsx gsc "$PSDelegateDefault"
34441do
34442  # Extract the first word of "$ac_prog", so it can be a program name with args.
34443set dummy $ac_prog; ac_word=$2
34444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34445$as_echo_n "checking for $ac_word... " >&6; }
34446if ${ac_cv_path_PSDelegate+:} false; then :
34447  $as_echo_n "(cached) " >&6
34448else
34449  case $PSDelegate in
34450  [\\/]* | ?:[\\/]*)
34451  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34452  ;;
34453  *)
34454  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34455for as_dir in $PATH
34456do
34457  IFS=$as_save_IFS
34458  test -z "$as_dir" && as_dir=.
34459    for ac_exec_ext in '' $ac_executable_extensions; do
34460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34461    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
34462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34463    break 2
34464  fi
34465done
34466  done
34467IFS=$as_save_IFS
34468
34469  ;;
34470esac
34471fi
34472PSDelegate=$ac_cv_path_PSDelegate
34473if test -n "$PSDelegate"; then
34474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
34475$as_echo "$PSDelegate" >&6; }
34476else
34477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34478$as_echo "no" >&6; }
34479fi
34480
34481
34482  test -n "$PSDelegate" && break
34483done
34484test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34485
34486# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34487set dummy "$RMDelegateDefault"; ac_word=$2
34488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34489$as_echo_n "checking for $ac_word... " >&6; }
34490if ${ac_cv_path_RMDelegate+:} false; then :
34491  $as_echo_n "(cached) " >&6
34492else
34493  case $RMDelegate in
34494  [\\/]* | ?:[\\/]*)
34495  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34496  ;;
34497  *)
34498  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501  IFS=$as_save_IFS
34502  test -z "$as_dir" && as_dir=.
34503    for ac_exec_ext in '' $ac_executable_extensions; do
34504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34505    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
34506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34507    break 2
34508  fi
34509done
34510  done
34511IFS=$as_save_IFS
34512
34513  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34514  ;;
34515esac
34516fi
34517RMDelegate=$ac_cv_path_RMDelegate
34518if test -n "$RMDelegate"; then
34519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
34520$as_echo "$RMDelegate" >&6; }
34521else
34522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34523$as_echo "no" >&6; }
34524fi
34525
34526
34527# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34528set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34530$as_echo_n "checking for $ac_word... " >&6; }
34531if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
34532  $as_echo_n "(cached) " >&6
34533else
34534  case $RSVGDecodeDelegate in
34535  [\\/]* | ?:[\\/]*)
34536  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34537  ;;
34538  *)
34539  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34540for as_dir in $PATH
34541do
34542  IFS=$as_save_IFS
34543  test -z "$as_dir" && as_dir=.
34544    for ac_exec_ext in '' $ac_executable_extensions; do
34545  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34546    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34548    break 2
34549  fi
34550done
34551  done
34552IFS=$as_save_IFS
34553
34554  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34555  ;;
34556esac
34557fi
34558RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34559if test -n "$RSVGDecodeDelegate"; then
34560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34561$as_echo "$RSVGDecodeDelegate" >&6; }
34562else
34563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34564$as_echo "no" >&6; }
34565fi
34566
34567
34568# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34569set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34571$as_echo_n "checking for $ac_word... " >&6; }
34572if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34573  $as_echo_n "(cached) " >&6
34574else
34575  case $SVGDecodeDelegate in
34576  [\\/]* | ?:[\\/]*)
34577  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34578  ;;
34579  *)
34580  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34581for as_dir in $PATH
34582do
34583  IFS=$as_save_IFS
34584  test -z "$as_dir" && as_dir=.
34585    for ac_exec_ext in '' $ac_executable_extensions; do
34586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34587    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34589    break 2
34590  fi
34591done
34592  done
34593IFS=$as_save_IFS
34594
34595  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34596  ;;
34597esac
34598fi
34599SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34600if test -n "$SVGDecodeDelegate"; then
34601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34602$as_echo "$SVGDecodeDelegate" >&6; }
34603else
34604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605$as_echo "no" >&6; }
34606fi
34607
34608
34609# Extract the first word of ""$TextEncodeDelegateDefault"", so it can be a program name with args.
34610set dummy "$TextEncodeDelegateDefault"; ac_word=$2
34611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34612$as_echo_n "checking for $ac_word... " >&6; }
34613if ${ac_cv_path_TextEncodeDelegate+:} false; then :
34614  $as_echo_n "(cached) " >&6
34615else
34616  case $TextEncodeDelegate in
34617  [\\/]* | ?:[\\/]*)
34618  ac_cv_path_TextEncodeDelegate="$TextEncodeDelegate" # Let the user override the test with a path.
34619  ;;
34620  *)
34621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34622for as_dir in $PATH
34623do
34624  IFS=$as_save_IFS
34625  test -z "$as_dir" && as_dir=.
34626    for ac_exec_ext in '' $ac_executable_extensions; do
34627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34628    ac_cv_path_TextEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34630    break 2
34631  fi
34632done
34633  done
34634IFS=$as_save_IFS
34635
34636  test -z "$ac_cv_path_TextEncodeDelegate" && ac_cv_path_TextEncodeDelegate=""$TextEncodeDelegateDefault""
34637  ;;
34638esac
34639fi
34640TextEncodeDelegate=$ac_cv_path_TextEncodeDelegate
34641if test -n "$TextEncodeDelegate"; then
34642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TextEncodeDelegate" >&5
34643$as_echo "$TextEncodeDelegate" >&6; }
34644else
34645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34646$as_echo "no" >&6; }
34647fi
34648
34649
34650# Extract the first word of ""$TraceEncodeDelegateDefault"", so it can be a program name with args.
34651set dummy "$TraceEncodeDelegateDefault"; ac_word=$2
34652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34653$as_echo_n "checking for $ac_word... " >&6; }
34654if ${ac_cv_path_TraceEncodeDelegate+:} false; then :
34655  $as_echo_n "(cached) " >&6
34656else
34657  case $TraceEncodeDelegate in
34658  [\\/]* | ?:[\\/]*)
34659  ac_cv_path_TraceEncodeDelegate="$TraceEncodeDelegate" # Let the user override the test with a path.
34660  ;;
34661  *)
34662  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34663for as_dir in $PATH
34664do
34665  IFS=$as_save_IFS
34666  test -z "$as_dir" && as_dir=.
34667    for ac_exec_ext in '' $ac_executable_extensions; do
34668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34669    ac_cv_path_TraceEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34671    break 2
34672  fi
34673done
34674  done
34675IFS=$as_save_IFS
34676
34677  test -z "$ac_cv_path_TraceEncodeDelegate" && ac_cv_path_TraceEncodeDelegate=""$TraceEncodeDelegateDefault""
34678  ;;
34679esac
34680fi
34681TraceEncodeDelegate=$ac_cv_path_TraceEncodeDelegate
34682if test -n "$TraceEncodeDelegate"; then
34683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TraceEncodeDelegate" >&5
34684$as_echo "$TraceEncodeDelegate" >&6; }
34685else
34686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34687$as_echo "no" >&6; }
34688fi
34689
34690
34691# Extract the first word of ""$Fig2devDelegateDefault"", so it can be a program name with args.
34692set dummy "$Fig2devDelegateDefault"; ac_word=$2
34693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34694$as_echo_n "checking for $ac_word... " >&6; }
34695if ${ac_cv_path_Fig2devDelegate+:} false; then :
34696  $as_echo_n "(cached) " >&6
34697else
34698  case $Fig2devDelegate in
34699  [\\/]* | ?:[\\/]*)
34700  ac_cv_path_Fig2devDelegate="$Fig2devDelegate" # Let the user override the test with a path.
34701  ;;
34702  *)
34703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34704for as_dir in $PATH
34705do
34706  IFS=$as_save_IFS
34707  test -z "$as_dir" && as_dir=.
34708    for ac_exec_ext in '' $ac_executable_extensions; do
34709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34710    ac_cv_path_Fig2devDelegate="$as_dir/$ac_word$ac_exec_ext"
34711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34712    break 2
34713  fi
34714done
34715  done
34716IFS=$as_save_IFS
34717
34718  test -z "$ac_cv_path_Fig2devDelegate" && ac_cv_path_Fig2devDelegate=""$Fig2devDelegateDefault""
34719  ;;
34720esac
34721fi
34722Fig2devDelegate=$ac_cv_path_Fig2devDelegate
34723if test -n "$Fig2devDelegate"; then
34724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $Fig2devDelegate" >&5
34725$as_echo "$Fig2devDelegate" >&6; }
34726else
34727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34728$as_echo "no" >&6; }
34729fi
34730
34731
34732# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34733set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34735$as_echo_n "checking for $ac_word... " >&6; }
34736if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34737  $as_echo_n "(cached) " >&6
34738else
34739  case $WebPDecodeDelegate in
34740  [\\/]* | ?:[\\/]*)
34741  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34742  ;;
34743  *)
34744  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34745for as_dir in $PATH
34746do
34747  IFS=$as_save_IFS
34748  test -z "$as_dir" && as_dir=.
34749    for ac_exec_ext in '' $ac_executable_extensions; do
34750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34751    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34753    break 2
34754  fi
34755done
34756  done
34757IFS=$as_save_IFS
34758
34759  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34760  ;;
34761esac
34762fi
34763WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34764if test -n "$WebPDecodeDelegate"; then
34765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34766$as_echo "$WebPDecodeDelegate" >&6; }
34767else
34768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34769$as_echo "no" >&6; }
34770fi
34771
34772
34773# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34774set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34776$as_echo_n "checking for $ac_word... " >&6; }
34777if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34778  $as_echo_n "(cached) " >&6
34779else
34780  case $WebPEncodeDelegate in
34781  [\\/]* | ?:[\\/]*)
34782  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34783  ;;
34784  *)
34785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34786for as_dir in $PATH
34787do
34788  IFS=$as_save_IFS
34789  test -z "$as_dir" && as_dir=.
34790    for ac_exec_ext in '' $ac_executable_extensions; do
34791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34792    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34794    break 2
34795  fi
34796done
34797  done
34798IFS=$as_save_IFS
34799
34800  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34801  ;;
34802esac
34803fi
34804WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34805if test -n "$WebPEncodeDelegate"; then
34806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34807$as_echo "$WebPEncodeDelegate" >&6; }
34808else
34809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34810$as_echo "no" >&6; }
34811fi
34812
34813
34814# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34815set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
34816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34817$as_echo_n "checking for $ac_word... " >&6; }
34818if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
34819  $as_echo_n "(cached) " >&6
34820else
34821  case $WWWDecodeDelegate in
34822  [\\/]* | ?:[\\/]*)
34823  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34824  ;;
34825  *)
34826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34827for as_dir in $PATH
34828do
34829  IFS=$as_save_IFS
34830  test -z "$as_dir" && as_dir=.
34831    for ac_exec_ext in '' $ac_executable_extensions; do
34832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34833    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34835    break 2
34836  fi
34837done
34838  done
34839IFS=$as_save_IFS
34840
34841  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
34842  ;;
34843esac
34844fi
34845WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34846if test -n "$WWWDecodeDelegate"; then
34847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
34848$as_echo "$WWWDecodeDelegate" >&6; }
34849else
34850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34851$as_echo "no" >&6; }
34852fi
34853
34854
34855# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34856set dummy "$XPSDelegateDefault"; ac_word=$2
34857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34858$as_echo_n "checking for $ac_word... " >&6; }
34859if ${ac_cv_path_XPSDelegate+:} false; then :
34860  $as_echo_n "(cached) " >&6
34861else
34862  case $XPSDelegate in
34863  [\\/]* | ?:[\\/]*)
34864  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34865  ;;
34866  *)
34867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34868for as_dir in $PATH
34869do
34870  IFS=$as_save_IFS
34871  test -z "$as_dir" && as_dir=.
34872    for ac_exec_ext in '' $ac_executable_extensions; do
34873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34874    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
34875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34876    break 2
34877  fi
34878done
34879  done
34880IFS=$as_save_IFS
34881
34882  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34883  ;;
34884esac
34885fi
34886XPSDelegate=$ac_cv_path_XPSDelegate
34887if test -n "$XPSDelegate"; then
34888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
34889$as_echo "$XPSDelegate" >&6; }
34890else
34891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34892$as_echo "no" >&6; }
34893fi
34894
34895
34896
34897# Prefer lpr to lp; lp needs options tacked on.
34898if test "$LPRDelegate" != no; then
34899    PrintDelegate="$LPRDelegate"
34900else
34901    PrintDelegate="$LPDelegate -c -s"
34902fi
34903
34904
34905# Installed ImageMagick utiltity paths
34906ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34907DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34908MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34909
34910# Set delegate booleans
34911have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34912have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34913have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
34914have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
34915have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34916have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
34917have_video='no'; if test "$VIDEODecodeDelegate" != "$VIDEODecodeDelegateDefault" ; then have_video='yes'; fi
34918have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34919
34920#
34921# Test for font directories
34922#
34923type_include_files=''
34924
34925# Apple fonts.
34926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
34927$as_echo_n "checking for Apple fonts directory... " >&6; }
34928apple_font_dir=''
34929if test "${with_apple_font_dir}" != 'default'; then
34930  apple_font_dir="${with_apple_font_dir}/"
34931else
34932  for font_dir in '/Library/Fonts/'; do
34933    if test -f "${font_dir}Arial.ttf"; then
34934      apple_font_dir="${font_dir}"
34935      break 1
34936    fi
34937  done
34938fi
34939if test "${apple_font_dir}x" != 'x'; then
34940  type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
34941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
34942$as_echo "$apple_font_dir" >&6; }
34943else
34944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34945$as_echo "not found!" >&6; };
34946fi
34947
34948
34949# Dejavu fonts.
34950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34951$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34952dejavu_font_dir=''
34953if test "${with_dejavu_font_dir}" != 'default'; then
34954  dejavu_font_dir="${with_dejavu_font_dir}/"
34955else
34956  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34957    if test -f "${font_dir}DejaVuSerif.ttf"; then
34958      dejavu_font_dir="${font_dir}"
34959      break 1
34960    fi
34961  done
34962fi
34963if test "${dejavu_font_dir}x" != 'x'; then
34964  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
34965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
34966$as_echo "$dejavu_font_dir" >&6; }
34967else
34968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
34969$as_echo "not found!" >&6; };
34970fi
34971
34972
34973# Ghostscript
34974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34975$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34976ghostscript_font_dir=''
34977if test "${with_gs_font_dir}" != 'default'; then
34978  ghostscript_font_dir="${with_gs_font_dir}/"
34979else
34980  if test "${native_win32_build}" = 'yes'; then
34981    # Native Windows Build
34982    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34983      if test -f "${font_dir}a010013l.pfb"; then
34984        ghostscript_font_dir="$font_dir"
34985        break 1
34986      fi
34987    done
34988    if test "${PSDelegate}" != 'gswin32c'; then
34989      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34990    fi
34991  else
34992    # Linux / Mac OS X / Unix Build
34993    for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
34994      if test -f "${font_dir}a010013l.pfb"; then
34995        ghostscript_font_dir="${font_dir}"
34996        break 1
34997      fi
34998    done
34999    if test "${ghostscript_font_dir}x" = 'x'; then
35000      if test "$PSDelegate" != 'gs'; then
35001        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35002      fi
35003    fi
35004  fi
35005fi
35006if test "${ghostscript_font_dir}x" != 'x'; then
35007  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
35008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35009$as_echo "$ghostscript_font_dir" >&6; }
35010else
35011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35012$as_echo "not found!" >&6; };
35013fi
35014
35015case "${build_os}" in
35016  mingw* )
35017    PSDelegate=`$WinPathScript "$PSDelegate" 1`
35018    ;;
35019esac
35020
35021# URW-base35 fonts.
35022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for URW-base35 fonts directory" >&5
35023$as_echo_n "checking for URW-base35 fonts directory... " >&6; }
35024urw_base35_font_dir=''
35025if test "${with_urw_base35_font_dir}" != 'default'; then
35026  urw_base35_font_dir="${with_urw_base35_font_dir}/"
35027fi
35028if test "${urw_base35_font_dir}x" != 'x'; then
35029  type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />'
35030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $urw_base35_font_dir" >&5
35031$as_echo "$urw_base35_font_dir" >&6; }
35032else
35033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35034$as_echo "not found!" >&6; };
35035fi
35036
35037
35038# Windows fonts.
35039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35040$as_echo_n "checking for Windows fonts directory... " >&6; }
35041windows_font_dir=''
35042if test "${with_windows_font_dir}" != 'default'; then
35043  windows_font_dir="${with_windows_font_dir}/"
35044else
35045  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do
35046    if test -f "${font_dir}arial.ttf"; then
35047      windows_font_dir="${font_dir}"
35048      break 1
35049    fi
35050  done
35051fi
35052if test "${windows_font_dir}x" != 'x'; then
35053  type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35055$as_echo "$windows_font_dir" >&6; }
35056else
35057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35058$as_echo "not found!" >&6; };
35059fi
35060
35061
35062
35063
35064#
35065# Handle case where user doesn't want frozen paths
35066#
35067if test "$with_frozenpaths" != 'yes'; then
35068  # Re-set delegate definitions to default (no paths)
35069  BPGDecodeDelegate="$BPGDecodeDelegateDefault"
35070  BPGEncodeDelegate="$BPGEncodeDelegateDefault"
35071  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35072  BrowseDelegate="$BrowseDelegateDefault"
35073  ConvertDelegate="$ConvertDelegateDefault"
35074  DisplayDelegate="$DisplayDelegateDefault"
35075  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
35076  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
35077  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35078  EditorDelegate="$EditorDelegateDefault"
35079  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
35080  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35081  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35082  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35083  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
35084  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35085  JXREncodeDelegate="$JXREncodeDelegateDefault"
35086  LEPDelegate="$LEPDelegateDefault"
35087  LPDelegate="$LPDelegateDefault"
35088  LaunchDelegate="$LaunchDelegateDefault"
35089  MogrifyDelegate="$MogrifyDelegateDefault"
35090  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35091  PCLDelegate="$PCLDelegateDefault"
35092  PSDelegate="$PSDelegateDefault"
35093  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
35094  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
35095  ShowImageDelegate="$ShowImageDelegateDefault"
35096  TextEncodeDelegate="$TextEncodeDelegateDefault"
35097  TraceEncodeDelegate="$TraceEncodeDelegateDefault"
35098  Fig2devDelegate="$Fig2devDelegateDefault"
35099  VIDEODecodeDelegate="$VIDEODecodeDelegateDefault"
35100  VIDEOEncodeDelegate="$VIDEOEncodeDelegateDefault"
35101  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35102  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
35103  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35104  XPSDelegate="$XPSDelegateDefault"
35105fi
35106
35107# Delegate substitutions
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140#
35141# RPM support.
35142#
35143RPM=''
35144for ac_prog in gnutar gtar tar
35145do
35146  # Extract the first word of "$ac_prog", so it can be a program name with args.
35147set dummy $ac_prog; ac_word=$2
35148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35149$as_echo_n "checking for $ac_word... " >&6; }
35150if ${ac_cv_prog_TAR+:} false; then :
35151  $as_echo_n "(cached) " >&6
35152else
35153  if test -n "$TAR"; then
35154  ac_cv_prog_TAR="$TAR" # Let the user override the test.
35155else
35156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35157for as_dir in $PATH
35158do
35159  IFS=$as_save_IFS
35160  test -z "$as_dir" && as_dir=.
35161    for ac_exec_ext in '' $ac_executable_extensions; do
35162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35163    ac_cv_prog_TAR="$ac_prog"
35164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35165    break 2
35166  fi
35167done
35168  done
35169IFS=$as_save_IFS
35170
35171fi
35172fi
35173TAR=$ac_cv_prog_TAR
35174if test -n "$TAR"; then
35175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
35176$as_echo "$TAR" >&6; }
35177else
35178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35179$as_echo "no" >&6; }
35180fi
35181
35182
35183  test -n "$TAR" && break
35184done
35185
35186for ac_prog in perl
35187do
35188  # Extract the first word of "$ac_prog", so it can be a program name with args.
35189set dummy $ac_prog; ac_word=$2
35190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35191$as_echo_n "checking for $ac_word... " >&6; }
35192if ${ac_cv_prog_PERL+:} false; then :
35193  $as_echo_n "(cached) " >&6
35194else
35195  if test -n "$PERL"; then
35196  ac_cv_prog_PERL="$PERL" # Let the user override the test.
35197else
35198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35199for as_dir in $PATH
35200do
35201  IFS=$as_save_IFS
35202  test -z "$as_dir" && as_dir=.
35203    for ac_exec_ext in '' $ac_executable_extensions; do
35204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35205    ac_cv_prog_PERL="$ac_prog"
35206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35207    break 2
35208  fi
35209done
35210  done
35211IFS=$as_save_IFS
35212
35213fi
35214fi
35215PERL=$ac_cv_prog_PERL
35216if test -n "$PERL"; then
35217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35218$as_echo "$PERL" >&6; }
35219else
35220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35221$as_echo "no" >&6; }
35222fi
35223
35224
35225  test -n "$PERL" && break
35226done
35227
35228for ac_prog in rpmbuild rpm
35229do
35230  # Extract the first word of "$ac_prog", so it can be a program name with args.
35231set dummy $ac_prog; ac_word=$2
35232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35233$as_echo_n "checking for $ac_word... " >&6; }
35234if ${ac_cv_prog_RPM+:} false; then :
35235  $as_echo_n "(cached) " >&6
35236else
35237  if test -n "$RPM"; then
35238  ac_cv_prog_RPM="$RPM" # Let the user override the test.
35239else
35240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35241for as_dir in $PATH
35242do
35243  IFS=$as_save_IFS
35244  test -z "$as_dir" && as_dir=.
35245    for ac_exec_ext in '' $ac_executable_extensions; do
35246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35247    ac_cv_prog_RPM="$ac_prog"
35248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35249    break 2
35250  fi
35251done
35252  done
35253IFS=$as_save_IFS
35254
35255fi
35256fi
35257RPM=$ac_cv_prog_RPM
35258if test -n "$RPM"; then
35259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
35260$as_echo "$RPM" >&6; }
35261else
35262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35263$as_echo "no" >&6; }
35264fi
35265
35266
35267  test -n "$RPM" && break
35268done
35269
35270
35271ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35272
35273
35274AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35275
35276
35277AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35278
35279
35280AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35281
35282
35283 if test "x$RPM" != "x"; then
35284  RPM_DELEGATE_TRUE=
35285  RPM_DELEGATE_FALSE='#'
35286else
35287  RPM_DELEGATE_TRUE='#'
35288  RPM_DELEGATE_FALSE=
35289fi
35290
35291
35292#
35293# 7ZIP support (http://p7zip.sourceforge.net/)
35294#
35295P7ZIP=''
35296for ac_prog in 7za
35297do
35298  # Extract the first word of "$ac_prog", so it can be a program name with args.
35299set dummy $ac_prog; ac_word=$2
35300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35301$as_echo_n "checking for $ac_word... " >&6; }
35302if ${ac_cv_prog_P7ZIP+:} false; then :
35303  $as_echo_n "(cached) " >&6
35304else
35305  if test -n "$P7ZIP"; then
35306  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35307else
35308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35309for as_dir in $PATH
35310do
35311  IFS=$as_save_IFS
35312  test -z "$as_dir" && as_dir=.
35313    for ac_exec_ext in '' $ac_executable_extensions; do
35314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35315    ac_cv_prog_P7ZIP="$ac_prog"
35316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35317    break 2
35318  fi
35319done
35320  done
35321IFS=$as_save_IFS
35322
35323fi
35324fi
35325P7ZIP=$ac_cv_prog_P7ZIP
35326if test -n "$P7ZIP"; then
35327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
35328$as_echo "$P7ZIP" >&6; }
35329else
35330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35331$as_echo "no" >&6; }
35332fi
35333
35334
35335  test -n "$P7ZIP" && break
35336done
35337
35338
35339 if test "x$P7ZIP" != "x"; then
35340  P7ZIP_DELEGATE_TRUE=
35341  P7ZIP_DELEGATE_FALSE='#'
35342else
35343  P7ZIP_DELEGATE_TRUE='#'
35344  P7ZIP_DELEGATE_FALSE=
35345fi
35346
35347
35348#
35349# ZIP support (http://www.info-zip.org/Zip.html)
35350#
35351ZIP=''
35352for ac_prog in zip
35353do
35354  # Extract the first word of "$ac_prog", so it can be a program name with args.
35355set dummy $ac_prog; ac_word=$2
35356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35357$as_echo_n "checking for $ac_word... " >&6; }
35358if ${ac_cv_prog_ZIP+:} false; then :
35359  $as_echo_n "(cached) " >&6
35360else
35361  if test -n "$ZIP"; then
35362  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35363else
35364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35365for as_dir in $PATH
35366do
35367  IFS=$as_save_IFS
35368  test -z "$as_dir" && as_dir=.
35369    for ac_exec_ext in '' $ac_executable_extensions; do
35370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35371    ac_cv_prog_ZIP="$ac_prog"
35372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35373    break 2
35374  fi
35375done
35376  done
35377IFS=$as_save_IFS
35378
35379fi
35380fi
35381ZIP=$ac_cv_prog_ZIP
35382if test -n "$ZIP"; then
35383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
35384$as_echo "$ZIP" >&6; }
35385else
35386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35387$as_echo "no" >&6; }
35388fi
35389
35390
35391  test -n "$ZIP" && break
35392done
35393
35394
35395 if test "x$ZIP" != "x"; then
35396  ZIP_DELEGATE_TRUE=
35397  ZIP_DELEGATE_FALSE='#'
35398else
35399  ZIP_DELEGATE_TRUE='#'
35400  ZIP_DELEGATE_FALSE=
35401fi
35402
35403
35404#
35405# GhostPCL related configuration.
35406#
35407PCLColorDevice=ppmraw
35408PCLCMYKDevice=pamcmyk32
35409PCLMonoDevice=pbmraw
35410if test -z "$PCLVersion"; then
35411    PCLVersion='unknown'
35412fi
35413if test $have_pcl = 'yes'; then
35414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35415$as_echo "-------------------------------------------------------------" >&6; }
35416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
35417$as_echo_n "checking for PCL... " >&6; }
35418    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35419$as_echo "" >&6; }
35420    # PCLColorDevice
35421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
35422$as_echo_n "checking for pcl color device... " >&6; }
35423    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35424        :
35425    else
35426        PCLColorDevice=ppmraw
35427    fi
35428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35429$as_echo "$PCLColorDevice" >&6; }
35430
35431    # PCLCMYKDevice
35432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
35433$as_echo_n "checking for pcl CMYK device... " >&6; }
35434    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35435        :
35436    else
35437        PCLCMYKDevice=$PCLColorDevice
35438    fi
35439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35440$as_echo "$PCLCMYKDevice" >&6; }
35441
35442    # PCLMonoDevice
35443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
35444$as_echo_n "checking for pcl mono device... " >&6; }
35445    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35446        :
35447    else
35448        PCLMonoDevice=$PCLColorDevice
35449    fi
35450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35451$as_echo "$PCLMonoDevice" >&6; }
35452fi
35453
35454
35455
35456
35457
35458
35459#
35460# GhostXPS related configuration.
35461#
35462XPSColorDevice=ppmraw
35463XPSCMYKDevice=bmpsep8
35464XPSMonoDevice=pbmraw
35465if test -z "$XPSVersion"; then
35466    XPSVersion='unknown'
35467fi
35468if test $have_xps = 'yes'; then
35469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35470$as_echo "-------------------------------------------------------------" >&6; }
35471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
35472$as_echo_n "checking for XPS... " >&6; }
35473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35474$as_echo "" >&6; }
35475    # XPSColorDevice
35476    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
35477$as_echo_n "checking for xps color device... " >&6; }
35478    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35479        :
35480    else
35481        XPSColorDevice=ppmraw
35482    fi
35483    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35484$as_echo "$XPSColorDevice" >&6; }
35485
35486    # XPSCMYKDevice
35487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
35488$as_echo_n "checking for xps CMYK device... " >&6; }
35489    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35490        :
35491    else
35492        XPSCMYKDevice=$XPSColorDevice
35493    fi
35494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35495$as_echo "$XPSCMYKDevice" >&6; }
35496
35497    # XPSMonoDevice
35498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
35499$as_echo_n "checking for xps mono device... " >&6; }
35500    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35501        :
35502    else
35503        XPSMonoDevice=$XPSColorDevice
35504    fi
35505    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35506$as_echo "$XPSMonoDevice" >&6; }
35507fi
35508
35509
35510
35511
35512
35513
35514#
35515# Ghostscript related configuration.
35516#
35517GSAlphaDevice=pngalpha
35518GSColorDevice=png16m
35519GSCMYKDevice=pamcmyk32
35520GSMonoDevice=pbmraw
35521GSPDFDevice=pdfwrite
35522GSPSDevice=ps2write
35523GSEPSDevice=eps2write
35524GSVersion='unknown'
35525if test $have_gs = 'yes'; then
35526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35527$as_echo "-------------------------------------------------------------" >&6; }
35528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
35529$as_echo_n "checking for Ghostscript... " >&6; }
35530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35531$as_echo "" >&6; }
35532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
35533$as_echo_n "checking for Ghostscript version... " >&6; }
35534    if GSVersion=`$PSDelegate --version`; then
35535        :
35536    else
35537        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35538    fi
35539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35540$as_echo "$GSVersion" >&6; }
35541
35542    # GSColorDevice
35543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
35544$as_echo_n "checking for gs color device... " >&6; }
35545    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35546        :
35547    else
35548        GSColorDevice=ppmraw
35549    fi
35550    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35551$as_echo "$GSColorDevice" >&6; }
35552
35553    # GSAlphaDevice
35554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35555$as_echo_n "checking for gs alpha device... " >&6; }
35556    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35557        :
35558    else
35559        GSAlphaDevice=$GSColorDevice
35560    fi
35561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35562$as_echo "$GSAlphaDevice" >&6; }
35563
35564    # GSCMYKDevice
35565    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
35566$as_echo_n "checking for gs CMYK device... " >&6; }
35567    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35568        :
35569    else
35570        GSCMYKDevice=pam
35571    fi
35572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35573$as_echo "$GSCMYKDevice" >&6; }
35574
35575    # GSMonoDevice
35576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
35577$as_echo_n "checking for gs mono device... " >&6; }
35578    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35579        :
35580    else
35581        GSMonoDevice=$GSColorDevice
35582    fi
35583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35584$as_echo "$GSMonoDevice" >&6; }
35585
35586    # GSPDFDevice
35587    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
35588$as_echo_n "checking for gs PDF writing device... " >&6; }
35589    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35590        :
35591    else
35592        GSPDFDevice=nodevice
35593    fi
35594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
35595$as_echo "$GSPDFDevice" >&6; }
35596
35597    # GSPSDevice
35598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
35599$as_echo_n "checking for gs PS writing device... " >&6; }
35600    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35601        :
35602    else
35603        GSPSDevice=pswrite
35604    fi
35605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35606$as_echo "$GSPSDevice" >&6; }
35607
35608    # GSEPSDevice
35609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
35610$as_echo_n "checking for gs EPS writing device... " >&6; }
35611    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35612        :
35613    else
35614        GSEPSDevice=epswrite
35615    fi
35616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35617$as_echo "$GSEPSDevice" >&6; }
35618fi
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629#
35630# PerlMagick-related configuration
35631#
35632
35633# Look for PERL if PerlMagick requested
35634# If name/path of desired PERL interpreter is specified, look for that one first
35635have_perl='no'
35636if test "$with_perl" != 'no'; then
35637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35638$as_echo "-------------------------------------------------------------" >&6; }
35639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
35640$as_echo_n "checking for Perl... " >&6; }
35641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35642$as_echo "" >&6; }
35643    if test "$with_perl" != 'yes'; then
35644        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
35645$as_echo_n "checking for perl... " >&6; }
35646if ${ac_cv_path_PERL+:} false; then :
35647  $as_echo_n "(cached) " >&6
35648else
35649  ac_cv_path_PERL="$with_perl"
35650fi
35651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
35652$as_echo "$ac_cv_path_PERL" >&6; };
35653        PERL=$ac_cv_path_PERL
35654                have_perl="$ac_cv_path_PERL"
35655    else
35656        for ac_prog in perl perl5
35657do
35658  # Extract the first word of "$ac_prog", so it can be a program name with args.
35659set dummy $ac_prog; ac_word=$2
35660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35661$as_echo_n "checking for $ac_word... " >&6; }
35662if ${ac_cv_path_PERL+:} false; then :
35663  $as_echo_n "(cached) " >&6
35664else
35665  case $PERL in
35666  [\\/]* | ?:[\\/]*)
35667  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35668  ;;
35669  *)
35670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35671for as_dir in $PATH
35672do
35673  IFS=$as_save_IFS
35674  test -z "$as_dir" && as_dir=.
35675    for ac_exec_ext in '' $ac_executable_extensions; do
35676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35677    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
35678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35679    break 2
35680  fi
35681done
35682  done
35683IFS=$as_save_IFS
35684
35685  ;;
35686esac
35687fi
35688PERL=$ac_cv_path_PERL
35689if test -n "$PERL"; then
35690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
35691$as_echo "$PERL" >&6; }
35692else
35693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35694$as_echo "no" >&6; }
35695fi
35696
35697
35698  test -n "$PERL" && break
35699done
35700        if test "$ac_cv_path_PERL"; then
35701            have_perl="$ac_cv_path_PERL"
35702        fi
35703    fi
35704fi
35705
35706if test "$with_perl" != 'yes' ; then
35707    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35708fi
35709
35710PERL_SUPPORTS_DESTDIR='no'
35711
35712with_perl_static='no'
35713with_perl_dynamic='no'
35714if test "$have_perl" != 'no'; then
35715    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35716        with_perl_static='yes'
35717    fi
35718    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35719        with_perl_dynamic='yes'
35720    fi
35721    # Is PERL's MakeMaker new enough to support DESTDIR?
35722
35723
35724
35725
35726    if test -n "$PERL"; then :
35727
35728        ax_perl_version="5.8.1"
35729
35730        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35731$as_echo_n "checking for perl version... " >&6; }
35732
35733        perl_version=`$PERL --version 2>&1 \
35734          | $SED -n -e '/This is perl/b inspect
35735b
35736: inspect
35737s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
35738
35739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35740$as_echo "$perl_version" >&6; }
35741
35742	PERL_VERSION=$perl_version
35743
35744
35745
35746
35747
35748  # Used to indicate true or false condition
35749  ax_compare_version=false
35750
35751  # Convert the two version strings to be compared into a format that
35752  # allows a simple string comparison.  The end result is that a version
35753  # string of the form 1.12.5-r617 will be converted to the form
35754  # 0001001200050617.  In other words, each number is zero padded to four
35755  # digits, and non digits are removed.
35756
35757  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35758                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35759                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35760                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35761                     -e 's/[^0-9]//g'`
35762
35763
35764  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35765                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35766                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35767                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35768                     -e 's/[^0-9]//g'`
35769
35770
35771    ax_compare_version=`echo "x$ax_compare_version_A
35772x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35773
35774
35775
35776    if test "$ax_compare_version" = "true" ; then
35777
35778	    :
35779            PERL_SUPPORTS_DESTDIR='yes'
35780
35781    else
35782	    :
35783            PERL_SUPPORTS_DESTDIR='no'
35784
35785  fi
35786
35787
35788else
35789
35790        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35791$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35792        PERL_SUPPORTS_DESTDIR='no'
35793
35794fi
35795
35796fi
35797 if test "$have_perl" != 'no'; then
35798  WITH_PERL_TRUE=
35799  WITH_PERL_FALSE='#'
35800else
35801  WITH_PERL_TRUE='#'
35802  WITH_PERL_FALSE=
35803fi
35804
35805 if test $with_perl_static = 'yes'; then
35806  WITH_PERL_STATIC_TRUE=
35807  WITH_PERL_STATIC_FALSE='#'
35808else
35809  WITH_PERL_STATIC_TRUE='#'
35810  WITH_PERL_STATIC_FALSE=
35811fi
35812
35813 if test $with_perl_dynamic = 'yes'; then
35814  WITH_PERL_DYNAMIC_TRUE=
35815  WITH_PERL_DYNAMIC_FALSE='#'
35816else
35817  WITH_PERL_DYNAMIC_TRUE='#'
35818  WITH_PERL_DYNAMIC_FALSE=
35819fi
35820
35821
35822
35823# Determine path to pick up MagickCore library from for use with building PerlMagick
35824MAGICKCORE_PATH="${LIB_DIR}"
35825if test $with_perl_static = 'yes'; then
35826    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35827    libtool_objdir=$objdir
35828
35829    # Linker search path to library, followed by -lMagickCore
35830    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
35831fi
35832
35833
35834# Create a simple string containing format names for all delegate libraries.
35835MAGICK_DELEGATES=''
35836if test "$have_autotrace"  = 'yes' ; then
35837   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
35838fi
35839if test "$have_bzlib"  = 'yes' ; then
35840   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
35841fi
35842if test "$have_dps"    = 'yes' ; then
35843   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
35844fi
35845if test "$have_djvu"    = 'yes' ; then
35846   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
35847fi
35848if test "$have_fftw"    = 'yes' ; then
35849   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
35850fi
35851if test "$have_flif"    = 'yes' ; then
35852   MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
35853fi
35854if test "$have_fpx"    = 'yes' ; then
35855   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
35856fi
35857if test "$have_fontconfig"    = 'yes' ; then
35858   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
35859fi
35860if test "$have_freetype"    = 'yes' ; then
35861   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
35862fi
35863if test "$have_gslib"    = 'yes' ; then
35864   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
35865fi
35866if test "$have_heic"    = 'yes' ; then
35867   MAGICK_DELEGATES="$MAGICK_DELEGATES heic"
35868fi
35869if test "$have_jbig"    = 'yes' ; then
35870   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
35871fi
35872if test "$have_png$have_jpeg" = 'yesyes' ; then
35873   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
35874fi
35875if test "$have_jpeg"   = 'yes' ; then
35876   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
35877fi
35878if test "$have_jxl"   = 'yes' ; then
35879   MAGICK_DELEGATES="$MAGICK_DELEGATES jxl"
35880fi
35881if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
35882   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
35883fi
35884if test "$have_lqr"    = 'yes' ; then
35885   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
35886fi
35887if test "$have_lzma"    = 'yes' ; then
35888   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
35889fi
35890if test "$have_openexr"    = 'yes' ; then
35891   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
35892fi
35893if test "$have_openjp2"    = 'yes' ; then
35894   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
35895fi
35896if test "$have_pango"    = 'yes' ; then
35897   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
35898fi
35899if test "$have_png"    = 'yes' ; then
35900   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
35901fi
35902have_ps='no'
35903if test "$have_dps"    = 'yes' || \
35904   test "$have_gs" = 'yes' || \
35905   test "${native_win32_build}" = 'yes' ; then
35906   have_ps='yes'
35907fi
35908if test "$have_ps"     = 'yes' ; then
35909   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
35910fi
35911if test "$have_raqm"    = 'yes' ; then
35912   MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
35913fi
35914if test "$have_raw"    = 'yes' ; then
35915   MAGICK_DELEGATES="$MAGICK_DELEGATES raw"
35916fi
35917if test "$have_ra_ppm" = 'yes' ; then
35918   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
35919fi
35920if test "$have_rsvg"   = 'yes' ; then
35921   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
35922fi
35923if test "$have_tiff"   = 'yes' ; then
35924   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
35925fi
35926if test "$have_ttf"    = 'yes' ; then
35927   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
35928fi
35929if test "$have_video"   = 'yes' ; then
35930   MAGICK_DELEGATES="$MAGICK_DELEGATES video"
35931fi
35932if test "$have_webp"    = 'yes' ; then
35933   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
35934fi
35935if test "$have_wmf"    = 'yes' ; then
35936   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
35937fi
35938if test "$have_x"      = 'yes' ; then
35939   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
35940fi
35941if test "$have_xml"      = 'yes' ; then
35942   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
35943fi
35944if test "$have_zip"   = 'yes' ; then
35945   MAGICK_DELEGATES="$MAGICK_DELEGATES zip"
35946fi
35947if test "$have_zlib"   = 'yes' ; then
35948   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
35949fi
35950if test "$have_zstd"   = 'yes' ; then
35951   MAGICK_DELEGATES="$MAGICK_DELEGATES zstd"
35952fi
35953
35954# Remove extraneous spaces from output variables (asthetic)
35955MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
35956MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
35957
35958
35959
35960#
35961# Handle special compiler flags
35962#
35963
35964# Add '-p' if prof source profiling support enabled
35965if test "$enable_prof" = 'yes'; then
35966    CFLAGS="-p $CFLAGS"
35967    CXXFLAGS="-p $CXXFLAGS"
35968    LDFLAGS="-p $LDFLAGS"
35969fi
35970
35971# Add '-pg' if gprof source profiling support enabled
35972if test "$enable_gprof" = 'yes'; then
35973    CFLAGS="-pg $CFLAGS"
35974    CXXFLAGS="-pg $CXXFLAGS"
35975    LDFLAGS="-pg $LDFLAGS"
35976fi
35977
35978# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35979# This is a gcc-specific feature
35980if test "$enable_gcov" = 'yes'; then
35981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
35982$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
35983if ${ac_cv_lib_gcov__gcov_init+:} false; then :
35984  $as_echo_n "(cached) " >&6
35985else
35986  ac_check_lib_save_LIBS=$LIBS
35987LIBS="-lgcov  $LIBS"
35988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35989/* end confdefs.h.  */
35990
35991/* Override any GCC internal prototype to avoid an error.
35992   Use char because int might match the return type of a GCC
35993   builtin and then its argument prototype would still apply.  */
35994#ifdef __cplusplus
35995extern "C"
35996#endif
35997char _gcov_init ();
35998int
35999main ()
36000{
36001return _gcov_init ();
36002  ;
36003  return 0;
36004}
36005_ACEOF
36006if ac_fn_c_try_link "$LINENO"; then :
36007  ac_cv_lib_gcov__gcov_init=yes
36008else
36009  ac_cv_lib_gcov__gcov_init=no
36010fi
36011rm -f core conftest.err conftest.$ac_objext \
36012    conftest$ac_exeext conftest.$ac_ext
36013LIBS=$ac_check_lib_save_LIBS
36014fi
36015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
36016$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
36017if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
36018  cat >>confdefs.h <<_ACEOF
36019#define HAVE_LIBGCOV 1
36020_ACEOF
36021
36022  LIBS="-lgcov $LIBS"
36023
36024fi
36025
36026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
36027$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
36028if ${ac_cv_lib_gcov___gcov_init+:} false; then :
36029  $as_echo_n "(cached) " >&6
36030else
36031  ac_check_lib_save_LIBS=$LIBS
36032LIBS="-lgcov  $LIBS"
36033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36034/* end confdefs.h.  */
36035
36036/* Override any GCC internal prototype to avoid an error.
36037   Use char because int might match the return type of a GCC
36038   builtin and then its argument prototype would still apply.  */
36039#ifdef __cplusplus
36040extern "C"
36041#endif
36042char __gcov_init ();
36043int
36044main ()
36045{
36046return __gcov_init ();
36047  ;
36048  return 0;
36049}
36050_ACEOF
36051if ac_fn_c_try_link "$LINENO"; then :
36052  ac_cv_lib_gcov___gcov_init=yes
36053else
36054  ac_cv_lib_gcov___gcov_init=no
36055fi
36056rm -f core conftest.err conftest.$ac_objext \
36057    conftest$ac_exeext conftest.$ac_ext
36058LIBS=$ac_check_lib_save_LIBS
36059fi
36060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
36061$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
36062if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
36063  cat >>confdefs.h <<_ACEOF
36064#define HAVE_LIBGCOV 1
36065_ACEOF
36066
36067  LIBS="-lgcov $LIBS"
36068
36069fi
36070
36071    case "$target_os" in
36072        darwin*)
36073            OSX_GCOV_LDFLAG="-Wl,-single_module"
36074        ;;
36075        *)
36076            OSX_GCOV_LDFLAG=""
36077        ;;
36078    esac
36079
36080    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
36081    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
36082    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36083fi
36084
36085#
36086# Build library dependency list for libMagickCore
36087#
36088
36089if test "$build_modules" != 'no'; then
36090    MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $XML_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $ZIP_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS"
36091else
36092    MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $JXL_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $HEIF_LIBS $WEBPMUX_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RAW_R_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $ZIP_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS $TCMALLOC_LIBS"
36093fi
36094MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS"
36095
36096
36097
36098# Pass only user-provided LIBS as "global" libraries
36099LIBS=$USER_LIBS
36100
36101#AC_SUBST([CPPFLAGS])
36102
36103#AC_SUBST([LDFLAGS])
36104#AC_SUBST([X_PRE_LIBS])
36105#AC_SUBST([X_LIBS])
36106#AC_SUBST([X_EXTRA_LIBS])
36107
36108MAGICK_CFLAGS=$CFLAGS
36109MAGICK_CXXFLAGS="$CXXFLAGS"
36110MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
36111MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
36112MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
36113MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
36114
36115
36116
36117
36118
36119
36120
36121
36122# Set configured scripts to executable.
36123ac_config_commands="$ac_config_commands default"
36124
36125ac_config_commands="$ac_config_commands magick.sh.in"
36126
36127ac_config_commands="$ac_config_commands MagickCore-config.in"
36128
36129ac_config_commands="$ac_config_commands MagickWand-config.in"
36130
36131ac_config_commands="$ac_config_commands Magick++-config.in"
36132
36133ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36134
36135
36136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36137$as_echo "-------------------------------------------------------------" >&6; }
36138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36139$as_echo "Update ImageMagick configuration" >&6; }
36140
36141rm -f magick-version
36142
36143result_dejavu_font_dir='none'
36144if test "${dejavu_font_dir}x" != 'x'; then
36145    result_dejavu_font_dir=$dejavu_font_dir
36146fi
36147
36148result_ghostscript_font_dir='none'
36149if test "${ghostscript_font_dir}x" != 'x'; then
36150    result_ghostscript_font_dir=$ghostscript_font_dir
36151fi
36152
36153result_urw_base35_font_dir='none'
36154if test "${urw_base35_font_dir}x" != 'x'; then
36155    result_urw_base35_font_dir=$urw_base35_font_dir
36156fi
36157
36158result_windows_font_dir='none'
36159if test "${windows_font_dir}x" != 'x'; then
36160    result_windows_font_dir=${windows_font_dir}
36161fi
36162
36163# ==============================================================================
36164# Generate build environment
36165# ==============================================================================
36166ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-urw-base35.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36167
36168cat >confcache <<\_ACEOF
36169# This file is a shell script that caches the results of configure
36170# tests run on this system so they can be shared between configure
36171# scripts and configure runs, see configure's option --config-cache.
36172# It is not useful on other systems.  If it contains results you don't
36173# want to keep, you may remove or edit it.
36174#
36175# config.status only pays attention to the cache file if you give it
36176# the --recheck option to rerun configure.
36177#
36178# `ac_cv_env_foo' variables (set or unset) will be overridden when
36179# loading this file, other *unset* `ac_cv_foo' will be assigned the
36180# following values.
36181
36182_ACEOF
36183
36184# The following way of writing the cache mishandles newlines in values,
36185# but we know of no workaround that is simple, portable, and efficient.
36186# So, we kill variables containing newlines.
36187# Ultrix sh set writes to stderr and can't be redirected directly,
36188# and sets the high bit in the cache file unless we assign to the vars.
36189(
36190  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36191    eval ac_val=\$$ac_var
36192    case $ac_val in #(
36193    *${as_nl}*)
36194      case $ac_var in #(
36195      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36196$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36197      esac
36198      case $ac_var in #(
36199      _ | IFS | as_nl) ;; #(
36200      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36201      *) { eval $ac_var=; unset $ac_var;} ;;
36202      esac ;;
36203    esac
36204  done
36205
36206  (set) 2>&1 |
36207    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36208    *${as_nl}ac_space=\ *)
36209      # `set' does not quote correctly, so add quotes: double-quote
36210      # substitution turns \\\\ into \\, and sed turns \\ into \.
36211      sed -n \
36212	"s/'/'\\\\''/g;
36213	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36214      ;; #(
36215    *)
36216      # `set' quotes correctly as required by POSIX, so do not add quotes.
36217      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36218      ;;
36219    esac |
36220    sort
36221) |
36222  sed '
36223     /^ac_cv_env_/b end
36224     t clear
36225     :clear
36226     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36227     t end
36228     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36229     :end' >>confcache
36230if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36231  if test -w "$cache_file"; then
36232    if test "x$cache_file" != "x/dev/null"; then
36233      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36234$as_echo "$as_me: updating cache $cache_file" >&6;}
36235      if test ! -f "$cache_file" || test -h "$cache_file"; then
36236	cat confcache >"$cache_file"
36237      else
36238        case $cache_file in #(
36239        */* | ?:*)
36240	  mv -f confcache "$cache_file"$$ &&
36241	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36242        *)
36243	  mv -f confcache "$cache_file" ;;
36244	esac
36245      fi
36246    fi
36247  else
36248    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36249$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36250  fi
36251fi
36252rm -f confcache
36253
36254test "x$prefix" = xNONE && prefix=$ac_default_prefix
36255# Let make expand exec_prefix.
36256test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36257
36258DEFS=-DHAVE_CONFIG_H
36259
36260ac_libobjs=
36261ac_ltlibobjs=
36262U=
36263for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36264  # 1. Remove the extension, and $U if already installed.
36265  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36266  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36267  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36268  #    will be set to the directory where LIBOBJS objects are built.
36269  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36270  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36271done
36272LIBOBJS=$ac_libobjs
36273
36274LTLIBOBJS=$ac_ltlibobjs
36275
36276
36277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36278$as_echo_n "checking that generated files are newer than configure... " >&6; }
36279   if test -n "$am_sleep_pid"; then
36280     # Hide warnings about reused PIDs.
36281     wait $am_sleep_pid 2>/dev/null
36282   fi
36283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36284$as_echo "done" >&6; }
36285 if test -n "$EXEEXT"; then
36286  am__EXEEXT_TRUE=
36287  am__EXEEXT_FALSE='#'
36288else
36289  am__EXEEXT_TRUE='#'
36290  am__EXEEXT_FALSE=
36291fi
36292
36293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36294$as_echo_n "checking that generated files are newer than configure... " >&6; }
36295   if test -n "$am_sleep_pid"; then
36296     # Hide warnings about reused PIDs.
36297     wait $am_sleep_pid 2>/dev/null
36298   fi
36299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36300$as_echo "done" >&6; }
36301if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36302  as_fn_error $? "conditional \"AMDEP\" was never defined.
36303Usually this means the macro was only invoked conditionally." "$LINENO" 5
36304fi
36305if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36306  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36307Usually this means the macro was only invoked conditionally." "$LINENO" 5
36308fi
36309if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36310  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36311Usually this means the macro was only invoked conditionally." "$LINENO" 5
36312fi
36313if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36314  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36315Usually this means the macro was only invoked conditionally." "$LINENO" 5
36316fi
36317if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
36318  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
36319Usually this means the macro was only invoked conditionally." "$LINENO" 5
36320fi
36321if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
36322  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
36323Usually this means the macro was only invoked conditionally." "$LINENO" 5
36324fi
36325if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36326  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36327Usually this means the macro was only invoked conditionally." "$LINENO" 5
36328fi
36329if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
36330  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
36331Usually this means the macro was only invoked conditionally." "$LINENO" 5
36332fi
36333if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
36334  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
36335Usually this means the macro was only invoked conditionally." "$LINENO" 5
36336fi
36337if test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_TRUE}" && test -z "${MAGICKCORE_ZERO_CONFIGURATION_SUPPORT_FALSE}"; then
36338  as_fn_error $? "conditional \"MAGICKCORE_ZERO_CONFIGURATION_SUPPORT\" was never defined.
36339Usually this means the macro was only invoked conditionally." "$LINENO" 5
36340fi
36341if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36342  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36343Usually this means the macro was only invoked conditionally." "$LINENO" 5
36344fi
36345if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36346  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36347Usually this means the macro was only invoked conditionally." "$LINENO" 5
36348fi
36349if test -z "${WITH_UTILITIES_TRUE}" && test -z "${WITH_UTILITIES_FALSE}"; then
36350  as_fn_error $? "conditional \"WITH_UTILITIES\" was never defined.
36351Usually this means the macro was only invoked conditionally." "$LINENO" 5
36352fi
36353
36354if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36355  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36356Usually this means the macro was only invoked conditionally." "$LINENO" 5
36357fi
36358if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
36359  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
36360Usually this means the macro was only invoked conditionally." "$LINENO" 5
36361fi
36362if test -z "${HAVE_JEMALLOC_TRUE}" && test -z "${HAVE_JEMALLOC_FALSE}"; then
36363  as_fn_error $? "conditional \"HAVE_JEMALLOC\" was never defined.
36364Usually this means the macro was only invoked conditionally." "$LINENO" 5
36365fi
36366if test -z "${HAVE_TCMALLOC_TRUE}" && test -z "${HAVE_TCMALLOC_FALSE}"; then
36367  as_fn_error $? "conditional \"HAVE_TCMALLOC\" was never defined.
36368Usually this means the macro was only invoked conditionally." "$LINENO" 5
36369fi
36370if test -z "${HAVE_UMEM_TRUE}" && test -z "${HAVE_UMEM_FALSE}"; then
36371  as_fn_error $? "conditional \"HAVE_UMEM\" was never defined.
36372Usually this means the macro was only invoked conditionally." "$LINENO" 5
36373fi
36374if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
36375  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
36376Usually this means the macro was only invoked conditionally." "$LINENO" 5
36377fi
36378if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
36379  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
36380Usually this means the macro was only invoked conditionally." "$LINENO" 5
36381fi
36382if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36383  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36384Usually this means the macro was only invoked conditionally." "$LINENO" 5
36385fi
36386if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
36387  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
36388Usually this means the macro was only invoked conditionally." "$LINENO" 5
36389fi
36390if test -z "${ZSTD_DELEGATE_TRUE}" && test -z "${ZSTD_DELEGATE_FALSE}"; then
36391  as_fn_error $? "conditional \"ZSTD_DELEGATE\" was never defined.
36392Usually this means the macro was only invoked conditionally." "$LINENO" 5
36393fi
36394if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36395  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36396Usually this means the macro was only invoked conditionally." "$LINENO" 5
36397fi
36398if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
36399  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
36400Usually this means the macro was only invoked conditionally." "$LINENO" 5
36401fi
36402if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
36403  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
36404Usually this means the macro was only invoked conditionally." "$LINENO" 5
36405fi
36406if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
36407  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
36408Usually this means the macro was only invoked conditionally." "$LINENO" 5
36409fi
36410if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
36411  as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
36412Usually this means the macro was only invoked conditionally." "$LINENO" 5
36413fi
36414if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
36415  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
36416Usually this means the macro was only invoked conditionally." "$LINENO" 5
36417fi
36418if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36419  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36420Usually this means the macro was only invoked conditionally." "$LINENO" 5
36421fi
36422if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
36423  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
36424Usually this means the macro was only invoked conditionally." "$LINENO" 5
36425fi
36426if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
36427  as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
36428Usually this means the macro was only invoked conditionally." "$LINENO" 5
36429fi
36430if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
36431  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
36432Usually this means the macro was only invoked conditionally." "$LINENO" 5
36433fi
36434if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
36435  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
36436Usually this means the macro was only invoked conditionally." "$LINENO" 5
36437fi
36438if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
36439  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
36440Usually this means the macro was only invoked conditionally." "$LINENO" 5
36441fi
36442if test -z "${HEIC_DELEGATE_TRUE}" && test -z "${HEIC_DELEGATE_FALSE}"; then
36443  as_fn_error $? "conditional \"HEIC_DELEGATE\" was never defined.
36444Usually this means the macro was only invoked conditionally." "$LINENO" 5
36445fi
36446if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
36447  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
36448Usually this means the macro was only invoked conditionally." "$LINENO" 5
36449fi
36450if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
36451  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
36452Usually this means the macro was only invoked conditionally." "$LINENO" 5
36453fi
36454if test -z "${JXL_DELEGATE_TRUE}" && test -z "${JXL_DELEGATE_FALSE}"; then
36455  as_fn_error $? "conditional \"JXL_DELEGATE\" was never defined.
36456Usually this means the macro was only invoked conditionally." "$LINENO" 5
36457fi
36458if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
36459  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
36460Usually this means the macro was only invoked conditionally." "$LINENO" 5
36461fi
36462if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36463  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36464Usually this means the macro was only invoked conditionally." "$LINENO" 5
36465fi
36466if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
36467  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
36468Usually this means the macro was only invoked conditionally." "$LINENO" 5
36469fi
36470if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36471  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36472Usually this means the macro was only invoked conditionally." "$LINENO" 5
36473fi
36474if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
36475  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
36476Usually this means the macro was only invoked conditionally." "$LINENO" 5
36477fi
36478if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36479  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36480Usually this means the macro was only invoked conditionally." "$LINENO" 5
36481fi
36482if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36483  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
36484Usually this means the macro was only invoked conditionally." "$LINENO" 5
36485fi
36486if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
36487  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
36488Usually this means the macro was only invoked conditionally." "$LINENO" 5
36489fi
36490if test -z "${RAW_R_DELEGATE_TRUE}" && test -z "${RAW_R_DELEGATE_FALSE}"; then
36491  as_fn_error $? "conditional \"RAW_R_DELEGATE\" was never defined.
36492Usually this means the macro was only invoked conditionally." "$LINENO" 5
36493fi
36494if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
36495  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
36496Usually this means the macro was only invoked conditionally." "$LINENO" 5
36497fi
36498if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
36499  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
36500Usually this means the macro was only invoked conditionally." "$LINENO" 5
36501fi
36502if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
36503  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
36504Usually this means the macro was only invoked conditionally." "$LINENO" 5
36505fi
36506if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36507  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36508Usually this means the macro was only invoked conditionally." "$LINENO" 5
36509fi
36510if test -z "${WEBPMUX_DELEGATE_TRUE}" && test -z "${WEBPMUX_DELEGATE_FALSE}"; then
36511  as_fn_error $? "conditional \"WEBPMUX_DELEGATE\" was never defined.
36512Usually this means the macro was only invoked conditionally." "$LINENO" 5
36513fi
36514if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
36515  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
36516Usually this means the macro was only invoked conditionally." "$LINENO" 5
36517fi
36518if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
36519  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
36520Usually this means the macro was only invoked conditionally." "$LINENO" 5
36521fi
36522if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36523  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36524Usually this means the macro was only invoked conditionally." "$LINENO" 5
36525fi
36526if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
36527  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
36528Usually this means the macro was only invoked conditionally." "$LINENO" 5
36529fi
36530if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
36531  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
36532Usually this means the macro was only invoked conditionally." "$LINENO" 5
36533fi
36534if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
36535  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
36536Usually this means the macro was only invoked conditionally." "$LINENO" 5
36537fi
36538if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
36539  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
36540Usually this means the macro was only invoked conditionally." "$LINENO" 5
36541fi
36542if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
36543  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
36544Usually this means the macro was only invoked conditionally." "$LINENO" 5
36545fi
36546if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
36547  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
36548Usually this means the macro was only invoked conditionally." "$LINENO" 5
36549fi
36550
36551: "${CONFIG_STATUS=./config.status}"
36552ac_write_fail=0
36553ac_clean_files_save=$ac_clean_files
36554ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36555{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36556$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36557as_write_fail=0
36558cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36559#! $SHELL
36560# Generated by $as_me.
36561# Run this file to recreate the current configuration.
36562# Compiler output produced by configure, useful for debugging
36563# configure, is in config.log if it exists.
36564
36565debug=false
36566ac_cs_recheck=false
36567ac_cs_silent=false
36568
36569SHELL=\${CONFIG_SHELL-$SHELL}
36570export SHELL
36571_ASEOF
36572cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36573## -------------------- ##
36574## M4sh Initialization. ##
36575## -------------------- ##
36576
36577# Be more Bourne compatible
36578DUALCASE=1; export DUALCASE # for MKS sh
36579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
36580  emulate sh
36581  NULLCMD=:
36582  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36583  # is contrary to our usage.  Disable this feature.
36584  alias -g '${1+"$@"}'='"$@"'
36585  setopt NO_GLOB_SUBST
36586else
36587  case `(set -o) 2>/dev/null` in #(
36588  *posix*) :
36589    set -o posix ;; #(
36590  *) :
36591     ;;
36592esac
36593fi
36594
36595
36596as_nl='
36597'
36598export as_nl
36599# Printing a long string crashes Solaris 7 /usr/bin/printf.
36600as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36603# Prefer a ksh shell builtin over an external printf program on Solaris,
36604# but without wasting forks for bash or zsh.
36605if test -z "$BASH_VERSION$ZSH_VERSION" \
36606    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36607  as_echo='print -r --'
36608  as_echo_n='print -rn --'
36609elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36610  as_echo='printf %s\n'
36611  as_echo_n='printf %s'
36612else
36613  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36614    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36615    as_echo_n='/usr/ucb/echo -n'
36616  else
36617    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36618    as_echo_n_body='eval
36619      arg=$1;
36620      case $arg in #(
36621      *"$as_nl"*)
36622	expr "X$arg" : "X\\(.*\\)$as_nl";
36623	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36624      esac;
36625      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36626    '
36627    export as_echo_n_body
36628    as_echo_n='sh -c $as_echo_n_body as_echo'
36629  fi
36630  export as_echo_body
36631  as_echo='sh -c $as_echo_body as_echo'
36632fi
36633
36634# The user is always right.
36635if test "${PATH_SEPARATOR+set}" != set; then
36636  PATH_SEPARATOR=:
36637  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36638    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36639      PATH_SEPARATOR=';'
36640  }
36641fi
36642
36643
36644# IFS
36645# We need space, tab and new line, in precisely that order.  Quoting is
36646# there to prevent editors from complaining about space-tab.
36647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36648# splitting by setting IFS to empty value.)
36649IFS=" ""	$as_nl"
36650
36651# Find who we are.  Look in the path if we contain no directory separator.
36652as_myself=
36653case $0 in #((
36654  *[\\/]* ) as_myself=$0 ;;
36655  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36656for as_dir in $PATH
36657do
36658  IFS=$as_save_IFS
36659  test -z "$as_dir" && as_dir=.
36660    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36661  done
36662IFS=$as_save_IFS
36663
36664     ;;
36665esac
36666# We did not find ourselves, most probably we were run as `sh COMMAND'
36667# in which case we are not to be found in the path.
36668if test "x$as_myself" = x; then
36669  as_myself=$0
36670fi
36671if test ! -f "$as_myself"; then
36672  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36673  exit 1
36674fi
36675
36676# Unset variables that we do not need and which cause bugs (e.g. in
36677# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
36678# suppresses any "Segmentation fault" message there.  '((' could
36679# trigger a bug in pdksh 5.2.14.
36680for as_var in BASH_ENV ENV MAIL MAILPATH
36681do eval test x\${$as_var+set} = xset \
36682  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
36683done
36684PS1='$ '
36685PS2='> '
36686PS4='+ '
36687
36688# NLS nuisances.
36689LC_ALL=C
36690export LC_ALL
36691LANGUAGE=C
36692export LANGUAGE
36693
36694# CDPATH.
36695(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36696
36697
36698# as_fn_error STATUS ERROR [LINENO LOG_FD]
36699# ----------------------------------------
36700# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36701# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36702# script with STATUS, using 1 if that was 0.
36703as_fn_error ()
36704{
36705  as_status=$1; test $as_status -eq 0 && as_status=1
36706  if test "$4"; then
36707    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36708    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36709  fi
36710  $as_echo "$as_me: error: $2" >&2
36711  as_fn_exit $as_status
36712} # as_fn_error
36713
36714
36715# as_fn_set_status STATUS
36716# -----------------------
36717# Set $? to STATUS, without forking.
36718as_fn_set_status ()
36719{
36720  return $1
36721} # as_fn_set_status
36722
36723# as_fn_exit STATUS
36724# -----------------
36725# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36726as_fn_exit ()
36727{
36728  set +e
36729  as_fn_set_status $1
36730  exit $1
36731} # as_fn_exit
36732
36733# as_fn_unset VAR
36734# ---------------
36735# Portably unset VAR.
36736as_fn_unset ()
36737{
36738  { eval $1=; unset $1;}
36739}
36740as_unset=as_fn_unset
36741# as_fn_append VAR VALUE
36742# ----------------------
36743# Append the text in VALUE to the end of the definition contained in VAR. Take
36744# advantage of any shell optimizations that allow amortized linear growth over
36745# repeated appends, instead of the typical quadratic growth present in naive
36746# implementations.
36747if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36748  eval 'as_fn_append ()
36749  {
36750    eval $1+=\$2
36751  }'
36752else
36753  as_fn_append ()
36754  {
36755    eval $1=\$$1\$2
36756  }
36757fi # as_fn_append
36758
36759# as_fn_arith ARG...
36760# ------------------
36761# Perform arithmetic evaluation on the ARGs, and store the result in the
36762# global $as_val. Take advantage of shells that can avoid forks. The arguments
36763# must be portable across $(()) and expr.
36764if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36765  eval 'as_fn_arith ()
36766  {
36767    as_val=$(( $* ))
36768  }'
36769else
36770  as_fn_arith ()
36771  {
36772    as_val=`expr "$@" || test $? -eq 1`
36773  }
36774fi # as_fn_arith
36775
36776
36777if expr a : '\(a\)' >/dev/null 2>&1 &&
36778   test "X`expr 00001 : '.*\(...\)'`" = X001; then
36779  as_expr=expr
36780else
36781  as_expr=false
36782fi
36783
36784if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36785  as_basename=basename
36786else
36787  as_basename=false
36788fi
36789
36790if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36791  as_dirname=dirname
36792else
36793  as_dirname=false
36794fi
36795
36796as_me=`$as_basename -- "$0" ||
36797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36798	 X"$0" : 'X\(//\)$' \| \
36799	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36800$as_echo X/"$0" |
36801    sed '/^.*\/\([^/][^/]*\)\/*$/{
36802	    s//\1/
36803	    q
36804	  }
36805	  /^X\/\(\/\/\)$/{
36806	    s//\1/
36807	    q
36808	  }
36809	  /^X\/\(\/\).*/{
36810	    s//\1/
36811	    q
36812	  }
36813	  s/.*/./; q'`
36814
36815# Avoid depending upon Character Ranges.
36816as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36817as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36818as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36819as_cr_digits='0123456789'
36820as_cr_alnum=$as_cr_Letters$as_cr_digits
36821
36822ECHO_C= ECHO_N= ECHO_T=
36823case `echo -n x` in #(((((
36824-n*)
36825  case `echo 'xy\c'` in
36826  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
36827  xy)  ECHO_C='\c';;
36828  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
36829       ECHO_T='	';;
36830  esac;;
36831*)
36832  ECHO_N='-n';;
36833esac
36834
36835rm -f conf$$ conf$$.exe conf$$.file
36836if test -d conf$$.dir; then
36837  rm -f conf$$.dir/conf$$.file
36838else
36839  rm -f conf$$.dir
36840  mkdir conf$$.dir 2>/dev/null
36841fi
36842if (echo >conf$$.file) 2>/dev/null; then
36843  if ln -s conf$$.file conf$$ 2>/dev/null; then
36844    as_ln_s='ln -s'
36845    # ... but there are two gotchas:
36846    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36847    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36848    # In both cases, we have to default to `cp -pR'.
36849    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36850      as_ln_s='cp -pR'
36851  elif ln conf$$.file conf$$ 2>/dev/null; then
36852    as_ln_s=ln
36853  else
36854    as_ln_s='cp -pR'
36855  fi
36856else
36857  as_ln_s='cp -pR'
36858fi
36859rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36860rmdir conf$$.dir 2>/dev/null
36861
36862
36863# as_fn_mkdir_p
36864# -------------
36865# Create "$as_dir" as a directory, including parents if necessary.
36866as_fn_mkdir_p ()
36867{
36868
36869  case $as_dir in #(
36870  -*) as_dir=./$as_dir;;
36871  esac
36872  test -d "$as_dir" || eval $as_mkdir_p || {
36873    as_dirs=
36874    while :; do
36875      case $as_dir in #(
36876      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36877      *) as_qdir=$as_dir;;
36878      esac
36879      as_dirs="'$as_qdir' $as_dirs"
36880      as_dir=`$as_dirname -- "$as_dir" ||
36881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36882	 X"$as_dir" : 'X\(//\)[^/]' \| \
36883	 X"$as_dir" : 'X\(//\)$' \| \
36884	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36885$as_echo X"$as_dir" |
36886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36887	    s//\1/
36888	    q
36889	  }
36890	  /^X\(\/\/\)[^/].*/{
36891	    s//\1/
36892	    q
36893	  }
36894	  /^X\(\/\/\)$/{
36895	    s//\1/
36896	    q
36897	  }
36898	  /^X\(\/\).*/{
36899	    s//\1/
36900	    q
36901	  }
36902	  s/.*/./; q'`
36903      test -d "$as_dir" && break
36904    done
36905    test -z "$as_dirs" || eval "mkdir $as_dirs"
36906  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36907
36908
36909} # as_fn_mkdir_p
36910if mkdir -p . 2>/dev/null; then
36911  as_mkdir_p='mkdir -p "$as_dir"'
36912else
36913  test -d ./-p && rmdir ./-p
36914  as_mkdir_p=false
36915fi
36916
36917
36918# as_fn_executable_p FILE
36919# -----------------------
36920# Test if FILE is an executable regular file.
36921as_fn_executable_p ()
36922{
36923  test -f "$1" && test -x "$1"
36924} # as_fn_executable_p
36925as_test_x='test -x'
36926as_executable_p=as_fn_executable_p
36927
36928# Sed expression to map a string onto a valid CPP name.
36929as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36930
36931# Sed expression to map a string onto a valid variable name.
36932as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36933
36934
36935exec 6>&1
36936## ----------------------------------- ##
36937## Main body of $CONFIG_STATUS script. ##
36938## ----------------------------------- ##
36939_ASEOF
36940test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
36941
36942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36943# Save the log message, to keep $0 and so on meaningful, and to
36944# report actual input values of CONFIG_FILES etc. instead of their
36945# values after options handling.
36946ac_log="
36947This file was extended by ImageMagick $as_me 7.0.11-8, which was
36948generated by GNU Autoconf 2.69.  Invocation command line was
36949
36950  CONFIG_FILES    = $CONFIG_FILES
36951  CONFIG_HEADERS  = $CONFIG_HEADERS
36952  CONFIG_LINKS    = $CONFIG_LINKS
36953  CONFIG_COMMANDS = $CONFIG_COMMANDS
36954  $ $0 $@
36955
36956on `(hostname || uname -n) 2>/dev/null | sed 1q`
36957"
36958
36959_ACEOF
36960
36961case $ac_config_files in *"
36962"*) set x $ac_config_files; shift; ac_config_files=$*;;
36963esac
36964
36965case $ac_config_headers in *"
36966"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36967esac
36968
36969
36970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36971# Files that config.status was made for.
36972config_files="$ac_config_files"
36973config_headers="$ac_config_headers"
36974config_commands="$ac_config_commands"
36975
36976_ACEOF
36977
36978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36979ac_cs_usage="\
36980\`$as_me' instantiates files and other configuration actions
36981from templates according to the current configuration.  Unless the files
36982and actions are specified as TAGs, all are instantiated by default.
36983
36984Usage: $0 [OPTION]... [TAG]...
36985
36986  -h, --help       print this help, then exit
36987  -V, --version    print version number and configuration settings, then exit
36988      --config     print configuration, then exit
36989  -q, --quiet, --silent
36990                   do not print progress messages
36991  -d, --debug      don't remove temporary files
36992      --recheck    update $as_me by reconfiguring in the same conditions
36993      --file=FILE[:TEMPLATE]
36994                   instantiate the configuration file FILE
36995      --header=FILE[:TEMPLATE]
36996                   instantiate the configuration header FILE
36997
36998Configuration files:
36999$config_files
37000
37001Configuration headers:
37002$config_headers
37003
37004Configuration commands:
37005$config_commands
37006
37007Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
37008ImageMagick home page: <https://imagemagick.org>."
37009
37010_ACEOF
37011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37012ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37013ac_cs_version="\\
37014ImageMagick config.status 7.0.11-8
37015configured by $0, generated by GNU Autoconf 2.69,
37016  with options \\"\$ac_cs_config\\"
37017
37018Copyright (C) 2012 Free Software Foundation, Inc.
37019This config.status script is free software; the Free Software Foundation
37020gives unlimited permission to copy, distribute and modify it."
37021
37022ac_pwd='$ac_pwd'
37023srcdir='$srcdir'
37024INSTALL='$INSTALL'
37025MKDIR_P='$MKDIR_P'
37026AWK='$AWK'
37027test -n "\$AWK" || AWK=awk
37028_ACEOF
37029
37030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37031# The default lists apply if the user does not specify any file.
37032ac_need_defaults=:
37033while test $# != 0
37034do
37035  case $1 in
37036  --*=?*)
37037    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37038    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37039    ac_shift=:
37040    ;;
37041  --*=)
37042    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37043    ac_optarg=
37044    ac_shift=:
37045    ;;
37046  *)
37047    ac_option=$1
37048    ac_optarg=$2
37049    ac_shift=shift
37050    ;;
37051  esac
37052
37053  case $ac_option in
37054  # Handling of the options.
37055  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37056    ac_cs_recheck=: ;;
37057  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37058    $as_echo "$ac_cs_version"; exit ;;
37059  --config | --confi | --conf | --con | --co | --c )
37060    $as_echo "$ac_cs_config"; exit ;;
37061  --debug | --debu | --deb | --de | --d | -d )
37062    debug=: ;;
37063  --file | --fil | --fi | --f )
37064    $ac_shift
37065    case $ac_optarg in
37066    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37067    '') as_fn_error $? "missing file argument" ;;
37068    esac
37069    as_fn_append CONFIG_FILES " '$ac_optarg'"
37070    ac_need_defaults=false;;
37071  --header | --heade | --head | --hea )
37072    $ac_shift
37073    case $ac_optarg in
37074    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37075    esac
37076    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37077    ac_need_defaults=false;;
37078  --he | --h)
37079    # Conflict between --help and --header
37080    as_fn_error $? "ambiguous option: \`$1'
37081Try \`$0 --help' for more information.";;
37082  --help | --hel | -h )
37083    $as_echo "$ac_cs_usage"; exit ;;
37084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37085  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37086    ac_cs_silent=: ;;
37087
37088  # This is an error.
37089  -*) as_fn_error $? "unrecognized option: \`$1'
37090Try \`$0 --help' for more information." ;;
37091
37092  *) as_fn_append ac_config_targets " $1"
37093     ac_need_defaults=false ;;
37094
37095  esac
37096  shift
37097done
37098
37099ac_configure_extra_args=
37100
37101if $ac_cs_silent; then
37102  exec 6>/dev/null
37103  ac_configure_extra_args="$ac_configure_extra_args --silent"
37104fi
37105
37106_ACEOF
37107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37108if \$ac_cs_recheck; then
37109  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37110  shift
37111  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37112  CONFIG_SHELL='$SHELL'
37113  export CONFIG_SHELL
37114  exec "\$@"
37115fi
37116
37117_ACEOF
37118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37119exec 5>>config.log
37120{
37121  echo
37122  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37123## Running $as_me. ##
37124_ASBOX
37125  $as_echo "$ac_log"
37126} >&5
37127
37128_ACEOF
37129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37130#
37131# INIT-COMMANDS
37132#
37133PACKAGE="$PACKAGE"
37134AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
37135
37136
37137# The HP-UX ksh and POSIX shell print the target directory to stdout
37138# if CDPATH is set.
37139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37140
37141sed_quote_subst='$sed_quote_subst'
37142double_quote_subst='$double_quote_subst'
37143delay_variable_subst='$delay_variable_subst'
37144SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37145Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37146GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37147EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37148FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37149SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37150ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37151LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37152macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37153macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37154AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37155DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37156OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37157enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37158enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37159pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37160enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37161shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37162PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37163host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37164host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37165host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37166build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37167build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37168build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37169NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37170LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37171max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37172ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37173exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37174lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37175lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37176lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37177lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37178lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37179reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37180reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37181deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37182file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37183file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37184want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37185sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37186AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37187AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37188archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37189STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37190RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37191old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37192old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37193old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37194lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37195CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37196CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37197compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37198GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37199lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37200lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37201lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37202lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37203lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
37204lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37205nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37206lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37207lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37208objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37209MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37210lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37211lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37212lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37213lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37214lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37215need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37216MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37217DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37218NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37219LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37220OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37221OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37222libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37223shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37224extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37225archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37226enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37227export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37228whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37229compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37230old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37231old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37232archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37233archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37234module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37235module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37236with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37237allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37238no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37239hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37240hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37241hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37242hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37243hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37244hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37245hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37246inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37247link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37248always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37249export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37250exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37251include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37252prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37253postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37254file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37255variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37256need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37257need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37258version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37259runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37260shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37261shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37262libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37263library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37264soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37265install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37266postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37267postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37268finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37269finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37270hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37271sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37272configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37273configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37274hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37275enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37276enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37277enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37278old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37279striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37280compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37281predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37282postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37283predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37284postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37285compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37286LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37287reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37288reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37289old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37290compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37291GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37292lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37293lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37294lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37295lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37296lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37297archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37298enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37299export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37300whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37301compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37302old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37303old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37304archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37305archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37306module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37307module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37308with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37309allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37310no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37311hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37312hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37313hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37314hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37315hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37316hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37317hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37318inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37319link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37320always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37321export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37322exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37323include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37324prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37325postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37326file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37327hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37328compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37329predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37330postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37331predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37332postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37333compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37334
37335LTCC='$LTCC'
37336LTCFLAGS='$LTCFLAGS'
37337compiler='$compiler_DEFAULT'
37338
37339# A function that is used when there is no print builtin or printf.
37340func_fallback_echo ()
37341{
37342  eval 'cat <<_LTECHO_EOF
37343\$1
37344_LTECHO_EOF'
37345}
37346
37347# Quote evaled strings.
37348for var in SED \
37349GREP \
37350EGREP \
37351FGREP \
37352SHELL \
37353ECHO \
37354LD \
37355AS \
37356DLLTOOL \
37357OBJDUMP \
37358PATH_SEPARATOR \
37359NM \
37360LN_S \
37361lt_SP2NL \
37362lt_NL2SP \
37363reload_flag \
37364deplibs_check_method \
37365file_magic_cmd \
37366file_magic_glob \
37367want_nocaseglob \
37368sharedlib_from_linklib_cmd \
37369AR \
37370AR_FLAGS \
37371archiver_list_spec \
37372STRIP \
37373RANLIB \
37374CC \
37375CFLAGS \
37376compiler \
37377lt_cv_sys_global_symbol_pipe \
37378lt_cv_sys_global_symbol_to_cdecl \
37379lt_cv_sys_global_symbol_to_import \
37380lt_cv_sys_global_symbol_to_c_name_address \
37381lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37382lt_cv_nm_interface \
37383nm_file_list_spec \
37384lt_cv_truncate_bin \
37385lt_prog_compiler_no_builtin_flag \
37386lt_prog_compiler_pic \
37387lt_prog_compiler_wl \
37388lt_prog_compiler_static \
37389lt_cv_prog_compiler_c_o \
37390need_locks \
37391MANIFEST_TOOL \
37392DSYMUTIL \
37393NMEDIT \
37394LIPO \
37395OTOOL \
37396OTOOL64 \
37397shrext_cmds \
37398export_dynamic_flag_spec \
37399whole_archive_flag_spec \
37400compiler_needs_object \
37401with_gnu_ld \
37402allow_undefined_flag \
37403no_undefined_flag \
37404hardcode_libdir_flag_spec \
37405hardcode_libdir_separator \
37406exclude_expsyms \
37407include_expsyms \
37408file_list_spec \
37409variables_saved_for_relink \
37410libname_spec \
37411library_names_spec \
37412soname_spec \
37413install_override_mode \
37414finish_eval \
37415old_striplib \
37416striplib \
37417compiler_lib_search_dirs \
37418predep_objects \
37419postdep_objects \
37420predeps \
37421postdeps \
37422compiler_lib_search_path \
37423LD_CXX \
37424reload_flag_CXX \
37425compiler_CXX \
37426lt_prog_compiler_no_builtin_flag_CXX \
37427lt_prog_compiler_pic_CXX \
37428lt_prog_compiler_wl_CXX \
37429lt_prog_compiler_static_CXX \
37430lt_cv_prog_compiler_c_o_CXX \
37431export_dynamic_flag_spec_CXX \
37432whole_archive_flag_spec_CXX \
37433compiler_needs_object_CXX \
37434with_gnu_ld_CXX \
37435allow_undefined_flag_CXX \
37436no_undefined_flag_CXX \
37437hardcode_libdir_flag_spec_CXX \
37438hardcode_libdir_separator_CXX \
37439exclude_expsyms_CXX \
37440include_expsyms_CXX \
37441file_list_spec_CXX \
37442compiler_lib_search_dirs_CXX \
37443predep_objects_CXX \
37444postdep_objects_CXX \
37445predeps_CXX \
37446postdeps_CXX \
37447compiler_lib_search_path_CXX; do
37448    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37449    *[\\\\\\\`\\"\\\$]*)
37450      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37451      ;;
37452    *)
37453      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37454      ;;
37455    esac
37456done
37457
37458# Double-quote double-evaled strings.
37459for var in reload_cmds \
37460old_postinstall_cmds \
37461old_postuninstall_cmds \
37462old_archive_cmds \
37463extract_expsyms_cmds \
37464old_archive_from_new_cmds \
37465old_archive_from_expsyms_cmds \
37466archive_cmds \
37467archive_expsym_cmds \
37468module_cmds \
37469module_expsym_cmds \
37470export_symbols_cmds \
37471prelink_cmds \
37472postlink_cmds \
37473postinstall_cmds \
37474postuninstall_cmds \
37475finish_cmds \
37476sys_lib_search_path_spec \
37477configure_time_dlsearch_path \
37478configure_time_lt_sys_library_path \
37479reload_cmds_CXX \
37480old_archive_cmds_CXX \
37481old_archive_from_new_cmds_CXX \
37482old_archive_from_expsyms_cmds_CXX \
37483archive_cmds_CXX \
37484archive_expsym_cmds_CXX \
37485module_cmds_CXX \
37486module_expsym_cmds_CXX \
37487export_symbols_cmds_CXX \
37488prelink_cmds_CXX \
37489postlink_cmds_CXX; do
37490    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37491    *[\\\\\\\`\\"\\\$]*)
37492      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37493      ;;
37494    *)
37495      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37496      ;;
37497    esac
37498done
37499
37500ac_aux_dir='$ac_aux_dir'
37501
37502# See if we are running on zsh, and set the options that allow our
37503# commands through without removal of \ escapes INIT.
37504if test -n "\${ZSH_VERSION+set}"; then
37505   setopt NO_GLOB_SUBST
37506fi
37507
37508
37509    PACKAGE='$PACKAGE'
37510    VERSION='$VERSION'
37511    RM='$RM'
37512    ofile='$ofile'
37513
37514
37515
37516
37517
37518
37519_ACEOF
37520
37521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37522
37523# Handling of arguments.
37524for ac_config_target in $ac_config_targets
37525do
37526  case $ac_config_target in
37527    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
37528    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
37529    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37530    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37531    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37532    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37533    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37534    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37535    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37536    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37537    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
37538    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37539    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37540    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37541    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37542    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
37543    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
37544    "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
37545    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
37546    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37547    "config/type-urw-base35.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35.xml" ;;
37548    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37549    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37550    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37551    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
37552    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
37553    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
37554    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37555    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37556    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
37557    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37558    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37559    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37560    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
37561    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37562    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
37563    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37564    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37565    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37566    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
37567    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37568    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37569    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37570    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37571    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37572    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37573    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37574    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37575    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37576    "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
37577    "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
37578    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37579    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37580    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
37581    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37582    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
37583
37584  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37585  esac
37586done
37587
37588
37589# If the user did not use the arguments to specify the items to instantiate,
37590# then the envvar interface is used.  Set only those that are not.
37591# We use the long form for the default assignment because of an extremely
37592# bizarre bug on SunOS 4.1.3.
37593if $ac_need_defaults; then
37594  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37595  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37596  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37597fi
37598
37599# Have a temporary directory for convenience.  Make it in the build tree
37600# simply because there is no reason against having it here, and in addition,
37601# creating and moving files from /tmp can sometimes cause problems.
37602# Hook for its removal unless debugging.
37603# Note that there is a small window in which the directory will not be cleaned:
37604# after its creation but before its name has been assigned to `$tmp'.
37605$debug ||
37606{
37607  tmp= ac_tmp=
37608  trap 'exit_status=$?
37609  : "${ac_tmp:=$tmp}"
37610  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37611' 0
37612  trap 'as_fn_exit 1' 1 2 13 15
37613}
37614# Create a (secure) tmp directory for tmp files.
37615
37616{
37617  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37618  test -d "$tmp"
37619}  ||
37620{
37621  tmp=./conf$$-$RANDOM
37622  (umask 077 && mkdir "$tmp")
37623} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37624ac_tmp=$tmp
37625
37626# Set up the scripts for CONFIG_FILES section.
37627# No need to generate them if there are no CONFIG_FILES.
37628# This happens for instance with `./config.status config.h'.
37629if test -n "$CONFIG_FILES"; then
37630
37631
37632ac_cr=`echo X | tr X '\015'`
37633# On cygwin, bash can eat \r inside `` if the user requested igncr.
37634# But we know of no other shell where ac_cr would be empty at this
37635# point, so we can use a bashism as a fallback.
37636if test "x$ac_cr" = x; then
37637  eval ac_cr=\$\'\\r\'
37638fi
37639ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37640if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37641  ac_cs_awk_cr='\\r'
37642else
37643  ac_cs_awk_cr=$ac_cr
37644fi
37645
37646echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37647_ACEOF
37648
37649
37650{
37651  echo "cat >conf$$subs.awk <<_ACEOF" &&
37652  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37653  echo "_ACEOF"
37654} >conf$$subs.sh ||
37655  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37656ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37657ac_delim='%!_!# '
37658for ac_last_try in false false false false false :; do
37659  . ./conf$$subs.sh ||
37660    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37661
37662  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37663  if test $ac_delim_n = $ac_delim_num; then
37664    break
37665  elif $ac_last_try; then
37666    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37667  else
37668    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37669  fi
37670done
37671rm -f conf$$subs.sh
37672
37673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37674cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
37675_ACEOF
37676sed -n '
37677h
37678s/^/S["/; s/!.*/"]=/
37679p
37680g
37681s/^[^!]*!//
37682:repl
37683t repl
37684s/'"$ac_delim"'$//
37685t delim
37686:nl
37687h
37688s/\(.\{148\}\)..*/\1/
37689t more1
37690s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37691p
37692n
37693b repl
37694:more1
37695s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37696p
37697g
37698s/.\{148\}//
37699t nl
37700:delim
37701h
37702s/\(.\{148\}\)..*/\1/
37703t more2
37704s/["\\]/\\&/g; s/^/"/; s/$/"/
37705p
37706b
37707:more2
37708s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37709p
37710g
37711s/.\{148\}//
37712t delim
37713' <conf$$subs.awk | sed '
37714/^[^""]/{
37715  N
37716  s/\n//
37717}
37718' >>$CONFIG_STATUS || ac_write_fail=1
37719rm -f conf$$subs.awk
37720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37721_ACAWK
37722cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
37723  for (key in S) S_is_set[key] = 1
37724  FS = ""
37725
37726}
37727{
37728  line = $ 0
37729  nfields = split(line, field, "@")
37730  substed = 0
37731  len = length(field[1])
37732  for (i = 2; i < nfields; i++) {
37733    key = field[i]
37734    keylen = length(key)
37735    if (S_is_set[key]) {
37736      value = S[key]
37737      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37738      len += length(value) + length(field[++i])
37739      substed = 1
37740    } else
37741      len += 1 + keylen
37742  }
37743
37744  print line
37745}
37746
37747_ACAWK
37748_ACEOF
37749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37750if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37751  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37752else
37753  cat
37754fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37755  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37756_ACEOF
37757
37758# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37759# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
37760# trailing colons and then remove the whole line if VPATH becomes empty
37761# (actually we leave an empty line to preserve line numbers).
37762if test "x$srcdir" = x.; then
37763  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
37764h
37765s///
37766s/^/:/
37767s/[	 ]*$/:/
37768s/:\$(srcdir):/:/g
37769s/:\${srcdir}:/:/g
37770s/:@srcdir@:/:/g
37771s/^:*//
37772s/:*$//
37773x
37774s/\(=[	 ]*\).*/\1/
37775G
37776s/\n//
37777s/^[^=]*=[	 ]*$//
37778}'
37779fi
37780
37781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37782fi # test -n "$CONFIG_FILES"
37783
37784# Set up the scripts for CONFIG_HEADERS section.
37785# No need to generate them if there are no CONFIG_HEADERS.
37786# This happens for instance with `./config.status Makefile'.
37787if test -n "$CONFIG_HEADERS"; then
37788cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
37789BEGIN {
37790_ACEOF
37791
37792# Transform confdefs.h into an awk script `defines.awk', embedded as
37793# here-document in config.status, that substitutes the proper values into
37794# config.h.in to produce config.h.
37795
37796# Create a delimiter string that does not exist in confdefs.h, to ease
37797# handling of long lines.
37798ac_delim='%!_!# '
37799for ac_last_try in false false :; do
37800  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37801  if test -z "$ac_tt"; then
37802    break
37803  elif $ac_last_try; then
37804    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
37805  else
37806    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37807  fi
37808done
37809
37810# For the awk script, D is an array of macro values keyed by name,
37811# likewise P contains macro parameters if any.  Preserve backslash
37812# newline sequences.
37813
37814ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37815sed -n '
37816s/.\{148\}/&'"$ac_delim"'/g
37817t rset
37818:rset
37819s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
37820t def
37821d
37822:def
37823s/\\$//
37824t bsnl
37825s/["\\]/\\&/g
37826s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37827D["\1"]=" \3"/p
37828s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
37829d
37830:bsnl
37831s/["\\]/\\&/g
37832s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
37833D["\1"]=" \3\\\\\\n"\\/p
37834t cont
37835s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37836t cont
37837d
37838:cont
37839n
37840s/.\{148\}/&'"$ac_delim"'/g
37841t clear
37842:clear
37843s/\\$//
37844t bsnlc
37845s/["\\]/\\&/g; s/^/"/; s/$/"/p
37846d
37847:bsnlc
37848s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37849b cont
37850' <confdefs.h | sed '
37851s/'"$ac_delim"'/"\\\
37852"/g' >>$CONFIG_STATUS || ac_write_fail=1
37853
37854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37855  for (key in D) D_is_set[key] = 1
37856  FS = ""
37857}
37858/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37859  line = \$ 0
37860  split(line, arg, " ")
37861  if (arg[1] == "#") {
37862    defundef = arg[2]
37863    mac1 = arg[3]
37864  } else {
37865    defundef = substr(arg[1], 2)
37866    mac1 = arg[2]
37867  }
37868  split(mac1, mac2, "(") #)
37869  macro = mac2[1]
37870  prefix = substr(line, 1, index(line, defundef) - 1)
37871  if (D_is_set[macro]) {
37872    # Preserve the white space surrounding the "#".
37873    print prefix "define", macro P[macro] D[macro]
37874    next
37875  } else {
37876    # Replace #undef with comments.  This is necessary, for example,
37877    # in the case of _POSIX_SOURCE, which is predefined and required
37878    # on some systems where configure will not decide to define it.
37879    if (defundef == "undef") {
37880      print "/*", prefix defundef, macro, "*/"
37881      next
37882    }
37883  }
37884}
37885{ print }
37886_ACAWK
37887_ACEOF
37888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37889  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
37890fi # test -n "$CONFIG_HEADERS"
37891
37892
37893eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
37894shift
37895for ac_tag
37896do
37897  case $ac_tag in
37898  :[FHLC]) ac_mode=$ac_tag; continue;;
37899  esac
37900  case $ac_mode$ac_tag in
37901  :[FHL]*:*);;
37902  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
37903  :[FH]-) ac_tag=-:-;;
37904  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37905  esac
37906  ac_save_IFS=$IFS
37907  IFS=:
37908  set x $ac_tag
37909  IFS=$ac_save_IFS
37910  shift
37911  ac_file=$1
37912  shift
37913
37914  case $ac_mode in
37915  :L) ac_source=$1;;
37916  :[FH])
37917    ac_file_inputs=
37918    for ac_f
37919    do
37920      case $ac_f in
37921      -) ac_f="$ac_tmp/stdin";;
37922      *) # Look for the file first in the build tree, then in the source tree
37923	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
37924	 # because $ac_f cannot contain `:'.
37925	 test -f "$ac_f" ||
37926	   case $ac_f in
37927	   [\\/$]*) false;;
37928	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37929	   esac ||
37930	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37931      esac
37932      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37933      as_fn_append ac_file_inputs " '$ac_f'"
37934    done
37935
37936    # Let's still pretend it is `configure' which instantiates (i.e., don't
37937    # use $as_me), people would be surprised to read:
37938    #    /* config.h.  Generated by config.status.  */
37939    configure_input='Generated from '`
37940	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37941	`' by configure.'
37942    if test x"$ac_file" != x-; then
37943      configure_input="$ac_file.  $configure_input"
37944      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37945$as_echo "$as_me: creating $ac_file" >&6;}
37946    fi
37947    # Neutralize special characters interpreted by sed in replacement strings.
37948    case $configure_input in #(
37949    *\&* | *\|* | *\\* )
37950       ac_sed_conf_input=`$as_echo "$configure_input" |
37951       sed 's/[\\\\&|]/\\\\&/g'`;; #(
37952    *) ac_sed_conf_input=$configure_input;;
37953    esac
37954
37955    case $ac_tag in
37956    *:-:* | *:-) cat >"$ac_tmp/stdin" \
37957      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
37958    esac
37959    ;;
37960  esac
37961
37962  ac_dir=`$as_dirname -- "$ac_file" ||
37963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37964	 X"$ac_file" : 'X\(//\)[^/]' \| \
37965	 X"$ac_file" : 'X\(//\)$' \| \
37966	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37967$as_echo X"$ac_file" |
37968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37969	    s//\1/
37970	    q
37971	  }
37972	  /^X\(\/\/\)[^/].*/{
37973	    s//\1/
37974	    q
37975	  }
37976	  /^X\(\/\/\)$/{
37977	    s//\1/
37978	    q
37979	  }
37980	  /^X\(\/\).*/{
37981	    s//\1/
37982	    q
37983	  }
37984	  s/.*/./; q'`
37985  as_dir="$ac_dir"; as_fn_mkdir_p
37986  ac_builddir=.
37987
37988case "$ac_dir" in
37989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37990*)
37991  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37992  # A ".." for each directory in $ac_dir_suffix.
37993  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37994  case $ac_top_builddir_sub in
37995  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37996  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37997  esac ;;
37998esac
37999ac_abs_top_builddir=$ac_pwd
38000ac_abs_builddir=$ac_pwd$ac_dir_suffix
38001# for backward compatibility:
38002ac_top_builddir=$ac_top_build_prefix
38003
38004case $srcdir in
38005  .)  # We are building in place.
38006    ac_srcdir=.
38007    ac_top_srcdir=$ac_top_builddir_sub
38008    ac_abs_top_srcdir=$ac_pwd ;;
38009  [\\/]* | ?:[\\/]* )  # Absolute name.
38010    ac_srcdir=$srcdir$ac_dir_suffix;
38011    ac_top_srcdir=$srcdir
38012    ac_abs_top_srcdir=$srcdir ;;
38013  *) # Relative name.
38014    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38015    ac_top_srcdir=$ac_top_build_prefix$srcdir
38016    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38017esac
38018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38019
38020
38021  case $ac_mode in
38022  :F)
38023  #
38024  # CONFIG_FILE
38025  #
38026
38027  case $INSTALL in
38028  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38029  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38030  esac
38031  ac_MKDIR_P=$MKDIR_P
38032  case $MKDIR_P in
38033  [\\/$]* | ?:[\\/]* ) ;;
38034  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38035  esac
38036_ACEOF
38037
38038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38039# If the template does not know about datarootdir, expand it.
38040# FIXME: This hack should be removed a few years after 2.60.
38041ac_datarootdir_hack=; ac_datarootdir_seen=
38042ac_sed_dataroot='
38043/datarootdir/ {
38044  p
38045  q
38046}
38047/@datadir@/p
38048/@docdir@/p
38049/@infodir@/p
38050/@localedir@/p
38051/@mandir@/p'
38052case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38053*datarootdir*) ac_datarootdir_seen=yes;;
38054*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38055  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38056$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38057_ACEOF
38058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38059  ac_datarootdir_hack='
38060  s&@datadir@&$datadir&g
38061  s&@docdir@&$docdir&g
38062  s&@infodir@&$infodir&g
38063  s&@localedir@&$localedir&g
38064  s&@mandir@&$mandir&g
38065  s&\\\${datarootdir}&$datarootdir&g' ;;
38066esac
38067_ACEOF
38068
38069# Neutralize VPATH when `$srcdir' = `.'.
38070# Shell code in configure.ac might set extrasub.
38071# FIXME: do we really want to maintain this feature?
38072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38073ac_sed_extra="$ac_vpsub
38074$extrasub
38075_ACEOF
38076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38077:t
38078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38079s|@configure_input@|$ac_sed_conf_input|;t t
38080s&@top_builddir@&$ac_top_builddir_sub&;t t
38081s&@top_build_prefix@&$ac_top_build_prefix&;t t
38082s&@srcdir@&$ac_srcdir&;t t
38083s&@abs_srcdir@&$ac_abs_srcdir&;t t
38084s&@top_srcdir@&$ac_top_srcdir&;t t
38085s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38086s&@builddir@&$ac_builddir&;t t
38087s&@abs_builddir@&$ac_abs_builddir&;t t
38088s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38089s&@INSTALL@&$ac_INSTALL&;t t
38090s&@MKDIR_P@&$ac_MKDIR_P&;t t
38091$ac_datarootdir_hack
38092"
38093eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38094  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38095
38096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38097  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38098  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38099      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38101which seems to be undefined.  Please make sure it is defined" >&5
38102$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38103which seems to be undefined.  Please make sure it is defined" >&2;}
38104
38105  rm -f "$ac_tmp/stdin"
38106  case $ac_file in
38107  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38108  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38109  esac \
38110  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38111 ;;
38112  :H)
38113  #
38114  # CONFIG_HEADER
38115  #
38116  if test x"$ac_file" != x-; then
38117    {
38118      $as_echo "/* $configure_input  */" \
38119      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38120    } >"$ac_tmp/config.h" \
38121      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38122    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38123      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38124$as_echo "$as_me: $ac_file is unchanged" >&6;}
38125    else
38126      rm -f "$ac_file"
38127      mv "$ac_tmp/config.h" "$ac_file" \
38128	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38129    fi
38130  else
38131    $as_echo "/* $configure_input  */" \
38132      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38133      || as_fn_error $? "could not create -" "$LINENO" 5
38134  fi
38135# Compute "$ac_file"'s index in $config_headers.
38136_am_arg="$ac_file"
38137_am_stamp_count=1
38138for _am_header in $config_headers :; do
38139  case $_am_header in
38140    $_am_arg | $_am_arg:* )
38141      break ;;
38142    * )
38143      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38144  esac
38145done
38146echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38147$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38148	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38149	 X"$_am_arg" : 'X\(//\)$' \| \
38150	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38151$as_echo X"$_am_arg" |
38152    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38153	    s//\1/
38154	    q
38155	  }
38156	  /^X\(\/\/\)[^/].*/{
38157	    s//\1/
38158	    q
38159	  }
38160	  /^X\(\/\/\)$/{
38161	    s//\1/
38162	    q
38163	  }
38164	  /^X\(\/\).*/{
38165	    s//\1/
38166	    q
38167	  }
38168	  s/.*/./; q'`/stamp-h$_am_stamp_count
38169 ;;
38170
38171  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38172$as_echo "$as_me: executing $ac_file commands" >&6;}
38173 ;;
38174  esac
38175
38176
38177  case $ac_file$ac_mode in
38178    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
38179ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38180ac_prefix_conf_PKG=`echo MagickCore`
38181ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38182ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
38183ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38184if test ".$ac_prefix_conf_INP" = "."; then
38185   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38186     case "$ac_file" in
38187        *.h) ac_prefix_conf_INP=$ac_file ;;
38188        *)
38189     esac
38190     test ".$ac_prefix_conf_INP" != "." && break
38191   done
38192fi
38193if test ".$ac_prefix_conf_INP" = "."; then
38194   case "$ac_prefix_conf_OUT" in
38195      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38196      ;;
38197      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38198      ;;
38199      *) ac_prefix_conf_INP=config.h
38200      ;;
38201   esac
38202fi
38203if test -z "$ac_prefix_conf_PKG" ; then
38204   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
38205else
38206  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38207     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38208  fi fi
38209  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38210$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38211  if test -f $ac_prefix_conf_INP ; then
38212    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38213    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38214    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38215    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38216    $as_echo "#endif/" >> conftest.prefix
38217    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38218    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38219    $as_echo "#endif/" >> conftest.prefix
38220    # now executing _script on _DEF input to create _OUT output file
38221    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
38222    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38223    echo ' ' >>$tmp/pconfig.h
38224    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38225
38226    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38227    echo ' ' >>$tmp/pconfig.h
38228    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38229    echo "#endif" >>$tmp/pconfig.h
38230    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38231      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38232$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38233    else
38234      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38235$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38236	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38237	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38238	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38239$as_echo X"$ac_prefix_conf_OUT" |
38240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38241	    s//\1/
38242	    q
38243	  }
38244	  /^X\(\/\/\)[^/].*/{
38245	    s//\1/
38246	    q
38247	  }
38248	  /^X\(\/\/\)$/{
38249	    s//\1/
38250	    q
38251	  }
38252	  /^X\(\/\).*/{
38253	    s//\1/
38254	    q
38255	  }
38256	  s/.*/./; q'`
38257      as_dir="$ac_dir"; as_fn_mkdir_p
38258      rm -f "$ac_prefix_conf_OUT"
38259      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38260    fi
38261  else
38262    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
38263  fi
38264  rm -f conftest.*
38265fi
38266 ;;
38267    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38268  # Older Autoconf quotes --file arguments for eval, but not when files
38269  # are listed without --file.  Let's play safe and only enable the eval
38270  # if we detect the quoting.
38271  # TODO: see whether this extra hack can be removed once we start
38272  # requiring Autoconf 2.70 or later.
38273  case $CONFIG_FILES in #(
38274  *\'*) :
38275    eval set x "$CONFIG_FILES" ;; #(
38276  *) :
38277    set x $CONFIG_FILES ;; #(
38278  *) :
38279     ;;
38280esac
38281  shift
38282  # Used to flag and report bootstrapping failures.
38283  am_rc=0
38284  for am_mf
38285  do
38286    # Strip MF so we end up with the name of the file.
38287    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
38288    # Check whether this is an Automake generated Makefile which includes
38289    # dependency-tracking related rules and includes.
38290    # Grep'ing the whole file directly is not great: AIX grep has a line
38291    # limit of 2048, but all sed's we know have understand at least 4000.
38292    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
38293      || continue
38294    am_dirpart=`$as_dirname -- "$am_mf" ||
38295$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38296	 X"$am_mf" : 'X\(//\)[^/]' \| \
38297	 X"$am_mf" : 'X\(//\)$' \| \
38298	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38299$as_echo X"$am_mf" |
38300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38301	    s//\1/
38302	    q
38303	  }
38304	  /^X\(\/\/\)[^/].*/{
38305	    s//\1/
38306	    q
38307	  }
38308	  /^X\(\/\/\)$/{
38309	    s//\1/
38310	    q
38311	  }
38312	  /^X\(\/\).*/{
38313	    s//\1/
38314	    q
38315	  }
38316	  s/.*/./; q'`
38317    am_filepart=`$as_basename -- "$am_mf" ||
38318$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
38319	 X"$am_mf" : 'X\(//\)$' \| \
38320	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38321$as_echo X/"$am_mf" |
38322    sed '/^.*\/\([^/][^/]*\)\/*$/{
38323	    s//\1/
38324	    q
38325	  }
38326	  /^X\/\(\/\/\)$/{
38327	    s//\1/
38328	    q
38329	  }
38330	  /^X\/\(\/\).*/{
38331	    s//\1/
38332	    q
38333	  }
38334	  s/.*/./; q'`
38335    { echo "$as_me:$LINENO: cd "$am_dirpart" \
38336      && sed -e '/# am--include-marker/d' "$am_filepart" \
38337        | $MAKE -f - am--depfiles" >&5
38338   (cd "$am_dirpart" \
38339      && sed -e '/# am--include-marker/d' "$am_filepart" \
38340        | $MAKE -f - am--depfiles) >&5 2>&5
38341   ac_status=$?
38342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343   (exit $ac_status); } || am_rc=$?
38344  done
38345  if test $am_rc -ne 0; then
38346    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38348as_fn_error $? "Something went wrong bootstrapping makefile fragments
38349    for automatic dependency tracking.  If GNU make was not used, consider
38350    re-running the configure script with MAKE=\"gmake\" (or whatever is
38351    necessary).  You can also try re-running configure with the
38352    '--disable-dependency-tracking' option to at least be able to build
38353    the package (albeit without support for automatic dependency tracking).
38354See \`config.log' for more details" "$LINENO" 5; }
38355  fi
38356  { am_dirpart=; unset am_dirpart;}
38357  { am_filepart=; unset am_filepart;}
38358  { am_mf=; unset am_mf;}
38359  { am_rc=; unset am_rc;}
38360  rm -f conftest-deps.mk
38361}
38362 ;;
38363    "libtool":C)
38364
38365    # See if we are running on zsh, and set the options that allow our
38366    # commands through without removal of \ escapes.
38367    if test -n "${ZSH_VERSION+set}"; then
38368      setopt NO_GLOB_SUBST
38369    fi
38370
38371    cfgfile=${ofile}T
38372    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38373    $RM "$cfgfile"
38374
38375    cat <<_LT_EOF >> "$cfgfile"
38376#! $SHELL
38377# Generated automatically by $as_me ($PACKAGE) $VERSION
38378# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38379# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38380
38381# Provide generalized library-building support services.
38382# Written by Gordon Matzigkeit, 1996
38383
38384# Copyright (C) 2014 Free Software Foundation, Inc.
38385# This is free software; see the source for copying conditions.  There is NO
38386# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38387
38388# GNU Libtool is free software; you can redistribute it and/or modify
38389# it under the terms of the GNU General Public License as published by
38390# the Free Software Foundation; either version 2 of of the License, or
38391# (at your option) any later version.
38392#
38393# As a special exception to the GNU General Public License, if you
38394# distribute this file as part of a program or library that is built
38395# using GNU Libtool, you may include this file under the  same
38396# distribution terms that you use for the rest of that program.
38397#
38398# GNU Libtool is distributed in the hope that it will be useful, but
38399# WITHOUT ANY WARRANTY; without even the implied warranty of
38400# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38401# GNU General Public License for more details.
38402#
38403# You should have received a copy of the GNU General Public License
38404# along with this program.  If not, see <http://www.gnu.org/licenses/>.
38405
38406
38407# The names of the tagged configurations supported by this script.
38408available_tags='CXX '
38409
38410# Configured defaults for sys_lib_dlsearch_path munging.
38411: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38412
38413# ### BEGIN LIBTOOL CONFIG
38414
38415# A sed program that does not truncate output.
38416SED=$lt_SED
38417
38418# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38419Xsed="\$SED -e 1s/^X//"
38420
38421# A grep program that handles long lines.
38422GREP=$lt_GREP
38423
38424# An ERE matcher.
38425EGREP=$lt_EGREP
38426
38427# A literal string matcher.
38428FGREP=$lt_FGREP
38429
38430# Shell to use when invoking shell scripts.
38431SHELL=$lt_SHELL
38432
38433# An echo program that protects backslashes.
38434ECHO=$lt_ECHO
38435
38436# Which release of libtool.m4 was used?
38437macro_version=$macro_version
38438macro_revision=$macro_revision
38439
38440# Assembler program.
38441AS=$lt_AS
38442
38443# DLL creation program.
38444DLLTOOL=$lt_DLLTOOL
38445
38446# Object dumper program.
38447OBJDUMP=$lt_OBJDUMP
38448
38449# Whether or not to build shared libraries.
38450build_libtool_libs=$enable_shared
38451
38452# Whether or not to build static libraries.
38453build_old_libs=$enable_static
38454
38455# What type of objects to build.
38456pic_mode=$pic_mode
38457
38458# Whether or not to optimize for fast installation.
38459fast_install=$enable_fast_install
38460
38461# Shared archive member basename,for filename based shared library versioning on AIX.
38462shared_archive_member_spec=$shared_archive_member_spec
38463
38464# The PATH separator for the build system.
38465PATH_SEPARATOR=$lt_PATH_SEPARATOR
38466
38467# The host system.
38468host_alias=$host_alias
38469host=$host
38470host_os=$host_os
38471
38472# The build system.
38473build_alias=$build_alias
38474build=$build
38475build_os=$build_os
38476
38477# A BSD- or MS-compatible name lister.
38478NM=$lt_NM
38479
38480# Whether we need soft or hard links.
38481LN_S=$lt_LN_S
38482
38483# What is the maximum length of a command?
38484max_cmd_len=$max_cmd_len
38485
38486# Object file suffix (normally "o").
38487objext=$ac_objext
38488
38489# Executable file suffix (normally "").
38490exeext=$exeext
38491
38492# whether the shell understands "unset".
38493lt_unset=$lt_unset
38494
38495# turn spaces into newlines.
38496SP2NL=$lt_lt_SP2NL
38497
38498# turn newlines into spaces.
38499NL2SP=$lt_lt_NL2SP
38500
38501# convert \$build file names to \$host format.
38502to_host_file_cmd=$lt_cv_to_host_file_cmd
38503
38504# convert \$build files to toolchain format.
38505to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38506
38507# Method to check whether dependent libraries are shared objects.
38508deplibs_check_method=$lt_deplibs_check_method
38509
38510# Command to use when deplibs_check_method = "file_magic".
38511file_magic_cmd=$lt_file_magic_cmd
38512
38513# How to find potential files when deplibs_check_method = "file_magic".
38514file_magic_glob=$lt_file_magic_glob
38515
38516# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38517want_nocaseglob=$lt_want_nocaseglob
38518
38519# Command to associate shared and link libraries.
38520sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38521
38522# The archiver.
38523AR=$lt_AR
38524
38525# Flags to create an archive.
38526AR_FLAGS=$lt_AR_FLAGS
38527
38528# How to feed a file listing to the archiver.
38529archiver_list_spec=$lt_archiver_list_spec
38530
38531# A symbol stripping program.
38532STRIP=$lt_STRIP
38533
38534# Commands used to install an old-style archive.
38535RANLIB=$lt_RANLIB
38536old_postinstall_cmds=$lt_old_postinstall_cmds
38537old_postuninstall_cmds=$lt_old_postuninstall_cmds
38538
38539# Whether to use a lock for old archive extraction.
38540lock_old_archive_extraction=$lock_old_archive_extraction
38541
38542# A C compiler.
38543LTCC=$lt_CC
38544
38545# LTCC compiler flags.
38546LTCFLAGS=$lt_CFLAGS
38547
38548# Take the output of nm and produce a listing of raw symbols and C names.
38549global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38550
38551# Transform the output of nm in a proper C declaration.
38552global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38553
38554# Transform the output of nm into a list of symbols to manually relocate.
38555global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38556
38557# Transform the output of nm in a C name address pair.
38558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38559
38560# Transform the output of nm in a C name address pair when lib prefix is needed.
38561global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38562
38563# The name lister interface.
38564nm_interface=$lt_lt_cv_nm_interface
38565
38566# Specify filename containing input files for \$NM.
38567nm_file_list_spec=$lt_nm_file_list_spec
38568
38569# The root where to search for dependent libraries,and where our libraries should be installed.
38570lt_sysroot=$lt_sysroot
38571
38572# Command to truncate a binary pipe.
38573lt_truncate_bin=$lt_lt_cv_truncate_bin
38574
38575# The name of the directory that contains temporary libtool files.
38576objdir=$objdir
38577
38578# Used to examine libraries when file_magic_cmd begins with "file".
38579MAGIC_CMD=$MAGIC_CMD
38580
38581# Must we lock files when doing compilation?
38582need_locks=$lt_need_locks
38583
38584# Manifest tool.
38585MANIFEST_TOOL=$lt_MANIFEST_TOOL
38586
38587# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38588DSYMUTIL=$lt_DSYMUTIL
38589
38590# Tool to change global to local symbols on Mac OS X.
38591NMEDIT=$lt_NMEDIT
38592
38593# Tool to manipulate fat objects and archives on Mac OS X.
38594LIPO=$lt_LIPO
38595
38596# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38597OTOOL=$lt_OTOOL
38598
38599# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38600OTOOL64=$lt_OTOOL64
38601
38602# Old archive suffix (normally "a").
38603libext=$libext
38604
38605# Shared library suffix (normally ".so").
38606shrext_cmds=$lt_shrext_cmds
38607
38608# The commands to extract the exported symbol list from a shared archive.
38609extract_expsyms_cmds=$lt_extract_expsyms_cmds
38610
38611# Variables whose values should be saved in libtool wrapper scripts and
38612# restored at link time.
38613variables_saved_for_relink=$lt_variables_saved_for_relink
38614
38615# Do we need the "lib" prefix for modules?
38616need_lib_prefix=$need_lib_prefix
38617
38618# Do we need a version for libraries?
38619need_version=$need_version
38620
38621# Library versioning type.
38622version_type=$version_type
38623
38624# Shared library runtime path variable.
38625runpath_var=$runpath_var
38626
38627# Shared library path variable.
38628shlibpath_var=$shlibpath_var
38629
38630# Is shlibpath searched before the hard-coded library search path?
38631shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38632
38633# Format of library name prefix.
38634libname_spec=$lt_libname_spec
38635
38636# List of archive names.  First name is the real one, the rest are links.
38637# The last name is the one that the linker finds with -lNAME
38638library_names_spec=$lt_library_names_spec
38639
38640# The coded name of the library, if different from the real name.
38641soname_spec=$lt_soname_spec
38642
38643# Permission mode override for installation of shared libraries.
38644install_override_mode=$lt_install_override_mode
38645
38646# Command to use after installation of a shared archive.
38647postinstall_cmds=$lt_postinstall_cmds
38648
38649# Command to use after uninstallation of a shared archive.
38650postuninstall_cmds=$lt_postuninstall_cmds
38651
38652# Commands used to finish a libtool library installation in a directory.
38653finish_cmds=$lt_finish_cmds
38654
38655# As "finish_cmds", except a single script fragment to be evaled but
38656# not shown.
38657finish_eval=$lt_finish_eval
38658
38659# Whether we should hardcode library paths into libraries.
38660hardcode_into_libs=$hardcode_into_libs
38661
38662# Compile-time system search path for libraries.
38663sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38664
38665# Detected run-time system search path for libraries.
38666sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38667
38668# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38669configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38670
38671# Whether dlopen is supported.
38672dlopen_support=$enable_dlopen
38673
38674# Whether dlopen of programs is supported.
38675dlopen_self=$enable_dlopen_self
38676
38677# Whether dlopen of statically linked programs is supported.
38678dlopen_self_static=$enable_dlopen_self_static
38679
38680# Commands to strip libraries.
38681old_striplib=$lt_old_striplib
38682striplib=$lt_striplib
38683
38684
38685# The linker used to build libraries.
38686LD=$lt_LD
38687
38688# How to create reloadable object files.
38689reload_flag=$lt_reload_flag
38690reload_cmds=$lt_reload_cmds
38691
38692# Commands used to build an old-style archive.
38693old_archive_cmds=$lt_old_archive_cmds
38694
38695# A language specific compiler.
38696CC=$lt_compiler
38697
38698# Is the compiler the GNU compiler?
38699with_gcc=$GCC
38700
38701# Compiler flag to turn off builtin functions.
38702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38703
38704# Additional compiler flags for building library objects.
38705pic_flag=$lt_lt_prog_compiler_pic
38706
38707# How to pass a linker flag through the compiler.
38708wl=$lt_lt_prog_compiler_wl
38709
38710# Compiler flag to prevent dynamic linking.
38711link_static_flag=$lt_lt_prog_compiler_static
38712
38713# Does compiler simultaneously support -c and -o options?
38714compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38715
38716# Whether or not to add -lc for building shared libraries.
38717build_libtool_need_lc=$archive_cmds_need_lc
38718
38719# Whether or not to disallow shared libs when runtime libs are static.
38720allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38721
38722# Compiler flag to allow reflexive dlopens.
38723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38724
38725# Compiler flag to generate shared objects directly from archives.
38726whole_archive_flag_spec=$lt_whole_archive_flag_spec
38727
38728# Whether the compiler copes with passing no objects directly.
38729compiler_needs_object=$lt_compiler_needs_object
38730
38731# Create an old-style archive from a shared archive.
38732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38733
38734# Create a temporary old-style archive to link instead of a shared archive.
38735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38736
38737# Commands used to build a shared archive.
38738archive_cmds=$lt_archive_cmds
38739archive_expsym_cmds=$lt_archive_expsym_cmds
38740
38741# Commands used to build a loadable module if different from building
38742# a shared archive.
38743module_cmds=$lt_module_cmds
38744module_expsym_cmds=$lt_module_expsym_cmds
38745
38746# Whether we are building with GNU ld or not.
38747with_gnu_ld=$lt_with_gnu_ld
38748
38749# Flag that allows shared libraries with undefined symbols to be built.
38750allow_undefined_flag=$lt_allow_undefined_flag
38751
38752# Flag that enforces no undefined symbols.
38753no_undefined_flag=$lt_no_undefined_flag
38754
38755# Flag to hardcode \$libdir into a binary during linking.
38756# This must work even if \$libdir does not exist
38757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38758
38759# Whether we need a single "-rpath" flag with a separated argument.
38760hardcode_libdir_separator=$lt_hardcode_libdir_separator
38761
38762# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38763# DIR into the resulting binary.
38764hardcode_direct=$hardcode_direct
38765
38766# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38767# DIR into the resulting binary and the resulting library dependency is
38768# "absolute",i.e impossible to change by setting \$shlibpath_var if the
38769# library is relocated.
38770hardcode_direct_absolute=$hardcode_direct_absolute
38771
38772# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38773# into the resulting binary.
38774hardcode_minus_L=$hardcode_minus_L
38775
38776# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38777# into the resulting binary.
38778hardcode_shlibpath_var=$hardcode_shlibpath_var
38779
38780# Set to "yes" if building a shared library automatically hardcodes DIR
38781# into the library and all subsequent libraries and executables linked
38782# against it.
38783hardcode_automatic=$hardcode_automatic
38784
38785# Set to yes if linker adds runtime paths of dependent libraries
38786# to runtime path list.
38787inherit_rpath=$inherit_rpath
38788
38789# Whether libtool must link a program against all its dependency libraries.
38790link_all_deplibs=$link_all_deplibs
38791
38792# Set to "yes" if exported symbols are required.
38793always_export_symbols=$always_export_symbols
38794
38795# The commands to list exported symbols.
38796export_symbols_cmds=$lt_export_symbols_cmds
38797
38798# Symbols that should not be listed in the preloaded symbols.
38799exclude_expsyms=$lt_exclude_expsyms
38800
38801# Symbols that must always be exported.
38802include_expsyms=$lt_include_expsyms
38803
38804# Commands necessary for linking programs (against libraries) with templates.
38805prelink_cmds=$lt_prelink_cmds
38806
38807# Commands necessary for finishing linking programs.
38808postlink_cmds=$lt_postlink_cmds
38809
38810# Specify filename containing input files.
38811file_list_spec=$lt_file_list_spec
38812
38813# How to hardcode a shared library path into an executable.
38814hardcode_action=$hardcode_action
38815
38816# The directories searched by this compiler when creating a shared library.
38817compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38818
38819# Dependencies to place before and after the objects being linked to
38820# create a shared library.
38821predep_objects=$lt_predep_objects
38822postdep_objects=$lt_postdep_objects
38823predeps=$lt_predeps
38824postdeps=$lt_postdeps
38825
38826# The library search path used internally by the compiler when linking
38827# a shared library.
38828compiler_lib_search_path=$lt_compiler_lib_search_path
38829
38830# ### END LIBTOOL CONFIG
38831
38832_LT_EOF
38833
38834    cat <<'_LT_EOF' >> "$cfgfile"
38835
38836# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38837
38838# func_munge_path_list VARIABLE PATH
38839# -----------------------------------
38840# VARIABLE is name of variable containing _space_ separated list of
38841# directories to be munged by the contents of PATH, which is string
38842# having a format:
38843# "DIR[:DIR]:"
38844#       string "DIR[ DIR]" will be prepended to VARIABLE
38845# ":DIR[:DIR]"
38846#       string "DIR[ DIR]" will be appended to VARIABLE
38847# "DIRP[:DIRP]::[DIRA:]DIRA"
38848#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38849#       "DIRA[ DIRA]" will be appended to VARIABLE
38850# "DIR[:DIR]"
38851#       VARIABLE will be replaced by "DIR[ DIR]"
38852func_munge_path_list ()
38853{
38854    case x$2 in
38855    x)
38856        ;;
38857    *:)
38858        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38859        ;;
38860    x:*)
38861        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38862        ;;
38863    *::*)
38864        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38865        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38866        ;;
38867    *)
38868        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38869        ;;
38870    esac
38871}
38872
38873
38874# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
38875func_cc_basename ()
38876{
38877    for cc_temp in $*""; do
38878      case $cc_temp in
38879        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38880        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38881        \-*) ;;
38882        *) break;;
38883      esac
38884    done
38885    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38886}
38887
38888
38889# ### END FUNCTIONS SHARED WITH CONFIGURE
38890
38891_LT_EOF
38892
38893  case $host_os in
38894  aix3*)
38895    cat <<\_LT_EOF >> "$cfgfile"
38896# AIX sometimes has problems with the GCC collect2 program.  For some
38897# reason, if we set the COLLECT_NAMES environment variable, the problems
38898# vanish in a puff of smoke.
38899if test set != "${COLLECT_NAMES+set}"; then
38900  COLLECT_NAMES=
38901  export COLLECT_NAMES
38902fi
38903_LT_EOF
38904    ;;
38905  esac
38906
38907
38908ltmain=$ac_aux_dir/ltmain.sh
38909
38910
38911  # We use sed instead of cat because bash on DJGPP gets confused if
38912  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38913  # text mode, it properly converts lines to CR/LF.  This bash problem
38914  # is reportedly fixed, but why not run on old versions too?
38915  sed '$q' "$ltmain" >> "$cfgfile" \
38916     || (rm -f "$cfgfile"; exit 1)
38917
38918   mv -f "$cfgfile" "$ofile" ||
38919    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38920  chmod +x "$ofile"
38921
38922
38923    cat <<_LT_EOF >> "$ofile"
38924
38925# ### BEGIN LIBTOOL TAG CONFIG: CXX
38926
38927# The linker used to build libraries.
38928LD=$lt_LD_CXX
38929
38930# How to create reloadable object files.
38931reload_flag=$lt_reload_flag_CXX
38932reload_cmds=$lt_reload_cmds_CXX
38933
38934# Commands used to build an old-style archive.
38935old_archive_cmds=$lt_old_archive_cmds_CXX
38936
38937# A language specific compiler.
38938CC=$lt_compiler_CXX
38939
38940# Is the compiler the GNU compiler?
38941with_gcc=$GCC_CXX
38942
38943# Compiler flag to turn off builtin functions.
38944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38945
38946# Additional compiler flags for building library objects.
38947pic_flag=$lt_lt_prog_compiler_pic_CXX
38948
38949# How to pass a linker flag through the compiler.
38950wl=$lt_lt_prog_compiler_wl_CXX
38951
38952# Compiler flag to prevent dynamic linking.
38953link_static_flag=$lt_lt_prog_compiler_static_CXX
38954
38955# Does compiler simultaneously support -c and -o options?
38956compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38957
38958# Whether or not to add -lc for building shared libraries.
38959build_libtool_need_lc=$archive_cmds_need_lc_CXX
38960
38961# Whether or not to disallow shared libs when runtime libs are static.
38962allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38963
38964# Compiler flag to allow reflexive dlopens.
38965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38966
38967# Compiler flag to generate shared objects directly from archives.
38968whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38969
38970# Whether the compiler copes with passing no objects directly.
38971compiler_needs_object=$lt_compiler_needs_object_CXX
38972
38973# Create an old-style archive from a shared archive.
38974old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38975
38976# Create a temporary old-style archive to link instead of a shared archive.
38977old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38978
38979# Commands used to build a shared archive.
38980archive_cmds=$lt_archive_cmds_CXX
38981archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38982
38983# Commands used to build a loadable module if different from building
38984# a shared archive.
38985module_cmds=$lt_module_cmds_CXX
38986module_expsym_cmds=$lt_module_expsym_cmds_CXX
38987
38988# Whether we are building with GNU ld or not.
38989with_gnu_ld=$lt_with_gnu_ld_CXX
38990
38991# Flag that allows shared libraries with undefined symbols to be built.
38992allow_undefined_flag=$lt_allow_undefined_flag_CXX
38993
38994# Flag that enforces no undefined symbols.
38995no_undefined_flag=$lt_no_undefined_flag_CXX
38996
38997# Flag to hardcode \$libdir into a binary during linking.
38998# This must work even if \$libdir does not exist
38999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39000
39001# Whether we need a single "-rpath" flag with a separated argument.
39002hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39003
39004# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39005# DIR into the resulting binary.
39006hardcode_direct=$hardcode_direct_CXX
39007
39008# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39009# DIR into the resulting binary and the resulting library dependency is
39010# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39011# library is relocated.
39012hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39013
39014# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39015# into the resulting binary.
39016hardcode_minus_L=$hardcode_minus_L_CXX
39017
39018# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39019# into the resulting binary.
39020hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39021
39022# Set to "yes" if building a shared library automatically hardcodes DIR
39023# into the library and all subsequent libraries and executables linked
39024# against it.
39025hardcode_automatic=$hardcode_automatic_CXX
39026
39027# Set to yes if linker adds runtime paths of dependent libraries
39028# to runtime path list.
39029inherit_rpath=$inherit_rpath_CXX
39030
39031# Whether libtool must link a program against all its dependency libraries.
39032link_all_deplibs=$link_all_deplibs_CXX
39033
39034# Set to "yes" if exported symbols are required.
39035always_export_symbols=$always_export_symbols_CXX
39036
39037# The commands to list exported symbols.
39038export_symbols_cmds=$lt_export_symbols_cmds_CXX
39039
39040# Symbols that should not be listed in the preloaded symbols.
39041exclude_expsyms=$lt_exclude_expsyms_CXX
39042
39043# Symbols that must always be exported.
39044include_expsyms=$lt_include_expsyms_CXX
39045
39046# Commands necessary for linking programs (against libraries) with templates.
39047prelink_cmds=$lt_prelink_cmds_CXX
39048
39049# Commands necessary for finishing linking programs.
39050postlink_cmds=$lt_postlink_cmds_CXX
39051
39052# Specify filename containing input files.
39053file_list_spec=$lt_file_list_spec_CXX
39054
39055# How to hardcode a shared library path into an executable.
39056hardcode_action=$hardcode_action_CXX
39057
39058# The directories searched by this compiler when creating a shared library.
39059compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39060
39061# Dependencies to place before and after the objects being linked to
39062# create a shared library.
39063predep_objects=$lt_predep_objects_CXX
39064postdep_objects=$lt_postdep_objects_CXX
39065predeps=$lt_predeps_CXX
39066postdeps=$lt_postdeps_CXX
39067
39068# The library search path used internally by the compiler when linking
39069# a shared library.
39070compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39071
39072# ### END LIBTOOL TAG CONFIG: CXX
39073_LT_EOF
39074
39075 ;;
39076    "magick.sh.in":C) chmod +x magick.sh ;;
39077    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
39078    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
39079    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39080    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39081
39082  esac
39083done # for ac_tag
39084
39085
39086as_fn_exit 0
39087_ACEOF
39088ac_clean_files=$ac_clean_files_save
39089
39090test $ac_write_fail = 0 ||
39091  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39092
39093
39094# configure is writing to config.log, and then calls config.status.
39095# config.status does its own redirection, appending to config.log.
39096# Unfortunately, on DOS this fails, as config.log is still kept open
39097# by configure, so config.status won't be able to write to it; its
39098# output is simply discarded.  So we exec the FD to /dev/null,
39099# effectively closing config.log, so it can be properly (re)opened and
39100# appended to by config.status.  When coming back to configure, we
39101# need to make the FD available again.
39102if test "$no_create" != yes; then
39103  ac_cs_success=:
39104  ac_config_status_args=
39105  test "$silent" = yes &&
39106    ac_config_status_args="$ac_config_status_args --quiet"
39107  exec 5>/dev/null
39108  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39109  exec 5>>config.log
39110  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39111  # would make configure fail if this is the last instruction.
39112  $ac_cs_success || as_fn_exit 1
39113fi
39114if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39115  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39116$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39117fi
39118
39119
39120# ==============================================================================
39121# ImageMagick Configuration
39122# ==============================================================================
39123{ $as_echo "$as_me:${as_lineno-$LINENO}:
39124==============================================================================
39125${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Please verify that this
39126configuration matches your expectations.
39127
39128Host system type: $host
39129Build system type: $build
39130
39131                  Option                        Value
39132------------------------------------------------------------------------------
39133Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39134Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39135Build utilities   --with-utilities=$with_utilities		$with_utilities
39136Module support    --with-modules=$build_modules		$build_modules
39137GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39138Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39139High Dynamic Range Imagery
39140                  --enable-hdri=$enable_hdri		$enable_hdri
39141
39142Install documentation:				$wantdocs
39143
39144Memory allocation library:
39145  JEMalloc          --with-jemalloc=$with_jemalloc		$have_jemalloc
39146  TCMalloc          --with-tcmalloc=$with_tcmalloc		$have_tcmalloc
39147  UMem              --with-umem=$with_umem		$have_umem
39148
39149Delegate library configuration:
39150  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39151  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39152  DJVU              --with-djvu=$with_djvu		$have_djvu
39153  DPS               --with-dps=$with_dps		$have_dps
39154  FFTW              --with-fftw=$with_fftw		$have_fftw
39155  FLIF              --with-flif=$with_flif		$have_flif
39156  FlashPIX          --with-fpx=$with_fpx		$have_fpx
39157  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
39158  FreeType          --with-freetype=$with_freetype		$have_freetype
39159  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39160  Graphviz          --with-gvc=$with_gvc		$have_gvc
39161  HEIC              --with-heic=$with_heic		$have_heic
39162  JBIG              --with-jbig=$with_jbig		$have_jbig
39163  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39164  JPEG XL           --with-jxl=$with_jxl		$have_jxl
39165  LCMS              --with-lcms=$with_lcms		$have_lcms
39166  LQR               --with-lqr=$with_lqr		$have_lqr
39167  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39168  LZMA              --with-lzma=$with_lzma		$have_lzma
39169  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39170  OpenEXR           --with-openexr=$with_openexr		$have_openexr
39171  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
39172  PANGO             --with-pango=$with_pango		$have_pango
39173  PERL              --with-perl=$with_perl		$have_perl
39174  PNG               --with-png=$with_png		$have_png
39175  RAQM              --with-raqm=$with_raqm		$have_raqm
39176  RAW               --with-raw=$with_raw		$have_raw
39177  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39178  TIFF              --with-tiff=$with_tiff		$have_tiff
39179  WEBP              --with-webp=$with_webp		$have_webp
39180  WMF               --with-wmf=$with_wmf		$have_wmf
39181  X11               --with-x=$with_x			$have_x
39182  XML               --with-xml=$with_xml		$have_xml
39183  ZIP               --with-zip=$with_zip		$have_zip
39184  ZLIB              --with-zlib=$with_zlib		$have_zlib
39185  ZSTD              --with-zstd=$with_zstd		$have_zstd
39186
39187Delegate program configuration:
39188  GhostPCL          None			$PCLDelegate ($PCLVersion)
39189  GhostXPS          None			$XPSDelegate ($XPSVersion)
39190  Ghostscript       None			$PSDelegate ($GSVersion)
39191
39192Font configuration:
39193  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
39194  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39195  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir		$result_ghostscript_font_dir
39196  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir	$result_urw_base35_font_dir
39197  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39198
39199X11 configuration:
39200  X_CFLAGS        = $X_CFLAGS
39201  X_PRE_LIBS      = $X_PRE_LIBS
39202  X_LIBS          = $X_LIBS
39203  X_EXTRA_LIBS    = $X_EXTRA_LIBS
39204
39205Options used to compile and link:
39206  PREFIX          = $PREFIX_DIR
39207  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39208  VERSION         = $PACKAGE_VERSION
39209  CC              = $CC
39210  CFLAGS          = $CFLAGS
39211  CPPFLAGS        = $CPPFLAGS
39212  PCFLAGS         = $PCFLAGS
39213  DEFS            = $DEFS
39214  LDFLAGS         = $LDFLAGS
39215  LIBS            = $MAGICK_DEP_LIBS
39216  CXX             = $CXX
39217  CXXFLAGS        = $CXXFLAGS
39218  FEATURES        = $MAGICK_FEATURES
39219  DELEGATES       = $MAGICK_DELEGATES
39220==============================================================================
39221" >&5
39222$as_echo "$as_me:
39223==============================================================================
39224${PACKAGE_NAME} ${PACKAGE_VERSION} is configured as follows. Please verify that this
39225configuration matches your expectations.
39226
39227Host system type: $host
39228Build system type: $build
39229
39230                  Option                        Value
39231------------------------------------------------------------------------------
39232Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39233Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39234Build utilities   --with-utilities=$with_utilities		$with_utilities
39235Module support    --with-modules=$build_modules		$build_modules
39236GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39237Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39238High Dynamic Range Imagery
39239                  --enable-hdri=$enable_hdri		$enable_hdri
39240
39241Install documentation:				$wantdocs
39242
39243Memory allocation library:
39244  JEMalloc          --with-jemalloc=$with_jemalloc		$have_jemalloc
39245  TCMalloc          --with-tcmalloc=$with_tcmalloc		$have_tcmalloc
39246  UMem              --with-umem=$with_umem		$have_umem
39247
39248Delegate library configuration:
39249  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39250  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39251  DJVU              --with-djvu=$with_djvu		$have_djvu
39252  DPS               --with-dps=$with_dps		$have_dps
39253  FFTW              --with-fftw=$with_fftw		$have_fftw
39254  FLIF              --with-flif=$with_flif		$have_flif
39255  FlashPIX          --with-fpx=$with_fpx		$have_fpx
39256  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
39257  FreeType          --with-freetype=$with_freetype		$have_freetype
39258  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39259  Graphviz          --with-gvc=$with_gvc		$have_gvc
39260  HEIC              --with-heic=$with_heic		$have_heic
39261  JBIG              --with-jbig=$with_jbig		$have_jbig
39262  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39263  JPEG XL           --with-jxl=$with_jxl		$have_jxl
39264  LCMS              --with-lcms=$with_lcms		$have_lcms
39265  LQR               --with-lqr=$with_lqr		$have_lqr
39266  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39267  LZMA              --with-lzma=$with_lzma		$have_lzma
39268  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39269  OpenEXR           --with-openexr=$with_openexr		$have_openexr
39270  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
39271  PANGO             --with-pango=$with_pango		$have_pango
39272  PERL              --with-perl=$with_perl		$have_perl
39273  PNG               --with-png=$with_png		$have_png
39274  RAQM              --with-raqm=$with_raqm		$have_raqm
39275  RAW               --with-raw=$with_raw		$have_raw
39276  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
39277  TIFF              --with-tiff=$with_tiff		$have_tiff
39278  WEBP              --with-webp=$with_webp		$have_webp
39279  WMF               --with-wmf=$with_wmf		$have_wmf
39280  X11               --with-x=$with_x			$have_x
39281  XML               --with-xml=$with_xml		$have_xml
39282  ZIP               --with-zip=$with_zip		$have_zip
39283  ZLIB              --with-zlib=$with_zlib		$have_zlib
39284  ZSTD              --with-zstd=$with_zstd		$have_zstd
39285
39286Delegate program configuration:
39287  GhostPCL          None			$PCLDelegate ($PCLVersion)
39288  GhostXPS          None			$XPSDelegate ($XPSVersion)
39289  Ghostscript       None			$PSDelegate ($GSVersion)
39290
39291Font configuration:
39292  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
39293  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
39294  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir		$result_ghostscript_font_dir
39295  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir	$result_urw_base35_font_dir
39296  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
39297
39298X11 configuration:
39299  X_CFLAGS        = $X_CFLAGS
39300  X_PRE_LIBS      = $X_PRE_LIBS
39301  X_LIBS          = $X_LIBS
39302  X_EXTRA_LIBS    = $X_EXTRA_LIBS
39303
39304Options used to compile and link:
39305  PREFIX          = $PREFIX_DIR
39306  EXEC-PREFIX     = $EXEC_PREFIX_DIR
39307  VERSION         = $PACKAGE_VERSION
39308  CC              = $CC
39309  CFLAGS          = $CFLAGS
39310  CPPFLAGS        = $CPPFLAGS
39311  PCFLAGS         = $PCFLAGS
39312  DEFS            = $DEFS
39313  LDFLAGS         = $LDFLAGS
39314  LIBS            = $MAGICK_DEP_LIBS
39315  CXX             = $CXX
39316  CXXFLAGS        = $CXXFLAGS
39317  FEATURES        = $MAGICK_FEATURES
39318  DELEGATES       = $MAGICK_DELEGATES
39319==============================================================================
39320" >&6;}
39321