]> granicus.if.org Git - imagemagick/blob - configure
(no commit message)
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3.
4 #
5 # Report bugs to <http://www.imagemagick.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185   if (eval "$as_required") 2>/dev/null; then :
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197   IFS=$as_save_IFS
198   test -z "$as_dir" && as_dir=.
199   as_found=:
200   case $as_dir in #(
201          /*)
202            for as_base in sh bash ksh sh5; do
203              # Try only shells that exist, to save several forks.
204              as_shell=$as_dir/$as_base
205              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   CONFIG_SHELL=$as_shell as_have_required=yes
208                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   break 2
210 fi
211 fi
212            done;;
213        esac
214   as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218   CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223       if test "x$CONFIG_SHELL" != x; then :
224   # We cannot yet assume a decent shell, so we have to provide a
225         # neutralization value for shells without unset; and this also
226         # works around shells that cannot unset nonexistent variables.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.imagemagick.org about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 lt_ltdl_dir='ltdl'
542
543 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
545
546 test -n "$DJDIR" || exec 7<&0 </dev/null
547 exec 6>&1
548
549 # Name of the host.
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554 #
555 # Initializations.
556 #
557 ac_default_prefix=/usr/local
558 ac_clean_files=
559 ac_config_libobj_dir=.
560 LIBOBJS=
561 cross_compiling=no
562 subdirs=
563 MFLAGS=
564 MAKEFLAGS=
565
566 # Identity of this package.
567 PACKAGE_NAME='ImageMagick'
568 PACKAGE_TARNAME='ImageMagick'
569 PACKAGE_VERSION='6.6.3'
570 PACKAGE_STRING='ImageMagick 6.6.3'
571 PACKAGE_BUGREPORT='http://www.imagemagick.org'
572 PACKAGE_URL=''
573
574 ac_unique_file="magick/MagickCore.h"
575 ac_config_libobj_dir=ltdl
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='ltdl_LTLIBOBJS
614 ltdl_LIBOBJS
615 am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 MAGICK_FEATURES
619 MAGICK_LIBS
620 MAGICK_LDFLAGS
621 MAGICK_PCFLAGS
622 MAGICK_CPPFLAGS
623 MAGICK_CXXFLAGS
624 MAGICK_CFLAGS
625 MAGICK_DEP_LIBS
626 MAGICK_LTDLDEPS
627 MAGICK_LIBLTDL
628 OSX_GCOV_LDFLAG
629 DELEGATES
630 MAGICKCORE_PATH
631 PERL_SUPPORTS_DESTDIR
632 WITH_PERL_DYNAMIC_FALSE
633 WITH_PERL_DYNAMIC_TRUE
634 WITH_PERL_STATIC_FALSE
635 WITH_PERL_STATIC_TRUE
636 WITH_PERL_FALSE
637 WITH_PERL_TRUE
638 PERL_VERSION
639 GSVersion
640 GSPSDevice
641 GSPDFDevice
642 GSMonoDevice
643 GSEPSDevice
644 GSColorDevice
645 GSCMYKDevice
646 GSAlphaDevice
647 XPSVersion
648 XPSCMYKDevice
649 XPSColorDevice
650 XPSMonoDevice
651 PCLVersion
652 PCLCMYKDevice
653 PCLColorDevice
654 PCLMonoDevice
655 ZIP_DELEGATE_FALSE
656 ZIP_DELEGATE_TRUE
657 ZIP
658 P7ZIP_DELEGATE_FALSE
659 P7ZIP_DELEGATE_TRUE
660 P7ZIP
661 RPM_DELEGATE_FALSE
662 RPM_DELEGATE_TRUE
663 RPM
664 PERL
665 TAR
666 ShowImageDelegate
667 type_include_files
668 ghostscript_font_dir
669 windows_font_dir
670 dejavu_font_dir
671 PrintDelegate
672 ZipDelegate
673 XPSDelegate
674 WWWDecodeDelegate
675 WMFDecodeDelegate
676 UniconvertorDelegate
677 TXTDelegate
678 SCANDecodeDelegate
679 RSVGDecodeDelegate
680 RMDelegate
681 RLEEncodeDelegate
682 PSDelegate
683 POVDelegate
684 PGPDecodeDelegate
685 PCLDelegate
686 MVDelegate
687 MrSIDDecodeDelegate
688 MPEGEncodeDelegate
689 MPEGDecodeDelegate
690 MANDelegate
691 LaunchDelegate
692 LZWEncodeDelegate
693 LZWDecodeDelegate
694 LPRDelegate
695 LPDelegate
696 ILBMEncodeDelegate
697 ILBMDecodeDelegate
698 HTMLDecodeDelegate
699 HPGLDecodeDelegate
700 HDRDecodeDelegate
701 GnuplotDecodeDelegate
702 MogrifyDelegate
703 DisplayDelegate
704 ConvertDelegate
705 FIGDecodeDelegate
706 EditorDelegate
707 EchoDelegate
708 DVIDecodeDelegate
709 GVCDecodeDelegate
710 DNGDecodeDelegate
711 CatDelegate
712 CGMDecodeDelegate
713 BrowseDelegate
714 BZIPDelegate
715 BlenderDecodeDelegate
716 AVIDecodeDelegate
717 AutotraceDecodeDelegate
718 SHARE_CONFIGURE_PATH
719 SHARE_PATH
720 DOCUMENTATION_PATH
721 FILTER_PATH
722 CODER_PATH
723 CONFIGURE_PATH
724 LIBRARY_PATH
725 EXECUTABLE_PATH
726 PERLMAINCC
727 XML_LIBS
728 XML_DELEGATE_FALSE
729 XML_DELEGATE_TRUE
730 xml2_config
731 WMF_LIBS
732 WMF_DELEGATE_FALSE
733 WMF_DELEGATE_TRUE
734 TIFF_LIBS
735 TIFF_DELEGATE_FALSE
736 TIFF_DELEGATE_TRUE
737 CAIRO_DELEGATE_FALSE
738 CAIRO_DELEGATE_TRUE
739 RSVG_DELEGATE_FALSE
740 RSVG_DELEGATE_TRUE
741 CAIRO_SVG_LIBS
742 CAIRO_SVG_CFLAGS
743 RSVG_LIBS
744 RSVG_CFLAGS
745 PNG_LIBS
746 PNG_DELEGATE_FALSE
747 PNG_DELEGATE_TRUE
748 OPENEXR_DELEGATE_FALSE
749 OPENEXR_DELEGATE_TRUE
750 OPENEXR_LIBS
751 OPENEXR_CFLAGS
752 LQR_DELEGATE_FALSE
753 LQR_DELEGATE_TRUE
754 LQR_LIBS
755 LQR_CFLAGS
756 LCMS_LIBS
757 LCMS_DELEGATE_FALSE
758 LCMS_DELEGATE_TRUE
759 JP2_LIBS
760 JP2_DELEGATE_FALSE
761 JP2_DELEGATE_TRUE
762 JPEG_LIBS
763 JPEG_DELEGATE_FALSE
764 JPEG_DELEGATE_TRUE
765 JBIG_LIBS
766 JBIG_DELEGATE_FALSE
767 JBIG_DELEGATE_TRUE
768 GVC_DELEGATE_FALSE
769 GVC_DELEGATE_TRUE
770 GVC_LIBS
771 GVC_CFLAGS
772 GS_LIBS
773 GS_DELEGATE_FALSE
774 GS_DELEGATE_TRUE
775 FREETYPE_LIBS
776 FREETYPE_DELEGATE_FALSE
777 FREETYPE_DELEGATE_TRUE
778 freetype_config
779 FONTCONFIG_DELEGATE_FALSE
780 FONTCONFIG_DELEGATE_TRUE
781 FONTCONFIG_LIBS
782 FONTCONFIG_CFLAGS
783 FPX_LIBS
784 FPX_DELEGATE_FALSE
785 FPX_DELEGATE_TRUE
786 FFTW_LIBS
787 FFTW_DELEGATE_FALSE
788 FFTW_DELEGATE_TRUE
789 DJVU_LIBS
790 DJVU_DELEGATE_FALSE
791 DJVU_DELEGATE_TRUE
792 DPS_LIBS
793 DPS_DELEGATE_FALSE
794 DPS_DELEGATE_TRUE
795 AUTOTRACE_DELEGATE_FALSE
796 AUTOTRACE_DELEGATE_TRUE
797 AUTOTRACE_LIBS
798 AUTOTRACE_CFLAGS
799 LIB_DL
800 ZLIB_LIBS
801 ZLIB_DELEGATE_FALSE
802 ZLIB_DELEGATE_TRUE
803 XEXT_LIBS
804 X11_LIBS
805 X11_DELEGATE_FALSE
806 X11_DELEGATE_TRUE
807 X_EXTRA_LIBS
808 X_LIBS
809 X_PRE_LIBS
810 X_CFLAGS
811 XMKMF
812 BZLIB_LIBS
813 BZLIB_DELEGATE_FALSE
814 BZLIB_DELEGATE_TRUE
815 CCMALLOCDelegate
816 UMEM_LIBS
817 HasUMEM_FALSE
818 HasUMEM_TRUE
819 THREAD_LIBS
820 GOMP_LIBS
821 WITH_MAGICK_PLUS_PLUS_FALSE
822 WITH_MAGICK_PLUS_PLUS_TRUE
823 OPENMP_CXXFLAGS
824 MATH_LIBS
825 POW_LIB
826 LIBOBJS
827 UINTPTR_T
828 UINTMAX_T
829 UINT64_T
830 INT64_T
831 UINT32_T
832 INT32_T
833 UINT16_T
834 INT16_T
835 UINT8_T
836 INT8_T
837 LIBRARY_EXTRA_CPPFLAGS
838 MODULE_EXTRA_CPPFLAGS
839 LIBSTDCLDFLAGS
840 PERL_MAKE_OPTIONS
841 QUANTUM_DEPTH
842 MAINT
843 MAINTAINER_MODE_FALSE
844 MAINTAINER_MODE_TRUE
845 MAGICK_HDRI
846 DLLDFLAGS
847 WITH_LTDL_FALSE
848 WITH_LTDL_TRUE
849 WITH_MODULES_FALSE
850 WITH_MODULES_TRUE
851 WITH_SHARED_LIBS_FALSE
852 WITH_SHARED_LIBS_TRUE
853 LTDLOPEN
854 LT_CONFIG_H
855 CONVENIENCE_LTDL_FALSE
856 CONVENIENCE_LTDL_TRUE
857 INSTALL_LTDL_FALSE
858 INSTALL_LTDL_TRUE
859 ARGZ_H
860 sys_symbol_underscore
861 LIBADD_DL
862 LT_DLPREOPEN
863 LIBADD_DLD_LINK
864 LIBADD_SHL_LOAD
865 LIBADD_DLOPEN
866 LT_DLLOADERS
867 INCLTDL
868 LTDLINCL
869 LTDLDEPS
870 LIBLTDL
871 LIBTOOL_DEPS
872 CXXCPP
873 OTOOL64
874 OTOOL
875 LIPO
876 NMEDIT
877 DSYMUTIL
878 RANLIB
879 AR
880 NM
881 ac_ct_DUMPBIN
882 DUMPBIN
883 LIBTOOL
884 OBJDUMP
885 DLLTOOL
886 AS
887 LFS_CPPFLAGS
888 CL_LIBS
889 CL_CFLAGS
890 OPENMP_CFLAGS
891 PTHREAD_CFLAGS
892 PTHREAD_LIBS
893 PTHREAD_CC
894 ax_pthread_config
895 WinPathScript
896 USING_CL_FALSE
897 USING_CL_TRUE
898 CYGWIN_BUILD_FALSE
899 CYGWIN_BUILD_TRUE
900 WIN32_NATIVE_BUILD_FALSE
901 WIN32_NATIVE_BUILD_TRUE
902 WINGDI32_DELEGATE_FALSE
903 WINGDI32_DELEGATE_TRUE
904 GDI32_LIBS
905 PKG_CONFIG
906 LN_S
907 LD
908 FGREP
909 SED
910 am__fastdepCXX_FALSE
911 am__fastdepCXX_TRUE
912 CXXDEPMODE
913 ac_ct_CXX
914 CXXFLAGS
915 CXX
916 EGREP
917 GREP
918 CPP
919 am__fastdepCC_FALSE
920 am__fastdepCC_TRUE
921 CCDEPMODE
922 AMDEPBACKSLASH
923 AMDEP_FALSE
924 AMDEP_TRUE
925 am__quote
926 am__include
927 DEPDIR
928 OBJEXT
929 EXEEXT
930 ac_ct_CC
931 CPPFLAGS
932 LDFLAGS
933 CFLAGS
934 CC
935 DIRSEP
936 MAGICK_FILTER_MODULE_PATH
937 MAGICK_CONFIGURE_BUILD_PATH
938 MAGICK_CONFIGURE_SRC_PATH
939 MAGICK_CODER_MODULE_PATH
940 MAN_DIR
941 INFO_DIR
942 PERSISTINCLUDE_DIR
943 INCLUDE_DIR
944 LIB_DIR
945 LOCALSTATE_DIR
946 SHAREDSTATE_DIR
947 SYSCONF_DIR
948 DATA_DIR
949 LIBEXEC_DIR
950 SBIN_DIR
951 BIN_DIR
952 EXEC_PREFIX_DIR
953 PREFIX_DIR
954 CONFIG_STATUS_DEPENDENCIES
955 MAGICK_LIB_VERSION_NUMBER
956 MAGICK_LIB_VERSION_TEXT
957 MAGICK_LIB_VERSION
958 AM_BACKSLASH
959 AM_DEFAULT_VERBOSITY
960 am__untar
961 am__tar
962 AMTAR
963 am__leading_dot
964 SET_MAKE
965 AWK
966 mkdir_p
967 MKDIR_P
968 INSTALL_STRIP_PROGRAM
969 STRIP
970 install_sh
971 MAKEINFO
972 AUTOHEADER
973 AUTOMAKE
974 AUTOCONF
975 ACLOCAL
976 VERSION
977 PACKAGE
978 CYGPATH_W
979 am__isrc
980 INSTALL_DATA
981 INSTALL_SCRIPT
982 INSTALL_PROGRAM
983 PACKAGE_VERSION_ADDENDUM
984 PACKAGE_RELEASE_DATE
985 PACKAGE_LIB_VERSION_NUMBER
986 PACKAGE_LIB_VERSION
987 PACKAGE_CHANGE_DATE
988 PACKAGE_RELEASE
989 MAGICK_LIBRARY_VERSION_INFO
990 MAGICK_LIBRARY_CURRENT_MIN
991 MAGICK_LIBRARY_AGE
992 MAGICK_LIBRARY_REVISION
993 MAGICK_LIBRARY_CURRENT
994 MAGICK_TARGET_OS
995 MAGICK_TARGET_VENDOR
996 MAGICK_TARGET_CPU
997 target_os
998 target_vendor
999 target_cpu
1000 target
1001 host_os
1002 host_vendor
1003 host_cpu
1004 host
1005 build_os
1006 build_vendor
1007 build_cpu
1008 build
1009 CONFIGURE_ARGS
1010 DISTCHECK_CONFIG_FLAGS
1011 target_alias
1012 host_alias
1013 build_alias
1014 LIBS
1015 ECHO_T
1016 ECHO_N
1017 ECHO_C
1018 DEFS
1019 mandir
1020 localedir
1021 libdir
1022 psdir
1023 pdfdir
1024 dvidir
1025 htmldir
1026 infodir
1027 docdir
1028 oldincludedir
1029 includedir
1030 localstatedir
1031 sharedstatedir
1032 sysconfdir
1033 datadir
1034 datarootdir
1035 libexecdir
1036 sbindir
1037 bindir
1038 program_transform_name
1039 prefix
1040 exec_prefix
1041 PACKAGE_URL
1042 PACKAGE_BUGREPORT
1043 PACKAGE_STRING
1044 PACKAGE_VERSION
1045 PACKAGE_TARNAME
1046 PACKAGE_NAME
1047 PATH_SEPARATOR
1048 SHELL'
1049 ac_subst_files=''
1050 ac_user_opts='
1051 enable_option_checking
1052 enable_silent_rules
1053 enable_dependency_tracking
1054 with_gnu_ld
1055 with_dmalloc
1056 enable_bounds_checking
1057 enable_osx_universal_binary
1058 with_threads
1059 enable_openmp
1060 enable_opencl
1061 enable_largefile
1062 enable_shared
1063 enable_static
1064 with_pic
1065 enable_fast_install
1066 enable_libtool_lock
1067 with_included_ltdl
1068 with_ltdl_include
1069 with_ltdl_lib
1070 enable_ltdl_install
1071 with_modules
1072 enable_delegate_build
1073 enable_deprecated
1074 enable_installed
1075 enable_cipher
1076 enable_embeddable
1077 enable_hdri
1078 enable_assert
1079 enable_maintainer_mode
1080 enable_ccmalloc
1081 enable_efence
1082 enable_prof
1083 enable_gprof
1084 enable_gcov
1085 with_method_prefix
1086 with_quantum_depth
1087 with_cache
1088 with_frozenpaths
1089 with_magick_plus_plus
1090 with_perl
1091 with_perl_options
1092 with_umem
1093 with_libstdc
1094 with_bzlib
1095 with_x
1096 with_zlib
1097 with_autotrace
1098 with_dps
1099 with_djvu
1100 with_dejavu_font_dir
1101 with_fftw
1102 with_fpx
1103 with_fontconfig
1104 with_freetype
1105 with_gslib
1106 with_fontpath
1107 with_gs_font_dir
1108 with_gvc
1109 with_jbig
1110 with_jpeg
1111 with_jp2
1112 with_lcms
1113 with_lcms2
1114 with_lqr
1115 with_openexr
1116 with_png
1117 with_rsvg
1118 with_tiff
1119 with_windows_font_dir
1120 with_wmf
1121 with_xml
1122 '
1123       ac_precious_vars='build_alias
1124 host_alias
1125 target_alias
1126 CC
1127 CFLAGS
1128 LDFLAGS
1129 LIBS
1130 CPPFLAGS
1131 CPP
1132 CXX
1133 CXXFLAGS
1134 CCC
1135 PKG_CONFIG
1136 CXXCPP
1137 XMKMF
1138 AUTOTRACE_CFLAGS
1139 AUTOTRACE_LIBS
1140 FONTCONFIG_CFLAGS
1141 FONTCONFIG_LIBS
1142 GVC_CFLAGS
1143 GVC_LIBS
1144 LQR_CFLAGS
1145 LQR_LIBS
1146 OPENEXR_CFLAGS
1147 OPENEXR_LIBS
1148 RSVG_CFLAGS
1149 RSVG_LIBS
1150 CAIRO_SVG_CFLAGS
1151 CAIRO_SVG_LIBS'
1152
1153
1154 # Initialize some variables set by options.
1155 ac_init_help=
1156 ac_init_version=false
1157 ac_unrecognized_opts=
1158 ac_unrecognized_sep=
1159 # The variables have the same names as the options, with
1160 # dashes changed to underlines.
1161 cache_file=/dev/null
1162 exec_prefix=NONE
1163 no_create=
1164 no_recursion=
1165 prefix=NONE
1166 program_prefix=NONE
1167 program_suffix=NONE
1168 program_transform_name=s,x,x,
1169 silent=
1170 site=
1171 srcdir=
1172 verbose=
1173 x_includes=NONE
1174 x_libraries=NONE
1175
1176 # Installation directory options.
1177 # These are left unexpanded so users can "make install exec_prefix=/foo"
1178 # and all the variables that are supposed to be based on exec_prefix
1179 # by default will actually change.
1180 # Use braces instead of parens because sh, perl, etc. also accept them.
1181 # (The list follows the same order as the GNU Coding Standards.)
1182 bindir='${exec_prefix}/bin'
1183 sbindir='${exec_prefix}/sbin'
1184 libexecdir='${exec_prefix}/libexec'
1185 datarootdir='${prefix}/share'
1186 datadir='${datarootdir}'
1187 sysconfdir='${prefix}/etc'
1188 sharedstatedir='${prefix}/com'
1189 localstatedir='${prefix}/var'
1190 includedir='${prefix}/include'
1191 oldincludedir='/usr/include'
1192 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193 infodir='${datarootdir}/info'
1194 htmldir='${docdir}'
1195 dvidir='${docdir}'
1196 pdfdir='${docdir}'
1197 psdir='${docdir}'
1198 libdir='${exec_prefix}/lib'
1199 localedir='${datarootdir}/locale'
1200 mandir='${datarootdir}/man'
1201
1202 ac_prev=
1203 ac_dashdash=
1204 for ac_option
1205 do
1206   # If the previous option needs an argument, assign it.
1207   if test -n "$ac_prev"; then
1208     eval $ac_prev=\$ac_option
1209     ac_prev=
1210     continue
1211   fi
1212
1213   case $ac_option in
1214   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215   *)    ac_optarg=yes ;;
1216   esac
1217
1218   # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220   case $ac_dashdash$ac_option in
1221   --)
1222     ac_dashdash=yes ;;
1223
1224   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225     ac_prev=bindir ;;
1226   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227     bindir=$ac_optarg ;;
1228
1229   -build | --build | --buil | --bui | --bu)
1230     ac_prev=build_alias ;;
1231   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232     build_alias=$ac_optarg ;;
1233
1234   -cache-file | --cache-file | --cache-fil | --cache-fi \
1235   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236     ac_prev=cache_file ;;
1237   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239     cache_file=$ac_optarg ;;
1240
1241   --config-cache | -C)
1242     cache_file=config.cache ;;
1243
1244   -datadir | --datadir | --datadi | --datad)
1245     ac_prev=datadir ;;
1246   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247     datadir=$ac_optarg ;;
1248
1249   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250   | --dataroo | --dataro | --datar)
1251     ac_prev=datarootdir ;;
1252   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254     datarootdir=$ac_optarg ;;
1255
1256   -disable-* | --disable-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       as_fn_error $? "invalid feature name: $ac_useropt"
1261     ac_useropt_orig=$ac_useropt
1262     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263     case $ac_user_opts in
1264       *"
1265 "enable_$ac_useropt"
1266 "*) ;;
1267       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268          ac_unrecognized_sep=', ';;
1269     esac
1270     eval enable_$ac_useropt=no ;;
1271
1272   -docdir | --docdir | --docdi | --doc | --do)
1273     ac_prev=docdir ;;
1274   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275     docdir=$ac_optarg ;;
1276
1277   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278     ac_prev=dvidir ;;
1279   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280     dvidir=$ac_optarg ;;
1281
1282   -enable-* | --enable-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error $? "invalid feature name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "enable_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300   | --exec | --exe | --ex)
1301     ac_prev=exec_prefix ;;
1302   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304   | --exec=* | --exe=* | --ex=*)
1305     exec_prefix=$ac_optarg ;;
1306
1307   -gas | --gas | --ga | --g)
1308     # Obsolete; use --with-gas.
1309     with_gas=yes ;;
1310
1311   -help | --help | --hel | --he | -h)
1312     ac_init_help=long ;;
1313   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314     ac_init_help=recursive ;;
1315   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316     ac_init_help=short ;;
1317
1318   -host | --host | --hos | --ho)
1319     ac_prev=host_alias ;;
1320   -host=* | --host=* | --hos=* | --ho=*)
1321     host_alias=$ac_optarg ;;
1322
1323   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324     ac_prev=htmldir ;;
1325   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326   | --ht=*)
1327     htmldir=$ac_optarg ;;
1328
1329   -includedir | --includedir | --includedi | --included | --include \
1330   | --includ | --inclu | --incl | --inc)
1331     ac_prev=includedir ;;
1332   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333   | --includ=* | --inclu=* | --incl=* | --inc=*)
1334     includedir=$ac_optarg ;;
1335
1336   -infodir | --infodir | --infodi | --infod | --info | --inf)
1337     ac_prev=infodir ;;
1338   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339     infodir=$ac_optarg ;;
1340
1341   -libdir | --libdir | --libdi | --libd)
1342     ac_prev=libdir ;;
1343   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344     libdir=$ac_optarg ;;
1345
1346   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347   | --libexe | --libex | --libe)
1348     ac_prev=libexecdir ;;
1349   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350   | --libexe=* | --libex=* | --libe=*)
1351     libexecdir=$ac_optarg ;;
1352
1353   -localedir | --localedir | --localedi | --localed | --locale)
1354     ac_prev=localedir ;;
1355   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356     localedir=$ac_optarg ;;
1357
1358   -localstatedir | --localstatedir | --localstatedi | --localstated \
1359   | --localstate | --localstat | --localsta | --localst | --locals)
1360     ac_prev=localstatedir ;;
1361   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363     localstatedir=$ac_optarg ;;
1364
1365   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366     ac_prev=mandir ;;
1367   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368     mandir=$ac_optarg ;;
1369
1370   -nfp | --nfp | --nf)
1371     # Obsolete; use --without-fp.
1372     with_fp=no ;;
1373
1374   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375   | --no-cr | --no-c | -n)
1376     no_create=yes ;;
1377
1378   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380     no_recursion=yes ;;
1381
1382   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384   | --oldin | --oldi | --old | --ol | --o)
1385     ac_prev=oldincludedir ;;
1386   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389     oldincludedir=$ac_optarg ;;
1390
1391   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392     ac_prev=prefix ;;
1393   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394     prefix=$ac_optarg ;;
1395
1396   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397   | --program-pre | --program-pr | --program-p)
1398     ac_prev=program_prefix ;;
1399   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401     program_prefix=$ac_optarg ;;
1402
1403   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404   | --program-suf | --program-su | --program-s)
1405     ac_prev=program_suffix ;;
1406   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408     program_suffix=$ac_optarg ;;
1409
1410   -program-transform-name | --program-transform-name \
1411   | --program-transform-nam | --program-transform-na \
1412   | --program-transform-n | --program-transform- \
1413   | --program-transform | --program-transfor \
1414   | --program-transfo | --program-transf \
1415   | --program-trans | --program-tran \
1416   | --progr-tra | --program-tr | --program-t)
1417     ac_prev=program_transform_name ;;
1418   -program-transform-name=* | --program-transform-name=* \
1419   | --program-transform-nam=* | --program-transform-na=* \
1420   | --program-transform-n=* | --program-transform-=* \
1421   | --program-transform=* | --program-transfor=* \
1422   | --program-transfo=* | --program-transf=* \
1423   | --program-trans=* | --program-tran=* \
1424   | --progr-tra=* | --program-tr=* | --program-t=*)
1425     program_transform_name=$ac_optarg ;;
1426
1427   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428     ac_prev=pdfdir ;;
1429   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430     pdfdir=$ac_optarg ;;
1431
1432   -psdir | --psdir | --psdi | --psd | --ps)
1433     ac_prev=psdir ;;
1434   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435     psdir=$ac_optarg ;;
1436
1437   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438   | -silent | --silent | --silen | --sile | --sil)
1439     silent=yes ;;
1440
1441   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442     ac_prev=sbindir ;;
1443   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444   | --sbi=* | --sb=*)
1445     sbindir=$ac_optarg ;;
1446
1447   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449   | --sharedst | --shareds | --shared | --share | --shar \
1450   | --sha | --sh)
1451     ac_prev=sharedstatedir ;;
1452   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455   | --sha=* | --sh=*)
1456     sharedstatedir=$ac_optarg ;;
1457
1458   -site | --site | --sit)
1459     ac_prev=site ;;
1460   -site=* | --site=* | --sit=*)
1461     site=$ac_optarg ;;
1462
1463   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464     ac_prev=srcdir ;;
1465   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466     srcdir=$ac_optarg ;;
1467
1468   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469   | --syscon | --sysco | --sysc | --sys | --sy)
1470     ac_prev=sysconfdir ;;
1471   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473     sysconfdir=$ac_optarg ;;
1474
1475   -target | --target | --targe | --targ | --tar | --ta | --t)
1476     ac_prev=target_alias ;;
1477   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478     target_alias=$ac_optarg ;;
1479
1480   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481     verbose=yes ;;
1482
1483   -version | --version | --versio | --versi | --vers | -V)
1484     ac_init_version=: ;;
1485
1486   -with-* | --with-*)
1487     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488     # Reject names that are not valid shell variable names.
1489     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490       as_fn_error $? "invalid package name: $ac_useropt"
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "with_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval with_$ac_useropt=\$ac_optarg ;;
1501
1502   -without-* | --without-*)
1503     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504     # Reject names that are not valid shell variable names.
1505     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506       as_fn_error $? "invalid package name: $ac_useropt"
1507     ac_useropt_orig=$ac_useropt
1508     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509     case $ac_user_opts in
1510       *"
1511 "with_$ac_useropt"
1512 "*) ;;
1513       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514          ac_unrecognized_sep=', ';;
1515     esac
1516     eval with_$ac_useropt=no ;;
1517
1518   --x)
1519     # Obsolete; use --with-x.
1520     with_x=yes ;;
1521
1522   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523   | --x-incl | --x-inc | --x-in | --x-i)
1524     ac_prev=x_includes ;;
1525   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527     x_includes=$ac_optarg ;;
1528
1529   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531     ac_prev=x_libraries ;;
1532   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534     x_libraries=$ac_optarg ;;
1535
1536   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537 Try \`$0 --help' for more information"
1538     ;;
1539
1540   *=*)
1541     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542     # Reject names that are not valid shell variable names.
1543     case $ac_envvar in #(
1544       '' | [0-9]* | *[!_$as_cr_alnum]* )
1545       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1546     esac
1547     eval $ac_envvar=\$ac_optarg
1548     export $ac_envvar ;;
1549
1550   *)
1551     # FIXME: should be removed in autoconf 3.0.
1552     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556     ;;
1557
1558   esac
1559 done
1560
1561 if test -n "$ac_prev"; then
1562   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1563   as_fn_error $? "missing argument to $ac_option"
1564 fi
1565
1566 if test -n "$ac_unrecognized_opts"; then
1567   case $enable_option_checking in
1568     no) ;;
1569     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1570     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571   esac
1572 fi
1573
1574 # Check all directory arguments for consistency.
1575 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576                 datadir sysconfdir sharedstatedir localstatedir includedir \
1577                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578                 libdir localedir mandir
1579 do
1580   eval ac_val=\$$ac_var
1581   # Remove trailing slashes.
1582   case $ac_val in
1583     */ )
1584       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585       eval $ac_var=\$ac_val;;
1586   esac
1587   # Be sure to have absolute directory names.
1588   case $ac_val in
1589     [\\/$]* | ?:[\\/]* )  continue;;
1590     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591   esac
1592   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1593 done
1594
1595 # There might be people who depend on the old broken behavior: `$host'
1596 # used to hold the argument of --host etc.
1597 # FIXME: To remove some day.
1598 build=$build_alias
1599 host=$host_alias
1600 target=$target_alias
1601
1602 # FIXME: To remove some day.
1603 if test "x$host_alias" != x; then
1604   if test "x$build_alias" = x; then
1605     cross_compiling=maybe
1606     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607     If a cross compiler is detected then cross compile mode will be used" >&2
1608   elif test "x$build_alias" != "x$host_alias"; then
1609     cross_compiling=yes
1610   fi
1611 fi
1612
1613 ac_tool_prefix=
1614 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616 test "$silent" = yes && exec 6>/dev/null
1617
1618
1619 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620 ac_ls_di=`ls -di .` &&
1621 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1622   as_fn_error $? "working directory cannot be determined"
1623 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1624   as_fn_error $? "pwd does not report name of working directory"
1625
1626
1627 # Find the source files, if location was not specified.
1628 if test -z "$srcdir"; then
1629   ac_srcdir_defaulted=yes
1630   # Try the directory containing this script, then the parent directory.
1631   ac_confdir=`$as_dirname -- "$as_myself" ||
1632 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633          X"$as_myself" : 'X\(//\)[^/]' \| \
1634          X"$as_myself" : 'X\(//\)$' \| \
1635          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636 $as_echo X"$as_myself" |
1637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638             s//\1/
1639             q
1640           }
1641           /^X\(\/\/\)[^/].*/{
1642             s//\1/
1643             q
1644           }
1645           /^X\(\/\/\)$/{
1646             s//\1/
1647             q
1648           }
1649           /^X\(\/\).*/{
1650             s//\1/
1651             q
1652           }
1653           s/.*/./; q'`
1654   srcdir=$ac_confdir
1655   if test ! -r "$srcdir/$ac_unique_file"; then
1656     srcdir=..
1657   fi
1658 else
1659   ac_srcdir_defaulted=no
1660 fi
1661 if test ! -r "$srcdir/$ac_unique_file"; then
1662   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1663   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1664 fi
1665 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666 ac_abs_confdir=`(
1667         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1668         pwd)`
1669 # When building in place, set srcdir=.
1670 if test "$ac_abs_confdir" = "$ac_pwd"; then
1671   srcdir=.
1672 fi
1673 # Remove unnecessary trailing slashes from srcdir.
1674 # Double slashes in file names in object file debugging info
1675 # mess up M-x gdb in Emacs.
1676 case $srcdir in
1677 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678 esac
1679 for ac_var in $ac_precious_vars; do
1680   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681   eval ac_env_${ac_var}_value=\$${ac_var}
1682   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684 done
1685
1686 #
1687 # Report the --help message.
1688 #
1689 if test "$ac_init_help" = "long"; then
1690   # Omit some internal or obsolete options to make the list less imposing.
1691   # This message is too long to be a string in the A/UX 3.1 sh.
1692   cat <<_ACEOF
1693 \`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
1694
1695 Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698 VAR=VALUE.  See below for descriptions of some of the useful variables.
1699
1700 Defaults for the options are specified in brackets.
1701
1702 Configuration:
1703   -h, --help              display this help and exit
1704       --help=short        display options specific to this package
1705       --help=recursive    display the short help of all the included packages
1706   -V, --version           display version information and exit
1707   -q, --quiet, --silent   do not print \`checking ...' messages
1708       --cache-file=FILE   cache test results in FILE [disabled]
1709   -C, --config-cache      alias for \`--cache-file=config.cache'
1710   -n, --no-create         do not create output files
1711       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1712
1713 Installation directories:
1714   --prefix=PREFIX         install architecture-independent files in PREFIX
1715                           [$ac_default_prefix]
1716   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1717                           [PREFIX]
1718
1719 By default, \`make install' will install all the files in
1720 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1721 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722 for instance \`--prefix=\$HOME'.
1723
1724 For better control, use the options below.
1725
1726 Fine tuning of the installation directories:
1727   --bindir=DIR            user executables [EPREFIX/bin]
1728   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1729   --libexecdir=DIR        program executables [EPREFIX/libexec]
1730   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1731   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1732   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1733   --libdir=DIR            object code libraries [EPREFIX/lib]
1734   --includedir=DIR        C header files [PREFIX/include]
1735   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1736   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1737   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1738   --infodir=DIR           info documentation [DATAROOTDIR/info]
1739   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1740   --mandir=DIR            man documentation [DATAROOTDIR/man]
1741   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1742   --htmldir=DIR           html documentation [DOCDIR]
1743   --dvidir=DIR            dvi documentation [DOCDIR]
1744   --pdfdir=DIR            pdf documentation [DOCDIR]
1745   --psdir=DIR             ps documentation [DOCDIR]
1746 _ACEOF
1747
1748   cat <<\_ACEOF
1749
1750 Program names:
1751   --program-prefix=PREFIX            prepend PREFIX to installed program names
1752   --program-suffix=SUFFIX            append SUFFIX to installed program names
1753   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1754
1755 X features:
1756   --x-includes=DIR    X include files are in DIR
1757   --x-libraries=DIR   X library files are in DIR
1758
1759 System types:
1760   --build=BUILD     configure for building on BUILD [guessed]
1761   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1762   --target=TARGET   configure for building compilers for TARGET [HOST]
1763 _ACEOF
1764 fi
1765
1766 if test -n "$ac_init_help"; then
1767   case $ac_init_help in
1768      short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
1769    esac
1770   cat <<\_ACEOF
1771
1772 Optional Features:
1773   --disable-option-checking  ignore unrecognized --enable/--with options
1774   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1775   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1776   --enable-silent-rules          less verbose build output (undo: `make V=1')
1777   --disable-silent-rules         verbose build output (undo: `make V=0')
1778   --disable-dependency-tracking  speeds up one-time build
1779   --enable-dependency-tracking   do not reject slow dependency extractors
1780   --bounds-checking       enable run-time bounds-checking
1781   --enable-osx-universal-binary
1782                           build universal binary on OS X [[default=no]]
1783   --disable-openmp        do not use OpenMP
1784   --disable-opencl        do not use OpenCL
1785   --disable-largefile     omit support for large files
1786   --enable-shared[=PKGS]  build shared libraries [default=yes]
1787   --enable-static[=PKGS]  build static libraries [default=yes]
1788   --enable-fast-install[=PKGS]
1789                           optimize for fast installation [default=yes]
1790   --disable-libtool-lock  avoid locking (might break parallel builds)
1791   --enable-ltdl-install   install libltdl
1792   --enable-delegate-build look for delegate libraries in build directory
1793   --disable-deprecated    exclude deprecated methods in MagickCore and
1794                           MagickWand API's
1795   --disable-installed     Formally install ImageMagick under PREFIX
1796   --disable-cipher        disable enciphering and deciphering image pixels
1797   --enable-embeddable     enable self-contained, embeddable,
1798                           zero-configuration ImageMagick
1799   --enable-hdri           accurately represent the wide range of intensity
1800                           levels found in real scenes
1801   --disable-assert        disable assert() statements in build
1802   --enable-maintainer-mode  enable make rules and dependencies not useful
1803                           (and sometimes confusing) to the casual installer
1804   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1805   --enable-efence         enable 'efence' memory debug support
1806   --enable-prof           enable 'prof' profiling support
1807   --enable-gprof          enable 'gprof' profiling support
1808   --enable-gcov           enable 'gcov' profiling support
1809   --disable-assert        turn off assertions
1810
1811 Optional Packages:
1812   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1813   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1814   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1815   --with-dmalloc          use dmalloc, as in
1816                           http://www.dmalloc.com/dmalloc.tar.gz
1817   --without-threads       disable threads support
1818   --with-pic              try to use only PIC/non-PIC objects [default=use
1819                           both]
1820   --with-included-ltdl    use the GNU ltdl sources included here
1821   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1823   --with-modules          enable building dynamically loadable modules
1824   --with-method-prefix=PREFIX
1825                           prefix MagickCore API methods
1826   --with-quantum-depth=DEPTH
1827                           number of bits in a pixel quantum (default 16)
1828   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1829                           memory)
1830   --with-frozenpaths      freeze delegate paths
1831   --without-magick-plus-plus
1832                           disable build/install of Magick++
1833   --with-perl             enable build/install of PerlMagick
1834   --with-perl-options=OPTIONS
1835                           options to pass on command-line when generating
1836                           PerlMagick's build file
1837   --with-umem             enable umem memory allocation library support
1838   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1839   --without-bzlib         disable BZLIB support
1840   --with-x                use the X Window System
1841   --without-zlib          disable ZLIB support
1842   --with-autotrace        enable autotrace support
1843   --without-dps           disable Display Postscript support
1844   --without-djvu          disable DjVu support
1845   --with-dejavu-font-dir=DIR
1846                           DejaVu font directory
1847   --without-fftw          disable FFTW support
1848   --without-fpx           disable FlashPIX support
1849   --without-fontconfig    disable fontconfig support
1850   --without-freetype      disable Freetype support
1851   --without-gslib         enable Ghostscript library support
1852   --with-fontpath=DIR     prepend to default font search path
1853   --with-gs-font-dir=DIR  Ghostscript font directory
1854   --without-gvc           disable GVC support
1855   --without-jbig          disable JBIG support
1856   --without-jpeg          disable JPEG support
1857   --without-jp2           disable JPEG-2000 support
1858   --without-lcms          disable lcms (v1.1X) support
1859   --without-lcms2         disable lcms (v2.X) support
1860   --without-lqr           disable Liquid Rescale support
1861   --without-openexr       disable OpenEXR support
1862   --without-png           disable PNG support
1863   --without-rsvg          disable RSVG support
1864   --without-tiff          disable TIFF support
1865   --with-windows-font-dir=DIR
1866                           directory containing MS-Windows fonts
1867   --without-wmf           disable WMF support
1868   --without-xml           disable XML support
1869
1870 Some influential environment variables:
1871   CC          C compiler command
1872   CFLAGS      C compiler flags
1873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1874               nonstandard directory <lib dir>
1875   LIBS        libraries to pass to the linker, e.g. -l<library>
1876   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1877               you have headers in a nonstandard directory <include dir>
1878   CPP         C preprocessor
1879   CXX         C++ compiler command
1880   CXXFLAGS    C++ compiler flags
1881   PKG_CONFIG  path to pkg-config utility
1882   CXXCPP      C++ preprocessor
1883   XMKMF       Path to xmkmf, Makefile generator for X Window System
1884   AUTOTRACE_CFLAGS
1885               C compiler flags for AUTOTRACE, overriding pkg-config
1886   AUTOTRACE_LIBS
1887               linker flags for AUTOTRACE, overriding pkg-config
1888   FONTCONFIG_CFLAGS
1889               C compiler flags for FONTCONFIG, overriding pkg-config
1890   FONTCONFIG_LIBS
1891               linker flags for FONTCONFIG, overriding pkg-config
1892   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1893   GVC_LIBS    linker flags for GVC, overriding pkg-config
1894   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1895   LQR_LIBS    linker flags for LQR, overriding pkg-config
1896   OPENEXR_CFLAGS
1897               C compiler flags for OPENEXR, overriding pkg-config
1898   OPENEXR_LIBS
1899               linker flags for OPENEXR, overriding pkg-config
1900   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1902   CAIRO_SVG_CFLAGS
1903               C compiler flags for CAIRO_SVG, overriding pkg-config
1904   CAIRO_SVG_LIBS
1905               linker flags for CAIRO_SVG, overriding pkg-config
1906
1907 Use these variables to override the choices made by `configure' or to help
1908 it to find libraries and programs with nonstandard names/locations.
1909
1910 Report bugs to <http://www.imagemagick.org>.
1911 _ACEOF
1912 ac_status=$?
1913 fi
1914
1915 if test "$ac_init_help" = "recursive"; then
1916   # If there are subdirs, report their specific --help.
1917   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918     test -d "$ac_dir" ||
1919       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920       continue
1921     ac_builddir=.
1922
1923 case "$ac_dir" in
1924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925 *)
1926   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927   # A ".." for each directory in $ac_dir_suffix.
1928   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929   case $ac_top_builddir_sub in
1930   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932   esac ;;
1933 esac
1934 ac_abs_top_builddir=$ac_pwd
1935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936 # for backward compatibility:
1937 ac_top_builddir=$ac_top_build_prefix
1938
1939 case $srcdir in
1940   .)  # We are building in place.
1941     ac_srcdir=.
1942     ac_top_srcdir=$ac_top_builddir_sub
1943     ac_abs_top_srcdir=$ac_pwd ;;
1944   [\\/]* | ?:[\\/]* )  # Absolute name.
1945     ac_srcdir=$srcdir$ac_dir_suffix;
1946     ac_top_srcdir=$srcdir
1947     ac_abs_top_srcdir=$srcdir ;;
1948   *) # Relative name.
1949     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950     ac_top_srcdir=$ac_top_build_prefix$srcdir
1951     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952 esac
1953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955     cd "$ac_dir" || { ac_status=$?; continue; }
1956     # Check for guested configure.
1957     if test -f "$ac_srcdir/configure.gnu"; then
1958       echo &&
1959       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960     elif test -f "$ac_srcdir/configure"; then
1961       echo &&
1962       $SHELL "$ac_srcdir/configure" --help=recursive
1963     else
1964       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965     fi || ac_status=$?
1966     cd "$ac_pwd" || { ac_status=$?; break; }
1967   done
1968 fi
1969
1970 test -n "$ac_init_help" && exit $ac_status
1971 if $ac_init_version; then
1972   cat <<\_ACEOF
1973 ImageMagick configure 6.6.3
1974 generated by GNU Autoconf 2.66
1975
1976 Copyright (C) 2010 Free Software Foundation, Inc.
1977 This configure script is free software; the Free Software Foundation
1978 gives unlimited permission to copy, distribute and modify it.
1979 _ACEOF
1980   exit
1981 fi
1982
1983 ## ------------------------ ##
1984 ## Autoconf initialization. ##
1985 ## ------------------------ ##
1986
1987 # ac_fn_c_try_compile LINENO
1988 # --------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_c_try_compile ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   rm -f conftest.$ac_objext
1994   if { { ac_try="$ac_compile"
1995 case "(($ac_try" in
1996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997   *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001   (eval "$ac_compile") 2>conftest.err
2002   ac_status=$?
2003   if test -s conftest.err; then
2004     grep -v '^ *+' conftest.err >conftest.er1
2005     cat conftest.er1 >&5
2006     mv -f conftest.er1 conftest.err
2007   fi
2008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009   test $ac_status = 0; } && {
2010          test -z "$ac_c_werror_flag" ||
2011          test ! -s conftest.err
2012        } && test -s conftest.$ac_objext; then :
2013   ac_retval=0
2014 else
2015   $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018         ac_retval=1
2019 fi
2020   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021   as_fn_set_status $ac_retval
2022
2023 } # ac_fn_c_try_compile
2024
2025 # ac_fn_c_try_cpp LINENO
2026 # ----------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_c_try_cpp ()
2029 {
2030   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031   if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 case "(($ac_try" in
2033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034   *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039   ac_status=$?
2040   if test -s conftest.err; then
2041     grep -v '^ *+' conftest.err >conftest.er1
2042     cat conftest.er1 >&5
2043     mv -f conftest.er1 conftest.err
2044   fi
2045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046   test $ac_status = 0; } >/dev/null && {
2047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048          test ! -s conftest.err
2049        }; then :
2050   ac_retval=0
2051 else
2052   $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055     ac_retval=1
2056 fi
2057   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058   as_fn_set_status $ac_retval
2059
2060 } # ac_fn_c_try_cpp
2061
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2066 # accordingly.
2067 ac_fn_c_check_header_mongrel ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   if eval "test \"\${$3+set}\"" = set; then :
2071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval "test \"\${$3+set}\"" = set; then :
2074   $as_echo_n "(cached) " >&6
2075 fi
2076 eval ac_res=\$$3
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 else
2080   # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   ac_header_compiler=yes
2090 else
2091   ac_header_compiler=no
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2096
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h.  */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105   ac_header_preproc=yes
2106 else
2107   ac_header_preproc=no
2108 fi
2109 rm -f conftest.err conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2112
2113 # So?  What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115   yes:no: )
2116     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120     ;;
2121   no:yes:* )
2122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2126     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## ----------------------------------------- ##
2133 ## Report this to http://www.imagemagick.org ##
2134 ## ----------------------------------------- ##"
2135      ) | sed "s/^/$as_me: WARNING:     /" >&2
2136     ;;
2137 esac
2138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval "test \"\${$3+set}\"" = set; then :
2141   $as_echo_n "(cached) " >&6
2142 else
2143   eval "$3=\$ac_header_compiler"
2144 fi
2145 eval ac_res=\$$3
2146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 fi
2149   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151 } # ac_fn_c_check_header_mongrel
2152
2153 # ac_fn_c_try_run LINENO
2154 # ----------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_c_try_run ()
2158 {
2159   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160   if { { ac_try="$ac_link"
2161 case "(($ac_try" in
2162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163   *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167   (eval "$ac_link") 2>&5
2168   ac_status=$?
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171   { { case "(($ac_try" in
2172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173   *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177   (eval "$ac_try") 2>&5
2178   ac_status=$?
2179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180   test $ac_status = 0; }; }; then :
2181   ac_retval=0
2182 else
2183   $as_echo "$as_me: program exited with status $ac_status" >&5
2184        $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187        ac_retval=$ac_status
2188 fi
2189   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191   as_fn_set_status $ac_retval
2192
2193 } # ac_fn_c_try_run
2194
2195 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196 # -------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_c_check_header_compile ()
2200 {
2201   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval "test \"\${$3+set}\"" = set; then :
2205   $as_echo_n "(cached) " >&6
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213   eval "$3=yes"
2214 else
2215   eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224 } # ac_fn_c_check_header_compile
2225
2226 # ac_fn_cxx_try_compile LINENO
2227 # ----------------------------
2228 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_cxx_try_compile ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   rm -f conftest.$ac_objext
2233   if { { ac_try="$ac_compile"
2234 case "(($ac_try" in
2235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236   *) ac_try_echo=$ac_try;;
2237 esac
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240   (eval "$ac_compile") 2>conftest.err
2241   ac_status=$?
2242   if test -s conftest.err; then
2243     grep -v '^ *+' conftest.err >conftest.er1
2244     cat conftest.er1 >&5
2245     mv -f conftest.er1 conftest.err
2246   fi
2247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248   test $ac_status = 0; } && {
2249          test -z "$ac_cxx_werror_flag" ||
2250          test ! -s conftest.err
2251        } && test -s conftest.$ac_objext; then :
2252   ac_retval=0
2253 else
2254   $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2256
2257         ac_retval=1
2258 fi
2259   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260   as_fn_set_status $ac_retval
2261
2262 } # ac_fn_cxx_try_compile
2263
2264 # ac_fn_c_try_link LINENO
2265 # -----------------------
2266 # Try to link conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_c_try_link ()
2268 {
2269   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270   rm -f conftest.$ac_objext conftest$ac_exeext
2271   if { { ac_try="$ac_link"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278   (eval "$ac_link") 2>conftest.err
2279   ac_status=$?
2280   if test -s conftest.err; then
2281     grep -v '^ *+' conftest.err >conftest.er1
2282     cat conftest.er1 >&5
2283     mv -f conftest.er1 conftest.err
2284   fi
2285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286   test $ac_status = 0; } && {
2287          test -z "$ac_c_werror_flag" ||
2288          test ! -s conftest.err
2289        } && test -s conftest$ac_exeext && {
2290          test "$cross_compiling" = yes ||
2291          $as_test_x conftest$ac_exeext
2292        }; then :
2293   ac_retval=0
2294 else
2295   $as_echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298         ac_retval=1
2299 fi
2300   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302   # interfere with the next link command; also delete a directory that is
2303   # left behind by Apple's compiler.  We do this before executing the actions.
2304   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306   as_fn_set_status $ac_retval
2307
2308 } # ac_fn_c_try_link
2309
2310 # ac_fn_c_check_func LINENO FUNC VAR
2311 # ----------------------------------
2312 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2313 ac_fn_c_check_func ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval "test \"\${$3+set}\"" = set; then :
2319   $as_echo_n "(cached) " >&6
2320 else
2321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h.  */
2323 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2325 #define $2 innocuous_$2
2326
2327 /* System header to define __stub macros and hopefully few prototypes,
2328     which can conflict with char $2 (); below.
2329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330     <limits.h> exists even on freestanding compilers.  */
2331
2332 #ifdef __STDC__
2333 # include <limits.h>
2334 #else
2335 # include <assert.h>
2336 #endif
2337
2338 #undef $2
2339
2340 /* Override any GCC internal prototype to avoid an error.
2341    Use char because int might match the return type of a GCC
2342    builtin and then its argument prototype would still apply.  */
2343 #ifdef __cplusplus
2344 extern "C"
2345 #endif
2346 char $2 ();
2347 /* The GNU C library defines this for functions which it implements
2348     to always fail with ENOSYS.  Some functions are actually named
2349     something starting with __ and the normal name is an alias.  */
2350 #if defined __stub_$2 || defined __stub___$2
2351 choke me
2352 #endif
2353
2354 int
2355 main ()
2356 {
2357 return $2 ();
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_link "$LINENO"; then :
2363   eval "$3=yes"
2364 else
2365   eval "$3=no"
2366 fi
2367 rm -f core conftest.err conftest.$ac_objext \
2368     conftest$ac_exeext conftest.$ac_ext
2369 fi
2370 eval ac_res=\$$3
2371                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375 } # ac_fn_c_check_func
2376
2377 # ac_fn_cxx_try_cpp LINENO
2378 # ------------------------
2379 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380 ac_fn_cxx_try_cpp ()
2381 {
2382   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383   if { { ac_try="$ac_cpp conftest.$ac_ext"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 $as_echo "$ac_try_echo"; } >&5
2390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391   ac_status=$?
2392   if test -s conftest.err; then
2393     grep -v '^ *+' conftest.err >conftest.er1
2394     cat conftest.er1 >&5
2395     mv -f conftest.er1 conftest.err
2396   fi
2397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398   test $ac_status = 0; } >/dev/null && {
2399          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400          test ! -s conftest.err
2401        }; then :
2402   ac_retval=0
2403 else
2404   $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407     ac_retval=1
2408 fi
2409   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410   as_fn_set_status $ac_retval
2411
2412 } # ac_fn_cxx_try_cpp
2413
2414 # ac_fn_cxx_try_link LINENO
2415 # -------------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2417 ac_fn_cxx_try_link ()
2418 {
2419   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420   rm -f conftest.$ac_objext conftest$ac_exeext
2421   if { { ac_try="$ac_link"
2422 case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428   (eval "$ac_link") 2>conftest.err
2429   ac_status=$?
2430   if test -s conftest.err; then
2431     grep -v '^ *+' conftest.err >conftest.er1
2432     cat conftest.er1 >&5
2433     mv -f conftest.er1 conftest.err
2434   fi
2435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436   test $ac_status = 0; } && {
2437          test -z "$ac_cxx_werror_flag" ||
2438          test ! -s conftest.err
2439        } && test -s conftest$ac_exeext && {
2440          test "$cross_compiling" = yes ||
2441          $as_test_x conftest$ac_exeext
2442        }; then :
2443   ac_retval=0
2444 else
2445   $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448         ac_retval=1
2449 fi
2450   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452   # interfere with the next link command; also delete a directory that is
2453   # left behind by Apple's compiler.  We do this before executing the actions.
2454   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456   as_fn_set_status $ac_retval
2457
2458 } # ac_fn_cxx_try_link
2459
2460 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461 # ---------------------------------------------
2462 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463 # accordingly.
2464 ac_fn_c_check_decl ()
2465 {
2466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467   as_decl_name=`echo $2|sed 's/ *(.*//'`
2468   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471 if eval "test \"\${$3+set}\"" = set; then :
2472   $as_echo_n "(cached) " >&6
2473 else
2474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h.  */
2476 $4
2477 int
2478 main ()
2479 {
2480 #ifndef $as_decl_name
2481 #ifdef __cplusplus
2482   (void) $as_decl_use;
2483 #else
2484   (void) $as_decl_name;
2485 #endif
2486 #endif
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493   eval "$3=yes"
2494 else
2495   eval "$3=no"
2496 fi
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 fi
2499 eval ac_res=\$$3
2500                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501 $as_echo "$ac_res" >&6; }
2502   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504 } # ac_fn_c_check_decl
2505
2506 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507 # -------------------------------------------
2508 # Tests whether TYPE exists after having included INCLUDES, setting cache
2509 # variable VAR accordingly.
2510 ac_fn_c_check_type ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval "test \"\${$3+set}\"" = set; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   eval "$3=no"
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 $4
2522 int
2523 main ()
2524 {
2525 if (sizeof ($2))
2526          return 0;
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 if ac_fn_c_try_compile "$LINENO"; then :
2532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h.  */
2534 $4
2535 int
2536 main ()
2537 {
2538 if (sizeof (($2)))
2539             return 0;
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545
2546 else
2547   eval "$3=yes"
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 eval ac_res=\$$3
2554                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558 } # ac_fn_c_check_type
2559
2560 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561 # ----------------------------------------------------
2562 # Tries to find if the field MEMBER exists in type AGGR, after including
2563 # INCLUDES, setting cache variable VAR accordingly.
2564 ac_fn_c_check_member ()
2565 {
2566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568 $as_echo_n "checking for $2.$3... " >&6; }
2569 if eval "test \"\${$4+set}\"" = set; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $5
2575 int
2576 main ()
2577 {
2578 static $2 ac_aggr;
2579 if (ac_aggr.$3)
2580 return 0;
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2586   eval "$4=yes"
2587 else
2588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 $5
2591 int
2592 main ()
2593 {
2594 static $2 ac_aggr;
2595 if (sizeof ac_aggr.$3)
2596 return 0;
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602   eval "$4=yes"
2603 else
2604   eval "$4=no"
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 fi
2610 eval ac_res=\$$4
2611                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615 } # ac_fn_c_check_member
2616
2617 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618 # --------------------------------------------
2619 # Tries to find the compile-time value of EXPR in a program that includes
2620 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2621 # computed
2622 ac_fn_c_compute_int ()
2623 {
2624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625   if test "$cross_compiling" = yes; then
2626     # Depending upon the size, compute the lo and hi bounds.
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h.  */
2629 $4
2630 int
2631 main ()
2632 {
2633 static int test_array [1 - 2 * !(($2) >= 0)];
2634 test_array [0] = 0
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641   ac_lo=0 ac_mid=0
2642   while :; do
2643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h.  */
2645 $4
2646 int
2647 main ()
2648 {
2649 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650 test_array [0] = 0
2651
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2657   ac_hi=$ac_mid; break
2658 else
2659   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660                         if test $ac_lo -le $ac_mid; then
2661                           ac_lo= ac_hi=
2662                           break
2663                         fi
2664                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667   done
2668 else
2669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h.  */
2671 $4
2672 int
2673 main ()
2674 {
2675 static int test_array [1 - 2 * !(($2) < 0)];
2676 test_array [0] = 0
2677
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 if ac_fn_c_try_compile "$LINENO"; then :
2683   ac_hi=-1 ac_mid=-1
2684   while :; do
2685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h.  */
2687 $4
2688 int
2689 main ()
2690 {
2691 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692 test_array [0] = 0
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699   ac_lo=$ac_mid; break
2700 else
2701   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702                         if test $ac_mid -le $ac_hi; then
2703                           ac_lo= ac_hi=
2704                           break
2705                         fi
2706                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709   done
2710 else
2711   ac_lo= ac_hi=
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 # Binary search between lo and hi bounds.
2717 while test "x$ac_lo" != "x$ac_hi"; do
2718   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $4
2722 int
2723 main ()
2724 {
2725 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726 test_array [0] = 0
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733   ac_hi=$ac_mid
2734 else
2735   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 done
2739 case $ac_lo in #((
2740 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741 '') ac_retval=1 ;;
2742 esac
2743   else
2744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 static long int longval () { return $2; }
2748 static unsigned long int ulongval () { return $2; }
2749 #include <stdio.h>
2750 #include <stdlib.h>
2751 int
2752 main ()
2753 {
2754
2755   FILE *f = fopen ("conftest.val", "w");
2756   if (! f)
2757     return 1;
2758   if (($2) < 0)
2759     {
2760       long int i = longval ();
2761       if (i != ($2))
2762         return 1;
2763       fprintf (f, "%ld", i);
2764     }
2765   else
2766     {
2767       unsigned long int i = ulongval ();
2768       if (i != ($2))
2769         return 1;
2770       fprintf (f, "%lu", i);
2771     }
2772   /* Do not output a trailing newline, as this causes \r\n confusion
2773      on some platforms.  */
2774   return ferror (f) || fclose (f) != 0;
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_run "$LINENO"; then :
2781   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782 else
2783   ac_retval=1
2784 fi
2785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786   conftest.$ac_objext conftest.beam conftest.$ac_ext
2787 rm -f conftest.val
2788
2789   fi
2790   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791   as_fn_set_status $ac_retval
2792
2793 } # ac_fn_c_compute_int
2794
2795 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796 # ---------------------------------------------------------
2797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798 # the include files in INCLUDES and setting the cache variable VAR
2799 # accordingly.
2800 ac_fn_cxx_check_header_mongrel ()
2801 {
2802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803   if eval "test \"\${$3+set}\"" = set; then :
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805 $as_echo_n "checking for $2... " >&6; }
2806 if eval "test \"\${$3+set}\"" = set; then :
2807   $as_echo_n "(cached) " >&6
2808 fi
2809 eval ac_res=\$$3
2810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811 $as_echo "$ac_res" >&6; }
2812 else
2813   # Is the header compilable?
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815 $as_echo_n "checking $2 usability... " >&6; }
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h.  */
2818 $4
2819 #include <$2>
2820 _ACEOF
2821 if ac_fn_cxx_try_compile "$LINENO"; then :
2822   ac_header_compiler=yes
2823 else
2824   ac_header_compiler=no
2825 fi
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828 $as_echo "$ac_header_compiler" >&6; }
2829
2830 # Is the header present?
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832 $as_echo_n "checking $2 presence... " >&6; }
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h.  */
2835 #include <$2>
2836 _ACEOF
2837 if ac_fn_cxx_try_cpp "$LINENO"; then :
2838   ac_header_preproc=yes
2839 else
2840   ac_header_preproc=no
2841 fi
2842 rm -f conftest.err conftest.$ac_ext
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844 $as_echo "$ac_header_preproc" >&6; }
2845
2846 # So?  What about this header?
2847 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848   yes:no: )
2849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853     ;;
2854   no:yes:* )
2855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2865 ( $as_echo "## ----------------------------------------- ##
2866 ## Report this to http://www.imagemagick.org ##
2867 ## ----------------------------------------- ##"
2868      ) | sed "s/^/$as_me: WARNING:     /" >&2
2869     ;;
2870 esac
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872 $as_echo_n "checking for $2... " >&6; }
2873 if eval "test \"\${$3+set}\"" = set; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   eval "$3=\$ac_header_compiler"
2877 fi
2878 eval ac_res=\$$3
2879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880 $as_echo "$ac_res" >&6; }
2881 fi
2882   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884 } # ac_fn_cxx_check_header_mongrel
2885 cat >config.log <<_ACEOF
2886 This file contains any messages produced by compilers while
2887 running configure, to aid debugging if configure makes a mistake.
2888
2889 It was created by ImageMagick $as_me 6.6.3, which was
2890 generated by GNU Autoconf 2.66.  Invocation command line was
2891
2892   $ $0 $@
2893
2894 _ACEOF
2895 exec 5>>config.log
2896 {
2897 cat <<_ASUNAME
2898 ## --------- ##
2899 ## Platform. ##
2900 ## --------- ##
2901
2902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2910
2911 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2912 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2915 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2916 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2917 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2918
2919 _ASUNAME
2920
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926     $as_echo "PATH: $as_dir"
2927   done
2928 IFS=$as_save_IFS
2929
2930 } >&5
2931
2932 cat >&5 <<_ACEOF
2933
2934
2935 ## ----------- ##
2936 ## Core tests. ##
2937 ## ----------- ##
2938
2939 _ACEOF
2940
2941
2942 # Keep a trace of the command line.
2943 # Strip out --no-create and --no-recursion so they do not pile up.
2944 # Strip out --silent because we don't want to record it for future runs.
2945 # Also quote any args containing shell meta-characters.
2946 # Make two passes to allow for proper duplicate-argument suppression.
2947 ac_configure_args=
2948 ac_configure_args0=
2949 ac_configure_args1=
2950 ac_must_keep_next=false
2951 for ac_pass in 1 2
2952 do
2953   for ac_arg
2954   do
2955     case $ac_arg in
2956     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958     | -silent | --silent | --silen | --sile | --sil)
2959       continue ;;
2960     *\'*)
2961       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962     esac
2963     case $ac_pass in
2964     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2965     2)
2966       as_fn_append ac_configure_args1 " '$ac_arg'"
2967       if test $ac_must_keep_next = true; then
2968         ac_must_keep_next=false # Got value, back to normal.
2969       else
2970         case $ac_arg in
2971           *=* | --config-cache | -C | -disable-* | --disable-* \
2972           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974           | -with-* | --with-* | -without-* | --without-* | --x)
2975             case "$ac_configure_args0 " in
2976               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977             esac
2978             ;;
2979           -* ) ac_must_keep_next=true ;;
2980         esac
2981       fi
2982       as_fn_append ac_configure_args " '$ac_arg'"
2983       ;;
2984     esac
2985   done
2986 done
2987 { ac_configure_args0=; unset ac_configure_args0;}
2988 { ac_configure_args1=; unset ac_configure_args1;}
2989
2990 # When interrupted or exit'd, cleanup temporary files, and complete
2991 # config.log.  We remove comments because anyway the quotes in there
2992 # would cause problems or look ugly.
2993 # WARNING: Use '\'' to represent an apostrophe within the trap.
2994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995 trap 'exit_status=$?
2996   # Save into config.log some information that might help in debugging.
2997   {
2998     echo
2999
3000     $as_echo "## ---------------- ##
3001 ## Cache variables. ##
3002 ## ---------------- ##"
3003     echo
3004     # The following way of writing the cache mishandles newlines in values,
3005 (
3006   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007     eval ac_val=\$$ac_var
3008     case $ac_val in #(
3009     *${as_nl}*)
3010       case $ac_var in #(
3011       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013       esac
3014       case $ac_var in #(
3015       _ | IFS | as_nl) ;; #(
3016       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017       *) { eval $ac_var=; unset $ac_var;} ;;
3018       esac ;;
3019     esac
3020   done
3021   (set) 2>&1 |
3022     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023     *${as_nl}ac_space=\ *)
3024       sed -n \
3025         "s/'\''/'\''\\\\'\'''\''/g;
3026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027       ;; #(
3028     *)
3029       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030       ;;
3031     esac |
3032     sort
3033 )
3034     echo
3035
3036     $as_echo "## ----------------- ##
3037 ## Output variables. ##
3038 ## ----------------- ##"
3039     echo
3040     for ac_var in $ac_subst_vars
3041     do
3042       eval ac_val=\$$ac_var
3043       case $ac_val in
3044       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045       esac
3046       $as_echo "$ac_var='\''$ac_val'\''"
3047     done | sort
3048     echo
3049
3050     if test -n "$ac_subst_files"; then
3051       $as_echo "## ------------------- ##
3052 ## File substitutions. ##
3053 ## ------------------- ##"
3054       echo
3055       for ac_var in $ac_subst_files
3056       do
3057         eval ac_val=\$$ac_var
3058         case $ac_val in
3059         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060         esac
3061         $as_echo "$ac_var='\''$ac_val'\''"
3062       done | sort
3063       echo
3064     fi
3065
3066     if test -s confdefs.h; then
3067       $as_echo "## ----------- ##
3068 ## confdefs.h. ##
3069 ## ----------- ##"
3070       echo
3071       cat confdefs.h
3072       echo
3073     fi
3074     test "$ac_signal" != 0 &&
3075       $as_echo "$as_me: caught signal $ac_signal"
3076     $as_echo "$as_me: exit $exit_status"
3077   } >&5
3078   rm -f core *.core core.conftest.* &&
3079     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080     exit $exit_status
3081 ' 0
3082 for ac_signal in 1 2 13 15; do
3083   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3084 done
3085 ac_signal=0
3086
3087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3088 rm -f -r conftest* confdefs.h
3089
3090 $as_echo "/* confdefs.h */" > confdefs.h
3091
3092 # Predefined preprocessor variables.
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_NAME "$PACKAGE_NAME"
3096 _ACEOF
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100 _ACEOF
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3104 _ACEOF
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_STRING "$PACKAGE_STRING"
3108 _ACEOF
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112 _ACEOF
3113
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_URL "$PACKAGE_URL"
3116 _ACEOF
3117
3118
3119 # Let the site file select an alternate cache file if it wants to.
3120 # Prefer an explicitly selected file to automatically selected ones.
3121 ac_site_file1=NONE
3122 ac_site_file2=NONE
3123 if test -n "$CONFIG_SITE"; then
3124   # We do not want a PATH search for config.site.
3125   case $CONFIG_SITE in #((
3126     -*)  ac_site_file1=./$CONFIG_SITE;;
3127     */*) ac_site_file1=$CONFIG_SITE;;
3128     *)   ac_site_file1=./$CONFIG_SITE;;
3129   esac
3130 elif test "x$prefix" != xNONE; then
3131   ac_site_file1=$prefix/share/config.site
3132   ac_site_file2=$prefix/etc/config.site
3133 else
3134   ac_site_file1=$ac_default_prefix/share/config.site
3135   ac_site_file2=$ac_default_prefix/etc/config.site
3136 fi
3137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138 do
3139   test "x$ac_site_file" = xNONE && continue
3140   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3141     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143     sed 's/^/| /' "$ac_site_file" >&5
3144     . "$ac_site_file" \
3145       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "failed to load site script $ac_site_file
3148 See \`config.log' for more details" "$LINENO" 5; }
3149   fi
3150 done
3151
3152 if test -r "$cache_file"; then
3153   # Some versions of bash will fail to source /dev/null (special files
3154   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3155   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3156     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3157 $as_echo "$as_me: loading cache $cache_file" >&6;}
3158     case $cache_file in
3159       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160       *)                      . "./$cache_file";;
3161     esac
3162   fi
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3165 $as_echo "$as_me: creating cache $cache_file" >&6;}
3166   >$cache_file
3167 fi
3168
3169 as_fn_append ac_header_list " stdlib.h"
3170 as_fn_append ac_header_list " unistd.h"
3171 as_fn_append ac_header_list " sys/param.h"
3172 # Check that the precious variables saved in the cache have kept the same
3173 # value.
3174 ac_cache_corrupted=false
3175 for ac_var in $ac_precious_vars; do
3176   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177   eval ac_new_set=\$ac_env_${ac_var}_set
3178   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179   eval ac_new_val=\$ac_env_${ac_var}_value
3180   case $ac_old_set,$ac_new_set in
3181     set,)
3182       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184       ac_cache_corrupted=: ;;
3185     ,set)
3186       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188       ac_cache_corrupted=: ;;
3189     ,);;
3190     *)
3191       if test "x$ac_old_val" != "x$ac_new_val"; then
3192         # differences in whitespace do not lead to failure.
3193         ac_old_val_w=`echo x $ac_old_val`
3194         ac_new_val_w=`echo x $ac_new_val`
3195         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3196           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198           ac_cache_corrupted=:
3199         else
3200           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202           eval $ac_var=\$ac_old_val
3203         fi
3204         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3205 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3206         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3207 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3208       fi;;
3209   esac
3210   # Pass precious variables to config.status.
3211   if test "$ac_new_set" = set; then
3212     case $ac_new_val in
3213     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214     *) ac_arg=$ac_var=$ac_new_val ;;
3215     esac
3216     case " $ac_configure_args " in
3217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3218       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3219     esac
3220   fi
3221 done
3222 if $ac_cache_corrupted; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3227   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3228 fi
3229 ## -------------------- ##
3230 ## Main body of script. ##
3231 ## -------------------- ##
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241 ac_aux_dir=
3242 for ac_dir in config "$srcdir"/config; do
3243   if test -f "$ac_dir/install-sh"; then
3244     ac_aux_dir=$ac_dir
3245     ac_install_sh="$ac_aux_dir/install-sh -c"
3246     break
3247   elif test -f "$ac_dir/install.sh"; then
3248     ac_aux_dir=$ac_dir
3249     ac_install_sh="$ac_aux_dir/install.sh -c"
3250     break
3251   elif test -f "$ac_dir/shtool"; then
3252     ac_aux_dir=$ac_dir
3253     ac_install_sh="$ac_aux_dir/shtool install -c"
3254     break
3255   fi
3256 done
3257 if test -z "$ac_aux_dir"; then
3258   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3259 fi
3260
3261 # These three variables are undocumented and unsupported,
3262 # and are intended to be withdrawn in a future Autoconf release.
3263 # They can cause serious problems if a builder's source tree is in a directory
3264 # whose full name contains unusual characters.
3265 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3266 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3267 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3268
3269
3270
3271
3272 ac_config_headers="$ac_config_headers config/config.h"
3273
3274 ac_config_commands="$ac_config_commands magick/magick-config.h"
3275
3276 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh 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/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3277
3278
3279 #
3280 # Save initial user-tunable values
3281 #
3282 USER_LIBS=$LIBS
3283 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284   eval isset=\${$var+set}
3285     if test "$isset" = 'set'; then
3286         eval val=$`echo $var`
3287         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3288     fi
3289 done
3290
3291
3292 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3293
3294
3295 # Source file containing package/library versioning information.
3296 . ${srcdir}/version.sh
3297
3298 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3299 # Make sure we can run config.sub.
3300 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3301   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3304 $as_echo_n "checking build system type... " >&6; }
3305 if test "${ac_cv_build+set}" = set; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   ac_build_alias=$build_alias
3309 test "x$ac_build_alias" = x &&
3310   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311 test "x$ac_build_alias" = x &&
3312   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3313 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3314   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3315
3316 fi
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3318 $as_echo "$ac_cv_build" >&6; }
3319 case $ac_cv_build in
3320 *-*-*) ;;
3321 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3322 esac
3323 build=$ac_cv_build
3324 ac_save_IFS=$IFS; IFS='-'
3325 set x $ac_cv_build
3326 shift
3327 build_cpu=$1
3328 build_vendor=$2
3329 shift; shift
3330 # Remember, the first character of IFS is used to create $*,
3331 # except with old shells:
3332 build_os=$*
3333 IFS=$ac_save_IFS
3334 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3338 $as_echo_n "checking host system type... " >&6; }
3339 if test "${ac_cv_host+set}" = set; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test "x$host_alias" = x; then
3343   ac_cv_host=$ac_cv_build
3344 else
3345   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3346     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3347 fi
3348
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3351 $as_echo "$ac_cv_host" >&6; }
3352 case $ac_cv_host in
3353 *-*-*) ;;
3354 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3355 esac
3356 host=$ac_cv_host
3357 ac_save_IFS=$IFS; IFS='-'
3358 set x $ac_cv_host
3359 shift
3360 host_cpu=$1
3361 host_vendor=$2
3362 shift; shift
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3365 host_os=$*
3366 IFS=$ac_save_IFS
3367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3371 $as_echo_n "checking target system type... " >&6; }
3372 if test "${ac_cv_target+set}" = set; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   if test "x$target_alias" = x; then
3376   ac_cv_target=$ac_cv_host
3377 else
3378   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3379     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3380 fi
3381
3382 fi
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3384 $as_echo "$ac_cv_target" >&6; }
3385 case $ac_cv_target in
3386 *-*-*) ;;
3387 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3388 esac
3389 target=$ac_cv_target
3390 ac_save_IFS=$IFS; IFS='-'
3391 set x $ac_cv_target
3392 shift
3393 target_cpu=$1
3394 target_vendor=$2
3395 shift; shift
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3398 target_os=$*
3399 IFS=$ac_save_IFS
3400 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401
3402
3403 # The aliases save the names the user supplied, while $host etc.
3404 # will get canonicalized.
3405 test -n "$target_alias" &&
3406   test "$program_prefix$program_suffix$program_transform_name" = \
3407     NONENONEs,x,x, &&
3408   program_prefix=${target_alias}-
3409
3410
3411
3412
3413
3414 MAGICK_TARGET_CPU=$target_cpu
3415
3416
3417 MAGICK_TARGET_VENDOR=$target_vendor
3418
3419
3420 MAGICK_TARGET_OS=$target_os
3421
3422
3423 # Substitute library versioning
3424 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3425
3426 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3427
3428
3429
3430 # Ensure that make can run correctly
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3432 $as_echo_n "checking whether build environment is sane... " >&6; }
3433 # Just in case
3434 sleep 1
3435 echo timestamp > conftest.file
3436 # Reject unsafe characters in $srcdir or the absolute working directory
3437 # name.  Accept space and tab only in the latter.
3438 am_lf='
3439 '
3440 case `pwd` in
3441   *[\\\"\#\$\&\'\`$am_lf]*)
3442     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3443 esac
3444 case $srcdir in
3445   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3446     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3447 esac
3448
3449 # Do `set' in a subshell so we don't clobber the current shell's
3450 # arguments.  Must try -L first in case configure is actually a
3451 # symlink; some systems play weird games with the mod time of symlinks
3452 # (eg FreeBSD returns the mod time of the symlink's containing
3453 # directory).
3454 if (
3455    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456    if test "$*" = "X"; then
3457       # -L didn't work.
3458       set X `ls -t "$srcdir/configure" conftest.file`
3459    fi
3460    rm -f conftest.file
3461    if test "$*" != "X $srcdir/configure conftest.file" \
3462       && test "$*" != "X conftest.file $srcdir/configure"; then
3463
3464       # If neither matched, then we have a broken ls.  This can happen
3465       # if, for instance, CONFIG_SHELL is bash and it inherits a
3466       # broken ls alias from the environment.  This has actually
3467       # happened.  Such a system could not be considered "sane".
3468       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3469 alias in your environment" "$LINENO" 5
3470    fi
3471
3472    test "$2" = conftest.file
3473    )
3474 then
3475    # Ok.
3476    :
3477 else
3478    as_fn_error $? "newly created file is older than distributed files!
3479 Check your system clock" "$LINENO" 5
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 $as_echo "yes" >&6; }
3483
3484 am__api_version='1.11'
3485
3486 # Find a good install program.  We prefer a C program (faster),
3487 # so one script is as good as another.  But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3492 # AIX /bin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # OS/2's system install, which has a completely different semantic
3498 # ./install, which can be erroneously created by make from ./install.sh.
3499 # Reject install programs that cannot install multiple files.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3502 if test -z "$INSTALL"; then
3503 if test "${ac_cv_path_install+set}" = set; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     # Account for people who put trailing slashes in PATH elements.
3512 case $as_dir/ in #((
3513   ./ | .// | /[cC]/* | \
3514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3515   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3516   /usr/ucb/* ) ;;
3517   *)
3518     # OSF1 and SCO ODT 3.0 have their own names for install.
3519     # Don't use installbsd from OSF since it installs stuff as root
3520     # by default.
3521     for ac_prog in ginstall scoinst install; do
3522       for ac_exec_ext in '' $ac_executable_extensions; do
3523         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524           if test $ac_prog = install &&
3525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526             # AIX install.  It has an incompatible calling convention.
3527             :
3528           elif test $ac_prog = install &&
3529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530             # program-specific install script used by HP pwplus--don't use.
3531             :
3532           else
3533             rm -rf conftest.one conftest.two conftest.dir
3534             echo one > conftest.one
3535             echo two > conftest.two
3536             mkdir conftest.dir
3537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538               test -s conftest.one && test -s conftest.two &&
3539               test -s conftest.dir/conftest.one &&
3540               test -s conftest.dir/conftest.two
3541             then
3542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543               break 3
3544             fi
3545           fi
3546         fi
3547       done
3548     done
3549     ;;
3550 esac
3551
3552   done
3553 IFS=$as_save_IFS
3554
3555 rm -rf conftest.one conftest.two conftest.dir
3556
3557 fi
3558   if test "${ac_cv_path_install+set}" = set; then
3559     INSTALL=$ac_cv_path_install
3560   else
3561     # As a last resort, use the slow shell script.  Don't cache a
3562     # value for INSTALL within a source directory, because that will
3563     # break other packages using the cache if that directory is
3564     # removed, or if the value is a relative name.
3565     INSTALL=$ac_install_sh
3566   fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3569 $as_echo "$INSTALL" >&6; }
3570
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579 test "$program_prefix" != NONE &&
3580   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581 # Use a double $ so make ignores it.
3582 test "$program_suffix" != NONE &&
3583   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584 # Double any \ or $.
3585 # By default was `s,x,x', remove it if useless.
3586 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589 # expand $ac_aux_dir to an absolute path
3590 am_aux_dir=`cd $ac_aux_dir && pwd`
3591
3592 if test x"${MISSING+set}" != xset; then
3593   case $am_aux_dir in
3594   *\ * | *\     *)
3595     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596   *)
3597     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598   esac
3599 fi
3600 # Use eval to expand $SHELL
3601 if eval "$MISSING --run true"; then
3602   am_missing_run="$MISSING --run "
3603 else
3604   am_missing_run=
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3606 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3607 fi
3608
3609 if test x"${install_sh}" != xset; then
3610   case $am_aux_dir in
3611   *\ * | *\     *)
3612     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613   *)
3614     install_sh="\${SHELL} $am_aux_dir/install-sh"
3615   esac
3616 fi
3617
3618 # Installed binaries are usually stripped using `strip' when the user
3619 # run `make install-strip'.  However `strip' might not be the right
3620 # tool to use in cross-compilation environments, therefore Automake
3621 # will honor the `STRIP' environment variable to overrule this program.
3622 if test "$cross_compiling" != no; then
3623   if test -n "$ac_tool_prefix"; then
3624   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}strip; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_STRIP+set}" = set; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   if test -n "$STRIP"; then
3632   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639     for ac_exec_ext in '' $ac_executable_extensions; do
3640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643     break 2
3644   fi
3645 done
3646   done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 STRIP=$ac_cv_prog_STRIP
3652 if test -n "$STRIP"; then
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3654 $as_echo "$STRIP" >&6; }
3655 else
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660
3661 fi
3662 if test -z "$ac_cv_prog_STRIP"; then
3663   ac_ct_STRIP=$STRIP
3664   # Extract the first word of "strip", so it can be a program name with args.
3665 set dummy strip; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3669   $as_echo_n "(cached) " >&6
3670 else
3671   if test -n "$ac_ct_STRIP"; then
3672   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_exec_ext in '' $ac_executable_extensions; do
3680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681     ac_cv_prog_ac_ct_STRIP="strip"
3682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683     break 2
3684   fi
3685 done
3686   done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692 if test -n "$ac_ct_STRIP"; then
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3694 $as_echo "$ac_ct_STRIP" >&6; }
3695 else
3696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3699
3700   if test "x$ac_ct_STRIP" = x; then
3701     STRIP=":"
3702   else
3703     case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709     STRIP=$ac_ct_STRIP
3710   fi
3711 else
3712   STRIP="$ac_cv_prog_STRIP"
3713 fi
3714
3715 fi
3716 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3719 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720 if test -z "$MKDIR_P"; then
3721   if test "${ac_cv_path_mkdir+set}" = set; then :
3722   $as_echo_n "(cached) " >&6
3723 else
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729     for ac_prog in mkdir gmkdir; do
3730          for ac_exec_ext in '' $ac_executable_extensions; do
3731            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733              'mkdir (GNU coreutils) '* | \
3734              'mkdir (coreutils) '* | \
3735              'mkdir (fileutils) '4.1*)
3736                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737                break 3;;
3738            esac
3739          done
3740        done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745
3746   test -d ./--version && rmdir ./--version
3747   if test "${ac_cv_path_mkdir+set}" = set; then
3748     MKDIR_P="$ac_cv_path_mkdir -p"
3749   else
3750     # As a last resort, use the slow shell script.  Don't cache a
3751     # value for MKDIR_P within a source directory, because that will
3752     # break other packages using the cache if that directory is
3753     # removed, or if the value is a relative name.
3754     MKDIR_P="$ac_install_sh -d"
3755   fi
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3758 $as_echo "$MKDIR_P" >&6; }
3759
3760 mkdir_p="$MKDIR_P"
3761 case $mkdir_p in
3762   [\\/$]* | ?:[\\/]*) ;;
3763   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3764 esac
3765
3766 for ac_prog in gawk mawk nawk awk
3767 do
3768   # Extract the first word of "$ac_prog", so it can be a program name with args.
3769 set dummy $ac_prog; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if test "${ac_cv_prog_AWK+set}" = set; then :
3773   $as_echo_n "(cached) " >&6
3774 else
3775   if test -n "$AWK"; then
3776   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783     for ac_exec_ext in '' $ac_executable_extensions; do
3784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785     ac_cv_prog_AWK="$ac_prog"
3786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790   done
3791 IFS=$as_save_IFS
3792
3793 fi
3794 fi
3795 AWK=$ac_cv_prog_AWK
3796 if test -n "$AWK"; then
3797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3798 $as_echo "$AWK" >&6; }
3799 else
3800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 fi
3803
3804
3805   test -n "$AWK" && break
3806 done
3807
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3810 set x ${MAKE-make}
3811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3812 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815   cat >conftest.make <<\_ACEOF
3816 SHELL = /bin/sh
3817 all:
3818         @echo '@@@%%%=$(MAKE)=@@@%%%'
3819 _ACEOF
3820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3822   *@@@%%%=?*=@@@%%%*)
3823     eval ac_cv_prog_make_${ac_make}_set=yes;;
3824   *)
3825     eval ac_cv_prog_make_${ac_make}_set=no;;
3826 esac
3827 rm -f conftest.make
3828 fi
3829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 $as_echo "yes" >&6; }
3832   SET_MAKE=
3833 else
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836   SET_MAKE="MAKE=${MAKE-make}"
3837 fi
3838
3839 rm -rf .tst 2>/dev/null
3840 mkdir .tst 2>/dev/null
3841 if test -d .tst; then
3842   am__leading_dot=.
3843 else
3844   am__leading_dot=_
3845 fi
3846 rmdir .tst 2>/dev/null
3847
3848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850   # is not polluted with repeated "-I."
3851   am__isrc=' -I$(srcdir)'
3852   # test to see if srcdir already configured
3853   if test -f $srcdir/config.status; then
3854     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3855   fi
3856 fi
3857
3858 # test whether we have cygpath
3859 if test -z "$CYGPATH_W"; then
3860   if (cygpath --version) >/dev/null 2>/dev/null; then
3861     CYGPATH_W='cygpath -w'
3862   else
3863     CYGPATH_W=echo
3864   fi
3865 fi
3866
3867
3868 # Define the identity of the package.
3869  PACKAGE=$PACKAGE_NAME
3870  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3871
3872
3873 # Some tools Automake needs.
3874
3875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889 # We need awk for the "check" target.  The system "awk" is bad on
3890 # some platforms.
3891 # Always define AMTAR for backward compatibility.
3892
3893 AMTAR=${AMTAR-"${am_missing_run}tar"}
3894
3895 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3896
3897
3898
3899
3900
3901
3902 # Enable support for silent build rules
3903 # Check whether --enable-silent-rules was given.
3904 if test "${enable_silent_rules+set}" = set; then :
3905   enableval=$enable_silent_rules;
3906 fi
3907
3908 case $enable_silent_rules in
3909 yes) AM_DEFAULT_VERBOSITY=0;;
3910 no)  AM_DEFAULT_VERBOSITY=1;;
3911 *)   AM_DEFAULT_VERBOSITY=0;;
3912 esac
3913 AM_BACKSLASH='\'
3914
3915
3916 MAGICK_LIB_VERSION="0x"
3917 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3919 fi
3920 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3923 fi
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3927 fi
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3929
3930
3931 # Definition used to define MagickLibVersionText in version.h
3932 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3933
3934
3935 # Definition used to define MagickLibVersionNumber in version.h
3936 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3937
3938
3939 # Regenerate config.status if ChangeLog or version.sh is updated.
3940 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3941
3942
3943 PERLMAINCC=$CC
3944
3945 MAGICK_CFLAGS=''
3946 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947 MAGICK_PCFLAGS=$CPPFLAGS_USER
3948 MAGICK_LDFLAGS=''
3949 MAGICK_LIBS=''
3950 MAGICK_FEATURES=''
3951
3952 #
3953 # Evaluate shell variable equivalents to Makefile directory variables
3954 #
3955 if test "x$prefix" = xNONE; then
3956     prefix=$ac_default_prefix
3957 fi
3958 # Let make expand exec_prefix.
3959 if test "x$exec_prefix" = xNONE; then
3960     exec_prefix='${prefix}'
3961 fi
3962
3963 #
3964 eval "eval PREFIX_DIR=${prefix}"
3965
3966 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3967
3968 eval "eval BIN_DIR=$bindir"
3969
3970 eval "eval SBIN_DIR=$sbindir"
3971
3972 eval "eval LIBEXEC_DIR=$libexecdir"
3973
3974 eval "eval DATA_DIR=$datadir"
3975
3976 eval "eval SYSCONF_DIR=$sysconfdir"
3977
3978 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3979
3980 eval "eval LOCALSTATE_DIR=$localstatedir"
3981
3982 eval "eval LIB_DIR=$libdir"
3983
3984 eval "eval INCLUDE_DIR=$includedir"
3985
3986 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3987
3988 eval "eval INFO_DIR=$infodir"
3989
3990 eval "eval MAN_DIR=$mandir"
3991
3992
3993 # Get full paths to source and build directories
3994 srcdirfull="`cd $srcdir && pwd`"
3995 builddir="`pwd`"
3996
3997 #
3998 # Compute variables useful for running uninstalled software.
3999 #
4000 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4004 DIRSEP=':'
4005 case "${build_os}" in
4006     mingw* )
4007         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4011         DIRSEP=';'
4012     ;;
4013 esac
4014 case "${host_os}" in
4015   mingw* )
4016     DIRSEP=';'
4017     ;;
4018 esac
4019
4020
4021
4022
4023
4024
4025
4026 #
4027 # Enable OS features.
4028 #
4029 DEPDIR="${am__leading_dot}deps"
4030
4031 ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034 am_make=${MAKE-make}
4035 cat > confinc << 'END'
4036 am__doit:
4037         @echo this is the am__doit target
4038 .PHONY: am__doit
4039 END
4040 # If we don't find an include directive, just comment out the code.
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4043 am__include="#"
4044 am__quote=
4045 _am_result=none
4046 # First try GNU make style include.
4047 echo "include confinc" > confmf
4048 # Ignore all kinds of additional output from `make'.
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4051   am__include=include
4052   am__quote=
4053   _am_result=GNU
4054   ;;
4055 esac
4056 # Now try BSD make style include.
4057 if test "$am__include" = "#"; then
4058    echo '.include "confinc"' > confmf
4059    case `$am_make -s -f confmf 2> /dev/null` in #(
4060    *the\ am__doit\ target*)
4061      am__include=.include
4062      am__quote="\""
4063      _am_result=BSD
4064      ;;
4065    esac
4066 fi
4067
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070 $as_echo "$_am_result" >&6; }
4071 rm -f confinc confmf
4072
4073 # Check whether --enable-dependency-tracking was given.
4074 if test "${enable_dependency_tracking+set}" = set; then :
4075   enableval=$enable_dependency_tracking;
4076 fi
4077
4078 if test "x$enable_dependency_tracking" != xno; then
4079   am_depcomp="$ac_aux_dir/depcomp"
4080   AMDEPBACKSLASH='\'
4081 fi
4082  if test "x$enable_dependency_tracking" != xno; then
4083   AMDEP_TRUE=
4084   AMDEP_FALSE='#'
4085 else
4086   AMDEP_TRUE='#'
4087   AMDEP_FALSE=
4088 fi
4089
4090
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 if test -n "$ac_tool_prefix"; then
4097   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_CC+set}" = set; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$CC"; then
4105   ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119   done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 CC=$ac_cv_prog_CC
4125 if test -n "$CC"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134 fi
4135 if test -z "$ac_cv_prog_CC"; then
4136   ac_ct_CC=$CC
4137   # Extract the first word of "gcc", so it can be a program name with args.
4138 set dummy gcc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -n "$ac_ct_CC"; then
4145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152     for ac_exec_ext in '' $ac_executable_extensions; do
4153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154     ac_cv_prog_ac_ct_CC="gcc"
4155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159   done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165 if test -n "$ac_ct_CC"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4167 $as_echo "$ac_ct_CC" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173   if test "x$ac_ct_CC" = x; then
4174     CC=""
4175   else
4176     case $cross_compiling:$ac_tool_warned in
4177 yes:)
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180 ac_tool_warned=yes ;;
4181 esac
4182     CC=$ac_ct_CC
4183   fi
4184 else
4185   CC="$ac_cv_prog_CC"
4186 fi
4187
4188 if test -z "$CC"; then
4189           if test -n "$ac_tool_prefix"; then
4190     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}cc; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_CC+set}" = set; then :
4195   $as_echo_n "(cached) " >&6
4196 else
4197   if test -n "$CC"; then
4198   ac_cv_prog_CC="$CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207     ac_cv_prog_CC="${ac_tool_prefix}cc"
4208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212   done
4213 IFS=$as_save_IFS
4214
4215 fi
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4221 else
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 fi
4225
4226
4227   fi
4228 fi
4229 if test -z "$CC"; then
4230   # Extract the first word of "cc", so it can be a program name with args.
4231 set dummy cc; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_CC+set}" = set; then :
4235   $as_echo_n "(cached) " >&6
4236 else
4237   if test -n "$CC"; then
4238   ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240   ac_prog_rejected=no
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246     for ac_exec_ext in '' $ac_executable_extensions; do
4247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249        ac_prog_rejected=yes
4250        continue
4251      fi
4252     ac_cv_prog_CC="cc"
4253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257   done
4258 IFS=$as_save_IFS
4259
4260 if test $ac_prog_rejected = yes; then
4261   # We found a bogon in the path, so make sure we never use it.
4262   set dummy $ac_cv_prog_CC
4263   shift
4264   if test $# != 0; then
4265     # We chose a different compiler from the bogus one.
4266     # However, it has the same basename, so the bogon will be chosen
4267     # first if we set CC to just the basename; use the full file name.
4268     shift
4269     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270   fi
4271 fi
4272 fi
4273 fi
4274 CC=$ac_cv_prog_CC
4275 if test -n "$CC"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4277 $as_echo "$CC" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282
4283
4284 fi
4285 if test -z "$CC"; then
4286   if test -n "$ac_tool_prefix"; then
4287   for ac_prog in cl.exe
4288   do
4289     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CC+set}" = set; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if test -n "$CC"; then
4297   ac_cv_prog_CC="$CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304     for ac_exec_ext in '' $ac_executable_extensions; do
4305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311   done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4320 else
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326     test -n "$CC" && break
4327   done
4328 fi
4329 if test -z "$CC"; then
4330   ac_ct_CC=$CC
4331   for ac_prog in cl.exe
4332 do
4333   # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   if test -n "$ac_ct_CC"; then
4341   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348     for ac_exec_ext in '' $ac_executable_extensions; do
4349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350     ac_cv_prog_ac_ct_CC="$ac_prog"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361 if test -n "$ac_ct_CC"; then
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4363 $as_echo "$ac_ct_CC" >&6; }
4364 else
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370   test -n "$ac_ct_CC" && break
4371 done
4372
4373   if test "x$ac_ct_CC" = x; then
4374     CC=""
4375   else
4376     case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382     CC=$ac_ct_CC
4383   fi
4384 fi
4385
4386 fi
4387
4388
4389 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error $? "no acceptable C compiler found in \$PATH
4392 See \`config.log' for more details" "$LINENO" 5; }
4393
4394 # Provide some information about the compiler.
4395 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4396 set X $ac_compile
4397 ac_compiler=$2
4398 for ac_option in --version -v -V -qversion; do
4399   { { ac_try="$ac_compiler $ac_option >&5"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4407   ac_status=$?
4408   if test -s conftest.err; then
4409     sed '10a\
4410 ... rest of stderr output deleted ...
4411          10q' conftest.err >conftest.er1
4412     cat conftest.er1 >&5
4413   fi
4414   rm -f conftest.er1 conftest.err
4415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416   test $ac_status = 0; }
4417 done
4418
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h.  */
4421
4422 int
4423 main ()
4424 {
4425
4426   ;
4427   return 0;
4428 }
4429 _ACEOF
4430 ac_clean_files_save=$ac_clean_files
4431 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4432 # Try to create an executable without -o first, disregard a.out.
4433 # It will help us diagnose broken compilers, and finding out an intuition
4434 # of exeext.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436 $as_echo_n "checking whether the C compiler works... " >&6; }
4437 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4438
4439 # The possible output files:
4440 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4441
4442 ac_rmfiles=
4443 for ac_file in $ac_files
4444 do
4445   case $ac_file in
4446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448   esac
4449 done
4450 rm -f $ac_rmfiles
4451
4452 if { { ac_try="$ac_link_default"
4453 case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459   (eval "$ac_link_default") 2>&5
4460   ac_status=$?
4461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462   test $ac_status = 0; }; then :
4463   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4466 # so that the user can short-circuit this test for compilers unknown to
4467 # Autoconf.
4468 for ac_file in $ac_files ''
4469 do
4470   test -f "$ac_file" || continue
4471   case $ac_file in
4472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4473         ;;
4474     [ab].out )
4475         # We found the default executable, but exeext='' is most
4476         # certainly right.
4477         break;;
4478     *.* )
4479         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4480         then :; else
4481            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482         fi
4483         # We set ac_cv_exeext here because the later test for it is not
4484         # safe: cross compilers may not add the suffix if given an `-o'
4485         # argument, so we may need to know it at that point already.
4486         # Even if this section looks crufty: it has the advantage of
4487         # actually working.
4488         break;;
4489     * )
4490         break;;
4491   esac
4492 done
4493 test "$ac_cv_exeext" = no && ac_cv_exeext=
4494
4495 else
4496   ac_file=''
4497 fi
4498 if test -z "$ac_file"; then :
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error 77 "C compiler cannot create executables
4507 See \`config.log' for more details" "$LINENO" 5; }
4508 else
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 fi
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513 $as_echo_n "checking for C compiler default output file name... " >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515 $as_echo "$ac_file" >&6; }
4516 ac_exeext=$ac_cv_exeext
4517
4518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4519 ac_clean_files=$ac_clean_files_save
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4521 $as_echo_n "checking for suffix of executables... " >&6; }
4522 if { { ac_try="$ac_link"
4523 case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529   (eval "$ac_link") 2>&5
4530   ac_status=$?
4531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532   test $ac_status = 0; }; then :
4533   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4535 # work properly (i.e., refer to `conftest.exe'), while it won't with
4536 # `rm'.
4537 for ac_file in conftest.exe conftest conftest.*; do
4538   test -f "$ac_file" || continue
4539   case $ac_file in
4540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542           break;;
4543     * ) break;;
4544   esac
4545 done
4546 else
4547   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550 See \`config.log' for more details" "$LINENO" 5; }
4551 fi
4552 rm -f conftest conftest$ac_cv_exeext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4554 $as_echo "$ac_cv_exeext" >&6; }
4555
4556 rm -f conftest.$ac_ext
4557 EXEEXT=$ac_cv_exeext
4558 ac_exeext=$EXEEXT
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #include <stdio.h>
4562 int
4563 main ()
4564 {
4565 FILE *f = fopen ("conftest.out", "w");
4566  return ferror (f) || fclose (f) != 0;
4567
4568   ;
4569   return 0;
4570 }
4571 _ACEOF
4572 ac_clean_files="$ac_clean_files conftest.out"
4573 # Check that the compiler produces executables we can run.  If not, either
4574 # the compiler is broken, or we cross compile.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576 $as_echo_n "checking whether we are cross compiling... " >&6; }
4577 if test "$cross_compiling" != yes; then
4578   { { ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584 $as_echo "$ac_try_echo"; } >&5
4585   (eval "$ac_link") 2>&5
4586   ac_status=$?
4587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588   test $ac_status = 0; }
4589   if { ac_try='./conftest$ac_cv_exeext'
4590   { { case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596   (eval "$ac_try") 2>&5
4597   ac_status=$?
4598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599   test $ac_status = 0; }; }; then
4600     cross_compiling=no
4601   else
4602     if test "$cross_compiling" = maybe; then
4603         cross_compiling=yes
4604     else
4605         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error $? "cannot run C compiled programs.
4608 If you meant to cross compile, use \`--host'.
4609 See \`config.log' for more details" "$LINENO" 5; }
4610     fi
4611   fi
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614 $as_echo "$cross_compiling" >&6; }
4615
4616 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617 ac_clean_files=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4619 $as_echo_n "checking for suffix of object files... " >&6; }
4620 if test "${ac_cv_objext+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.o conftest.obj
4635 if { { ac_try="$ac_compile"
4636 case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641 $as_echo "$ac_try_echo"; } >&5
4642   (eval "$ac_compile") 2>&5
4643   ac_status=$?
4644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645   test $ac_status = 0; }; then :
4646   for ac_file in conftest.o conftest.obj conftest.*; do
4647   test -f "$ac_file" || continue;
4648   case $ac_file in
4649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651        break;;
4652   esac
4653 done
4654 else
4655   $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660 as_fn_error $? "cannot compute suffix of object files: cannot compile
4661 See \`config.log' for more details" "$LINENO" 5; }
4662 fi
4663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4666 $as_echo "$ac_cv_objext" >&6; }
4667 OBJEXT=$ac_cv_objext
4668 ac_objext=$OBJEXT
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4670 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4671 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676
4677 int
4678 main ()
4679 {
4680 #ifndef __GNUC__
4681        choke me
4682 #endif
4683
4684   ;
4685   return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689   ac_compiler_gnu=yes
4690 else
4691   ac_compiler_gnu=no
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4695
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4698 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699 if test $ac_compiler_gnu = yes; then
4700   GCC=yes
4701 else
4702   GCC=
4703 fi
4704 ac_test_CFLAGS=${CFLAGS+set}
4705 ac_save_CFLAGS=$CFLAGS
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4707 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4708 if test "${ac_cv_prog_cc_g+set}" = set; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   ac_save_c_werror_flag=$ac_c_werror_flag
4712    ac_c_werror_flag=yes
4713    ac_cv_prog_cc_g=no
4714    CFLAGS="-g"
4715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721
4722   ;
4723   return 0;
4724 }
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727   ac_cv_prog_cc_g=yes
4728 else
4729   CFLAGS=""
4730       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h.  */
4732
4733 int
4734 main ()
4735 {
4736
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 if ac_fn_c_try_compile "$LINENO"; then :
4742
4743 else
4744   ac_c_werror_flag=$ac_save_c_werror_flag
4745          CFLAGS="-g"
4746          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h.  */
4748
4749 int
4750 main ()
4751 {
4752
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758   ac_cv_prog_cc_g=yes
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765    ac_c_werror_flag=$ac_save_c_werror_flag
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4768 $as_echo "$ac_cv_prog_cc_g" >&6; }
4769 if test "$ac_test_CFLAGS" = set; then
4770   CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772   if test "$GCC" = yes; then
4773     CFLAGS="-g -O2"
4774   else
4775     CFLAGS="-g"
4776   fi
4777 else
4778   if test "$GCC" = yes; then
4779     CFLAGS="-O2"
4780   else
4781     CFLAGS=
4782   fi
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4785 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4786 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   ac_cv_prog_cc_c89=no
4790 ac_save_CC=$CC
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793 #include <stdarg.h>
4794 #include <stdio.h>
4795 #include <sys/types.h>
4796 #include <sys/stat.h>
4797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4798 struct buf { int x; };
4799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800 static char *e (p, i)
4801      char **p;
4802      int i;
4803 {
4804   return p[i];
4805 }
4806 static char *f (char * (*g) (char **, int), char **p, ...)
4807 {
4808   char *s;
4809   va_list v;
4810   va_start (v,p);
4811   s = g (p, va_arg (v,int));
4812   va_end (v);
4813   return s;
4814 }
4815
4816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4817    function prototypes and stuff, but not '\xHH' hex character constants.
4818    These don't provoke an error unfortunately, instead are silently treated
4819    as 'x'.  The following induces an error, until -std is added to get
4820    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4821    array size at least.  It's necessary to write '\x00'==0 to get something
4822    that's true only with -std.  */
4823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4824
4825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826    inside strings and character constants.  */
4827 #define FOO(x) 'x'
4828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4829
4830 int test (int i, double x);
4831 struct s1 {int (*f) (int a);};
4832 struct s2 {int (*f) (double a);};
4833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834 int argc;
4835 char **argv;
4836 int
4837 main ()
4838 {
4839 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4846 do
4847   CC="$ac_save_CC $ac_arg"
4848   if ac_fn_c_try_compile "$LINENO"; then :
4849   ac_cv_prog_cc_c89=$ac_arg
4850 fi
4851 rm -f core conftest.err conftest.$ac_objext
4852   test "x$ac_cv_prog_cc_c89" != "xno" && break
4853 done
4854 rm -f conftest.$ac_ext
4855 CC=$ac_save_CC
4856
4857 fi
4858 # AC_CACHE_VAL
4859 case "x$ac_cv_prog_cc_c89" in
4860   x)
4861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4862 $as_echo "none needed" >&6; } ;;
4863   xno)
4864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4865 $as_echo "unsupported" >&6; } ;;
4866   *)
4867     CC="$CC $ac_cv_prog_cc_c89"
4868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4870 esac
4871 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872
4873 fi
4874
4875 ac_ext=c
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880
4881 depcc="$CC"   am_compiler_list=
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884 $as_echo_n "checking dependency style of $depcc... " >&6; }
4885 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889   # We make a subdir and do the tests there.  Otherwise we can end up
4890   # making bogus files that we don't know about and never remove.  For
4891   # instance it was reported that on HP-UX the gcc test will end up
4892   # making a dummy file named `D' -- because `-MD' means `put the output
4893   # in D'.
4894   mkdir conftest.dir
4895   # Copy depcomp to subdir because otherwise we won't find it if we're
4896   # using a relative directory.
4897   cp "$am_depcomp" conftest.dir
4898   cd conftest.dir
4899   # We will build objects and dependencies in a subdirectory because
4900   # it helps to detect inapplicable dependency modes.  For instance
4901   # both Tru64's cc and ICC support -MD to output dependencies as a
4902   # side effect of compilation, but ICC will put the dependencies in
4903   # the current directory while Tru64 will put them in the object
4904   # directory.
4905   mkdir sub
4906
4907   am_cv_CC_dependencies_compiler_type=none
4908   if test "$am_compiler_list" = ""; then
4909      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910   fi
4911   am__universal=false
4912   case " $depcc " in #(
4913      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914      esac
4915
4916   for depmode in $am_compiler_list; do
4917     # Setup a source with many dependencies, because some compilers
4918     # like to wrap large dependency lists on column 80 (with \), and
4919     # we should not choose a depcomp mode which is confused by this.
4920     #
4921     # We need to recreate these files for each test, as the compiler may
4922     # overwrite some of them when testing with obscure command lines.
4923     # This happens at least with the AIX C compiler.
4924     : > sub/conftest.c
4925     for i in 1 2 3 4 5 6; do
4926       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928       # Solaris 8's {/usr,}/bin/sh.
4929       touch sub/conftst$i.h
4930     done
4931     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934     # mode.  It turns out that the SunPro C++ compiler does not properly
4935     # handle `-M -o', and we need to detect this.  Also, some Intel
4936     # versions had trouble with output in subdirs
4937     am__obj=sub/conftest.${OBJEXT-o}
4938     am__minus_obj="-o $am__obj"
4939     case $depmode in
4940     gcc)
4941       # This depmode causes a compiler race in universal mode.
4942       test "$am__universal" = false || continue
4943       ;;
4944     nosideeffect)
4945       # after this tag, mechanisms are not by side-effect, so they'll
4946       # only be used when explicitly requested
4947       if test "x$enable_dependency_tracking" = xyes; then
4948         continue
4949       else
4950         break
4951       fi
4952       ;;
4953     msvisualcpp | msvcmsys)
4954       # This compiler won't grok `-c -o', but also, the minuso test has
4955       # not run yet.  These depmodes are late enough in the game, and
4956       # so weak that their functioning should not be impacted.
4957       am__obj=conftest.${OBJEXT-o}
4958       am__minus_obj=
4959       ;;
4960     none) break ;;
4961     esac
4962     if depmode=$depmode \
4963        source=sub/conftest.c object=$am__obj \
4964        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966          >/dev/null 2>conftest.err &&
4967        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971       # icc doesn't choke on unknown options, it will just issue warnings
4972       # or remarks (even with -Werror).  So we grep stderr for any message
4973       # that says an option was ignored or not supported.
4974       # When given -MP, icc 7.0 and 7.1 complain thusly:
4975       #   icc: Command line warning: ignoring option '-M'; no argument required
4976       # The diagnosis changed in icc 8.0:
4977       #   icc: Command line remark: option '-MP' not supported
4978       if (grep 'ignoring option' conftest.err ||
4979           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980         am_cv_CC_dependencies_compiler_type=$depmode
4981         break
4982       fi
4983     fi
4984   done
4985
4986   cd ..
4987   rm -rf conftest.dir
4988 else
4989   am_cv_CC_dependencies_compiler_type=none
4990 fi
4991
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4996
4997  if
4998   test "x$enable_dependency_tracking" != xno \
4999   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000   am__fastdepCC_TRUE=
5001   am__fastdepCC_FALSE='#'
5002 else
5003   am__fastdepCC_TRUE='#'
5004   am__fastdepCC_FALSE=
5005 fi
5006
5007
5008
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5016 # On Suns, sometimes $CPP names a directory.
5017 if test -n "$CPP" && test -d "$CPP"; then
5018   CPP=
5019 fi
5020 if test -z "$CPP"; then
5021   if test "${ac_cv_prog_CPP+set}" = set; then :
5022   $as_echo_n "(cached) " >&6
5023 else
5024       # Double quotes because CPP needs to be expanded
5025     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026     do
5027       ac_preproc_ok=false
5028 for ac_c_preproc_warn_flag in '' yes
5029 do
5030   # Use a header file that comes with gcc, so configuring glibc
5031   # with a fresh cross-compiler works.
5032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033   # <limits.h> exists even on freestanding compilers.
5034   # On the NeXT, cc -E runs the code through the compiler's parser,
5035   # not just through cpp. "Syntax error" is here to catch this case.
5036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h.  */
5038 #ifdef __STDC__
5039 # include <limits.h>
5040 #else
5041 # include <assert.h>
5042 #endif
5043                      Syntax error
5044 _ACEOF
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5046
5047 else
5048   # Broken: fails on valid input.
5049 continue
5050 fi
5051 rm -f conftest.err conftest.$ac_ext
5052
5053   # OK, works on sane cases.  Now check whether nonexistent headers
5054   # can be detected and how.
5055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h.  */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060   # Broken: success on invalid input.
5061 continue
5062 else
5063   # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5066 fi
5067 rm -f conftest.err conftest.$ac_ext
5068
5069 done
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then :
5073   break
5074 fi
5075
5076     done
5077     ac_cv_prog_CPP=$CPP
5078
5079 fi
5080   CPP=$ac_cv_prog_CPP
5081 else
5082   ac_cv_prog_CPP=$CPP
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085 $as_echo "$CPP" >&6; }
5086 ac_preproc_ok=false
5087 for ac_c_preproc_warn_flag in '' yes
5088 do
5089   # Use a header file that comes with gcc, so configuring glibc
5090   # with a fresh cross-compiler works.
5091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092   # <limits.h> exists even on freestanding compilers.
5093   # On the NeXT, cc -E runs the code through the compiler's parser,
5094   # not just through cpp. "Syntax error" is here to catch this case.
5095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h.  */
5097 #ifdef __STDC__
5098 # include <limits.h>
5099 #else
5100 # include <assert.h>
5101 #endif
5102                      Syntax error
5103 _ACEOF
5104 if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106 else
5107   # Broken: fails on valid input.
5108 continue
5109 fi
5110 rm -f conftest.err conftest.$ac_ext
5111
5112   # OK, works on sane cases.  Now check whether nonexistent headers
5113   # can be detected and how.
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116 #include <ac_nonexistent.h>
5117 _ACEOF
5118 if ac_fn_c_try_cpp "$LINENO"; then :
5119   # Broken: success on invalid input.
5120 continue
5121 else
5122   # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128 done
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then :
5132
5133 else
5134   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5136 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137 See \`config.log' for more details" "$LINENO" 5; }
5138 fi
5139
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149 if test "${ac_cv_path_GREP+set}" = set; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -z "$GREP"; then
5153   ac_path_GREP_found=false
5154   # Loop through the user's path and test for each of PROGNAME-LIST
5155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157 do
5158   IFS=$as_save_IFS
5159   test -z "$as_dir" && as_dir=.
5160     for ac_prog in grep ggrep; do
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164 # Check for GNU ac_path_GREP and select it if it is found.
5165   # Check for GNU $ac_path_GREP
5166 case `"$ac_path_GREP" --version 2>&1` in
5167 *GNU*)
5168   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5169 *)
5170   ac_count=0
5171   $as_echo_n 0123456789 >"conftest.in"
5172   while :
5173   do
5174     cat "conftest.in" "conftest.in" >"conftest.tmp"
5175     mv "conftest.tmp" "conftest.in"
5176     cp "conftest.in" "conftest.nl"
5177     $as_echo 'GREP' >> "conftest.nl"
5178     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180     as_fn_arith $ac_count + 1 && ac_count=$as_val
5181     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182       # Best one so far, save it but keep looking for a better one
5183       ac_cv_path_GREP="$ac_path_GREP"
5184       ac_path_GREP_max=$ac_count
5185     fi
5186     # 10*(2^10) chars as input seems more than enough
5187     test $ac_count -gt 10 && break
5188   done
5189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190 esac
5191
5192       $ac_path_GREP_found && break 3
5193     done
5194   done
5195   done
5196 IFS=$as_save_IFS
5197   if test -z "$ac_cv_path_GREP"; then
5198     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5199   fi
5200 else
5201   ac_cv_path_GREP=$GREP
5202 fi
5203
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206 $as_echo "$ac_cv_path_GREP" >&6; }
5207  GREP="$ac_cv_path_GREP"
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211 $as_echo_n "checking for egrep... " >&6; }
5212 if test "${ac_cv_path_EGREP+set}" = set; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216    then ac_cv_path_EGREP="$GREP -E"
5217    else
5218      if test -z "$EGREP"; then
5219   ac_path_EGREP_found=false
5220   # Loop through the user's path and test for each of PROGNAME-LIST
5221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_prog in egrep; do
5227     for ac_exec_ext in '' $ac_executable_extensions; do
5228       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230 # Check for GNU ac_path_EGREP and select it if it is found.
5231   # Check for GNU $ac_path_EGREP
5232 case `"$ac_path_EGREP" --version 2>&1` in
5233 *GNU*)
5234   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5235 *)
5236   ac_count=0
5237   $as_echo_n 0123456789 >"conftest.in"
5238   while :
5239   do
5240     cat "conftest.in" "conftest.in" >"conftest.tmp"
5241     mv "conftest.tmp" "conftest.in"
5242     cp "conftest.in" "conftest.nl"
5243     $as_echo 'EGREP' >> "conftest.nl"
5244     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246     as_fn_arith $ac_count + 1 && ac_count=$as_val
5247     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248       # Best one so far, save it but keep looking for a better one
5249       ac_cv_path_EGREP="$ac_path_EGREP"
5250       ac_path_EGREP_max=$ac_count
5251     fi
5252     # 10*(2^10) chars as input seems more than enough
5253     test $ac_count -gt 10 && break
5254   done
5255   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5257
5258       $ac_path_EGREP_found && break 3
5259     done
5260   done
5261   done
5262 IFS=$as_save_IFS
5263   if test -z "$ac_cv_path_EGREP"; then
5264     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5265   fi
5266 else
5267   ac_cv_path_EGREP=$EGREP
5268 fi
5269
5270    fi
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273 $as_echo "$ac_cv_path_EGREP" >&6; }
5274  EGREP="$ac_cv_path_EGREP"
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278 $as_echo_n "checking for ANSI C header files... " >&6; }
5279 if test "${ac_cv_header_stdc+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h.  */
5284 #include <stdlib.h>
5285 #include <stdarg.h>
5286 #include <string.h>
5287 #include <float.h>
5288
5289 int
5290 main ()
5291 {
5292
5293   ;
5294   return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298   ac_cv_header_stdc=yes
5299 else
5300   ac_cv_header_stdc=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304 if test $ac_cv_header_stdc = yes; then
5305   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h.  */
5308 #include <string.h>
5309
5310 _ACEOF
5311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312   $EGREP "memchr" >/dev/null 2>&1; then :
5313
5314 else
5315   ac_cv_header_stdc=no
5316 fi
5317 rm -f conftest*
5318
5319 fi
5320
5321 if test $ac_cv_header_stdc = yes; then
5322   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h.  */
5325 #include <stdlib.h>
5326
5327 _ACEOF
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329   $EGREP "free" >/dev/null 2>&1; then :
5330
5331 else
5332   ac_cv_header_stdc=no
5333 fi
5334 rm -f conftest*
5335
5336 fi
5337
5338 if test $ac_cv_header_stdc = yes; then
5339   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340   if test "$cross_compiling" = yes; then :
5341   :
5342 else
5343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h.  */
5345 #include <ctype.h>
5346 #include <stdlib.h>
5347 #if ((' ' & 0x0FF) == 0x020)
5348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350 #else
5351 # define ISLOWER(c) \
5352                    (('a' <= (c) && (c) <= 'i') \
5353                      || ('j' <= (c) && (c) <= 'r') \
5354                      || ('s' <= (c) && (c) <= 'z'))
5355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356 #endif
5357
5358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359 int
5360 main ()
5361 {
5362   int i;
5363   for (i = 0; i < 256; i++)
5364     if (XOR (islower (i), ISLOWER (i))
5365         || toupper (i) != TOUPPER (i))
5366       return 2;
5367   return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_run "$LINENO"; then :
5371
5372 else
5373   ac_cv_header_stdc=no
5374 fi
5375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376   conftest.$ac_objext conftest.beam conftest.$ac_ext
5377 fi
5378
5379 fi
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382 $as_echo "$ac_cv_header_stdc" >&6; }
5383 if test $ac_cv_header_stdc = yes; then
5384
5385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5386
5387 fi
5388
5389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391                   inttypes.h stdint.h unistd.h
5392 do :
5393   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5395 "
5396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5397   cat >>confdefs.h <<_ACEOF
5398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399 _ACEOF
5400
5401 fi
5402
5403 done
5404
5405
5406
5407   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5409   MINIX=yes
5410 else
5411   MINIX=
5412 fi
5413
5414
5415   if test "$MINIX" = yes; then
5416
5417 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5418
5419
5420 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5421
5422
5423 $as_echo "#define _MINIX 1" >>confdefs.h
5424
5425   fi
5426
5427
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h.  */
5435
5436 #         define __EXTENSIONS__ 1
5437           $ac_includes_default
5438 int
5439 main ()
5440 {
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447   ac_cv_safe_to_define___extensions__=yes
5448 else
5449   ac_cv_safe_to_define___extensions__=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455   test $ac_cv_safe_to_define___extensions__ = yes &&
5456     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5457
5458   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5463
5464   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5465
5466
5467
5468 # Check for programs
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 if test -n "$ac_tool_prefix"; then
5475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_CC+set}" = set; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   if test -n "$CC"; then
5483   ac_cv_prog_CC="$CC" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497   done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 CC=$ac_cv_prog_CC
5503 if test -n "$CC"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505 $as_echo "$CC" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 fi
5513 if test -z "$ac_cv_prog_CC"; then
5514   ac_ct_CC=$CC
5515   # Extract the first word of "gcc", so it can be a program name with args.
5516 set dummy gcc; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520   $as_echo_n "(cached) " >&6
5521 else
5522   if test -n "$ac_ct_CC"; then
5523   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532     ac_cv_prog_ac_ct_CC="gcc"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539
5540 fi
5541 fi
5542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543 if test -n "$ac_ct_CC"; then
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545 $as_echo "$ac_ct_CC" >&6; }
5546 else
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551   if test "x$ac_ct_CC" = x; then
5552     CC=""
5553   else
5554     case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560     CC=$ac_ct_CC
5561   fi
5562 else
5563   CC="$ac_cv_prog_CC"
5564 fi
5565
5566 if test -z "$CC"; then
5567           if test -n "$ac_tool_prefix"; then
5568     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}cc; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_CC+set}" = set; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   if test -n "$CC"; then
5576   ac_cv_prog_CC="$CC" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585     ac_cv_prog_CC="${ac_tool_prefix}cc"
5586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590   done
5591 IFS=$as_save_IFS
5592
5593 fi
5594 fi
5595 CC=$ac_cv_prog_CC
5596 if test -n "$CC"; then
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598 $as_echo "$CC" >&6; }
5599 else
5600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605   fi
5606 fi
5607 if test -z "$CC"; then
5608   # Extract the first word of "cc", so it can be a program name with args.
5609 set dummy cc; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_CC+set}" = set; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   if test -n "$CC"; then
5616   ac_cv_prog_CC="$CC" # Let the user override the test.
5617 else
5618   ac_prog_rejected=no
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627        ac_prog_rejected=yes
5628        continue
5629      fi
5630     ac_cv_prog_CC="cc"
5631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635   done
5636 IFS=$as_save_IFS
5637
5638 if test $ac_prog_rejected = yes; then
5639   # We found a bogon in the path, so make sure we never use it.
5640   set dummy $ac_cv_prog_CC
5641   shift
5642   if test $# != 0; then
5643     # We chose a different compiler from the bogus one.
5644     # However, it has the same basename, so the bogon will be chosen
5645     # first if we set CC to just the basename; use the full file name.
5646     shift
5647     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5648   fi
5649 fi
5650 fi
5651 fi
5652 CC=$ac_cv_prog_CC
5653 if test -n "$CC"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655 $as_echo "$CC" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661
5662 fi
5663 if test -z "$CC"; then
5664   if test -n "$ac_tool_prefix"; then
5665   for ac_prog in cl.exe
5666   do
5667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_CC+set}" = set; then :
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$CC"; then
5675   ac_cv_prog_CC="$CC" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 CC=$ac_cv_prog_CC
5695 if test -n "$CC"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697 $as_echo "$CC" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704     test -n "$CC" && break
5705   done
5706 fi
5707 if test -z "$CC"; then
5708   ac_ct_CC=$CC
5709   for ac_prog in cl.exe
5710 do
5711   # Extract the first word of "$ac_prog", so it can be a program name with args.
5712 set dummy $ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if test -n "$ac_ct_CC"; then
5719   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726     for ac_exec_ext in '' $ac_executable_extensions; do
5727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728     ac_cv_prog_ac_ct_CC="$ac_prog"
5729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733   done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739 if test -n "$ac_ct_CC"; then
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741 $as_echo "$ac_ct_CC" >&6; }
5742 else
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747
5748   test -n "$ac_ct_CC" && break
5749 done
5750
5751   if test "x$ac_ct_CC" = x; then
5752     CC=""
5753   else
5754     case $cross_compiling:$ac_tool_warned in
5755 yes:)
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760     CC=$ac_ct_CC
5761   fi
5762 fi
5763
5764 fi
5765
5766
5767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 as_fn_error $? "no acceptable C compiler found in \$PATH
5770 See \`config.log' for more details" "$LINENO" 5; }
5771
5772 # Provide some information about the compiler.
5773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5774 set X $ac_compile
5775 ac_compiler=$2
5776 for ac_option in --version -v -V -qversion; do
5777   { { ac_try="$ac_compiler $ac_option >&5"
5778 case "(($ac_try" in
5779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780   *) ac_try_echo=$ac_try;;
5781 esac
5782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783 $as_echo "$ac_try_echo"; } >&5
5784   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5785   ac_status=$?
5786   if test -s conftest.err; then
5787     sed '10a\
5788 ... rest of stderr output deleted ...
5789          10q' conftest.err >conftest.er1
5790     cat conftest.er1 >&5
5791   fi
5792   rm -f conftest.er1 conftest.err
5793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794   test $ac_status = 0; }
5795 done
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800   $as_echo_n "(cached) " >&6
5801 else
5802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h.  */
5804
5805 int
5806 main ()
5807 {
5808 #ifndef __GNUC__
5809        choke me
5810 #endif
5811
5812   ;
5813   return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"; then :
5817   ac_compiler_gnu=yes
5818 else
5819   ac_compiler_gnu=no
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5823
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827 if test $ac_compiler_gnu = yes; then
5828   GCC=yes
5829 else
5830   GCC=
5831 fi
5832 ac_test_CFLAGS=${CFLAGS+set}
5833 ac_save_CFLAGS=$CFLAGS
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then :
5837   $as_echo_n "(cached) " >&6
5838 else
5839   ac_save_c_werror_flag=$ac_c_werror_flag
5840    ac_c_werror_flag=yes
5841    ac_cv_prog_cc_g=no
5842    CFLAGS="-g"
5843    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h.  */
5845
5846 int
5847 main ()
5848 {
5849
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855   ac_cv_prog_cc_g=yes
5856 else
5857   CFLAGS=""
5858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h.  */
5860
5861 int
5862 main ()
5863 {
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870
5871 else
5872   ac_c_werror_flag=$ac_save_c_werror_flag
5873          CFLAGS="-g"
5874          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876
5877 int
5878 main ()
5879 {
5880
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_compile "$LINENO"; then :
5886   ac_cv_prog_cc_g=yes
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893    ac_c_werror_flag=$ac_save_c_werror_flag
5894 fi
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896 $as_echo "$ac_cv_prog_cc_g" >&6; }
5897 if test "$ac_test_CFLAGS" = set; then
5898   CFLAGS=$ac_save_CFLAGS
5899 elif test $ac_cv_prog_cc_g = yes; then
5900   if test "$GCC" = yes; then
5901     CFLAGS="-g -O2"
5902   else
5903     CFLAGS="-g"
5904   fi
5905 else
5906   if test "$GCC" = yes; then
5907     CFLAGS="-O2"
5908   else
5909     CFLAGS=
5910   fi
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   ac_cv_prog_cc_c89=no
5918 ac_save_CC=$CC
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h.  */
5921 #include <stdarg.h>
5922 #include <stdio.h>
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5926 struct buf { int x; };
5927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928 static char *e (p, i)
5929      char **p;
5930      int i;
5931 {
5932   return p[i];
5933 }
5934 static char *f (char * (*g) (char **, int), char **p, ...)
5935 {
5936   char *s;
5937   va_list v;
5938   va_start (v,p);
5939   s = g (p, va_arg (v,int));
5940   va_end (v);
5941   return s;
5942 }
5943
5944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5945    function prototypes and stuff, but not '\xHH' hex character constants.
5946    These don't provoke an error unfortunately, instead are silently treated
5947    as 'x'.  The following induces an error, until -std is added to get
5948    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5949    array size at least.  It's necessary to write '\x00'==0 to get something
5950    that's true only with -std.  */
5951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954    inside strings and character constants.  */
5955 #define FOO(x) 'x'
5956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958 int test (int i, double x);
5959 struct s1 {int (*f) (int a);};
5960 struct s2 {int (*f) (double a);};
5961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962 int argc;
5963 char **argv;
5964 int
5965 main ()
5966 {
5967 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5968   ;
5969   return 0;
5970 }
5971 _ACEOF
5972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974 do
5975   CC="$ac_save_CC $ac_arg"
5976   if ac_fn_c_try_compile "$LINENO"; then :
5977   ac_cv_prog_cc_c89=$ac_arg
5978 fi
5979 rm -f core conftest.err conftest.$ac_objext
5980   test "x$ac_cv_prog_cc_c89" != "xno" && break
5981 done
5982 rm -f conftest.$ac_ext
5983 CC=$ac_save_CC
5984
5985 fi
5986 # AC_CACHE_VAL
5987 case "x$ac_cv_prog_cc_c89" in
5988   x)
5989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990 $as_echo "none needed" >&6; } ;;
5991   xno)
5992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993 $as_echo "unsupported" >&6; } ;;
5994   *)
5995     CC="$CC $ac_cv_prog_cc_c89"
5996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5998 esac
5999 if test "x$ac_cv_prog_cc_c89" != xno; then :
6000
6001 fi
6002
6003 ac_ext=c
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
6009 depcc="$CC"   am_compiler_list=
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6012 $as_echo_n "checking dependency style of $depcc... " >&6; }
6013 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017   # We make a subdir and do the tests there.  Otherwise we can end up
6018   # making bogus files that we don't know about and never remove.  For
6019   # instance it was reported that on HP-UX the gcc test will end up
6020   # making a dummy file named `D' -- because `-MD' means `put the output
6021   # in D'.
6022   mkdir conftest.dir
6023   # Copy depcomp to subdir because otherwise we won't find it if we're
6024   # using a relative directory.
6025   cp "$am_depcomp" conftest.dir
6026   cd conftest.dir
6027   # We will build objects and dependencies in a subdirectory because
6028   # it helps to detect inapplicable dependency modes.  For instance
6029   # both Tru64's cc and ICC support -MD to output dependencies as a
6030   # side effect of compilation, but ICC will put the dependencies in
6031   # the current directory while Tru64 will put them in the object
6032   # directory.
6033   mkdir sub
6034
6035   am_cv_CC_dependencies_compiler_type=none
6036   if test "$am_compiler_list" = ""; then
6037      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038   fi
6039   am__universal=false
6040   case " $depcc " in #(
6041      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6042      esac
6043
6044   for depmode in $am_compiler_list; do
6045     # Setup a source with many dependencies, because some compilers
6046     # like to wrap large dependency lists on column 80 (with \), and
6047     # we should not choose a depcomp mode which is confused by this.
6048     #
6049     # We need to recreate these files for each test, as the compiler may
6050     # overwrite some of them when testing with obscure command lines.
6051     # This happens at least with the AIX C compiler.
6052     : > sub/conftest.c
6053     for i in 1 2 3 4 5 6; do
6054       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056       # Solaris 8's {/usr,}/bin/sh.
6057       touch sub/conftst$i.h
6058     done
6059     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6060
6061     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062     # mode.  It turns out that the SunPro C++ compiler does not properly
6063     # handle `-M -o', and we need to detect this.  Also, some Intel
6064     # versions had trouble with output in subdirs
6065     am__obj=sub/conftest.${OBJEXT-o}
6066     am__minus_obj="-o $am__obj"
6067     case $depmode in
6068     gcc)
6069       # This depmode causes a compiler race in universal mode.
6070       test "$am__universal" = false || continue
6071       ;;
6072     nosideeffect)
6073       # after this tag, mechanisms are not by side-effect, so they'll
6074       # only be used when explicitly requested
6075       if test "x$enable_dependency_tracking" = xyes; then
6076         continue
6077       else
6078         break
6079       fi
6080       ;;
6081     msvisualcpp | msvcmsys)
6082       # This compiler won't grok `-c -o', but also, the minuso test has
6083       # not run yet.  These depmodes are late enough in the game, and
6084       # so weak that their functioning should not be impacted.
6085       am__obj=conftest.${OBJEXT-o}
6086       am__minus_obj=
6087       ;;
6088     none) break ;;
6089     esac
6090     if depmode=$depmode \
6091        source=sub/conftest.c object=$am__obj \
6092        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094          >/dev/null 2>conftest.err &&
6095        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099       # icc doesn't choke on unknown options, it will just issue warnings
6100       # or remarks (even with -Werror).  So we grep stderr for any message
6101       # that says an option was ignored or not supported.
6102       # When given -MP, icc 7.0 and 7.1 complain thusly:
6103       #   icc: Command line warning: ignoring option '-M'; no argument required
6104       # The diagnosis changed in icc 8.0:
6105       #   icc: Command line remark: option '-MP' not supported
6106       if (grep 'ignoring option' conftest.err ||
6107           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108         am_cv_CC_dependencies_compiler_type=$depmode
6109         break
6110       fi
6111     fi
6112   done
6113
6114   cd ..
6115   rm -rf conftest.dir
6116 else
6117   am_cv_CC_dependencies_compiler_type=none
6118 fi
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6122 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6124
6125  if
6126   test "x$enable_dependency_tracking" != xno \
6127   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6128   am__fastdepCC_TRUE=
6129   am__fastdepCC_FALSE='#'
6130 else
6131   am__fastdepCC_TRUE='#'
6132   am__fastdepCC_FALSE=
6133 fi
6134
6135
6136 ac_ext=cpp
6137 ac_cpp='$CXXCPP $CPPFLAGS'
6138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141 if test -z "$CXX"; then
6142   if test -n "$CCC"; then
6143     CXX=$CCC
6144   else
6145     if test -n "$ac_tool_prefix"; then
6146   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147   do
6148     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_CXX+set}" = set; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if test -n "$CXX"; then
6156   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163     for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170   done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 CXX=$ac_cv_prog_CXX
6176 if test -n "$CXX"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178 $as_echo "$CXX" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184
6185     test -n "$CXX" && break
6186   done
6187 fi
6188 if test -z "$CXX"; then
6189   ac_ct_CXX=$CXX
6190   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191 do
6192   # Extract the first word of "$ac_prog", so it can be a program name with args.
6193 set dummy $ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$ac_ct_CXX"; then
6200   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_ac_ct_CXX="$ac_prog"
6210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214   done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220 if test -n "$ac_ct_CXX"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222 $as_echo "$ac_ct_CXX" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229   test -n "$ac_ct_CXX" && break
6230 done
6231
6232   if test "x$ac_ct_CXX" = x; then
6233     CXX="g++"
6234   else
6235     case $cross_compiling:$ac_tool_warned in
6236 yes:)
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239 ac_tool_warned=yes ;;
6240 esac
6241     CXX=$ac_ct_CXX
6242   fi
6243 fi
6244
6245   fi
6246 fi
6247 # Provide some information about the compiler.
6248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6249 set X $ac_compile
6250 ac_compiler=$2
6251 for ac_option in --version -v -V -qversion; do
6252   { { ac_try="$ac_compiler $ac_option >&5"
6253 case "(($ac_try" in
6254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255   *) ac_try_echo=$ac_try;;
6256 esac
6257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258 $as_echo "$ac_try_echo"; } >&5
6259   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260   ac_status=$?
6261   if test -s conftest.err; then
6262     sed '10a\
6263 ... rest of stderr output deleted ...
6264          10q' conftest.err >conftest.er1
6265     cat conftest.er1 >&5
6266   fi
6267   rm -f conftest.er1 conftest.err
6268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269   test $ac_status = 0; }
6270 done
6271
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h.  */
6279
6280 int
6281 main ()
6282 {
6283 #ifndef __GNUC__
6284        choke me
6285 #endif
6286
6287   ;
6288   return 0;
6289 }
6290 _ACEOF
6291 if ac_fn_cxx_try_compile "$LINENO"; then :
6292   ac_compiler_gnu=yes
6293 else
6294   ac_compiler_gnu=no
6295 fi
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299 fi
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302 if test $ac_compiler_gnu = yes; then
6303   GXX=yes
6304 else
6305   GXX=
6306 fi
6307 ac_test_CXXFLAGS=${CXXFLAGS+set}
6308 ac_save_CXXFLAGS=$CXXFLAGS
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315    ac_cxx_werror_flag=yes
6316    ac_cv_prog_cxx_g=no
6317    CXXFLAGS="-g"
6318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h.  */
6320
6321 int
6322 main ()
6323 {
6324
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_cxx_try_compile "$LINENO"; then :
6330   ac_cv_prog_cxx_g=yes
6331 else
6332   CXXFLAGS=""
6333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h.  */
6335
6336 int
6337 main ()
6338 {
6339
6340   ;
6341   return 0;
6342 }
6343 _ACEOF
6344 if ac_fn_cxx_try_compile "$LINENO"; then :
6345
6346 else
6347   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6348          CXXFLAGS="-g"
6349          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351
6352 int
6353 main ()
6354 {
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 if ac_fn_cxx_try_compile "$LINENO"; then :
6361   ac_cv_prog_cxx_g=yes
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 fi
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6372 if test "$ac_test_CXXFLAGS" = set; then
6373   CXXFLAGS=$ac_save_CXXFLAGS
6374 elif test $ac_cv_prog_cxx_g = yes; then
6375   if test "$GXX" = yes; then
6376     CXXFLAGS="-g -O2"
6377   else
6378     CXXFLAGS="-g"
6379   fi
6380 else
6381   if test "$GXX" = yes; then
6382     CXXFLAGS="-O2"
6383   else
6384     CXXFLAGS=
6385   fi
6386 fi
6387 ac_ext=c
6388 ac_cpp='$CPP $CPPFLAGS'
6389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393 depcc="$CXX"  am_compiler_list=
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396 $as_echo_n "checking dependency style of $depcc... " >&6; }
6397 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401   # We make a subdir and do the tests there.  Otherwise we can end up
6402   # making bogus files that we don't know about and never remove.  For
6403   # instance it was reported that on HP-UX the gcc test will end up
6404   # making a dummy file named `D' -- because `-MD' means `put the output
6405   # in D'.
6406   mkdir conftest.dir
6407   # Copy depcomp to subdir because otherwise we won't find it if we're
6408   # using a relative directory.
6409   cp "$am_depcomp" conftest.dir
6410   cd conftest.dir
6411   # We will build objects and dependencies in a subdirectory because
6412   # it helps to detect inapplicable dependency modes.  For instance
6413   # both Tru64's cc and ICC support -MD to output dependencies as a
6414   # side effect of compilation, but ICC will put the dependencies in
6415   # the current directory while Tru64 will put them in the object
6416   # directory.
6417   mkdir sub
6418
6419   am_cv_CXX_dependencies_compiler_type=none
6420   if test "$am_compiler_list" = ""; then
6421      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422   fi
6423   am__universal=false
6424   case " $depcc " in #(
6425      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426      esac
6427
6428   for depmode in $am_compiler_list; do
6429     # Setup a source with many dependencies, because some compilers
6430     # like to wrap large dependency lists on column 80 (with \), and
6431     # we should not choose a depcomp mode which is confused by this.
6432     #
6433     # We need to recreate these files for each test, as the compiler may
6434     # overwrite some of them when testing with obscure command lines.
6435     # This happens at least with the AIX C compiler.
6436     : > sub/conftest.c
6437     for i in 1 2 3 4 5 6; do
6438       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440       # Solaris 8's {/usr,}/bin/sh.
6441       touch sub/conftst$i.h
6442     done
6443     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446     # mode.  It turns out that the SunPro C++ compiler does not properly
6447     # handle `-M -o', and we need to detect this.  Also, some Intel
6448     # versions had trouble with output in subdirs
6449     am__obj=sub/conftest.${OBJEXT-o}
6450     am__minus_obj="-o $am__obj"
6451     case $depmode in
6452     gcc)
6453       # This depmode causes a compiler race in universal mode.
6454       test "$am__universal" = false || continue
6455       ;;
6456     nosideeffect)
6457       # after this tag, mechanisms are not by side-effect, so they'll
6458       # only be used when explicitly requested
6459       if test "x$enable_dependency_tracking" = xyes; then
6460         continue
6461       else
6462         break
6463       fi
6464       ;;
6465     msvisualcpp | msvcmsys)
6466       # This compiler won't grok `-c -o', but also, the minuso test has
6467       # not run yet.  These depmodes are late enough in the game, and
6468       # so weak that their functioning should not be impacted.
6469       am__obj=conftest.${OBJEXT-o}
6470       am__minus_obj=
6471       ;;
6472     none) break ;;
6473     esac
6474     if depmode=$depmode \
6475        source=sub/conftest.c object=$am__obj \
6476        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478          >/dev/null 2>conftest.err &&
6479        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483       # icc doesn't choke on unknown options, it will just issue warnings
6484       # or remarks (even with -Werror).  So we grep stderr for any message
6485       # that says an option was ignored or not supported.
6486       # When given -MP, icc 7.0 and 7.1 complain thusly:
6487       #   icc: Command line warning: ignoring option '-M'; no argument required
6488       # The diagnosis changed in icc 8.0:
6489       #   icc: Command line remark: option '-MP' not supported
6490       if (grep 'ignoring option' conftest.err ||
6491           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492         am_cv_CXX_dependencies_compiler_type=$depmode
6493         break
6494       fi
6495     fi
6496   done
6497
6498   cd ..
6499   rm -rf conftest.dir
6500 else
6501   am_cv_CXX_dependencies_compiler_type=none
6502 fi
6503
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509  if
6510   test "x$enable_dependency_tracking" != xno \
6511   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512   am__fastdepCXX_TRUE=
6513   am__fastdepCXX_FALSE='#'
6514 else
6515   am__fastdepCXX_TRUE='#'
6516   am__fastdepCXX_FALSE=
6517 fi
6518
6519
6520    case $ac_cv_prog_cc_stdc in #(
6521   no) :
6522     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6523   *) :
6524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6525 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6526 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6527   $as_echo_n "(cached) " >&6
6528 else
6529   ac_cv_prog_cc_c99=no
6530 ac_save_CC=$CC
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h.  */
6533 #include <stdarg.h>
6534 #include <stdbool.h>
6535 #include <stdlib.h>
6536 #include <wchar.h>
6537 #include <stdio.h>
6538
6539 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6540 #define debug(...) fprintf (stderr, __VA_ARGS__)
6541 #define showlist(...) puts (#__VA_ARGS__)
6542 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6543 static void
6544 test_varargs_macros (void)
6545 {
6546   int x = 1234;
6547   int y = 5678;
6548   debug ("Flag");
6549   debug ("X = %d\n", x);
6550   showlist (The first, second, and third items.);
6551   report (x>y, "x is %d but y is %d", x, y);
6552 }
6553
6554 // Check long long types.
6555 #define BIG64 18446744073709551615ull
6556 #define BIG32 4294967295ul
6557 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6558 #if !BIG_OK
6559   your preprocessor is broken;
6560 #endif
6561 #if BIG_OK
6562 #else
6563   your preprocessor is broken;
6564 #endif
6565 static long long int bignum = -9223372036854775807LL;
6566 static unsigned long long int ubignum = BIG64;
6567
6568 struct incomplete_array
6569 {
6570   int datasize;
6571   double data[];
6572 };
6573
6574 struct named_init {
6575   int number;
6576   const wchar_t *name;
6577   double average;
6578 };
6579
6580 typedef const char *ccp;
6581
6582 static inline int
6583 test_restrict (ccp restrict text)
6584 {
6585   // See if C++-style comments work.
6586   // Iterate through items via the restricted pointer.
6587   // Also check for declarations in for loops.
6588   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6589     continue;
6590   return 0;
6591 }
6592
6593 // Check varargs and va_copy.
6594 static void
6595 test_varargs (const char *format, ...)
6596 {
6597   va_list args;
6598   va_start (args, format);
6599   va_list args_copy;
6600   va_copy (args_copy, args);
6601
6602   const char *str;
6603   int number;
6604   float fnumber;
6605
6606   while (*format)
6607     {
6608       switch (*format++)
6609         {
6610         case 's': // string
6611           str = va_arg (args_copy, const char *);
6612           break;
6613         case 'd': // int
6614           number = va_arg (args_copy, int);
6615           break;
6616         case 'f': // float
6617           fnumber = va_arg (args_copy, double);
6618           break;
6619         default:
6620           break;
6621         }
6622     }
6623   va_end (args_copy);
6624   va_end (args);
6625 }
6626
6627 int
6628 main ()
6629 {
6630
6631   // Check bool.
6632   _Bool success = false;
6633
6634   // Check restrict.
6635   if (test_restrict ("String literal") == 0)
6636     success = true;
6637   char *restrict newvar = "Another string";
6638
6639   // Check varargs.
6640   test_varargs ("s, d' f .", "string", 65, 34.234);
6641   test_varargs_macros ();
6642
6643   // Check flexible array members.
6644   struct incomplete_array *ia =
6645     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6646   ia->datasize = 10;
6647   for (int i = 0; i < ia->datasize; ++i)
6648     ia->data[i] = i * 1.234;
6649
6650   // Check named initializers.
6651   struct named_init ni = {
6652     .number = 34,
6653     .name = L"Test wide string",
6654     .average = 543.34343,
6655   };
6656
6657   ni.number = 58;
6658
6659   int dynamic_array[ni.number];
6660   dynamic_array[ni.number - 1] = 543;
6661
6662   // work around unused variable warnings
6663   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664           || dynamic_array[ni.number - 1] != 543);
6665
6666   ;
6667   return 0;
6668 }
6669 _ACEOF
6670 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6671 do
6672   CC="$ac_save_CC $ac_arg"
6673   if ac_fn_c_try_compile "$LINENO"; then :
6674   ac_cv_prog_cc_c99=$ac_arg
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext
6677   test "x$ac_cv_prog_cc_c99" != "xno" && break
6678 done
6679 rm -f conftest.$ac_ext
6680 CC=$ac_save_CC
6681
6682 fi
6683 # AC_CACHE_VAL
6684 case "x$ac_cv_prog_cc_c99" in
6685   x)
6686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6687 $as_echo "none needed" >&6; } ;;
6688   xno)
6689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6690 $as_echo "unsupported" >&6; } ;;
6691   *)
6692     CC="$CC $ac_cv_prog_cc_c99"
6693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6694 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6695 esac
6696 if test "x$ac_cv_prog_cc_c99" != xno; then :
6697   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6701 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   ac_cv_prog_cc_c89=no
6705 ac_save_CC=$CC
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h.  */
6708 #include <stdarg.h>
6709 #include <stdio.h>
6710 #include <sys/types.h>
6711 #include <sys/stat.h>
6712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6713 struct buf { int x; };
6714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715 static char *e (p, i)
6716      char **p;
6717      int i;
6718 {
6719   return p[i];
6720 }
6721 static char *f (char * (*g) (char **, int), char **p, ...)
6722 {
6723   char *s;
6724   va_list v;
6725   va_start (v,p);
6726   s = g (p, va_arg (v,int));
6727   va_end (v);
6728   return s;
6729 }
6730
6731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6732    function prototypes and stuff, but not '\xHH' hex character constants.
6733    These don't provoke an error unfortunately, instead are silently treated
6734    as 'x'.  The following induces an error, until -std is added to get
6735    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6736    array size at least.  It's necessary to write '\x00'==0 to get something
6737    that's true only with -std.  */
6738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6739
6740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741    inside strings and character constants.  */
6742 #define FOO(x) 'x'
6743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6744
6745 int test (int i, double x);
6746 struct s1 {int (*f) (int a);};
6747 struct s2 {int (*f) (double a);};
6748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6749 int argc;
6750 char **argv;
6751 int
6752 main ()
6753 {
6754 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6755   ;
6756   return 0;
6757 }
6758 _ACEOF
6759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6761 do
6762   CC="$ac_save_CC $ac_arg"
6763   if ac_fn_c_try_compile "$LINENO"; then :
6764   ac_cv_prog_cc_c89=$ac_arg
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext
6767   test "x$ac_cv_prog_cc_c89" != "xno" && break
6768 done
6769 rm -f conftest.$ac_ext
6770 CC=$ac_save_CC
6771
6772 fi
6773 # AC_CACHE_VAL
6774 case "x$ac_cv_prog_cc_c89" in
6775   x)
6776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6777 $as_echo "none needed" >&6; } ;;
6778   xno)
6779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6780 $as_echo "unsupported" >&6; } ;;
6781   *)
6782     CC="$CC $ac_cv_prog_cc_c89"
6783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6785 esac
6786 if test "x$ac_cv_prog_cc_c89" != xno; then :
6787   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6788 else
6789   ac_cv_prog_cc_stdc=no
6790 fi
6791
6792 fi
6793  ;;
6794 esac
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6796 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6797   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6798   $as_echo_n "(cached) " >&6
6799 fi
6800
6801   case $ac_cv_prog_cc_stdc in #(
6802   no) :
6803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804 $as_echo "unsupported" >&6; } ;; #(
6805   '') :
6806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807 $as_echo "none needed" >&6; } ;; #(
6808   *) :
6809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6810 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6811 esac
6812
6813 ac_ext=c
6814 ac_cpp='$CPP $CPPFLAGS'
6815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6820 # On Suns, sometimes $CPP names a directory.
6821 if test -n "$CPP" && test -d "$CPP"; then
6822   CPP=
6823 fi
6824 if test -z "$CPP"; then
6825   if test "${ac_cv_prog_CPP+set}" = set; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828       # Double quotes because CPP needs to be expanded
6829     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6830     do
6831       ac_preproc_ok=false
6832 for ac_c_preproc_warn_flag in '' yes
6833 do
6834   # Use a header file that comes with gcc, so configuring glibc
6835   # with a fresh cross-compiler works.
6836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837   # <limits.h> exists even on freestanding compilers.
6838   # On the NeXT, cc -E runs the code through the compiler's parser,
6839   # not just through cpp. "Syntax error" is here to catch this case.
6840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 #ifdef __STDC__
6843 # include <limits.h>
6844 #else
6845 # include <assert.h>
6846 #endif
6847                      Syntax error
6848 _ACEOF
6849 if ac_fn_c_try_cpp "$LINENO"; then :
6850
6851 else
6852   # Broken: fails on valid input.
6853 continue
6854 fi
6855 rm -f conftest.err conftest.$ac_ext
6856
6857   # OK, works on sane cases.  Now check whether nonexistent headers
6858   # can be detected and how.
6859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h.  */
6861 #include <ac_nonexistent.h>
6862 _ACEOF
6863 if ac_fn_c_try_cpp "$LINENO"; then :
6864   # Broken: success on invalid input.
6865 continue
6866 else
6867   # Passes both tests.
6868 ac_preproc_ok=:
6869 break
6870 fi
6871 rm -f conftest.err conftest.$ac_ext
6872
6873 done
6874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875 rm -f conftest.err conftest.$ac_ext
6876 if $ac_preproc_ok; then :
6877   break
6878 fi
6879
6880     done
6881     ac_cv_prog_CPP=$CPP
6882
6883 fi
6884   CPP=$ac_cv_prog_CPP
6885 else
6886   ac_cv_prog_CPP=$CPP
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6889 $as_echo "$CPP" >&6; }
6890 ac_preproc_ok=false
6891 for ac_c_preproc_warn_flag in '' yes
6892 do
6893   # Use a header file that comes with gcc, so configuring glibc
6894   # with a fresh cross-compiler works.
6895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896   # <limits.h> exists even on freestanding compilers.
6897   # On the NeXT, cc -E runs the code through the compiler's parser,
6898   # not just through cpp. "Syntax error" is here to catch this case.
6899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h.  */
6901 #ifdef __STDC__
6902 # include <limits.h>
6903 #else
6904 # include <assert.h>
6905 #endif
6906                      Syntax error
6907 _ACEOF
6908 if ac_fn_c_try_cpp "$LINENO"; then :
6909
6910 else
6911   # Broken: fails on valid input.
6912 continue
6913 fi
6914 rm -f conftest.err conftest.$ac_ext
6915
6916   # OK, works on sane cases.  Now check whether nonexistent headers
6917   # can be detected and how.
6918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h.  */
6920 #include <ac_nonexistent.h>
6921 _ACEOF
6922 if ac_fn_c_try_cpp "$LINENO"; then :
6923   # Broken: success on invalid input.
6924 continue
6925 else
6926   # Passes both tests.
6927 ac_preproc_ok=:
6928 break
6929 fi
6930 rm -f conftest.err conftest.$ac_ext
6931
6932 done
6933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934 rm -f conftest.err conftest.$ac_ext
6935 if $ac_preproc_ok; then :
6936
6937 else
6938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941 See \`config.log' for more details" "$LINENO" 5; }
6942 fi
6943
6944 ac_ext=c
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6951 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6952 if test "${ac_cv_path_SED+set}" = set; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956      for ac_i in 1 2 3 4 5 6 7; do
6957        ac_script="$ac_script$as_nl$ac_script"
6958      done
6959      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6960      { ac_script=; unset ac_script;}
6961      if test -z "$SED"; then
6962   ac_path_SED_found=false
6963   # Loop through the user's path and test for each of PROGNAME-LIST
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969     for ac_prog in sed gsed; do
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973 # Check for GNU ac_path_SED and select it if it is found.
6974   # Check for GNU $ac_path_SED
6975 case `"$ac_path_SED" --version 2>&1` in
6976 *GNU*)
6977   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978 *)
6979   ac_count=0
6980   $as_echo_n 0123456789 >"conftest.in"
6981   while :
6982   do
6983     cat "conftest.in" "conftest.in" >"conftest.tmp"
6984     mv "conftest.tmp" "conftest.in"
6985     cp "conftest.in" "conftest.nl"
6986     $as_echo '' >> "conftest.nl"
6987     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6989     as_fn_arith $ac_count + 1 && ac_count=$as_val
6990     if test $ac_count -gt ${ac_path_SED_max-0}; then
6991       # Best one so far, save it but keep looking for a better one
6992       ac_cv_path_SED="$ac_path_SED"
6993       ac_path_SED_max=$ac_count
6994     fi
6995     # 10*(2^10) chars as input seems more than enough
6996     test $ac_count -gt 10 && break
6997   done
6998   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999 esac
7000
7001       $ac_path_SED_found && break 3
7002     done
7003   done
7004   done
7005 IFS=$as_save_IFS
7006   if test -z "$ac_cv_path_SED"; then
7007     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7008   fi
7009 else
7010   ac_cv_path_SED=$SED
7011 fi
7012
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7015 $as_echo "$ac_cv_path_SED" >&6; }
7016  SED="$ac_cv_path_SED"
7017   rm -f conftest.sed
7018
7019 test -z "$SED" && SED=sed
7020 Xsed="$SED -e 1s/^X//"
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7033 $as_echo_n "checking for fgrep... " >&6; }
7034 if test "${ac_cv_path_FGREP+set}" = set; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038    then ac_cv_path_FGREP="$GREP -F"
7039    else
7040      if test -z "$FGREP"; then
7041   ac_path_FGREP_found=false
7042   # Loop through the user's path and test for each of PROGNAME-LIST
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048     for ac_prog in fgrep; do
7049     for ac_exec_ext in '' $ac_executable_extensions; do
7050       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052 # Check for GNU ac_path_FGREP and select it if it is found.
7053   # Check for GNU $ac_path_FGREP
7054 case `"$ac_path_FGREP" --version 2>&1` in
7055 *GNU*)
7056   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7057 *)
7058   ac_count=0
7059   $as_echo_n 0123456789 >"conftest.in"
7060   while :
7061   do
7062     cat "conftest.in" "conftest.in" >"conftest.tmp"
7063     mv "conftest.tmp" "conftest.in"
7064     cp "conftest.in" "conftest.nl"
7065     $as_echo 'FGREP' >> "conftest.nl"
7066     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7068     as_fn_arith $ac_count + 1 && ac_count=$as_val
7069     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070       # Best one so far, save it but keep looking for a better one
7071       ac_cv_path_FGREP="$ac_path_FGREP"
7072       ac_path_FGREP_max=$ac_count
7073     fi
7074     # 10*(2^10) chars as input seems more than enough
7075     test $ac_count -gt 10 && break
7076   done
7077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7078 esac
7079
7080       $ac_path_FGREP_found && break 3
7081     done
7082   done
7083   done
7084 IFS=$as_save_IFS
7085   if test -z "$ac_cv_path_FGREP"; then
7086     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7087   fi
7088 else
7089   ac_cv_path_FGREP=$FGREP
7090 fi
7091
7092    fi
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7095 $as_echo "$ac_cv_path_FGREP" >&6; }
7096  FGREP="$ac_cv_path_FGREP"
7097
7098
7099 test -z "$GREP" && GREP=grep
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122 $as_echo_n "checking how to print strings... " >&6; }
7123 # Test print first, because it will be a builtin if present.
7124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7126   ECHO='print -r --'
7127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7128   ECHO='printf %s\n'
7129 else
7130   # Use this function as a fallback that always works.
7131   func_fallback_echo ()
7132   {
7133     eval 'cat <<_LTECHO_EOF
7134 $1
7135 _LTECHO_EOF'
7136   }
7137   ECHO='func_fallback_echo'
7138 fi
7139
7140 # func_echo_all arg...
7141 # Invoke $ECHO with all args, space-separated.
7142 func_echo_all ()
7143 {
7144     $ECHO ""
7145 }
7146
7147 case "$ECHO" in
7148   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149 $as_echo "printf" >&6; } ;;
7150   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151 $as_echo "print -r" >&6; } ;;
7152   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153 $as_echo "cat" >&6; } ;;
7154 esac
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171 # Check whether --with-gnu-ld was given.
7172 if test "${with_gnu_ld+set}" = set; then :
7173   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7174 else
7175   with_gnu_ld=no
7176 fi
7177
7178 ac_prog=ld
7179 if test "$GCC" = yes; then
7180   # Check if gcc -print-prog-name=ld gives a path.
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7182 $as_echo_n "checking for ld used by $CC... " >&6; }
7183   case $host in
7184   *-*-mingw*)
7185     # gcc leaves a trailing carriage return which upsets mingw
7186     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7187   *)
7188     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7189   esac
7190   case $ac_prog in
7191     # Accept absolute paths.
7192     [\\/]* | ?:[\\/]*)
7193       re_direlt='/[^/][^/]*/\.\./'
7194       # Canonicalize the pathname of ld
7195       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7198       done
7199       test -z "$LD" && LD="$ac_prog"
7200       ;;
7201   "")
7202     # If it fails, then pretend we aren't using GCC.
7203     ac_prog=ld
7204     ;;
7205   *)
7206     # If it is relative, then search for the first ld in PATH.
7207     with_gnu_ld=unknown
7208     ;;
7209   esac
7210 elif test "$with_gnu_ld" = yes; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7212 $as_echo_n "checking for GNU ld... " >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7215 $as_echo_n "checking for non-GNU ld... " >&6; }
7216 fi
7217 if test "${lt_cv_path_LD+set}" = set; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -z "$LD"; then
7221   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222   for ac_dir in $PATH; do
7223     IFS="$lt_save_ifs"
7224     test -z "$ac_dir" && ac_dir=.
7225     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226       lt_cv_path_LD="$ac_dir/$ac_prog"
7227       # Check to see if the program is GNU ld.  I'd rather use --version,
7228       # but apparently some variants of GNU ld only accept -v.
7229       # Break only if it was the GNU/non-GNU ld that we prefer.
7230       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231       *GNU* | *'with BFD'*)
7232         test "$with_gnu_ld" != no && break
7233         ;;
7234       *)
7235         test "$with_gnu_ld" != yes && break
7236         ;;
7237       esac
7238     fi
7239   done
7240   IFS="$lt_save_ifs"
7241 else
7242   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7243 fi
7244 fi
7245
7246 LD="$lt_cv_path_LD"
7247 if test -n "$LD"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7249 $as_echo "$LD" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7256 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7257 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261 case `$LD -v 2>&1 </dev/null` in
7262 *GNU* | *'with BFD'*)
7263   lt_cv_prog_gnu_ld=yes
7264   ;;
7265 *)
7266   lt_cv_prog_gnu_ld=no
7267   ;;
7268 esac
7269 fi
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7271 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272 with_gnu_ld=$lt_cv_prog_gnu_ld
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   ac_cv_prog_cc_c99=no
7289 ac_save_CC=$CC
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h.  */
7292 #include <stdarg.h>
7293 #include <stdbool.h>
7294 #include <stdlib.h>
7295 #include <wchar.h>
7296 #include <stdio.h>
7297
7298 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7299 #define debug(...) fprintf (stderr, __VA_ARGS__)
7300 #define showlist(...) puts (#__VA_ARGS__)
7301 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7302 static void
7303 test_varargs_macros (void)
7304 {
7305   int x = 1234;
7306   int y = 5678;
7307   debug ("Flag");
7308   debug ("X = %d\n", x);
7309   showlist (The first, second, and third items.);
7310   report (x>y, "x is %d but y is %d", x, y);
7311 }
7312
7313 // Check long long types.
7314 #define BIG64 18446744073709551615ull
7315 #define BIG32 4294967295ul
7316 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7317 #if !BIG_OK
7318   your preprocessor is broken;
7319 #endif
7320 #if BIG_OK
7321 #else
7322   your preprocessor is broken;
7323 #endif
7324 static long long int bignum = -9223372036854775807LL;
7325 static unsigned long long int ubignum = BIG64;
7326
7327 struct incomplete_array
7328 {
7329   int datasize;
7330   double data[];
7331 };
7332
7333 struct named_init {
7334   int number;
7335   const wchar_t *name;
7336   double average;
7337 };
7338
7339 typedef const char *ccp;
7340
7341 static inline int
7342 test_restrict (ccp restrict text)
7343 {
7344   // See if C++-style comments work.
7345   // Iterate through items via the restricted pointer.
7346   // Also check for declarations in for loops.
7347   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7348     continue;
7349   return 0;
7350 }
7351
7352 // Check varargs and va_copy.
7353 static void
7354 test_varargs (const char *format, ...)
7355 {
7356   va_list args;
7357   va_start (args, format);
7358   va_list args_copy;
7359   va_copy (args_copy, args);
7360
7361   const char *str;
7362   int number;
7363   float fnumber;
7364
7365   while (*format)
7366     {
7367       switch (*format++)
7368         {
7369         case 's': // string
7370           str = va_arg (args_copy, const char *);
7371           break;
7372         case 'd': // int
7373           number = va_arg (args_copy, int);
7374           break;
7375         case 'f': // float
7376           fnumber = va_arg (args_copy, double);
7377           break;
7378         default:
7379           break;
7380         }
7381     }
7382   va_end (args_copy);
7383   va_end (args);
7384 }
7385
7386 int
7387 main ()
7388 {
7389
7390   // Check bool.
7391   _Bool success = false;
7392
7393   // Check restrict.
7394   if (test_restrict ("String literal") == 0)
7395     success = true;
7396   char *restrict newvar = "Another string";
7397
7398   // Check varargs.
7399   test_varargs ("s, d' f .", "string", 65, 34.234);
7400   test_varargs_macros ();
7401
7402   // Check flexible array members.
7403   struct incomplete_array *ia =
7404     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7405   ia->datasize = 10;
7406   for (int i = 0; i < ia->datasize; ++i)
7407     ia->data[i] = i * 1.234;
7408
7409   // Check named initializers.
7410   struct named_init ni = {
7411     .number = 34,
7412     .name = L"Test wide string",
7413     .average = 543.34343,
7414   };
7415
7416   ni.number = 58;
7417
7418   int dynamic_array[ni.number];
7419   dynamic_array[ni.number - 1] = 543;
7420
7421   // work around unused variable warnings
7422   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423           || dynamic_array[ni.number - 1] != 543);
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7430 do
7431   CC="$ac_save_CC $ac_arg"
7432   if ac_fn_c_try_compile "$LINENO"; then :
7433   ac_cv_prog_cc_c99=$ac_arg
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext
7436   test "x$ac_cv_prog_cc_c99" != "xno" && break
7437 done
7438 rm -f conftest.$ac_ext
7439 CC=$ac_save_CC
7440
7441 fi
7442 # AC_CACHE_VAL
7443 case "x$ac_cv_prog_cc_c99" in
7444   x)
7445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446 $as_echo "none needed" >&6; } ;;
7447   xno)
7448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449 $as_echo "unsupported" >&6; } ;;
7450   *)
7451     CC="$CC $ac_cv_prog_cc_c99"
7452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7454 esac
7455 if test "x$ac_cv_prog_cc_c99" != xno; then :
7456
7457 fi
7458
7459
7460 if test "x$CC" != xcc; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7462 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7465 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7466 fi
7467 set dummy $CC; ac_cc=`$as_echo "$2" |
7468                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7469 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h.  */
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 # Make sure it works both with $CC and with simple cc.
7484 # We do the test twice because some compilers refuse to overwrite an
7485 # existing .o file with -o, though they will create one.
7486 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7487 rm -f conftest2.*
7488 if { { case "(($ac_try" in
7489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490   *) ac_try_echo=$ac_try;;
7491 esac
7492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493 $as_echo "$ac_try_echo"; } >&5
7494   (eval "$ac_try") 2>&5
7495   ac_status=$?
7496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497   test $ac_status = 0; } &&
7498    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500   *) ac_try_echo=$ac_try;;
7501 esac
7502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503 $as_echo "$ac_try_echo"; } >&5
7504   (eval "$ac_try") 2>&5
7505   ac_status=$?
7506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507   test $ac_status = 0; };
7508 then
7509   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510   if test "x$CC" != xcc; then
7511     # Test first that cc exists at all.
7512     if { ac_try='cc -c conftest.$ac_ext >&5'
7513   { { case "(($ac_try" in
7514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515   *) ac_try_echo=$ac_try;;
7516 esac
7517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518 $as_echo "$ac_try_echo"; } >&5
7519   (eval "$ac_try") 2>&5
7520   ac_status=$?
7521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522   test $ac_status = 0; }; }; then
7523       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7524       rm -f conftest2.*
7525       if { { case "(($ac_try" in
7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527   *) ac_try_echo=$ac_try;;
7528 esac
7529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530 $as_echo "$ac_try_echo"; } >&5
7531   (eval "$ac_try") 2>&5
7532   ac_status=$?
7533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534   test $ac_status = 0; } &&
7535          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537   *) ac_try_echo=$ac_try;;
7538 esac
7539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540 $as_echo "$ac_try_echo"; } >&5
7541   (eval "$ac_try") 2>&5
7542   ac_status=$?
7543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544   test $ac_status = 0; };
7545       then
7546         # cc works too.
7547         :
7548       else
7549         # cc exists but doesn't like -o.
7550         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7551       fi
7552     fi
7553   fi
7554 else
7555   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7556 fi
7557 rm -f core conftest*
7558
7559 fi
7560 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7562 $as_echo "yes" >&6; }
7563 else
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7566
7567 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7568
7569 fi
7570
7571 # FIXME: we rely on the cache variable name because
7572 # there is no other way.
7573 set dummy $CC
7574 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576 if test "$am_t" != yes; then
7577    # Losing compiler, so override with the script.
7578    # FIXME: It is wrong to rewrite CC.
7579    # But if we don't then we get into trouble of one sort or another.
7580    # A longer-term fix would be to have automake use am__CC in this case,
7581    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582    CC="$am_aux_dir/compile $CC"
7583 fi
7584
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589   $as_echo_n "(cached) " >&6
7590 else
7591   ac_cv_cflags_warn_all="no, unknown"
7592
7593  ac_ext=c
7594 ac_cpp='$CPP $CPPFLAGS'
7595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599  ac_save_CFLAGS="$CFLAGS"
7600 for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
7601 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604
7605 int
7606 main ()
7607 {
7608 return 0;
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 done
7618  CFLAGS="$ac_save_CFLAGS"
7619  ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625
7626 fi
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7629 case ".$ac_cv_cflags_warn_all" in
7630      .ok|.ok,*)  ;;
7631    .|.no|.no,*)
7632  ;;
7633    *)
7634    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637   ac_status=$?
7638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639   test $ac_status = 0; }
7640    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642   ac_status=$?
7643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644   test $ac_status = 0; }
7645                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646    fi
7647  ;;
7648 esac
7649
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653 set x ${MAKE-make}
7654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7655 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   cat >conftest.make <<\_ACEOF
7659 SHELL = /bin/sh
7660 all:
7661         @echo '@@@%%%=$(MAKE)=@@@%%%'
7662 _ACEOF
7663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665   *@@@%%%=?*=@@@%%%*)
7666     eval ac_cv_prog_make_${ac_make}_set=yes;;
7667   *)
7668     eval ac_cv_prog_make_${ac_make}_set=no;;
7669 esac
7670 rm -f conftest.make
7671 fi
7672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7675   SET_MAKE=
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679   SET_MAKE="MAKE=${MAKE-make}"
7680 fi
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7684 LN_S=$as_ln_s
7685 if test "$LN_S" = "ln -s"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7691 fi
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7694 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696 # Check whether --with-dmalloc was given.
7697 if test "${with_dmalloc+set}" = set; then :
7698   withval=$with_dmalloc; if test "$withval" = yes; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7701
7702 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7703
7704   LIBS="$LIBS -ldmalloc"
7705   LDFLAGS="$LDFLAGS -g"
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718 $as_echo_n "checking for __attribute__... " >&6; }
7719 if test "${ax_cv___attribute__+set}" = set; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h.  */
7724 #include <stdlib.h>
7725           static void foo(void) __attribute__ ((unused));
7726           static void
7727           foo(void) {
7728               exit(1);
7729           }
7730
7731 int
7732 main ()
7733 {
7734
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740   ax_cv___attribute__=yes
7741 else
7742   ax_cv___attribute__=no
7743
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749 $as_echo "$ax_cv___attribute__" >&6; }
7750   if test "$ax_cv___attribute__" = "yes"; then
7751
7752 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754   fi
7755
7756
7757
7758 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759         if test -n "$ac_tool_prefix"; then
7760   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   case $PKG_CONFIG in
7768   [\\/]* | ?:[\\/]*)
7769   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770   ;;
7771   *)
7772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787   ;;
7788 esac
7789 fi
7790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791 if test -n "$PKG_CONFIG"; then
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7793 $as_echo "$PKG_CONFIG" >&6; }
7794 else
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 fi
7801 if test -z "$ac_cv_path_PKG_CONFIG"; then
7802   ac_pt_PKG_CONFIG=$PKG_CONFIG
7803   # Extract the first word of "pkg-config", so it can be a program name with args.
7804 set dummy pkg-config; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7808   $as_echo_n "(cached) " >&6
7809 else
7810   case $ac_pt_PKG_CONFIG in
7811   [\\/]* | ?:[\\/]*)
7812   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813   ;;
7814   *)
7815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830   ;;
7831 esac
7832 fi
7833 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834 if test -n "$ac_pt_PKG_CONFIG"; then
7835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7836 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837 else
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842   if test "x$ac_pt_PKG_CONFIG" = x; then
7843     PKG_CONFIG=""
7844   else
7845     case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851     PKG_CONFIG=$ac_pt_PKG_CONFIG
7852   fi
7853 else
7854   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855 fi
7856
7857 fi
7858 if test -n "$PKG_CONFIG"; then
7859         _pkg_min_version=0.9.0
7860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7861 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7863                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7865         else
7866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7868                 PKG_CONFIG=""
7869         fi
7870
7871 fi
7872
7873 #
7874 # Enable run-time checking.
7875 #
7876 # Check whether --enable-bounds-checking was given.
7877 if test "${enable_bounds_checking+set}" = set; then :
7878   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879 else
7880   enable_bounds_checking='no'
7881 fi
7882
7883
7884 if test "$enable_bounds_checking" = yes; then
7885
7886 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7887
7888 fi
7889
7890 #
7891 # Tests for Windows
7892 #
7893
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h.  */
7902
7903 int
7904 main ()
7905 {
7906 #ifndef _MSC_VER
7907        choke me
7908 #endif
7909
7910   ;
7911   return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915   ax_compiler_ms=yes
7916 else
7917   ax_compiler_ms=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7925
7926 GDI32_LIBS=''
7927 native_win32_build='no'
7928 cygwin_build='no'
7929 case "${host_os}" in
7930     cygwin* )
7931         cygwin_build='yes'
7932         GDI32_LIBS='-lgdi32'
7933     ;;
7934     mingw* )
7935         native_win32_build='yes'
7936         GDI32_LIBS='-lgdi32'
7937     ;;
7938 esac
7939 if test "${GDI32_LIBS}x" != 'x'; then
7940
7941 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7942
7943 fi
7944
7945  if test "${GDI32_LIBS}x" != 'x' ; then
7946   WINGDI32_DELEGATE_TRUE=
7947   WINGDI32_DELEGATE_FALSE='#'
7948 else
7949   WINGDI32_DELEGATE_TRUE='#'
7950   WINGDI32_DELEGATE_FALSE=
7951 fi
7952
7953  if test "${native_win32_build}" = 'yes' ; then
7954   WIN32_NATIVE_BUILD_TRUE=
7955   WIN32_NATIVE_BUILD_FALSE='#'
7956 else
7957   WIN32_NATIVE_BUILD_TRUE='#'
7958   WIN32_NATIVE_BUILD_FALSE=
7959 fi
7960
7961  if test "${cygwin_build}" = 'yes' ; then
7962   CYGWIN_BUILD_TRUE=
7963   CYGWIN_BUILD_FALSE='#'
7964 else
7965   CYGWIN_BUILD_TRUE='#'
7966   CYGWIN_BUILD_FALSE=
7967 fi
7968
7969  if test "x${CC}" = 'xcl.exe' ; then
7970   USING_CL_TRUE=
7971   USING_CL_FALSE='#'
7972 else
7973   USING_CL_TRUE='#'
7974   USING_CL_FALSE=
7975 fi
7976
7977
7978 WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981 #
7982 # Compiler flags tweaks
7983 #
7984 if test "${GCC}" != "yes"; then
7985     case "${host}" in
7986         *-*-hpux* )
7987             # aCC: HP ANSI C++ B3910B A.03.34
7988             CFLAGS="${CFLAGS} -Wp,-H30000"
7989             if test -n "${CXXFLAGS}"; then
7990                 CXXFLAGS='-AA'
7991             else
7992                 CXXFLAGS="${CXXFLAGS} -AA"
7993             fi
7994         ;;
7995         *-dec-osf5.* )
7996             # Compaq alphaev68-dec-osf5.1 compiler
7997             if test -n "${CXXFLAGS}"; then
7998                 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999             else
8000                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001             fi
8002   esac
8003 fi
8004
8005 # Check for lazy-loading.
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8007 $as_echo_n "checking for linker lazyload option... " >&6; }
8008 if test "${im_cv_ld_lazyload+set}" = set; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011
8012 im_cv_ld_lazyload='none'
8013 case "${host}" in
8014   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016        im_cv_ld_lazyload='-Wl,-zlazyload'
8017     fi
8018     ;;
8019 esac
8020
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8023 $as_echo "$im_cv_ld_lazyload" >&6; }
8024 if test "${im_cv_ld_lazyload}" != 'none' ; then
8025   if test -z "${LDFLAGS}" ; then
8026     LDFLAGS="${im_cv_ld_lazyload}"
8027   else
8028     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029   fi
8030 fi
8031
8032 case "$host" in
8033 *darwin* | *-macos10*)
8034     # Check whether --enable-osx-universal-binary was given.
8035 if test "${enable_osx_universal_binary+set}" = set; then :
8036   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037 else
8038   build_osxuniversal=no
8039 fi
8040
8041
8042   if test "${build_osxuniversal}" != no ; then
8043     if test "$enable_dependency_tracking" != no ; then
8044       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8045 Please re-run configure with these options:
8046   --disable-dependency-tracking --enable-osx-universal-binary
8047         " "$LINENO" 5
8048     fi
8049     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052   fi
8053   ;;
8054 esac
8055
8056 # Enable support for threads
8057
8058 # Check whether --with-threads was given.
8059 if test "${with_threads+set}" = set; then :
8060   withval=$with_threads; with_threads=$withval
8061 else
8062   with_threads='yes'
8063 fi
8064
8065
8066 have_threads=no
8067 if test "$with_threads" != 'no'; then
8068
8069
8070
8071 ac_ext=c
8072 ac_cpp='$CPP $CPPFLAGS'
8073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
8077 ax_pthread_ok=no
8078
8079 # We used to check for pthread.h first, but this fails if pthread.h
8080 # requires special compiler flags (e.g. on True64 or Sequent).
8081 # It gets checked for in the link test anyway.
8082
8083 # First of all, check if the user has set any of the PTHREAD_LIBS,
8084 # etcetera environment variables, and if threads linking works using
8085 # them:
8086 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087         save_CFLAGS="$CFLAGS"
8088         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089         save_LIBS="$LIBS"
8090         LIBS="$PTHREAD_LIBS $LIBS"
8091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8092 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h.  */
8095
8096 /* Override any GCC internal prototype to avoid an error.
8097    Use char because int might match the return type of a GCC
8098    builtin and then its argument prototype would still apply.  */
8099 #ifdef __cplusplus
8100 extern "C"
8101 #endif
8102 char pthread_join ();
8103 int
8104 main ()
8105 {
8106 return pthread_join ();
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112   ax_pthread_ok=yes
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115     conftest$ac_exeext conftest.$ac_ext
8116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117 $as_echo "$ax_pthread_ok" >&6; }
8118         if test x"$ax_pthread_ok" = xno; then
8119                 PTHREAD_LIBS=""
8120                 PTHREAD_CFLAGS=""
8121         fi
8122         LIBS="$save_LIBS"
8123         CFLAGS="$save_CFLAGS"
8124 fi
8125
8126 # We must check for the threads library under a number of different
8127 # names; the ordering is very important because some systems
8128 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129 # libraries is broken (non-POSIX).
8130
8131 # Create a list of thread flags to try.  Items starting with a "-" are
8132 # C compiler flags, and other items are library names, except for "none"
8133 # which indicates that we try without any flags at all, and "pthread-config"
8134 # which is a program returning the flags for the Pth emulation library.
8135
8136 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8137
8138 # The ordering *is* (sometimes) important.  Some notes on the
8139 # individual items follow:
8140
8141 # pthreads: AIX (must check this before -lpthread)
8142 # none: in case threads are in libc; should be tried before -Kthread and
8143 #       other compiler flags to prevent continual compiler warnings
8144 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148 # -pthreads: Solaris/gcc
8149 # -mthreads: Mingw32/gcc, Lynx/gcc
8150 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151 #      doesn't hurt to check since this sometimes defines pthreads too;
8152 #      also defines -D_REENTRANT)
8153 #      ... -mt is also the pthreads flag for HP/aCC
8154 # pthread: Linux, etcetera
8155 # --thread-safe: KAI C++
8156 # pthread-config: use pthread-config program (for GNU Pth library)
8157
8158 case "${host_cpu}-${host_os}" in
8159         *solaris*)
8160
8161         # On Solaris (at least, for some versions), libc contains stubbed
8162         # (non-functional) versions of the pthreads routines, so link-based
8163         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8164         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8165         # a function called by this macro, so we could check for that, but
8166         # who knows whether they'll stub that too in a future libc.)  So,
8167         # we'll just look for -pthreads and -lpthread first:
8168
8169         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8170         ;;
8171
8172         *-darwin*)
8173         acx_pthread_flags="-pthread $acx_pthread_flags"
8174         ;;
8175 esac
8176
8177 if test x"$ax_pthread_ok" = xno; then
8178 for flag in $ax_pthread_flags; do
8179
8180         case $flag in
8181                 none)
8182                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8183 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184                 ;;
8185
8186                 -*)
8187                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8188 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189                 PTHREAD_CFLAGS="$flag"
8190                 ;;
8191
8192                 pthread-config)
8193                 # Extract the first word of "pthread-config", so it can be a program name with args.
8194 set dummy pthread-config; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$ax_pthread_config"; then
8201   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210     ac_cv_prog_ax_pthread_config="yes"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8217
8218   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8219 fi
8220 fi
8221 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222 if test -n "$ax_pthread_config"; then
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224 $as_echo "$ax_pthread_config" >&6; }
8225 else
8226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231                 if test x"$ax_pthread_config" = xno; then continue; fi
8232                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234                 ;;
8235
8236                 *)
8237                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8238 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239                 PTHREAD_LIBS="-l$flag"
8240                 ;;
8241         esac
8242
8243         save_LIBS="$LIBS"
8244         save_CFLAGS="$CFLAGS"
8245         LIBS="$PTHREAD_LIBS $LIBS"
8246         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248         # Check for various functions.  We must include pthread.h,
8249         # since some functions may be macros.  (On the Sequent, we
8250         # need a special flag -Kthread to make this header compile.)
8251         # We check for pthread_join because it is in -lpthread on IRIX
8252         # while pthread_create is in libc.  We check for pthread_attr_init
8253         # due to DEC craziness with -lpthreads.  We check for
8254         # pthread_cleanup_push because it is one of the few pthread
8255         # functions on Solaris that doesn't have a non-functional libc stub.
8256         # We try pthread_create on general principles.
8257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <pthread.h>
8260                      static void routine(void* a) {a=0;}
8261                      static void* start_routine(void* a) {return a;}
8262 int
8263 main ()
8264 {
8265 pthread_t th; pthread_attr_t attr;
8266                      pthread_join(th, 0);
8267                      pthread_attr_init(&attr);
8268                      pthread_cleanup_push(routine, 0);
8269                      pthread_create(&th,0,start_routine,0);
8270                      pthread_cleanup_pop(0);
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276   ax_pthread_ok=yes
8277 fi
8278 rm -f core conftest.err conftest.$ac_objext \
8279     conftest$ac_exeext conftest.$ac_ext
8280
8281         LIBS="$save_LIBS"
8282         CFLAGS="$save_CFLAGS"
8283
8284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285 $as_echo "$ax_pthread_ok" >&6; }
8286         if test "x$ax_pthread_ok" = xyes; then
8287                 break;
8288         fi
8289
8290         PTHREAD_LIBS=""
8291         PTHREAD_CFLAGS=""
8292 done
8293 fi
8294
8295 # Various other checks:
8296 if test "x$ax_pthread_ok" = xyes; then
8297         save_LIBS="$LIBS"
8298         LIBS="$PTHREAD_LIBS $LIBS"
8299         save_CFLAGS="$CFLAGS"
8300         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8304 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8305         attr_name=unknown
8306         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8307             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h.  */
8309 #include <pthread.h>
8310 int
8311 main ()
8312 {
8313 int attr=$attr; return attr;
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_link "$LINENO"; then :
8319   attr_name=$attr; break
8320 fi
8321 rm -f core conftest.err conftest.$ac_objext \
8322     conftest$ac_exeext conftest.$ac_ext
8323         done
8324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8325 $as_echo "$attr_name" >&6; }
8326         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define PTHREAD_CREATE_JOINABLE $attr_name
8330 _ACEOF
8331
8332         fi
8333
8334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8335 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336         flag=no
8337         case "${host_cpu}-${host_os}" in
8338             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340         esac
8341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8342 $as_echo "${flag}" >&6; }
8343         if test "x$flag" != xno; then
8344             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345         fi
8346
8347         LIBS="$save_LIBS"
8348         CFLAGS="$save_CFLAGS"
8349
8350         # More AIX lossage: must compile with xlc_r or cc_r
8351         if test x"$GCC" != xyes; then
8352           for ac_prog in xlc_r cc_r
8353 do
8354   # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   if test -n "$PTHREAD_CC"; then
8362   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369     for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_PTHREAD_CC="$ac_prog"
8372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376   done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382 if test -n "$PTHREAD_CC"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8384 $as_echo "$PTHREAD_CC" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391   test -n "$PTHREAD_CC" && break
8392 done
8393 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8394
8395         else
8396           PTHREAD_CC=$CC
8397         fi
8398 else
8399         PTHREAD_CC="$CC"
8400 fi
8401
8402
8403
8404
8405
8406 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8407 if test x"$ax_pthread_ok" = xyes; then
8408
8409 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8410
8411         :
8412 else
8413         ax_pthread_ok=no
8414
8415 fi
8416 ac_ext=c
8417 ac_cpp='$CPP $CPPFLAGS'
8418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
8423     if test "$ax_pthread_ok" = yes; then
8424         have_threads=yes
8425         DEF_THREAD="$PTHREAD_CFLAGS"
8426         CFLAGS="$CFLAGS $DEF_THREAD"
8427         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428         if test "$CC" != "$PTHREAD_CC"; then
8429             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8430 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431             CC="$PTHREAD_CC"
8432         fi
8433     fi
8434 fi
8435
8436 # Enable support for OpenMP
8437 if test "$have_threads" != 'yes'; then
8438   ac_cv_prog_c_openmp=unsupported
8439 fi
8440
8441   OPENMP_CFLAGS=
8442   # Check whether --enable-openmp was given.
8443 if test "${enable_openmp+set}" = set; then :
8444   enableval=$enable_openmp;
8445 fi
8446
8447   if test "$enable_openmp" != no; then
8448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8449 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8450 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8451   $as_echo_n "(cached) " >&6
8452 else
8453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h.  */
8455
8456 #ifndef _OPENMP
8457  choke me
8458 #endif
8459 #include <omp.h>
8460 int main () { return omp_get_num_threads (); }
8461
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464   ac_cv_prog_c_openmp='none needed'
8465 else
8466   ac_cv_prog_c_openmp='unsupported'
8467                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8468             ac_save_CFLAGS=$CFLAGS
8469             CFLAGS="$CFLAGS $ac_option"
8470             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h.  */
8472
8473 #ifndef _OPENMP
8474  choke me
8475 #endif
8476 #include <omp.h>
8477 int main () { return omp_get_num_threads (); }
8478
8479 _ACEOF
8480 if ac_fn_c_try_link "$LINENO"; then :
8481   ac_cv_prog_c_openmp=$ac_option
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext \
8484     conftest$ac_exeext conftest.$ac_ext
8485             CFLAGS=$ac_save_CFLAGS
8486             if test "$ac_cv_prog_c_openmp" != unsupported; then
8487               break
8488             fi
8489           done
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext \
8492     conftest$ac_exeext conftest.$ac_ext
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8495 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8496     case $ac_cv_prog_c_openmp in #(
8497       "none needed" | unsupported)
8498         ;; #(
8499       *)
8500         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8501     esac
8502   fi
8503
8504
8505 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8506 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8507
8508 case $ac_cv_prog_c_openmp in #(
8509   "none needed" | unsupported)
8510     ;; #(
8511   *)
8512   MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8513 esac
8514
8515 # Enable support for OpenCL
8516
8517
8518
8519 ac_ext=c
8520 ac_cpp='$CPP $CPPFLAGS'
8521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524
8525 ax_pthread_ok=no
8526
8527 # We used to check for pthread.h first, but this fails if pthread.h
8528 # requires special compiler flags (e.g. on True64 or Sequent).
8529 # It gets checked for in the link test anyway.
8530
8531 # First of all, check if the user has set any of the PTHREAD_LIBS,
8532 # etcetera environment variables, and if threads linking works using
8533 # them:
8534 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8535         save_CFLAGS="$CFLAGS"
8536         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8537         save_LIBS="$LIBS"
8538         LIBS="$PTHREAD_LIBS $LIBS"
8539         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8540 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8541         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h.  */
8543
8544 /* Override any GCC internal prototype to avoid an error.
8545    Use char because int might match the return type of a GCC
8546    builtin and then its argument prototype would still apply.  */
8547 #ifdef __cplusplus
8548 extern "C"
8549 #endif
8550 char pthread_join ();
8551 int
8552 main ()
8553 {
8554 return pthread_join ();
8555   ;
8556   return 0;
8557 }
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"; then :
8560   ax_pthread_ok=yes
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext \
8563     conftest$ac_exeext conftest.$ac_ext
8564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8565 $as_echo "$ax_pthread_ok" >&6; }
8566         if test x"$ax_pthread_ok" = xno; then
8567                 PTHREAD_LIBS=""
8568                 PTHREAD_CFLAGS=""
8569         fi
8570         LIBS="$save_LIBS"
8571         CFLAGS="$save_CFLAGS"
8572 fi
8573
8574 # We must check for the threads library under a number of different
8575 # names; the ordering is very important because some systems
8576 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8577 # libraries is broken (non-POSIX).
8578
8579 # Create a list of thread flags to try.  Items starting with a "-" are
8580 # C compiler flags, and other items are library names, except for "none"
8581 # which indicates that we try without any flags at all, and "pthread-config"
8582 # which is a program returning the flags for the Pth emulation library.
8583
8584 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8585
8586 # The ordering *is* (sometimes) important.  Some notes on the
8587 # individual items follow:
8588
8589 # pthreads: AIX (must check this before -lpthread)
8590 # none: in case threads are in libc; should be tried before -Kthread and
8591 #       other compiler flags to prevent continual compiler warnings
8592 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8593 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8594 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8595 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8596 # -pthreads: Solaris/gcc
8597 # -mthreads: Mingw32/gcc, Lynx/gcc
8598 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8599 #      doesn't hurt to check since this sometimes defines pthreads too;
8600 #      also defines -D_REENTRANT)
8601 #      ... -mt is also the pthreads flag for HP/aCC
8602 # pthread: Linux, etcetera
8603 # --thread-safe: KAI C++
8604 # pthread-config: use pthread-config program (for GNU Pth library)
8605
8606 case "${host_cpu}-${host_os}" in
8607         *solaris*)
8608
8609         # On Solaris (at least, for some versions), libc contains stubbed
8610         # (non-functional) versions of the pthreads routines, so link-based
8611         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8612         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8613         # a function called by this macro, so we could check for that, but
8614         # who knows whether they'll stub that too in a future libc.)  So,
8615         # we'll just look for -pthreads and -lpthread first:
8616
8617         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8618         ;;
8619
8620         *-darwin*)
8621         acx_pthread_flags="-pthread $acx_pthread_flags"
8622         ;;
8623 esac
8624
8625 if test x"$ax_pthread_ok" = xno; then
8626 for flag in $ax_pthread_flags; do
8627
8628         case $flag in
8629                 none)
8630                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8631 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8632                 ;;
8633
8634                 -*)
8635                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8636 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8637                 PTHREAD_CFLAGS="$flag"
8638                 ;;
8639
8640                 pthread-config)
8641                 # Extract the first word of "pthread-config", so it can be a program name with args.
8642 set dummy pthread-config; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8646   $as_echo_n "(cached) " >&6
8647 else
8648   if test -n "$ax_pthread_config"; then
8649   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654   IFS=$as_save_IFS
8655   test -z "$as_dir" && as_dir=.
8656     for ac_exec_ext in '' $ac_executable_extensions; do
8657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658     ac_cv_prog_ax_pthread_config="yes"
8659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660     break 2
8661   fi
8662 done
8663   done
8664 IFS=$as_save_IFS
8665
8666   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8667 fi
8668 fi
8669 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8670 if test -n "$ax_pthread_config"; then
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8672 $as_echo "$ax_pthread_config" >&6; }
8673 else
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8676 fi
8677
8678
8679                 if test x"$ax_pthread_config" = xno; then continue; fi
8680                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8681                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8682                 ;;
8683
8684                 *)
8685                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8686 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8687                 PTHREAD_LIBS="-l$flag"
8688                 ;;
8689         esac
8690
8691         save_LIBS="$LIBS"
8692         save_CFLAGS="$CFLAGS"
8693         LIBS="$PTHREAD_LIBS $LIBS"
8694         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8695
8696         # Check for various functions.  We must include pthread.h,
8697         # since some functions may be macros.  (On the Sequent, we
8698         # need a special flag -Kthread to make this header compile.)
8699         # We check for pthread_join because it is in -lpthread on IRIX
8700         # while pthread_create is in libc.  We check for pthread_attr_init
8701         # due to DEC craziness with -lpthreads.  We check for
8702         # pthread_cleanup_push because it is one of the few pthread
8703         # functions on Solaris that doesn't have a non-functional libc stub.
8704         # We try pthread_create on general principles.
8705         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707 #include <pthread.h>
8708                      static void routine(void* a) {a=0;}
8709                      static void* start_routine(void* a) {return a;}
8710 int
8711 main ()
8712 {
8713 pthread_t th; pthread_attr_t attr;
8714                      pthread_join(th, 0);
8715                      pthread_attr_init(&attr);
8716                      pthread_cleanup_push(routine, 0);
8717                      pthread_create(&th,0,start_routine,0);
8718                      pthread_cleanup_pop(0);
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724   ax_pthread_ok=yes
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727     conftest$ac_exeext conftest.$ac_ext
8728
8729         LIBS="$save_LIBS"
8730         CFLAGS="$save_CFLAGS"
8731
8732         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8733 $as_echo "$ax_pthread_ok" >&6; }
8734         if test "x$ax_pthread_ok" = xyes; then
8735                 break;
8736         fi
8737
8738         PTHREAD_LIBS=""
8739         PTHREAD_CFLAGS=""
8740 done
8741 fi
8742
8743 # Various other checks:
8744 if test "x$ax_pthread_ok" = xyes; then
8745         save_LIBS="$LIBS"
8746         LIBS="$PTHREAD_LIBS $LIBS"
8747         save_CFLAGS="$CFLAGS"
8748         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8749
8750         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8751         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8752 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8753         attr_name=unknown
8754         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8755             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h.  */
8757 #include <pthread.h>
8758 int
8759 main ()
8760 {
8761 int attr=$attr; return attr;
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767   attr_name=$attr; break
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext \
8770     conftest$ac_exeext conftest.$ac_ext
8771         done
8772         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8773 $as_echo "$attr_name" >&6; }
8774         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define PTHREAD_CREATE_JOINABLE $attr_name
8778 _ACEOF
8779
8780         fi
8781
8782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8783 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8784         flag=no
8785         case "${host_cpu}-${host_os}" in
8786             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8787             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8788         esac
8789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8790 $as_echo "${flag}" >&6; }
8791         if test "x$flag" != xno; then
8792             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8793         fi
8794
8795         LIBS="$save_LIBS"
8796         CFLAGS="$save_CFLAGS"
8797
8798         # More AIX lossage: must compile with xlc_r or cc_r
8799         if test x"$GCC" != xyes; then
8800           for ac_prog in xlc_r cc_r
8801 do
8802   # Extract the first word of "$ac_prog", so it can be a program name with args.
8803 set dummy $ac_prog; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   if test -n "$PTHREAD_CC"; then
8810   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815   IFS=$as_save_IFS
8816   test -z "$as_dir" && as_dir=.
8817     for ac_exec_ext in '' $ac_executable_extensions; do
8818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819     ac_cv_prog_PTHREAD_CC="$ac_prog"
8820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821     break 2
8822   fi
8823 done
8824   done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8830 if test -n "$PTHREAD_CC"; then
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8832 $as_echo "$PTHREAD_CC" >&6; }
8833 else
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839   test -n "$PTHREAD_CC" && break
8840 done
8841 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8842
8843         else
8844           PTHREAD_CC=$CC
8845         fi
8846 else
8847         PTHREAD_CC="$CC"
8848 fi
8849
8850
8851
8852
8853
8854 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8855 if test x"$ax_pthread_ok" = xyes; then
8856
8857 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8858
8859         :
8860 else
8861         ax_pthread_ok=no
8862
8863 fi
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870
8871
8872 # Check whether --enable-opencl was given.
8873 if test "${enable_opencl+set}" = set; then :
8874   enableval=$enable_opencl; disable_opencl=$enableval
8875 else
8876   disable_opencl='yes'
8877 fi
8878
8879
8880 if test "$disable_opencl" = 'yes'; then
8881   ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8888 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8889 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8890   $as_echo_n "(cached) " >&6
8891 else
8892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h.  */
8894
8895 int
8896 main ()
8897 {
8898 #ifndef _MSC_VER
8899        choke me
8900 #endif
8901
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_compile "$LINENO"; then :
8907   ax_compiler_ms=yes
8908 else
8909   ax_compiler_ms=no
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 ax_cv_c_compiler_ms=$ax_compiler_ms
8913
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8916 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8917   if test X$ax_compiler_ms = Xno; then :
8918   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8919 fi
8920
8921   ax_save_CPPFLAGS=$CPPFLAGS
8922   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8923   for ac_header in CL/cl.h OpenCL/cl.h
8924 do :
8925   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8928   cat >>confdefs.h <<_ACEOF
8929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 fi
8933
8934 done
8935
8936   CPPFLAGS=$ax_save_CPPFLAGS
8937
8938   for ac_header in windows.h
8939 do :
8940   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8941 if test "x$ac_cv_header_windows_h" = x""yes; then :
8942   cat >>confdefs.h <<_ACEOF
8943 #define HAVE_WINDOWS_H 1
8944 _ACEOF
8945
8946 fi
8947
8948 done
8949
8950
8951
8952
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8954 $as_echo_n "checking for OpenCL library... " >&6; }
8955 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   ax_cv_check_cl_libcl=no
8959   case $host_cpu in
8960     x86_64) ax_check_cl_libdir=lib64 ;;
8961     *)      ax_check_cl_libdir=lib ;;
8962   esac
8963   ax_save_CPPFLAGS=$CPPFLAGS
8964   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8965   ax_save_LIBS=$LIBS
8966   LIBS=""
8967   ax_check_libs="-lOpenCL -lCL -lclparser"
8968   for ax_lib in $ax_check_libs; do
8969     if test X$ax_compiler_ms = Xyes; then :
8970   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8971 else
8972   ax_try_lib=$ax_lib
8973 fi
8974     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h.  */
8977
8978   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8979   #   include <windows.h>
8980   # endif
8981   # ifdef HAVE_CL_CL_H
8982   #   include <CL/cl.h>
8983   # elif defined(HAVE_OPENCL_CL_H)
8984   #   include <OpenCL/cl.h>
8985   # else
8986   #   error no CL.h
8987   # endif
8988 int
8989 main ()
8990 {
8991 clCreateContextFromType(0,0,0,0,0)
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_link "$LINENO"; then :
8997   ax_cv_check_cl_libcl=$ax_try_lib; break
8998 else
8999   ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9000                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002
9003   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9004   #   include <windows.h>
9005   # endif
9006   # ifdef HAVE_CL_CL_H
9007   #   include <CL/cl.h>
9008   # elif defined(HAVE_OPENCL_CL_H)
9009   #   include <OpenCL/cl.h>
9010   # else
9011   #   error no CL.h
9012   # endif
9013 int
9014 main ()
9015 {
9016 clCreateContextFromType(0,0,0,0,0)
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 if ac_fn_c_try_link "$LINENO"; then :
9022   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9023 else
9024   ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9025                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h.  */
9027
9028   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9029   #   include <windows.h>
9030   # endif
9031   # ifdef HAVE_CL_CL_H
9032   #   include <CL/cl.h>
9033   # elif defined(HAVE_OPENCL_CL_H)
9034   #   include <OpenCL/cl.h>
9035   # else
9036   #   error no CL.h
9037   # endif
9038 int
9039 main ()
9040 {
9041 clCreateContextFromType(0,0,0,0,0)
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050     conftest$ac_exeext conftest.$ac_ext
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext \
9053     conftest$ac_exeext conftest.$ac_ext
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056     conftest$ac_exeext conftest.$ac_ext
9057   done
9058
9059   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9060   LIBS='-framework OpenCL'
9061         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h.  */
9063
9064   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9065   #   include <windows.h>
9066   # endif
9067   # ifdef HAVE_CL_CL_H
9068   #   include <CL/cl.h>
9069   # elif defined(HAVE_OPENCL_CL_H)
9070   #   include <OpenCL/cl.h>
9071   # else
9072   #   error no CL.h
9073   # endif
9074 int
9075 main ()
9076 {
9077 clCreateContextFromType(0,0,0,0,0)
9078   ;
9079   return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083   ax_cv_check_cl_libcl=$LIBS
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext \
9086     conftest$ac_exeext conftest.$ac_ext
9087 fi
9088
9089   LIBS=$ax_save_LIBS
9090   CPPFLAGS=$ax_save_CPPFLAGS
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9093 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9094
9095   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9096   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9097 else
9098   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9099 $as_echo "#define _OPENCL 1" >>confdefs.h
9100
9101 fi
9102   ac_ext=c
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
9108 fi
9109
9110
9111
9112
9113 CFLAGS="$CL_CFLAGS $CFLAGS"
9114 LIBS="$CL_LIBS $LIBS"
9115
9116 if test "_OPENCL" = '1'; then
9117   MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9118 fi
9119
9120 ########
9121 #
9122 # Check for large file support
9123 #
9124 ########
9125 # Check whether --enable-largefile was given.
9126 if test "${enable_largefile+set}" = set; then :
9127   enableval=$enable_largefile;
9128 fi
9129
9130 if test "$enable_largefile" != no; then
9131
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9133 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9134 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9135   $as_echo_n "(cached) " >&6
9136 else
9137   ac_cv_sys_largefile_CC=no
9138      if test "$GCC" != yes; then
9139        ac_save_CC=$CC
9140        while :; do
9141          # IRIX 6.2 and later do not support large files by default,
9142          # so use the C compiler's -n32 option if that helps.
9143          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h.  */
9145 #include <sys/types.h>
9146  /* Check that off_t can represent 2**63 - 1 correctly.
9147     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9148     since some C++ compilers masquerading as C compilers
9149     incorrectly reject 9223372036854775807.  */
9150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9151   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9152                        && LARGE_OFF_T % 2147483647 == 1)
9153                       ? 1 : -1];
9154 int
9155 main ()
9156 {
9157
9158   ;
9159   return 0;
9160 }
9161 _ACEOF
9162          if ac_fn_c_try_compile "$LINENO"; then :
9163   break
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext
9166          CC="$CC -n32"
9167          if ac_fn_c_try_compile "$LINENO"; then :
9168   ac_cv_sys_largefile_CC=' -n32'; break
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext
9171          break
9172        done
9173        CC=$ac_save_CC
9174        rm -f conftest.$ac_ext
9175     fi
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9178 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9179   if test "$ac_cv_sys_largefile_CC" != no; then
9180     CC=$CC$ac_cv_sys_largefile_CC
9181   fi
9182
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9184 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9185 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9186   $as_echo_n "(cached) " >&6
9187 else
9188   while :; do
9189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h.  */
9191 #include <sys/types.h>
9192  /* Check that off_t can represent 2**63 - 1 correctly.
9193     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194     since some C++ compilers masquerading as C compilers
9195     incorrectly reject 9223372036854775807.  */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198                        && LARGE_OFF_T % 2147483647 == 1)
9199                       ? 1 : -1];
9200 int
9201 main ()
9202 {
9203
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_c_try_compile "$LINENO"; then :
9209   ac_cv_sys_file_offset_bits=no; break
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h.  */
9214 #define _FILE_OFFSET_BITS 64
9215 #include <sys/types.h>
9216  /* Check that off_t can represent 2**63 - 1 correctly.
9217     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218     since some C++ compilers masquerading as C compilers
9219     incorrectly reject 9223372036854775807.  */
9220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222                        && LARGE_OFF_T % 2147483647 == 1)
9223                       ? 1 : -1];
9224 int
9225 main ()
9226 {
9227
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233   ac_cv_sys_file_offset_bits=64; break
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236   ac_cv_sys_file_offset_bits=unknown
9237   break
9238 done
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9241 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9242 case $ac_cv_sys_file_offset_bits in #(
9243   no | unknown) ;;
9244   *)
9245 cat >>confdefs.h <<_ACEOF
9246 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9247 _ACEOF
9248 ;;
9249 esac
9250 rm -rf conftest*
9251   if test $ac_cv_sys_file_offset_bits = unknown; then
9252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9253 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9254 if test "${ac_cv_sys_large_files+set}" = set; then :
9255   $as_echo_n "(cached) " >&6
9256 else
9257   while :; do
9258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h.  */
9260 #include <sys/types.h>
9261  /* Check that off_t can represent 2**63 - 1 correctly.
9262     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9263     since some C++ compilers masquerading as C compilers
9264     incorrectly reject 9223372036854775807.  */
9265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9266   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9267                        && LARGE_OFF_T % 2147483647 == 1)
9268                       ? 1 : -1];
9269 int
9270 main ()
9271 {
9272
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278   ac_cv_sys_large_files=no; break
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h.  */
9283 #define _LARGE_FILES 1
9284 #include <sys/types.h>
9285  /* Check that off_t can represent 2**63 - 1 correctly.
9286     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9287     since some C++ compilers masquerading as C compilers
9288     incorrectly reject 9223372036854775807.  */
9289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9290   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9291                        && LARGE_OFF_T % 2147483647 == 1)
9292                       ? 1 : -1];
9293 int
9294 main ()
9295 {
9296
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302   ac_cv_sys_large_files=1; break
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305   ac_cv_sys_large_files=unknown
9306   break
9307 done
9308 fi
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9310 $as_echo "$ac_cv_sys_large_files" >&6; }
9311 case $ac_cv_sys_large_files in #(
9312   no | unknown) ;;
9313   *)
9314 cat >>confdefs.h <<_ACEOF
9315 #define _LARGE_FILES $ac_cv_sys_large_files
9316 _ACEOF
9317 ;;
9318 esac
9319 rm -rf conftest*
9320   fi
9321 fi
9322
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9324 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9325 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9326   $as_echo_n "(cached) " >&6
9327 else
9328   while :; do
9329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h.  */
9331 #include <sys/types.h> /* for off_t */
9332      #include <stdio.h>
9333 int
9334 main ()
9335 {
9336 int (*fp) (FILE *, off_t, int) = fseeko;
9337      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343   ac_cv_sys_largefile_source=no; break
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext \
9346     conftest$ac_exeext conftest.$ac_ext
9347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h.  */
9349 #define _LARGEFILE_SOURCE 1
9350 #include <sys/types.h> /* for off_t */
9351      #include <stdio.h>
9352 int
9353 main ()
9354 {
9355 int (*fp) (FILE *, off_t, int) = fseeko;
9356      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_link "$LINENO"; then :
9362   ac_cv_sys_largefile_source=1; break
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365     conftest$ac_exeext conftest.$ac_ext
9366   ac_cv_sys_largefile_source=unknown
9367   break
9368 done
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9371 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9372 case $ac_cv_sys_largefile_source in #(
9373   no | unknown) ;;
9374   *)
9375 cat >>confdefs.h <<_ACEOF
9376 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9377 _ACEOF
9378 ;;
9379 esac
9380 rm -rf conftest*
9381
9382 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9383 # in glibc 2.1.3, but that breaks too many other things.
9384 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9385 if test $ac_cv_sys_largefile_source != unknown; then
9386
9387 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9388
9389 fi
9390
9391 LFS_CPPFLAGS=''
9392 if test "$enable_largefile" != no; then
9393     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9394         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9395     else
9396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9397 $as_echo_n "checking for native large file support... " >&6; }
9398         if test "$cross_compiling" = yes; then :
9399   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9401 as_fn_error $? "cannot run test program while cross compiling
9402 See \`config.log' for more details" "$LINENO" 5; }
9403 else
9404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h.  */
9406 #include <unistd.h>
9407           main () {
9408           exit(!(sizeof(off_t) == 8));
9409         }
9410 _ACEOF
9411 if ac_fn_c_try_run "$LINENO"; then :
9412   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9413
9414          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9415 $as_echo "yes" >&6; }
9416 else
9417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9419 fi
9420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421   conftest.$ac_objext conftest.beam conftest.$ac_ext
9422 fi
9423
9424     fi
9425     if test "$ac_cv_sys_large_files" != 'no'; then
9426         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9427     fi
9428     if test "$ac_cv_sys_largefile_source" != 'no'; then
9429         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9430     fi
9431 fi
9432
9433
9434 #
9435 # Configure libtool & libltdl
9436 #
9437 # Configure libtool
9438 enable_dlopen=yes
9439
9440
9441
9442 case `pwd` in
9443   *\ * | *\     *)
9444     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9445 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9446 esac
9447
9448
9449
9450 macro_version='2.2.10'
9451 macro_revision='1.3175'
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 ltmain="$ac_aux_dir/ltmain.sh"
9466
9467 # Backslashify metacharacters that are still active within
9468 # double-quoted strings.
9469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9470
9471 # Same as above, but do not quote variable references.
9472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9473
9474 # Sed substitution to delay expansion of an escaped shell variable in a
9475 # double_quote_subst'ed string.
9476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9477
9478 # Sed substitution to delay expansion of an escaped single quote.
9479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9480
9481 # Sed substitution to avoid accidental globbing in evaled expressions
9482 no_glob_subst='s/\*/\\\*/g'
9483
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9485 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9486 if test "${lt_cv_path_NM+set}" = set; then :
9487   $as_echo_n "(cached) " >&6
9488 else
9489   if test -n "$NM"; then
9490   # Let the user override the test.
9491   lt_cv_path_NM="$NM"
9492 else
9493   lt_nm_to_check="${ac_tool_prefix}nm"
9494   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9495     lt_nm_to_check="$lt_nm_to_check nm"
9496   fi
9497   for lt_tmp_nm in $lt_nm_to_check; do
9498     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9500       IFS="$lt_save_ifs"
9501       test -z "$ac_dir" && ac_dir=.
9502       tmp_nm="$ac_dir/$lt_tmp_nm"
9503       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9504         # Check to see if the nm accepts a BSD-compat flag.
9505         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9506         #   nm: unknown option "B" ignored
9507         # Tru64's nm complains that /dev/null is an invalid object file
9508         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9509         */dev/null* | *'Invalid file or object type'*)
9510           lt_cv_path_NM="$tmp_nm -B"
9511           break
9512           ;;
9513         *)
9514           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9515           */dev/null*)
9516             lt_cv_path_NM="$tmp_nm -p"
9517             break
9518             ;;
9519           *)
9520             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9521             continue # so that we can try to find one that supports BSD flags
9522             ;;
9523           esac
9524           ;;
9525         esac
9526       fi
9527     done
9528     IFS="$lt_save_ifs"
9529   done
9530   : ${lt_cv_path_NM=no}
9531 fi
9532 fi
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9534 $as_echo "$lt_cv_path_NM" >&6; }
9535 if test "$lt_cv_path_NM" != "no"; then
9536   NM="$lt_cv_path_NM"
9537 else
9538   # Didn't find any BSD compatible name lister, look for dumpbin.
9539   if test -n "$DUMPBIN"; then :
9540     # Let the user override the test.
9541   else
9542     if test -n "$ac_tool_prefix"; then
9543   for ac_prog in dumpbin "link -dump"
9544   do
9545     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   if test -n "$DUMPBIN"; then
9553   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9557 do
9558   IFS=$as_save_IFS
9559   test -z "$as_dir" && as_dir=.
9560     for ac_exec_ext in '' $ac_executable_extensions; do
9561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564     break 2
9565   fi
9566 done
9567   done
9568 IFS=$as_save_IFS
9569
9570 fi
9571 fi
9572 DUMPBIN=$ac_cv_prog_DUMPBIN
9573 if test -n "$DUMPBIN"; then
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9575 $as_echo "$DUMPBIN" >&6; }
9576 else
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580
9581
9582     test -n "$DUMPBIN" && break
9583   done
9584 fi
9585 if test -z "$DUMPBIN"; then
9586   ac_ct_DUMPBIN=$DUMPBIN
9587   for ac_prog in dumpbin "link -dump"
9588 do
9589   # Extract the first word of "$ac_prog", so it can be a program name with args.
9590 set dummy $ac_prog; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   if test -n "$ac_ct_DUMPBIN"; then
9597   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9598 else
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 for as_dir in $PATH
9601 do
9602   IFS=$as_save_IFS
9603   test -z "$as_dir" && as_dir=.
9604     for ac_exec_ext in '' $ac_executable_extensions; do
9605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608     break 2
9609   fi
9610 done
9611   done
9612 IFS=$as_save_IFS
9613
9614 fi
9615 fi
9616 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9617 if test -n "$ac_ct_DUMPBIN"; then
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9619 $as_echo "$ac_ct_DUMPBIN" >&6; }
9620 else
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9623 fi
9624
9625
9626   test -n "$ac_ct_DUMPBIN" && break
9627 done
9628
9629   if test "x$ac_ct_DUMPBIN" = x; then
9630     DUMPBIN=":"
9631   else
9632     case $cross_compiling:$ac_tool_warned in
9633 yes:)
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636 ac_tool_warned=yes ;;
9637 esac
9638     DUMPBIN=$ac_ct_DUMPBIN
9639   fi
9640 fi
9641
9642     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9643     *COFF*)
9644       DUMPBIN="$DUMPBIN -symbols"
9645       ;;
9646     *)
9647       DUMPBIN=:
9648       ;;
9649     esac
9650   fi
9651
9652   if test "$DUMPBIN" != ":"; then
9653     NM="$DUMPBIN"
9654   fi
9655 fi
9656 test -z "$NM" && NM=nm
9657
9658
9659
9660
9661
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9664 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9665 if test "${lt_cv_nm_interface+set}" = set; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   lt_cv_nm_interface="BSD nm"
9669   echo "int some_variable = 0;" > conftest.$ac_ext
9670   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9671   (eval "$ac_compile" 2>conftest.err)
9672   cat conftest.err >&5
9673   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9674   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9675   cat conftest.err >&5
9676   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9677   cat conftest.out >&5
9678   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9679     lt_cv_nm_interface="MS dumpbin"
9680   fi
9681   rm -f conftest*
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9684 $as_echo "$lt_cv_nm_interface" >&6; }
9685
9686 # find the maximum length of command line arguments
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9688 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9689 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9690   $as_echo_n "(cached) " >&6
9691 else
9692     i=0
9693   teststring="ABCD"
9694
9695   case $build_os in
9696   msdosdjgpp*)
9697     # On DJGPP, this test can blow up pretty badly due to problems in libc
9698     # (any single argument exceeding 2000 bytes causes a buffer overrun
9699     # during glob expansion).  Even if it were fixed, the result of this
9700     # check would be larger than it should be.
9701     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9702     ;;
9703
9704   gnu*)
9705     # Under GNU Hurd, this test is not required because there is
9706     # no limit to the length of command line arguments.
9707     # Libtool will interpret -1 as no limit whatsoever
9708     lt_cv_sys_max_cmd_len=-1;
9709     ;;
9710
9711   cygwin* | mingw* | cegcc*)
9712     # On Win9x/ME, this test blows up -- it succeeds, but takes
9713     # about 5 minutes as the teststring grows exponentially.
9714     # Worse, since 9x/ME are not pre-emptively multitasking,
9715     # you end up with a "frozen" computer, even though with patience
9716     # the test eventually succeeds (with a max line length of 256k).
9717     # Instead, let's just punt: use the minimum linelength reported by
9718     # all of the supported platforms: 8192 (on NT/2K/XP).
9719     lt_cv_sys_max_cmd_len=8192;
9720     ;;
9721
9722   mint*)
9723     # On MiNT this can take a long time and run out of memory.
9724     lt_cv_sys_max_cmd_len=8192;
9725     ;;
9726
9727   amigaos*)
9728     # On AmigaOS with pdksh, this test takes hours, literally.
9729     # So we just punt and use a minimum line length of 8192.
9730     lt_cv_sys_max_cmd_len=8192;
9731     ;;
9732
9733   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9734     # This has been around since 386BSD, at least.  Likely further.
9735     if test -x /sbin/sysctl; then
9736       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9737     elif test -x /usr/sbin/sysctl; then
9738       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9739     else
9740       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9741     fi
9742     # And add a safety zone
9743     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9744     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9745     ;;
9746
9747   interix*)
9748     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9749     lt_cv_sys_max_cmd_len=196608
9750     ;;
9751
9752   osf*)
9753     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9754     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9755     # nice to cause kernel panics so lets avoid the loop below.
9756     # First set a reasonable default.
9757     lt_cv_sys_max_cmd_len=16384
9758     #
9759     if test -x /sbin/sysconfig; then
9760       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9761         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9762       esac
9763     fi
9764     ;;
9765   sco3.2v5*)
9766     lt_cv_sys_max_cmd_len=102400
9767     ;;
9768   sysv5* | sco5v6* | sysv4.2uw2*)
9769     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9770     if test -n "$kargmax"; then
9771       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9772     else
9773       lt_cv_sys_max_cmd_len=32768
9774     fi
9775     ;;
9776   *)
9777     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9778     if test -n "$lt_cv_sys_max_cmd_len"; then
9779       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9781     else
9782       # Make teststring a little bigger before we do anything with it.
9783       # a 1K string should be a reasonable start.
9784       for i in 1 2 3 4 5 6 7 8 ; do
9785         teststring=$teststring$teststring
9786       done
9787       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9788       # If test is not a shell built-in, we'll probably end up computing a
9789       # maximum length that is only half of the actual maximum length, but
9790       # we can't tell.
9791       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9792                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9793               test $i != 17 # 1/2 MB should be enough
9794       do
9795         i=`expr $i + 1`
9796         teststring=$teststring$teststring
9797       done
9798       # Only check the string length outside the loop.
9799       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9800       teststring=
9801       # Add a significant safety factor because C++ compilers can tack on
9802       # massive amounts of additional arguments before passing them to the
9803       # linker.  It appears as though 1/2 is a usable value.
9804       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9805     fi
9806     ;;
9807   esac
9808
9809 fi
9810
9811 if test -n $lt_cv_sys_max_cmd_len ; then
9812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9813 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9814 else
9815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9816 $as_echo "none" >&6; }
9817 fi
9818 max_cmd_len=$lt_cv_sys_max_cmd_len
9819
9820
9821
9822
9823
9824
9825 : ${CP="cp -f"}
9826 : ${MV="mv -f"}
9827 : ${RM="rm -f"}
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9830 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9831 # Try some XSI features
9832 xsi_shell=no
9833 ( _lt_dummy="a/b/c"
9834   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9835       = c,a/b,, \
9836     && eval 'test $(( 1 + 1 )) -eq 2 \
9837     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9838   && xsi_shell=yes
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9840 $as_echo "$xsi_shell" >&6; }
9841
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9844 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9845 lt_shell_append=no
9846 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9847     >/dev/null 2>&1 \
9848   && lt_shell_append=yes
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9850 $as_echo "$lt_shell_append" >&6; }
9851
9852
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9854   lt_unset=unset
9855 else
9856   lt_unset=false
9857 fi
9858
9859
9860
9861
9862
9863 # test EBCDIC or ASCII
9864 case `echo X|tr X '\101'` in
9865  A) # ASCII based system
9866     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9867   lt_SP2NL='tr \040 \012'
9868   lt_NL2SP='tr \015\012 \040\040'
9869   ;;
9870  *) # EBCDIC based system
9871   lt_SP2NL='tr \100 \n'
9872   lt_NL2SP='tr \r\n \100\100'
9873   ;;
9874 esac
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9885 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9886 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   lt_cv_ld_reload_flag='-r'
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9892 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9893 reload_flag=$lt_cv_ld_reload_flag
9894 case $reload_flag in
9895 "" | " "*) ;;
9896 *) reload_flag=" $reload_flag" ;;
9897 esac
9898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9899 case $host_os in
9900   darwin*)
9901     if test "$GCC" = yes; then
9902       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9903     else
9904       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9905     fi
9906     ;;
9907 esac
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 if test -n "$ac_tool_prefix"; then
9918   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9919 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   if test -n "$OBJDUMP"; then
9926   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9927 else
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933     for ac_exec_ext in '' $ac_executable_extensions; do
9934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937     break 2
9938   fi
9939 done
9940   done
9941 IFS=$as_save_IFS
9942
9943 fi
9944 fi
9945 OBJDUMP=$ac_cv_prog_OBJDUMP
9946 if test -n "$OBJDUMP"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9948 $as_echo "$OBJDUMP" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953
9954
9955 fi
9956 if test -z "$ac_cv_prog_OBJDUMP"; then
9957   ac_ct_OBJDUMP=$OBJDUMP
9958   # Extract the first word of "objdump", so it can be a program name with args.
9959 set dummy objdump; ac_word=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9963   $as_echo_n "(cached) " >&6
9964 else
9965   if test -n "$ac_ct_OBJDUMP"; then
9966   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9967 else
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 for as_dir in $PATH
9970 do
9971   IFS=$as_save_IFS
9972   test -z "$as_dir" && as_dir=.
9973     for ac_exec_ext in '' $ac_executable_extensions; do
9974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977     break 2
9978   fi
9979 done
9980   done
9981 IFS=$as_save_IFS
9982
9983 fi
9984 fi
9985 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9986 if test -n "$ac_ct_OBJDUMP"; then
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9988 $as_echo "$ac_ct_OBJDUMP" >&6; }
9989 else
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9992 fi
9993
9994   if test "x$ac_ct_OBJDUMP" = x; then
9995     OBJDUMP="false"
9996   else
9997     case $cross_compiling:$ac_tool_warned in
9998 yes:)
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10001 ac_tool_warned=yes ;;
10002 esac
10003     OBJDUMP=$ac_ct_OBJDUMP
10004   fi
10005 else
10006   OBJDUMP="$ac_cv_prog_OBJDUMP"
10007 fi
10008
10009 test -z "$OBJDUMP" && OBJDUMP=objdump
10010
10011
10012
10013
10014
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10017 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10018 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   lt_cv_file_magic_cmd='$MAGIC_CMD'
10022 lt_cv_file_magic_test_file=
10023 lt_cv_deplibs_check_method='unknown'
10024 # Need to set the preceding variable on all platforms that support
10025 # interlibrary dependencies.
10026 # 'none' -- dependencies not supported.
10027 # `unknown' -- same as none, but documents that we really don't know.
10028 # 'pass_all' -- all dependencies passed with no checks.
10029 # 'test_compile' -- check by making test program.
10030 # 'file_magic [[regex]]' -- check by looking for files in library path
10031 # which responds to the $file_magic_cmd with a given extended regex.
10032 # If you have `file' or equivalent on your system and you're not sure
10033 # whether `pass_all' will *always* work, you probably want this one.
10034
10035 case $host_os in
10036 aix[4-9]*)
10037   lt_cv_deplibs_check_method=pass_all
10038   ;;
10039
10040 beos*)
10041   lt_cv_deplibs_check_method=pass_all
10042   ;;
10043
10044 bsdi[45]*)
10045   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10046   lt_cv_file_magic_cmd='/usr/bin/file -L'
10047   lt_cv_file_magic_test_file=/shlib/libc.so
10048   ;;
10049
10050 cygwin*)
10051   # func_win32_libid is a shell function defined in ltmain.sh
10052   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10053   lt_cv_file_magic_cmd='func_win32_libid'
10054   ;;
10055
10056 mingw* | pw32*)
10057   # Base MSYS/MinGW do not provide the 'file' command needed by
10058   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10059   # unless we find 'file', for example because we are cross-compiling.
10060   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10061   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10062     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10063     lt_cv_file_magic_cmd='func_win32_libid'
10064   else
10065     # Keep this pattern in sync with the one in func_win32_libid.
10066     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10067     lt_cv_file_magic_cmd='$OBJDUMP -f'
10068   fi
10069   ;;
10070
10071 cegcc*)
10072   # use the weaker test based on 'objdump'. See mingw*.
10073   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10074   lt_cv_file_magic_cmd='$OBJDUMP -f'
10075   ;;
10076
10077 darwin* | rhapsody*)
10078   lt_cv_deplibs_check_method=pass_all
10079   ;;
10080
10081 freebsd* | dragonfly*)
10082   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10083     case $host_cpu in
10084     i*86 )
10085       # Not sure whether the presence of OpenBSD here was a mistake.
10086       # Let's accept both of them until this is cleared up.
10087       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10088       lt_cv_file_magic_cmd=/usr/bin/file
10089       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10090       ;;
10091     esac
10092   else
10093     lt_cv_deplibs_check_method=pass_all
10094   fi
10095   ;;
10096
10097 gnu*)
10098   lt_cv_deplibs_check_method=pass_all
10099   ;;
10100
10101 haiku*)
10102   lt_cv_deplibs_check_method=pass_all
10103   ;;
10104
10105 hpux10.20* | hpux11*)
10106   lt_cv_file_magic_cmd=/usr/bin/file
10107   case $host_cpu in
10108   ia64*)
10109     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10110     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10111     ;;
10112   hppa*64*)
10113     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]'
10114     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10115     ;;
10116   *)
10117     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10118     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10119     ;;
10120   esac
10121   ;;
10122
10123 interix[3-9]*)
10124   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10125   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10126   ;;
10127
10128 irix5* | irix6* | nonstopux*)
10129   case $LD in
10130   *-32|*"-32 ") libmagic=32-bit;;
10131   *-n32|*"-n32 ") libmagic=N32;;
10132   *-64|*"-64 ") libmagic=64-bit;;
10133   *) libmagic=never-match;;
10134   esac
10135   lt_cv_deplibs_check_method=pass_all
10136   ;;
10137
10138 # This must be Linux ELF.
10139 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10140   lt_cv_deplibs_check_method=pass_all
10141   ;;
10142
10143 netbsd*)
10144   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10145     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10146   else
10147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10148   fi
10149   ;;
10150
10151 newos6*)
10152   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10153   lt_cv_file_magic_cmd=/usr/bin/file
10154   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10155   ;;
10156
10157 *nto* | *qnx*)
10158   lt_cv_deplibs_check_method=pass_all
10159   ;;
10160
10161 openbsd*)
10162   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10164   else
10165     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10166   fi
10167   ;;
10168
10169 osf3* | osf4* | osf5*)
10170   lt_cv_deplibs_check_method=pass_all
10171   ;;
10172
10173 rdos*)
10174   lt_cv_deplibs_check_method=pass_all
10175   ;;
10176
10177 solaris*)
10178   lt_cv_deplibs_check_method=pass_all
10179   ;;
10180
10181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10182   lt_cv_deplibs_check_method=pass_all
10183   ;;
10184
10185 sysv4 | sysv4.3*)
10186   case $host_vendor in
10187   motorola)
10188     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]'
10189     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10190     ;;
10191   ncr)
10192     lt_cv_deplibs_check_method=pass_all
10193     ;;
10194   sequent)
10195     lt_cv_file_magic_cmd='/bin/file'
10196     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10197     ;;
10198   sni)
10199     lt_cv_file_magic_cmd='/bin/file'
10200     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10201     lt_cv_file_magic_test_file=/lib/libc.so
10202     ;;
10203   siemens)
10204     lt_cv_deplibs_check_method=pass_all
10205     ;;
10206   pc)
10207     lt_cv_deplibs_check_method=pass_all
10208     ;;
10209   esac
10210   ;;
10211
10212 tpf*)
10213   lt_cv_deplibs_check_method=pass_all
10214   ;;
10215 esac
10216
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10219 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10220 file_magic_cmd=$lt_cv_file_magic_cmd
10221 deplibs_check_method=$lt_cv_deplibs_check_method
10222 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235 if test -n "$ac_tool_prefix"; then
10236   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10237 set dummy ${ac_tool_prefix}ar; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if test "${ac_cv_prog_AR+set}" = set; then :
10241   $as_echo_n "(cached) " >&6
10242 else
10243   if test -n "$AR"; then
10244   ac_cv_prog_AR="$AR" # Let the user override the test.
10245 else
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10248 do
10249   IFS=$as_save_IFS
10250   test -z "$as_dir" && as_dir=.
10251     for ac_exec_ext in '' $ac_executable_extensions; do
10252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10253     ac_cv_prog_AR="${ac_tool_prefix}ar"
10254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10255     break 2
10256   fi
10257 done
10258   done
10259 IFS=$as_save_IFS
10260
10261 fi
10262 fi
10263 AR=$ac_cv_prog_AR
10264 if test -n "$AR"; then
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10266 $as_echo "$AR" >&6; }
10267 else
10268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10270 fi
10271
10272
10273 fi
10274 if test -z "$ac_cv_prog_AR"; then
10275   ac_ct_AR=$AR
10276   # Extract the first word of "ar", so it can be a program name with args.
10277 set dummy ar; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   if test -n "$ac_ct_AR"; then
10284   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10285 else
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10288 do
10289   IFS=$as_save_IFS
10290   test -z "$as_dir" && as_dir=.
10291     for ac_exec_ext in '' $ac_executable_extensions; do
10292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293     ac_cv_prog_ac_ct_AR="ar"
10294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295     break 2
10296   fi
10297 done
10298   done
10299 IFS=$as_save_IFS
10300
10301 fi
10302 fi
10303 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10304 if test -n "$ac_ct_AR"; then
10305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10306 $as_echo "$ac_ct_AR" >&6; }
10307 else
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10310 fi
10311
10312   if test "x$ac_ct_AR" = x; then
10313     AR="false"
10314   else
10315     case $cross_compiling:$ac_tool_warned in
10316 yes:)
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319 ac_tool_warned=yes ;;
10320 esac
10321     AR=$ac_ct_AR
10322   fi
10323 else
10324   AR="$ac_cv_prog_AR"
10325 fi
10326
10327 test -z "$AR" && AR=ar
10328 test -z "$AR_FLAGS" && AR_FLAGS=cru
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340 if test -n "$ac_tool_prefix"; then
10341   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10342 set dummy ${ac_tool_prefix}strip; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_STRIP+set}" = set; then :
10346   $as_echo_n "(cached) " >&6
10347 else
10348   if test -n "$STRIP"; then
10349   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10350 else
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10353 do
10354   IFS=$as_save_IFS
10355   test -z "$as_dir" && as_dir=.
10356     for ac_exec_ext in '' $ac_executable_extensions; do
10357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360     break 2
10361   fi
10362 done
10363   done
10364 IFS=$as_save_IFS
10365
10366 fi
10367 fi
10368 STRIP=$ac_cv_prog_STRIP
10369 if test -n "$STRIP"; then
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10371 $as_echo "$STRIP" >&6; }
10372 else
10373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10375 fi
10376
10377
10378 fi
10379 if test -z "$ac_cv_prog_STRIP"; then
10380   ac_ct_STRIP=$STRIP
10381   # Extract the first word of "strip", so it can be a program name with args.
10382 set dummy strip; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10386   $as_echo_n "(cached) " >&6
10387 else
10388   if test -n "$ac_ct_STRIP"; then
10389   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398     ac_cv_prog_ac_ct_STRIP="strip"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405
10406 fi
10407 fi
10408 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10409 if test -n "$ac_ct_STRIP"; then
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10411 $as_echo "$ac_ct_STRIP" >&6; }
10412 else
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417   if test "x$ac_ct_STRIP" = x; then
10418     STRIP=":"
10419   else
10420     case $cross_compiling:$ac_tool_warned in
10421 yes:)
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10424 ac_tool_warned=yes ;;
10425 esac
10426     STRIP=$ac_ct_STRIP
10427   fi
10428 else
10429   STRIP="$ac_cv_prog_STRIP"
10430 fi
10431
10432 test -z "$STRIP" && STRIP=:
10433
10434
10435
10436
10437
10438
10439 if test -n "$ac_tool_prefix"; then
10440   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10441 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   if test -n "$RANLIB"; then
10448   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10449 else
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464
10465 fi
10466 fi
10467 RANLIB=$ac_cv_prog_RANLIB
10468 if test -n "$RANLIB"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10470 $as_echo "$RANLIB" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475
10476
10477 fi
10478 if test -z "$ac_cv_prog_RANLIB"; then
10479   ac_ct_RANLIB=$RANLIB
10480   # Extract the first word of "ranlib", so it can be a program name with args.
10481 set dummy ranlib; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   if test -n "$ac_ct_RANLIB"; then
10488   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10489 else
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493   IFS=$as_save_IFS
10494   test -z "$as_dir" && as_dir=.
10495     for ac_exec_ext in '' $ac_executable_extensions; do
10496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497     ac_cv_prog_ac_ct_RANLIB="ranlib"
10498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499     break 2
10500   fi
10501 done
10502   done
10503 IFS=$as_save_IFS
10504
10505 fi
10506 fi
10507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10508 if test -n "$ac_ct_RANLIB"; then
10509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10510 $as_echo "$ac_ct_RANLIB" >&6; }
10511 else
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515
10516   if test "x$ac_ct_RANLIB" = x; then
10517     RANLIB=":"
10518   else
10519     case $cross_compiling:$ac_tool_warned in
10520 yes:)
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10523 ac_tool_warned=yes ;;
10524 esac
10525     RANLIB=$ac_ct_RANLIB
10526   fi
10527 else
10528   RANLIB="$ac_cv_prog_RANLIB"
10529 fi
10530
10531 test -z "$RANLIB" && RANLIB=:
10532
10533
10534
10535
10536
10537
10538 # Determine commands to create old-style static archives.
10539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10540 old_postinstall_cmds='chmod 644 $oldlib'
10541 old_postuninstall_cmds=
10542
10543 if test -n "$RANLIB"; then
10544   case $host_os in
10545   openbsd*)
10546     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10547     ;;
10548   *)
10549     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10550     ;;
10551   esac
10552   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10553 fi
10554
10555 case $host_os in
10556   darwin*)
10557     lock_old_archive_extraction=yes ;;
10558   *)
10559     lock_old_archive_extraction=no ;;
10560 esac
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600 # If no C compiler was specified, use CC.
10601 LTCC=${LTCC-"$CC"}
10602
10603 # If no C compiler flags were specified, use CFLAGS.
10604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10605
10606 # Allow CC to be a program name with arguments.
10607 compiler=$CC
10608
10609
10610 # Check for command to grab the raw symbol name followed by C symbol from nm.
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10612 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10613 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616
10617 # These are sane defaults that work on at least a few old systems.
10618 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10619
10620 # Character class describing NM global symbol codes.
10621 symcode='[BCDEGRST]'
10622
10623 # Regexp to match symbols that can be accessed directly from C.
10624 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10625
10626 # Define system-specific variables.
10627 case $host_os in
10628 aix*)
10629   symcode='[BCDT]'
10630   ;;
10631 cygwin* | mingw* | pw32* | cegcc*)
10632   symcode='[ABCDGISTW]'
10633   ;;
10634 hpux*)
10635   if test "$host_cpu" = ia64; then
10636     symcode='[ABCDEGRST]'
10637   fi
10638   ;;
10639 irix* | nonstopux*)
10640   symcode='[BCDEGRST]'
10641   ;;
10642 osf*)
10643   symcode='[BCDEGQRST]'
10644   ;;
10645 solaris*)
10646   symcode='[BDRT]'
10647   ;;
10648 sco3.2v5*)
10649   symcode='[DT]'
10650   ;;
10651 sysv4.2uw2*)
10652   symcode='[DT]'
10653   ;;
10654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10655   symcode='[ABDT]'
10656   ;;
10657 sysv4)
10658   symcode='[DFNSTU]'
10659   ;;
10660 esac
10661
10662 # If we're using GNU nm, then use its standard symbol codes.
10663 case `$NM -V 2>&1` in
10664 *GNU* | *'with BFD'*)
10665   symcode='[ABCDGIRSTW]' ;;
10666 esac
10667
10668 # Transform an extracted symbol line into a proper C declaration.
10669 # Some systems (esp. on ia64) link data and code symbols differently,
10670 # so use this general approach.
10671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10672
10673 # Transform an extracted symbol line into symbol name and symbol address
10674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10675 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
10676
10677 # Handle CRLF in mingw tool chain
10678 opt_cr=
10679 case $build_os in
10680 mingw*)
10681   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10682   ;;
10683 esac
10684
10685 # Try without a prefix underscore, then with it.
10686 for ac_symprfx in "" "_"; do
10687
10688   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10689   symxfrm="\\1 $ac_symprfx\\2 \\2"
10690
10691   # Write the raw and C identifiers.
10692   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10693     # Fake it for dumpbin and say T for any non-static function
10694     # and D for any global variable.
10695     # Also find C++ and __fastcall symbols from MSVC++,
10696     # which start with @ or ?.
10697     lt_cv_sys_global_symbol_pipe="$AWK '"\
10698 "     {last_section=section; section=\$ 3};"\
10699 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10700 "     \$ 0!~/External *\|/{next};"\
10701 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10702 "     {if(hide[section]) next};"\
10703 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10704 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10705 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10706 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10707 "     ' prfx=^$ac_symprfx"
10708   else
10709     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10710   fi
10711
10712   # Check to see that the pipe works correctly.
10713   pipe_works=no
10714
10715   rm -f conftest*
10716   cat > conftest.$ac_ext <<_LT_EOF
10717 #ifdef __cplusplus
10718 extern "C" {
10719 #endif
10720 char nm_test_var;
10721 void nm_test_func(void);
10722 void nm_test_func(void){}
10723 #ifdef __cplusplus
10724 }
10725 #endif
10726 int main(){nm_test_var='a';nm_test_func();return(0);}
10727 _LT_EOF
10728
10729   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10730   (eval $ac_compile) 2>&5
10731   ac_status=$?
10732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10733   test $ac_status = 0; }; then
10734     # Now try to grab the symbols.
10735     nlist=conftest.nm
10736     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10737   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10738   ac_status=$?
10739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10740   test $ac_status = 0; } && test -s "$nlist"; then
10741       # Try sorting and uniquifying the output.
10742       if sort "$nlist" | uniq > "$nlist"T; then
10743         mv -f "$nlist"T "$nlist"
10744       else
10745         rm -f "$nlist"T
10746       fi
10747
10748       # Make sure that we snagged all the symbols we need.
10749       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10750         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10751           cat <<_LT_EOF > conftest.$ac_ext
10752 #ifdef __cplusplus
10753 extern "C" {
10754 #endif
10755
10756 _LT_EOF
10757           # Now generate the symbol file.
10758           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10759
10760           cat <<_LT_EOF >> conftest.$ac_ext
10761
10762 /* The mapping between symbol names and symbols.  */
10763 const struct {
10764   const char *name;
10765   void       *address;
10766 }
10767 lt__PROGRAM__LTX_preloaded_symbols[] =
10768 {
10769   { "@PROGRAM@", (void *) 0 },
10770 _LT_EOF
10771           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10772           cat <<\_LT_EOF >> conftest.$ac_ext
10773   {0, (void *) 0}
10774 };
10775
10776 /* This works around a problem in FreeBSD linker */
10777 #ifdef FREEBSD_WORKAROUND
10778 static const void *lt_preloaded_setup() {
10779   return lt__PROGRAM__LTX_preloaded_symbols;
10780 }
10781 #endif
10782
10783 #ifdef __cplusplus
10784 }
10785 #endif
10786 _LT_EOF
10787           # Now try linking the two files.
10788           mv conftest.$ac_objext conftstm.$ac_objext
10789           lt_save_LIBS="$LIBS"
10790           lt_save_CFLAGS="$CFLAGS"
10791           LIBS="conftstm.$ac_objext"
10792           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10793           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10794   (eval $ac_link) 2>&5
10795   ac_status=$?
10796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10798             pipe_works=yes
10799           fi
10800           LIBS="$lt_save_LIBS"
10801           CFLAGS="$lt_save_CFLAGS"
10802         else
10803           echo "cannot find nm_test_func in $nlist" >&5
10804         fi
10805       else
10806         echo "cannot find nm_test_var in $nlist" >&5
10807       fi
10808     else
10809       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10810     fi
10811   else
10812     echo "$progname: failed program was:" >&5
10813     cat conftest.$ac_ext >&5
10814   fi
10815   rm -rf conftest* conftst*
10816
10817   # Do not use the global_symbol_pipe unless it works.
10818   if test "$pipe_works" = yes; then
10819     break
10820   else
10821     lt_cv_sys_global_symbol_pipe=
10822   fi
10823 done
10824
10825 fi
10826
10827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10828   lt_cv_sys_global_symbol_to_cdecl=
10829 fi
10830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10832 $as_echo "failed" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10835 $as_echo "ok" >&6; }
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859 # Check whether --enable-libtool-lock was given.
10860 if test "${enable_libtool_lock+set}" = set; then :
10861   enableval=$enable_libtool_lock;
10862 fi
10863
10864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10865
10866 # Some flags need to be propagated to the compiler or linker for good
10867 # libtool support.
10868 case $host in
10869 ia64-*-hpux*)
10870   # Find out which ABI we are using.
10871   echo 'int i;' > conftest.$ac_ext
10872   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10873   (eval $ac_compile) 2>&5
10874   ac_status=$?
10875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876   test $ac_status = 0; }; then
10877     case `/usr/bin/file conftest.$ac_objext` in
10878       *ELF-32*)
10879         HPUX_IA64_MODE="32"
10880         ;;
10881       *ELF-64*)
10882         HPUX_IA64_MODE="64"
10883         ;;
10884     esac
10885   fi
10886   rm -rf conftest*
10887   ;;
10888 *-*-irix6*)
10889   # Find out which ABI we are using.
10890   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10892   (eval $ac_compile) 2>&5
10893   ac_status=$?
10894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895   test $ac_status = 0; }; then
10896     if test "$lt_cv_prog_gnu_ld" = yes; then
10897       case `/usr/bin/file conftest.$ac_objext` in
10898         *32-bit*)
10899           LD="${LD-ld} -melf32bsmip"
10900           ;;
10901         *N32*)
10902           LD="${LD-ld} -melf32bmipn32"
10903           ;;
10904         *64-bit*)
10905           LD="${LD-ld} -melf64bmip"
10906         ;;
10907       esac
10908     else
10909       case `/usr/bin/file conftest.$ac_objext` in
10910         *32-bit*)
10911           LD="${LD-ld} -32"
10912           ;;
10913         *N32*)
10914           LD="${LD-ld} -n32"
10915           ;;
10916         *64-bit*)
10917           LD="${LD-ld} -64"
10918           ;;
10919       esac
10920     fi
10921   fi
10922   rm -rf conftest*
10923   ;;
10924
10925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10926 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10927   # Find out which ABI we are using.
10928   echo 'int i;' > conftest.$ac_ext
10929   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10930   (eval $ac_compile) 2>&5
10931   ac_status=$?
10932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933   test $ac_status = 0; }; then
10934     case `/usr/bin/file conftest.o` in
10935       *32-bit*)
10936         case $host in
10937           x86_64-*kfreebsd*-gnu)
10938             LD="${LD-ld} -m elf_i386_fbsd"
10939             ;;
10940           x86_64-*linux*)
10941             LD="${LD-ld} -m elf_i386"
10942             ;;
10943           ppc64-*linux*|powerpc64-*linux*)
10944             LD="${LD-ld} -m elf32ppclinux"
10945             ;;
10946           s390x-*linux*)
10947             LD="${LD-ld} -m elf_s390"
10948             ;;
10949           sparc64-*linux*)
10950             LD="${LD-ld} -m elf32_sparc"
10951             ;;
10952         esac
10953         ;;
10954       *64-bit*)
10955         case $host in
10956           x86_64-*kfreebsd*-gnu)
10957             LD="${LD-ld} -m elf_x86_64_fbsd"
10958             ;;
10959           x86_64-*linux*)
10960             LD="${LD-ld} -m elf_x86_64"
10961             ;;
10962           ppc*-*linux*|powerpc*-*linux*)
10963             LD="${LD-ld} -m elf64ppc"
10964             ;;
10965           s390*-*linux*|s390*-*tpf*)
10966             LD="${LD-ld} -m elf64_s390"
10967             ;;
10968           sparc*-*linux*)
10969             LD="${LD-ld} -m elf64_sparc"
10970             ;;
10971         esac
10972         ;;
10973     esac
10974   fi
10975   rm -rf conftest*
10976   ;;
10977
10978 *-*-sco3.2v5*)
10979   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10980   SAVE_CFLAGS="$CFLAGS"
10981   CFLAGS="$CFLAGS -belf"
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10983 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10984 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10985   $as_echo_n "(cached) " >&6
10986 else
10987   ac_ext=c
10988 ac_cpp='$CPP $CPPFLAGS'
10989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992
10993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h.  */
10995
10996 int
10997 main ()
10998 {
10999
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005   lt_cv_cc_needs_belf=yes
11006 else
11007   lt_cv_cc_needs_belf=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010     conftest$ac_exeext conftest.$ac_ext
11011      ac_ext=c
11012 ac_cpp='$CPP $CPPFLAGS'
11013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11016
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11019 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11020   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11021     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11022     CFLAGS="$SAVE_CFLAGS"
11023   fi
11024   ;;
11025 sparc*-*solaris*)
11026   # Find out which ABI we are using.
11027   echo 'int i;' > conftest.$ac_ext
11028   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11029   (eval $ac_compile) 2>&5
11030   ac_status=$?
11031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11032   test $ac_status = 0; }; then
11033     case `/usr/bin/file conftest.o` in
11034     *64-bit*)
11035       case $lt_cv_prog_gnu_ld in
11036       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11037       *)
11038         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11039           LD="${LD-ld} -64"
11040         fi
11041         ;;
11042       esac
11043       ;;
11044     esac
11045   fi
11046   rm -rf conftest*
11047   ;;
11048 esac
11049
11050 need_locks="$enable_libtool_lock"
11051
11052
11053   case $host_os in
11054     rhapsody* | darwin*)
11055     if test -n "$ac_tool_prefix"; then
11056   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11057 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   if test -n "$DSYMUTIL"; then
11064   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11065 else
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11068 do
11069   IFS=$as_save_IFS
11070   test -z "$as_dir" && as_dir=.
11071     for ac_exec_ext in '' $ac_executable_extensions; do
11072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075     break 2
11076   fi
11077 done
11078   done
11079 IFS=$as_save_IFS
11080
11081 fi
11082 fi
11083 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11084 if test -n "$DSYMUTIL"; then
11085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11086 $as_echo "$DSYMUTIL" >&6; }
11087 else
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090 fi
11091
11092
11093 fi
11094 if test -z "$ac_cv_prog_DSYMUTIL"; then
11095   ac_ct_DSYMUTIL=$DSYMUTIL
11096   # Extract the first word of "dsymutil", so it can be a program name with args.
11097 set dummy dsymutil; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11101   $as_echo_n "(cached) " >&6
11102 else
11103   if test -n "$ac_ct_DSYMUTIL"; then
11104   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109   IFS=$as_save_IFS
11110   test -z "$as_dir" && as_dir=.
11111     for ac_exec_ext in '' $ac_executable_extensions; do
11112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115     break 2
11116   fi
11117 done
11118   done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11124 if test -n "$ac_ct_DSYMUTIL"; then
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11126 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11127 else
11128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132   if test "x$ac_ct_DSYMUTIL" = x; then
11133     DSYMUTIL=":"
11134   else
11135     case $cross_compiling:$ac_tool_warned in
11136 yes:)
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139 ac_tool_warned=yes ;;
11140 esac
11141     DSYMUTIL=$ac_ct_DSYMUTIL
11142   fi
11143 else
11144   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11145 fi
11146
11147     if test -n "$ac_tool_prefix"; then
11148   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   if test -n "$NMEDIT"; then
11156   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11157 else
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172
11173 fi
11174 fi
11175 NMEDIT=$ac_cv_prog_NMEDIT
11176 if test -n "$NMEDIT"; then
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11178 $as_echo "$NMEDIT" >&6; }
11179 else
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183
11184
11185 fi
11186 if test -z "$ac_cv_prog_NMEDIT"; then
11187   ac_ct_NMEDIT=$NMEDIT
11188   # Extract the first word of "nmedit", so it can be a program name with args.
11189 set dummy nmedit; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   if test -n "$ac_ct_NMEDIT"; then
11196   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201   IFS=$as_save_IFS
11202   test -z "$as_dir" && as_dir=.
11203     for ac_exec_ext in '' $ac_executable_extensions; do
11204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207     break 2
11208   fi
11209 done
11210   done
11211 IFS=$as_save_IFS
11212
11213 fi
11214 fi
11215 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11216 if test -n "$ac_ct_NMEDIT"; then
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11218 $as_echo "$ac_ct_NMEDIT" >&6; }
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223
11224   if test "x$ac_ct_NMEDIT" = x; then
11225     NMEDIT=":"
11226   else
11227     case $cross_compiling:$ac_tool_warned in
11228 yes:)
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11232 esac
11233     NMEDIT=$ac_ct_NMEDIT
11234   fi
11235 else
11236   NMEDIT="$ac_cv_prog_NMEDIT"
11237 fi
11238
11239     if test -n "$ac_tool_prefix"; then
11240   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if test "${ac_cv_prog_LIPO+set}" = set; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   if test -n "$LIPO"; then
11248   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11249 else
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11252 do
11253   IFS=$as_save_IFS
11254   test -z "$as_dir" && as_dir=.
11255     for ac_exec_ext in '' $ac_executable_extensions; do
11256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11259     break 2
11260   fi
11261 done
11262   done
11263 IFS=$as_save_IFS
11264
11265 fi
11266 fi
11267 LIPO=$ac_cv_prog_LIPO
11268 if test -n "$LIPO"; then
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11270 $as_echo "$LIPO" >&6; }
11271 else
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275
11276
11277 fi
11278 if test -z "$ac_cv_prog_LIPO"; then
11279   ac_ct_LIPO=$LIPO
11280   # Extract the first word of "lipo", so it can be a program name with args.
11281 set dummy lipo; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11285   $as_echo_n "(cached) " >&6
11286 else
11287   if test -n "$ac_ct_LIPO"; then
11288   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11289 else
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11292 do
11293   IFS=$as_save_IFS
11294   test -z "$as_dir" && as_dir=.
11295     for ac_exec_ext in '' $ac_executable_extensions; do
11296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297     ac_cv_prog_ac_ct_LIPO="lipo"
11298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299     break 2
11300   fi
11301 done
11302   done
11303 IFS=$as_save_IFS
11304
11305 fi
11306 fi
11307 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11308 if test -n "$ac_ct_LIPO"; then
11309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11310 $as_echo "$ac_ct_LIPO" >&6; }
11311 else
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314 fi
11315
11316   if test "x$ac_ct_LIPO" = x; then
11317     LIPO=":"
11318   else
11319     case $cross_compiling:$ac_tool_warned in
11320 yes:)
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323 ac_tool_warned=yes ;;
11324 esac
11325     LIPO=$ac_ct_LIPO
11326   fi
11327 else
11328   LIPO="$ac_cv_prog_LIPO"
11329 fi
11330
11331     if test -n "$ac_tool_prefix"; then
11332   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11333 set dummy ${ac_tool_prefix}otool; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   if test -n "$OTOOL"; then
11340   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345   IFS=$as_save_IFS
11346   test -z "$as_dir" && as_dir=.
11347     for ac_exec_ext in '' $ac_executable_extensions; do
11348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351     break 2
11352   fi
11353 done
11354   done
11355 IFS=$as_save_IFS
11356
11357 fi
11358 fi
11359 OTOOL=$ac_cv_prog_OTOOL
11360 if test -n "$OTOOL"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11362 $as_echo "$OTOOL" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367
11368
11369 fi
11370 if test -z "$ac_cv_prog_OTOOL"; then
11371   ac_ct_OTOOL=$OTOOL
11372   # Extract the first word of "otool", so it can be a program name with args.
11373 set dummy otool; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   if test -n "$ac_ct_OTOOL"; then
11380   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11381 else
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11384 do
11385   IFS=$as_save_IFS
11386   test -z "$as_dir" && as_dir=.
11387     for ac_exec_ext in '' $ac_executable_extensions; do
11388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389     ac_cv_prog_ac_ct_OTOOL="otool"
11390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391     break 2
11392   fi
11393 done
11394   done
11395 IFS=$as_save_IFS
11396
11397 fi
11398 fi
11399 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11400 if test -n "$ac_ct_OTOOL"; then
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11402 $as_echo "$ac_ct_OTOOL" >&6; }
11403 else
11404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 fi
11407
11408   if test "x$ac_ct_OTOOL" = x; then
11409     OTOOL=":"
11410   else
11411     case $cross_compiling:$ac_tool_warned in
11412 yes:)
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11415 ac_tool_warned=yes ;;
11416 esac
11417     OTOOL=$ac_ct_OTOOL
11418   fi
11419 else
11420   OTOOL="$ac_cv_prog_OTOOL"
11421 fi
11422
11423     if test -n "$ac_tool_prefix"; then
11424   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11425 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11429   $as_echo_n "(cached) " >&6
11430 else
11431   if test -n "$OTOOL64"; then
11432   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11433 else
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11436 do
11437   IFS=$as_save_IFS
11438   test -z "$as_dir" && as_dir=.
11439     for ac_exec_ext in '' $ac_executable_extensions; do
11440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443     break 2
11444   fi
11445 done
11446   done
11447 IFS=$as_save_IFS
11448
11449 fi
11450 fi
11451 OTOOL64=$ac_cv_prog_OTOOL64
11452 if test -n "$OTOOL64"; then
11453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11454 $as_echo "$OTOOL64" >&6; }
11455 else
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458 fi
11459
11460
11461 fi
11462 if test -z "$ac_cv_prog_OTOOL64"; then
11463   ac_ct_OTOOL64=$OTOOL64
11464   # Extract the first word of "otool64", so it can be a program name with args.
11465 set dummy otool64; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11469   $as_echo_n "(cached) " >&6
11470 else
11471   if test -n "$ac_ct_OTOOL64"; then
11472   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11473 else
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481     ac_cv_prog_ac_ct_OTOOL64="otool64"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488
11489 fi
11490 fi
11491 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11492 if test -n "$ac_ct_OTOOL64"; then
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11494 $as_echo "$ac_ct_OTOOL64" >&6; }
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499
11500   if test "x$ac_ct_OTOOL64" = x; then
11501     OTOOL64=":"
11502   else
11503     case $cross_compiling:$ac_tool_warned in
11504 yes:)
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11507 ac_tool_warned=yes ;;
11508 esac
11509     OTOOL64=$ac_ct_OTOOL64
11510   fi
11511 else
11512   OTOOL64="$ac_cv_prog_OTOOL64"
11513 fi
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11542 $as_echo_n "checking for -single_module linker flag... " >&6; }
11543 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   lt_cv_apple_cc_single_mod=no
11547       if test -z "${LT_MULTI_MODULE}"; then
11548         # By default we will add the -single_module flag. You can override
11549         # by either setting the environment variable LT_MULTI_MODULE
11550         # non-empty at configure time, or by adding -multi_module to the
11551         # link flags.
11552         rm -rf libconftest.dylib*
11553         echo "int foo(void){return 1;}" > conftest.c
11554         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11555 -dynamiclib -Wl,-single_module conftest.c" >&5
11556         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11557           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11558         _lt_result=$?
11559         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11560           lt_cv_apple_cc_single_mod=yes
11561         else
11562           cat conftest.err >&5
11563         fi
11564         rm -rf libconftest.dylib*
11565         rm -f conftest.*
11566       fi
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11569 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11572 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   lt_cv_ld_exported_symbols_list=no
11576       save_LDFLAGS=$LDFLAGS
11577       echo "_main" > conftest.sym
11578       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h.  */
11581
11582 int
11583 main ()
11584 {
11585
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591   lt_cv_ld_exported_symbols_list=yes
11592 else
11593   lt_cv_ld_exported_symbols_list=no
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext \
11596     conftest$ac_exeext conftest.$ac_ext
11597         LDFLAGS="$save_LDFLAGS"
11598
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11603 $as_echo_n "checking for -force_load linker flag... " >&6; }
11604 if test "${lt_cv_ld_force_load+set}" = set; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   lt_cv_ld_force_load=no
11608       cat > conftest.c << _LT_EOF
11609 int forced_loaded() { return 2;}
11610 _LT_EOF
11611       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11612       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11613       echo "$AR cru libconftest.a conftest.o" >&5
11614       $AR cru libconftest.a conftest.o 2>&5
11615       echo "$RANLIB libconftest.a" >&5
11616       $RANLIB libconftest.a 2>&5
11617       cat > conftest.c << _LT_EOF
11618 int main() { return 0;}
11619 _LT_EOF
11620       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11621       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11622       _lt_result=$?
11623       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11624         lt_cv_ld_force_load=yes
11625       else
11626         cat conftest.err >&5
11627       fi
11628         rm -f conftest.err libconftest.a conftest conftest.c
11629         rm -rf conftest.dSYM
11630
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11633 $as_echo "$lt_cv_ld_force_load" >&6; }
11634     case $host_os in
11635     rhapsody* | darwin1.[012])
11636       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11637     darwin1.*)
11638       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11639     darwin*) # darwin 5.x on
11640       # if running on 10.5 or later, the deployment target defaults
11641       # to the OS version, if on x86, and 10.4, the deployment
11642       # target defaults to 10.4. Don't you love it?
11643       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11644         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11645           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11646         10.[012]*)
11647           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648         10.*)
11649           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11650       esac
11651     ;;
11652   esac
11653     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11654       _lt_dar_single_mod='$single_module'
11655     fi
11656     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11657       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11658     else
11659       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11660     fi
11661     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11662       _lt_dsymutil='~$DSYMUTIL $lib || :'
11663     else
11664       _lt_dsymutil=
11665     fi
11666     ;;
11667   esac
11668
11669 for ac_header in dlfcn.h
11670 do :
11671   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11672 "
11673 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11674   cat >>confdefs.h <<_ACEOF
11675 #define HAVE_DLFCN_H 1
11676 _ACEOF
11677
11678 fi
11679
11680 done
11681
11682
11683
11684
11685
11686
11687 # Set options
11688 enable_win32_dll=yes
11689
11690 case $host in
11691 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11692   if test -n "$ac_tool_prefix"; then
11693   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11694 set dummy ${ac_tool_prefix}as; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_prog_AS+set}" = set; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   if test -n "$AS"; then
11701   ac_cv_prog_AS="$AS" # Let the user override the test.
11702 else
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708     for ac_exec_ext in '' $ac_executable_extensions; do
11709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710     ac_cv_prog_AS="${ac_tool_prefix}as"
11711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712     break 2
11713   fi
11714 done
11715   done
11716 IFS=$as_save_IFS
11717
11718 fi
11719 fi
11720 AS=$ac_cv_prog_AS
11721 if test -n "$AS"; then
11722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11723 $as_echo "$AS" >&6; }
11724 else
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729
11730 fi
11731 if test -z "$ac_cv_prog_AS"; then
11732   ac_ct_AS=$AS
11733   # Extract the first word of "as", so it can be a program name with args.
11734 set dummy as; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   if test -n "$ac_ct_AS"; then
11741   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11745 do
11746   IFS=$as_save_IFS
11747   test -z "$as_dir" && as_dir=.
11748     for ac_exec_ext in '' $ac_executable_extensions; do
11749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11750     ac_cv_prog_ac_ct_AS="as"
11751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752     break 2
11753   fi
11754 done
11755   done
11756 IFS=$as_save_IFS
11757
11758 fi
11759 fi
11760 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11761 if test -n "$ac_ct_AS"; then
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11763 $as_echo "$ac_ct_AS" >&6; }
11764 else
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 fi
11768
11769   if test "x$ac_ct_AS" = x; then
11770     AS="false"
11771   else
11772     case $cross_compiling:$ac_tool_warned in
11773 yes:)
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11776 ac_tool_warned=yes ;;
11777 esac
11778     AS=$ac_ct_AS
11779   fi
11780 else
11781   AS="$ac_cv_prog_AS"
11782 fi
11783
11784   if test -n "$ac_tool_prefix"; then
11785   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11786 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   if test -n "$DLLTOOL"; then
11793   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11794 else
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11797 do
11798   IFS=$as_save_IFS
11799   test -z "$as_dir" && as_dir=.
11800     for ac_exec_ext in '' $ac_executable_extensions; do
11801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804     break 2
11805   fi
11806 done
11807   done
11808 IFS=$as_save_IFS
11809
11810 fi
11811 fi
11812 DLLTOOL=$ac_cv_prog_DLLTOOL
11813 if test -n "$DLLTOOL"; then
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11815 $as_echo "$DLLTOOL" >&6; }
11816 else
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11819 fi
11820
11821
11822 fi
11823 if test -z "$ac_cv_prog_DLLTOOL"; then
11824   ac_ct_DLLTOOL=$DLLTOOL
11825   # Extract the first word of "dlltool", so it can be a program name with args.
11826 set dummy dlltool; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832   if test -n "$ac_ct_DLLTOOL"; then
11833   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11834 else
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838   IFS=$as_save_IFS
11839   test -z "$as_dir" && as_dir=.
11840     for ac_exec_ext in '' $ac_executable_extensions; do
11841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844     break 2
11845   fi
11846 done
11847   done
11848 IFS=$as_save_IFS
11849
11850 fi
11851 fi
11852 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11853 if test -n "$ac_ct_DLLTOOL"; then
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11855 $as_echo "$ac_ct_DLLTOOL" >&6; }
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861   if test "x$ac_ct_DLLTOOL" = x; then
11862     DLLTOOL="false"
11863   else
11864     case $cross_compiling:$ac_tool_warned in
11865 yes:)
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11868 ac_tool_warned=yes ;;
11869 esac
11870     DLLTOOL=$ac_ct_DLLTOOL
11871   fi
11872 else
11873   DLLTOOL="$ac_cv_prog_DLLTOOL"
11874 fi
11875
11876   if test -n "$ac_tool_prefix"; then
11877   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   if test -n "$OBJDUMP"; then
11885   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890   IFS=$as_save_IFS
11891   test -z "$as_dir" && as_dir=.
11892     for ac_exec_ext in '' $ac_executable_extensions; do
11893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896     break 2
11897   fi
11898 done
11899   done
11900 IFS=$as_save_IFS
11901
11902 fi
11903 fi
11904 OBJDUMP=$ac_cv_prog_OBJDUMP
11905 if test -n "$OBJDUMP"; then
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11907 $as_echo "$OBJDUMP" >&6; }
11908 else
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912
11913
11914 fi
11915 if test -z "$ac_cv_prog_OBJDUMP"; then
11916   ac_ct_OBJDUMP=$OBJDUMP
11917   # Extract the first word of "objdump", so it can be a program name with args.
11918 set dummy objdump; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924   if test -n "$ac_ct_OBJDUMP"; then
11925   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932     for ac_exec_ext in '' $ac_executable_extensions; do
11933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939   done
11940 IFS=$as_save_IFS
11941
11942 fi
11943 fi
11944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11945 if test -n "$ac_ct_OBJDUMP"; then
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11947 $as_echo "$ac_ct_OBJDUMP" >&6; }
11948 else
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952
11953   if test "x$ac_ct_OBJDUMP" = x; then
11954     OBJDUMP="false"
11955   else
11956     case $cross_compiling:$ac_tool_warned in
11957 yes:)
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11960 ac_tool_warned=yes ;;
11961 esac
11962     OBJDUMP=$ac_ct_OBJDUMP
11963   fi
11964 else
11965   OBJDUMP="$ac_cv_prog_OBJDUMP"
11966 fi
11967
11968   ;;
11969 esac
11970
11971 test -z "$AS" && AS=as
11972
11973
11974
11975
11976
11977 test -z "$DLLTOOL" && DLLTOOL=dlltool
11978
11979
11980
11981
11982
11983 test -z "$OBJDUMP" && OBJDUMP=objdump
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993             # Check whether --enable-shared was given.
11994 if test "${enable_shared+set}" = set; then :
11995   enableval=$enable_shared; p=${PACKAGE-default}
11996     case $enableval in
11997     yes) enable_shared=yes ;;
11998     no) enable_shared=no ;;
11999     *)
12000       enable_shared=no
12001       # Look at the argument we got.  We use all the common list separators.
12002       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12003       for pkg in $enableval; do
12004         IFS="$lt_save_ifs"
12005         if test "X$pkg" = "X$p"; then
12006           enable_shared=yes
12007         fi
12008       done
12009       IFS="$lt_save_ifs"
12010       ;;
12011     esac
12012 else
12013   enable_shared=yes
12014 fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024   # Check whether --enable-static was given.
12025 if test "${enable_static+set}" = set; then :
12026   enableval=$enable_static; p=${PACKAGE-default}
12027     case $enableval in
12028     yes) enable_static=yes ;;
12029     no) enable_static=no ;;
12030     *)
12031      enable_static=no
12032       # Look at the argument we got.  We use all the common list separators.
12033       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12034       for pkg in $enableval; do
12035         IFS="$lt_save_ifs"
12036         if test "X$pkg" = "X$p"; then
12037           enable_static=yes
12038         fi
12039       done
12040       IFS="$lt_save_ifs"
12041       ;;
12042     esac
12043 else
12044   enable_static=yes
12045 fi
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 # Check whether --with-pic was given.
12057 if test "${with_pic+set}" = set; then :
12058   withval=$with_pic; pic_mode="$withval"
12059 else
12060   pic_mode=default
12061 fi
12062
12063
12064 test -z "$pic_mode" && pic_mode=default
12065
12066
12067
12068
12069
12070
12071
12072   # Check whether --enable-fast-install was given.
12073 if test "${enable_fast_install+set}" = set; then :
12074   enableval=$enable_fast_install; p=${PACKAGE-default}
12075     case $enableval in
12076     yes) enable_fast_install=yes ;;
12077     no) enable_fast_install=no ;;
12078     *)
12079       enable_fast_install=no
12080       # Look at the argument we got.  We use all the common list separators.
12081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12082       for pkg in $enableval; do
12083         IFS="$lt_save_ifs"
12084         if test "X$pkg" = "X$p"; then
12085           enable_fast_install=yes
12086         fi
12087       done
12088       IFS="$lt_save_ifs"
12089       ;;
12090     esac
12091 else
12092   enable_fast_install=yes
12093 fi
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105 # This can be used to rebuild libtool when needed
12106 LIBTOOL_DEPS="$ltmain"
12107
12108 # Always use our own libtool.
12109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151 if test -n "${ZSH_VERSION+set}" ; then
12152    setopt NO_GLOB_SUBST
12153 fi
12154
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12156 $as_echo_n "checking for objdir... " >&6; }
12157 if test "${lt_cv_objdir+set}" = set; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160   rm -f .libs 2>/dev/null
12161 mkdir .libs 2>/dev/null
12162 if test -d .libs; then
12163   lt_cv_objdir=.libs
12164 else
12165   # MS-DOS does not allow filenames that begin with a dot.
12166   lt_cv_objdir=_libs
12167 fi
12168 rmdir .libs 2>/dev/null
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12171 $as_echo "$lt_cv_objdir" >&6; }
12172 objdir=$lt_cv_objdir
12173
12174
12175
12176
12177
12178 cat >>confdefs.h <<_ACEOF
12179 #define LT_OBJDIR "$lt_cv_objdir/"
12180 _ACEOF
12181
12182
12183
12184
12185 case $host_os in
12186 aix3*)
12187   # AIX sometimes has problems with the GCC collect2 program.  For some
12188   # reason, if we set the COLLECT_NAMES environment variable, the problems
12189   # vanish in a puff of smoke.
12190   if test "X${COLLECT_NAMES+set}" != Xset; then
12191     COLLECT_NAMES=
12192     export COLLECT_NAMES
12193   fi
12194   ;;
12195 esac
12196
12197 # Global variables:
12198 ofile=libtool
12199 can_build_shared=yes
12200
12201 # All known linkers require a `.a' archive for static linking (except MSVC,
12202 # which needs '.lib').
12203 libext=a
12204
12205 with_gnu_ld="$lt_cv_prog_gnu_ld"
12206
12207 old_CC="$CC"
12208 old_CFLAGS="$CFLAGS"
12209
12210 # Set sane defaults for various variables
12211 test -z "$CC" && CC=cc
12212 test -z "$LTCC" && LTCC=$CC
12213 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12214 test -z "$LD" && LD=ld
12215 test -z "$ac_objext" && ac_objext=o
12216
12217 for cc_temp in $compiler""; do
12218   case $cc_temp in
12219     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12220     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12221     \-*) ;;
12222     *) break;;
12223   esac
12224 done
12225 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12226
12227
12228 # Only perform the check for file, if the check method requires it
12229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12230 case $deplibs_check_method in
12231 file_magic*)
12232   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12234 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238   case $MAGIC_CMD in
12239 [\\/*] |  ?:[\\/]*)
12240   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12241   ;;
12242 *)
12243   lt_save_MAGIC_CMD="$MAGIC_CMD"
12244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12245   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12246   for ac_dir in $ac_dummy; do
12247     IFS="$lt_save_ifs"
12248     test -z "$ac_dir" && ac_dir=.
12249     if test -f $ac_dir/${ac_tool_prefix}file; then
12250       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12251       if test -n "$file_magic_test_file"; then
12252         case $deplibs_check_method in
12253         "file_magic "*)
12254           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12257             $EGREP "$file_magic_regex" > /dev/null; then
12258             :
12259           else
12260             cat <<_LT_EOF 1>&2
12261
12262 *** Warning: the command libtool uses to detect shared libraries,
12263 *** $file_magic_cmd, produces output that libtool cannot recognize.
12264 *** The result is that libtool may fail to recognize shared libraries
12265 *** as such.  This will affect the creation of libtool libraries that
12266 *** depend on shared libraries, but programs linked with such libtool
12267 *** libraries will work regardless of this problem.  Nevertheless, you
12268 *** may want to report the problem to your system manager and/or to
12269 *** bug-libtool@gnu.org
12270
12271 _LT_EOF
12272           fi ;;
12273         esac
12274       fi
12275       break
12276     fi
12277   done
12278   IFS="$lt_save_ifs"
12279   MAGIC_CMD="$lt_save_MAGIC_CMD"
12280   ;;
12281 esac
12282 fi
12283
12284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12285 if test -n "$MAGIC_CMD"; then
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12287 $as_echo "$MAGIC_CMD" >&6; }
12288 else
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291 fi
12292
12293
12294
12295
12296
12297 if test -z "$lt_cv_path_MAGIC_CMD"; then
12298   if test -n "$ac_tool_prefix"; then
12299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12300 $as_echo_n "checking for file... " >&6; }
12301 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   case $MAGIC_CMD in
12305 [\\/*] |  ?:[\\/]*)
12306   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12307   ;;
12308 *)
12309   lt_save_MAGIC_CMD="$MAGIC_CMD"
12310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12311   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12312   for ac_dir in $ac_dummy; do
12313     IFS="$lt_save_ifs"
12314     test -z "$ac_dir" && ac_dir=.
12315     if test -f $ac_dir/file; then
12316       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12317       if test -n "$file_magic_test_file"; then
12318         case $deplibs_check_method in
12319         "file_magic "*)
12320           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12321           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12322           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12323             $EGREP "$file_magic_regex" > /dev/null; then
12324             :
12325           else
12326             cat <<_LT_EOF 1>&2
12327
12328 *** Warning: the command libtool uses to detect shared libraries,
12329 *** $file_magic_cmd, produces output that libtool cannot recognize.
12330 *** The result is that libtool may fail to recognize shared libraries
12331 *** as such.  This will affect the creation of libtool libraries that
12332 *** depend on shared libraries, but programs linked with such libtool
12333 *** libraries will work regardless of this problem.  Nevertheless, you
12334 *** may want to report the problem to your system manager and/or to
12335 *** bug-libtool@gnu.org
12336
12337 _LT_EOF
12338           fi ;;
12339         esac
12340       fi
12341       break
12342     fi
12343   done
12344   IFS="$lt_save_ifs"
12345   MAGIC_CMD="$lt_save_MAGIC_CMD"
12346   ;;
12347 esac
12348 fi
12349
12350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12351 if test -n "$MAGIC_CMD"; then
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12353 $as_echo "$MAGIC_CMD" >&6; }
12354 else
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12357 fi
12358
12359
12360   else
12361     MAGIC_CMD=:
12362   fi
12363 fi
12364
12365   fi
12366   ;;
12367 esac
12368
12369 # Use C for the default configuration in the libtool script
12370
12371 lt_save_CC="$CC"
12372 ac_ext=c
12373 ac_cpp='$CPP $CPPFLAGS'
12374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377
12378
12379 # Source file extension for C test sources.
12380 ac_ext=c
12381
12382 # Object file extension for compiled C test sources.
12383 objext=o
12384 objext=$objext
12385
12386 # Code to be used in simple compile tests
12387 lt_simple_compile_test_code="int some_variable = 0;"
12388
12389 # Code to be used in simple link tests
12390 lt_simple_link_test_code='int main(){return(0);}'
12391
12392
12393
12394
12395
12396
12397
12398 # If no C compiler was specified, use CC.
12399 LTCC=${LTCC-"$CC"}
12400
12401 # If no C compiler flags were specified, use CFLAGS.
12402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12403
12404 # Allow CC to be a program name with arguments.
12405 compiler=$CC
12406
12407 # Save the default compiler, since it gets overwritten when the other
12408 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12409 compiler_DEFAULT=$CC
12410
12411 # save warnings/boilerplate of simple test code
12412 ac_outfile=conftest.$ac_objext
12413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415 _lt_compiler_boilerplate=`cat conftest.err`
12416 $RM conftest*
12417
12418 ac_outfile=conftest.$ac_objext
12419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12421 _lt_linker_boilerplate=`cat conftest.err`
12422 $RM -r conftest*
12423
12424
12425 ## CAVEAT EMPTOR:
12426 ## There is no encapsulation within the following macros, do not change
12427 ## the running order or otherwise move them around unless you know exactly
12428 ## what you are doing...
12429 if test -n "$compiler"; then
12430
12431 lt_prog_compiler_no_builtin_flag=
12432
12433 if test "$GCC" = yes; then
12434   case $cc_basename in
12435   nvcc*)
12436     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12437   *)
12438     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12439   esac
12440
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446   lt_cv_prog_compiler_rtti_exceptions=no
12447    ac_outfile=conftest.$ac_objext
12448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12449    lt_compiler_flag="-fno-rtti -fno-exceptions"
12450    # Insert the option either (1) after the last *FLAGS variable, or
12451    # (2) before a word containing "conftest.", or (3) at the end.
12452    # Note that $ac_compile itself does not contain backslashes and begins
12453    # with a dollar sign (not a hyphen), so the echo should work correctly.
12454    # The option is referenced via a variable to avoid confusing sed.
12455    lt_compile=`echo "$ac_compile" | $SED \
12456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458    -e 's:$: $lt_compiler_flag:'`
12459    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12460    (eval "$lt_compile" 2>conftest.err)
12461    ac_status=$?
12462    cat conftest.err >&5
12463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464    if (exit $ac_status) && test -s "$ac_outfile"; then
12465      # The compiler can only warn and ignore the option if not recognized
12466      # So say no if there are warnings other than the usual output.
12467      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470        lt_cv_prog_compiler_rtti_exceptions=yes
12471      fi
12472    fi
12473    $RM conftest*
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12478
12479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12480     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12481 else
12482     :
12483 fi
12484
12485 fi
12486
12487
12488
12489
12490
12491
12492   lt_prog_compiler_wl=
12493 lt_prog_compiler_pic=
12494 lt_prog_compiler_static=
12495
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12497 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12498
12499   if test "$GCC" = yes; then
12500     lt_prog_compiler_wl='-Wl,'
12501     lt_prog_compiler_static='-static'
12502
12503     case $host_os in
12504       aix*)
12505       # All AIX code is PIC.
12506       if test "$host_cpu" = ia64; then
12507         # AIX 5 now supports IA64 processor
12508         lt_prog_compiler_static='-Bstatic'
12509       fi
12510       ;;
12511
12512     amigaos*)
12513       case $host_cpu in
12514       powerpc)
12515             # see comment about AmigaOS4 .so support
12516             lt_prog_compiler_pic='-fPIC'
12517         ;;
12518       m68k)
12519             # FIXME: we need at least 68020 code to build shared libraries, but
12520             # adding the `-m68020' flag to GCC prevents building anything better,
12521             # like `-m68040'.
12522             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12523         ;;
12524       esac
12525       ;;
12526
12527     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12528       # PIC is the default for these OSes.
12529       ;;
12530
12531     mingw* | cygwin* | pw32* | os2* | cegcc*)
12532       # This hack is so that the source file can tell whether it is being
12533       # built for inclusion in a dll (and should export symbols for example).
12534       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12535       # (--disable-auto-import) libraries
12536       lt_prog_compiler_pic='-DDLL_EXPORT'
12537       ;;
12538
12539     darwin* | rhapsody*)
12540       # PIC is the default on this platform
12541       # Common symbols not allowed in MH_DYLIB files
12542       lt_prog_compiler_pic='-fno-common'
12543       ;;
12544
12545     haiku*)
12546       # PIC is the default for Haiku.
12547       # The "-static" flag exists, but is broken.
12548       lt_prog_compiler_static=
12549       ;;
12550
12551     hpux*)
12552       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12553       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12554       # sets the default TLS model and affects inlining.
12555       case $host_cpu in
12556       hppa*64*)
12557         # +Z the default
12558         ;;
12559       *)
12560         lt_prog_compiler_pic='-fPIC'
12561         ;;
12562       esac
12563       ;;
12564
12565     interix[3-9]*)
12566       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12567       # Instead, we relocate shared libraries at runtime.
12568       ;;
12569
12570     msdosdjgpp*)
12571       # Just because we use GCC doesn't mean we suddenly get shared libraries
12572       # on systems that don't support them.
12573       lt_prog_compiler_can_build_shared=no
12574       enable_shared=no
12575       ;;
12576
12577     *nto* | *qnx*)
12578       # QNX uses GNU C++, but need to define -shared option too, otherwise
12579       # it will coredump.
12580       lt_prog_compiler_pic='-fPIC -shared'
12581       ;;
12582
12583     sysv4*MP*)
12584       if test -d /usr/nec; then
12585         lt_prog_compiler_pic=-Kconform_pic
12586       fi
12587       ;;
12588
12589     *)
12590       lt_prog_compiler_pic='-fPIC'
12591       ;;
12592     esac
12593
12594     case $cc_basename in
12595     nvcc*) # Cuda Compiler Driver 2.2
12596       lt_prog_compiler_wl='-Xlinker '
12597       lt_prog_compiler_pic='-Xcompiler -fPIC'
12598       ;;
12599     esac
12600   else
12601     # PORTME Check for flag to pass linker flags through the system compiler.
12602     case $host_os in
12603     aix*)
12604       lt_prog_compiler_wl='-Wl,'
12605       if test "$host_cpu" = ia64; then
12606         # AIX 5 now supports IA64 processor
12607         lt_prog_compiler_static='-Bstatic'
12608       else
12609         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12610       fi
12611       ;;
12612
12613     mingw* | cygwin* | pw32* | os2* | cegcc*)
12614       # This hack is so that the source file can tell whether it is being
12615       # built for inclusion in a dll (and should export symbols for example).
12616       lt_prog_compiler_pic='-DDLL_EXPORT'
12617       ;;
12618
12619     hpux9* | hpux10* | hpux11*)
12620       lt_prog_compiler_wl='-Wl,'
12621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12622       # not for PA HP-UX.
12623       case $host_cpu in
12624       hppa*64*|ia64*)
12625         # +Z the default
12626         ;;
12627       *)
12628         lt_prog_compiler_pic='+Z'
12629         ;;
12630       esac
12631       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12632       lt_prog_compiler_static='${wl}-a ${wl}archive'
12633       ;;
12634
12635     irix5* | irix6* | nonstopux*)
12636       lt_prog_compiler_wl='-Wl,'
12637       # PIC (with -KPIC) is the default.
12638       lt_prog_compiler_static='-non_shared'
12639       ;;
12640
12641     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12642       case $cc_basename in
12643       # old Intel for x86_64 which still supported -KPIC.
12644       ecc*)
12645         lt_prog_compiler_wl='-Wl,'
12646         lt_prog_compiler_pic='-KPIC'
12647         lt_prog_compiler_static='-static'
12648         ;;
12649       # icc used to be incompatible with GCC.
12650       # ICC 10 doesn't accept -KPIC any more.
12651       icc* | ifort*)
12652         lt_prog_compiler_wl='-Wl,'
12653         lt_prog_compiler_pic='-fPIC'
12654         lt_prog_compiler_static='-static'
12655         ;;
12656       # Lahey Fortran 8.1.
12657       lf95*)
12658         lt_prog_compiler_wl='-Wl,'
12659         lt_prog_compiler_pic='--shared'
12660         lt_prog_compiler_static='--static'
12661         ;;
12662       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12663         # Portland Group compilers (*not* the Pentium gcc compiler,
12664         # which looks to be a dead project)
12665         lt_prog_compiler_wl='-Wl,'
12666         lt_prog_compiler_pic='-fpic'
12667         lt_prog_compiler_static='-Bstatic'
12668         ;;
12669       ccc*)
12670         lt_prog_compiler_wl='-Wl,'
12671         # All Alpha code is PIC.
12672         lt_prog_compiler_static='-non_shared'
12673         ;;
12674       xl* | bgxl* | bgf* | mpixl*)
12675         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12676         lt_prog_compiler_wl='-Wl,'
12677         lt_prog_compiler_pic='-qpic'
12678         lt_prog_compiler_static='-qstaticlink'
12679         ;;
12680       *)
12681         case `$CC -V 2>&1 | sed 5q` in
12682         *Sun\ F* | *Sun*Fortran*)
12683           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12684           lt_prog_compiler_pic='-KPIC'
12685           lt_prog_compiler_static='-Bstatic'
12686           lt_prog_compiler_wl=''
12687           ;;
12688         *Sun\ C*)
12689           # Sun C 5.9
12690           lt_prog_compiler_pic='-KPIC'
12691           lt_prog_compiler_static='-Bstatic'
12692           lt_prog_compiler_wl='-Wl,'
12693           ;;
12694         esac
12695         ;;
12696       esac
12697       ;;
12698
12699     newsos6)
12700       lt_prog_compiler_pic='-KPIC'
12701       lt_prog_compiler_static='-Bstatic'
12702       ;;
12703
12704     *nto* | *qnx*)
12705       # QNX uses GNU C++, but need to define -shared option too, otherwise
12706       # it will coredump.
12707       lt_prog_compiler_pic='-fPIC -shared'
12708       ;;
12709
12710     osf3* | osf4* | osf5*)
12711       lt_prog_compiler_wl='-Wl,'
12712       # All OSF/1 code is PIC.
12713       lt_prog_compiler_static='-non_shared'
12714       ;;
12715
12716     rdos*)
12717       lt_prog_compiler_static='-non_shared'
12718       ;;
12719
12720     solaris*)
12721       lt_prog_compiler_pic='-KPIC'
12722       lt_prog_compiler_static='-Bstatic'
12723       case $cc_basename in
12724       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12725         lt_prog_compiler_wl='-Qoption ld ';;
12726       *)
12727         lt_prog_compiler_wl='-Wl,';;
12728       esac
12729       ;;
12730
12731     sunos4*)
12732       lt_prog_compiler_wl='-Qoption ld '
12733       lt_prog_compiler_pic='-PIC'
12734       lt_prog_compiler_static='-Bstatic'
12735       ;;
12736
12737     sysv4 | sysv4.2uw2* | sysv4.3*)
12738       lt_prog_compiler_wl='-Wl,'
12739       lt_prog_compiler_pic='-KPIC'
12740       lt_prog_compiler_static='-Bstatic'
12741       ;;
12742
12743     sysv4*MP*)
12744       if test -d /usr/nec ;then
12745         lt_prog_compiler_pic='-Kconform_pic'
12746         lt_prog_compiler_static='-Bstatic'
12747       fi
12748       ;;
12749
12750     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12751       lt_prog_compiler_wl='-Wl,'
12752       lt_prog_compiler_pic='-KPIC'
12753       lt_prog_compiler_static='-Bstatic'
12754       ;;
12755
12756     unicos*)
12757       lt_prog_compiler_wl='-Wl,'
12758       lt_prog_compiler_can_build_shared=no
12759       ;;
12760
12761     uts4*)
12762       lt_prog_compiler_pic='-pic'
12763       lt_prog_compiler_static='-Bstatic'
12764       ;;
12765
12766     *)
12767       lt_prog_compiler_can_build_shared=no
12768       ;;
12769     esac
12770   fi
12771
12772 case $host_os in
12773   # For platforms which do not support PIC, -DPIC is meaningless:
12774   *djgpp*)
12775     lt_prog_compiler_pic=
12776     ;;
12777   *)
12778     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12779     ;;
12780 esac
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12782 $as_echo "$lt_prog_compiler_pic" >&6; }
12783
12784
12785
12786
12787
12788
12789 #
12790 # Check to make sure the PIC flag actually works.
12791 #
12792 if test -n "$lt_prog_compiler_pic"; then
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12795 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12796   $as_echo_n "(cached) " >&6
12797 else
12798   lt_cv_prog_compiler_pic_works=no
12799    ac_outfile=conftest.$ac_objext
12800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12802    # Insert the option either (1) after the last *FLAGS variable, or
12803    # (2) before a word containing "conftest.", or (3) at the end.
12804    # Note that $ac_compile itself does not contain backslashes and begins
12805    # with a dollar sign (not a hyphen), so the echo should work correctly.
12806    # The option is referenced via a variable to avoid confusing sed.
12807    lt_compile=`echo "$ac_compile" | $SED \
12808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810    -e 's:$: $lt_compiler_flag:'`
12811    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12812    (eval "$lt_compile" 2>conftest.err)
12813    ac_status=$?
12814    cat conftest.err >&5
12815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816    if (exit $ac_status) && test -s "$ac_outfile"; then
12817      # The compiler can only warn and ignore the option if not recognized
12818      # So say no if there are warnings other than the usual output.
12819      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12822        lt_cv_prog_compiler_pic_works=yes
12823      fi
12824    fi
12825    $RM conftest*
12826
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12830
12831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12832     case $lt_prog_compiler_pic in
12833      "" | " "*) ;;
12834      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12835      esac
12836 else
12837     lt_prog_compiler_pic=
12838      lt_prog_compiler_can_build_shared=no
12839 fi
12840
12841 fi
12842
12843
12844
12845
12846
12847
12848 #
12849 # Check to make sure the static flag actually works.
12850 #
12851 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12853 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12854 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   lt_cv_prog_compiler_static_works=no
12858    save_LDFLAGS="$LDFLAGS"
12859    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12860    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12862      # The linker can only warn and ignore the option if not recognized
12863      # So say no if there are warnings
12864      if test -s conftest.err; then
12865        # Append any errors to the config.log.
12866        cat conftest.err 1>&5
12867        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12869        if diff conftest.exp conftest.er2 >/dev/null; then
12870          lt_cv_prog_compiler_static_works=yes
12871        fi
12872      else
12873        lt_cv_prog_compiler_static_works=yes
12874      fi
12875    fi
12876    $RM -r conftest*
12877    LDFLAGS="$save_LDFLAGS"
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12881 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12882
12883 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12884     :
12885 else
12886     lt_prog_compiler_static=
12887 fi
12888
12889
12890
12891
12892
12893
12894
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12898   $as_echo_n "(cached) " >&6
12899 else
12900   lt_cv_prog_compiler_c_o=no
12901    $RM -r conftest 2>/dev/null
12902    mkdir conftest
12903    cd conftest
12904    mkdir out
12905    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907    lt_compiler_flag="-o out/conftest2.$ac_objext"
12908    # Insert the option either (1) after the last *FLAGS variable, or
12909    # (2) before a word containing "conftest.", or (3) at the end.
12910    # Note that $ac_compile itself does not contain backslashes and begins
12911    # with a dollar sign (not a hyphen), so the echo should work correctly.
12912    lt_compile=`echo "$ac_compile" | $SED \
12913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12915    -e 's:$: $lt_compiler_flag:'`
12916    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12917    (eval "$lt_compile" 2>out/conftest.err)
12918    ac_status=$?
12919    cat out/conftest.err >&5
12920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12922    then
12923      # The compiler can only warn and ignore the option if not recognized
12924      # So say no if there are warnings
12925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12926      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12927      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12928        lt_cv_prog_compiler_c_o=yes
12929      fi
12930    fi
12931    chmod u+w . 2>&5
12932    $RM conftest*
12933    # SGI C++ compiler will create directory out/ii_files/ for
12934    # template instantiation
12935    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12936    $RM out/* && rmdir out
12937    cd ..
12938    $RM -r conftest
12939    $RM conftest*
12940
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12944
12945
12946
12947
12948
12949
12950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12952 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955   lt_cv_prog_compiler_c_o=no
12956    $RM -r conftest 2>/dev/null
12957    mkdir conftest
12958    cd conftest
12959    mkdir out
12960    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961
12962    lt_compiler_flag="-o out/conftest2.$ac_objext"
12963    # Insert the option either (1) after the last *FLAGS variable, or
12964    # (2) before a word containing "conftest.", or (3) at the end.
12965    # Note that $ac_compile itself does not contain backslashes and begins
12966    # with a dollar sign (not a hyphen), so the echo should work correctly.
12967    lt_compile=`echo "$ac_compile" | $SED \
12968    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970    -e 's:$: $lt_compiler_flag:'`
12971    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12972    (eval "$lt_compile" 2>out/conftest.err)
12973    ac_status=$?
12974    cat out/conftest.err >&5
12975    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12977    then
12978      # The compiler can only warn and ignore the option if not recognized
12979      # So say no if there are warnings
12980      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12981      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12982      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12983        lt_cv_prog_compiler_c_o=yes
12984      fi
12985    fi
12986    chmod u+w . 2>&5
12987    $RM conftest*
12988    # SGI C++ compiler will create directory out/ii_files/ for
12989    # template instantiation
12990    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12991    $RM out/* && rmdir out
12992    cd ..
12993    $RM -r conftest
12994    $RM conftest*
12995
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12999
13000
13001
13002
13003 hard_links="nottested"
13004 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13005   # do not overwrite the value of need_locks provided by the user
13006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13007 $as_echo_n "checking if we can lock with hard links... " >&6; }
13008   hard_links=yes
13009   $RM conftest*
13010   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13011   touch conftest.a
13012   ln conftest.a conftest.b 2>&5 || hard_links=no
13013   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13015 $as_echo "$hard_links" >&6; }
13016   if test "$hard_links" = no; then
13017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13018 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13019     need_locks=warn
13020   fi
13021 else
13022   need_locks=no
13023 fi
13024
13025
13026
13027
13028
13029
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13031 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13032
13033   runpath_var=
13034   allow_undefined_flag=
13035   always_export_symbols=no
13036   archive_cmds=
13037   archive_expsym_cmds=
13038   compiler_needs_object=no
13039   enable_shared_with_static_runtimes=no
13040   export_dynamic_flag_spec=
13041   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13042   hardcode_automatic=no
13043   hardcode_direct=no
13044   hardcode_direct_absolute=no
13045   hardcode_libdir_flag_spec=
13046   hardcode_libdir_flag_spec_ld=
13047   hardcode_libdir_separator=
13048   hardcode_minus_L=no
13049   hardcode_shlibpath_var=unsupported
13050   inherit_rpath=no
13051   link_all_deplibs=unknown
13052   module_cmds=
13053   module_expsym_cmds=
13054   old_archive_from_new_cmds=
13055   old_archive_from_expsyms_cmds=
13056   thread_safe_flag_spec=
13057   whole_archive_flag_spec=
13058   # include_expsyms should be a list of space-separated symbols to be *always*
13059   # included in the symbol list
13060   include_expsyms=
13061   # exclude_expsyms can be an extended regexp of symbols to exclude
13062   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13063   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13064   # as well as any symbol that contains `d'.
13065   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13066   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13067   # platforms (ab)use it in PIC code, but their linkers get confused if
13068   # the symbol is explicitly referenced.  Since portable code cannot
13069   # rely on this symbol name, it's probably fine to never include it in
13070   # preloaded symbol tables.
13071   # Exclude shared library initialization/finalization symbols.
13072   extract_expsyms_cmds=
13073
13074   case $host_os in
13075   cygwin* | mingw* | pw32* | cegcc*)
13076     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13077     # When not using gcc, we currently assume that we are using
13078     # Microsoft Visual C++.
13079     if test "$GCC" != yes; then
13080       with_gnu_ld=no
13081     fi
13082     ;;
13083   interix*)
13084     # we just hope/assume this is gcc and not c89 (= MSVC++)
13085     with_gnu_ld=yes
13086     ;;
13087   openbsd*)
13088     with_gnu_ld=no
13089     ;;
13090   esac
13091
13092   ld_shlibs=yes
13093
13094   # On some targets, GNU ld is compatible enough with the native linker
13095   # that we're better off using the native interface for both.
13096   lt_use_gnu_ld_interface=no
13097   if test "$with_gnu_ld" = yes; then
13098     case $host_os in
13099       aix*)
13100         # The AIX port of GNU ld has always aspired to compatibility
13101         # with the native linker.  However, as the warning in the GNU ld
13102         # block says, versions before 2.19.5* couldn't really create working
13103         # shared libraries, regardless of the interface used.
13104         case `$LD -v 2>&1` in
13105           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13106           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13107           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13108           *)
13109             lt_use_gnu_ld_interface=yes
13110             ;;
13111         esac
13112         ;;
13113       *)
13114         lt_use_gnu_ld_interface=yes
13115         ;;
13116     esac
13117   fi
13118
13119   if test "$lt_use_gnu_ld_interface" = yes; then
13120     # If archive_cmds runs LD, not CC, wlarc should be empty
13121     wlarc='${wl}'
13122
13123     # Set some defaults for GNU ld with shared library support. These
13124     # are reset later if shared libraries are not supported. Putting them
13125     # here allows them to be overridden if necessary.
13126     runpath_var=LD_RUN_PATH
13127     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13128     export_dynamic_flag_spec='${wl}--export-dynamic'
13129     # ancient GNU ld didn't support --whole-archive et. al.
13130     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13131       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132     else
13133       whole_archive_flag_spec=
13134     fi
13135     supports_anon_versioning=no
13136     case `$LD -v 2>&1` in
13137       *GNU\ gold*) supports_anon_versioning=yes ;;
13138       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13139       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13140       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13141       *\ 2.11.*) ;; # other 2.11 versions
13142       *) supports_anon_versioning=yes ;;
13143     esac
13144
13145     # See if GNU ld supports shared libraries.
13146     case $host_os in
13147     aix[3-9]*)
13148       # On AIX/PPC, the GNU linker is very broken
13149       if test "$host_cpu" != ia64; then
13150         ld_shlibs=no
13151         cat <<_LT_EOF 1>&2
13152
13153 *** Warning: the GNU linker, at least up to release 2.19, is reported
13154 *** to be unable to reliably create shared libraries on AIX.
13155 *** Therefore, libtool is disabling shared libraries support.  If you
13156 *** really care for shared libraries, you may want to install binutils
13157 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13158 *** You will then need to restart the configuration process.
13159
13160 _LT_EOF
13161       fi
13162       ;;
13163
13164     amigaos*)
13165       case $host_cpu in
13166       powerpc)
13167             # see comment about AmigaOS4 .so support
13168             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169             archive_expsym_cmds=''
13170         ;;
13171       m68k)
13172             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)'
13173             hardcode_libdir_flag_spec='-L$libdir'
13174             hardcode_minus_L=yes
13175         ;;
13176       esac
13177       ;;
13178
13179     beos*)
13180       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181         allow_undefined_flag=unsupported
13182         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13183         # support --undefined.  This deserves some investigation.  FIXME
13184         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185       else
13186         ld_shlibs=no
13187       fi
13188       ;;
13189
13190     cygwin* | mingw* | pw32* | cegcc*)
13191       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13192       # as there is no search path for DLLs.
13193       hardcode_libdir_flag_spec='-L$libdir'
13194       export_dynamic_flag_spec='${wl}--export-all-symbols'
13195       allow_undefined_flag=unsupported
13196       always_export_symbols=no
13197       enable_shared_with_static_runtimes=yes
13198       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13199
13200       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13202         # If the export-symbols file already is a .def file (1st line
13203         # is EXPORTS), use it as is; otherwise, prepend...
13204         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13205           cp $export_symbols $output_objdir/$soname.def;
13206         else
13207           echo EXPORTS > $output_objdir/$soname.def;
13208           cat $export_symbols >> $output_objdir/$soname.def;
13209         fi~
13210         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211       else
13212         ld_shlibs=no
13213       fi
13214       ;;
13215
13216     haiku*)
13217       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218       link_all_deplibs=yes
13219       ;;
13220
13221     interix[3-9]*)
13222       hardcode_direct=no
13223       hardcode_shlibpath_var=no
13224       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13225       export_dynamic_flag_spec='${wl}-E'
13226       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13227       # Instead, shared libraries are loaded at an image base (0x10000000 by
13228       # default) and relocated if they conflict, which is a slow very memory
13229       # consuming and fragmenting process.  To avoid this, we pick a random,
13230       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13231       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13232       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13233       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'
13234       ;;
13235
13236     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13237       tmp_diet=no
13238       if test "$host_os" = linux-dietlibc; then
13239         case $cc_basename in
13240           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13241         esac
13242       fi
13243       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13244          && test "$tmp_diet" = no
13245       then
13246         tmp_addflag=
13247         tmp_sharedflag='-shared'
13248         case $cc_basename,$host_cpu in
13249         pgcc*)                          # Portland Group C compiler
13250           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'
13251           tmp_addflag=' $pic_flag'
13252           ;;
13253         pgf77* | pgf90* | pgf95* | pgfortran*)
13254                                         # Portland Group f77 and f90 compilers
13255           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'
13256           tmp_addflag=' $pic_flag -Mnomain' ;;
13257         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13258           tmp_addflag=' -i_dynamic' ;;
13259         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13260           tmp_addflag=' -i_dynamic -nofor_main' ;;
13261         ifc* | ifort*)                  # Intel Fortran compiler
13262           tmp_addflag=' -nofor_main' ;;
13263         lf95*)                          # Lahey Fortran 8.1
13264           whole_archive_flag_spec=
13265           tmp_sharedflag='--shared' ;;
13266         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13267           tmp_sharedflag='-qmkshrobj'
13268           tmp_addflag= ;;
13269         nvcc*)  # Cuda Compiler Driver 2.2
13270           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'
13271           compiler_needs_object=yes
13272           ;;
13273         esac
13274         case `$CC -V 2>&1 | sed 5q` in
13275         *Sun\ C*)                       # Sun C 5.9
13276           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'
13277           compiler_needs_object=yes
13278           tmp_sharedflag='-G' ;;
13279         *Sun\ F*)                       # Sun Fortran 8.3
13280           tmp_sharedflag='-G' ;;
13281         esac
13282         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283
13284         if test "x$supports_anon_versioning" = xyes; then
13285           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13286             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13287             echo "local: *; };" >> $output_objdir/$libname.ver~
13288             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13289         fi
13290
13291         case $cc_basename in
13292         xlf* | bgf* | bgxlf* | mpixlf*)
13293           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13294           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13295           hardcode_libdir_flag_spec=
13296           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13297           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13298           if test "x$supports_anon_versioning" = xyes; then
13299             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13300               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301               echo "local: *; };" >> $output_objdir/$libname.ver~
13302               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13303           fi
13304           ;;
13305         esac
13306       else
13307         ld_shlibs=no
13308       fi
13309       ;;
13310
13311     netbsd*)
13312       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13313         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13314         wlarc=
13315       else
13316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318       fi
13319       ;;
13320
13321     solaris*)
13322       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13323         ld_shlibs=no
13324         cat <<_LT_EOF 1>&2
13325
13326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13327 *** create shared libraries on Solaris systems.  Therefore, libtool
13328 *** is disabling shared libraries support.  We urge you to upgrade GNU
13329 *** binutils to release 2.9.1 or newer.  Another option is to modify
13330 *** your PATH or compiler configuration so that the native linker is
13331 *** used, and then restart.
13332
13333 _LT_EOF
13334       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13337       else
13338         ld_shlibs=no
13339       fi
13340       ;;
13341
13342     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13343       case `$LD -v 2>&1` in
13344         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13345         ld_shlibs=no
13346         cat <<_LT_EOF 1>&2
13347
13348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13349 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13350 *** is disabling shared libraries support.  We urge you to upgrade GNU
13351 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13352 *** your PATH or compiler configuration so that the native linker is
13353 *** used, and then restart.
13354
13355 _LT_EOF
13356         ;;
13357         *)
13358           # For security reasons, it is highly recommended that you always
13359           # use absolute paths for naming shared libraries, and exclude the
13360           # DT_RUNPATH tag from executables and libraries.  But doing so
13361           # requires that you compile everything twice, which is a pain.
13362           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13363             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13364             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366           else
13367             ld_shlibs=no
13368           fi
13369         ;;
13370       esac
13371       ;;
13372
13373     sunos4*)
13374       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375       wlarc=
13376       hardcode_direct=yes
13377       hardcode_shlibpath_var=no
13378       ;;
13379
13380     *)
13381       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13382         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384       else
13385         ld_shlibs=no
13386       fi
13387       ;;
13388     esac
13389
13390     if test "$ld_shlibs" = no; then
13391       runpath_var=
13392       hardcode_libdir_flag_spec=
13393       export_dynamic_flag_spec=
13394       whole_archive_flag_spec=
13395     fi
13396   else
13397     # PORTME fill in a description of your system's linker (not GNU ld)
13398     case $host_os in
13399     aix3*)
13400       allow_undefined_flag=unsupported
13401       always_export_symbols=yes
13402       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'
13403       # Note: this linker hardcodes the directories in LIBPATH if there
13404       # are no directories specified by -L.
13405       hardcode_minus_L=yes
13406       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13407         # Neither direct hardcoding nor static linking is supported with a
13408         # broken collect2.
13409         hardcode_direct=unsupported
13410       fi
13411       ;;
13412
13413     aix[4-9]*)
13414       if test "$host_cpu" = ia64; then
13415         # On IA64, the linker does run time linking by default, so we don't
13416         # have to do anything special.
13417         aix_use_runtimelinking=no
13418         exp_sym_flag='-Bexport'
13419         no_entry_flag=""
13420       else
13421         # If we're using GNU nm, then we don't want the "-C" option.
13422         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13423         # Also, AIX nm treats weak defined symbols like other global
13424         # defined symbols, whereas GNU nm marks them as "W".
13425         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13426           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13427         else
13428           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13429         fi
13430         aix_use_runtimelinking=no
13431
13432         # Test if we are trying to use run time linking or normal
13433         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13434         # need to do runtime linking.
13435         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13436           for ld_flag in $LDFLAGS; do
13437           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13438             aix_use_runtimelinking=yes
13439             break
13440           fi
13441           done
13442           ;;
13443         esac
13444
13445         exp_sym_flag='-bexport'
13446         no_entry_flag='-bnoentry'
13447       fi
13448
13449       # When large executables or shared objects are built, AIX ld can
13450       # have problems creating the table of contents.  If linking a library
13451       # or program results in "error TOC overflow" add -mminimal-toc to
13452       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13453       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13454
13455       archive_cmds=''
13456       hardcode_direct=yes
13457       hardcode_direct_absolute=yes
13458       hardcode_libdir_separator=':'
13459       link_all_deplibs=yes
13460       file_list_spec='${wl}-f,'
13461
13462       if test "$GCC" = yes; then
13463         case $host_os in aix4.[012]|aix4.[012].*)
13464         # We only want to do this on AIX 4.2 and lower, the check
13465         # below for broken collect2 doesn't work under 4.3+
13466           collect2name=`${CC} -print-prog-name=collect2`
13467           if test -f "$collect2name" &&
13468            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13469           then
13470           # We have reworked collect2
13471           :
13472           else
13473           # We have old collect2
13474           hardcode_direct=unsupported
13475           # It fails to find uninstalled libraries when the uninstalled
13476           # path is not listed in the libpath.  Setting hardcode_minus_L
13477           # to unsupported forces relinking
13478           hardcode_minus_L=yes
13479           hardcode_libdir_flag_spec='-L$libdir'
13480           hardcode_libdir_separator=
13481           fi
13482           ;;
13483         esac
13484         shared_flag='-shared'
13485         if test "$aix_use_runtimelinking" = yes; then
13486           shared_flag="$shared_flag "'${wl}-G'
13487         fi
13488       else
13489         # not using gcc
13490         if test "$host_cpu" = ia64; then
13491         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13492         # chokes on -Wl,-G. The following line is correct:
13493           shared_flag='-G'
13494         else
13495           if test "$aix_use_runtimelinking" = yes; then
13496             shared_flag='${wl}-G'
13497           else
13498             shared_flag='${wl}-bM:SRE'
13499           fi
13500         fi
13501       fi
13502
13503       export_dynamic_flag_spec='${wl}-bexpall'
13504       # It seems that -bexpall does not export symbols beginning with
13505       # underscore (_), so it is better to generate a list of symbols to export.
13506       always_export_symbols=yes
13507       if test "$aix_use_runtimelinking" = yes; then
13508         # Warning - without using the other runtime loading flags (-brtl),
13509         # -berok will link without error, but may produce a broken library.
13510         allow_undefined_flag='-berok'
13511         # Determine the default libpath from the value encoded in an
13512         # empty executable.
13513         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515
13516 int
13517 main ()
13518 {
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"; then :
13525
13526 lt_aix_libpath_sed='
13527     /Import File Strings/,/^$/ {
13528         /^0/ {
13529             s/^0  *\(.*\)$/\1/
13530             p
13531         }
13532     }'
13533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13534 # Check for a 64-bit object if we didn't find anything.
13535 if test -z "$aix_libpath"; then
13536   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13537 fi
13538 fi
13539 rm -f core conftest.err conftest.$ac_objext \
13540     conftest$ac_exeext conftest.$ac_ext
13541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13542
13543         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13544         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13545       else
13546         if test "$host_cpu" = ia64; then
13547           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13548           allow_undefined_flag="-z nodefs"
13549           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"
13550         else
13551          # Determine the default libpath from the value encoded in an
13552          # empty executable.
13553          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h.  */
13555
13556 int
13557 main ()
13558 {
13559
13560   ;
13561   return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"; then :
13565
13566 lt_aix_libpath_sed='
13567     /Import File Strings/,/^$/ {
13568         /^0/ {
13569             s/^0  *\(.*\)$/\1/
13570             p
13571         }
13572     }'
13573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13574 # Check for a 64-bit object if we didn't find anything.
13575 if test -z "$aix_libpath"; then
13576   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13577 fi
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext \
13580     conftest$ac_exeext conftest.$ac_ext
13581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13582
13583          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13584           # Warning - without using the other run time loading flags,
13585           # -berok will link without error, but may produce a broken library.
13586           no_undefined_flag=' ${wl}-bernotok'
13587           allow_undefined_flag=' ${wl}-berok'
13588           if test "$with_gnu_ld" = yes; then
13589             # We only use this code for GNU lds that support --whole-archive.
13590             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13591           else
13592             # Exported symbols can be pulled into shared objects from archives
13593             whole_archive_flag_spec='$convenience'
13594           fi
13595           archive_cmds_need_lc=yes
13596           # This is similar to how AIX traditionally builds its shared libraries.
13597           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13598         fi
13599       fi
13600       ;;
13601
13602     amigaos*)
13603       case $host_cpu in
13604       powerpc)
13605             # see comment about AmigaOS4 .so support
13606             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607             archive_expsym_cmds=''
13608         ;;
13609       m68k)
13610             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)'
13611             hardcode_libdir_flag_spec='-L$libdir'
13612             hardcode_minus_L=yes
13613         ;;
13614       esac
13615       ;;
13616
13617     bsdi[45]*)
13618       export_dynamic_flag_spec=-rdynamic
13619       ;;
13620
13621     cygwin* | mingw* | pw32* | cegcc*)
13622       # When not using gcc, we currently assume that we are using
13623       # Microsoft Visual C++.
13624       # hardcode_libdir_flag_spec is actually meaningless, as there is
13625       # no search path for DLLs.
13626       hardcode_libdir_flag_spec=' '
13627       allow_undefined_flag=unsupported
13628       # Tell ltmain to make .lib files, not .a files.
13629       libext=lib
13630       # Tell ltmain to make .dll files, not .so files.
13631       shrext_cmds=".dll"
13632       # FIXME: Setting linknames here is a bad hack.
13633       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13634       # The linker will automatically build a .lib file if we build a DLL.
13635       old_archive_from_new_cmds='true'
13636       # FIXME: Should let the user specify the lib program.
13637       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13638       fix_srcfile_path='`cygpath -w "$srcfile"`'
13639       enable_shared_with_static_runtimes=yes
13640       ;;
13641
13642     darwin* | rhapsody*)
13643
13644
13645   archive_cmds_need_lc=no
13646   hardcode_direct=no
13647   hardcode_automatic=yes
13648   hardcode_shlibpath_var=unsupported
13649   if test "$lt_cv_ld_force_load" = "yes"; then
13650     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\"`'
13651   else
13652     whole_archive_flag_spec=''
13653   fi
13654   link_all_deplibs=yes
13655   allow_undefined_flag="$_lt_dar_allow_undefined"
13656   case $cc_basename in
13657      ifort*) _lt_dar_can_shared=yes ;;
13658      *) _lt_dar_can_shared=$GCC ;;
13659   esac
13660   if test "$_lt_dar_can_shared" = "yes"; then
13661     output_verbose_link_cmd=func_echo_all
13662     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13663     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13664     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}"
13665     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}"
13666
13667   else
13668   ld_shlibs=no
13669   fi
13670
13671       ;;
13672
13673     dgux*)
13674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13675       hardcode_libdir_flag_spec='-L$libdir'
13676       hardcode_shlibpath_var=no
13677       ;;
13678
13679     freebsd1*)
13680       ld_shlibs=no
13681       ;;
13682
13683     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13684     # support.  Future versions do this automatically, but an explicit c++rt0.o
13685     # does not break anything, and helps significantly (at the cost of a little
13686     # extra space).
13687     freebsd2.2*)
13688       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13689       hardcode_libdir_flag_spec='-R$libdir'
13690       hardcode_direct=yes
13691       hardcode_shlibpath_var=no
13692       ;;
13693
13694     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13695     freebsd2*)
13696       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13697       hardcode_direct=yes
13698       hardcode_minus_L=yes
13699       hardcode_shlibpath_var=no
13700       ;;
13701
13702     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13703     freebsd* | dragonfly*)
13704       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13705       hardcode_libdir_flag_spec='-R$libdir'
13706       hardcode_direct=yes
13707       hardcode_shlibpath_var=no
13708       ;;
13709
13710     hpux9*)
13711       if test "$GCC" = yes; then
13712         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13713       else
13714         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13715       fi
13716       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13717       hardcode_libdir_separator=:
13718       hardcode_direct=yes
13719
13720       # hardcode_minus_L: Not really in the search PATH,
13721       # but as the default location of the library.
13722       hardcode_minus_L=yes
13723       export_dynamic_flag_spec='${wl}-E'
13724       ;;
13725
13726     hpux10*)
13727       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13728         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13729       else
13730         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13731       fi
13732       if test "$with_gnu_ld" = no; then
13733         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13734         hardcode_libdir_flag_spec_ld='+b $libdir'
13735         hardcode_libdir_separator=:
13736         hardcode_direct=yes
13737         hardcode_direct_absolute=yes
13738         export_dynamic_flag_spec='${wl}-E'
13739         # hardcode_minus_L: Not really in the search PATH,
13740         # but as the default location of the library.
13741         hardcode_minus_L=yes
13742       fi
13743       ;;
13744
13745     hpux11*)
13746       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13747         case $host_cpu in
13748         hppa*64*)
13749           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13750           ;;
13751         ia64*)
13752           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13753           ;;
13754         *)
13755           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13756           ;;
13757         esac
13758       else
13759         case $host_cpu in
13760         hppa*64*)
13761           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762           ;;
13763         ia64*)
13764           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13765           ;;
13766         *)
13767
13768           # Older versions of the 11.00 compiler do not understand -b yet
13769           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13770           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13771 $as_echo_n "checking if $CC understands -b... " >&6; }
13772 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13773   $as_echo_n "(cached) " >&6
13774 else
13775   lt_cv_prog_compiler__b=no
13776    save_LDFLAGS="$LDFLAGS"
13777    LDFLAGS="$LDFLAGS -b"
13778    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13779    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13780      # The linker can only warn and ignore the option if not recognized
13781      # So say no if there are warnings
13782      if test -s conftest.err; then
13783        # Append any errors to the config.log.
13784        cat conftest.err 1>&5
13785        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13786        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13787        if diff conftest.exp conftest.er2 >/dev/null; then
13788          lt_cv_prog_compiler__b=yes
13789        fi
13790      else
13791        lt_cv_prog_compiler__b=yes
13792      fi
13793    fi
13794    $RM -r conftest*
13795    LDFLAGS="$save_LDFLAGS"
13796
13797 fi
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13799 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13800
13801 if test x"$lt_cv_prog_compiler__b" = xyes; then
13802     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13803 else
13804     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13805 fi
13806
13807           ;;
13808         esac
13809       fi
13810       if test "$with_gnu_ld" = no; then
13811         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13812         hardcode_libdir_separator=:
13813
13814         case $host_cpu in
13815         hppa*64*|ia64*)
13816           hardcode_direct=no
13817           hardcode_shlibpath_var=no
13818           ;;
13819         *)
13820           hardcode_direct=yes
13821           hardcode_direct_absolute=yes
13822           export_dynamic_flag_spec='${wl}-E'
13823
13824           # hardcode_minus_L: Not really in the search PATH,
13825           # but as the default location of the library.
13826           hardcode_minus_L=yes
13827           ;;
13828         esac
13829       fi
13830       ;;
13831
13832     irix5* | irix6* | nonstopux*)
13833       if test "$GCC" = yes; then
13834         archive_cmds='$CC -shared $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'
13835         # Try to use the -exported_symbol ld option, if it does not
13836         # work, assume that -exports_file does not work either and
13837         # implicitly export all symbols.
13838         save_LDFLAGS="$LDFLAGS"
13839         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h.  */
13842 int foo(void) {}
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"; then :
13845   archive_expsym_cmds='$CC -shared $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'
13846
13847 fi
13848 rm -f core conftest.err conftest.$ac_objext \
13849     conftest$ac_exeext conftest.$ac_ext
13850         LDFLAGS="$save_LDFLAGS"
13851       else
13852         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'
13853         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'
13854       fi
13855       archive_cmds_need_lc='no'
13856       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13857       hardcode_libdir_separator=:
13858       inherit_rpath=yes
13859       link_all_deplibs=yes
13860       ;;
13861
13862     netbsd*)
13863       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13865       else
13866         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13867       fi
13868       hardcode_libdir_flag_spec='-R$libdir'
13869       hardcode_direct=yes
13870       hardcode_shlibpath_var=no
13871       ;;
13872
13873     newsos6)
13874       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875       hardcode_direct=yes
13876       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13877       hardcode_libdir_separator=:
13878       hardcode_shlibpath_var=no
13879       ;;
13880
13881     *nto* | *qnx*)
13882       ;;
13883
13884     openbsd*)
13885       if test -f /usr/libexec/ld.so; then
13886         hardcode_direct=yes
13887         hardcode_shlibpath_var=no
13888         hardcode_direct_absolute=yes
13889         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13890           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13891           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13892           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13893           export_dynamic_flag_spec='${wl}-E'
13894         else
13895           case $host_os in
13896            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898              hardcode_libdir_flag_spec='-R$libdir'
13899              ;;
13900            *)
13901              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13903              ;;
13904           esac
13905         fi
13906       else
13907         ld_shlibs=no
13908       fi
13909       ;;
13910
13911     os2*)
13912       hardcode_libdir_flag_spec='-L$libdir'
13913       hardcode_minus_L=yes
13914       allow_undefined_flag=unsupported
13915       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13916       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13917       ;;
13918
13919     osf3*)
13920       if test "$GCC" = yes; then
13921         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13922         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'
13923       else
13924         allow_undefined_flag=' -expect_unresolved \*'
13925         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'
13926       fi
13927       archive_cmds_need_lc='no'
13928       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13929       hardcode_libdir_separator=:
13930       ;;
13931
13932     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13933       if test "$GCC" = yes; then
13934         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13935         archive_cmds='$CC -shared${allow_undefined_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'
13936         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13937       else
13938         allow_undefined_flag=' -expect_unresolved \*'
13939         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'
13940         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~
13941         $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'
13942
13943         # Both c and cxx compiler support -rpath directly
13944         hardcode_libdir_flag_spec='-rpath $libdir'
13945       fi
13946       archive_cmds_need_lc='no'
13947       hardcode_libdir_separator=:
13948       ;;
13949
13950     solaris*)
13951       no_undefined_flag=' -z defs'
13952       if test "$GCC" = yes; then
13953         wlarc='${wl}'
13954         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13955         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13956           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13957       else
13958         case `$CC -V 2>&1` in
13959         *"Compilers 5.0"*)
13960           wlarc=''
13961           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13963           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13964           ;;
13965         *)
13966           wlarc='${wl}'
13967           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13968           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13969           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13970           ;;
13971         esac
13972       fi
13973       hardcode_libdir_flag_spec='-R$libdir'
13974       hardcode_shlibpath_var=no
13975       case $host_os in
13976       solaris2.[0-5] | solaris2.[0-5].*) ;;
13977       *)
13978         # The compiler driver will combine and reorder linker options,
13979         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13980         # but is careful enough not to reorder.
13981         # Supported since Solaris 2.6 (maybe 2.5.1?)
13982         if test "$GCC" = yes; then
13983           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13984         else
13985           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13986         fi
13987         ;;
13988       esac
13989       link_all_deplibs=yes
13990       ;;
13991
13992     sunos4*)
13993       if test "x$host_vendor" = xsequent; then
13994         # Use $CC to link under sequent, because it throws in some extra .o
13995         # files that make .init and .fini sections work.
13996         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13997       else
13998         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13999       fi
14000       hardcode_libdir_flag_spec='-L$libdir'
14001       hardcode_direct=yes
14002       hardcode_minus_L=yes
14003       hardcode_shlibpath_var=no
14004       ;;
14005
14006     sysv4)
14007       case $host_vendor in
14008         sni)
14009           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010           hardcode_direct=yes # is this really true???
14011         ;;
14012         siemens)
14013           ## LD is ld it makes a PLAMLIB
14014           ## CC just makes a GrossModule.
14015           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016           reload_cmds='$CC -r -o $output$reload_objs'
14017           hardcode_direct=no
14018         ;;
14019         motorola)
14020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14022         ;;
14023       esac
14024       runpath_var='LD_RUN_PATH'
14025       hardcode_shlibpath_var=no
14026       ;;
14027
14028     sysv4.3*)
14029       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030       hardcode_shlibpath_var=no
14031       export_dynamic_flag_spec='-Bexport'
14032       ;;
14033
14034     sysv4*MP*)
14035       if test -d /usr/nec; then
14036         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037         hardcode_shlibpath_var=no
14038         runpath_var=LD_RUN_PATH
14039         hardcode_runpath_var=yes
14040         ld_shlibs=yes
14041       fi
14042       ;;
14043
14044     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045       no_undefined_flag='${wl}-z,text'
14046       archive_cmds_need_lc=no
14047       hardcode_shlibpath_var=no
14048       runpath_var='LD_RUN_PATH'
14049
14050       if test "$GCC" = yes; then
14051         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14052         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053       else
14054         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056       fi
14057       ;;
14058
14059     sysv5* | sco3.2v5* | sco5v6*)
14060       # Note: We can NOT use -z defs as we might desire, because we do not
14061       # link with -lc, and that would cause any symbols used from libc to
14062       # always be unresolved, which means just about no library would
14063       # ever link correctly.  If we're not using GNU ld we use -z text
14064       # though, which does catch some bad symbols but isn't as heavy-handed
14065       # as -z defs.
14066       no_undefined_flag='${wl}-z,text'
14067       allow_undefined_flag='${wl}-z,nodefs'
14068       archive_cmds_need_lc=no
14069       hardcode_shlibpath_var=no
14070       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14071       hardcode_libdir_separator=':'
14072       link_all_deplibs=yes
14073       export_dynamic_flag_spec='${wl}-Bexport'
14074       runpath_var='LD_RUN_PATH'
14075
14076       if test "$GCC" = yes; then
14077         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14078         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079       else
14080         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082       fi
14083       ;;
14084
14085     uts4*)
14086       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087       hardcode_libdir_flag_spec='-L$libdir'
14088       hardcode_shlibpath_var=no
14089       ;;
14090
14091     *)
14092       ld_shlibs=no
14093       ;;
14094     esac
14095
14096     if test x$host_vendor = xsni; then
14097       case $host in
14098       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14099         export_dynamic_flag_spec='${wl}-Blargedynsym'
14100         ;;
14101       esac
14102     fi
14103   fi
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14106 $as_echo "$ld_shlibs" >&6; }
14107 test "$ld_shlibs" = no && can_build_shared=no
14108
14109 with_gnu_ld=$with_gnu_ld
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125 #
14126 # Do we need to explicitly link libc?
14127 #
14128 case "x$archive_cmds_need_lc" in
14129 x|xyes)
14130   # Assume -lc should be added
14131   archive_cmds_need_lc=yes
14132
14133   if test "$enable_shared" = yes && test "$GCC" = yes; then
14134     case $archive_cmds in
14135     *'~'*)
14136       # FIXME: we may have to deal with multi-command sequences.
14137       ;;
14138     '$CC '*)
14139       # Test whether the compiler implicitly links with -lc since on some
14140       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14141       # to ld, don't add -lc before -lgcc.
14142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14143 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14144 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14145   $as_echo_n "(cached) " >&6
14146 else
14147   $RM conftest*
14148         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14149
14150         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14151   (eval $ac_compile) 2>&5
14152   ac_status=$?
14153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14154   test $ac_status = 0; } 2>conftest.err; then
14155           soname=conftest
14156           lib=conftest
14157           libobjs=conftest.$ac_objext
14158           deplibs=
14159           wl=$lt_prog_compiler_wl
14160           pic_flag=$lt_prog_compiler_pic
14161           compiler_flags=-v
14162           linker_flags=-v
14163           verstring=
14164           output_objdir=.
14165           libname=conftest
14166           lt_save_allow_undefined_flag=$allow_undefined_flag
14167           allow_undefined_flag=
14168           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14169   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14170   ac_status=$?
14171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172   test $ac_status = 0; }
14173           then
14174             lt_cv_archive_cmds_need_lc=no
14175           else
14176             lt_cv_archive_cmds_need_lc=yes
14177           fi
14178           allow_undefined_flag=$lt_save_allow_undefined_flag
14179         else
14180           cat conftest.err 1>&5
14181         fi
14182         $RM conftest*
14183
14184 fi
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14186 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14187       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14188       ;;
14189     esac
14190   fi
14191   ;;
14192 esac
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14351 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14352
14353 if test "$GCC" = yes; then
14354   case $host_os in
14355     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14356     *) lt_awk_arg="/^libraries:/" ;;
14357   esac
14358   case $host_os in
14359     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14360     *) lt_sed_strip_eq="s,=/,/,g" ;;
14361   esac
14362   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14363   case $lt_search_path_spec in
14364   *\;*)
14365     # if the path contains ";" then we assume it to be the separator
14366     # otherwise default to the standard path separator (i.e. ":") - it is
14367     # assumed that no part of a normal pathname contains ";" but that should
14368     # okay in the real world where ";" in dirpaths is itself problematic.
14369     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14370     ;;
14371   *)
14372     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14373     ;;
14374   esac
14375   # Ok, now we have the path, separated by spaces, we can step through it
14376   # and add multilib dir if necessary.
14377   lt_tmp_lt_search_path_spec=
14378   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14379   for lt_sys_path in $lt_search_path_spec; do
14380     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14381       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14382     else
14383       test -d "$lt_sys_path" && \
14384         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14385     fi
14386   done
14387   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14388 BEGIN {RS=" "; FS="/|\n";} {
14389   lt_foo="";
14390   lt_count=0;
14391   for (lt_i = NF; lt_i > 0; lt_i--) {
14392     if ($lt_i != "" && $lt_i != ".") {
14393       if ($lt_i == "..") {
14394         lt_count++;
14395       } else {
14396         if (lt_count == 0) {
14397           lt_foo="/" $lt_i lt_foo;
14398         } else {
14399           lt_count--;
14400         }
14401       }
14402     }
14403   }
14404   if (lt_foo != "") { lt_freq[lt_foo]++; }
14405   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14406 }'`
14407   # AWK program above erroneously prepends '/' to C:/dos/paths
14408   # for these hosts.
14409   case $host_os in
14410     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14411       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14412   esac
14413   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14414 else
14415   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14416 fi
14417 library_names_spec=
14418 libname_spec='lib$name'
14419 soname_spec=
14420 shrext_cmds=".so"
14421 postinstall_cmds=
14422 postuninstall_cmds=
14423 finish_cmds=
14424 finish_eval=
14425 shlibpath_var=
14426 shlibpath_overrides_runpath=unknown
14427 version_type=none
14428 dynamic_linker="$host_os ld.so"
14429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14430 need_lib_prefix=unknown
14431 hardcode_into_libs=no
14432
14433 # when you set need_version to no, make sure it does not cause -set_version
14434 # flags to be left without arguments
14435 need_version=unknown
14436
14437 case $host_os in
14438 aix3*)
14439   version_type=linux
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441   shlibpath_var=LIBPATH
14442
14443   # AIX 3 has no versioning support, so we append a major version to the name.
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   ;;
14446
14447 aix[4-9]*)
14448   version_type=linux
14449   need_lib_prefix=no
14450   need_version=no
14451   hardcode_into_libs=yes
14452   if test "$host_cpu" = ia64; then
14453     # AIX 5 supports IA64
14454     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455     shlibpath_var=LD_LIBRARY_PATH
14456   else
14457     # With GCC up to 2.95.x, collect2 would create an import file
14458     # for dependence libraries.  The import file would start with
14459     # the line `#! .'.  This would cause the generated library to
14460     # depend on `.', always an invalid library.  This was fixed in
14461     # development snapshots of GCC prior to 3.0.
14462     case $host_os in
14463       aix4 | aix4.[01] | aix4.[01].*)
14464       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14465            echo ' yes '
14466            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14467         :
14468       else
14469         can_build_shared=no
14470       fi
14471       ;;
14472     esac
14473     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474     # soname into executable. Probably we can add versioning support to
14475     # collect2, so additional links can be useful in future.
14476     if test "$aix_use_runtimelinking" = yes; then
14477       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478       # instead of lib<name>.a to let people know that these are not
14479       # typical AIX shared libraries.
14480       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481     else
14482       # We preserve .a as extension for shared libraries through AIX4.2
14483       # and later when we are not doing run time linking.
14484       library_names_spec='${libname}${release}.a $libname.a'
14485       soname_spec='${libname}${release}${shared_ext}$major'
14486     fi
14487     shlibpath_var=LIBPATH
14488   fi
14489   ;;
14490
14491 amigaos*)
14492   case $host_cpu in
14493   powerpc)
14494     # Since July 2007 AmigaOS4 officially supports .so libraries.
14495     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497     ;;
14498   m68k)
14499     library_names_spec='$libname.ixlibrary $libname.a'
14500     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14501     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14502     ;;
14503   esac
14504   ;;
14505
14506 beos*)
14507   library_names_spec='${libname}${shared_ext}'
14508   dynamic_linker="$host_os ld.so"
14509   shlibpath_var=LIBRARY_PATH
14510   ;;
14511
14512 bsdi[45]*)
14513   version_type=linux
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14518   shlibpath_var=LD_LIBRARY_PATH
14519   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14520   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14521   # the default ld.so.conf also contains /usr/contrib/lib and
14522   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14523   # libtool to hard-code these into programs
14524   ;;
14525
14526 cygwin* | mingw* | pw32* | cegcc*)
14527   version_type=windows
14528   shrext_cmds=".dll"
14529   need_version=no
14530   need_lib_prefix=no
14531
14532   case $GCC,$host_os in
14533   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14534     library_names_spec='$libname.dll.a'
14535     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536     postinstall_cmds='base_file=`basename \${file}`~
14537       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538       dldir=$destdir/`dirname \$dlpath`~
14539       test -d \$dldir || mkdir -p \$dldir~
14540       $install_prog $dir/$dlname \$dldir/$dlname~
14541       chmod a+x \$dldir/$dlname~
14542       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14543         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14544       fi'
14545     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546       dlpath=$dir/\$dldll~
14547        $RM \$dlpath'
14548     shlibpath_overrides_runpath=yes
14549
14550     case $host_os in
14551     cygwin*)
14552       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14553       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14554
14555       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14556       ;;
14557     mingw* | cegcc*)
14558       # MinGW DLLs use traditional 'lib' prefix
14559       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560       ;;
14561     pw32*)
14562       # pw32 DLLs use 'pw' prefix rather than 'lib'
14563       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14564       ;;
14565     esac
14566     ;;
14567
14568   *)
14569     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14570     ;;
14571   esac
14572   dynamic_linker='Win32 ld.exe'
14573   # FIXME: first we should search . and the directory the executable is in
14574   shlibpath_var=PATH
14575   ;;
14576
14577 darwin* | rhapsody*)
14578   dynamic_linker="$host_os dyld"
14579   version_type=darwin
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14583   soname_spec='${libname}${release}${major}$shared_ext'
14584   shlibpath_overrides_runpath=yes
14585   shlibpath_var=DYLD_LIBRARY_PATH
14586   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14587
14588   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14589   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590   ;;
14591
14592 dgux*)
14593   version_type=linux
14594   need_lib_prefix=no
14595   need_version=no
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597   soname_spec='${libname}${release}${shared_ext}$major'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   ;;
14600
14601 freebsd1*)
14602   dynamic_linker=no
14603   ;;
14604
14605 freebsd* | dragonfly*)
14606   # DragonFly does not have aout.  When/if they implement a new
14607   # versioning mechanism, adjust this.
14608   if test -x /usr/bin/objformat; then
14609     objformat=`/usr/bin/objformat`
14610   else
14611     case $host_os in
14612     freebsd[123]*) objformat=aout ;;
14613     *) objformat=elf ;;
14614     esac
14615   fi
14616   version_type=freebsd-$objformat
14617   case $version_type in
14618     freebsd-elf*)
14619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14620       need_version=no
14621       need_lib_prefix=no
14622       ;;
14623     freebsd-*)
14624       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14625       need_version=yes
14626       ;;
14627   esac
14628   shlibpath_var=LD_LIBRARY_PATH
14629   case $host_os in
14630   freebsd2*)
14631     shlibpath_overrides_runpath=yes
14632     ;;
14633   freebsd3.[01]* | freebsdelf3.[01]*)
14634     shlibpath_overrides_runpath=yes
14635     hardcode_into_libs=yes
14636     ;;
14637   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14638   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14639     shlibpath_overrides_runpath=no
14640     hardcode_into_libs=yes
14641     ;;
14642   *) # from 4.6 on, and DragonFly
14643     shlibpath_overrides_runpath=yes
14644     hardcode_into_libs=yes
14645     ;;
14646   esac
14647   ;;
14648
14649 gnu*)
14650   version_type=linux
14651   need_lib_prefix=no
14652   need_version=no
14653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654   soname_spec='${libname}${release}${shared_ext}$major'
14655   shlibpath_var=LD_LIBRARY_PATH
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 haiku*)
14660   version_type=linux
14661   need_lib_prefix=no
14662   need_version=no
14663   dynamic_linker="$host_os runtime_loader"
14664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14665   soname_spec='${libname}${release}${shared_ext}$major'
14666   shlibpath_var=LIBRARY_PATH
14667   shlibpath_overrides_runpath=yes
14668   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14669   hardcode_into_libs=yes
14670   ;;
14671
14672 hpux9* | hpux10* | hpux11*)
14673   # Give a soname corresponding to the major version so that dld.sl refuses to
14674   # link against other versions.
14675   version_type=sunos
14676   need_lib_prefix=no
14677   need_version=no
14678   case $host_cpu in
14679   ia64*)
14680     shrext_cmds='.so'
14681     hardcode_into_libs=yes
14682     dynamic_linker="$host_os dld.so"
14683     shlibpath_var=LD_LIBRARY_PATH
14684     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686     soname_spec='${libname}${release}${shared_ext}$major'
14687     if test "X$HPUX_IA64_MODE" = X32; then
14688       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14689     else
14690       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14691     fi
14692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14693     ;;
14694   hppa*64*)
14695     shrext_cmds='.sl'
14696     hardcode_into_libs=yes
14697     dynamic_linker="$host_os dld.sl"
14698     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14699     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701     soname_spec='${libname}${release}${shared_ext}$major'
14702     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14704     ;;
14705   *)
14706     shrext_cmds='.sl'
14707     dynamic_linker="$host_os dld.sl"
14708     shlibpath_var=SHLIB_PATH
14709     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711     soname_spec='${libname}${release}${shared_ext}$major'
14712     ;;
14713   esac
14714   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14715   postinstall_cmds='chmod 555 $lib'
14716   # or fails outright, so override atomically:
14717   install_override_mode=555
14718   ;;
14719
14720 interix[3-9]*)
14721   version_type=linux
14722   need_lib_prefix=no
14723   need_version=no
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   shlibpath_overrides_runpath=no
14729   hardcode_into_libs=yes
14730   ;;
14731
14732 irix5* | irix6* | nonstopux*)
14733   case $host_os in
14734     nonstopux*) version_type=nonstopux ;;
14735     *)
14736         if test "$lt_cv_prog_gnu_ld" = yes; then
14737                 version_type=linux
14738         else
14739                 version_type=irix
14740         fi ;;
14741   esac
14742   need_lib_prefix=no
14743   need_version=no
14744   soname_spec='${libname}${release}${shared_ext}$major'
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14746   case $host_os in
14747   irix5* | nonstopux*)
14748     libsuff= shlibsuff=
14749     ;;
14750   *)
14751     case $LD in # libtool.m4 will add one of these switches to LD
14752     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14753       libsuff= shlibsuff= libmagic=32-bit;;
14754     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14755       libsuff=32 shlibsuff=N32 libmagic=N32;;
14756     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14757       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14758     *) libsuff= shlibsuff= libmagic=never-match;;
14759     esac
14760     ;;
14761   esac
14762   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14763   shlibpath_overrides_runpath=no
14764   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14765   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14766   hardcode_into_libs=yes
14767   ;;
14768
14769 # No shared lib support for Linux oldld, aout, or coff.
14770 linux*oldld* | linux*aout* | linux*coff*)
14771   dynamic_linker=no
14772   ;;
14773
14774 # This must be Linux ELF.
14775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14776   version_type=linux
14777   need_lib_prefix=no
14778   need_version=no
14779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   shlibpath_overrides_runpath=no
14784
14785   # Some binutils ld are patched to set DT_RUNPATH
14786   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14787   $as_echo_n "(cached) " >&6
14788 else
14789   lt_cv_shlibpath_overrides_runpath=no
14790     save_LDFLAGS=$LDFLAGS
14791     save_libdir=$libdir
14792     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14793          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14794     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h.  */
14796
14797 int
14798 main ()
14799 {
14800
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_c_try_link "$LINENO"; then :
14806   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14807   lt_cv_shlibpath_overrides_runpath=yes
14808 fi
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext \
14811     conftest$ac_exeext conftest.$ac_ext
14812     LDFLAGS=$save_LDFLAGS
14813     libdir=$save_libdir
14814
14815 fi
14816
14817   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14818
14819   # This implies no fast_install, which is unacceptable.
14820   # Some rework will be needed to allow for fast_install
14821   # before this can be enabled.
14822   hardcode_into_libs=yes
14823
14824   # Add ABI-specific directories to the system library path.
14825   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14826
14827   # Append ld.so.conf contents to the search path
14828   if test -f /etc/ld.so.conf; then
14829     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' ' '`
14830     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14831
14832   fi
14833
14834   # We used to test for /lib/ld.so.1 and disable shared libraries on
14835   # powerpc, because MkLinux only supported shared libraries with the
14836   # GNU dynamic linker.  Since this was broken with cross compilers,
14837   # most powerpc-linux boxes support dynamic linking these days and
14838   # people can always --disable-shared, the test was removed, and we
14839   # assume the GNU/Linux dynamic linker is in use.
14840   dynamic_linker='GNU/Linux ld.so'
14841   ;;
14842
14843 netbsd*)
14844   version_type=sunos
14845   need_lib_prefix=no
14846   need_version=no
14847   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850     dynamic_linker='NetBSD (a.out) ld.so'
14851   else
14852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853     soname_spec='${libname}${release}${shared_ext}$major'
14854     dynamic_linker='NetBSD ld.elf_so'
14855   fi
14856   shlibpath_var=LD_LIBRARY_PATH
14857   shlibpath_overrides_runpath=yes
14858   hardcode_into_libs=yes
14859   ;;
14860
14861 newsos6)
14862   version_type=linux
14863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   shlibpath_overrides_runpath=yes
14866   ;;
14867
14868 *nto* | *qnx*)
14869   version_type=qnx
14870   need_lib_prefix=no
14871   need_version=no
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873   soname_spec='${libname}${release}${shared_ext}$major'
14874   shlibpath_var=LD_LIBRARY_PATH
14875   shlibpath_overrides_runpath=no
14876   hardcode_into_libs=yes
14877   dynamic_linker='ldqnx.so'
14878   ;;
14879
14880 openbsd*)
14881   version_type=sunos
14882   sys_lib_dlsearch_path_spec="/usr/lib"
14883   need_lib_prefix=no
14884   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14885   case $host_os in
14886     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14887     *)                          need_version=no  ;;
14888   esac
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891   shlibpath_var=LD_LIBRARY_PATH
14892   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14893     case $host_os in
14894       openbsd2.[89] | openbsd2.[89].*)
14895         shlibpath_overrides_runpath=no
14896         ;;
14897       *)
14898         shlibpath_overrides_runpath=yes
14899         ;;
14900       esac
14901   else
14902     shlibpath_overrides_runpath=yes
14903   fi
14904   ;;
14905
14906 os2*)
14907   libname_spec='$name'
14908   shrext_cmds=".dll"
14909   need_lib_prefix=no
14910   library_names_spec='$libname${shared_ext} $libname.a'
14911   dynamic_linker='OS/2 ld.exe'
14912   shlibpath_var=LIBPATH
14913   ;;
14914
14915 osf3* | osf4* | osf5*)
14916   version_type=osf
14917   need_lib_prefix=no
14918   need_version=no
14919   soname_spec='${libname}${release}${shared_ext}$major'
14920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921   shlibpath_var=LD_LIBRARY_PATH
14922   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14923   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14924   ;;
14925
14926 rdos*)
14927   dynamic_linker=no
14928   ;;
14929
14930 solaris*)
14931   version_type=linux
14932   need_lib_prefix=no
14933   need_version=no
14934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935   soname_spec='${libname}${release}${shared_ext}$major'
14936   shlibpath_var=LD_LIBRARY_PATH
14937   shlibpath_overrides_runpath=yes
14938   hardcode_into_libs=yes
14939   # ldd complains unless libraries are executable
14940   postinstall_cmds='chmod +x $lib'
14941   ;;
14942
14943 sunos4*)
14944   version_type=sunos
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=yes
14949   if test "$with_gnu_ld" = yes; then
14950     need_lib_prefix=no
14951   fi
14952   need_version=yes
14953   ;;
14954
14955 sysv4 | sysv4.3*)
14956   version_type=linux
14957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958   soname_spec='${libname}${release}${shared_ext}$major'
14959   shlibpath_var=LD_LIBRARY_PATH
14960   case $host_vendor in
14961     sni)
14962       shlibpath_overrides_runpath=no
14963       need_lib_prefix=no
14964       runpath_var=LD_RUN_PATH
14965       ;;
14966     siemens)
14967       need_lib_prefix=no
14968       ;;
14969     motorola)
14970       need_lib_prefix=no
14971       need_version=no
14972       shlibpath_overrides_runpath=no
14973       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14974       ;;
14975   esac
14976   ;;
14977
14978 sysv4*MP*)
14979   if test -d /usr/nec ;then
14980     version_type=linux
14981     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14982     soname_spec='$libname${shared_ext}.$major'
14983     shlibpath_var=LD_LIBRARY_PATH
14984   fi
14985   ;;
14986
14987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14988   version_type=freebsd-elf
14989   need_lib_prefix=no
14990   need_version=no
14991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14992   soname_spec='${libname}${release}${shared_ext}$major'
14993   shlibpath_var=LD_LIBRARY_PATH
14994   shlibpath_overrides_runpath=yes
14995   hardcode_into_libs=yes
14996   if test "$with_gnu_ld" = yes; then
14997     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14998   else
14999     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15000     case $host_os in
15001       sco3.2v5*)
15002         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15003         ;;
15004     esac
15005   fi
15006   sys_lib_dlsearch_path_spec='/usr/lib'
15007   ;;
15008
15009 tpf*)
15010   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15011   version_type=linux
15012   need_lib_prefix=no
15013   need_version=no
15014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015   shlibpath_var=LD_LIBRARY_PATH
15016   shlibpath_overrides_runpath=no
15017   hardcode_into_libs=yes
15018   ;;
15019
15020 uts4*)
15021   version_type=linux
15022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023   soname_spec='${libname}${release}${shared_ext}$major'
15024   shlibpath_var=LD_LIBRARY_PATH
15025   ;;
15026
15027 *)
15028   dynamic_linker=no
15029   ;;
15030 esac
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15032 $as_echo "$dynamic_linker" >&6; }
15033 test "$dynamic_linker" = no && can_build_shared=no
15034
15035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036 if test "$GCC" = yes; then
15037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15038 fi
15039
15040 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15041   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15042 fi
15043 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15044   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15045 fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15139 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15140 hardcode_action=
15141 if test -n "$hardcode_libdir_flag_spec" ||
15142    test -n "$runpath_var" ||
15143    test "X$hardcode_automatic" = "Xyes" ; then
15144
15145   # We can hardcode non-existent directories.
15146   if test "$hardcode_direct" != no &&
15147      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15148      # have to relink, otherwise we might link with an installed library
15149      # when we should be linking with a yet-to-be-installed one
15150      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15151      test "$hardcode_minus_L" != no; then
15152     # Linking always hardcodes the temporary library directory.
15153     hardcode_action=relink
15154   else
15155     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15156     hardcode_action=immediate
15157   fi
15158 else
15159   # We cannot hardcode anything, or else we can only hardcode existing
15160   # directories.
15161   hardcode_action=unsupported
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15164 $as_echo "$hardcode_action" >&6; }
15165
15166 if test "$hardcode_action" = relink ||
15167    test "$inherit_rpath" = yes; then
15168   # Fast installation is not supported
15169   enable_fast_install=no
15170 elif test "$shlibpath_overrides_runpath" = yes ||
15171      test "$enable_shared" = no; then
15172   # Fast installation is not necessary
15173   enable_fast_install=needless
15174 fi
15175
15176
15177
15178
15179
15180
15181   if test "x$enable_dlopen" != xyes; then
15182   enable_dlopen=unknown
15183   enable_dlopen_self=unknown
15184   enable_dlopen_self_static=unknown
15185 else
15186   lt_cv_dlopen=no
15187   lt_cv_dlopen_libs=
15188
15189   case $host_os in
15190   beos*)
15191     lt_cv_dlopen="load_add_on"
15192     lt_cv_dlopen_libs=
15193     lt_cv_dlopen_self=yes
15194     ;;
15195
15196   mingw* | pw32* | cegcc*)
15197     lt_cv_dlopen="LoadLibrary"
15198     lt_cv_dlopen_libs=
15199     ;;
15200
15201   cygwin*)
15202     lt_cv_dlopen="dlopen"
15203     lt_cv_dlopen_libs=
15204     ;;
15205
15206   darwin*)
15207   # if libdl is installed we need to link against it
15208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   ac_check_lib_save_LIBS=$LIBS
15214 LIBS="-ldl  $LIBS"
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217
15218 /* Override any GCC internal prototype to avoid an error.
15219    Use char because int might match the return type of a GCC
15220    builtin and then its argument prototype would still apply.  */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 char dlopen ();
15225 int
15226 main ()
15227 {
15228 return dlopen ();
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 if ac_fn_c_try_link "$LINENO"; then :
15234   ac_cv_lib_dl_dlopen=yes
15235 else
15236   ac_cv_lib_dl_dlopen=no
15237 fi
15238 rm -f core conftest.err conftest.$ac_objext \
15239     conftest$ac_exeext conftest.$ac_ext
15240 LIBS=$ac_check_lib_save_LIBS
15241 fi
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15244 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15246 else
15247
15248     lt_cv_dlopen="dyld"
15249     lt_cv_dlopen_libs=
15250     lt_cv_dlopen_self=yes
15251
15252 fi
15253
15254     ;;
15255
15256   *)
15257     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15258 if test "x$ac_cv_func_shl_load" = x""yes; then :
15259   lt_cv_dlopen="shl_load"
15260 else
15261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15262 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15264   $as_echo_n "(cached) " >&6
15265 else
15266   ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-ldld  $LIBS"
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h.  */
15270
15271 /* Override any GCC internal prototype to avoid an error.
15272    Use char because int might match the return type of a GCC
15273    builtin and then its argument prototype would still apply.  */
15274 #ifdef __cplusplus
15275 extern "C"
15276 #endif
15277 char shl_load ();
15278 int
15279 main ()
15280 {
15281 return shl_load ();
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 if ac_fn_c_try_link "$LINENO"; then :
15287   ac_cv_lib_dld_shl_load=yes
15288 else
15289   ac_cv_lib_dld_shl_load=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext \
15292     conftest$ac_exeext conftest.$ac_ext
15293 LIBS=$ac_check_lib_save_LIBS
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15296 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15297 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15298   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15299 else
15300   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15301 if test "x$ac_cv_func_dlopen" = x""yes; then :
15302   lt_cv_dlopen="dlopen"
15303 else
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15307   $as_echo_n "(cached) " >&6
15308 else
15309   ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-ldl  $LIBS"
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h.  */
15313
15314 /* Override any GCC internal prototype to avoid an error.
15315    Use char because int might match the return type of a GCC
15316    builtin and then its argument prototype would still apply.  */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char dlopen ();
15321 int
15322 main ()
15323 {
15324 return dlopen ();
15325   ;
15326   return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330   ac_cv_lib_dl_dlopen=yes
15331 else
15332   ac_cv_lib_dl_dlopen=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext \
15335     conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15340 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15342 else
15343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15344 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15346   $as_echo_n "(cached) " >&6
15347 else
15348   ac_check_lib_save_LIBS=$LIBS
15349 LIBS="-lsvld  $LIBS"
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h.  */
15352
15353 /* Override any GCC internal prototype to avoid an error.
15354    Use char because int might match the return type of a GCC
15355    builtin and then its argument prototype would still apply.  */
15356 #ifdef __cplusplus
15357 extern "C"
15358 #endif
15359 char dlopen ();
15360 int
15361 main ()
15362 {
15363 return dlopen ();
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 if ac_fn_c_try_link "$LINENO"; then :
15369   ac_cv_lib_svld_dlopen=yes
15370 else
15371   ac_cv_lib_svld_dlopen=no
15372 fi
15373 rm -f core conftest.err conftest.$ac_objext \
15374     conftest$ac_exeext conftest.$ac_ext
15375 LIBS=$ac_check_lib_save_LIBS
15376 fi
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15378 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15379 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15380   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15381 else
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15383 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15385   $as_echo_n "(cached) " >&6
15386 else
15387   ac_check_lib_save_LIBS=$LIBS
15388 LIBS="-ldld  $LIBS"
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h.  */
15391
15392 /* Override any GCC internal prototype to avoid an error.
15393    Use char because int might match the return type of a GCC
15394    builtin and then its argument prototype would still apply.  */
15395 #ifdef __cplusplus
15396 extern "C"
15397 #endif
15398 char dld_link ();
15399 int
15400 main ()
15401 {
15402 return dld_link ();
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 if ac_fn_c_try_link "$LINENO"; then :
15408   ac_cv_lib_dld_dld_link=yes
15409 else
15410   ac_cv_lib_dld_dld_link=no
15411 fi
15412 rm -f core conftest.err conftest.$ac_objext \
15413     conftest$ac_exeext conftest.$ac_ext
15414 LIBS=$ac_check_lib_save_LIBS
15415 fi
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15417 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15418 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15419   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15420 fi
15421
15422
15423 fi
15424
15425
15426 fi
15427
15428
15429 fi
15430
15431
15432 fi
15433
15434
15435 fi
15436
15437     ;;
15438   esac
15439
15440   if test "x$lt_cv_dlopen" != xno; then
15441     enable_dlopen=yes
15442   else
15443     enable_dlopen=no
15444   fi
15445
15446   case $lt_cv_dlopen in
15447   dlopen)
15448     save_CPPFLAGS="$CPPFLAGS"
15449     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15450
15451     save_LDFLAGS="$LDFLAGS"
15452     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15453
15454     save_LIBS="$LIBS"
15455     LIBS="$lt_cv_dlopen_libs $LIBS"
15456
15457     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15458 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15459 if test "${lt_cv_dlopen_self+set}" = set; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462           if test "$cross_compiling" = yes; then :
15463   lt_cv_dlopen_self=cross
15464 else
15465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15466   lt_status=$lt_dlunknown
15467   cat > conftest.$ac_ext <<_LT_EOF
15468 #line $LINENO "configure"
15469 #include "confdefs.h"
15470
15471 #if HAVE_DLFCN_H
15472 #include <dlfcn.h>
15473 #endif
15474
15475 #include <stdio.h>
15476
15477 #ifdef RTLD_GLOBAL
15478 #  define LT_DLGLOBAL           RTLD_GLOBAL
15479 #else
15480 #  ifdef DL_GLOBAL
15481 #    define LT_DLGLOBAL         DL_GLOBAL
15482 #  else
15483 #    define LT_DLGLOBAL         0
15484 #  endif
15485 #endif
15486
15487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15488    find out it does not work in some platform. */
15489 #ifndef LT_DLLAZY_OR_NOW
15490 #  ifdef RTLD_LAZY
15491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15492 #  else
15493 #    ifdef DL_LAZY
15494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15495 #    else
15496 #      ifdef RTLD_NOW
15497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15498 #      else
15499 #        ifdef DL_NOW
15500 #          define LT_DLLAZY_OR_NOW      DL_NOW
15501 #        else
15502 #          define LT_DLLAZY_OR_NOW      0
15503 #        endif
15504 #      endif
15505 #    endif
15506 #  endif
15507 #endif
15508
15509 /* When -fvisbility=hidden is used, assume the code has been annotated
15510    correspondingly for the symbols needed.  */
15511 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15512 void fnord () __attribute__((visibility("default")));
15513 #endif
15514
15515 void fnord () { int i=42; }
15516 int main ()
15517 {
15518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15519   int status = $lt_dlunknown;
15520
15521   if (self)
15522     {
15523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15524       else
15525         {
15526           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15527           else puts (dlerror ());
15528         }
15529       /* dlclose (self); */
15530     }
15531   else
15532     puts (dlerror ());
15533
15534   return status;
15535 }
15536 _LT_EOF
15537   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15538   (eval $ac_link) 2>&5
15539   ac_status=$?
15540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15542     (./conftest; exit; ) >&5 2>/dev/null
15543     lt_status=$?
15544     case x$lt_status in
15545       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15546       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15547       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15548     esac
15549   else :
15550     # compilation failed
15551     lt_cv_dlopen_self=no
15552   fi
15553 fi
15554 rm -fr conftest*
15555
15556
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15559 $as_echo "$lt_cv_dlopen_self" >&6; }
15560
15561     if test "x$lt_cv_dlopen_self" = xyes; then
15562       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15565 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15566   $as_echo_n "(cached) " >&6
15567 else
15568           if test "$cross_compiling" = yes; then :
15569   lt_cv_dlopen_self_static=cross
15570 else
15571   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15572   lt_status=$lt_dlunknown
15573   cat > conftest.$ac_ext <<_LT_EOF
15574 #line $LINENO "configure"
15575 #include "confdefs.h"
15576
15577 #if HAVE_DLFCN_H
15578 #include <dlfcn.h>
15579 #endif
15580
15581 #include <stdio.h>
15582
15583 #ifdef RTLD_GLOBAL
15584 #  define LT_DLGLOBAL           RTLD_GLOBAL
15585 #else
15586 #  ifdef DL_GLOBAL
15587 #    define LT_DLGLOBAL         DL_GLOBAL
15588 #  else
15589 #    define LT_DLGLOBAL         0
15590 #  endif
15591 #endif
15592
15593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15594    find out it does not work in some platform. */
15595 #ifndef LT_DLLAZY_OR_NOW
15596 #  ifdef RTLD_LAZY
15597 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15598 #  else
15599 #    ifdef DL_LAZY
15600 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15601 #    else
15602 #      ifdef RTLD_NOW
15603 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15604 #      else
15605 #        ifdef DL_NOW
15606 #          define LT_DLLAZY_OR_NOW      DL_NOW
15607 #        else
15608 #          define LT_DLLAZY_OR_NOW      0
15609 #        endif
15610 #      endif
15611 #    endif
15612 #  endif
15613 #endif
15614
15615 /* When -fvisbility=hidden is used, assume the code has been annotated
15616    correspondingly for the symbols needed.  */
15617 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15618 void fnord () __attribute__((visibility("default")));
15619 #endif
15620
15621 void fnord () { int i=42; }
15622 int main ()
15623 {
15624   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15625   int status = $lt_dlunknown;
15626
15627   if (self)
15628     {
15629       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15630       else
15631         {
15632           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15633           else puts (dlerror ());
15634         }
15635       /* dlclose (self); */
15636     }
15637   else
15638     puts (dlerror ());
15639
15640   return status;
15641 }
15642 _LT_EOF
15643   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15644   (eval $ac_link) 2>&5
15645   ac_status=$?
15646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15648     (./conftest; exit; ) >&5 2>/dev/null
15649     lt_status=$?
15650     case x$lt_status in
15651       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15652       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15653       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15654     esac
15655   else :
15656     # compilation failed
15657     lt_cv_dlopen_self_static=no
15658   fi
15659 fi
15660 rm -fr conftest*
15661
15662
15663 fi
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15665 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15666     fi
15667
15668     CPPFLAGS="$save_CPPFLAGS"
15669     LDFLAGS="$save_LDFLAGS"
15670     LIBS="$save_LIBS"
15671     ;;
15672   esac
15673
15674   case $lt_cv_dlopen_self in
15675   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15676   *) enable_dlopen_self=unknown ;;
15677   esac
15678
15679   case $lt_cv_dlopen_self_static in
15680   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15681   *) enable_dlopen_self_static=unknown ;;
15682   esac
15683 fi
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701 striplib=
15702 old_striplib=
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15704 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15705 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15706   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15707   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15709 $as_echo "yes" >&6; }
15710 else
15711 # FIXME - insert some real tests, host_os isn't really good enough
15712   case $host_os in
15713   darwin*)
15714     if test -n "$STRIP" ; then
15715       striplib="$STRIP -x"
15716       old_striplib="$STRIP -S"
15717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719     else
15720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15722     fi
15723     ;;
15724   *)
15725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15727     ;;
15728   esac
15729 fi
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742   # Report which library types will actually be built
15743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15744 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15746 $as_echo "$can_build_shared" >&6; }
15747
15748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15749 $as_echo_n "checking whether to build shared libraries... " >&6; }
15750   test "$can_build_shared" = "no" && enable_shared=no
15751
15752   # On AIX, shared libraries and static libraries use the same namespace, and
15753   # are all built from PIC.
15754   case $host_os in
15755   aix3*)
15756     test "$enable_shared" = yes && enable_static=no
15757     if test -n "$RANLIB"; then
15758       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15759       postinstall_cmds='$RANLIB $lib'
15760     fi
15761     ;;
15762
15763   aix[4-9]*)
15764     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15765       test "$enable_shared" = yes && enable_static=no
15766     fi
15767     ;;
15768   esac
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15770 $as_echo "$enable_shared" >&6; }
15771
15772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15773 $as_echo_n "checking whether to build static libraries... " >&6; }
15774   # Make sure either enable_shared or enable_static is yes.
15775   test "$enable_shared" = yes || enable_static=yes
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15777 $as_echo "$enable_static" >&6; }
15778
15779
15780
15781
15782 fi
15783 ac_ext=c
15784 ac_cpp='$CPP $CPPFLAGS'
15785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15788
15789 CC="$lt_save_CC"
15790
15791       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15792     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15793     (test "X$CXX" != "Xg++"))) ; then
15794   ac_ext=cpp
15795 ac_cpp='$CXXCPP $CPPFLAGS'
15796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15800 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15801 if test -z "$CXXCPP"; then
15802   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15803   $as_echo_n "(cached) " >&6
15804 else
15805       # Double quotes because CXXCPP needs to be expanded
15806     for CXXCPP in "$CXX -E" "/lib/cpp"
15807     do
15808       ac_preproc_ok=false
15809 for ac_cxx_preproc_warn_flag in '' yes
15810 do
15811   # Use a header file that comes with gcc, so configuring glibc
15812   # with a fresh cross-compiler works.
15813   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15814   # <limits.h> exists even on freestanding compilers.
15815   # On the NeXT, cc -E runs the code through the compiler's parser,
15816   # not just through cpp. "Syntax error" is here to catch this case.
15817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h.  */
15819 #ifdef __STDC__
15820 # include <limits.h>
15821 #else
15822 # include <assert.h>
15823 #endif
15824                      Syntax error
15825 _ACEOF
15826 if ac_fn_cxx_try_cpp "$LINENO"; then :
15827
15828 else
15829   # Broken: fails on valid input.
15830 continue
15831 fi
15832 rm -f conftest.err conftest.$ac_ext
15833
15834   # OK, works on sane cases.  Now check whether nonexistent headers
15835   # can be detected and how.
15836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h.  */
15838 #include <ac_nonexistent.h>
15839 _ACEOF
15840 if ac_fn_cxx_try_cpp "$LINENO"; then :
15841   # Broken: success on invalid input.
15842 continue
15843 else
15844   # Passes both tests.
15845 ac_preproc_ok=:
15846 break
15847 fi
15848 rm -f conftest.err conftest.$ac_ext
15849
15850 done
15851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15852 rm -f conftest.err conftest.$ac_ext
15853 if $ac_preproc_ok; then :
15854   break
15855 fi
15856
15857     done
15858     ac_cv_prog_CXXCPP=$CXXCPP
15859
15860 fi
15861   CXXCPP=$ac_cv_prog_CXXCPP
15862 else
15863   ac_cv_prog_CXXCPP=$CXXCPP
15864 fi
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15866 $as_echo "$CXXCPP" >&6; }
15867 ac_preproc_ok=false
15868 for ac_cxx_preproc_warn_flag in '' yes
15869 do
15870   # Use a header file that comes with gcc, so configuring glibc
15871   # with a fresh cross-compiler works.
15872   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873   # <limits.h> exists even on freestanding compilers.
15874   # On the NeXT, cc -E runs the code through the compiler's parser,
15875   # not just through cpp. "Syntax error" is here to catch this case.
15876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h.  */
15878 #ifdef __STDC__
15879 # include <limits.h>
15880 #else
15881 # include <assert.h>
15882 #endif
15883                      Syntax error
15884 _ACEOF
15885 if ac_fn_cxx_try_cpp "$LINENO"; then :
15886
15887 else
15888   # Broken: fails on valid input.
15889 continue
15890 fi
15891 rm -f conftest.err conftest.$ac_ext
15892
15893   # OK, works on sane cases.  Now check whether nonexistent headers
15894   # can be detected and how.
15895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h.  */
15897 #include <ac_nonexistent.h>
15898 _ACEOF
15899 if ac_fn_cxx_try_cpp "$LINENO"; then :
15900   # Broken: success on invalid input.
15901 continue
15902 else
15903   # Passes both tests.
15904 ac_preproc_ok=:
15905 break
15906 fi
15907 rm -f conftest.err conftest.$ac_ext
15908
15909 done
15910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15911 rm -f conftest.err conftest.$ac_ext
15912 if $ac_preproc_ok; then :
15913
15914 else
15915   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15917 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15918 See \`config.log' for more details" "$LINENO" 5; }
15919 fi
15920
15921 ac_ext=c
15922 ac_cpp='$CPP $CPPFLAGS'
15923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15926
15927 else
15928   _lt_caught_CXX_error=yes
15929 fi
15930
15931 ac_ext=cpp
15932 ac_cpp='$CXXCPP $CPPFLAGS'
15933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15936
15937 archive_cmds_need_lc_CXX=no
15938 allow_undefined_flag_CXX=
15939 always_export_symbols_CXX=no
15940 archive_expsym_cmds_CXX=
15941 compiler_needs_object_CXX=no
15942 export_dynamic_flag_spec_CXX=
15943 hardcode_direct_CXX=no
15944 hardcode_direct_absolute_CXX=no
15945 hardcode_libdir_flag_spec_CXX=
15946 hardcode_libdir_flag_spec_ld_CXX=
15947 hardcode_libdir_separator_CXX=
15948 hardcode_minus_L_CXX=no
15949 hardcode_shlibpath_var_CXX=unsupported
15950 hardcode_automatic_CXX=no
15951 inherit_rpath_CXX=no
15952 module_cmds_CXX=
15953 module_expsym_cmds_CXX=
15954 link_all_deplibs_CXX=unknown
15955 old_archive_cmds_CXX=$old_archive_cmds
15956 reload_flag_CXX=$reload_flag
15957 reload_cmds_CXX=$reload_cmds
15958 no_undefined_flag_CXX=
15959 whole_archive_flag_spec_CXX=
15960 enable_shared_with_static_runtimes_CXX=no
15961
15962 # Source file extension for C++ test sources.
15963 ac_ext=cpp
15964
15965 # Object file extension for compiled C++ test sources.
15966 objext=o
15967 objext_CXX=$objext
15968
15969 # No sense in running all these tests if we already determined that
15970 # the CXX compiler isn't working.  Some variables (like enable_shared)
15971 # are currently assumed to apply to all compilers on this platform,
15972 # and will be corrupted by setting them based on a non-working compiler.
15973 if test "$_lt_caught_CXX_error" != yes; then
15974   # Code to be used in simple compile tests
15975   lt_simple_compile_test_code="int some_variable = 0;"
15976
15977   # Code to be used in simple link tests
15978   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15979
15980   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15981
15982
15983
15984
15985
15986
15987 # If no C compiler was specified, use CC.
15988 LTCC=${LTCC-"$CC"}
15989
15990 # If no C compiler flags were specified, use CFLAGS.
15991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15992
15993 # Allow CC to be a program name with arguments.
15994 compiler=$CC
15995
15996
15997   # save warnings/boilerplate of simple test code
15998   ac_outfile=conftest.$ac_objext
15999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16001 _lt_compiler_boilerplate=`cat conftest.err`
16002 $RM conftest*
16003
16004   ac_outfile=conftest.$ac_objext
16005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16007 _lt_linker_boilerplate=`cat conftest.err`
16008 $RM -r conftest*
16009
16010
16011   # Allow CC to be a program name with arguments.
16012   lt_save_CC=$CC
16013   lt_save_LD=$LD
16014   lt_save_GCC=$GCC
16015   GCC=$GXX
16016   lt_save_with_gnu_ld=$with_gnu_ld
16017   lt_save_path_LD=$lt_cv_path_LD
16018   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16019     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16020   else
16021     $as_unset lt_cv_prog_gnu_ld
16022   fi
16023   if test -n "${lt_cv_path_LDCXX+set}"; then
16024     lt_cv_path_LD=$lt_cv_path_LDCXX
16025   else
16026     $as_unset lt_cv_path_LD
16027   fi
16028   test -z "${LDCXX+set}" || LD=$LDCXX
16029   CC=${CXX-"c++"}
16030   compiler=$CC
16031   compiler_CXX=$CC
16032   for cc_temp in $compiler""; do
16033   case $cc_temp in
16034     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16036     \-*) ;;
16037     *) break;;
16038   esac
16039 done
16040 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16041
16042
16043   if test -n "$compiler"; then
16044     # We don't want -fno-exception when compiling C++ code, so set the
16045     # no_builtin_flag separately
16046     if test "$GXX" = yes; then
16047       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16048     else
16049       lt_prog_compiler_no_builtin_flag_CXX=
16050     fi
16051
16052     if test "$GXX" = yes; then
16053       # Set up default GNU C++ configuration
16054
16055
16056
16057 # Check whether --with-gnu-ld was given.
16058 if test "${with_gnu_ld+set}" = set; then :
16059   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16060 else
16061   with_gnu_ld=no
16062 fi
16063
16064 ac_prog=ld
16065 if test "$GCC" = yes; then
16066   # Check if gcc -print-prog-name=ld gives a path.
16067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16068 $as_echo_n "checking for ld used by $CC... " >&6; }
16069   case $host in
16070   *-*-mingw*)
16071     # gcc leaves a trailing carriage return which upsets mingw
16072     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16073   *)
16074     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16075   esac
16076   case $ac_prog in
16077     # Accept absolute paths.
16078     [\\/]* | ?:[\\/]*)
16079       re_direlt='/[^/][^/]*/\.\./'
16080       # Canonicalize the pathname of ld
16081       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16082       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16083         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16084       done
16085       test -z "$LD" && LD="$ac_prog"
16086       ;;
16087   "")
16088     # If it fails, then pretend we aren't using GCC.
16089     ac_prog=ld
16090     ;;
16091   *)
16092     # If it is relative, then search for the first ld in PATH.
16093     with_gnu_ld=unknown
16094     ;;
16095   esac
16096 elif test "$with_gnu_ld" = yes; then
16097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16098 $as_echo_n "checking for GNU ld... " >&6; }
16099 else
16100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16101 $as_echo_n "checking for non-GNU ld... " >&6; }
16102 fi
16103 if test "${lt_cv_path_LD+set}" = set; then :
16104   $as_echo_n "(cached) " >&6
16105 else
16106   if test -z "$LD"; then
16107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16108   for ac_dir in $PATH; do
16109     IFS="$lt_save_ifs"
16110     test -z "$ac_dir" && ac_dir=.
16111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16112       lt_cv_path_LD="$ac_dir/$ac_prog"
16113       # Check to see if the program is GNU ld.  I'd rather use --version,
16114       # but apparently some variants of GNU ld only accept -v.
16115       # Break only if it was the GNU/non-GNU ld that we prefer.
16116       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16117       *GNU* | *'with BFD'*)
16118         test "$with_gnu_ld" != no && break
16119         ;;
16120       *)
16121         test "$with_gnu_ld" != yes && break
16122         ;;
16123       esac
16124     fi
16125   done
16126   IFS="$lt_save_ifs"
16127 else
16128   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16129 fi
16130 fi
16131
16132 LD="$lt_cv_path_LD"
16133 if test -n "$LD"; then
16134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16135 $as_echo "$LD" >&6; }
16136 else
16137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16139 fi
16140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16143 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16144   $as_echo_n "(cached) " >&6
16145 else
16146   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16147 case `$LD -v 2>&1 </dev/null` in
16148 *GNU* | *'with BFD'*)
16149   lt_cv_prog_gnu_ld=yes
16150   ;;
16151 *)
16152   lt_cv_prog_gnu_ld=no
16153   ;;
16154 esac
16155 fi
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16158 with_gnu_ld=$lt_cv_prog_gnu_ld
16159
16160
16161
16162
16163
16164
16165
16166       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16167       # archiving commands below assume that GNU ld is being used.
16168       if test "$with_gnu_ld" = yes; then
16169         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16171
16172         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16173         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16174
16175         # If archive_cmds runs LD, not CC, wlarc should be empty
16176         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16177         #     investigate it a little bit more. (MM)
16178         wlarc='${wl}'
16179
16180         # ancient GNU ld didn't support --whole-archive et. al.
16181         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16182           $GREP 'no-whole-archive' > /dev/null; then
16183           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16184         else
16185           whole_archive_flag_spec_CXX=
16186         fi
16187       else
16188         with_gnu_ld=no
16189         wlarc=
16190
16191         # A generic and very simple default shared library creation
16192         # command for GNU C++ for the case where it uses the native
16193         # linker, instead of GNU ld.  If possible, this setting should
16194         # overridden to take advantage of the native linker features on
16195         # the platform it is being used on.
16196         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16197       fi
16198
16199       # Commands to make compiler produce verbose output that lists
16200       # what "hidden" libraries, object files and flags are used when
16201       # linking a shared library.
16202       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16203
16204     else
16205       GXX=no
16206       with_gnu_ld=no
16207       wlarc=
16208     fi
16209
16210     # PORTME: fill in a description of your system's C++ link characteristics
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16212 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16213     ld_shlibs_CXX=yes
16214     case $host_os in
16215       aix3*)
16216         # FIXME: insert proper C++ library support
16217         ld_shlibs_CXX=no
16218         ;;
16219       aix[4-9]*)
16220         if test "$host_cpu" = ia64; then
16221           # On IA64, the linker does run time linking by default, so we don't
16222           # have to do anything special.
16223           aix_use_runtimelinking=no
16224           exp_sym_flag='-Bexport'
16225           no_entry_flag=""
16226         else
16227           aix_use_runtimelinking=no
16228
16229           # Test if we are trying to use run time linking or normal
16230           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16231           # need to do runtime linking.
16232           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16233             for ld_flag in $LDFLAGS; do
16234               case $ld_flag in
16235               *-brtl*)
16236                 aix_use_runtimelinking=yes
16237                 break
16238                 ;;
16239               esac
16240             done
16241             ;;
16242           esac
16243
16244           exp_sym_flag='-bexport'
16245           no_entry_flag='-bnoentry'
16246         fi
16247
16248         # When large executables or shared objects are built, AIX ld can
16249         # have problems creating the table of contents.  If linking a library
16250         # or program results in "error TOC overflow" add -mminimal-toc to
16251         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16252         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16253
16254         archive_cmds_CXX=''
16255         hardcode_direct_CXX=yes
16256         hardcode_direct_absolute_CXX=yes
16257         hardcode_libdir_separator_CXX=':'
16258         link_all_deplibs_CXX=yes
16259         file_list_spec_CXX='${wl}-f,'
16260
16261         if test "$GXX" = yes; then
16262           case $host_os in aix4.[012]|aix4.[012].*)
16263           # We only want to do this on AIX 4.2 and lower, the check
16264           # below for broken collect2 doesn't work under 4.3+
16265           collect2name=`${CC} -print-prog-name=collect2`
16266           if test -f "$collect2name" &&
16267              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16268           then
16269             # We have reworked collect2
16270             :
16271           else
16272             # We have old collect2
16273             hardcode_direct_CXX=unsupported
16274             # It fails to find uninstalled libraries when the uninstalled
16275             # path is not listed in the libpath.  Setting hardcode_minus_L
16276             # to unsupported forces relinking
16277             hardcode_minus_L_CXX=yes
16278             hardcode_libdir_flag_spec_CXX='-L$libdir'
16279             hardcode_libdir_separator_CXX=
16280           fi
16281           esac
16282           shared_flag='-shared'
16283           if test "$aix_use_runtimelinking" = yes; then
16284             shared_flag="$shared_flag "'${wl}-G'
16285           fi
16286         else
16287           # not using gcc
16288           if test "$host_cpu" = ia64; then
16289           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16290           # chokes on -Wl,-G. The following line is correct:
16291           shared_flag='-G'
16292           else
16293             if test "$aix_use_runtimelinking" = yes; then
16294               shared_flag='${wl}-G'
16295             else
16296               shared_flag='${wl}-bM:SRE'
16297             fi
16298           fi
16299         fi
16300
16301         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16302         # It seems that -bexpall does not export symbols beginning with
16303         # underscore (_), so it is better to generate a list of symbols to
16304         # export.
16305         always_export_symbols_CXX=yes
16306         if test "$aix_use_runtimelinking" = yes; then
16307           # Warning - without using the other runtime loading flags (-brtl),
16308           # -berok will link without error, but may produce a broken library.
16309           allow_undefined_flag_CXX='-berok'
16310           # Determine the default libpath from the value encoded in an empty
16311           # executable.
16312           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h.  */
16314
16315 int
16316 main ()
16317 {
16318
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 if ac_fn_cxx_try_link "$LINENO"; then :
16324
16325 lt_aix_libpath_sed='
16326     /Import File Strings/,/^$/ {
16327         /^0/ {
16328             s/^0  *\(.*\)$/\1/
16329             p
16330         }
16331     }'
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16333 # Check for a 64-bit object if we didn't find anything.
16334 if test -z "$aix_libpath"; then
16335   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16336 fi
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext \
16339     conftest$ac_exeext conftest.$ac_ext
16340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16341
16342           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16343
16344           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16345         else
16346           if test "$host_cpu" = ia64; then
16347             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16348             allow_undefined_flag_CXX="-z nodefs"
16349             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"
16350           else
16351             # Determine the default libpath from the value encoded in an
16352             # empty executable.
16353             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h.  */
16355
16356 int
16357 main ()
16358 {
16359
16360   ;
16361   return 0;
16362 }
16363 _ACEOF
16364 if ac_fn_cxx_try_link "$LINENO"; then :
16365
16366 lt_aix_libpath_sed='
16367     /Import File Strings/,/^$/ {
16368         /^0/ {
16369             s/^0  *\(.*\)$/\1/
16370             p
16371         }
16372     }'
16373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16374 # Check for a 64-bit object if we didn't find anything.
16375 if test -z "$aix_libpath"; then
16376   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16377 fi
16378 fi
16379 rm -f core conftest.err conftest.$ac_objext \
16380     conftest$ac_exeext conftest.$ac_ext
16381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16382
16383             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16384             # Warning - without using the other run time loading flags,
16385             # -berok will link without error, but may produce a broken library.
16386             no_undefined_flag_CXX=' ${wl}-bernotok'
16387             allow_undefined_flag_CXX=' ${wl}-berok'
16388             if test "$with_gnu_ld" = yes; then
16389               # We only use this code for GNU lds that support --whole-archive.
16390               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16391             else
16392               # Exported symbols can be pulled into shared objects from archives
16393               whole_archive_flag_spec_CXX='$convenience'
16394             fi
16395             archive_cmds_need_lc_CXX=yes
16396             # This is similar to how AIX traditionally builds its shared
16397             # libraries.
16398             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16399           fi
16400         fi
16401         ;;
16402
16403       beos*)
16404         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16405           allow_undefined_flag_CXX=unsupported
16406           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16407           # support --undefined.  This deserves some investigation.  FIXME
16408           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409         else
16410           ld_shlibs_CXX=no
16411         fi
16412         ;;
16413
16414       chorus*)
16415         case $cc_basename in
16416           *)
16417           # FIXME: insert proper C++ library support
16418           ld_shlibs_CXX=no
16419           ;;
16420         esac
16421         ;;
16422
16423       cygwin* | mingw* | pw32* | cegcc*)
16424         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16425         # as there is no search path for DLLs.
16426         hardcode_libdir_flag_spec_CXX='-L$libdir'
16427         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16428         allow_undefined_flag_CXX=unsupported
16429         always_export_symbols_CXX=no
16430         enable_shared_with_static_runtimes_CXX=yes
16431
16432         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16433           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'
16434           # If the export-symbols file already is a .def file (1st line
16435           # is EXPORTS), use it as is; otherwise, prepend...
16436           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437             cp $export_symbols $output_objdir/$soname.def;
16438           else
16439             echo EXPORTS > $output_objdir/$soname.def;
16440             cat $export_symbols >> $output_objdir/$soname.def;
16441           fi~
16442           $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'
16443         else
16444           ld_shlibs_CXX=no
16445         fi
16446         ;;
16447       darwin* | rhapsody*)
16448
16449
16450   archive_cmds_need_lc_CXX=no
16451   hardcode_direct_CXX=no
16452   hardcode_automatic_CXX=yes
16453   hardcode_shlibpath_var_CXX=unsupported
16454   if test "$lt_cv_ld_force_load" = "yes"; then
16455     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\"`'
16456   else
16457     whole_archive_flag_spec_CXX=''
16458   fi
16459   link_all_deplibs_CXX=yes
16460   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16461   case $cc_basename in
16462      ifort*) _lt_dar_can_shared=yes ;;
16463      *) _lt_dar_can_shared=$GCC ;;
16464   esac
16465   if test "$_lt_dar_can_shared" = "yes"; then
16466     output_verbose_link_cmd=func_echo_all
16467     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}"
16468     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16469     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}"
16470     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}"
16471        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16472       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}"
16473       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}"
16474     fi
16475
16476   else
16477   ld_shlibs_CXX=no
16478   fi
16479
16480         ;;
16481
16482       dgux*)
16483         case $cc_basename in
16484           ec++*)
16485             # FIXME: insert proper C++ library support
16486             ld_shlibs_CXX=no
16487             ;;
16488           ghcx*)
16489             # Green Hills C++ Compiler
16490             # FIXME: insert proper C++ library support
16491             ld_shlibs_CXX=no
16492             ;;
16493           *)
16494             # FIXME: insert proper C++ library support
16495             ld_shlibs_CXX=no
16496             ;;
16497         esac
16498         ;;
16499
16500       freebsd[12]*)
16501         # C++ shared libraries reported to be fairly broken before
16502         # switch to ELF
16503         ld_shlibs_CXX=no
16504         ;;
16505
16506       freebsd-elf*)
16507         archive_cmds_need_lc_CXX=no
16508         ;;
16509
16510       freebsd* | dragonfly*)
16511         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16512         # conventions
16513         ld_shlibs_CXX=yes
16514         ;;
16515
16516       gnu*)
16517         ;;
16518
16519       haiku*)
16520         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521         link_all_deplibs_CXX=yes
16522         ;;
16523
16524       hpux9*)
16525         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16526         hardcode_libdir_separator_CXX=:
16527         export_dynamic_flag_spec_CXX='${wl}-E'
16528         hardcode_direct_CXX=yes
16529         hardcode_minus_L_CXX=yes # Not in the search PATH,
16530                                              # but as the default
16531                                              # location of the library.
16532
16533         case $cc_basename in
16534           CC*)
16535             # FIXME: insert proper C++ library support
16536             ld_shlibs_CXX=no
16537             ;;
16538           aCC*)
16539             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16540             # Commands to make compiler produce verbose output that lists
16541             # what "hidden" libraries, object files and flags are used when
16542             # linking a shared library.
16543             #
16544             # There doesn't appear to be a way to prevent this compiler from
16545             # explicitly linking system object files so we need to strip them
16546             # from the output so that they don't get included in the library
16547             # dependencies.
16548             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"'
16549             ;;
16550           *)
16551             if test "$GXX" = yes; then
16552               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16553             else
16554               # FIXME: insert proper C++ library support
16555               ld_shlibs_CXX=no
16556             fi
16557             ;;
16558         esac
16559         ;;
16560
16561       hpux10*|hpux11*)
16562         if test $with_gnu_ld = no; then
16563           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16564           hardcode_libdir_separator_CXX=:
16565
16566           case $host_cpu in
16567             hppa*64*|ia64*)
16568               ;;
16569             *)
16570               export_dynamic_flag_spec_CXX='${wl}-E'
16571               ;;
16572           esac
16573         fi
16574         case $host_cpu in
16575           hppa*64*|ia64*)
16576             hardcode_direct_CXX=no
16577             hardcode_shlibpath_var_CXX=no
16578             ;;
16579           *)
16580             hardcode_direct_CXX=yes
16581             hardcode_direct_absolute_CXX=yes
16582             hardcode_minus_L_CXX=yes # Not in the search PATH,
16583                                                  # but as the default
16584                                                  # location of the library.
16585             ;;
16586         esac
16587
16588         case $cc_basename in
16589           CC*)
16590             # FIXME: insert proper C++ library support
16591             ld_shlibs_CXX=no
16592             ;;
16593           aCC*)
16594             case $host_cpu in
16595               hppa*64*)
16596                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16597                 ;;
16598               ia64*)
16599                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16600                 ;;
16601               *)
16602                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16603                 ;;
16604             esac
16605             # Commands to make compiler produce verbose output that lists
16606             # what "hidden" libraries, object files and flags are used when
16607             # linking a shared library.
16608             #
16609             # There doesn't appear to be a way to prevent this compiler from
16610             # explicitly linking system object files so we need to strip them
16611             # from the output so that they don't get included in the library
16612             # dependencies.
16613             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"'
16614             ;;
16615           *)
16616             if test "$GXX" = yes; then
16617               if test $with_gnu_ld = no; then
16618                 case $host_cpu in
16619                   hppa*64*)
16620                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16621                     ;;
16622                   ia64*)
16623                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16624                     ;;
16625                   *)
16626                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16627                     ;;
16628                 esac
16629               fi
16630             else
16631               # FIXME: insert proper C++ library support
16632               ld_shlibs_CXX=no
16633             fi
16634             ;;
16635         esac
16636         ;;
16637
16638       interix[3-9]*)
16639         hardcode_direct_CXX=no
16640         hardcode_shlibpath_var_CXX=no
16641         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16642         export_dynamic_flag_spec_CXX='${wl}-E'
16643         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16644         # Instead, shared libraries are loaded at an image base (0x10000000 by
16645         # default) and relocated if they conflict, which is a slow very memory
16646         # consuming and fragmenting process.  To avoid this, we pick a random,
16647         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16648         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16649         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'
16650         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'
16651         ;;
16652       irix5* | irix6*)
16653         case $cc_basename in
16654           CC*)
16655             # SGI C++
16656             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'
16657
16658             # Archives containing C++ object files must be created using
16659             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16660             # necessary to make sure instantiated templates are included
16661             # in the archive.
16662             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16663             ;;
16664           *)
16665             if test "$GXX" = yes; then
16666               if test "$with_gnu_ld" = no; then
16667                 archive_cmds_CXX='$CC -shared -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'
16668               else
16669                 archive_cmds_CXX='$CC -shared -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'
16670               fi
16671             fi
16672             link_all_deplibs_CXX=yes
16673             ;;
16674         esac
16675         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16676         hardcode_libdir_separator_CXX=:
16677         inherit_rpath_CXX=yes
16678         ;;
16679
16680       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16681         case $cc_basename in
16682           KCC*)
16683             # Kuck and Associates, Inc. (KAI) C++ Compiler
16684
16685             # KCC will only create a shared library if the output file
16686             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16687             # to its proper name (with version) after linking.
16688             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'
16689             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'
16690             # Commands to make compiler produce verbose output that lists
16691             # what "hidden" libraries, object files and flags are used when
16692             # linking a shared library.
16693             #
16694             # There doesn't appear to be a way to prevent this compiler from
16695             # explicitly linking system object files so we need to strip them
16696             # from the output so that they don't get included in the library
16697             # dependencies.
16698             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"'
16699
16700             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16701             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16702
16703             # Archives containing C++ object files must be created using
16704             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16705             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16706             ;;
16707           icpc* | ecpc* )
16708             # Intel C++
16709             with_gnu_ld=yes
16710             # version 8.0 and above of icpc choke on multiply defined symbols
16711             # if we add $predep_objects and $postdep_objects, however 7.1 and
16712             # earlier do not add the objects themselves.
16713             case `$CC -V 2>&1` in
16714               *"Version 7."*)
16715                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16716                 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'
16717                 ;;
16718               *)  # Version 8.0 or newer
16719                 tmp_idyn=
16720                 case $host_cpu in
16721                   ia64*) tmp_idyn=' -i_dynamic';;
16722                 esac
16723                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724                 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'
16725                 ;;
16726             esac
16727             archive_cmds_need_lc_CXX=no
16728             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16729             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16730             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16731             ;;
16732           pgCC* | pgcpp*)
16733             # Portland Group C++ compiler
16734             case `$CC -V` in
16735             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16736               prelink_cmds_CXX='tpldir=Template.dir~
16737                 rm -rf $tpldir~
16738                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16739                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16740               old_archive_cmds_CXX='tpldir=Template.dir~
16741                 rm -rf $tpldir~
16742                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16743                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16744                 $RANLIB $oldlib'
16745               archive_cmds_CXX='tpldir=Template.dir~
16746                 rm -rf $tpldir~
16747                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16748                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16749               archive_expsym_cmds_CXX='tpldir=Template.dir~
16750                 rm -rf $tpldir~
16751                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16752                 $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'
16753               ;;
16754             *) # Version 6 and above use weak symbols
16755               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16756               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'
16757               ;;
16758             esac
16759
16760             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16761             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16762             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'
16763             ;;
16764           cxx*)
16765             # Compaq C++
16766             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767             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'
16768
16769             runpath_var=LD_RUN_PATH
16770             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16771             hardcode_libdir_separator_CXX=:
16772
16773             # Commands to make compiler produce verbose output that lists
16774             # what "hidden" libraries, object files and flags are used when
16775             # linking a shared library.
16776             #
16777             # There doesn't appear to be a way to prevent this compiler from
16778             # explicitly linking system object files so we need to strip them
16779             # from the output so that they don't get included in the library
16780             # dependencies.
16781             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'
16782             ;;
16783           xl* | mpixl* | bgxl*)
16784             # IBM XL 8.0 on PPC, with GNU ld
16785             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16786             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16787             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788             if test "x$supports_anon_versioning" = xyes; then
16789               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16790                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16791                 echo "local: *; };" >> $output_objdir/$libname.ver~
16792                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16793             fi
16794             ;;
16795           *)
16796             case `$CC -V 2>&1 | sed 5q` in
16797             *Sun\ C*)
16798               # Sun C++ 5.9
16799               no_undefined_flag_CXX=' -zdefs'
16800               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16801               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'
16802               hardcode_libdir_flag_spec_CXX='-R$libdir'
16803               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'
16804               compiler_needs_object_CXX=yes
16805
16806               # Not sure whether something based on
16807               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16808               # would be better.
16809               output_verbose_link_cmd='func_echo_all'
16810
16811               # Archives containing C++ object files must be created using
16812               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16813               # necessary to make sure instantiated templates are included
16814               # in the archive.
16815               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16816               ;;
16817             esac
16818             ;;
16819         esac
16820         ;;
16821
16822       lynxos*)
16823         # FIXME: insert proper C++ library support
16824         ld_shlibs_CXX=no
16825         ;;
16826
16827       m88k*)
16828         # FIXME: insert proper C++ library support
16829         ld_shlibs_CXX=no
16830         ;;
16831
16832       mvs*)
16833         case $cc_basename in
16834           cxx*)
16835             # FIXME: insert proper C++ library support
16836             ld_shlibs_CXX=no
16837             ;;
16838           *)
16839             # FIXME: insert proper C++ library support
16840             ld_shlibs_CXX=no
16841             ;;
16842         esac
16843         ;;
16844
16845       netbsd*)
16846         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16847           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16848           wlarc=
16849           hardcode_libdir_flag_spec_CXX='-R$libdir'
16850           hardcode_direct_CXX=yes
16851           hardcode_shlibpath_var_CXX=no
16852         fi
16853         # Workaround some broken pre-1.5 toolchains
16854         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16855         ;;
16856
16857       *nto* | *qnx*)
16858         ld_shlibs_CXX=yes
16859         ;;
16860
16861       openbsd2*)
16862         # C++ shared libraries are fairly broken
16863         ld_shlibs_CXX=no
16864         ;;
16865
16866       openbsd*)
16867         if test -f /usr/libexec/ld.so; then
16868           hardcode_direct_CXX=yes
16869           hardcode_shlibpath_var_CXX=no
16870           hardcode_direct_absolute_CXX=yes
16871           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16872           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16873           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16874             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16875             export_dynamic_flag_spec_CXX='${wl}-E'
16876             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16877           fi
16878           output_verbose_link_cmd=func_echo_all
16879         else
16880           ld_shlibs_CXX=no
16881         fi
16882         ;;
16883
16884       osf3* | osf4* | osf5*)
16885         case $cc_basename in
16886           KCC*)
16887             # Kuck and Associates, Inc. (KAI) C++ Compiler
16888
16889             # KCC will only create a shared library if the output file
16890             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16891             # to its proper name (with version) after linking.
16892             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'
16893
16894             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16895             hardcode_libdir_separator_CXX=:
16896
16897             # Archives containing C++ object files must be created using
16898             # the KAI C++ compiler.
16899             case $host in
16900               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16901               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16902             esac
16903             ;;
16904           RCC*)
16905             # Rational C++ 2.4.1
16906             # FIXME: insert proper C++ library support
16907             ld_shlibs_CXX=no
16908             ;;
16909           cxx*)
16910             case $host in
16911               osf3*)
16912                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16913                 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'
16914                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16915                 ;;
16916               *)
16917                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16918                 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'
16919                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16920                   echo "-hidden">> $lib.exp~
16921                   $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~
16922                   $RM $lib.exp'
16923                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16924                 ;;
16925             esac
16926
16927             hardcode_libdir_separator_CXX=:
16928
16929             # Commands to make compiler produce verbose output that lists
16930             # what "hidden" libraries, object files and flags are used when
16931             # linking a shared library.
16932             #
16933             # There doesn't appear to be a way to prevent this compiler from
16934             # explicitly linking system object files so we need to strip them
16935             # from the output so that they don't get included in the library
16936             # dependencies.
16937             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"'
16938             ;;
16939           *)
16940             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16941               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16942               case $host in
16943                 osf3*)
16944                   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'
16945                   ;;
16946                 *)
16947                   archive_cmds_CXX='$CC -shared -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'
16948                   ;;
16949               esac
16950
16951               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16952               hardcode_libdir_separator_CXX=:
16953
16954               # Commands to make compiler produce verbose output that lists
16955               # what "hidden" libraries, object files and flags are used when
16956               # linking a shared library.
16957               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16958
16959             else
16960               # FIXME: insert proper C++ library support
16961               ld_shlibs_CXX=no
16962             fi
16963             ;;
16964         esac
16965         ;;
16966
16967       psos*)
16968         # FIXME: insert proper C++ library support
16969         ld_shlibs_CXX=no
16970         ;;
16971
16972       sunos4*)
16973         case $cc_basename in
16974           CC*)
16975             # Sun C++ 4.x
16976             # FIXME: insert proper C++ library support
16977             ld_shlibs_CXX=no
16978             ;;
16979           lcc*)
16980             # Lucid
16981             # FIXME: insert proper C++ library support
16982             ld_shlibs_CXX=no
16983             ;;
16984           *)
16985             # FIXME: insert proper C++ library support
16986             ld_shlibs_CXX=no
16987             ;;
16988         esac
16989         ;;
16990
16991       solaris*)
16992         case $cc_basename in
16993           CC* | sunCC*)
16994             # Sun C++ 4.2, 5.x and Centerline C++
16995             archive_cmds_need_lc_CXX=yes
16996             no_undefined_flag_CXX=' -zdefs'
16997             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16998             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16999               $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'
17000
17001             hardcode_libdir_flag_spec_CXX='-R$libdir'
17002             hardcode_shlibpath_var_CXX=no
17003             case $host_os in
17004               solaris2.[0-5] | solaris2.[0-5].*) ;;
17005               *)
17006                 # The compiler driver will combine and reorder linker options,
17007                 # but understands `-z linker_flag'.
17008                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17009                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17010                 ;;
17011             esac
17012             link_all_deplibs_CXX=yes
17013
17014             output_verbose_link_cmd='func_echo_all'
17015
17016             # Archives containing C++ object files must be created using
17017             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17018             # necessary to make sure instantiated templates are included
17019             # in the archive.
17020             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17021             ;;
17022           gcx*)
17023             # Green Hills C++ Compiler
17024             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17025
17026             # The C++ compiler must be used to create the archive.
17027             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17028             ;;
17029           *)
17030             # GNU C++ compiler with Solaris linker
17031             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17032               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17033               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17034                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17035                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17036                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17037
17038                 # Commands to make compiler produce verbose output that lists
17039                 # what "hidden" libraries, object files and flags are used when
17040                 # linking a shared library.
17041                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17042               else
17043                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17044                 # platform.
17045                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17046                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17047                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17048
17049                 # Commands to make compiler produce verbose output that lists
17050                 # what "hidden" libraries, object files and flags are used when
17051                 # linking a shared library.
17052                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17053               fi
17054
17055               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17056               case $host_os in
17057                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17058                 *)
17059                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17060                   ;;
17061               esac
17062             fi
17063             ;;
17064         esac
17065         ;;
17066
17067     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17068       no_undefined_flag_CXX='${wl}-z,text'
17069       archive_cmds_need_lc_CXX=no
17070       hardcode_shlibpath_var_CXX=no
17071       runpath_var='LD_RUN_PATH'
17072
17073       case $cc_basename in
17074         CC*)
17075           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077           ;;
17078         *)
17079           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17080           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081           ;;
17082       esac
17083       ;;
17084
17085       sysv5* | sco3.2v5* | sco5v6*)
17086         # Note: We can NOT use -z defs as we might desire, because we do not
17087         # link with -lc, and that would cause any symbols used from libc to
17088         # always be unresolved, which means just about no library would
17089         # ever link correctly.  If we're not using GNU ld we use -z text
17090         # though, which does catch some bad symbols but isn't as heavy-handed
17091         # as -z defs.
17092         no_undefined_flag_CXX='${wl}-z,text'
17093         allow_undefined_flag_CXX='${wl}-z,nodefs'
17094         archive_cmds_need_lc_CXX=no
17095         hardcode_shlibpath_var_CXX=no
17096         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17097         hardcode_libdir_separator_CXX=':'
17098         link_all_deplibs_CXX=yes
17099         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17100         runpath_var='LD_RUN_PATH'
17101
17102         case $cc_basename in
17103           CC*)
17104             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17106             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17107               '"$old_archive_cmds_CXX"
17108             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17109               '"$reload_cmds_CXX"
17110             ;;
17111           *)
17112             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114             ;;
17115         esac
17116       ;;
17117
17118       tandem*)
17119         case $cc_basename in
17120           NCC*)
17121             # NonStop-UX NCC 3.20
17122             # FIXME: insert proper C++ library support
17123             ld_shlibs_CXX=no
17124             ;;
17125           *)
17126             # FIXME: insert proper C++ library support
17127             ld_shlibs_CXX=no
17128             ;;
17129         esac
17130         ;;
17131
17132       vxworks*)
17133         # FIXME: insert proper C++ library support
17134         ld_shlibs_CXX=no
17135         ;;
17136
17137       *)
17138         # FIXME: insert proper C++ library support
17139         ld_shlibs_CXX=no
17140         ;;
17141     esac
17142
17143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17144 $as_echo "$ld_shlibs_CXX" >&6; }
17145     test "$ld_shlibs_CXX" = no && can_build_shared=no
17146
17147     GCC_CXX="$GXX"
17148     LD_CXX="$LD"
17149
17150     ## CAVEAT EMPTOR:
17151     ## There is no encapsulation within the following macros, do not change
17152     ## the running order or otherwise move them around unless you know exactly
17153     ## what you are doing...
17154     # Dependencies to place before and after the object being linked:
17155 predep_objects_CXX=
17156 postdep_objects_CXX=
17157 predeps_CXX=
17158 postdeps_CXX=
17159 compiler_lib_search_path_CXX=
17160
17161 cat > conftest.$ac_ext <<_LT_EOF
17162 class Foo
17163 {
17164 public:
17165   Foo (void) { a = 0; }
17166 private:
17167   int a;
17168 };
17169 _LT_EOF
17170
17171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17172   (eval $ac_compile) 2>&5
17173   ac_status=$?
17174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175   test $ac_status = 0; }; then
17176   # Parse the compiler output and extract the necessary
17177   # objects, libraries and library flags.
17178
17179   # Sentinel used to keep track of whether or not we are before
17180   # the conftest object file.
17181   pre_test_object_deps_done=no
17182
17183   for p in `eval "$output_verbose_link_cmd"`; do
17184     case $p in
17185
17186     -L* | -R* | -l*)
17187        # Some compilers place space between "-{L,R}" and the path.
17188        # Remove the space.
17189        if test $p = "-L" ||
17190           test $p = "-R"; then
17191          prev=$p
17192          continue
17193        else
17194          prev=
17195        fi
17196
17197        if test "$pre_test_object_deps_done" = no; then
17198          case $p in
17199          -L* | -R*)
17200            # Internal compiler library paths should come after those
17201            # provided the user.  The postdeps already come after the
17202            # user supplied libs so there is no need to process them.
17203            if test -z "$compiler_lib_search_path_CXX"; then
17204              compiler_lib_search_path_CXX="${prev}${p}"
17205            else
17206              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17207            fi
17208            ;;
17209          # The "-l" case would never come before the object being
17210          # linked, so don't bother handling this case.
17211          esac
17212        else
17213          if test -z "$postdeps_CXX"; then
17214            postdeps_CXX="${prev}${p}"
17215          else
17216            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17217          fi
17218        fi
17219        ;;
17220
17221     *.$objext)
17222        # This assumes that the test object file only shows up
17223        # once in the compiler output.
17224        if test "$p" = "conftest.$objext"; then
17225          pre_test_object_deps_done=yes
17226          continue
17227        fi
17228
17229        if test "$pre_test_object_deps_done" = no; then
17230          if test -z "$predep_objects_CXX"; then
17231            predep_objects_CXX="$p"
17232          else
17233            predep_objects_CXX="$predep_objects_CXX $p"
17234          fi
17235        else
17236          if test -z "$postdep_objects_CXX"; then
17237            postdep_objects_CXX="$p"
17238          else
17239            postdep_objects_CXX="$postdep_objects_CXX $p"
17240          fi
17241        fi
17242        ;;
17243
17244     *) ;; # Ignore the rest.
17245
17246     esac
17247   done
17248
17249   # Clean up.
17250   rm -f a.out a.exe
17251 else
17252   echo "libtool.m4: error: problem compiling CXX test program"
17253 fi
17254
17255 $RM -f confest.$objext
17256
17257 # PORTME: override above test on systems where it is broken
17258 case $host_os in
17259 interix[3-9]*)
17260   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17261   # hack all around it, let's just trust "g++" to DTRT.
17262   predep_objects_CXX=
17263   postdep_objects_CXX=
17264   postdeps_CXX=
17265   ;;
17266
17267 linux*)
17268   case `$CC -V 2>&1 | sed 5q` in
17269   *Sun\ C*)
17270     # Sun C++ 5.9
17271
17272     # The more standards-conforming stlport4 library is
17273     # incompatible with the Cstd library. Avoid specifying
17274     # it if it's in CXXFLAGS. Ignore libCrun as
17275     # -library=stlport4 depends on it.
17276     case " $CXX $CXXFLAGS " in
17277     *" -library=stlport4 "*)
17278       solaris_use_stlport4=yes
17279       ;;
17280     esac
17281
17282     if test "$solaris_use_stlport4" != yes; then
17283       postdeps_CXX='-library=Cstd -library=Crun'
17284     fi
17285     ;;
17286   esac
17287   ;;
17288
17289 solaris*)
17290   case $cc_basename in
17291   CC* | sunCC*)
17292     # The more standards-conforming stlport4 library is
17293     # incompatible with the Cstd library. Avoid specifying
17294     # it if it's in CXXFLAGS. Ignore libCrun as
17295     # -library=stlport4 depends on it.
17296     case " $CXX $CXXFLAGS " in
17297     *" -library=stlport4 "*)
17298       solaris_use_stlport4=yes
17299       ;;
17300     esac
17301
17302     # Adding this requires a known-good setup of shared libraries for
17303     # Sun compiler versions before 5.6, else PIC objects from an old
17304     # archive will be linked into the output, leading to subtle bugs.
17305     if test "$solaris_use_stlport4" != yes; then
17306       postdeps_CXX='-library=Cstd -library=Crun'
17307     fi
17308     ;;
17309   esac
17310   ;;
17311 esac
17312
17313
17314 case " $postdeps_CXX " in
17315 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17316 esac
17317  compiler_lib_search_dirs_CXX=
17318 if test -n "${compiler_lib_search_path_CXX}"; then
17319  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17320 fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352     lt_prog_compiler_wl_CXX=
17353 lt_prog_compiler_pic_CXX=
17354 lt_prog_compiler_static_CXX=
17355
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17358
17359   # C++ specific cases for pic, static, wl, etc.
17360   if test "$GXX" = yes; then
17361     lt_prog_compiler_wl_CXX='-Wl,'
17362     lt_prog_compiler_static_CXX='-static'
17363
17364     case $host_os in
17365     aix*)
17366       # All AIX code is PIC.
17367       if test "$host_cpu" = ia64; then
17368         # AIX 5 now supports IA64 processor
17369         lt_prog_compiler_static_CXX='-Bstatic'
17370       fi
17371       ;;
17372
17373     amigaos*)
17374       case $host_cpu in
17375       powerpc)
17376             # see comment about AmigaOS4 .so support
17377             lt_prog_compiler_pic_CXX='-fPIC'
17378         ;;
17379       m68k)
17380             # FIXME: we need at least 68020 code to build shared libraries, but
17381             # adding the `-m68020' flag to GCC prevents building anything better,
17382             # like `-m68040'.
17383             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17384         ;;
17385       esac
17386       ;;
17387
17388     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17389       # PIC is the default for these OSes.
17390       ;;
17391     mingw* | cygwin* | os2* | pw32* | cegcc*)
17392       # This hack is so that the source file can tell whether it is being
17393       # built for inclusion in a dll (and should export symbols for example).
17394       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17395       # (--disable-auto-import) libraries
17396       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17397       ;;
17398     darwin* | rhapsody*)
17399       # PIC is the default on this platform
17400       # Common symbols not allowed in MH_DYLIB files
17401       lt_prog_compiler_pic_CXX='-fno-common'
17402       ;;
17403     *djgpp*)
17404       # DJGPP does not support shared libraries at all
17405       lt_prog_compiler_pic_CXX=
17406       ;;
17407     haiku*)
17408       # PIC is the default for Haiku.
17409       # The "-static" flag exists, but is broken.
17410       lt_prog_compiler_static_CXX=
17411       ;;
17412     interix[3-9]*)
17413       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17414       # Instead, we relocate shared libraries at runtime.
17415       ;;
17416     sysv4*MP*)
17417       if test -d /usr/nec; then
17418         lt_prog_compiler_pic_CXX=-Kconform_pic
17419       fi
17420       ;;
17421     hpux*)
17422       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17423       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17424       # sets the default TLS model and affects inlining.
17425       case $host_cpu in
17426       hppa*64*)
17427         ;;
17428       *)
17429         lt_prog_compiler_pic_CXX='-fPIC'
17430         ;;
17431       esac
17432       ;;
17433     *qnx* | *nto*)
17434       # QNX uses GNU C++, but need to define -shared option too, otherwise
17435       # it will coredump.
17436       lt_prog_compiler_pic_CXX='-fPIC -shared'
17437       ;;
17438     *)
17439       lt_prog_compiler_pic_CXX='-fPIC'
17440       ;;
17441     esac
17442   else
17443     case $host_os in
17444       aix[4-9]*)
17445         # All AIX code is PIC.
17446         if test "$host_cpu" = ia64; then
17447           # AIX 5 now supports IA64 processor
17448           lt_prog_compiler_static_CXX='-Bstatic'
17449         else
17450           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17451         fi
17452         ;;
17453       chorus*)
17454         case $cc_basename in
17455         cxch68*)
17456           # Green Hills C++ Compiler
17457           # _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"
17458           ;;
17459         esac
17460         ;;
17461       dgux*)
17462         case $cc_basename in
17463           ec++*)
17464             lt_prog_compiler_pic_CXX='-KPIC'
17465             ;;
17466           ghcx*)
17467             # Green Hills C++ Compiler
17468             lt_prog_compiler_pic_CXX='-pic'
17469             ;;
17470           *)
17471             ;;
17472         esac
17473         ;;
17474       freebsd* | dragonfly*)
17475         # FreeBSD uses GNU C++
17476         ;;
17477       hpux9* | hpux10* | hpux11*)
17478         case $cc_basename in
17479           CC*)
17480             lt_prog_compiler_wl_CXX='-Wl,'
17481             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17482             if test "$host_cpu" != ia64; then
17483               lt_prog_compiler_pic_CXX='+Z'
17484             fi
17485             ;;
17486           aCC*)
17487             lt_prog_compiler_wl_CXX='-Wl,'
17488             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17489             case $host_cpu in
17490             hppa*64*|ia64*)
17491               # +Z the default
17492               ;;
17493             *)
17494               lt_prog_compiler_pic_CXX='+Z'
17495               ;;
17496             esac
17497             ;;
17498           *)
17499             ;;
17500         esac
17501         ;;
17502       interix*)
17503         # This is c89, which is MS Visual C++ (no shared libs)
17504         # Anyone wants to do a port?
17505         ;;
17506       irix5* | irix6* | nonstopux*)
17507         case $cc_basename in
17508           CC*)
17509             lt_prog_compiler_wl_CXX='-Wl,'
17510             lt_prog_compiler_static_CXX='-non_shared'
17511             # CC pic flag -KPIC is the default.
17512             ;;
17513           *)
17514             ;;
17515         esac
17516         ;;
17517       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17518         case $cc_basename in
17519           KCC*)
17520             # KAI C++ Compiler
17521             lt_prog_compiler_wl_CXX='--backend -Wl,'
17522             lt_prog_compiler_pic_CXX='-fPIC'
17523             ;;
17524           ecpc* )
17525             # old Intel C++ for x86_64 which still supported -KPIC.
17526             lt_prog_compiler_wl_CXX='-Wl,'
17527             lt_prog_compiler_pic_CXX='-KPIC'
17528             lt_prog_compiler_static_CXX='-static'
17529             ;;
17530           icpc* )
17531             # Intel C++, used to be incompatible with GCC.
17532             # ICC 10 doesn't accept -KPIC any more.
17533             lt_prog_compiler_wl_CXX='-Wl,'
17534             lt_prog_compiler_pic_CXX='-fPIC'
17535             lt_prog_compiler_static_CXX='-static'
17536             ;;
17537           pgCC* | pgcpp*)
17538             # Portland Group C++ compiler
17539             lt_prog_compiler_wl_CXX='-Wl,'
17540             lt_prog_compiler_pic_CXX='-fpic'
17541             lt_prog_compiler_static_CXX='-Bstatic'
17542             ;;
17543           cxx*)
17544             # Compaq C++
17545             # Make sure the PIC flag is empty.  It appears that all Alpha
17546             # Linux and Compaq Tru64 Unix objects are PIC.
17547             lt_prog_compiler_pic_CXX=
17548             lt_prog_compiler_static_CXX='-non_shared'
17549             ;;
17550           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17551             # IBM XL 8.0, 9.0 on PPC and BlueGene
17552             lt_prog_compiler_wl_CXX='-Wl,'
17553             lt_prog_compiler_pic_CXX='-qpic'
17554             lt_prog_compiler_static_CXX='-qstaticlink'
17555             ;;
17556           *)
17557             case `$CC -V 2>&1 | sed 5q` in
17558             *Sun\ C*)
17559               # Sun C++ 5.9
17560               lt_prog_compiler_pic_CXX='-KPIC'
17561               lt_prog_compiler_static_CXX='-Bstatic'
17562               lt_prog_compiler_wl_CXX='-Qoption ld '
17563               ;;
17564             esac
17565             ;;
17566         esac
17567         ;;
17568       lynxos*)
17569         ;;
17570       m88k*)
17571         ;;
17572       mvs*)
17573         case $cc_basename in
17574           cxx*)
17575             lt_prog_compiler_pic_CXX='-W c,exportall'
17576             ;;
17577           *)
17578             ;;
17579         esac
17580         ;;
17581       netbsd*)
17582         ;;
17583       *qnx* | *nto*)
17584         # QNX uses GNU C++, but need to define -shared option too, otherwise
17585         # it will coredump.
17586         lt_prog_compiler_pic_CXX='-fPIC -shared'
17587         ;;
17588       osf3* | osf4* | osf5*)
17589         case $cc_basename in
17590           KCC*)
17591             lt_prog_compiler_wl_CXX='--backend -Wl,'
17592             ;;
17593           RCC*)
17594             # Rational C++ 2.4.1
17595             lt_prog_compiler_pic_CXX='-pic'
17596             ;;
17597           cxx*)
17598             # Digital/Compaq C++
17599             lt_prog_compiler_wl_CXX='-Wl,'
17600             # Make sure the PIC flag is empty.  It appears that all Alpha
17601             # Linux and Compaq Tru64 Unix objects are PIC.
17602             lt_prog_compiler_pic_CXX=
17603             lt_prog_compiler_static_CXX='-non_shared'
17604             ;;
17605           *)
17606             ;;
17607         esac
17608         ;;
17609       psos*)
17610         ;;
17611       solaris*)
17612         case $cc_basename in
17613           CC* | sunCC*)
17614             # Sun C++ 4.2, 5.x and Centerline C++
17615             lt_prog_compiler_pic_CXX='-KPIC'
17616             lt_prog_compiler_static_CXX='-Bstatic'
17617             lt_prog_compiler_wl_CXX='-Qoption ld '
17618             ;;
17619           gcx*)
17620             # Green Hills C++ Compiler
17621             lt_prog_compiler_pic_CXX='-PIC'
17622             ;;
17623           *)
17624             ;;
17625         esac
17626         ;;
17627       sunos4*)
17628         case $cc_basename in
17629           CC*)
17630             # Sun C++ 4.x
17631             lt_prog_compiler_pic_CXX='-pic'
17632             lt_prog_compiler_static_CXX='-Bstatic'
17633             ;;
17634           lcc*)
17635             # Lucid
17636             lt_prog_compiler_pic_CXX='-pic'
17637             ;;
17638           *)
17639             ;;
17640         esac
17641         ;;
17642       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17643         case $cc_basename in
17644           CC*)
17645             lt_prog_compiler_wl_CXX='-Wl,'
17646             lt_prog_compiler_pic_CXX='-KPIC'
17647             lt_prog_compiler_static_CXX='-Bstatic'
17648             ;;
17649         esac
17650         ;;
17651       tandem*)
17652         case $cc_basename in
17653           NCC*)
17654             # NonStop-UX NCC 3.20
17655             lt_prog_compiler_pic_CXX='-KPIC'
17656             ;;
17657           *)
17658             ;;
17659         esac
17660         ;;
17661       vxworks*)
17662         ;;
17663       *)
17664         lt_prog_compiler_can_build_shared_CXX=no
17665         ;;
17666     esac
17667   fi
17668
17669 case $host_os in
17670   # For platforms which do not support PIC, -DPIC is meaningless:
17671   *djgpp*)
17672     lt_prog_compiler_pic_CXX=
17673     ;;
17674   *)
17675     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17676     ;;
17677 esac
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17679 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17680
17681
17682
17683 #
17684 # Check to make sure the PIC flag actually works.
17685 #
17686 if test -n "$lt_prog_compiler_pic_CXX"; then
17687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17689 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17690   $as_echo_n "(cached) " >&6
17691 else
17692   lt_cv_prog_compiler_pic_works_CXX=no
17693    ac_outfile=conftest.$ac_objext
17694    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17695    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17696    # Insert the option either (1) after the last *FLAGS variable, or
17697    # (2) before a word containing "conftest.", or (3) at the end.
17698    # Note that $ac_compile itself does not contain backslashes and begins
17699    # with a dollar sign (not a hyphen), so the echo should work correctly.
17700    # The option is referenced via a variable to avoid confusing sed.
17701    lt_compile=`echo "$ac_compile" | $SED \
17702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17704    -e 's:$: $lt_compiler_flag:'`
17705    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17706    (eval "$lt_compile" 2>conftest.err)
17707    ac_status=$?
17708    cat conftest.err >&5
17709    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710    if (exit $ac_status) && test -s "$ac_outfile"; then
17711      # The compiler can only warn and ignore the option if not recognized
17712      # So say no if there are warnings other than the usual output.
17713      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17714      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17715      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17716        lt_cv_prog_compiler_pic_works_CXX=yes
17717      fi
17718    fi
17719    $RM conftest*
17720
17721 fi
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17723 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17724
17725 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17726     case $lt_prog_compiler_pic_CXX in
17727      "" | " "*) ;;
17728      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17729      esac
17730 else
17731     lt_prog_compiler_pic_CXX=
17732      lt_prog_compiler_can_build_shared_CXX=no
17733 fi
17734
17735 fi
17736
17737
17738
17739 #
17740 # Check to make sure the static flag actually works.
17741 #
17742 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17745 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17746   $as_echo_n "(cached) " >&6
17747 else
17748   lt_cv_prog_compiler_static_works_CXX=no
17749    save_LDFLAGS="$LDFLAGS"
17750    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17751    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17753      # The linker can only warn and ignore the option if not recognized
17754      # So say no if there are warnings
17755      if test -s conftest.err; then
17756        # Append any errors to the config.log.
17757        cat conftest.err 1>&5
17758        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17760        if diff conftest.exp conftest.er2 >/dev/null; then
17761          lt_cv_prog_compiler_static_works_CXX=yes
17762        fi
17763      else
17764        lt_cv_prog_compiler_static_works_CXX=yes
17765      fi
17766    fi
17767    $RM -r conftest*
17768    LDFLAGS="$save_LDFLAGS"
17769
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17772 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17773
17774 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17775     :
17776 else
17777     lt_prog_compiler_static_CXX=
17778 fi
17779
17780
17781
17782
17783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17785 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17786   $as_echo_n "(cached) " >&6
17787 else
17788   lt_cv_prog_compiler_c_o_CXX=no
17789    $RM -r conftest 2>/dev/null
17790    mkdir conftest
17791    cd conftest
17792    mkdir out
17793    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17794
17795    lt_compiler_flag="-o out/conftest2.$ac_objext"
17796    # Insert the option either (1) after the last *FLAGS variable, or
17797    # (2) before a word containing "conftest.", or (3) at the end.
17798    # Note that $ac_compile itself does not contain backslashes and begins
17799    # with a dollar sign (not a hyphen), so the echo should work correctly.
17800    lt_compile=`echo "$ac_compile" | $SED \
17801    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17802    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17803    -e 's:$: $lt_compiler_flag:'`
17804    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17805    (eval "$lt_compile" 2>out/conftest.err)
17806    ac_status=$?
17807    cat out/conftest.err >&5
17808    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17810    then
17811      # The compiler can only warn and ignore the option if not recognized
17812      # So say no if there are warnings
17813      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17814      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17815      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17816        lt_cv_prog_compiler_c_o_CXX=yes
17817      fi
17818    fi
17819    chmod u+w . 2>&5
17820    $RM conftest*
17821    # SGI C++ compiler will create directory out/ii_files/ for
17822    # template instantiation
17823    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17824    $RM out/* && rmdir out
17825    cd ..
17826    $RM -r conftest
17827    $RM conftest*
17828
17829 fi
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17831 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17832
17833
17834
17835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17837 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17838   $as_echo_n "(cached) " >&6
17839 else
17840   lt_cv_prog_compiler_c_o_CXX=no
17841    $RM -r conftest 2>/dev/null
17842    mkdir conftest
17843    cd conftest
17844    mkdir out
17845    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17846
17847    lt_compiler_flag="-o out/conftest2.$ac_objext"
17848    # Insert the option either (1) after the last *FLAGS variable, or
17849    # (2) before a word containing "conftest.", or (3) at the end.
17850    # Note that $ac_compile itself does not contain backslashes and begins
17851    # with a dollar sign (not a hyphen), so the echo should work correctly.
17852    lt_compile=`echo "$ac_compile" | $SED \
17853    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17854    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17855    -e 's:$: $lt_compiler_flag:'`
17856    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17857    (eval "$lt_compile" 2>out/conftest.err)
17858    ac_status=$?
17859    cat out/conftest.err >&5
17860    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17862    then
17863      # The compiler can only warn and ignore the option if not recognized
17864      # So say no if there are warnings
17865      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17866      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17867      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17868        lt_cv_prog_compiler_c_o_CXX=yes
17869      fi
17870    fi
17871    chmod u+w . 2>&5
17872    $RM conftest*
17873    # SGI C++ compiler will create directory out/ii_files/ for
17874    # template instantiation
17875    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17876    $RM out/* && rmdir out
17877    cd ..
17878    $RM -r conftest
17879    $RM conftest*
17880
17881 fi
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17883 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17884
17885
17886
17887
17888 hard_links="nottested"
17889 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17890   # do not overwrite the value of need_locks provided by the user
17891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17892 $as_echo_n "checking if we can lock with hard links... " >&6; }
17893   hard_links=yes
17894   $RM conftest*
17895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17896   touch conftest.a
17897   ln conftest.a conftest.b 2>&5 || hard_links=no
17898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17900 $as_echo "$hard_links" >&6; }
17901   if test "$hard_links" = no; then
17902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17904     need_locks=warn
17905   fi
17906 else
17907   need_locks=no
17908 fi
17909
17910
17911
17912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17914
17915   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17916   case $host_os in
17917   aix[4-9]*)
17918     # If we're using GNU nm, then we don't want the "-C" option.
17919     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17920     # Also, AIX nm treats weak defined symbols like other global defined
17921     # symbols, whereas GNU nm marks them as "W".
17922     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17923       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17924     else
17925       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17926     fi
17927     ;;
17928   pw32*)
17929     export_symbols_cmds_CXX="$ltdll_cmds"
17930   ;;
17931   cygwin* | mingw* | cegcc*)
17932     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17933   ;;
17934   *)
17935     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17936   ;;
17937   esac
17938   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17939
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17941 $as_echo "$ld_shlibs_CXX" >&6; }
17942 test "$ld_shlibs_CXX" = no && can_build_shared=no
17943
17944 with_gnu_ld_CXX=$with_gnu_ld
17945
17946
17947
17948
17949
17950
17951 #
17952 # Do we need to explicitly link libc?
17953 #
17954 case "x$archive_cmds_need_lc_CXX" in
17955 x|xyes)
17956   # Assume -lc should be added
17957   archive_cmds_need_lc_CXX=yes
17958
17959   if test "$enable_shared" = yes && test "$GCC" = yes; then
17960     case $archive_cmds_CXX in
17961     *'~'*)
17962       # FIXME: we may have to deal with multi-command sequences.
17963       ;;
17964     '$CC '*)
17965       # Test whether the compiler implicitly links with -lc since on some
17966       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17967       # to ld, don't add -lc before -lgcc.
17968       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17969 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17970 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17971   $as_echo_n "(cached) " >&6
17972 else
17973   $RM conftest*
17974         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17975
17976         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17977   (eval $ac_compile) 2>&5
17978   ac_status=$?
17979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17980   test $ac_status = 0; } 2>conftest.err; then
17981           soname=conftest
17982           lib=conftest
17983           libobjs=conftest.$ac_objext
17984           deplibs=
17985           wl=$lt_prog_compiler_wl_CXX
17986           pic_flag=$lt_prog_compiler_pic_CXX
17987           compiler_flags=-v
17988           linker_flags=-v
17989           verstring=
17990           output_objdir=.
17991           libname=conftest
17992           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17993           allow_undefined_flag_CXX=
17994           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17995   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17996   ac_status=$?
17997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998   test $ac_status = 0; }
17999           then
18000             lt_cv_archive_cmds_need_lc_CXX=no
18001           else
18002             lt_cv_archive_cmds_need_lc_CXX=yes
18003           fi
18004           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18005         else
18006           cat conftest.err 1>&5
18007         fi
18008         $RM conftest*
18009
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18012 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18013       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18014       ;;
18015     esac
18016   fi
18017   ;;
18018 esac
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18085
18086 library_names_spec=
18087 libname_spec='lib$name'
18088 soname_spec=
18089 shrext_cmds=".so"
18090 postinstall_cmds=
18091 postuninstall_cmds=
18092 finish_cmds=
18093 finish_eval=
18094 shlibpath_var=
18095 shlibpath_overrides_runpath=unknown
18096 version_type=none
18097 dynamic_linker="$host_os ld.so"
18098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18099 need_lib_prefix=unknown
18100 hardcode_into_libs=no
18101
18102 # when you set need_version to no, make sure it does not cause -set_version
18103 # flags to be left without arguments
18104 need_version=unknown
18105
18106 case $host_os in
18107 aix3*)
18108   version_type=linux
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18110   shlibpath_var=LIBPATH
18111
18112   # AIX 3 has no versioning support, so we append a major version to the name.
18113   soname_spec='${libname}${release}${shared_ext}$major'
18114   ;;
18115
18116 aix[4-9]*)
18117   version_type=linux
18118   need_lib_prefix=no
18119   need_version=no
18120   hardcode_into_libs=yes
18121   if test "$host_cpu" = ia64; then
18122     # AIX 5 supports IA64
18123     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18124     shlibpath_var=LD_LIBRARY_PATH
18125   else
18126     # With GCC up to 2.95.x, collect2 would create an import file
18127     # for dependence libraries.  The import file would start with
18128     # the line `#! .'.  This would cause the generated library to
18129     # depend on `.', always an invalid library.  This was fixed in
18130     # development snapshots of GCC prior to 3.0.
18131     case $host_os in
18132       aix4 | aix4.[01] | aix4.[01].*)
18133       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18134            echo ' yes '
18135            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18136         :
18137       else
18138         can_build_shared=no
18139       fi
18140       ;;
18141     esac
18142     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18143     # soname into executable. Probably we can add versioning support to
18144     # collect2, so additional links can be useful in future.
18145     if test "$aix_use_runtimelinking" = yes; then
18146       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18147       # instead of lib<name>.a to let people know that these are not
18148       # typical AIX shared libraries.
18149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150     else
18151       # We preserve .a as extension for shared libraries through AIX4.2
18152       # and later when we are not doing run time linking.
18153       library_names_spec='${libname}${release}.a $libname.a'
18154       soname_spec='${libname}${release}${shared_ext}$major'
18155     fi
18156     shlibpath_var=LIBPATH
18157   fi
18158   ;;
18159
18160 amigaos*)
18161   case $host_cpu in
18162   powerpc)
18163     # Since July 2007 AmigaOS4 officially supports .so libraries.
18164     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166     ;;
18167   m68k)
18168     library_names_spec='$libname.ixlibrary $libname.a'
18169     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18170     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18171     ;;
18172   esac
18173   ;;
18174
18175 beos*)
18176   library_names_spec='${libname}${shared_ext}'
18177   dynamic_linker="$host_os ld.so"
18178   shlibpath_var=LIBRARY_PATH
18179   ;;
18180
18181 bsdi[45]*)
18182   version_type=linux
18183   need_version=no
18184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185   soname_spec='${libname}${release}${shared_ext}$major'
18186   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18187   shlibpath_var=LD_LIBRARY_PATH
18188   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18189   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18190   # the default ld.so.conf also contains /usr/contrib/lib and
18191   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18192   # libtool to hard-code these into programs
18193   ;;
18194
18195 cygwin* | mingw* | pw32* | cegcc*)
18196   version_type=windows
18197   shrext_cmds=".dll"
18198   need_version=no
18199   need_lib_prefix=no
18200
18201   case $GCC,$host_os in
18202   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18203     library_names_spec='$libname.dll.a'
18204     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18205     postinstall_cmds='base_file=`basename \${file}`~
18206       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18207       dldir=$destdir/`dirname \$dlpath`~
18208       test -d \$dldir || mkdir -p \$dldir~
18209       $install_prog $dir/$dlname \$dldir/$dlname~
18210       chmod a+x \$dldir/$dlname~
18211       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18212         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18213       fi'
18214     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18215       dlpath=$dir/\$dldll~
18216        $RM \$dlpath'
18217     shlibpath_overrides_runpath=yes
18218
18219     case $host_os in
18220     cygwin*)
18221       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18222       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18223
18224       ;;
18225     mingw* | cegcc*)
18226       # MinGW DLLs use traditional 'lib' prefix
18227       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18228       ;;
18229     pw32*)
18230       # pw32 DLLs use 'pw' prefix rather than 'lib'
18231       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18232       ;;
18233     esac
18234     ;;
18235
18236   *)
18237     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18238     ;;
18239   esac
18240   dynamic_linker='Win32 ld.exe'
18241   # FIXME: first we should search . and the directory the executable is in
18242   shlibpath_var=PATH
18243   ;;
18244
18245 darwin* | rhapsody*)
18246   dynamic_linker="$host_os dyld"
18247   version_type=darwin
18248   need_lib_prefix=no
18249   need_version=no
18250   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18251   soname_spec='${libname}${release}${major}$shared_ext'
18252   shlibpath_overrides_runpath=yes
18253   shlibpath_var=DYLD_LIBRARY_PATH
18254   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18255
18256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18257   ;;
18258
18259 dgux*)
18260   version_type=linux
18261   need_lib_prefix=no
18262   need_version=no
18263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18264   soname_spec='${libname}${release}${shared_ext}$major'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   ;;
18267
18268 freebsd1*)
18269   dynamic_linker=no
18270   ;;
18271
18272 freebsd* | dragonfly*)
18273   # DragonFly does not have aout.  When/if they implement a new
18274   # versioning mechanism, adjust this.
18275   if test -x /usr/bin/objformat; then
18276     objformat=`/usr/bin/objformat`
18277   else
18278     case $host_os in
18279     freebsd[123]*) objformat=aout ;;
18280     *) objformat=elf ;;
18281     esac
18282   fi
18283   version_type=freebsd-$objformat
18284   case $version_type in
18285     freebsd-elf*)
18286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287       need_version=no
18288       need_lib_prefix=no
18289       ;;
18290     freebsd-*)
18291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18292       need_version=yes
18293       ;;
18294   esac
18295   shlibpath_var=LD_LIBRARY_PATH
18296   case $host_os in
18297   freebsd2*)
18298     shlibpath_overrides_runpath=yes
18299     ;;
18300   freebsd3.[01]* | freebsdelf3.[01]*)
18301     shlibpath_overrides_runpath=yes
18302     hardcode_into_libs=yes
18303     ;;
18304   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18305   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18306     shlibpath_overrides_runpath=no
18307     hardcode_into_libs=yes
18308     ;;
18309   *) # from 4.6 on, and DragonFly
18310     shlibpath_overrides_runpath=yes
18311     hardcode_into_libs=yes
18312     ;;
18313   esac
18314   ;;
18315
18316 gnu*)
18317   version_type=linux
18318   need_lib_prefix=no
18319   need_version=no
18320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18321   soname_spec='${libname}${release}${shared_ext}$major'
18322   shlibpath_var=LD_LIBRARY_PATH
18323   hardcode_into_libs=yes
18324   ;;
18325
18326 haiku*)
18327   version_type=linux
18328   need_lib_prefix=no
18329   need_version=no
18330   dynamic_linker="$host_os runtime_loader"
18331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18332   soname_spec='${libname}${release}${shared_ext}$major'
18333   shlibpath_var=LIBRARY_PATH
18334   shlibpath_overrides_runpath=yes
18335   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18336   hardcode_into_libs=yes
18337   ;;
18338
18339 hpux9* | hpux10* | hpux11*)
18340   # Give a soname corresponding to the major version so that dld.sl refuses to
18341   # link against other versions.
18342   version_type=sunos
18343   need_lib_prefix=no
18344   need_version=no
18345   case $host_cpu in
18346   ia64*)
18347     shrext_cmds='.so'
18348     hardcode_into_libs=yes
18349     dynamic_linker="$host_os dld.so"
18350     shlibpath_var=LD_LIBRARY_PATH
18351     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353     soname_spec='${libname}${release}${shared_ext}$major'
18354     if test "X$HPUX_IA64_MODE" = X32; then
18355       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18356     else
18357       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18358     fi
18359     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18360     ;;
18361   hppa*64*)
18362     shrext_cmds='.sl'
18363     hardcode_into_libs=yes
18364     dynamic_linker="$host_os dld.sl"
18365     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18366     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368     soname_spec='${libname}${release}${shared_ext}$major'
18369     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18371     ;;
18372   *)
18373     shrext_cmds='.sl'
18374     dynamic_linker="$host_os dld.sl"
18375     shlibpath_var=SHLIB_PATH
18376     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18378     soname_spec='${libname}${release}${shared_ext}$major'
18379     ;;
18380   esac
18381   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18382   postinstall_cmds='chmod 555 $lib'
18383   # or fails outright, so override atomically:
18384   install_override_mode=555
18385   ;;
18386
18387 interix[3-9]*)
18388   version_type=linux
18389   need_lib_prefix=no
18390   need_version=no
18391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18392   soname_spec='${libname}${release}${shared_ext}$major'
18393   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   shlibpath_overrides_runpath=no
18396   hardcode_into_libs=yes
18397   ;;
18398
18399 irix5* | irix6* | nonstopux*)
18400   case $host_os in
18401     nonstopux*) version_type=nonstopux ;;
18402     *)
18403         if test "$lt_cv_prog_gnu_ld" = yes; then
18404                 version_type=linux
18405         else
18406                 version_type=irix
18407         fi ;;
18408   esac
18409   need_lib_prefix=no
18410   need_version=no
18411   soname_spec='${libname}${release}${shared_ext}$major'
18412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18413   case $host_os in
18414   irix5* | nonstopux*)
18415     libsuff= shlibsuff=
18416     ;;
18417   *)
18418     case $LD in # libtool.m4 will add one of these switches to LD
18419     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18420       libsuff= shlibsuff= libmagic=32-bit;;
18421     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18422       libsuff=32 shlibsuff=N32 libmagic=N32;;
18423     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18424       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18425     *) libsuff= shlibsuff= libmagic=never-match;;
18426     esac
18427     ;;
18428   esac
18429   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18430   shlibpath_overrides_runpath=no
18431   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18432   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18433   hardcode_into_libs=yes
18434   ;;
18435
18436 # No shared lib support for Linux oldld, aout, or coff.
18437 linux*oldld* | linux*aout* | linux*coff*)
18438   dynamic_linker=no
18439   ;;
18440
18441 # This must be Linux ELF.
18442 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18443   version_type=linux
18444   need_lib_prefix=no
18445   need_version=no
18446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447   soname_spec='${libname}${release}${shared_ext}$major'
18448   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18449   shlibpath_var=LD_LIBRARY_PATH
18450   shlibpath_overrides_runpath=no
18451
18452   # Some binutils ld are patched to set DT_RUNPATH
18453   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18454   $as_echo_n "(cached) " >&6
18455 else
18456   lt_cv_shlibpath_overrides_runpath=no
18457     save_LDFLAGS=$LDFLAGS
18458     save_libdir=$libdir
18459     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18460          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18461     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h.  */
18463
18464 int
18465 main ()
18466 {
18467
18468   ;
18469   return 0;
18470 }
18471 _ACEOF
18472 if ac_fn_cxx_try_link "$LINENO"; then :
18473   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18474   lt_cv_shlibpath_overrides_runpath=yes
18475 fi
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext \
18478     conftest$ac_exeext conftest.$ac_ext
18479     LDFLAGS=$save_LDFLAGS
18480     libdir=$save_libdir
18481
18482 fi
18483
18484   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18485
18486   # This implies no fast_install, which is unacceptable.
18487   # Some rework will be needed to allow for fast_install
18488   # before this can be enabled.
18489   hardcode_into_libs=yes
18490
18491   # Add ABI-specific directories to the system library path.
18492   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18493
18494   # Append ld.so.conf contents to the search path
18495   if test -f /etc/ld.so.conf; then
18496     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' ' '`
18497     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18498
18499   fi
18500
18501   # We used to test for /lib/ld.so.1 and disable shared libraries on
18502   # powerpc, because MkLinux only supported shared libraries with the
18503   # GNU dynamic linker.  Since this was broken with cross compilers,
18504   # most powerpc-linux boxes support dynamic linking these days and
18505   # people can always --disable-shared, the test was removed, and we
18506   # assume the GNU/Linux dynamic linker is in use.
18507   dynamic_linker='GNU/Linux ld.so'
18508   ;;
18509
18510 netbsd*)
18511   version_type=sunos
18512   need_lib_prefix=no
18513   need_version=no
18514   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517     dynamic_linker='NetBSD (a.out) ld.so'
18518   else
18519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520     soname_spec='${libname}${release}${shared_ext}$major'
18521     dynamic_linker='NetBSD ld.elf_so'
18522   fi
18523   shlibpath_var=LD_LIBRARY_PATH
18524   shlibpath_overrides_runpath=yes
18525   hardcode_into_libs=yes
18526   ;;
18527
18528 newsos6)
18529   version_type=linux
18530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531   shlibpath_var=LD_LIBRARY_PATH
18532   shlibpath_overrides_runpath=yes
18533   ;;
18534
18535 *nto* | *qnx*)
18536   version_type=qnx
18537   need_lib_prefix=no
18538   need_version=no
18539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540   soname_spec='${libname}${release}${shared_ext}$major'
18541   shlibpath_var=LD_LIBRARY_PATH
18542   shlibpath_overrides_runpath=no
18543   hardcode_into_libs=yes
18544   dynamic_linker='ldqnx.so'
18545   ;;
18546
18547 openbsd*)
18548   version_type=sunos
18549   sys_lib_dlsearch_path_spec="/usr/lib"
18550   need_lib_prefix=no
18551   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18552   case $host_os in
18553     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18554     *)                          need_version=no  ;;
18555   esac
18556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18557   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18558   shlibpath_var=LD_LIBRARY_PATH
18559   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18560     case $host_os in
18561       openbsd2.[89] | openbsd2.[89].*)
18562         shlibpath_overrides_runpath=no
18563         ;;
18564       *)
18565         shlibpath_overrides_runpath=yes
18566         ;;
18567       esac
18568   else
18569     shlibpath_overrides_runpath=yes
18570   fi
18571   ;;
18572
18573 os2*)
18574   libname_spec='$name'
18575   shrext_cmds=".dll"
18576   need_lib_prefix=no
18577   library_names_spec='$libname${shared_ext} $libname.a'
18578   dynamic_linker='OS/2 ld.exe'
18579   shlibpath_var=LIBPATH
18580   ;;
18581
18582 osf3* | osf4* | osf5*)
18583   version_type=osf
18584   need_lib_prefix=no
18585   need_version=no
18586   soname_spec='${libname}${release}${shared_ext}$major'
18587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588   shlibpath_var=LD_LIBRARY_PATH
18589   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18590   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18591   ;;
18592
18593 rdos*)
18594   dynamic_linker=no
18595   ;;
18596
18597 solaris*)
18598   version_type=linux
18599   need_lib_prefix=no
18600   need_version=no
18601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602   soname_spec='${libname}${release}${shared_ext}$major'
18603   shlibpath_var=LD_LIBRARY_PATH
18604   shlibpath_overrides_runpath=yes
18605   hardcode_into_libs=yes
18606   # ldd complains unless libraries are executable
18607   postinstall_cmds='chmod +x $lib'
18608   ;;
18609
18610 sunos4*)
18611   version_type=sunos
18612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18614   shlibpath_var=LD_LIBRARY_PATH
18615   shlibpath_overrides_runpath=yes
18616   if test "$with_gnu_ld" = yes; then
18617     need_lib_prefix=no
18618   fi
18619   need_version=yes
18620   ;;
18621
18622 sysv4 | sysv4.3*)
18623   version_type=linux
18624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625   soname_spec='${libname}${release}${shared_ext}$major'
18626   shlibpath_var=LD_LIBRARY_PATH
18627   case $host_vendor in
18628     sni)
18629       shlibpath_overrides_runpath=no
18630       need_lib_prefix=no
18631       runpath_var=LD_RUN_PATH
18632       ;;
18633     siemens)
18634       need_lib_prefix=no
18635       ;;
18636     motorola)
18637       need_lib_prefix=no
18638       need_version=no
18639       shlibpath_overrides_runpath=no
18640       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18641       ;;
18642   esac
18643   ;;
18644
18645 sysv4*MP*)
18646   if test -d /usr/nec ;then
18647     version_type=linux
18648     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18649     soname_spec='$libname${shared_ext}.$major'
18650     shlibpath_var=LD_LIBRARY_PATH
18651   fi
18652   ;;
18653
18654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18655   version_type=freebsd-elf
18656   need_lib_prefix=no
18657   need_version=no
18658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18659   soname_spec='${libname}${release}${shared_ext}$major'
18660   shlibpath_var=LD_LIBRARY_PATH
18661   shlibpath_overrides_runpath=yes
18662   hardcode_into_libs=yes
18663   if test "$with_gnu_ld" = yes; then
18664     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18665   else
18666     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18667     case $host_os in
18668       sco3.2v5*)
18669         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18670         ;;
18671     esac
18672   fi
18673   sys_lib_dlsearch_path_spec='/usr/lib'
18674   ;;
18675
18676 tpf*)
18677   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18678   version_type=linux
18679   need_lib_prefix=no
18680   need_version=no
18681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682   shlibpath_var=LD_LIBRARY_PATH
18683   shlibpath_overrides_runpath=no
18684   hardcode_into_libs=yes
18685   ;;
18686
18687 uts4*)
18688   version_type=linux
18689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690   soname_spec='${libname}${release}${shared_ext}$major'
18691   shlibpath_var=LD_LIBRARY_PATH
18692   ;;
18693
18694 *)
18695   dynamic_linker=no
18696   ;;
18697 esac
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18699 $as_echo "$dynamic_linker" >&6; }
18700 test "$dynamic_linker" = no && can_build_shared=no
18701
18702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18703 if test "$GCC" = yes; then
18704   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18705 fi
18706
18707 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18708   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18709 fi
18710 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18711   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18712 fi
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18753 hardcode_action_CXX=
18754 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18755    test -n "$runpath_var_CXX" ||
18756    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18757
18758   # We can hardcode non-existent directories.
18759   if test "$hardcode_direct_CXX" != no &&
18760      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18761      # have to relink, otherwise we might link with an installed library
18762      # when we should be linking with a yet-to-be-installed one
18763      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18764      test "$hardcode_minus_L_CXX" != no; then
18765     # Linking always hardcodes the temporary library directory.
18766     hardcode_action_CXX=relink
18767   else
18768     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18769     hardcode_action_CXX=immediate
18770   fi
18771 else
18772   # We cannot hardcode anything, or else we can only hardcode existing
18773   # directories.
18774   hardcode_action_CXX=unsupported
18775 fi
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18777 $as_echo "$hardcode_action_CXX" >&6; }
18778
18779 if test "$hardcode_action_CXX" = relink ||
18780    test "$inherit_rpath_CXX" = yes; then
18781   # Fast installation is not supported
18782   enable_fast_install=no
18783 elif test "$shlibpath_overrides_runpath" = yes ||
18784      test "$enable_shared" = no; then
18785   # Fast installation is not necessary
18786   enable_fast_install=needless
18787 fi
18788
18789
18790
18791
18792
18793
18794
18795   fi # test -n "$compiler"
18796
18797   CC=$lt_save_CC
18798   LDCXX=$LD
18799   LD=$lt_save_LD
18800   GCC=$lt_save_GCC
18801   with_gnu_ld=$lt_save_with_gnu_ld
18802   lt_cv_path_LDCXX=$lt_cv_path_LD
18803   lt_cv_path_LD=$lt_save_path_LD
18804   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18805   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18806 fi # test "$_lt_caught_CXX_error" != yes
18807
18808 ac_ext=c
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826         ac_config_commands="$ac_config_commands libtool"
18827
18828
18829
18830
18831 # Only expand once:
18832
18833
18834
18835
18836
18837 # Configure libltdl
18838
18839
18840
18841
18842
18843
18844
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18846 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18847 if test "${libltdl_cv_shlibext+set}" = set; then :
18848   $as_echo_n "(cached) " >&6
18849 else
18850
18851 module=yes
18852 eval libltdl_cv_shlibext=$shrext_cmds
18853
18854 fi
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18856 $as_echo "$libltdl_cv_shlibext" >&6; }
18857 if test -n "$libltdl_cv_shlibext"; then
18858
18859 cat >>confdefs.h <<_ACEOF
18860 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18861 _ACEOF
18862
18863 fi
18864
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18866 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18867 if test "${lt_cv_module_path_var+set}" = set; then :
18868   $as_echo_n "(cached) " >&6
18869 else
18870   lt_cv_module_path_var="$shlibpath_var"
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18873 $as_echo "$lt_cv_module_path_var" >&6; }
18874 if test -n "$lt_cv_module_path_var"; then
18875
18876 cat >>confdefs.h <<_ACEOF
18877 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18878 _ACEOF
18879
18880 fi
18881
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18883 $as_echo_n "checking for the default library search path... " >&6; }
18884 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18885   $as_echo_n "(cached) " >&6
18886 else
18887   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18888 fi
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18890 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18891 if test -n "$lt_cv_sys_dlsearch_path"; then
18892   sys_dlsearch_path=
18893   for dir in $lt_cv_sys_dlsearch_path; do
18894     if test -z "$sys_dlsearch_path"; then
18895       sys_dlsearch_path="$dir"
18896     else
18897       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18898     fi
18899   done
18900
18901 cat >>confdefs.h <<_ACEOF
18902 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18903 _ACEOF
18904
18905 fi
18906
18907
18908 LT_DLLOADERS=
18909
18910
18911 ac_ext=c
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
18917
18918 LIBADD_DLOPEN=
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18920 $as_echo_n "checking for library containing dlopen... " >&6; }
18921 if test "${ac_cv_search_dlopen+set}" = set; then :
18922   $as_echo_n "(cached) " >&6
18923 else
18924   ac_func_search_save_LIBS=$LIBS
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h.  */
18927
18928 /* Override any GCC internal prototype to avoid an error.
18929    Use char because int might match the return type of a GCC
18930    builtin and then its argument prototype would still apply.  */
18931 #ifdef __cplusplus
18932 extern "C"
18933 #endif
18934 char dlopen ();
18935 int
18936 main ()
18937 {
18938 return dlopen ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 for ac_lib in '' dl; do
18944   if test -z "$ac_lib"; then
18945     ac_res="none required"
18946   else
18947     ac_res=-l$ac_lib
18948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18949   fi
18950   if ac_fn_c_try_link "$LINENO"; then :
18951   ac_cv_search_dlopen=$ac_res
18952 fi
18953 rm -f core conftest.err conftest.$ac_objext \
18954     conftest$ac_exeext
18955   if test "${ac_cv_search_dlopen+set}" = set; then :
18956   break
18957 fi
18958 done
18959 if test "${ac_cv_search_dlopen+set}" = set; then :
18960
18961 else
18962   ac_cv_search_dlopen=no
18963 fi
18964 rm conftest.$ac_ext
18965 LIBS=$ac_func_search_save_LIBS
18966 fi
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18968 $as_echo "$ac_cv_search_dlopen" >&6; }
18969 ac_res=$ac_cv_search_dlopen
18970 if test "$ac_res" != no; then :
18971   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18972
18973 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18974
18975         if test "$ac_cv_search_dlopen" != "none required" ; then
18976           LIBADD_DLOPEN="-ldl"
18977         fi
18978         libltdl_cv_lib_dl_dlopen="yes"
18979         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18980 else
18981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h.  */
18983 #if HAVE_DLFCN_H
18984 #  include <dlfcn.h>
18985 #endif
18986
18987 int
18988 main ()
18989 {
18990 dlopen(0, 0);
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 if ac_fn_c_try_link "$LINENO"; then :
18996
18997 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18998
18999             libltdl_cv_func_dlopen="yes"
19000             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19001 else
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19004 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19005   $as_echo_n "(cached) " >&6
19006 else
19007   ac_check_lib_save_LIBS=$LIBS
19008 LIBS="-lsvld  $LIBS"
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h.  */
19011
19012 /* Override any GCC internal prototype to avoid an error.
19013    Use char because int might match the return type of a GCC
19014    builtin and then its argument prototype would still apply.  */
19015 #ifdef __cplusplus
19016 extern "C"
19017 #endif
19018 char dlopen ();
19019 int
19020 main ()
19021 {
19022 return dlopen ();
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 if ac_fn_c_try_link "$LINENO"; then :
19028   ac_cv_lib_svld_dlopen=yes
19029 else
19030   ac_cv_lib_svld_dlopen=no
19031 fi
19032 rm -f core conftest.err conftest.$ac_objext \
19033     conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19035 fi
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19039
19040 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19041
19042                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19043                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19044 fi
19045
19046 fi
19047 rm -f core conftest.err conftest.$ac_objext \
19048     conftest$ac_exeext conftest.$ac_ext
19049 fi
19050
19051 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19052 then
19053   lt_save_LIBS="$LIBS"
19054   LIBS="$LIBS $LIBADD_DLOPEN"
19055   for ac_func in dlerror
19056 do :
19057   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19058 if test "x$ac_cv_func_dlerror" = x""yes; then :
19059   cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DLERROR 1
19061 _ACEOF
19062
19063 fi
19064 done
19065
19066   LIBS="$lt_save_LIBS"
19067 fi
19068
19069
19070 LIBADD_SHL_LOAD=
19071 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19072 if test "x$ac_cv_func_shl_load" = x""yes; then :
19073
19074 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19075
19076         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19077 else
19078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19079 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19080 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19081   $as_echo_n "(cached) " >&6
19082 else
19083   ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-ldld  $LIBS"
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h.  */
19087
19088 /* Override any GCC internal prototype to avoid an error.
19089    Use char because int might match the return type of a GCC
19090    builtin and then its argument prototype would still apply.  */
19091 #ifdef __cplusplus
19092 extern "C"
19093 #endif
19094 char shl_load ();
19095 int
19096 main ()
19097 {
19098 return shl_load ();
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 if ac_fn_c_try_link "$LINENO"; then :
19104   ac_cv_lib_dld_shl_load=yes
19105 else
19106   ac_cv_lib_dld_shl_load=no
19107 fi
19108 rm -f core conftest.err conftest.$ac_objext \
19109     conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19113 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19114 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19115
19116 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19117
19118             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19119             LIBADD_SHL_LOAD="-ldld"
19120 fi
19121
19122 fi
19123
19124
19125
19126 case $host_os in
19127 darwin[1567].*)
19128 # We only want this for pre-Mac OS X 10.4.
19129   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19130 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19131
19132 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19133
19134         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19135 fi
19136
19137   ;;
19138 beos*)
19139   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19140   ;;
19141 cygwin* | mingw* | os2* | pw32*)
19142   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19143 "
19144 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19145   ac_have_decl=1
19146 else
19147   ac_have_decl=0
19148 fi
19149
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19152 _ACEOF
19153
19154   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19155   ;;
19156 esac
19157
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19159 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19160 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19161   $as_echo_n "(cached) " >&6
19162 else
19163   ac_check_lib_save_LIBS=$LIBS
19164 LIBS="-ldld  $LIBS"
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h.  */
19167
19168 /* Override any GCC internal prototype to avoid an error.
19169    Use char because int might match the return type of a GCC
19170    builtin and then its argument prototype would still apply.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 char dld_link ();
19175 int
19176 main ()
19177 {
19178 return dld_link ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 if ac_fn_c_try_link "$LINENO"; then :
19184   ac_cv_lib_dld_dld_link=yes
19185 else
19186   ac_cv_lib_dld_dld_link=no
19187 fi
19188 rm -f core conftest.err conftest.$ac_objext \
19189     conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19191 fi
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19193 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19194 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19195
19196 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19197
19198                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19199 fi
19200
19201
19202
19203
19204 LT_DLPREOPEN=
19205 if test -n "$LT_DLLOADERS"
19206 then
19207   for lt_loader in $LT_DLLOADERS; do
19208     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19209   done
19210
19211 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19212
19213 fi
19214
19215
19216 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19217
19218
19219 ac_ext=c
19220 ac_cpp='$CPP $CPPFLAGS'
19221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19224
19225
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19227 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19228 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19229   $as_echo_n "(cached) " >&6
19230 else
19231   lt_cv_sys_symbol_underscore=no
19232   cat > conftest.$ac_ext <<_LT_EOF
19233 void nm_test_func(){}
19234 int main(){nm_test_func;return 0;}
19235 _LT_EOF
19236   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19237   (eval $ac_compile) 2>&5
19238   ac_status=$?
19239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19240   test $ac_status = 0; }; then
19241     # Now try to grab the symbols.
19242     ac_nlist=conftest.nm
19243     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19244   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19245   ac_status=$?
19246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247   test $ac_status = 0; } && test -s "$ac_nlist"; then
19248       # See whether the symbols have a leading underscore.
19249       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19250         lt_cv_sys_symbol_underscore=yes
19251       else
19252         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19253           :
19254         else
19255           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19256         fi
19257       fi
19258     else
19259       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19260     fi
19261   else
19262     echo "configure: failed program was:" >&5
19263     cat conftest.c >&5
19264   fi
19265   rm -rf conftest*
19266
19267 fi
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19269 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19270   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19271
19272
19273 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19274   if test x"$libltdl_cv_func_dlopen" = xyes ||
19275      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19277 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19278 if test "${libltdl_cv_need_uscore+set}" = set; then :
19279   $as_echo_n "(cached) " >&6
19280 else
19281   libltdl_cv_need_uscore=unknown
19282           save_LIBS="$LIBS"
19283           LIBS="$LIBS $LIBADD_DLOPEN"
19284           if test "$cross_compiling" = yes; then :
19285   libltdl_cv_need_uscore=cross
19286 else
19287   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19288   lt_status=$lt_dlunknown
19289   cat > conftest.$ac_ext <<_LT_EOF
19290 #line $LINENO "configure"
19291 #include "confdefs.h"
19292
19293 #if HAVE_DLFCN_H
19294 #include <dlfcn.h>
19295 #endif
19296
19297 #include <stdio.h>
19298
19299 #ifdef RTLD_GLOBAL
19300 #  define LT_DLGLOBAL           RTLD_GLOBAL
19301 #else
19302 #  ifdef DL_GLOBAL
19303 #    define LT_DLGLOBAL         DL_GLOBAL
19304 #  else
19305 #    define LT_DLGLOBAL         0
19306 #  endif
19307 #endif
19308
19309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19310    find out it does not work in some platform. */
19311 #ifndef LT_DLLAZY_OR_NOW
19312 #  ifdef RTLD_LAZY
19313 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19314 #  else
19315 #    ifdef DL_LAZY
19316 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19317 #    else
19318 #      ifdef RTLD_NOW
19319 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19320 #      else
19321 #        ifdef DL_NOW
19322 #          define LT_DLLAZY_OR_NOW      DL_NOW
19323 #        else
19324 #          define LT_DLLAZY_OR_NOW      0
19325 #        endif
19326 #      endif
19327 #    endif
19328 #  endif
19329 #endif
19330
19331 /* When -fvisbility=hidden is used, assume the code has been annotated
19332    correspondingly for the symbols needed.  */
19333 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19334 void fnord () __attribute__((visibility("default")));
19335 #endif
19336
19337 void fnord () { int i=42; }
19338 int main ()
19339 {
19340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19341   int status = $lt_dlunknown;
19342
19343   if (self)
19344     {
19345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19346       else
19347         {
19348           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19349           else puts (dlerror ());
19350         }
19351       /* dlclose (self); */
19352     }
19353   else
19354     puts (dlerror ());
19355
19356   return status;
19357 }
19358 _LT_EOF
19359   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19360   (eval $ac_link) 2>&5
19361   ac_status=$?
19362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19364     (./conftest; exit; ) >&5 2>/dev/null
19365     lt_status=$?
19366     case x$lt_status in
19367       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19368       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19369       x$lt_dlunknown|x*)  ;;
19370     esac
19371   else :
19372     # compilation failed
19373
19374   fi
19375 fi
19376 rm -fr conftest*
19377
19378           LIBS="$save_LIBS"
19379
19380 fi
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19382 $as_echo "$libltdl_cv_need_uscore" >&6; }
19383   fi
19384 fi
19385
19386 if test x"$libltdl_cv_need_uscore" = xyes; then
19387
19388 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19389
19390 fi
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19393 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19394 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19395   $as_echo_n "(cached) " >&6
19396 else
19397   # PORTME does your system automatically load deplibs for dlopen?
19398   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19399   # For now, we just catch OSes we know something about -- in the
19400   # future, we'll try test this programmatically.
19401   lt_cv_sys_dlopen_deplibs=unknown
19402   case $host_os in
19403   aix3*|aix4.1.*|aix4.2.*)
19404     # Unknown whether this is true for these versions of AIX, but
19405     # we want this `case' here to explicitly catch those versions.
19406     lt_cv_sys_dlopen_deplibs=unknown
19407     ;;
19408   aix[4-9]*)
19409     lt_cv_sys_dlopen_deplibs=yes
19410     ;;
19411   amigaos*)
19412     case $host_cpu in
19413     powerpc)
19414       lt_cv_sys_dlopen_deplibs=no
19415       ;;
19416     esac
19417     ;;
19418   darwin*)
19419     # Assuming the user has installed a libdl from somewhere, this is true
19420     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19421     lt_cv_sys_dlopen_deplibs=yes
19422     ;;
19423   freebsd* | dragonfly*)
19424     lt_cv_sys_dlopen_deplibs=yes
19425     ;;
19426   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19427     # GNU and its variants, using gnu ld.so (Glibc)
19428     lt_cv_sys_dlopen_deplibs=yes
19429     ;;
19430   hpux10*|hpux11*)
19431     lt_cv_sys_dlopen_deplibs=yes
19432     ;;
19433   interix*)
19434     lt_cv_sys_dlopen_deplibs=yes
19435     ;;
19436   irix[12345]*|irix6.[01]*)
19437     # Catch all versions of IRIX before 6.2, and indicate that we don't
19438     # know how it worked for any of those versions.
19439     lt_cv_sys_dlopen_deplibs=unknown
19440     ;;
19441   irix*)
19442     # The case above catches anything before 6.2, and it's known that
19443     # at 6.2 and later dlopen does load deplibs.
19444     lt_cv_sys_dlopen_deplibs=yes
19445     ;;
19446   netbsd*)
19447     lt_cv_sys_dlopen_deplibs=yes
19448     ;;
19449   openbsd*)
19450     lt_cv_sys_dlopen_deplibs=yes
19451     ;;
19452   osf[1234]*)
19453     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19454     # it did *not* use an RPATH in a shared library to find objects the
19455     # library depends on, so we explicitly say `no'.
19456     lt_cv_sys_dlopen_deplibs=no
19457     ;;
19458   osf5.0|osf5.0a|osf5.1)
19459     # dlopen *does* load deplibs and with the right loader patch applied
19460     # it even uses RPATH in a shared library to search for shared objects
19461     # that the library depends on, but there's no easy way to know if that
19462     # patch is installed.  Since this is the case, all we can really
19463     # say is unknown -- it depends on the patch being installed.  If
19464     # it is, this changes to `yes'.  Without it, it would be `no'.
19465     lt_cv_sys_dlopen_deplibs=unknown
19466     ;;
19467   osf*)
19468     # the two cases above should catch all versions of osf <= 5.1.  Read
19469     # the comments above for what we know about them.
19470     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19471     # is used to find them so we can finally say `yes'.
19472     lt_cv_sys_dlopen_deplibs=yes
19473     ;;
19474   qnx*)
19475     lt_cv_sys_dlopen_deplibs=yes
19476     ;;
19477   solaris*)
19478     lt_cv_sys_dlopen_deplibs=yes
19479     ;;
19480   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19481     libltdl_cv_sys_dlopen_deplibs=yes
19482     ;;
19483   esac
19484
19485 fi
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19487 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19488 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19489
19490 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19491
19492 fi
19493
19494 :
19495
19496 for ac_header in argz.h
19497 do :
19498   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19499 "
19500 if test "x$ac_cv_header_argz_h" = x""yes; then :
19501   cat >>confdefs.h <<_ACEOF
19502 #define HAVE_ARGZ_H 1
19503 _ACEOF
19504
19505 fi
19506
19507 done
19508
19509
19510 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19511 #  include <argz.h>
19512 #endif
19513 "
19514 if test "x$ac_cv_type_error_t" = x""yes; then :
19515
19516 cat >>confdefs.h <<_ACEOF
19517 #define HAVE_ERROR_T 1
19518 _ACEOF
19519
19520
19521 else
19522
19523 $as_echo "#define error_t int" >>confdefs.h
19524
19525
19526 $as_echo "#define __error_t_defined 1" >>confdefs.h
19527
19528 fi
19529
19530
19531 ARGZ_H=
19532 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19533         argz_next argz_stringify
19534 do :
19535   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19538   cat >>confdefs.h <<_ACEOF
19539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19540 _ACEOF
19541
19542 else
19543   ARGZ_H=argz.h;
19544
19545   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19546
19547 fi
19548 done
19549
19550
19551 if test -z "$ARGZ_H"; then :
19552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19553 $as_echo_n "checking if argz actually works... " >&6; }
19554 if test "${lt_cv_sys_argz_works+set}" = set; then :
19555   $as_echo_n "(cached) " >&6
19556 else
19557   case $host_os in #(
19558          *cygwin*)
19559            lt_cv_sys_argz_works=no
19560            if test "$cross_compiling" != no; then
19561              lt_cv_sys_argz_works="guessing no"
19562            else
19563              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19564              save_IFS=$IFS
19565              IFS=-.
19566              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19567              IFS=$save_IFS
19568              lt_os_major=${2-0}
19569              lt_os_minor=${3-0}
19570              lt_os_micro=${4-0}
19571              if test "$lt_os_major" -gt 1 \
19572                 || { test "$lt_os_major" -eq 1 \
19573                   && { test "$lt_os_minor" -gt 5 \
19574                     || { test "$lt_os_minor" -eq 5 \
19575                       && test "$lt_os_micro" -gt 24; }; }; }; then
19576                lt_cv_sys_argz_works=yes
19577              fi
19578            fi
19579            ;; #(
19580          *) lt_cv_sys_argz_works=yes ;;
19581          esac
19582 fi
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19584 $as_echo "$lt_cv_sys_argz_works" >&6; }
19585      if test $lt_cv_sys_argz_works = yes; then :
19586
19587 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19588
19589 else
19590   ARGZ_H=argz.h
19591
19592
19593   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19594
19595 fi
19596 fi
19597
19598
19599
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19601 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19602 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19603   $as_echo_n "(cached) " >&6
19604 else
19605   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19606     libltdl_cv_preloaded_symbols=yes
19607   else
19608     libltdl_cv_preloaded_symbols=no
19609   fi
19610
19611 fi
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19613 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19614 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19615
19616 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19617
19618 fi
19619
19620 # Set options
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632 # Check whether --with-included_ltdl was given.
19633 if test "${with_included_ltdl+set}" = set; then :
19634   withval=$with_included_ltdl;
19635 fi
19636
19637
19638 if test "x$with_included_ltdl" != xyes; then
19639   # We are not being forced to use the included libltdl sources, so
19640   # decide whether there is a useful installed version we can use.
19641   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19642
19643 "
19644 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19645   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19646             #include <ltdl.h>
19647 "
19648 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19650 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19651 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19652   $as_echo_n "(cached) " >&6
19653 else
19654   ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-lltdl  $LIBS"
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h.  */
19658
19659 /* Override any GCC internal prototype to avoid an error.
19660    Use char because int might match the return type of a GCC
19661    builtin and then its argument prototype would still apply.  */
19662 #ifdef __cplusplus
19663 extern "C"
19664 #endif
19665 char lt_dladvise_preload ();
19666 int
19667 main ()
19668 {
19669 return lt_dladvise_preload ();
19670   ;
19671   return 0;
19672 }
19673 _ACEOF
19674 if ac_fn_c_try_link "$LINENO"; then :
19675   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19676 else
19677   ac_cv_lib_ltdl_lt_dladvise_preload=no
19678 fi
19679 rm -f core conftest.err conftest.$ac_objext \
19680     conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19682 fi
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19684 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19685 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19686   with_included_ltdl=no
19687 else
19688   with_included_ltdl=yes
19689 fi
19690
19691 else
19692   with_included_ltdl=yes
19693 fi
19694
19695 else
19696   with_included_ltdl=yes
19697 fi
19698
19699
19700 fi
19701
19702
19703
19704
19705 # Check whether --with-ltdl_include was given.
19706 if test "${with_ltdl_include+set}" = set; then :
19707   withval=$with_ltdl_include;
19708 fi
19709
19710
19711 if test -n "$with_ltdl_include"; then
19712   if test -f "$with_ltdl_include/ltdl.h"; then :
19713   else
19714     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19715   fi
19716 else
19717   with_ltdl_include=no
19718 fi
19719
19720
19721 # Check whether --with-ltdl_lib was given.
19722 if test "${with_ltdl_lib+set}" = set; then :
19723   withval=$with_ltdl_lib;
19724 fi
19725
19726
19727 if test -n "$with_ltdl_lib"; then
19728   if test -f "$with_ltdl_lib/libltdl.la"; then :
19729   else
19730     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19731   fi
19732 else
19733   with_ltdl_lib=no
19734 fi
19735
19736 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19737   ,yes,no,no,)
19738         case $enable_ltdl_convenience in
19739   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19740   "") enable_ltdl_convenience=yes
19741       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19742 esac
19743 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19744 LTDLDEPS=$LIBLTDL
19745 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19746
19747
19748
19749
19750
19751 # For backwards non-gettext consistent compatibility...
19752 INCLTDL="$LTDLINCL"
19753
19754
19755         ;;
19756   ,no,no,no,)
19757         # If the included ltdl is not to be used, then use the
19758         # preinstalled libltdl we found.
19759
19760 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19761
19762         LIBLTDL=-lltdl
19763         LTDLDEPS=
19764         LTDLINCL=
19765         ;;
19766   ,no*,no,*)
19767         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19768         ;;
19769   *)    with_included_ltdl=no
19770         LIBLTDL="-L$with_ltdl_lib -lltdl"
19771         LTDLDEPS=
19772         LTDLINCL="-I$with_ltdl_include"
19773         ;;
19774 esac
19775 INCLTDL="$LTDLINCL"
19776
19777 # Report our decision...
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19779 $as_echo_n "checking where to find libltdl headers... " >&6; }
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19781 $as_echo "$LTDLINCL" >&6; }
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19783 $as_echo_n "checking where to find libltdl library... " >&6; }
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19785 $as_echo "$LIBLTDL" >&6; }
19786
19787
19788
19789 # Check whether --enable-ltdl-install was given.
19790 if test "${enable_ltdl_install+set}" = set; then :
19791   enableval=$enable_ltdl_install;
19792 fi
19793
19794
19795 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19796   *yes*) ;;
19797   *) enable_ltdl_convenience=yes ;;
19798 esac
19799
19800  if test x"${enable_ltdl_install-no}" != xno; then
19801   INSTALL_LTDL_TRUE=
19802   INSTALL_LTDL_FALSE='#'
19803 else
19804   INSTALL_LTDL_TRUE='#'
19805   INSTALL_LTDL_FALSE=
19806 fi
19807
19808   if test x"${enable_ltdl_convenience-no}" != xno; then
19809   CONVENIENCE_LTDL_TRUE=
19810   CONVENIENCE_LTDL_FALSE='#'
19811 else
19812   CONVENIENCE_LTDL_TRUE='#'
19813   CONVENIENCE_LTDL_FALSE=
19814 fi
19815
19816
19817
19818
19819
19820
19821 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19822 # the user used.  This is so that ltdl.h can pick up the parent projects
19823 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19824 # definitions required by ltdl.c.
19825 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19826
19827
19828
19829 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19830 do :
19831   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19833 "
19834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19835   cat >>confdefs.h <<_ACEOF
19836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837 _ACEOF
19838
19839 fi
19840
19841 done
19842
19843
19844 for ac_func in closedir opendir readdir
19845 do :
19846   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19849   cat >>confdefs.h <<_ACEOF
19850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 else
19854
19855
19856   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19857
19858 fi
19859 done
19860
19861 for ac_func in strlcat strlcpy
19862 do :
19863   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19866   cat >>confdefs.h <<_ACEOF
19867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19868 _ACEOF
19869
19870 else
19871
19872
19873   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19874
19875 fi
19876 done
19877
19878
19879
19880 cat >>confdefs.h <<_ACEOF
19881 #define LT_LIBEXT "$libext"
19882 _ACEOF
19883
19884
19885 name=ltdl
19886 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19887
19888
19889
19890
19891
19892
19893
19894
19895 # Only expand once:
19896
19897
19898
19899 # Check to see if building shared libraries
19900 libtool_build_shared_libs='no'
19901 if test "$enable_shared" = 'yes'; then
19902     libtool_build_shared_libs='yes'
19903 fi
19904
19905 # Check to see if building static libraries
19906 libtool_build_static_libs='no'
19907 if test "$enable_static" = 'yes'; then
19908     libtool_build_static_libs='yes'
19909 fi
19910
19911  if test "${libtool_build_shared_libs}" = 'yes'; then
19912   WITH_SHARED_LIBS_TRUE=
19913   WITH_SHARED_LIBS_FALSE='#'
19914 else
19915   WITH_SHARED_LIBS_TRUE='#'
19916   WITH_SHARED_LIBS_FALSE=
19917 fi
19918
19919 #
19920 # Enable support for building loadable modules
19921 #
19922
19923 # Check whether --with-modules was given.
19924 if test "${with_modules+set}" = set; then :
19925   withval=$with_modules; with_modules=$withval
19926 else
19927   with_modules='no'
19928 fi
19929
19930
19931 # Only allow building loadable modules if we are building shared libraries
19932 if test "$with_modules" != 'no' ; then
19933     if test "$libtool_build_shared_libs" = 'no'; then
19934         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19935 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19936         with_modules='no'
19937     fi
19938 fi
19939 if test "$with_modules" != 'no'; then
19940
19941 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19942
19943 fi
19944  if test "$with_modules" != 'no'; then
19945   WITH_MODULES_TRUE=
19946   WITH_MODULES_FALSE='#'
19947 else
19948   WITH_MODULES_TRUE='#'
19949   WITH_MODULES_FALSE=
19950 fi
19951
19952
19953 # Enable building/use of libltdl if we are building shared libraries regardless
19954 # of whether modules are built or not.
19955 with_ltdl='no'
19956 if test "$libtool_build_shared_libs" != 'no'; then
19957     with_ltdl='yes'
19958 fi
19959
19960  if test "$with_ltdl" != 'no'; then
19961   WITH_LTDL_TRUE=
19962   WITH_LTDL_FALSE='#'
19963 else
19964   WITH_LTDL_TRUE='#'
19965   WITH_LTDL_FALSE=
19966 fi
19967
19968 if test "$with_ltdl" != 'no'; then
19969
19970 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19971
19972
19973     # Set DLLDFLAGS
19974     if test X"$enable_shared" = Xyes; then
19975         DLLDFLAGS=-export-dynamic
19976
19977     fi
19978 fi
19979
19980 # Enable build using delegate libraries built in subdirectories rather than installed
19981 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19982 # Check whether --enable-delegate-build was given.
19983 if test "${enable_delegate_build+set}" = set; then :
19984   enableval=$enable_delegate_build; enable_delegate_build=$enableval
19985 else
19986   enable_delegate_build='no'
19987 fi
19988
19989
19990 # Check whether --enable-deprecated was given.
19991 if test "${enable_deprecated+set}" = set; then :
19992   enableval=$enable_deprecated; enable_deprecated=$enableval
19993 else
19994   enable_deprecated='no'
19995 fi
19996
19997
19998 if test "$enable_deprecated" = 'yes'; then
19999
20000 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20001
20002 else
20003   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20004 fi
20005
20006 # Build a version of ImageMagick which operates uninstalled.
20007 # Used to build distributions located via MAGICK_HOME / executable path
20008 # Check whether --enable-installed was given.
20009 if test "${enable_installed+set}" = set; then :
20010   enableval=$enable_installed; enable_installed=$enableval
20011 else
20012   enable_installed='yes'
20013 fi
20014
20015
20016 if test "$enable_installed" = 'yes'; then
20017
20018 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20019
20020 else
20021     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20022 fi
20023
20024 # Permit enciphering and deciphering image pixels.
20025 # Check whether --enable-cipher was given.
20026 if test "${enable_cipher+set}" = set; then :
20027   enableval=$enable_cipher; enable_cipher=$enableval
20028 else
20029   enable_cipher='yes'
20030 fi
20031
20032
20033 if test "$enable_cipher" = 'yes'; then
20034
20035 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20036
20037 fi
20038
20039 # Build an embeddable version of ImageMagick.
20040 # Check whether --enable-embeddable was given.
20041 if test "${enable_embeddable+set}" = set; then :
20042   enableval=$enable_embeddable; enable_embeddable=$enableval
20043 else
20044   enable_embeddable='no'
20045 fi
20046
20047
20048 if test "$enable_embeddable" = 'yes'; then
20049
20050 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20051
20052 fi
20053
20054 # Build a high dynamic range version of ImageMagick.
20055 # Check whether --enable-hdri was given.
20056 if test "${enable_hdri+set}" = set; then :
20057   enableval=$enable_hdri; enable_hdri=$enableval
20058 else
20059   enable_hdri='no'
20060 fi
20061
20062
20063 MAGICK_HDRI=""
20064 if test "$enable_hdri" = 'yes'; then
20065     MAGICK_HDRI="HDRI"
20066
20067 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20068
20069     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20070 fi
20071
20072 # Build a version of ImageMagick with assert statements.
20073 # Check whether --enable-assert was given.
20074 if test "${enable_assert+set}" = set; then :
20075   enableval=$enable_assert; enable_assert=$enableval
20076 else
20077   enable_assert='yes'
20078 fi
20079
20080
20081 if test "$enable_assert" = 'no'; then
20082
20083 $as_echo "#define NDEBUG 1" >>confdefs.h
20084
20085 fi
20086
20087 # Add configure option --enable-maintainer-mode which enables dependency
20088 # checking and generation useful to package maintainers.  This is made an
20089 # option to avoid confusing end users.
20090
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20093     # Check whether --enable-maintainer-mode was given.
20094 if test "${enable_maintainer_mode+set}" = set; then :
20095   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20096 else
20097   USE_MAINTAINER_MODE=no
20098 fi
20099
20100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20102    if test $USE_MAINTAINER_MODE = yes; then
20103   MAINTAINER_MODE_TRUE=
20104   MAINTAINER_MODE_FALSE='#'
20105 else
20106   MAINTAINER_MODE_TRUE='#'
20107   MAINTAINER_MODE_FALSE=
20108 fi
20109
20110   MAINT=$MAINTAINER_MODE_TRUE
20111
20112
20113
20114
20115 # Enable ccmalloc memory debugging support
20116 # Check whether --enable-ccmalloc was given.
20117 if test "${enable_ccmalloc+set}" = set; then :
20118   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20119 else
20120   enable_ccmalloc='no'
20121 fi
20122
20123
20124 # Enable Electric Fence memory debugging support
20125 # Check whether --enable-efence was given.
20126 if test "${enable_efence+set}" = set; then :
20127   enableval=$enable_efence; enable_efence=$enableval
20128 else
20129   enable_efence='no'
20130 fi
20131
20132
20133 # Enable prof-based profiling support
20134 # Check whether --enable-prof was given.
20135 if test "${enable_prof+set}" = set; then :
20136   enableval=$enable_prof; enable_prof=$enableval
20137 else
20138   enable_prof='no'
20139 fi
20140
20141
20142 # Enable gprof-based profiling support
20143 # Check whether --enable-gprof was given.
20144 if test "${enable_gprof+set}" = set; then :
20145   enableval=$enable_gprof; enable_gprof=$enableval
20146 else
20147   enable_gprof='no'
20148 fi
20149
20150
20151 # Enable gcov-based profiling support
20152 # Check whether --enable-gcov was given.
20153 if test "${enable_gcov+set}" = set; then :
20154   enableval=$enable_gcov; enable_gcov=$enableval
20155 else
20156   enable_gcov='no'
20157 fi
20158
20159
20160 enable_profiling='no'
20161 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20162     enable_profiling='yes'
20163     if test "$libtool_build_shared_libs" = 'yes'; then
20164         echo "Warning: Can not profile code using shared libraries"
20165     fi
20166 fi
20167
20168 # Magick API method prefix
20169
20170 # Check whether --with-method-prefix was given.
20171 if test "${with_method_prefix+set}" = set; then :
20172   withval=$with_method_prefix; with_method_prefix=$enableval
20173 else
20174   with_method_prefix=''
20175 fi
20176
20177
20178 if test "$with_method_prefix" != ''; then
20179
20180 cat >>confdefs.h <<_ACEOF
20181 #define NAMESPACE_PREFIX $with_method_prefix
20182 _ACEOF
20183
20184 fi
20185
20186 # Number of bits in a Quantum
20187
20188 # Check whether --with-quantum-depth was given.
20189 if test "${with_quantum_depth+set}" = set; then :
20190   withval=$with_quantum_depth; with_quantum_depth=$withval
20191 else
20192   with_quantum_depth=16
20193 fi
20194
20195
20196 if test "$with_quantum_depth" != '8'; then
20197     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20198 fi
20199
20200 case "${with_quantum_depth}" in
20201     8 ) ;;
20202     16 ) ;;
20203     32 ) ;;
20204     64 ) ;;
20205     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20206 esac
20207 QUANTUM_DEPTH="$with_quantum_depth"
20208
20209 cat >>confdefs.h <<_ACEOF
20210 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20211 _ACEOF
20212
20213
20214 # Set pixel cache threshold
20215
20216 # Check whether --with-cache was given.
20217 if test "${with_cache+set}" = set; then :
20218   withval=$with_cache; with_cache=$withval
20219 else
20220   with_cache=''
20221 fi
20222
20223
20224 if test "$with_cache" != ''; then
20225
20226 cat >>confdefs.h <<_ACEOF
20227 #define PixelCacheThreshold $with_cache
20228 _ACEOF
20229
20230     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20231 fi
20232
20233 # Disable/Enable support for full delegate paths
20234
20235 # Check whether --with-frozenpaths was given.
20236 if test "${with_frozenpaths+set}" = set; then :
20237   withval=$with_frozenpaths; with_frozenpaths=$withval
20238 else
20239   with_frozenpaths='no'
20240 fi
20241
20242
20243 # Enable build/install of Magick++
20244
20245 # Check whether --with-magick-plus-plus was given.
20246 if test "${with_magick_plus_plus+set}" = set; then :
20247   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20248 else
20249   with_magick_plus_plus='yes'
20250 fi
20251
20252
20253 # Disable build/install of PerlMagick.
20254
20255 # Check whether --with-perl was given.
20256 if test "${with_perl+set}" = set; then :
20257   withval=$with_perl; with_perl=$withval
20258 else
20259   with_perl='no'
20260 fi
20261
20262
20263 # Options to pass when configuring PerlMagick
20264
20265 # Check whether --with-perl-options was given.
20266 if test "${with_perl_options+set}" = set; then :
20267   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20268 fi
20269
20270
20271
20272 # Enable umem, object-caching memory allocation library.
20273
20274 # Check whether --with-umem was given.
20275 if test "${with_umem+set}" = set; then :
20276   withval=$with_umem; with_umem=$withval
20277 else
20278   with_umem='no'
20279 fi
20280
20281 if test "$with_umem" != 'yes' ; then
20282     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20283 fi
20284
20285 #
20286 # Specify path to shared libstdc++ if not in normal location
20287 #
20288
20289 # Check whether --with-libstdc was given.
20290 if test "${with_libstdc+set}" = set; then :
20291   withval=$with_libstdc; with_libstdc=$withval
20292 else
20293   with_libstdc=''
20294 fi
20295
20296
20297 if test "$with_libstdc" != ''; then
20298     if test -d "$with_libstdc"; then
20299         LIBSTDCLDFLAGS="-L$with_libstdc"
20300     fi
20301 fi
20302
20303
20304 # Does gcc required -traditional?
20305 if test $ac_cv_c_compiler_gnu = yes; then
20306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20307 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20308 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20309   $as_echo_n "(cached) " >&6
20310 else
20311     ac_pattern="Autoconf.*'x'"
20312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h.  */
20314 #include <sgtty.h>
20315 Autoconf TIOCGETP
20316 _ACEOF
20317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20318   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20319   ac_cv_prog_gcc_traditional=yes
20320 else
20321   ac_cv_prog_gcc_traditional=no
20322 fi
20323 rm -f conftest*
20324
20325
20326   if test $ac_cv_prog_gcc_traditional = no; then
20327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h.  */
20329 #include <termio.h>
20330 Autoconf TCGETA
20331 _ACEOF
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20334   ac_cv_prog_gcc_traditional=yes
20335 fi
20336 rm -f conftest*
20337
20338   fi
20339 fi
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20341 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20342   if test $ac_cv_prog_gcc_traditional = yes; then
20343     CC="$CC -traditional"
20344   fi
20345 fi
20346
20347
20348 ########
20349 #
20350 # Set defines required to build DLLs and modules using MinGW
20351 #
20352 ########
20353 # These options are set for multi-thread DLL module build
20354 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20355 #  module:              _DLL
20356 #  executable/Magick++: _DLL _MAGICKMOD_
20357 MODULE_EXTRA_CPPFLAGS=''
20358 LIBRARY_EXTRA_CPPFLAGS=''
20359 if test "${native_win32_build}" = 'yes'; then
20360     if test "${libtool_build_shared_libs}" = 'yes'; then
20361         CPPFLAGS="$CPPFLAGS -D_DLL"
20362         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20363         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20364         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20365         if test "$with_modules" = 'yes'; then
20366             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20367         else
20368             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20369         fi
20370     else
20371         CPPFLAGS="$CPPFLAGS -D_LIB"
20372         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20373         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20374     fi
20375     if test "$with_threads" = 'yes'; then
20376          CPPFLAGS="$CPPFLAGS -D_MT"
20377          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20378          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20379     fi
20380 fi
20381
20382
20383
20384 # Check standard headers
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20386 $as_echo_n "checking for ANSI C header files... " >&6; }
20387 if test "${ac_cv_header_stdc+set}" = set; then :
20388   $as_echo_n "(cached) " >&6
20389 else
20390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h.  */
20392 #include <stdlib.h>
20393 #include <stdarg.h>
20394 #include <string.h>
20395 #include <float.h>
20396
20397 int
20398 main ()
20399 {
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 if ac_fn_c_try_compile "$LINENO"; then :
20406   ac_cv_header_stdc=yes
20407 else
20408   ac_cv_header_stdc=no
20409 fi
20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20411
20412 if test $ac_cv_header_stdc = yes; then
20413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h.  */
20416 #include <string.h>
20417
20418 _ACEOF
20419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20420   $EGREP "memchr" >/dev/null 2>&1; then :
20421
20422 else
20423   ac_cv_header_stdc=no
20424 fi
20425 rm -f conftest*
20426
20427 fi
20428
20429 if test $ac_cv_header_stdc = yes; then
20430   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h.  */
20433 #include <stdlib.h>
20434
20435 _ACEOF
20436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20437   $EGREP "free" >/dev/null 2>&1; then :
20438
20439 else
20440   ac_cv_header_stdc=no
20441 fi
20442 rm -f conftest*
20443
20444 fi
20445
20446 if test $ac_cv_header_stdc = yes; then
20447   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20448   if test "$cross_compiling" = yes; then :
20449   :
20450 else
20451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h.  */
20453 #include <ctype.h>
20454 #include <stdlib.h>
20455 #if ((' ' & 0x0FF) == 0x020)
20456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20458 #else
20459 # define ISLOWER(c) \
20460                    (('a' <= (c) && (c) <= 'i') \
20461                      || ('j' <= (c) && (c) <= 'r') \
20462                      || ('s' <= (c) && (c) <= 'z'))
20463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20464 #endif
20465
20466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20467 int
20468 main ()
20469 {
20470   int i;
20471   for (i = 0; i < 256; i++)
20472     if (XOR (islower (i), ISLOWER (i))
20473         || toupper (i) != TOUPPER (i))
20474       return 2;
20475   return 0;
20476 }
20477 _ACEOF
20478 if ac_fn_c_try_run "$LINENO"; then :
20479
20480 else
20481   ac_cv_header_stdc=no
20482 fi
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20484   conftest.$ac_objext conftest.beam conftest.$ac_ext
20485 fi
20486
20487 fi
20488 fi
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20490 $as_echo "$ac_cv_header_stdc" >&6; }
20491 if test $ac_cv_header_stdc = yes; then
20492
20493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20494
20495 fi
20496
20497 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20498     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20499     header files.  Compilation cannot proceed.  Please install the ANSI C
20500     headers and rerun this script." >&5
20501 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20502     header files.  Compilation cannot proceed.  Please install the ANSI C
20503     headers and rerun this script." >&2;};
20504 fi
20505
20506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20507 $as_echo_n "checking whether to enable assertions... " >&6; }
20508   # Check whether --enable-assert was given.
20509 if test "${enable_assert+set}" = set; then :
20510   enableval=$enable_assert; ac_enable_assert=$enableval
20511      if       test "x$enableval" = xno; then :
20512
20513 $as_echo "#define NDEBUG 1" >>confdefs.h
20514
20515 elif test "x$enableval" != xyes; then :
20516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20517 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20518         ac_enable_assert=yes
20519 fi
20520 else
20521   ac_enable_assert=yes
20522 fi
20523
20524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20525 $as_echo "$ac_enable_assert" >&6; }
20526
20527 ac_header_dirent=no
20528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20529   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20531 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20532 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h.  */
20537 #include <sys/types.h>
20538 #include <$ac_hdr>
20539
20540 int
20541 main ()
20542 {
20543 if ((DIR *) 0)
20544 return 0;
20545   ;
20546   return 0;
20547 }
20548 _ACEOF
20549 if ac_fn_c_try_compile "$LINENO"; then :
20550   eval "$as_ac_Header=yes"
20551 else
20552   eval "$as_ac_Header=no"
20553 fi
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555 fi
20556 eval ac_res=\$$as_ac_Header
20557                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20558 $as_echo "$ac_res" >&6; }
20559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20560   cat >>confdefs.h <<_ACEOF
20561 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20562 _ACEOF
20563
20564 ac_header_dirent=$ac_hdr; break
20565 fi
20566
20567 done
20568 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20569 if test $ac_header_dirent = dirent.h; then
20570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20571 $as_echo_n "checking for library containing opendir... " >&6; }
20572 if test "${ac_cv_search_opendir+set}" = set; then :
20573   $as_echo_n "(cached) " >&6
20574 else
20575   ac_func_search_save_LIBS=$LIBS
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h.  */
20578
20579 /* Override any GCC internal prototype to avoid an error.
20580    Use char because int might match the return type of a GCC
20581    builtin and then its argument prototype would still apply.  */
20582 #ifdef __cplusplus
20583 extern "C"
20584 #endif
20585 char opendir ();
20586 int
20587 main ()
20588 {
20589 return opendir ();
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 for ac_lib in '' dir; do
20595   if test -z "$ac_lib"; then
20596     ac_res="none required"
20597   else
20598     ac_res=-l$ac_lib
20599     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20600   fi
20601   if ac_fn_c_try_link "$LINENO"; then :
20602   ac_cv_search_opendir=$ac_res
20603 fi
20604 rm -f core conftest.err conftest.$ac_objext \
20605     conftest$ac_exeext
20606   if test "${ac_cv_search_opendir+set}" = set; then :
20607   break
20608 fi
20609 done
20610 if test "${ac_cv_search_opendir+set}" = set; then :
20611
20612 else
20613   ac_cv_search_opendir=no
20614 fi
20615 rm conftest.$ac_ext
20616 LIBS=$ac_func_search_save_LIBS
20617 fi
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20619 $as_echo "$ac_cv_search_opendir" >&6; }
20620 ac_res=$ac_cv_search_opendir
20621 if test "$ac_res" != no; then :
20622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20623
20624 fi
20625
20626 else
20627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20628 $as_echo_n "checking for library containing opendir... " >&6; }
20629 if test "${ac_cv_search_opendir+set}" = set; then :
20630   $as_echo_n "(cached) " >&6
20631 else
20632   ac_func_search_save_LIBS=$LIBS
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h.  */
20635
20636 /* Override any GCC internal prototype to avoid an error.
20637    Use char because int might match the return type of a GCC
20638    builtin and then its argument prototype would still apply.  */
20639 #ifdef __cplusplus
20640 extern "C"
20641 #endif
20642 char opendir ();
20643 int
20644 main ()
20645 {
20646 return opendir ();
20647   ;
20648   return 0;
20649 }
20650 _ACEOF
20651 for ac_lib in '' x; do
20652   if test -z "$ac_lib"; then
20653     ac_res="none required"
20654   else
20655     ac_res=-l$ac_lib
20656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20657   fi
20658   if ac_fn_c_try_link "$LINENO"; then :
20659   ac_cv_search_opendir=$ac_res
20660 fi
20661 rm -f core conftest.err conftest.$ac_objext \
20662     conftest$ac_exeext
20663   if test "${ac_cv_search_opendir+set}" = set; then :
20664   break
20665 fi
20666 done
20667 if test "${ac_cv_search_opendir+set}" = set; then :
20668
20669 else
20670   ac_cv_search_opendir=no
20671 fi
20672 rm conftest.$ac_ext
20673 LIBS=$ac_func_search_save_LIBS
20674 fi
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20676 $as_echo "$ac_cv_search_opendir" >&6; }
20677 ac_res=$ac_cv_search_opendir
20678 if test "$ac_res" != no; then :
20679   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20680
20681 fi
20682
20683 fi
20684
20685
20686 # Check additional headers
20687 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
20688 do :
20689   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20692   cat >>confdefs.h <<_ACEOF
20693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694 _ACEOF
20695
20696 fi
20697
20698 done
20699
20700
20701 ########
20702 #
20703 # Checks for typedefs, structures, and compiler characteristics.
20704 #
20705 ########
20706
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20708 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20709 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20710   $as_echo_n "(cached) " >&6
20711 else
20712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713 /* end confdefs.h.  */
20714
20715 #include <stdbool.h>
20716 #ifndef bool
20717  "error: bool is not defined"
20718 #endif
20719 #ifndef false
20720  "error: false is not defined"
20721 #endif
20722 #if false
20723  "error: false is not 0"
20724 #endif
20725 #ifndef true
20726  "error: true is not defined"
20727 #endif
20728 #if true != 1
20729  "error: true is not 1"
20730 #endif
20731 #ifndef __bool_true_false_are_defined
20732  "error: __bool_true_false_are_defined is not defined"
20733 #endif
20734
20735         struct s { _Bool s: 1; _Bool t; } s;
20736
20737         char a[true == 1 ? 1 : -1];
20738         char b[false == 0 ? 1 : -1];
20739         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20740         char d[(bool) 0.5 == true ? 1 : -1];
20741         bool e = &s;
20742         char f[(_Bool) 0.0 == false ? 1 : -1];
20743         char g[true];
20744         char h[sizeof (_Bool)];
20745         char i[sizeof s.t];
20746         enum { j = false, k = true, l = false * true, m = true * 256 };
20747         /* The following fails for
20748            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20749         _Bool n[m];
20750         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20751         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20752 #       if defined __xlc__ || defined __GNUC__
20753          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20754             reported by James Lemley on 2005-10-05; see
20755             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20756             This test is not quite right, since xlc is allowed to
20757             reject this program, as the initializer for xlcbug is
20758             not one of the forms that C requires support for.
20759             However, doing the test right would require a runtime
20760             test, and that would make cross-compilation harder.
20761             Let us hope that IBM fixes the xlc bug, and also adds
20762             support for this kind of constant expression.  In the
20763             meantime, this test will reject xlc, which is OK, since
20764             our stdbool.h substitute should suffice.  We also test
20765             this with GCC, where it should work, to detect more
20766             quickly whether someone messes up the test in the
20767             future.  */
20768          char digs[] = "0123456789";
20769          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20770 #       endif
20771         /* Catch a bug in an HP-UX C compiler.  See
20772            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20773            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20774          */
20775         _Bool q = true;
20776         _Bool *pq = &q;
20777
20778 int
20779 main ()
20780 {
20781
20782         *pq |= q;
20783         *pq |= ! q;
20784         /* Refer to every declared value, to avoid compiler optimizations.  */
20785         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20786                 + !m + !n + !o + !p + !q + !pq);
20787
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 if ac_fn_c_try_compile "$LINENO"; then :
20793   ac_cv_header_stdbool_h=yes
20794 else
20795   ac_cv_header_stdbool_h=no
20796 fi
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 fi
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20800 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20801 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20802 if test "x$ac_cv_type__Bool" = x""yes; then :
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE__BOOL 1
20806 _ACEOF
20807
20808
20809 fi
20810
20811 if test $ac_cv_header_stdbool_h = yes; then
20812
20813 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20814
20815 fi
20816
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20818 $as_echo_n "checking for working volatile... " >&6; }
20819 if test "${ac_cv_c_volatile+set}" = set; then :
20820   $as_echo_n "(cached) " >&6
20821 else
20822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h.  */
20824
20825 int
20826 main ()
20827 {
20828
20829 volatile int x;
20830 int * volatile y = (int *) 0;
20831 return !x && !y;
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 if ac_fn_c_try_compile "$LINENO"; then :
20837   ac_cv_c_volatile=yes
20838 else
20839   ac_cv_c_volatile=no
20840 fi
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842 fi
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20844 $as_echo "$ac_cv_c_volatile" >&6; }
20845 if test $ac_cv_c_volatile = no; then
20846
20847 $as_echo "#define volatile /**/" >>confdefs.h
20848
20849 fi
20850
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20852 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20853 if test "${ac_cv_c_stringize+set}" = set; then :
20854   $as_echo_n "(cached) " >&6
20855 else
20856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857 /* end confdefs.h.  */
20858 #define x(y) #y
20859
20860 char *s = x(teststring);
20861 _ACEOF
20862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20863   $EGREP "#teststring" >/dev/null 2>&1; then :
20864   ac_cv_c_stringize=no
20865 else
20866   ac_cv_c_stringize=yes
20867 fi
20868 rm -f conftest*
20869
20870 fi
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20872 $as_echo "$ac_cv_c_stringize" >&6; }
20873 if test $ac_cv_c_stringize = yes; then
20874
20875 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20876
20877 fi
20878
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20880 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20881 if test "${ac_cv_header_stat_broken+set}" = set; then :
20882   $as_echo_n "(cached) " >&6
20883 else
20884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h.  */
20886 #include <sys/types.h>
20887 #include <sys/stat.h>
20888
20889 #if defined S_ISBLK && defined S_IFDIR
20890 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20891 #endif
20892
20893 #if defined S_ISBLK && defined S_IFCHR
20894 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20895 #endif
20896
20897 #if defined S_ISLNK && defined S_IFREG
20898 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20899 #endif
20900
20901 #if defined S_ISSOCK && defined S_IFREG
20902 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20903 #endif
20904
20905 _ACEOF
20906 if ac_fn_c_try_compile "$LINENO"; then :
20907   ac_cv_header_stat_broken=no
20908 else
20909   ac_cv_header_stat_broken=yes
20910 fi
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 fi
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20914 $as_echo "$ac_cv_header_stat_broken" >&6; }
20915 if test $ac_cv_header_stat_broken = yes; then
20916
20917 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20918
20919 fi
20920
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20922 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20923 if test "${ac_cv_header_time+set}" = set; then :
20924   $as_echo_n "(cached) " >&6
20925 else
20926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h.  */
20928 #include <sys/types.h>
20929 #include <sys/time.h>
20930 #include <time.h>
20931
20932 int
20933 main ()
20934 {
20935 if ((struct tm *) 0)
20936 return 0;
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 if ac_fn_c_try_compile "$LINENO"; then :
20942   ac_cv_header_time=yes
20943 else
20944   ac_cv_header_time=no
20945 fi
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 fi
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20949 $as_echo "$ac_cv_header_time" >&6; }
20950 if test $ac_cv_header_time = yes; then
20951
20952 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20953
20954 fi
20955
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20957 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20958 if test "${ac_cv_struct_tm+set}" = set; then :
20959   $as_echo_n "(cached) " >&6
20960 else
20961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h.  */
20963 #include <sys/types.h>
20964 #include <time.h>
20965
20966 int
20967 main ()
20968 {
20969 struct tm tm;
20970                                      int *p = &tm.tm_sec;
20971                                      return !p;
20972   ;
20973   return 0;
20974 }
20975 _ACEOF
20976 if ac_fn_c_try_compile "$LINENO"; then :
20977   ac_cv_struct_tm=time.h
20978 else
20979   ac_cv_struct_tm=sys/time.h
20980 fi
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 fi
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20984 $as_echo "$ac_cv_struct_tm" >&6; }
20985 if test $ac_cv_struct_tm = sys/time.h; then
20986
20987 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20988
20989 fi
20990
20991 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20992 #include <$ac_cv_struct_tm>
20993
20994 "
20995 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20996
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_STRUCT_TM_TM_ZONE 1
20999 _ACEOF
21000
21001
21002 fi
21003
21004 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21005
21006 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21007
21008 else
21009   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21010 "
21011 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21012   ac_have_decl=1
21013 else
21014   ac_have_decl=0
21015 fi
21016
21017 cat >>confdefs.h <<_ACEOF
21018 #define HAVE_DECL_TZNAME $ac_have_decl
21019 _ACEOF
21020
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21022 $as_echo_n "checking for tzname... " >&6; }
21023 if test "${ac_cv_var_tzname+set}" = set; then :
21024   $as_echo_n "(cached) " >&6
21025 else
21026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h.  */
21028 #include <time.h>
21029 #if !HAVE_DECL_TZNAME
21030 extern char *tzname[];
21031 #endif
21032
21033 int
21034 main ()
21035 {
21036 return tzname[0][0];
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 if ac_fn_c_try_link "$LINENO"; then :
21042   ac_cv_var_tzname=yes
21043 else
21044   ac_cv_var_tzname=no
21045 fi
21046 rm -f core conftest.err conftest.$ac_objext \
21047     conftest$ac_exeext conftest.$ac_ext
21048 fi
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21050 $as_echo "$ac_cv_var_tzname" >&6; }
21051   if test $ac_cv_var_tzname = yes; then
21052
21053 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21054
21055   fi
21056 fi
21057
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21059 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21060 if test "${ac_cv_sys_interpreter+set}" = set; then :
21061   $as_echo_n "(cached) " >&6
21062 else
21063   echo '#! /bin/cat
21064 exit 69
21065 ' >conftest
21066 chmod u+x conftest
21067 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21068 if test $? -ne 69; then
21069    ac_cv_sys_interpreter=yes
21070 else
21071    ac_cv_sys_interpreter=no
21072 fi
21073 rm -f conftest
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21076 $as_echo "$ac_cv_sys_interpreter" >&6; }
21077 interpval=$ac_cv_sys_interpreter
21078
21079
21080 # If the C compiler supports the keyword inline, do nothing. Otherwise
21081 # define inline to __inline__ or __inline if it accepts one of those,
21082 # otherwise define inline to be empty.
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21084 $as_echo_n "checking for inline... " >&6; }
21085 if test "${ac_cv_c_inline+set}" = set; then :
21086   $as_echo_n "(cached) " >&6
21087 else
21088   ac_cv_c_inline=no
21089 for ac_kw in inline __inline__ __inline; do
21090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h.  */
21092 #ifndef __cplusplus
21093 typedef int foo_t;
21094 static $ac_kw foo_t static_foo () {return 0; }
21095 $ac_kw foo_t foo () {return 0; }
21096 #endif
21097
21098 _ACEOF
21099 if ac_fn_c_try_compile "$LINENO"; then :
21100   ac_cv_c_inline=$ac_kw
21101 fi
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103   test "$ac_cv_c_inline" != no && break
21104 done
21105
21106 fi
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21108 $as_echo "$ac_cv_c_inline" >&6; }
21109
21110 case $ac_cv_c_inline in
21111   inline | yes) ;;
21112   *)
21113     case $ac_cv_c_inline in
21114       no) ac_val=;;
21115       *) ac_val=$ac_cv_c_inline;;
21116     esac
21117     cat >>confdefs.h <<_ACEOF
21118 #ifndef __cplusplus
21119 #define inline $ac_val
21120 #endif
21121 _ACEOF
21122     ;;
21123 esac
21124
21125
21126 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21127 # define restrict to __restrict__ or __restrict if it accepts one of those,
21128 # otherwise define restrict to be empty.
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21130 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21131 if test "${ac_cv_c_restrict+set}" = set; then :
21132   $as_echo_n "(cached) " >&6
21133 else
21134   ac_cv_c_restrict=no
21135    # The order here caters to the fact that C++ does not require restrict.
21136    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h.  */
21139 typedef int * int_ptr;
21140         int foo (int_ptr $ac_kw ip) {
21141         return ip[0];
21142        }
21143 int
21144 main ()
21145 {
21146 int s[1];
21147         int * $ac_kw t = s;
21148         t[0] = 0;
21149         return foo(t)
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 if ac_fn_c_try_compile "$LINENO"; then :
21155   ac_cv_c_restrict=$ac_kw
21156 fi
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158      test "$ac_cv_c_restrict" != no && break
21159    done
21160
21161 fi
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21163 $as_echo "$ac_cv_c_restrict" >&6; }
21164
21165  case $ac_cv_c_restrict in
21166    restrict) ;;
21167    no) $as_echo "#define restrict /**/" >>confdefs.h
21168  ;;
21169    *)  cat >>confdefs.h <<_ACEOF
21170 #define restrict $ac_cv_c_restrict
21171 _ACEOF
21172  ;;
21173  esac
21174
21175
21176 # If words are stored with the most significant byte first (like
21177 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21179 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21180 if test "${ac_cv_c_bigendian+set}" = set; then :
21181   $as_echo_n "(cached) " >&6
21182 else
21183   ac_cv_c_bigendian=unknown
21184     # See if we're dealing with a universal compiler.
21185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h.  */
21187 #ifndef __APPLE_CC__
21188                not a universal capable compiler
21189              #endif
21190              typedef int dummy;
21191
21192 _ACEOF
21193 if ac_fn_c_try_compile "$LINENO"; then :
21194
21195         # Check for potential -arch flags.  It is not universal unless
21196         # there are at least two -arch flags with different values.
21197         ac_arch=
21198         ac_prev=
21199         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21200          if test -n "$ac_prev"; then
21201            case $ac_word in
21202              i?86 | x86_64 | ppc | ppc64)
21203                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21204                  ac_arch=$ac_word
21205                else
21206                  ac_cv_c_bigendian=universal
21207                  break
21208                fi
21209                ;;
21210            esac
21211            ac_prev=
21212          elif test "x$ac_word" = "x-arch"; then
21213            ac_prev=arch
21214          fi
21215        done
21216 fi
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218     if test $ac_cv_c_bigendian = unknown; then
21219       # See if sys/param.h defines the BYTE_ORDER macro.
21220       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h.  */
21222 #include <sys/types.h>
21223              #include <sys/param.h>
21224
21225 int
21226 main ()
21227 {
21228 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21229                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21230                      && LITTLE_ENDIAN)
21231               bogus endian macros
21232              #endif
21233
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 if ac_fn_c_try_compile "$LINENO"; then :
21239   # It does; now see whether it defined to BIG_ENDIAN or not.
21240          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h.  */
21242 #include <sys/types.h>
21243                 #include <sys/param.h>
21244
21245 int
21246 main ()
21247 {
21248 #if BYTE_ORDER != BIG_ENDIAN
21249                  not big endian
21250                 #endif
21251
21252   ;
21253   return 0;
21254 }
21255 _ACEOF
21256 if ac_fn_c_try_compile "$LINENO"; then :
21257   ac_cv_c_bigendian=yes
21258 else
21259   ac_cv_c_bigendian=no
21260 fi
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 fi
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264     fi
21265     if test $ac_cv_c_bigendian = unknown; then
21266       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21267       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h.  */
21269 #include <limits.h>
21270
21271 int
21272 main ()
21273 {
21274 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21275               bogus endian macros
21276              #endif
21277
21278   ;
21279   return 0;
21280 }
21281 _ACEOF
21282 if ac_fn_c_try_compile "$LINENO"; then :
21283   # It does; now see whether it defined to _BIG_ENDIAN or not.
21284          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21285 /* end confdefs.h.  */
21286 #include <limits.h>
21287
21288 int
21289 main ()
21290 {
21291 #ifndef _BIG_ENDIAN
21292                  not big endian
21293                 #endif
21294
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 if ac_fn_c_try_compile "$LINENO"; then :
21300   ac_cv_c_bigendian=yes
21301 else
21302   ac_cv_c_bigendian=no
21303 fi
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 fi
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307     fi
21308     if test $ac_cv_c_bigendian = unknown; then
21309       # Compile a test program.
21310       if test "$cross_compiling" = yes; then :
21311   # Try to guess by grepping values from an object file.
21312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21313 /* end confdefs.h.  */
21314 short int ascii_mm[] =
21315                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21316                 short int ascii_ii[] =
21317                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21318                 int use_ascii (int i) {
21319                   return ascii_mm[i] + ascii_ii[i];
21320                 }
21321                 short int ebcdic_ii[] =
21322                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21323                 short int ebcdic_mm[] =
21324                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21325                 int use_ebcdic (int i) {
21326                   return ebcdic_mm[i] + ebcdic_ii[i];
21327                 }
21328                 extern int foo;
21329
21330 int
21331 main ()
21332 {
21333 return use_ascii (foo) == use_ebcdic (foo);
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21340               ac_cv_c_bigendian=yes
21341             fi
21342             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21343               if test "$ac_cv_c_bigendian" = unknown; then
21344                 ac_cv_c_bigendian=no
21345               else
21346                 # finding both strings is unlikely to happen, but who knows?
21347                 ac_cv_c_bigendian=unknown
21348               fi
21349             fi
21350 fi
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 else
21353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h.  */
21355 $ac_includes_default
21356 int
21357 main ()
21358 {
21359
21360              /* Are we little or big endian?  From Harbison&Steele.  */
21361              union
21362              {
21363                long int l;
21364                char c[sizeof (long int)];
21365              } u;
21366              u.l = 1;
21367              return u.c[sizeof (long int) - 1] == 1;
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 if ac_fn_c_try_run "$LINENO"; then :
21374   ac_cv_c_bigendian=no
21375 else
21376   ac_cv_c_bigendian=yes
21377 fi
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21379   conftest.$ac_objext conftest.beam conftest.$ac_ext
21380 fi
21381
21382     fi
21383 fi
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21385 $as_echo "$ac_cv_c_bigendian" >&6; }
21386  case $ac_cv_c_bigendian in #(
21387    yes)
21388      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21389 ;; #(
21390    no)
21391       ;; #(
21392    universal)
21393
21394 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21395
21396      ;; #(
21397    *)
21398      as_fn_error $? "unknown endianness
21399  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21400  esac
21401
21402
21403 # Define mode_t to a suitable type, if standard headers do not define it.
21404 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21405 if test "x$ac_cv_type_mode_t" = x""yes; then :
21406
21407 else
21408
21409 cat >>confdefs.h <<_ACEOF
21410 #define mode_t int
21411 _ACEOF
21412
21413 fi
21414
21415
21416 # Define off_t to a suitable type, if standard headers do not define it.
21417 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21418 if test "x$ac_cv_type_off_t" = x""yes; then :
21419
21420 else
21421
21422 cat >>confdefs.h <<_ACEOF
21423 #define off_t long int
21424 _ACEOF
21425
21426 fi
21427
21428
21429 # Define pid_t to a suitable type, if standard headers do not define it.
21430 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21431 if test "x$ac_cv_type_pid_t" = x""yes; then :
21432
21433 else
21434
21435 cat >>confdefs.h <<_ACEOF
21436 #define pid_t int
21437 _ACEOF
21438
21439 fi
21440
21441
21442 # Define size_t to a suitable type, if standard headers do not define it.
21443 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21444 if test "x$ac_cv_type_size_t" = x""yes; then :
21445
21446 else
21447
21448 cat >>confdefs.h <<_ACEOF
21449 #define size_t unsigned int
21450 _ACEOF
21451
21452 fi
21453
21454
21455 # Define ssize_t to a suitable type, if standard headers do not define it.
21456 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21457 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21458
21459 else
21460
21461 cat >>confdefs.h <<_ACEOF
21462 #define ssize_t int
21463 _ACEOF
21464
21465 fi
21466
21467
21468 # If the C compiler supports a working long double type with more range
21469 # or precision than the double type, define HAVE_LONG_DOUBLE.
21470
21471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21472 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21473 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21474   $as_echo_n "(cached) " >&6
21475 else
21476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477 /* end confdefs.h.  */
21478 #include <float.h>
21479             long double const a[] =
21480               {
21481                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21482                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21483               };
21484             long double
21485             f (long double x)
21486             {
21487                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21488                         + (x ? f (x) : 'c'));
21489             }
21490
21491 int
21492 main ()
21493 {
21494 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21495                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21496                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21497                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21498             && (int) LDBL_EPSILON == 0
21499           )];
21500 test_array [0] = 0
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 if ac_fn_c_try_compile "$LINENO"; then :
21507   ac_cv_type_long_double_wider=yes
21508 else
21509   ac_cv_type_long_double_wider=no
21510 fi
21511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512 fi
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21514 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21515   if test $ac_cv_type_long_double_wider = yes; then
21516
21517 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21518
21519   fi
21520
21521
21522 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21523 # C compiler predefines it.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21525 $as_echo_n "checking whether char is unsigned... " >&6; }
21526 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21527   $as_echo_n "(cached) " >&6
21528 else
21529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h.  */
21531 $ac_includes_default
21532 int
21533 main ()
21534 {
21535 static int test_array [1 - 2 * !(((char) -1) < 0)];
21536 test_array [0] = 0
21537
21538   ;
21539   return 0;
21540 }
21541 _ACEOF
21542 if ac_fn_c_try_compile "$LINENO"; then :
21543   ac_cv_c_char_unsigned=no
21544 else
21545   ac_cv_c_char_unsigned=yes
21546 fi
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548 fi
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21550 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21551 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21552   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21553
21554 fi
21555
21556
21557 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21558 # The cast to long int works around a bug in the HP C Compiler
21559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21561 # This bug is HP SR number 8606223364.
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21563 $as_echo_n "checking size of signed short... " >&6; }
21564 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21565   $as_echo_n "(cached) " >&6
21566 else
21567   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21568
21569 else
21570   if test "$ac_cv_type_signed_short" = yes; then
21571      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573 as_fn_error 77 "cannot compute sizeof (signed short)
21574 See \`config.log' for more details" "$LINENO" 5; }
21575    else
21576      ac_cv_sizeof_signed_short=0
21577    fi
21578 fi
21579
21580 fi
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21582 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21583
21584
21585
21586 cat >>confdefs.h <<_ACEOF
21587 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21588 _ACEOF
21589
21590
21591
21592 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21593 # The cast to long int works around a bug in the HP C Compiler
21594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21596 # This bug is HP SR number 8606223364.
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21598 $as_echo_n "checking size of unsigned short... " >&6; }
21599 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21600   $as_echo_n "(cached) " >&6
21601 else
21602   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21603
21604 else
21605   if test "$ac_cv_type_unsigned_short" = yes; then
21606      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21608 as_fn_error 77 "cannot compute sizeof (unsigned short)
21609 See \`config.log' for more details" "$LINENO" 5; }
21610    else
21611      ac_cv_sizeof_unsigned_short=0
21612    fi
21613 fi
21614
21615 fi
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21617 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21618
21619
21620
21621 cat >>confdefs.h <<_ACEOF
21622 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21623 _ACEOF
21624
21625
21626
21627 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21628 # The cast to long int works around a bug in the HP C Compiler
21629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21631 # This bug is HP SR number 8606223364.
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21633 $as_echo_n "checking size of signed int... " >&6; }
21634 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21635   $as_echo_n "(cached) " >&6
21636 else
21637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21638
21639 else
21640   if test "$ac_cv_type_signed_int" = yes; then
21641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21643 as_fn_error 77 "cannot compute sizeof (signed int)
21644 See \`config.log' for more details" "$LINENO" 5; }
21645    else
21646      ac_cv_sizeof_signed_int=0
21647    fi
21648 fi
21649
21650 fi
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21652 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21653
21654
21655
21656 cat >>confdefs.h <<_ACEOF
21657 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21658 _ACEOF
21659
21660
21661
21662 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21663 # The cast to long int works around a bug in the HP C Compiler
21664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21666 # This bug is HP SR number 8606223364.
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21668 $as_echo_n "checking size of unsigned int... " >&6; }
21669 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21670   $as_echo_n "(cached) " >&6
21671 else
21672   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21673
21674 else
21675   if test "$ac_cv_type_unsigned_int" = yes; then
21676      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21678 as_fn_error 77 "cannot compute sizeof (unsigned int)
21679 See \`config.log' for more details" "$LINENO" 5; }
21680    else
21681      ac_cv_sizeof_unsigned_int=0
21682    fi
21683 fi
21684
21685 fi
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21687 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21688
21689
21690
21691 cat >>confdefs.h <<_ACEOF
21692 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21693 _ACEOF
21694
21695
21696
21697 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21698 # The cast to long int works around a bug in the HP C Compiler
21699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21701 # This bug is HP SR number 8606223364.
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21703 $as_echo_n "checking size of signed long... " >&6; }
21704 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21705   $as_echo_n "(cached) " >&6
21706 else
21707   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21708
21709 else
21710   if test "$ac_cv_type_signed_long" = yes; then
21711      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21713 as_fn_error 77 "cannot compute sizeof (signed long)
21714 See \`config.log' for more details" "$LINENO" 5; }
21715    else
21716      ac_cv_sizeof_signed_long=0
21717    fi
21718 fi
21719
21720 fi
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21722 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21723
21724
21725
21726 cat >>confdefs.h <<_ACEOF
21727 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21728 _ACEOF
21729
21730
21731
21732 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21733 # The cast to long int works around a bug in the HP C Compiler
21734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21736 # This bug is HP SR number 8606223364.
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21738 $as_echo_n "checking size of unsigned long... " >&6; }
21739 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21740   $as_echo_n "(cached) " >&6
21741 else
21742   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21743
21744 else
21745   if test "$ac_cv_type_unsigned_long" = yes; then
21746      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21748 as_fn_error 77 "cannot compute sizeof (unsigned long)
21749 See \`config.log' for more details" "$LINENO" 5; }
21750    else
21751      ac_cv_sizeof_unsigned_long=0
21752    fi
21753 fi
21754
21755 fi
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21757 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21758
21759
21760
21761 cat >>confdefs.h <<_ACEOF
21762 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21763 _ACEOF
21764
21765
21766
21767 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21768 # 'signed long long' is not supported then the value defined is zero.
21769 # The cast to long int works around a bug in the HP C Compiler
21770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21772 # This bug is HP SR number 8606223364.
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21774 $as_echo_n "checking size of signed long long... " >&6; }
21775 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21776   $as_echo_n "(cached) " >&6
21777 else
21778   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21779
21780 else
21781   if test "$ac_cv_type_signed_long_long" = yes; then
21782      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21784 as_fn_error 77 "cannot compute sizeof (signed long long)
21785 See \`config.log' for more details" "$LINENO" 5; }
21786    else
21787      ac_cv_sizeof_signed_long_long=0
21788    fi
21789 fi
21790
21791 fi
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21793 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21794
21795
21796
21797 cat >>confdefs.h <<_ACEOF
21798 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21799 _ACEOF
21800
21801
21802
21803 # Obtain size of a 'unsigned long long' and define as
21804 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
21805 # supported then the value defined is zero.
21806 # The cast to long int works around a bug in the HP C Compiler
21807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21809 # This bug is HP SR number 8606223364.
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21811 $as_echo_n "checking size of unsigned long long... " >&6; }
21812 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21813   $as_echo_n "(cached) " >&6
21814 else
21815   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
21816
21817 else
21818   if test "$ac_cv_type_unsigned_long_long" = yes; then
21819      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21821 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21822 See \`config.log' for more details" "$LINENO" 5; }
21823    else
21824      ac_cv_sizeof_unsigned_long_long=0
21825    fi
21826 fi
21827
21828 fi
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21830 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21831
21832
21833
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21836 _ACEOF
21837
21838
21839
21840 # Obtain size of off_t and define as SIZEOF_OFF_T
21841 # The cast to long int works around a bug in the HP C Compiler
21842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21844 # This bug is HP SR number 8606223364.
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21846 $as_echo_n "checking size of off_t... " >&6; }
21847 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21848   $as_echo_n "(cached) " >&6
21849 else
21850   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
21851
21852 else
21853   if test "$ac_cv_type_off_t" = yes; then
21854      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21856 as_fn_error 77 "cannot compute sizeof (off_t)
21857 See \`config.log' for more details" "$LINENO" 5; }
21858    else
21859      ac_cv_sizeof_off_t=0
21860    fi
21861 fi
21862
21863 fi
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21865 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21866
21867
21868
21869 cat >>confdefs.h <<_ACEOF
21870 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21871 _ACEOF
21872
21873
21874
21875 # Obtain size of size_t and define as SIZEOF_SIZE_T
21876 # The cast to long int works around a bug in the HP C Compiler
21877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21879 # This bug is HP SR number 8606223364.
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21881 $as_echo_n "checking size of size_t... " >&6; }
21882 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21883   $as_echo_n "(cached) " >&6
21884 else
21885   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21886
21887 else
21888   if test "$ac_cv_type_size_t" = yes; then
21889      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21891 as_fn_error 77 "cannot compute sizeof (size_t)
21892 See \`config.log' for more details" "$LINENO" 5; }
21893    else
21894      ac_cv_sizeof_size_t=0
21895    fi
21896 fi
21897
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21900 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21901
21902
21903
21904 cat >>confdefs.h <<_ACEOF
21905 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21906 _ACEOF
21907
21908
21909
21910 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21911 # The cast to long int works around a bug in the HP C Compiler
21912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21914 # This bug is HP SR number 8606223364.
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21916 $as_echo_n "checking size of ssize_t... " >&6; }
21917 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21918   $as_echo_n "(cached) " >&6
21919 else
21920   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
21921
21922 else
21923   if test "$ac_cv_type_ssize_t" = yes; then
21924      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21926 as_fn_error 77 "cannot compute sizeof (ssize_t)
21927 See \`config.log' for more details" "$LINENO" 5; }
21928    else
21929      ac_cv_sizeof_ssize_t=0
21930    fi
21931 fi
21932
21933 fi
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21935 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21936
21937
21938
21939 cat >>confdefs.h <<_ACEOF
21940 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21941 _ACEOF
21942
21943
21944
21945 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21946 # The cast to long int works around a bug in the HP C Compiler
21947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21949 # This bug is HP SR number 8606223364.
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21951 $as_echo_n "checking size of unsigned int*... " >&6; }
21952 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21953   $as_echo_n "(cached) " >&6
21954 else
21955   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
21956
21957 else
21958   if test "$ac_cv_type_unsigned_intp" = yes; then
21959      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21961 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21962 See \`config.log' for more details" "$LINENO" 5; }
21963    else
21964      ac_cv_sizeof_unsigned_intp=0
21965    fi
21966 fi
21967
21968 fi
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21970 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21971
21972
21973
21974 cat >>confdefs.h <<_ACEOF
21975 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21976 _ACEOF
21977
21978
21979
21980 #
21981 # Compute sized types for current CPU and compiler options.
21982 #
21983
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21985 $as_echo_n "checking for signed 8-bit type... " >&6; }
21986 INT8_T='signed char'
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21988 $as_echo "$INT8_T" >&6; }
21989
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
21992 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
21993 UINT8_T='unsigned char'
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
21995 $as_echo "$UINT8_T" >&6; }
21996
21997
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
21999 $as_echo_n "checking for signed 16-bit type... " >&6; }
22000 INT16_T='signed short'
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22002 $as_echo "$INT16_T" >&6; }
22003
22004
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22006 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22007 UINT16_T='unsigned short'
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22009 $as_echo "$UINT16_T" >&6; }
22010
22011
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22013 $as_echo_n "checking for signed 32-bit type... " >&6; }
22014 INT32_T='none'
22015 if test $ac_cv_sizeof_signed_int -eq 4; then
22016   INT32_T='signed int'
22017 elif test $ac_cv_sizeof_signed_long -eq 4; then
22018   INT32_T='signed long'
22019 fi
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22021 $as_echo "$INT32_T" >&6; }
22022
22023
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22025 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22026 UINT32_T='none'
22027 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22028   UINT32_T='unsigned int'
22029 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22030   UINT32_T='unsigned long'
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22033 $as_echo "$UINT32_T" >&6; }
22034
22035
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22037 $as_echo_n "checking for signed 64-bit type... " >&6; }
22038 INT64_T='none'
22039 if test $ac_cv_sizeof_signed_long -eq 8; then
22040   INT64_T='signed long'
22041 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22042   INT64_T='signed long long'
22043 fi
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22045 $as_echo "$INT64_T" >&6; }
22046
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22049 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22050 UINT64_T='none'
22051 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22052   UINT64_T='unsigned long'
22053 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22054   UINT64_T='unsigned long long'
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22057 $as_echo "$UINT64_T" >&6; }
22058
22059
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22061 $as_echo_n "checking for unsigned maximum type... " >&6; }
22062 UINTMAX_T='none'
22063 if test "$UINT64_T" != 'none'; then
22064   UINTMAX_T=$UINT64_T
22065 elif test "$UINT32_T" != 'none'; then
22066   UINTMAX_T=$UINT32_T
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22069 $as_echo "$UINTMAX_T" >&6; }
22070
22071
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22073 $as_echo_n "checking for pointer difference type... " >&6; }
22074 UINTPTR_T='none'
22075 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22076   UINTPTR_T='unsigned long'
22077 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22078   UINTPTR_T='unsigned long long'
22079 fi
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22081 $as_echo "$UINTPTR_T" >&6; }
22082
22083
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22085 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h.  */
22088
22089 int
22090 main ()
22091 {
22092 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 if ac_fn_c_try_compile "$LINENO"; then :
22098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22100 else
22101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22102 $as_echo "no" >&6; }
22103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22104 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h.  */
22107
22108 int
22109 main ()
22110 {
22111 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 if ac_fn_c_try_compile "$LINENO"; then :
22117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22118 $as_echo "yes" >&6; }
22119
22120 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22121
22122 else
22123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124 $as_echo "no" >&6; }
22125
22126 $as_echo "#define __func__ __FILE__" >>confdefs.h
22127
22128 fi
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 fi
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132
22133 ########
22134 #
22135 # Check for functions
22136 #
22137 ########
22138 for ac_header in stdlib.h unistd.h
22139 do :
22140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22143   cat >>confdefs.h <<_ACEOF
22144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22145 _ACEOF
22146
22147 fi
22148
22149 done
22150
22151 for ac_func in getpagesize
22152 do :
22153   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22154 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22155   cat >>confdefs.h <<_ACEOF
22156 #define HAVE_GETPAGESIZE 1
22157 _ACEOF
22158
22159 fi
22160 done
22161
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22163 $as_echo_n "checking for working mmap file i/o... " >&6; }
22164 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22165   $as_echo_n "(cached) " >&6
22166 else
22167   if test "$cross_compiling" = yes; then :
22168   magick_cv_func_mmap_fileio=no
22169 else
22170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h.  */
22172 $ac_includes_default
22173 /* malloc might have been renamed as rpl_malloc. */
22174 #undef malloc
22175
22176 /*
22177    This test is derived from GNU Autoconf's similar macro.
22178    The purpose of this test is to verify that files may be memory
22179    mapped, and that memory mapping and file I/O are coherent.
22180
22181    The test creates a test file, memory maps the file, updates
22182    the file using the memory map, and then reads the file using
22183    file I/O to verify that the file contains the updates.
22184 */
22185
22186 #include <fcntl.h>
22187 #include <sys/mman.h>
22188
22189 #if !STDC_HEADERS && !HAVE_STDLIB_H
22190 char *malloc ();
22191 #endif
22192
22193 /* This mess was copied from the GNU getpagesize.h.  */
22194 #if !HAVE_GETPAGESIZE
22195 /* Assume that all systems that can run configure have sys/param.h.  */
22196 # if !HAVE_SYS_PARAM_H
22197 #  define HAVE_SYS_PARAM_H 1
22198 # endif
22199
22200 # ifdef _SC_PAGESIZE
22201 #  define getpagesize() sysconf(_SC_PAGESIZE)
22202 # else /* no _SC_PAGESIZE */
22203 #  if HAVE_SYS_PARAM_H
22204 #   include <sys/param.h>
22205 #   ifdef EXEC_PAGESIZE
22206 #    define getpagesize() EXEC_PAGESIZE
22207 #   else /* no EXEC_PAGESIZE */
22208 #    ifdef NBPG
22209 #     define getpagesize() NBPG * CLSIZE
22210 #     ifndef CLSIZE
22211 #      define CLSIZE 1
22212 #     endif /* no CLSIZE */
22213 #    else /* no NBPG */
22214 #     ifdef NBPC
22215 #      define getpagesize() NBPC
22216 #     else /* no NBPC */
22217 #      ifdef PAGESIZE
22218 #       define getpagesize() PAGESIZE
22219 #      endif /* PAGESIZE */
22220 #     endif /* no NBPC */
22221 #    endif /* no NBPG */
22222 #   endif /* no EXEC_PAGESIZE */
22223 #  else /* no HAVE_SYS_PARAM_H */
22224 #   define getpagesize() 8192   /* punt totally */
22225 #  endif /* no HAVE_SYS_PARAM_H */
22226 # endif /* no _SC_PAGESIZE */
22227
22228 #endif /* no HAVE_GETPAGESIZE */
22229
22230 int
22231 main ()
22232 {
22233   char *data, *data2, *data3;
22234   int i, pagesize;
22235   int fd;
22236
22237   pagesize = getpagesize ();
22238
22239   /* First, make a file with some known garbage in it. */
22240   data = (char *) malloc (pagesize);
22241   if (!data)
22242     exit (1);
22243   for (i = 0; i < pagesize; ++i)
22244     *(data + i) = rand ();
22245   umask (0);
22246   fd = creat ("conftest.mmap", 0600);
22247   if (fd < 0)
22248     exit (1);
22249   if (write (fd, data, pagesize) != pagesize)
22250     exit (1);
22251   close (fd);
22252
22253   /* Mmap the file as read/write/shared and verify that we see the
22254   same garbage. */
22255   fd = open ("conftest.mmap", O_RDWR);
22256   if (fd < 0)
22257     exit (1);
22258   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22259   if (data2 == 0)
22260     exit (1);
22261   for (i = 0; i < pagesize; ++i)
22262     if (*(data + i) != *(data2 + i))
22263       exit (1);
22264
22265   /* Finally, make sure that changes to the mapped area
22266      percolate back to the file as seen by read().  */
22267   for (i = 0; i < pagesize; ++i)
22268     *(data2 + i) = *(data2 + i) + 1;
22269   data3 = (char *) malloc (pagesize);
22270   if (!data3)
22271     exit (1);
22272   if (read (fd, data3, pagesize) != pagesize)
22273     exit (1);
22274   for (i = 0; i < pagesize; ++i)
22275     if (*(data2 + i) != *(data3 + i))
22276       exit (1);
22277   close (fd);
22278   exit (0);
22279 }
22280 _ACEOF
22281 if ac_fn_c_try_run "$LINENO"; then :
22282   magick_cv_func_mmap_fileio=yes
22283 else
22284   magick_cv_func_mmap_fileio=no
22285 fi
22286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22287   conftest.$ac_objext conftest.beam conftest.$ac_ext
22288 fi
22289
22290 fi
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22292 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22293 if test $magick_cv_func_mmap_fileio = yes; then
22294
22295 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22296
22297 fi
22298 rm -f conftest.mmap
22299
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22301 $as_echo_n "checking whether closedir returns void... " >&6; }
22302 if test "${ac_cv_func_closedir_void+set}" = set; then :
22303   $as_echo_n "(cached) " >&6
22304 else
22305   if test "$cross_compiling" = yes; then :
22306   ac_cv_func_closedir_void=yes
22307 else
22308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22309 /* end confdefs.h.  */
22310 $ac_includes_default
22311 #include <$ac_header_dirent>
22312 #ifndef __cplusplus
22313 int closedir ();
22314 #endif
22315
22316 int
22317 main ()
22318 {
22319 return closedir (opendir (".")) != 0;
22320   ;
22321   return 0;
22322 }
22323 _ACEOF
22324 if ac_fn_c_try_run "$LINENO"; then :
22325   ac_cv_func_closedir_void=no
22326 else
22327   ac_cv_func_closedir_void=yes
22328 fi
22329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22330   conftest.$ac_objext conftest.beam conftest.$ac_ext
22331 fi
22332
22333 fi
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22335 $as_echo "$ac_cv_func_closedir_void" >&6; }
22336 if test $ac_cv_func_closedir_void = yes; then
22337
22338 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22339
22340 fi
22341
22342
22343
22344
22345   for ac_header in $ac_header_list
22346 do :
22347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22349 "
22350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22351   cat >>confdefs.h <<_ACEOF
22352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22353 _ACEOF
22354
22355 fi
22356
22357 done
22358
22359
22360
22361
22362
22363
22364
22365
22366 for ac_func in getpagesize
22367 do :
22368   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22369 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22370   cat >>confdefs.h <<_ACEOF
22371 #define HAVE_GETPAGESIZE 1
22372 _ACEOF
22373
22374 fi
22375 done
22376
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22378 $as_echo_n "checking for working mmap... " >&6; }
22379 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22380   $as_echo_n "(cached) " >&6
22381 else
22382   if test "$cross_compiling" = yes; then :
22383   ac_cv_func_mmap_fixed_mapped=no
22384 else
22385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h.  */
22387 $ac_includes_default
22388 /* malloc might have been renamed as rpl_malloc. */
22389 #undef malloc
22390
22391 /* Thanks to Mike Haertel and Jim Avera for this test.
22392    Here is a matrix of mmap possibilities:
22393         mmap private not fixed
22394         mmap private fixed at somewhere currently unmapped
22395         mmap private fixed at somewhere already mapped
22396         mmap shared not fixed
22397         mmap shared fixed at somewhere currently unmapped
22398         mmap shared fixed at somewhere already mapped
22399    For private mappings, we should verify that changes cannot be read()
22400    back from the file, nor mmap's back from the file at a different
22401    address.  (There have been systems where private was not correctly
22402    implemented like the infamous i386 svr4.0, and systems where the
22403    VM page cache was not coherent with the file system buffer cache
22404    like early versions of FreeBSD and possibly contemporary NetBSD.)
22405    For shared mappings, we should conversely verify that changes get
22406    propagated back to all the places they're supposed to be.
22407
22408    Grep wants private fixed already mapped.
22409    The main things grep needs to know about mmap are:
22410    * does it exist and is it safe to write into the mmap'd area
22411    * how to use it (BSD variants)  */
22412
22413 #include <fcntl.h>
22414 #include <sys/mman.h>
22415
22416 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22417 char *malloc ();
22418 #endif
22419
22420 /* This mess was copied from the GNU getpagesize.h.  */
22421 #ifndef HAVE_GETPAGESIZE
22422 # ifdef _SC_PAGESIZE
22423 #  define getpagesize() sysconf(_SC_PAGESIZE)
22424 # else /* no _SC_PAGESIZE */
22425 #  ifdef HAVE_SYS_PARAM_H
22426 #   include <sys/param.h>
22427 #   ifdef EXEC_PAGESIZE
22428 #    define getpagesize() EXEC_PAGESIZE
22429 #   else /* no EXEC_PAGESIZE */
22430 #    ifdef NBPG
22431 #     define getpagesize() NBPG * CLSIZE
22432 #     ifndef CLSIZE
22433 #      define CLSIZE 1
22434 #     endif /* no CLSIZE */
22435 #    else /* no NBPG */
22436 #     ifdef NBPC
22437 #      define getpagesize() NBPC
22438 #     else /* no NBPC */
22439 #      ifdef PAGESIZE
22440 #       define getpagesize() PAGESIZE
22441 #      endif /* PAGESIZE */
22442 #     endif /* no NBPC */
22443 #    endif /* no NBPG */
22444 #   endif /* no EXEC_PAGESIZE */
22445 #  else /* no HAVE_SYS_PARAM_H */
22446 #   define getpagesize() 8192   /* punt totally */
22447 #  endif /* no HAVE_SYS_PARAM_H */
22448 # endif /* no _SC_PAGESIZE */
22449
22450 #endif /* no HAVE_GETPAGESIZE */
22451
22452 int
22453 main ()
22454 {
22455   char *data, *data2, *data3;
22456   const char *cdata2;
22457   int i, pagesize;
22458   int fd, fd2;
22459
22460   pagesize = getpagesize ();
22461
22462   /* First, make a file with some known garbage in it. */
22463   data = (char *) malloc (pagesize);
22464   if (!data)
22465     return 1;
22466   for (i = 0; i < pagesize; ++i)
22467     *(data + i) = rand ();
22468   umask (0);
22469   fd = creat ("conftest.mmap", 0600);
22470   if (fd < 0)
22471     return 2;
22472   if (write (fd, data, pagesize) != pagesize)
22473     return 3;
22474   close (fd);
22475
22476   /* Next, check that the tail of a page is zero-filled.  File must have
22477      non-zero length, otherwise we risk SIGBUS for entire page.  */
22478   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22479   if (fd2 < 0)
22480     return 4;
22481   cdata2 = "";
22482   if (write (fd2, cdata2, 1) != 1)
22483     return 5;
22484   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22485   if (data2 == MAP_FAILED)
22486     return 6;
22487   for (i = 0; i < pagesize; ++i)
22488     if (*(data2 + i))
22489       return 7;
22490   close (fd2);
22491   if (munmap (data2, pagesize))
22492     return 8;
22493
22494   /* Next, try to mmap the file at a fixed address which already has
22495      something else allocated at it.  If we can, also make sure that
22496      we see the same garbage.  */
22497   fd = open ("conftest.mmap", O_RDWR);
22498   if (fd < 0)
22499     return 9;
22500   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22501                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22502     return 10;
22503   for (i = 0; i < pagesize; ++i)
22504     if (*(data + i) != *(data2 + i))
22505       return 11;
22506
22507   /* Finally, make sure that changes to the mapped area do not
22508      percolate back to the file as seen by read().  (This is a bug on
22509      some variants of i386 svr4.0.)  */
22510   for (i = 0; i < pagesize; ++i)
22511     *(data2 + i) = *(data2 + i) + 1;
22512   data3 = (char *) malloc (pagesize);
22513   if (!data3)
22514     return 12;
22515   if (read (fd, data3, pagesize) != pagesize)
22516     return 13;
22517   for (i = 0; i < pagesize; ++i)
22518     if (*(data + i) != *(data3 + i))
22519       return 14;
22520   close (fd);
22521   return 0;
22522 }
22523 _ACEOF
22524 if ac_fn_c_try_run "$LINENO"; then :
22525   ac_cv_func_mmap_fixed_mapped=yes
22526 else
22527   ac_cv_func_mmap_fixed_mapped=no
22528 fi
22529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22530   conftest.$ac_objext conftest.beam conftest.$ac_ext
22531 fi
22532
22533 fi
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22535 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22536 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22537
22538 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22539
22540 fi
22541 rm -f conftest.mmap conftest.txt
22542
22543 for ac_header in vfork.h
22544 do :
22545   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22546 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22547   cat >>confdefs.h <<_ACEOF
22548 #define HAVE_VFORK_H 1
22549 _ACEOF
22550
22551 fi
22552
22553 done
22554
22555 for ac_func in fork vfork
22556 do :
22557   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22560   cat >>confdefs.h <<_ACEOF
22561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22562 _ACEOF
22563
22564 fi
22565 done
22566
22567 if test "x$ac_cv_func_fork" = xyes; then
22568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22569 $as_echo_n "checking for working fork... " >&6; }
22570 if test "${ac_cv_func_fork_works+set}" = set; then :
22571   $as_echo_n "(cached) " >&6
22572 else
22573   if test "$cross_compiling" = yes; then :
22574   ac_cv_func_fork_works=cross
22575 else
22576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h.  */
22578 $ac_includes_default
22579 int
22580 main ()
22581 {
22582
22583           /* By Ruediger Kuhlmann. */
22584           return fork () < 0;
22585
22586   ;
22587   return 0;
22588 }
22589 _ACEOF
22590 if ac_fn_c_try_run "$LINENO"; then :
22591   ac_cv_func_fork_works=yes
22592 else
22593   ac_cv_func_fork_works=no
22594 fi
22595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22596   conftest.$ac_objext conftest.beam conftest.$ac_ext
22597 fi
22598
22599 fi
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22601 $as_echo "$ac_cv_func_fork_works" >&6; }
22602
22603 else
22604   ac_cv_func_fork_works=$ac_cv_func_fork
22605 fi
22606 if test "x$ac_cv_func_fork_works" = xcross; then
22607   case $host in
22608     *-*-amigaos* | *-*-msdosdjgpp*)
22609       # Override, as these systems have only a dummy fork() stub
22610       ac_cv_func_fork_works=no
22611       ;;
22612     *)
22613       ac_cv_func_fork_works=yes
22614       ;;
22615   esac
22616   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22617 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22618 fi
22619 ac_cv_func_vfork_works=$ac_cv_func_vfork
22620 if test "x$ac_cv_func_vfork" = xyes; then
22621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22622 $as_echo_n "checking for working vfork... " >&6; }
22623 if test "${ac_cv_func_vfork_works+set}" = set; then :
22624   $as_echo_n "(cached) " >&6
22625 else
22626   if test "$cross_compiling" = yes; then :
22627   ac_cv_func_vfork_works=cross
22628 else
22629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h.  */
22631 /* Thanks to Paul Eggert for this test.  */
22632 $ac_includes_default
22633 #include <sys/wait.h>
22634 #ifdef HAVE_VFORK_H
22635 # include <vfork.h>
22636 #endif
22637 /* On some sparc systems, changes by the child to local and incoming
22638    argument registers are propagated back to the parent.  The compiler
22639    is told about this with #include <vfork.h>, but some compilers
22640    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22641    static variable whose address is put into a register that is
22642    clobbered by the vfork.  */
22643 static void
22644 #ifdef __cplusplus
22645 sparc_address_test (int arg)
22646 # else
22647 sparc_address_test (arg) int arg;
22648 #endif
22649 {
22650   static pid_t child;
22651   if (!child) {
22652     child = vfork ();
22653     if (child < 0) {
22654       perror ("vfork");
22655       _exit(2);
22656     }
22657     if (!child) {
22658       arg = getpid();
22659       write(-1, "", 0);
22660       _exit (arg);
22661     }
22662   }
22663 }
22664
22665 int
22666 main ()
22667 {
22668   pid_t parent = getpid ();
22669   pid_t child;
22670
22671   sparc_address_test (0);
22672
22673   child = vfork ();
22674
22675   if (child == 0) {
22676     /* Here is another test for sparc vfork register problems.  This
22677        test uses lots of local variables, at least as many local
22678        variables as main has allocated so far including compiler
22679        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22680        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22681        reuse the register of parent for one of the local variables,
22682        since it will think that parent can't possibly be used any more
22683        in this routine.  Assigning to the local variable will thus
22684        munge parent in the parent process.  */
22685     pid_t
22686       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22687       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22688     /* Convince the compiler that p..p7 are live; otherwise, it might
22689        use the same hardware register for all 8 local variables.  */
22690     if (p != p1 || p != p2 || p != p3 || p != p4
22691         || p != p5 || p != p6 || p != p7)
22692       _exit(1);
22693
22694     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22695        from child file descriptors.  If the child closes a descriptor
22696        before it execs or exits, this munges the parent's descriptor
22697        as well.  Test for this by closing stdout in the child.  */
22698     _exit(close(fileno(stdout)) != 0);
22699   } else {
22700     int status;
22701     struct stat st;
22702
22703     while (wait(&status) != child)
22704       ;
22705     return (
22706          /* Was there some problem with vforking?  */
22707          child < 0
22708
22709          /* Did the child fail?  (This shouldn't happen.)  */
22710          || status
22711
22712          /* Did the vfork/compiler bug occur?  */
22713          || parent != getpid()
22714
22715          /* Did the file descriptor bug occur?  */
22716          || fstat(fileno(stdout), &st) != 0
22717          );
22718   }
22719 }
22720 _ACEOF
22721 if ac_fn_c_try_run "$LINENO"; then :
22722   ac_cv_func_vfork_works=yes
22723 else
22724   ac_cv_func_vfork_works=no
22725 fi
22726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22727   conftest.$ac_objext conftest.beam conftest.$ac_ext
22728 fi
22729
22730 fi
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22732 $as_echo "$ac_cv_func_vfork_works" >&6; }
22733
22734 fi;
22735 if test "x$ac_cv_func_fork_works" = xcross; then
22736   ac_cv_func_vfork_works=$ac_cv_func_vfork
22737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22738 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22739 fi
22740
22741 if test "x$ac_cv_func_vfork_works" = xyes; then
22742
22743 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22744
22745 else
22746
22747 $as_echo "#define vfork fork" >>confdefs.h
22748
22749 fi
22750 if test "x$ac_cv_func_fork_works" = xyes; then
22751
22752 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22753
22754 fi
22755
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22757 $as_echo_n "checking for working memcmp... " >&6; }
22758 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22759   $as_echo_n "(cached) " >&6
22760 else
22761   if test "$cross_compiling" = yes; then :
22762   ac_cv_func_memcmp_working=no
22763 else
22764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h.  */
22766 $ac_includes_default
22767 int
22768 main ()
22769 {
22770
22771   /* Some versions of memcmp are not 8-bit clean.  */
22772   char c0 = '\100', c1 = '\200', c2 = '\201';
22773   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22774     return 1;
22775
22776   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22777      or more and with at least one buffer not starting on a 4-byte boundary.
22778      William Lewis provided this test program.   */
22779   {
22780     char foo[21];
22781     char bar[21];
22782     int i;
22783     for (i = 0; i < 4; i++)
22784       {
22785         char *a = foo + i;
22786         char *b = bar + i;
22787         strcpy (a, "--------01111111");
22788         strcpy (b, "--------10000000");
22789         if (memcmp (a, b, 16) >= 0)
22790           return 1;
22791       }
22792     return 0;
22793   }
22794
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 if ac_fn_c_try_run "$LINENO"; then :
22800   ac_cv_func_memcmp_working=yes
22801 else
22802   ac_cv_func_memcmp_working=no
22803 fi
22804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22805   conftest.$ac_objext conftest.beam conftest.$ac_ext
22806 fi
22807
22808 fi
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22810 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22811 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22812   *" memcmp.$ac_objext "* ) ;;
22813   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22814  ;;
22815 esac
22816
22817
22818 for ac_header in sys/select.h sys/socket.h
22819 do :
22820   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22823   cat >>confdefs.h <<_ACEOF
22824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22825 _ACEOF
22826
22827 fi
22828
22829 done
22830
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22832 $as_echo_n "checking types of arguments for select... " >&6; }
22833 if test "${ac_cv_func_select_args+set}" = set; then :
22834   $as_echo_n "(cached) " >&6
22835 else
22836   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22837  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22838   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22839    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h.  */
22841 $ac_includes_default
22842 #ifdef HAVE_SYS_SELECT_H
22843 # include <sys/select.h>
22844 #endif
22845 #ifdef HAVE_SYS_SOCKET_H
22846 # include <sys/socket.h>
22847 #endif
22848
22849 int
22850 main ()
22851 {
22852 extern int select ($ac_arg1,
22853                                             $ac_arg234, $ac_arg234, $ac_arg234,
22854                                             $ac_arg5);
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 if ac_fn_c_try_compile "$LINENO"; then :
22860   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22861 fi
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863   done
22864  done
22865 done
22866 # Provide a safe default value.
22867 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22868
22869 fi
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22871 $as_echo "$ac_cv_func_select_args" >&6; }
22872 ac_save_IFS=$IFS; IFS=','
22873 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22874 IFS=$ac_save_IFS
22875 shift
22876
22877 cat >>confdefs.h <<_ACEOF
22878 #define SELECT_TYPE_ARG1 $1
22879 _ACEOF
22880
22881
22882 cat >>confdefs.h <<_ACEOF
22883 #define SELECT_TYPE_ARG234 ($2)
22884 _ACEOF
22885
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define SELECT_TYPE_ARG5 ($3)
22889 _ACEOF
22890
22891 rm -f conftest*
22892
22893 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22894   $as_echo_n "(cached) " >&6
22895 else
22896   ac_cv_func_setvbuf_reversed=no
22897 fi
22898
22899
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22901 $as_echo_n "checking return type of signal handlers... " >&6; }
22902 if test "${ac_cv_type_signal+set}" = set; then :
22903   $as_echo_n "(cached) " >&6
22904 else
22905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906 /* end confdefs.h.  */
22907 #include <sys/types.h>
22908 #include <signal.h>
22909
22910 int
22911 main ()
22912 {
22913 return *(signal (0, 0)) (0) == 1;
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 if ac_fn_c_try_compile "$LINENO"; then :
22919   ac_cv_type_signal=int
22920 else
22921   ac_cv_type_signal=void
22922 fi
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22926 $as_echo "$ac_cv_type_signal" >&6; }
22927
22928 cat >>confdefs.h <<_ACEOF
22929 #define RETSIGTYPE $ac_cv_type_signal
22930 _ACEOF
22931
22932
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22934 $as_echo_n "checking for working strtod... " >&6; }
22935 if test "${ac_cv_func_strtod+set}" = set; then :
22936   $as_echo_n "(cached) " >&6
22937 else
22938   if test "$cross_compiling" = yes; then :
22939   ac_cv_func_strtod=no
22940 else
22941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h.  */
22943
22944 $ac_includes_default
22945 #ifndef strtod
22946 double strtod ();
22947 #endif
22948 int
22949 main()
22950 {
22951   {
22952     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22953     char *string = " +69";
22954     char *term;
22955     double value;
22956     value = strtod (string, &term);
22957     if (value != 69 || term != (string + 4))
22958       return 1;
22959   }
22960
22961   {
22962     /* Under Solaris 2.4, strtod returns the wrong value for the
22963        terminating character under some conditions.  */
22964     char *string = "NaN";
22965     char *term;
22966     strtod (string, &term);
22967     if (term != string && *(term - 1) == 0)
22968       return 1;
22969   }
22970   return 0;
22971 }
22972
22973 _ACEOF
22974 if ac_fn_c_try_run "$LINENO"; then :
22975   ac_cv_func_strtod=yes
22976 else
22977   ac_cv_func_strtod=no
22978 fi
22979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22980   conftest.$ac_objext conftest.beam conftest.$ac_ext
22981 fi
22982
22983 fi
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22985 $as_echo "$ac_cv_func_strtod" >&6; }
22986 if test $ac_cv_func_strtod = no; then
22987   case " $LIBOBJS " in
22988   *" strtod.$ac_objext "* ) ;;
22989   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22990  ;;
22991 esac
22992
22993 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22994 if test "x$ac_cv_func_pow" = x""yes; then :
22995
22996 fi
22997
22998 if test $ac_cv_func_pow = no; then
22999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23000 $as_echo_n "checking for pow in -lm... " >&6; }
23001 if test "${ac_cv_lib_m_pow+set}" = set; then :
23002   $as_echo_n "(cached) " >&6
23003 else
23004   ac_check_lib_save_LIBS=$LIBS
23005 LIBS="-lm  $LIBS"
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h.  */
23008
23009 /* Override any GCC internal prototype to avoid an error.
23010    Use char because int might match the return type of a GCC
23011    builtin and then its argument prototype would still apply.  */
23012 #ifdef __cplusplus
23013 extern "C"
23014 #endif
23015 char pow ();
23016 int
23017 main ()
23018 {
23019 return pow ();
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 if ac_fn_c_try_link "$LINENO"; then :
23025   ac_cv_lib_m_pow=yes
23026 else
23027   ac_cv_lib_m_pow=no
23028 fi
23029 rm -f core conftest.err conftest.$ac_objext \
23030     conftest$ac_exeext conftest.$ac_ext
23031 LIBS=$ac_check_lib_save_LIBS
23032 fi
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23034 $as_echo "$ac_cv_lib_m_pow" >&6; }
23035 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23036   POW_LIB=-lm
23037 else
23038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23039 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23040 fi
23041
23042 fi
23043
23044 fi
23045
23046 for ac_func in vprintf
23047 do :
23048   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23049 if test "x$ac_cv_func_vprintf" = x""yes; then :
23050   cat >>confdefs.h <<_ACEOF
23051 #define HAVE_VPRINTF 1
23052 _ACEOF
23053
23054 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23055 if test "x$ac_cv_func__doprnt" = x""yes; then :
23056
23057 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23058
23059 fi
23060
23061 fi
23062 done
23063
23064
23065
23066 #
23067 # Find math library
23068 #
23069 MATH_LIBS=''
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23071 $as_echo_n "checking for sqrt in -lm... " >&6; }
23072 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23073   $as_echo_n "(cached) " >&6
23074 else
23075   ac_check_lib_save_LIBS=$LIBS
23076 LIBS="-lm  $LIBS"
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h.  */
23079
23080 /* Override any GCC internal prototype to avoid an error.
23081    Use char because int might match the return type of a GCC
23082    builtin and then its argument prototype would still apply.  */
23083 #ifdef __cplusplus
23084 extern "C"
23085 #endif
23086 char sqrt ();
23087 int
23088 main ()
23089 {
23090 return sqrt ();
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 if ac_fn_c_try_link "$LINENO"; then :
23096   ac_cv_lib_m_sqrt=yes
23097 else
23098   ac_cv_lib_m_sqrt=no
23099 fi
23100 rm -f core conftest.err conftest.$ac_objext \
23101     conftest$ac_exeext conftest.$ac_ext
23102 LIBS=$ac_check_lib_save_LIBS
23103 fi
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23105 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23106 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23107   MATH_LIBS="-lm"
23108 fi
23109
23110 LIBS="$MATH_LIBS $LIBS"
23111
23112
23113 for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23114 do :
23115   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23118   cat >>confdefs.h <<_ACEOF
23119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23120 _ACEOF
23121
23122 fi
23123 done
23124
23125
23126 #
23127 # Check for clock_gettime().
23128 #
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23130 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23131 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23132   $as_echo_n "(cached) " >&6
23133 else
23134   ac_func_search_save_LIBS=$LIBS
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h.  */
23137
23138 /* Override any GCC internal prototype to avoid an error.
23139    Use char because int might match the return type of a GCC
23140    builtin and then its argument prototype would still apply.  */
23141 #ifdef __cplusplus
23142 extern "C"
23143 #endif
23144 char clock_gettime ();
23145 int
23146 main ()
23147 {
23148 return clock_gettime ();
23149   ;
23150   return 0;
23151 }
23152 _ACEOF
23153 for ac_lib in '' rt; do
23154   if test -z "$ac_lib"; then
23155     ac_res="none required"
23156   else
23157     ac_res=-l$ac_lib
23158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23159   fi
23160   if ac_fn_c_try_link "$LINENO"; then :
23161   ac_cv_search_clock_gettime=$ac_res
23162 fi
23163 rm -f core conftest.err conftest.$ac_objext \
23164     conftest$ac_exeext
23165   if test "${ac_cv_search_clock_gettime+set}" = set; then :
23166   break
23167 fi
23168 done
23169 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23170
23171 else
23172   ac_cv_search_clock_gettime=no
23173 fi
23174 rm conftest.$ac_ext
23175 LIBS=$ac_func_search_save_LIBS
23176 fi
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23178 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23179 ac_res=$ac_cv_search_clock_gettime
23180 if test "$ac_res" != no; then :
23181   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23182
23183
23184 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23185
23186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23187 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23189 /* end confdefs.h.  */
23190 #include <time.h>
23191 int
23192 main ()
23193 {
23194 clockid_t clockType = CLOCK_REALTIME;
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 if ac_fn_c_try_compile "$LINENO"; then :
23200
23201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 $as_echo "yes" >&6; }
23203
23204 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23205
23206
23207 else
23208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23209 $as_echo "no" >&6; }
23210
23211 fi
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213
23214 else
23215
23216     for ac_func in gettimeofday ftime
23217 do :
23218   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23221   cat >>confdefs.h <<_ACEOF
23222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23223 _ACEOF
23224  break
23225 fi
23226 done
23227
23228
23229
23230 fi
23231
23232
23233 ########
23234 #
23235 # Check for function prototypes
23236 #
23237 ########
23238
23239 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23240 #include <unistd.h>
23241 "
23242 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23243   ac_have_decl=1
23244 else
23245   ac_have_decl=0
23246 fi
23247
23248 cat >>confdefs.h <<_ACEOF
23249 #define HAVE_DECL_PREAD $ac_have_decl
23250 _ACEOF
23251 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23252 #include <unistd.h>
23253 "
23254 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23255   ac_have_decl=1
23256 else
23257   ac_have_decl=0
23258 fi
23259
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_DECL_PWRITE $ac_have_decl
23262 _ACEOF
23263
23264
23265 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23266 #include <strings.h>
23267 "
23268 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23269   ac_have_decl=1
23270 else
23271   ac_have_decl=0
23272 fi
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_DECL_STRLCPY $ac_have_decl
23276 _ACEOF
23277
23278
23279 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23280 #include <stdio.h>
23281 #include <stdarg.h>
23282 "
23283 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23284   ac_have_decl=1
23285 else
23286   ac_have_decl=0
23287 fi
23288
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23291 _ACEOF
23292
23293
23294 ########
23295 #
23296 # C++ Support Tests (For Magick++)
23297 #
23298 ########
23299 have_magick_plus_plus='no'
23300 if test "$with_magick_plus_plus" = 'yes'; then
23301     OLIBS="$LIBS"
23302     LIBS=''
23303     ac_ext=cpp
23304 ac_cpp='$CXXCPP $CPPFLAGS'
23305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23308
23309
23310     # Full set of headers used...
23311     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23312     # functional iomanip iosfwd iostream iterator list string strstream utility
23313     ac_ext=cpp
23314 ac_cpp='$CXXCPP $CPPFLAGS'
23315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23318
23319     ac_ext=cpp
23320 ac_cpp='$CXXCPP $CPPFLAGS'
23321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324 if test -z "$CXX"; then
23325   if test -n "$CCC"; then
23326     CXX=$CCC
23327   else
23328     if test -n "$ac_tool_prefix"; then
23329   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23330   do
23331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23334 $as_echo_n "checking for $ac_word... " >&6; }
23335 if test "${ac_cv_prog_CXX+set}" = set; then :
23336   $as_echo_n "(cached) " >&6
23337 else
23338   if test -n "$CXX"; then
23339   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23340 else
23341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342 for as_dir in $PATH
23343 do
23344   IFS=$as_save_IFS
23345   test -z "$as_dir" && as_dir=.
23346     for ac_exec_ext in '' $ac_executable_extensions; do
23347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23348     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23350     break 2
23351   fi
23352 done
23353   done
23354 IFS=$as_save_IFS
23355
23356 fi
23357 fi
23358 CXX=$ac_cv_prog_CXX
23359 if test -n "$CXX"; then
23360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23361 $as_echo "$CXX" >&6; }
23362 else
23363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23365 fi
23366
23367
23368     test -n "$CXX" && break
23369   done
23370 fi
23371 if test -z "$CXX"; then
23372   ac_ct_CXX=$CXX
23373   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23374 do
23375   # Extract the first word of "$ac_prog", so it can be a program name with args.
23376 set dummy $ac_prog; ac_word=$2
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23378 $as_echo_n "checking for $ac_word... " >&6; }
23379 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23380   $as_echo_n "(cached) " >&6
23381 else
23382   if test -n "$ac_ct_CXX"; then
23383   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23384 else
23385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23386 for as_dir in $PATH
23387 do
23388   IFS=$as_save_IFS
23389   test -z "$as_dir" && as_dir=.
23390     for ac_exec_ext in '' $ac_executable_extensions; do
23391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23392     ac_cv_prog_ac_ct_CXX="$ac_prog"
23393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23394     break 2
23395   fi
23396 done
23397   done
23398 IFS=$as_save_IFS
23399
23400 fi
23401 fi
23402 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23403 if test -n "$ac_ct_CXX"; then
23404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23405 $as_echo "$ac_ct_CXX" >&6; }
23406 else
23407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23408 $as_echo "no" >&6; }
23409 fi
23410
23411
23412   test -n "$ac_ct_CXX" && break
23413 done
23414
23415   if test "x$ac_ct_CXX" = x; then
23416     CXX="g++"
23417   else
23418     case $cross_compiling:$ac_tool_warned in
23419 yes:)
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23422 ac_tool_warned=yes ;;
23423 esac
23424     CXX=$ac_ct_CXX
23425   fi
23426 fi
23427
23428   fi
23429 fi
23430 # Provide some information about the compiler.
23431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23432 set X $ac_compile
23433 ac_compiler=$2
23434 for ac_option in --version -v -V -qversion; do
23435   { { ac_try="$ac_compiler $ac_option >&5"
23436 case "(($ac_try" in
23437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438   *) ac_try_echo=$ac_try;;
23439 esac
23440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23441 $as_echo "$ac_try_echo"; } >&5
23442   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23443   ac_status=$?
23444   if test -s conftest.err; then
23445     sed '10a\
23446 ... rest of stderr output deleted ...
23447          10q' conftest.err >conftest.er1
23448     cat conftest.er1 >&5
23449   fi
23450   rm -f conftest.er1 conftest.err
23451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452   test $ac_status = 0; }
23453 done
23454
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23456 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23458   $as_echo_n "(cached) " >&6
23459 else
23460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23461 /* end confdefs.h.  */
23462
23463 int
23464 main ()
23465 {
23466 #ifndef __GNUC__
23467        choke me
23468 #endif
23469
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 if ac_fn_cxx_try_compile "$LINENO"; then :
23475   ac_compiler_gnu=yes
23476 else
23477   ac_compiler_gnu=no
23478 fi
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23481
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23484 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23485 if test $ac_compiler_gnu = yes; then
23486   GXX=yes
23487 else
23488   GXX=
23489 fi
23490 ac_test_CXXFLAGS=${CXXFLAGS+set}
23491 ac_save_CXXFLAGS=$CXXFLAGS
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23493 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23494 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23495   $as_echo_n "(cached) " >&6
23496 else
23497   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23498    ac_cxx_werror_flag=yes
23499    ac_cv_prog_cxx_g=no
23500    CXXFLAGS="-g"
23501    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23502 /* end confdefs.h.  */
23503
23504 int
23505 main ()
23506 {
23507
23508   ;
23509   return 0;
23510 }
23511 _ACEOF
23512 if ac_fn_cxx_try_compile "$LINENO"; then :
23513   ac_cv_prog_cxx_g=yes
23514 else
23515   CXXFLAGS=""
23516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h.  */
23518
23519 int
23520 main ()
23521 {
23522
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 if ac_fn_cxx_try_compile "$LINENO"; then :
23528
23529 else
23530   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23531          CXXFLAGS="-g"
23532          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h.  */
23534
23535 int
23536 main ()
23537 {
23538
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 if ac_fn_cxx_try_compile "$LINENO"; then :
23544   ac_cv_prog_cxx_g=yes
23545 fi
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 fi
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 fi
23550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23552 fi
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23554 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23555 if test "$ac_test_CXXFLAGS" = set; then
23556   CXXFLAGS=$ac_save_CXXFLAGS
23557 elif test $ac_cv_prog_cxx_g = yes; then
23558   if test "$GXX" = yes; then
23559     CXXFLAGS="-g -O2"
23560   else
23561     CXXFLAGS="-g"
23562   fi
23563 else
23564   if test "$GXX" = yes; then
23565     CXXFLAGS="-O2"
23566   else
23567     CXXFLAGS=
23568   fi
23569 fi
23570 ac_ext=cpp
23571 ac_cpp='$CXXCPP $CPPFLAGS'
23572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23575
23576 depcc="$CXX"  am_compiler_list=
23577
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23579 $as_echo_n "checking dependency style of $depcc... " >&6; }
23580 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23581   $as_echo_n "(cached) " >&6
23582 else
23583   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23584   # We make a subdir and do the tests there.  Otherwise we can end up
23585   # making bogus files that we don't know about and never remove.  For
23586   # instance it was reported that on HP-UX the gcc test will end up
23587   # making a dummy file named `D' -- because `-MD' means `put the output
23588   # in D'.
23589   mkdir conftest.dir
23590   # Copy depcomp to subdir because otherwise we won't find it if we're
23591   # using a relative directory.
23592   cp "$am_depcomp" conftest.dir
23593   cd conftest.dir
23594   # We will build objects and dependencies in a subdirectory because
23595   # it helps to detect inapplicable dependency modes.  For instance
23596   # both Tru64's cc and ICC support -MD to output dependencies as a
23597   # side effect of compilation, but ICC will put the dependencies in
23598   # the current directory while Tru64 will put them in the object
23599   # directory.
23600   mkdir sub
23601
23602   am_cv_CXX_dependencies_compiler_type=none
23603   if test "$am_compiler_list" = ""; then
23604      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23605   fi
23606   am__universal=false
23607   case " $depcc " in #(
23608      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23609      esac
23610
23611   for depmode in $am_compiler_list; do
23612     # Setup a source with many dependencies, because some compilers
23613     # like to wrap large dependency lists on column 80 (with \), and
23614     # we should not choose a depcomp mode which is confused by this.
23615     #
23616     # We need to recreate these files for each test, as the compiler may
23617     # overwrite some of them when testing with obscure command lines.
23618     # This happens at least with the AIX C compiler.
23619     : > sub/conftest.c
23620     for i in 1 2 3 4 5 6; do
23621       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23622       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23623       # Solaris 8's {/usr,}/bin/sh.
23624       touch sub/conftst$i.h
23625     done
23626     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23627
23628     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23629     # mode.  It turns out that the SunPro C++ compiler does not properly
23630     # handle `-M -o', and we need to detect this.  Also, some Intel
23631     # versions had trouble with output in subdirs
23632     am__obj=sub/conftest.${OBJEXT-o}
23633     am__minus_obj="-o $am__obj"
23634     case $depmode in
23635     gcc)
23636       # This depmode causes a compiler race in universal mode.
23637       test "$am__universal" = false || continue
23638       ;;
23639     nosideeffect)
23640       # after this tag, mechanisms are not by side-effect, so they'll
23641       # only be used when explicitly requested
23642       if test "x$enable_dependency_tracking" = xyes; then
23643         continue
23644       else
23645         break
23646       fi
23647       ;;
23648     msvisualcpp | msvcmsys)
23649       # This compiler won't grok `-c -o', but also, the minuso test has
23650       # not run yet.  These depmodes are late enough in the game, and
23651       # so weak that their functioning should not be impacted.
23652       am__obj=conftest.${OBJEXT-o}
23653       am__minus_obj=
23654       ;;
23655     none) break ;;
23656     esac
23657     if depmode=$depmode \
23658        source=sub/conftest.c object=$am__obj \
23659        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23660        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23661          >/dev/null 2>conftest.err &&
23662        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23663        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23664        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23665        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23666       # icc doesn't choke on unknown options, it will just issue warnings
23667       # or remarks (even with -Werror).  So we grep stderr for any message
23668       # that says an option was ignored or not supported.
23669       # When given -MP, icc 7.0 and 7.1 complain thusly:
23670       #   icc: Command line warning: ignoring option '-M'; no argument required
23671       # The diagnosis changed in icc 8.0:
23672       #   icc: Command line remark: option '-MP' not supported
23673       if (grep 'ignoring option' conftest.err ||
23674           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23675         am_cv_CXX_dependencies_compiler_type=$depmode
23676         break
23677       fi
23678     fi
23679   done
23680
23681   cd ..
23682   rm -rf conftest.dir
23683 else
23684   am_cv_CXX_dependencies_compiler_type=none
23685 fi
23686
23687 fi
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23689 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23690 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23691
23692  if
23693   test "x$enable_dependency_tracking" != xno \
23694   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23695   am__fastdepCXX_TRUE=
23696   am__fastdepCXX_FALSE='#'
23697 else
23698   am__fastdepCXX_TRUE='#'
23699   am__fastdepCXX_FALSE=
23700 fi
23701
23702
23703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23704 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23705 if test "${ax_cv_cxx_bool+set}" = set; then :
23706   $as_echo_n "(cached) " >&6
23707 else
23708
23709  ac_ext=cpp
23710 ac_cpp='$CXXCPP $CPPFLAGS'
23711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23714
23715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716 /* end confdefs.h.  */
23717
23718 int f(int  x){return 1;}
23719 int f(char x){return 1;}
23720 int f(bool x){return 1;}
23721
23722 int
23723 main ()
23724 {
23725 bool b = true; return f(b);
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 if ac_fn_cxx_try_compile "$LINENO"; then :
23731   ax_cv_cxx_bool=yes
23732 else
23733   ax_cv_cxx_bool=no
23734 fi
23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23736  ac_ext=cpp
23737 ac_cpp='$CXXCPP $CPPFLAGS'
23738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23741
23742
23743 fi
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23745 $as_echo "$ax_cv_cxx_bool" >&6; }
23746 if test "$ax_cv_cxx_bool" = yes; then
23747
23748 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23749
23750 fi
23751
23752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23753 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23754 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23755   $as_echo_n "(cached) " >&6
23756 else
23757
23758  ac_ext=cpp
23759 ac_cpp='$CXXCPP $CPPFLAGS'
23760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23763
23764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765 /* end confdefs.h.  */
23766 namespace Outer { namespace Inner { int i = 0; }}
23767 int
23768 main ()
23769 {
23770 using namespace Outer::Inner; return i;
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 if ac_fn_cxx_try_compile "$LINENO"; then :
23776   ax_cv_cxx_namespaces=yes
23777 else
23778   ax_cv_cxx_namespaces=no
23779 fi
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781  ac_ext=cpp
23782 ac_cpp='$CXXCPP $CPPFLAGS'
23783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23786
23787
23788 fi
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23790 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23791 if test "$ax_cv_cxx_namespaces" = yes; then
23792
23793 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23794
23795 fi
23796
23797
23798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23799 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23800 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23801   $as_echo_n "(cached) " >&6
23802 else
23803
23804   ac_ext=cpp
23805 ac_cpp='$CXXCPP $CPPFLAGS'
23806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23809
23810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23811 /* end confdefs.h.  */
23812 #include <iostream>
23813                   std::istream& is = std::cin;
23814 int
23815 main ()
23816 {
23817
23818   ;
23819   return 0;
23820 }
23821 _ACEOF
23822 if ac_fn_cxx_try_compile "$LINENO"; then :
23823   ax_cv_cxx_have_std_namespace=yes
23824 else
23825   ax_cv_cxx_have_std_namespace=no
23826 fi
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828   ac_ext=cpp
23829 ac_cpp='$CXXCPP $CPPFLAGS'
23830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23833
23834
23835 fi
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23837 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23838   if test "$ax_cv_cxx_have_std_namespace" = yes; then
23839
23840 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23841
23842   fi
23843
23844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23845 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23846 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23847   $as_echo_n "(cached) " >&6
23848 else
23849
23850
23851  ac_ext=cpp
23852 ac_cpp='$CXXCPP $CPPFLAGS'
23853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23856
23857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23858 /* end confdefs.h.  */
23859 #include <iostream>
23860 #include <map>
23861 #include <iomanip>
23862 #include <cmath>
23863 #ifdef HAVE_NAMESPACES
23864 using namespace std;
23865 #endif
23866 int
23867 main ()
23868 {
23869 return 0;
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 if ac_fn_cxx_try_compile "$LINENO"; then :
23875   ac_cv_cxx_have_std_libs=yes
23876 else
23877   ac_cv_cxx_have_std_libs=no
23878 fi
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880  ac_ext=cpp
23881 ac_cpp='$CXXCPP $CPPFLAGS'
23882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23885
23886
23887 fi
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23889 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23890 if test "$ac_cv_cxx_have_std_libs" = yes; then
23891
23892 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23893
23894 fi
23895
23896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23897 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23898 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23899   $as_echo_n "(cached) " >&6
23900 else
23901
23902  ac_ext=cpp
23903 ac_cpp='$CXXCPP $CPPFLAGS'
23904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23907
23908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h.  */
23910 const wchar_t* s=L"wide string";
23911 _ACEOF
23912 if ac_fn_cxx_try_compile "$LINENO"; then :
23913   ac_cv_cxx_have_lstring=yes
23914 else
23915   ac_cv_cxx_have_lstring=no
23916 fi
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918  ac_ext=cpp
23919 ac_cpp='$CXXCPP $CPPFLAGS'
23920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23923
23924
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23927 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23928 if test "$ac_cv_cxx_have_lstring" = yes; then
23929
23930 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23931
23932 fi
23933
23934
23935   OPENMP_CXXFLAGS=
23936   # Check whether --enable-openmp was given.
23937 if test "${enable_openmp+set}" = set; then :
23938   enableval=$enable_openmp;
23939 fi
23940
23941   if test "$enable_openmp" != no; then
23942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23943 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23944 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23945   $as_echo_n "(cached) " >&6
23946 else
23947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h.  */
23949
23950 #ifndef _OPENMP
23951  choke me
23952 #endif
23953 #include <omp.h>
23954 int main () { return omp_get_num_threads (); }
23955
23956 _ACEOF
23957 if ac_fn_cxx_try_link "$LINENO"; then :
23958   ac_cv_prog_cxx_openmp='none needed'
23959 else
23960   ac_cv_prog_cxx_openmp='unsupported'
23961                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23962             ac_save_CXXFLAGS=$CXXFLAGS
23963             CXXFLAGS="$CXXFLAGS $ac_option"
23964             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h.  */
23966
23967 #ifndef _OPENMP
23968  choke me
23969 #endif
23970 #include <omp.h>
23971 int main () { return omp_get_num_threads (); }
23972
23973 _ACEOF
23974 if ac_fn_cxx_try_link "$LINENO"; then :
23975   ac_cv_prog_cxx_openmp=$ac_option
23976 fi
23977 rm -f core conftest.err conftest.$ac_objext \
23978     conftest$ac_exeext conftest.$ac_ext
23979             CXXFLAGS=$ac_save_CXXFLAGS
23980             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23981               break
23982             fi
23983           done
23984 fi
23985 rm -f core conftest.err conftest.$ac_objext \
23986     conftest$ac_exeext conftest.$ac_ext
23987 fi
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23989 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23990     case $ac_cv_prog_cxx_openmp in #(
23991       "none needed" | unsupported)
23992         ;; #(
23993       *)
23994         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
23995     esac
23996   fi
23997
23998
23999     ac_ext=c
24000 ac_cpp='$CPP $CPPFLAGS'
24001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24004
24005
24006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24007 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24008     if \
24009         test $ax_cv_cxx_bool = 'yes' && \
24010         test $ac_cv_cxx_have_lstring = 'yes' && \
24011         test $ax_cv_cxx_namespaces = 'yes' && \
24012         test $ac_cv_cxx_have_std_libs = 'yes' && \
24013         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24014         have_magick_plus_plus='yes'
24015     else
24016         have_magick_plus_plus='no (failed tests)'
24017     fi
24018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24019 $as_echo "$have_magick_plus_plus" >&6; }
24020     LIBS="$OLIBS"
24021 fi
24022  if test "$have_magick_plus_plus" = 'yes'; then
24023   WITH_MAGICK_PLUS_PLUS_TRUE=
24024   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24025 else
24026   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24027   WITH_MAGICK_PLUS_PLUS_FALSE=
24028 fi
24029
24030
24031 # Only check for delegate libraries in subdirectories if requested.
24032 if test "$enable_delegate_build" != 'no'; then
24033     # Check for delegate sub-directories and add -I & -L options as required.
24034     # This presumes that delegates are installed as detailed in the ImageMagick
24035     # README. If delegates are installed in a standard location where the
24036     # compiler will automatically find them then these options should not be
24037     # required.
24038
24039     #
24040     # Most delegates have includes in the same directory as the library, but not all...
24041     #
24042     # Includes
24043     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24044         if test -d "$builddir/$dir"; then
24045             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24046         else
24047             if test -d "$srcdirfull/$dir"; then
24048                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24049             fi
24050         fi
24051     done
24052
24053     # Libraries
24054     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24055     if test -d "$builddir/$dir/.libs"; then
24056         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24057     else
24058         if test -d "$srcdirfull/$dir/.libs"; then
24059             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24060         fi
24061     fi
24062     if test -d "$builddir/$dir"; then
24063         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24064     else
24065         if test -d "$srcdirfull/$dir"; then
24066             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24067         fi
24068     fi
24069   done
24070 fi
24071
24072 # Assume that delegate headers reside under same directory as ImageMagick
24073 # installation prefix.
24074 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24075
24076 #
24077 # Find the X11 RGB database
24078 #
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24080 $as_echo_n "checking for X11 configure files... " >&6; }
24081 if test "${im_cv_x_configure+set}" = set; then :
24082   $as_echo_n "(cached) " >&6
24083 else
24084   # Look for the header file in a standard set of common directories.
24085 # Check X11 before X11Rn because it is often a symlink to the current release.
24086     for ac_dir in          \
24087     /lib/usr/lib/X11       \
24088     /usr/X11/lib           \
24089     /usr/X11R4/lib         \
24090     /usr/X11R5/lib         \
24091     /usr/X11R6/lib         \
24092     /usr/X11R7/lib         \
24093     /usr/X386/lib          \
24094     /usr/XFree86/lib/X11   \
24095     /usr/athena/lib        \
24096     /usr/lib               \
24097     /usr/lib/X11           \
24098     /usr/lib/X11R4         \
24099     /usr/lib/X11R5         \
24100     /usr/lib/X11R6         \
24101     /usr/lib/X11R7         \
24102     /usr/local/X11/lib     \
24103     /usr/local/X11R4/lib   \
24104     /usr/local/X11R5/lib   \
24105     /usr/local/X11R6/lib   \
24106     /usr/local/lib         \
24107     /usr/local/lib/X11     \
24108     /usr/local/lib/X11R4   \
24109     /usr/local/lib/X11R5   \
24110     /usr/local/lib/X11R6   \
24111     /usr/local/lib/X11R7   \
24112     /usr/local/x11r5/lib   \
24113     /usr/lpp/Xamples/lib   \
24114     /usr/openwin/lib       \
24115     /usr/openwin/share/lib \
24116     /usr/unsupported/lib   \
24117     /usr/x386/lib          \
24118     ; do
24119     if test -f "$ac_dir/X11/rgb.txt"; then
24120       im_cv_x_configure="$ac_dir/X11/"
24121       break
24122     elif test -f "$ac_dir/rgb.txt"; then
24123       im_cv_x_configure="$ac_dir/"
24124       break
24125     fi
24126
24127   done
24128 fi
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24130 $as_echo "$im_cv_x_configure" >&6; }
24131 X11_CONFIGURE_PATH="$im_cv_x_configure"
24132 case "${build_os}" in
24133   mingw* )
24134     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24135   ;;
24136 esac
24137
24138 cat >>confdefs.h <<_ACEOF
24139 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24140 _ACEOF
24141
24142
24143 #
24144 # Find OpenMP library
24145 #
24146 GOMP_LIBS=''
24147 if test "$enable_openmp" != 'no'; then
24148   if test "${GCC}" = "yes"; then
24149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24150 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24151 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24152   $as_echo_n "(cached) " >&6
24153 else
24154   ac_check_lib_save_LIBS=$LIBS
24155 LIBS="-lgomp  $LIBS"
24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157 /* end confdefs.h.  */
24158
24159 /* Override any GCC internal prototype to avoid an error.
24160    Use char because int might match the return type of a GCC
24161    builtin and then its argument prototype would still apply.  */
24162 #ifdef __cplusplus
24163 extern "C"
24164 #endif
24165 char GOMP_parallel_start ();
24166 int
24167 main ()
24168 {
24169 return GOMP_parallel_start ();
24170   ;
24171   return 0;
24172 }
24173 _ACEOF
24174 if ac_fn_c_try_link "$LINENO"; then :
24175   ac_cv_lib_gomp_GOMP_parallel_start=yes
24176 else
24177   ac_cv_lib_gomp_GOMP_parallel_start=no
24178 fi
24179 rm -f core conftest.err conftest.$ac_objext \
24180     conftest$ac_exeext conftest.$ac_ext
24181 LIBS=$ac_check_lib_save_LIBS
24182 fi
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24184 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24185 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24186   GOMP_LIBS="-lgomp"
24187 fi
24188   # gcc
24189   else
24190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24191 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24192 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24193   $as_echo_n "(cached) " >&6
24194 else
24195   ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-lmtsk  $LIBS"
24197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198 /* end confdefs.h.  */
24199
24200 /* Override any GCC internal prototype to avoid an error.
24201    Use char because int might match the return type of a GCC
24202    builtin and then its argument prototype would still apply.  */
24203 #ifdef __cplusplus
24204 extern "C"
24205 #endif
24206 char sunw_mp_register_warn ();
24207 int
24208 main ()
24209 {
24210 return sunw_mp_register_warn ();
24211   ;
24212   return 0;
24213 }
24214 _ACEOF
24215 if ac_fn_c_try_link "$LINENO"; then :
24216   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24217 else
24218   ac_cv_lib_mtsk_sunw_mp_register_warn=no
24219 fi
24220 rm -f core conftest.err conftest.$ac_objext \
24221     conftest$ac_exeext conftest.$ac_ext
24222 LIBS=$ac_check_lib_save_LIBS
24223 fi
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24225 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24226 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24227   GOMP_LIBS="-lmtsk"
24228 fi
24229   # solaris cc
24230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24231 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24232 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24233   $as_echo_n "(cached) " >&6
24234 else
24235   ac_check_lib_save_LIBS=$LIBS
24236 LIBS="-lxlsmp  $LIBS"
24237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24238 /* end confdefs.h.  */
24239
24240 /* Override any GCC internal prototype to avoid an error.
24241    Use char because int might match the return type of a GCC
24242    builtin and then its argument prototype would still apply.  */
24243 #ifdef __cplusplus
24244 extern "C"
24245 #endif
24246 char _xlsmpFlush ();
24247 int
24248 main ()
24249 {
24250 return _xlsmpFlush ();
24251   ;
24252   return 0;
24253 }
24254 _ACEOF
24255 if ac_fn_c_try_link "$LINENO"; then :
24256   ac_cv_lib_xlsmp__xlsmpFlush=yes
24257 else
24258   ac_cv_lib_xlsmp__xlsmpFlush=no
24259 fi
24260 rm -f core conftest.err conftest.$ac_objext \
24261     conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24265 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24266 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24267   GOMP_LIBS="-lxlsmp"
24268 fi
24269   # AIX xlc
24270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24271 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24272 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24273   $as_echo_n "(cached) " >&6
24274 else
24275   ac_check_lib_save_LIBS=$LIBS
24276 LIBS="-lmp  $LIBS"
24277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h.  */
24279
24280 /* Override any GCC internal prototype to avoid an error.
24281    Use char because int might match the return type of a GCC
24282    builtin and then its argument prototype would still apply.  */
24283 #ifdef __cplusplus
24284 extern "C"
24285 #endif
24286 char mp_destroy ();
24287 int
24288 main ()
24289 {
24290 return mp_destroy ();
24291   ;
24292   return 0;
24293 }
24294 _ACEOF
24295 if ac_fn_c_try_link "$LINENO"; then :
24296   ac_cv_lib_mp_mp_destroy=yes
24297 else
24298   ac_cv_lib_mp_mp_destroy=no
24299 fi
24300 rm -f core conftest.err conftest.$ac_objext \
24301     conftest$ac_exeext conftest.$ac_ext
24302 LIBS=$ac_check_lib_save_LIBS
24303 fi
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24305 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24306 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24307   GOMP_LIBS="-lmp"
24308 fi
24309   # SGI IRIX 6.5 MIPSpro C/C++
24310   fi
24311   LIBS="$GOMP_LIBS $LIBS"
24312 fi
24313
24314
24315 #
24316 # Find Posix threads library
24317 #
24318 THREAD_LIBS=''
24319 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24320
24321     if test "x$PTHREAD_LIBS" = "x"; then
24322     case "${host_cpu}-${host_os}" in
24323       *-freebsd*)
24324
24325
24326
24327 ac_ext=c
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24332
24333 magick_pthread_lib_ok=no
24334
24335 LIB=-lc_r
24336 save_LIBS="$LIBS"
24337 LIBS="$LIBS $LIB"
24338
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24340 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h.  */
24343 #include <pthread.h>
24344 int
24345 main ()
24346 {
24347   pthread_t th;
24348   pthread_join(th, 0);
24349   pthread_attr_init(0);
24350   pthread_cleanup_push(0, 0);
24351   pthread_create(0,0,0,0);
24352   pthread_cleanup_pop(0);
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 if ac_fn_c_try_link "$LINENO"; then :
24358   magick_pthread_lib_ok=yes
24359 fi
24360 rm -f core conftest.err conftest.$ac_objext \
24361     conftest$ac_exeext conftest.$ac_ext
24362
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24364 $as_echo "${magick_pthread_lib_ok}" >&6; }
24365 if test "$magick_pthread_lib_ok" = yes
24366 then
24367   PTHREAD_LIBS=-lc_r
24368   :
24369 else
24370
24371   :
24372 fi
24373
24374 LIBS="$save_LIBS"
24375
24376 ac_ext=c
24377 ac_cpp='$CPP $CPPFLAGS'
24378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24381
24382  ;;
24383     esac
24384     fi
24385
24386     for lib in pthread pthreads; do
24387         if test "x$PTHREAD_LIBS" = "x"; then
24388
24389
24390
24391 ac_ext=c
24392 ac_cpp='$CPP $CPPFLAGS'
24393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24396
24397 magick_pthread_lib_ok=no
24398
24399 LIB=-l$lib
24400 save_LIBS="$LIBS"
24401 LIBS="$LIBS $LIB"
24402
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24404 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24406 /* end confdefs.h.  */
24407 #include <pthread.h>
24408 int
24409 main ()
24410 {
24411   pthread_t th;
24412   pthread_join(th, 0);
24413   pthread_attr_init(0);
24414   pthread_cleanup_push(0, 0);
24415   pthread_create(0,0,0,0);
24416   pthread_cleanup_pop(0);
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 if ac_fn_c_try_link "$LINENO"; then :
24422   magick_pthread_lib_ok=yes
24423 fi
24424 rm -f core conftest.err conftest.$ac_objext \
24425     conftest$ac_exeext conftest.$ac_ext
24426
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24428 $as_echo "${magick_pthread_lib_ok}" >&6; }
24429 if test "$magick_pthread_lib_ok" = yes
24430 then
24431   PTHREAD_LIBS=-l$lib
24432   :
24433 else
24434
24435   :
24436 fi
24437
24438 LIBS="$save_LIBS"
24439
24440 ac_ext=c
24441 ac_cpp='$CPP $CPPFLAGS'
24442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24445
24446
24447         fi
24448     done
24449
24450     THREAD_LIBS="$PTHREAD_LIBS"
24451     LIBS="$LIBS $THREAD_LIBS"
24452 fi
24453
24454
24455 #
24456 # Check for umem.
24457 #
24458 have_umem='no'
24459 UMEM_LIBS=''
24460 if test "$with_umem" != 'no'; then
24461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24462 $as_echo_n "checking for UMEM support ... " >&6; }
24463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24464 $as_echo "" >&6; }
24465   failed=0
24466   passed=0
24467   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24468 if test "x$ac_cv_header_umem_h" = x""yes; then :
24469   passed=`expr $passed + 1`
24470 else
24471   failed=`expr $failed + 1`
24472 fi
24473
24474
24475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24476 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24477 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24478   $as_echo_n "(cached) " >&6
24479 else
24480   ac_check_lib_save_LIBS=$LIBS
24481 LIBS="-lumem  $LIBS"
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h.  */
24484
24485 /* Override any GCC internal prototype to avoid an error.
24486    Use char because int might match the return type of a GCC
24487    builtin and then its argument prototype would still apply.  */
24488 #ifdef __cplusplus
24489 extern "C"
24490 #endif
24491 char umem_alloc ();
24492 int
24493 main ()
24494 {
24495 return umem_alloc ();
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 if ac_fn_c_try_link "$LINENO"; then :
24501   ac_cv_lib_umem_umem_alloc=yes
24502 else
24503   ac_cv_lib_umem_umem_alloc=no
24504 fi
24505 rm -f core conftest.err conftest.$ac_objext \
24506     conftest$ac_exeext conftest.$ac_ext
24507 LIBS=$ac_check_lib_save_LIBS
24508 fi
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24510 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24511 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24512   passed=`expr $passed + 1`
24513 else
24514   failed=`expr $failed + 1`
24515 fi
24516
24517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24518 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24519 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24520   $as_echo_n "(cached) " >&6
24521 else
24522   ac_check_lib_save_LIBS=$LIBS
24523 LIBS="-lumem  $LIBS"
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h.  */
24526
24527 /* Override any GCC internal prototype to avoid an error.
24528    Use char because int might match the return type of a GCC
24529    builtin and then its argument prototype would still apply.  */
24530 #ifdef __cplusplus
24531 extern "C"
24532 #endif
24533 char umem_free ();
24534 int
24535 main ()
24536 {
24537 return umem_free ();
24538   ;
24539   return 0;
24540 }
24541 _ACEOF
24542 if ac_fn_c_try_link "$LINENO"; then :
24543   ac_cv_lib_umem_umem_free=yes
24544 else
24545   ac_cv_lib_umem_umem_free=no
24546 fi
24547 rm -f core conftest.err conftest.$ac_objext \
24548     conftest$ac_exeext conftest.$ac_ext
24549 LIBS=$ac_check_lib_save_LIBS
24550 fi
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24552 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24553 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24554   passed=`expr $passed + 1`
24555 else
24556   failed=`expr $failed + 1`
24557 fi
24558
24559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24560 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24561   if test $passed -gt 0; then
24562     if test $failed -gt 0; then
24563       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24564 $as_echo "no -- some components failed test" >&6; }
24565       have_umem='no (failed tests)'
24566     else
24567       UMEM_LIBS='-lumem'
24568       LIBS="$UMEM_LIBS $LIBS"
24569
24570 $as_echo "#define HasUMEM 1" >>confdefs.h
24571
24572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24573 $as_echo "yes" >&6; }
24574       have_umem='yes'
24575     fi
24576   else
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24578 $as_echo "no" >&6; }
24579   fi
24580 fi
24581  if test "$have_umem" = 'yes'; then
24582   HasUMEM_TRUE=
24583   HasUMEM_FALSE='#'
24584 else
24585   HasUMEM_TRUE='#'
24586   HasUMEM_FALSE=
24587 fi
24588
24589
24590
24591 #
24592 # Add support for ccmalloc memory debugging library if requested
24593 #
24594 have_ccmalloc='no'
24595 CCMALLOC_LIBS=''
24596 if test "$enable_ccmalloc" = 'yes'; then
24597     # Extract the first word of "ccmalloc", so it can be a program name with args.
24598 set dummy ccmalloc; ac_word=$2
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 $as_echo_n "checking for $ac_word... " >&6; }
24601 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24602   $as_echo_n "(cached) " >&6
24603 else
24604   case $CCMALLOCDelegate in
24605   [\\/]* | ?:[\\/]*)
24606   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24607   ;;
24608   *)
24609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 for as_dir in $PATH
24611 do
24612   IFS=$as_save_IFS
24613   test -z "$as_dir" && as_dir=.
24614     for ac_exec_ext in '' $ac_executable_extensions; do
24615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24616     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24618     break 2
24619   fi
24620 done
24621   done
24622 IFS=$as_save_IFS
24623
24624   ;;
24625 esac
24626 fi
24627 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24628 if test -n "$CCMALLOCDelegate"; then
24629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24630 $as_echo "$CCMALLOCDelegate" >&6; }
24631 else
24632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24633 $as_echo "no" >&6; }
24634 fi
24635
24636
24637     if test -n "$CCMALLOCDelegate"; then
24638         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24639         OLIBS="$LIBS"
24640         # Assume that gcc is used with ccmalloc.
24641         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24642        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24643 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24644 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24645   $as_echo_n "(cached) " >&6
24646 else
24647   ac_check_lib_save_LIBS=$LIBS
24648 LIBS="-lccmalloc -ldl $LIBS"
24649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24650 /* end confdefs.h.  */
24651
24652 /* Override any GCC internal prototype to avoid an error.
24653    Use char because int might match the return type of a GCC
24654    builtin and then its argument prototype would still apply.  */
24655 #ifdef __cplusplus
24656 extern "C"
24657 #endif
24658 char ccmalloc_malloc ();
24659 int
24660 main ()
24661 {
24662 return ccmalloc_malloc ();
24663   ;
24664   return 0;
24665 }
24666 _ACEOF
24667 if ac_fn_c_try_link "$LINENO"; then :
24668   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24669 else
24670   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24671 fi
24672 rm -f core conftest.err conftest.$ac_objext \
24673     conftest$ac_exeext conftest.$ac_ext
24674 LIBS=$ac_check_lib_save_LIBS
24675 fi
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24677 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24678 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24679   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24680 fi
24681
24682         if test -n "$CCMALLOC_LIBS"; then
24683             LIBS="$OLIBS"
24684             LIBS="$LIBS $CCMALLOC_LIBS"
24685             have_ccmalloc='yes'
24686         else
24687             LIBS="$OLIBS"
24688         fi
24689     fi
24690 fi
24691
24692 #
24693 # Add support for efence memory debugging library if requested
24694 #
24695 if test "$enable_efence" = 'yes'; then
24696     EFENCE_LIBS='-lefence'
24697     LIBS="$EFENCE_LIBS $LIBS"
24698 fi
24699
24700
24701 #
24702 # Check for BZLIB
24703 #
24704
24705
24706 # Check whether --with-bzlib was given.
24707 if test "${with_bzlib+set}" = set; then :
24708   withval=$with_bzlib; with_bzlib=$withval
24709 else
24710   with_bzlib='yes'
24711 fi
24712
24713
24714 if test "$with_bzlib" != 'yes'; then
24715     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24716 fi
24717
24718 have_bzlib='no'
24719 if test "$with_bzlib" != 'no'; then
24720     BZLIB_LIBS=''
24721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24722 $as_echo "-------------------------------------------------------------" >&6; }
24723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24724 $as_echo_n "checking for BZLIB... " >&6; }
24725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24726 $as_echo "" >&6; }
24727     failed=0
24728     passed=0
24729     found_libbz=0
24730     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24731 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24732   passed=`expr $passed + 1`
24733 else
24734   failed=`expr $failed + 1`
24735 fi
24736
24737
24738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24739 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24740 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24741   $as_echo_n "(cached) " >&6
24742 else
24743   ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lbz2  $LIBS"
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h.  */
24747
24748 /* Override any GCC internal prototype to avoid an error.
24749    Use char because int might match the return type of a GCC
24750    builtin and then its argument prototype would still apply.  */
24751 #ifdef __cplusplus
24752 extern "C"
24753 #endif
24754 char BZ2_bzDecompress ();
24755 int
24756 main ()
24757 {
24758 return BZ2_bzDecompress ();
24759   ;
24760   return 0;
24761 }
24762 _ACEOF
24763 if ac_fn_c_try_link "$LINENO"; then :
24764   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24765 else
24766   ac_cv_lib_bz2_BZ2_bzDecompress=no
24767 fi
24768 rm -f core conftest.err conftest.$ac_objext \
24769     conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24771 fi
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24773 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24774 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24775   found_libbz=`expr $found_libbz + 1`
24776 fi
24777
24778     if test "$native_win32_build" = 'yes'; then
24779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24780 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24781 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24782   $as_echo_n "(cached) " >&6
24783 else
24784   ac_check_lib_save_LIBS=$LIBS
24785 LIBS="-lbz2  $LIBS"
24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24787 /* end confdefs.h.  */
24788
24789 /* Override any GCC internal prototype to avoid an error.
24790    Use char because int might match the return type of a GCC
24791    builtin and then its argument prototype would still apply.  */
24792 #ifdef __cplusplus
24793 extern "C"
24794 #endif
24795 char _imp__BZ2_decompress ();
24796 int
24797 main ()
24798 {
24799 return _imp__BZ2_decompress ();
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"; then :
24805   ac_cv_lib_bz2__imp__BZ2_decompress=yes
24806 else
24807   ac_cv_lib_bz2__imp__BZ2_decompress=no
24808 fi
24809 rm -f core conftest.err conftest.$ac_objext \
24810     conftest$ac_exeext conftest.$ac_ext
24811 LIBS=$ac_check_lib_save_LIBS
24812 fi
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24814 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24815 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24816   found_libbz=`expr $found_libbz + 1`
24817 fi
24818
24819     fi
24820     if test $found_libbz -gt 0; then
24821       passed=`expr $passed + 1`
24822     else
24823       failed=`expr $failed + 1`
24824     fi
24825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24826 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24827     if test $passed -gt 0; then
24828       if test $failed -gt 0; then
24829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24830 $as_echo "no -- some components failed test" >&6; }
24831         have_bzlib='no (failed tests)'
24832       else
24833         BZLIB_LIBS='-lbz2'
24834         LIBS="$BZLIB_LIBS $LIBS"
24835
24836 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24837
24838         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24839 $as_echo "yes" >&6; }
24840         have_bzlib='yes'
24841       fi
24842     else
24843       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844 $as_echo "no" >&6; }
24845     fi
24846 fi
24847  if test "$have_bzlib" = 'yes'; then
24848   BZLIB_DELEGATE_TRUE=
24849   BZLIB_DELEGATE_FALSE='#'
24850 else
24851   BZLIB_DELEGATE_TRUE='#'
24852   BZLIB_DELEGATE_FALSE=
24853 fi
24854
24855
24856
24857 #
24858 # Find the X11 include and library directories.
24859 #
24860 IPC_LIBS=''
24861 X11_LIBS=''
24862 XEXT_LIBS=''
24863 XT_LIBS=''
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24865 $as_echo_n "checking for X... " >&6; }
24866
24867
24868 # Check whether --with-x was given.
24869 if test "${with_x+set}" = set; then :
24870   withval=$with_x;
24871 fi
24872
24873 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24874 if test "x$with_x" = xno; then
24875   # The user explicitly disabled X.
24876   have_x=disabled
24877 else
24878   case $x_includes,$x_libraries in #(
24879     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24880     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24881   $as_echo_n "(cached) " >&6
24882 else
24883   # One or both of the vars are not set, and there is no cached value.
24884 ac_x_includes=no ac_x_libraries=no
24885 rm -f -r conftest.dir
24886 if mkdir conftest.dir; then
24887   cd conftest.dir
24888   cat >Imakefile <<'_ACEOF'
24889 incroot:
24890         @echo incroot='${INCROOT}'
24891 usrlibdir:
24892         @echo usrlibdir='${USRLIBDIR}'
24893 libdir:
24894         @echo libdir='${LIBDIR}'
24895 _ACEOF
24896   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24897     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24898     for ac_var in incroot usrlibdir libdir; do
24899       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24900     done
24901     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24902     for ac_extension in a so sl dylib la dll; do
24903       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24904          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24905         ac_im_usrlibdir=$ac_im_libdir; break
24906       fi
24907     done
24908     # Screen out bogus values from the imake configuration.  They are
24909     # bogus both because they are the default anyway, and because
24910     # using them would break gcc on systems where it needs fixed includes.
24911     case $ac_im_incroot in
24912         /usr/include) ac_x_includes= ;;
24913         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24914     esac
24915     case $ac_im_usrlibdir in
24916         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24917         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24918     esac
24919   fi
24920   cd ..
24921   rm -f -r conftest.dir
24922 fi
24923
24924 # Standard set of common directories for X headers.
24925 # Check X11 before X11Rn because it is often a symlink to the current release.
24926 ac_x_header_dirs='
24927 /usr/X11/include
24928 /usr/X11R7/include
24929 /usr/X11R6/include
24930 /usr/X11R5/include
24931 /usr/X11R4/include
24932
24933 /usr/include/X11
24934 /usr/include/X11R7
24935 /usr/include/X11R6
24936 /usr/include/X11R5
24937 /usr/include/X11R4
24938
24939 /usr/local/X11/include
24940 /usr/local/X11R7/include
24941 /usr/local/X11R6/include
24942 /usr/local/X11R5/include
24943 /usr/local/X11R4/include
24944
24945 /usr/local/include/X11
24946 /usr/local/include/X11R7
24947 /usr/local/include/X11R6
24948 /usr/local/include/X11R5
24949 /usr/local/include/X11R4
24950
24951 /usr/X386/include
24952 /usr/x386/include
24953 /usr/XFree86/include/X11
24954
24955 /usr/include
24956 /usr/local/include
24957 /usr/unsupported/include
24958 /usr/athena/include
24959 /usr/local/x11r5/include
24960 /usr/lpp/Xamples/include
24961
24962 /usr/openwin/include
24963 /usr/openwin/share/include'
24964
24965 if test "$ac_x_includes" = no; then
24966   # Guess where to find include files, by looking for Xlib.h.
24967   # First, try using that file with no special directory specified.
24968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h.  */
24970 #include <X11/Xlib.h>
24971 _ACEOF
24972 if ac_fn_c_try_cpp "$LINENO"; then :
24973   # We can compile using X headers with no special include directory.
24974 ac_x_includes=
24975 else
24976   for ac_dir in $ac_x_header_dirs; do
24977   if test -r "$ac_dir/X11/Xlib.h"; then
24978     ac_x_includes=$ac_dir
24979     break
24980   fi
24981 done
24982 fi
24983 rm -f conftest.err conftest.$ac_ext
24984 fi # $ac_x_includes = no
24985
24986 if test "$ac_x_libraries" = no; then
24987   # Check for the libraries.
24988   # See if we find them without any special options.
24989   # Don't add to $LIBS permanently.
24990   ac_save_LIBS=$LIBS
24991   LIBS="-lX11 $LIBS"
24992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24993 /* end confdefs.h.  */
24994 #include <X11/Xlib.h>
24995 int
24996 main ()
24997 {
24998 XrmInitialize ()
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 if ac_fn_c_try_link "$LINENO"; then :
25004   LIBS=$ac_save_LIBS
25005 # We can link X programs with no special library path.
25006 ac_x_libraries=
25007 else
25008   LIBS=$ac_save_LIBS
25009 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25010 do
25011   # Don't even attempt the hair of trying to link an X program!
25012   for ac_extension in a so sl dylib la dll; do
25013     if test -r "$ac_dir/libX11.$ac_extension"; then
25014       ac_x_libraries=$ac_dir
25015       break 2
25016     fi
25017   done
25018 done
25019 fi
25020 rm -f core conftest.err conftest.$ac_objext \
25021     conftest$ac_exeext conftest.$ac_ext
25022 fi # $ac_x_libraries = no
25023
25024 case $ac_x_includes,$ac_x_libraries in #(
25025   no,* | *,no | *\'*)
25026     # Didn't find X, or a directory has "'" in its name.
25027     ac_cv_have_x="have_x=no";; #(
25028   *)
25029     # Record where we found X for the cache.
25030     ac_cv_have_x="have_x=yes\
25031         ac_x_includes='$ac_x_includes'\
25032         ac_x_libraries='$ac_x_libraries'"
25033 esac
25034 fi
25035 ;; #(
25036     *) have_x=yes;;
25037   esac
25038   eval "$ac_cv_have_x"
25039 fi # $with_x != no
25040
25041 if test "$have_x" != yes; then
25042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25043 $as_echo "$have_x" >&6; }
25044   no_x=yes
25045 else
25046   # If each of the values was on the command line, it overrides each guess.
25047   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25048   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25049   # Update the cache value to reflect the command line values.
25050   ac_cv_have_x="have_x=yes\
25051         ac_x_includes='$x_includes'\
25052         ac_x_libraries='$x_libraries'"
25053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25054 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25055 fi
25056
25057 if test "$no_x" = yes; then
25058   # Not all programs may use this symbol, but it does not hurt to define it.
25059
25060 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25061
25062   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25063 else
25064   if test -n "$x_includes"; then
25065     X_CFLAGS="$X_CFLAGS -I$x_includes"
25066   fi
25067
25068   # It would also be nice to do this for all -L options, not just this one.
25069   if test -n "$x_libraries"; then
25070     X_LIBS="$X_LIBS -L$x_libraries"
25071     # For Solaris; some versions of Sun CC require a space after -R and
25072     # others require no space.  Words are not sufficient . . . .
25073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25074 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25075     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25076     ac_xsave_c_werror_flag=$ac_c_werror_flag
25077     ac_c_werror_flag=yes
25078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25079 /* end confdefs.h.  */
25080
25081 int
25082 main ()
25083 {
25084
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 if ac_fn_c_try_link "$LINENO"; then :
25090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25091 $as_echo "no" >&6; }
25092        X_LIBS="$X_LIBS -R$x_libraries"
25093 else
25094   LIBS="$ac_xsave_LIBS -R $x_libraries"
25095        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h.  */
25097
25098 int
25099 main ()
25100 {
25101
25102   ;
25103   return 0;
25104 }
25105 _ACEOF
25106 if ac_fn_c_try_link "$LINENO"; then :
25107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25108 $as_echo "yes" >&6; }
25109           X_LIBS="$X_LIBS -R $x_libraries"
25110 else
25111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25112 $as_echo "neither works" >&6; }
25113 fi
25114 rm -f core conftest.err conftest.$ac_objext \
25115     conftest$ac_exeext conftest.$ac_ext
25116 fi
25117 rm -f core conftest.err conftest.$ac_objext \
25118     conftest$ac_exeext conftest.$ac_ext
25119     ac_c_werror_flag=$ac_xsave_c_werror_flag
25120     LIBS=$ac_xsave_LIBS
25121   fi
25122
25123   # Check for system-dependent libraries X programs must link with.
25124   # Do this before checking for the system-independent R6 libraries
25125   # (-lICE), since we may need -lsocket or whatever for X linking.
25126
25127   if test "$ISC" = yes; then
25128     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25129   else
25130     # Martyn Johnson says this is needed for Ultrix, if the X
25131     # libraries were built with DECnet support.  And Karl Berry says
25132     # the Alpha needs dnet_stub (dnet does not exist).
25133     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25134     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h.  */
25136
25137 /* Override any GCC internal prototype to avoid an error.
25138    Use char because int might match the return type of a GCC
25139    builtin and then its argument prototype would still apply.  */
25140 #ifdef __cplusplus
25141 extern "C"
25142 #endif
25143 char XOpenDisplay ();
25144 int
25145 main ()
25146 {
25147 return XOpenDisplay ();
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 if ac_fn_c_try_link "$LINENO"; then :
25153
25154 else
25155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25156 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25157 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25158   $as_echo_n "(cached) " >&6
25159 else
25160   ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-ldnet  $LIBS"
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h.  */
25164
25165 /* Override any GCC internal prototype to avoid an error.
25166    Use char because int might match the return type of a GCC
25167    builtin and then its argument prototype would still apply.  */
25168 #ifdef __cplusplus
25169 extern "C"
25170 #endif
25171 char dnet_ntoa ();
25172 int
25173 main ()
25174 {
25175 return dnet_ntoa ();
25176   ;
25177   return 0;
25178 }
25179 _ACEOF
25180 if ac_fn_c_try_link "$LINENO"; then :
25181   ac_cv_lib_dnet_dnet_ntoa=yes
25182 else
25183   ac_cv_lib_dnet_dnet_ntoa=no
25184 fi
25185 rm -f core conftest.err conftest.$ac_objext \
25186     conftest$ac_exeext conftest.$ac_ext
25187 LIBS=$ac_check_lib_save_LIBS
25188 fi
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25190 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25191 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25192   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25193 fi
25194
25195     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25196       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25197 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25198 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25199   $as_echo_n "(cached) " >&6
25200 else
25201   ac_check_lib_save_LIBS=$LIBS
25202 LIBS="-ldnet_stub  $LIBS"
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h.  */
25205
25206 /* Override any GCC internal prototype to avoid an error.
25207    Use char because int might match the return type of a GCC
25208    builtin and then its argument prototype would still apply.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char dnet_ntoa ();
25213 int
25214 main ()
25215 {
25216 return dnet_ntoa ();
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 if ac_fn_c_try_link "$LINENO"; then :
25222   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25223 else
25224   ac_cv_lib_dnet_stub_dnet_ntoa=no
25225 fi
25226 rm -f core conftest.err conftest.$ac_objext \
25227     conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25229 fi
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25231 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25232 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25233   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25234 fi
25235
25236     fi
25237 fi
25238 rm -f core conftest.err conftest.$ac_objext \
25239     conftest$ac_exeext conftest.$ac_ext
25240     LIBS="$ac_xsave_LIBS"
25241
25242     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25243     # to get the SysV transport functions.
25244     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25245     # needs -lnsl.
25246     # The nsl library prevents programs from opening the X display
25247     # on Irix 5.2, according to T.E. Dickey.
25248     # The functions gethostbyname, getservbyname, and inet_addr are
25249     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25250     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25251 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25252
25253 fi
25254
25255     if test $ac_cv_func_gethostbyname = no; then
25256       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25257 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25258 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25259   $as_echo_n "(cached) " >&6
25260 else
25261   ac_check_lib_save_LIBS=$LIBS
25262 LIBS="-lnsl  $LIBS"
25263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25264 /* end confdefs.h.  */
25265
25266 /* Override any GCC internal prototype to avoid an error.
25267    Use char because int might match the return type of a GCC
25268    builtin and then its argument prototype would still apply.  */
25269 #ifdef __cplusplus
25270 extern "C"
25271 #endif
25272 char gethostbyname ();
25273 int
25274 main ()
25275 {
25276 return gethostbyname ();
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 if ac_fn_c_try_link "$LINENO"; then :
25282   ac_cv_lib_nsl_gethostbyname=yes
25283 else
25284   ac_cv_lib_nsl_gethostbyname=no
25285 fi
25286 rm -f core conftest.err conftest.$ac_objext \
25287     conftest$ac_exeext conftest.$ac_ext
25288 LIBS=$ac_check_lib_save_LIBS
25289 fi
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25291 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25292 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25293   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25294 fi
25295
25296       if test $ac_cv_lib_nsl_gethostbyname = no; then
25297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25298 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25299 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25300   $as_echo_n "(cached) " >&6
25301 else
25302   ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-lbsd  $LIBS"
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h.  */
25306
25307 /* Override any GCC internal prototype to avoid an error.
25308    Use char because int might match the return type of a GCC
25309    builtin and then its argument prototype would still apply.  */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char gethostbyname ();
25314 int
25315 main ()
25316 {
25317 return gethostbyname ();
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 if ac_fn_c_try_link "$LINENO"; then :
25323   ac_cv_lib_bsd_gethostbyname=yes
25324 else
25325   ac_cv_lib_bsd_gethostbyname=no
25326 fi
25327 rm -f core conftest.err conftest.$ac_objext \
25328     conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25330 fi
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25332 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25333 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25334   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25335 fi
25336
25337       fi
25338     fi
25339
25340     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25341     # socket/setsockopt and other routines are undefined under SCO ODT
25342     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25343     # on later versions), says Simon Leinen: it contains gethostby*
25344     # variants that don't use the name server (or something).  -lsocket
25345     # must be given before -lnsl if both are needed.  We assume that
25346     # if connect needs -lnsl, so does gethostbyname.
25347     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25348 if test "x$ac_cv_func_connect" = x""yes; then :
25349
25350 fi
25351
25352     if test $ac_cv_func_connect = no; then
25353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25354 $as_echo_n "checking for connect in -lsocket... " >&6; }
25355 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25356   $as_echo_n "(cached) " >&6
25357 else
25358   ac_check_lib_save_LIBS=$LIBS
25359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h.  */
25362
25363 /* Override any GCC internal prototype to avoid an error.
25364    Use char because int might match the return type of a GCC
25365    builtin and then its argument prototype would still apply.  */
25366 #ifdef __cplusplus
25367 extern "C"
25368 #endif
25369 char connect ();
25370 int
25371 main ()
25372 {
25373 return connect ();
25374   ;
25375   return 0;
25376 }
25377 _ACEOF
25378 if ac_fn_c_try_link "$LINENO"; then :
25379   ac_cv_lib_socket_connect=yes
25380 else
25381   ac_cv_lib_socket_connect=no
25382 fi
25383 rm -f core conftest.err conftest.$ac_objext \
25384     conftest$ac_exeext conftest.$ac_ext
25385 LIBS=$ac_check_lib_save_LIBS
25386 fi
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25388 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25389 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25390   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25391 fi
25392
25393     fi
25394
25395     # Guillermo Gomez says -lposix is necessary on A/UX.
25396     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25397 if test "x$ac_cv_func_remove" = x""yes; then :
25398
25399 fi
25400
25401     if test $ac_cv_func_remove = no; then
25402       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25403 $as_echo_n "checking for remove in -lposix... " >&6; }
25404 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25405   $as_echo_n "(cached) " >&6
25406 else
25407   ac_check_lib_save_LIBS=$LIBS
25408 LIBS="-lposix  $LIBS"
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h.  */
25411
25412 /* Override any GCC internal prototype to avoid an error.
25413    Use char because int might match the return type of a GCC
25414    builtin and then its argument prototype would still apply.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 #endif
25418 char remove ();
25419 int
25420 main ()
25421 {
25422 return remove ();
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 if ac_fn_c_try_link "$LINENO"; then :
25428   ac_cv_lib_posix_remove=yes
25429 else
25430   ac_cv_lib_posix_remove=no
25431 fi
25432 rm -f core conftest.err conftest.$ac_objext \
25433     conftest$ac_exeext conftest.$ac_ext
25434 LIBS=$ac_check_lib_save_LIBS
25435 fi
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25437 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25438 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25439   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25440 fi
25441
25442     fi
25443
25444     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25445     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25446 if test "x$ac_cv_func_shmat" = x""yes; then :
25447
25448 fi
25449
25450     if test $ac_cv_func_shmat = no; then
25451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25452 $as_echo_n "checking for shmat in -lipc... " >&6; }
25453 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25454   $as_echo_n "(cached) " >&6
25455 else
25456   ac_check_lib_save_LIBS=$LIBS
25457 LIBS="-lipc  $LIBS"
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h.  */
25460
25461 /* Override any GCC internal prototype to avoid an error.
25462    Use char because int might match the return type of a GCC
25463    builtin and then its argument prototype would still apply.  */
25464 #ifdef __cplusplus
25465 extern "C"
25466 #endif
25467 char shmat ();
25468 int
25469 main ()
25470 {
25471 return shmat ();
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 if ac_fn_c_try_link "$LINENO"; then :
25477   ac_cv_lib_ipc_shmat=yes
25478 else
25479   ac_cv_lib_ipc_shmat=no
25480 fi
25481 rm -f core conftest.err conftest.$ac_objext \
25482     conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25484 fi
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25486 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25487 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25488   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25489 fi
25490
25491     fi
25492   fi
25493
25494   # Check for libraries that X11R6 Xt/Xaw programs need.
25495   ac_save_LDFLAGS=$LDFLAGS
25496   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25497   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25498   # check for ICE first), but we must link in the order -lSM -lICE or
25499   # we get undefined symbols.  So assume we have SM if we have ICE.
25500   # These have to be linked with before -lX11, unlike the other
25501   # libraries we check for below, so use a different variable.
25502   # John Interrante, Karl Berry
25503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25504 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25505 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25506   $as_echo_n "(cached) " >&6
25507 else
25508   ac_check_lib_save_LIBS=$LIBS
25509 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h.  */
25512
25513 /* Override any GCC internal prototype to avoid an error.
25514    Use char because int might match the return type of a GCC
25515    builtin and then its argument prototype would still apply.  */
25516 #ifdef __cplusplus
25517 extern "C"
25518 #endif
25519 char IceConnectionNumber ();
25520 int
25521 main ()
25522 {
25523 return IceConnectionNumber ();
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 if ac_fn_c_try_link "$LINENO"; then :
25529   ac_cv_lib_ICE_IceConnectionNumber=yes
25530 else
25531   ac_cv_lib_ICE_IceConnectionNumber=no
25532 fi
25533 rm -f core conftest.err conftest.$ac_objext \
25534     conftest$ac_exeext conftest.$ac_ext
25535 LIBS=$ac_check_lib_save_LIBS
25536 fi
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25538 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25539 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25540   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25541 fi
25542
25543   LDFLAGS=$ac_save_LDFLAGS
25544
25545 fi
25546
25547 if test "$no_x" != 'yes'; then
25548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25549 $as_echo "-------------------------------------------------------------" >&6; }
25550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25551 $as_echo_n "checking for X11... " >&6; }
25552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25553 $as_echo "" >&6; }
25554     LDFLAGS="$LDFLAGS $X_LIBS"
25555     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25556     LIBS="$X11_LIBS $LIBS"
25557     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25558
25559
25560 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25561
25562     #
25563     # Check for X11 shared memory extension
25564     #
25565     # shmctl is required to support the shared memory extension
25566     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25567 if test "x$ac_cv_func_shmctl" = x""yes; then :
25568   have_shmctl='yes'
25569 fi
25570
25571     if test "$have_shmctl" != 'yes'; then
25572         PERSIST_LIBS=$LIBS
25573         LIBS="$LIBS -lcygipc"
25574         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h.  */
25576
25577 /* Override any GCC internal prototype to avoid an error.
25578    Use char because int might match the return type of a GCC
25579    builtin and then its argument prototype would still apply.  */
25580 #ifdef __cplusplus
25581 extern "C"
25582 #endif
25583 char shmctl ();
25584 int
25585 main ()
25586 {
25587 return shmctl ();
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 if ac_fn_c_try_link "$LINENO"; then :
25593   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25594 fi
25595 rm -f core conftest.err conftest.$ac_objext \
25596     conftest$ac_exeext conftest.$ac_ext
25597         LIBS=$PERSIST_LIBS
25598     fi
25599
25600     if test "$have_shmctl" = 'yes'; then
25601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25602 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25603 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25604   $as_echo_n "(cached) " >&6
25605 else
25606   ac_check_lib_save_LIBS=$LIBS
25607 LIBS="-lXext  $LIBS"
25608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609 /* end confdefs.h.  */
25610
25611 /* Override any GCC internal prototype to avoid an error.
25612    Use char because int might match the return type of a GCC
25613    builtin and then its argument prototype would still apply.  */
25614 #ifdef __cplusplus
25615 extern "C"
25616 #endif
25617 char XShmAttach ();
25618 int
25619 main ()
25620 {
25621 return XShmAttach ();
25622   ;
25623   return 0;
25624 }
25625 _ACEOF
25626 if ac_fn_c_try_link "$LINENO"; then :
25627   ac_cv_lib_Xext_XShmAttach=yes
25628 else
25629   ac_cv_lib_Xext_XShmAttach=no
25630 fi
25631 rm -f core conftest.err conftest.$ac_objext \
25632     conftest$ac_exeext conftest.$ac_ext
25633 LIBS=$ac_check_lib_save_LIBS
25634 fi
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25636 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25637 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25638   XEXT_LIBS='-lXext' ;
25639 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25640
25641 fi
25642
25643     fi
25644
25645     #
25646     # Check for X11 shape extension
25647     #
25648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25649 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25650 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25651   $as_echo_n "(cached) " >&6
25652 else
25653   ac_check_lib_save_LIBS=$LIBS
25654 LIBS="-lXext  $LIBS"
25655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656 /* end confdefs.h.  */
25657
25658 /* Override any GCC internal prototype to avoid an error.
25659    Use char because int might match the return type of a GCC
25660    builtin and then its argument prototype would still apply.  */
25661 #ifdef __cplusplus
25662 extern "C"
25663 #endif
25664 char XShapeCombineMask ();
25665 int
25666 main ()
25667 {
25668 return XShapeCombineMask ();
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 if ac_fn_c_try_link "$LINENO"; then :
25674   ac_cv_lib_Xext_XShapeCombineMask=yes
25675 else
25676   ac_cv_lib_Xext_XShapeCombineMask=no
25677 fi
25678 rm -f core conftest.err conftest.$ac_objext \
25679     conftest$ac_exeext conftest.$ac_ext
25680 LIBS=$ac_check_lib_save_LIBS
25681 fi
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25683 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25684 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25685   XEXT_LIBS='-lXext' ;
25686 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25687
25688 fi
25689
25690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25691 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25692 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25693   $as_echo_n "(cached) " >&6
25694 else
25695   ac_check_lib_save_LIBS=$LIBS
25696 LIBS="-lXt  $LIBS"
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h.  */
25699
25700 /* Override any GCC internal prototype to avoid an error.
25701    Use char because int might match the return type of a GCC
25702    builtin and then its argument prototype would still apply.  */
25703 #ifdef __cplusplus
25704 extern "C"
25705 #endif
25706 char XtSetEventDispatcher ();
25707 int
25708 main ()
25709 {
25710 return XtSetEventDispatcher ();
25711   ;
25712   return 0;
25713 }
25714 _ACEOF
25715 if ac_fn_c_try_link "$LINENO"; then :
25716   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25717 else
25718   ac_cv_lib_Xt_XtSetEventDispatcher=no
25719 fi
25720 rm -f core conftest.err conftest.$ac_objext \
25721     conftest$ac_exeext conftest.$ac_ext
25722 LIBS=$ac_check_lib_save_LIBS
25723 fi
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25725 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25726 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25727   XT_LIBS='-lXt'
25728 fi
25729
25730     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25731 fi
25732 if test "$no_x" != 'yes'; then
25733   have_x='yes'
25734 else
25735   have_x='no'
25736 fi
25737  if test "$have_x" = 'yes'; then
25738   X11_DELEGATE_TRUE=
25739   X11_DELEGATE_FALSE='#'
25740 else
25741   X11_DELEGATE_TRUE='#'
25742   X11_DELEGATE_FALSE=
25743 fi
25744
25745
25746
25747
25748
25749 #
25750 # Check for ZLIB
25751 #
25752
25753 # Check whether --with-zlib was given.
25754 if test "${with_zlib+set}" = set; then :
25755   withval=$with_zlib; with_zlib=$withval
25756 else
25757   with_zlib='yes'
25758 fi
25759
25760
25761 if test "$with_zlib" != 'yes'; then
25762     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25763 fi
25764
25765 have_zlib='no'
25766 ZLIB_LIBS=''
25767 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25769 $as_echo "-------------------------------------------------------------" >&6; }
25770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25771 $as_echo_n "checking for ZLIB... " >&6; }
25772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25773 $as_echo "" >&6; }
25774     ZLIB_LIBS=''
25775     failed=0
25776     passed=0
25777     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25778 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25779   passed=`expr $passed + 1`
25780 else
25781   failed=`expr $failed + 1`
25782 fi
25783
25784
25785     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25786 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25787   passed=`expr $passed + 1`
25788 else
25789   failed=`expr $failed + 1`
25790 fi
25791
25792
25793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25794 $as_echo_n "checking for compress in -lz... " >&6; }
25795 if test "${ac_cv_lib_z_compress+set}" = set; then :
25796   $as_echo_n "(cached) " >&6
25797 else
25798   ac_check_lib_save_LIBS=$LIBS
25799 LIBS="-lz  $LIBS"
25800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h.  */
25802
25803 /* Override any GCC internal prototype to avoid an error.
25804    Use char because int might match the return type of a GCC
25805    builtin and then its argument prototype would still apply.  */
25806 #ifdef __cplusplus
25807 extern "C"
25808 #endif
25809 char compress ();
25810 int
25811 main ()
25812 {
25813 return compress ();
25814   ;
25815   return 0;
25816 }
25817 _ACEOF
25818 if ac_fn_c_try_link "$LINENO"; then :
25819   ac_cv_lib_z_compress=yes
25820 else
25821   ac_cv_lib_z_compress=no
25822 fi
25823 rm -f core conftest.err conftest.$ac_objext \
25824     conftest$ac_exeext conftest.$ac_ext
25825 LIBS=$ac_check_lib_save_LIBS
25826 fi
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25828 $as_echo "$ac_cv_lib_z_compress" >&6; }
25829 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25830   passed=`expr $passed + 1`
25831 else
25832   failed=`expr $failed + 1`
25833 fi
25834
25835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25836 $as_echo_n "checking for uncompress in -lz... " >&6; }
25837 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25838   $as_echo_n "(cached) " >&6
25839 else
25840   ac_check_lib_save_LIBS=$LIBS
25841 LIBS="-lz  $LIBS"
25842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25843 /* end confdefs.h.  */
25844
25845 /* Override any GCC internal prototype to avoid an error.
25846    Use char because int might match the return type of a GCC
25847    builtin and then its argument prototype would still apply.  */
25848 #ifdef __cplusplus
25849 extern "C"
25850 #endif
25851 char uncompress ();
25852 int
25853 main ()
25854 {
25855 return uncompress ();
25856   ;
25857   return 0;
25858 }
25859 _ACEOF
25860 if ac_fn_c_try_link "$LINENO"; then :
25861   ac_cv_lib_z_uncompress=yes
25862 else
25863   ac_cv_lib_z_uncompress=no
25864 fi
25865 rm -f core conftest.err conftest.$ac_objext \
25866     conftest$ac_exeext conftest.$ac_ext
25867 LIBS=$ac_check_lib_save_LIBS
25868 fi
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25870 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25871 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25872   passed=`expr $passed + 1`
25873 else
25874   failed=`expr $failed + 1`
25875 fi
25876
25877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25878 $as_echo_n "checking for deflate in -lz... " >&6; }
25879 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25880   $as_echo_n "(cached) " >&6
25881 else
25882   ac_check_lib_save_LIBS=$LIBS
25883 LIBS="-lz  $LIBS"
25884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h.  */
25886
25887 /* Override any GCC internal prototype to avoid an error.
25888    Use char because int might match the return type of a GCC
25889    builtin and then its argument prototype would still apply.  */
25890 #ifdef __cplusplus
25891 extern "C"
25892 #endif
25893 char deflate ();
25894 int
25895 main ()
25896 {
25897 return deflate ();
25898   ;
25899   return 0;
25900 }
25901 _ACEOF
25902 if ac_fn_c_try_link "$LINENO"; then :
25903   ac_cv_lib_z_deflate=yes
25904 else
25905   ac_cv_lib_z_deflate=no
25906 fi
25907 rm -f core conftest.err conftest.$ac_objext \
25908     conftest$ac_exeext conftest.$ac_ext
25909 LIBS=$ac_check_lib_save_LIBS
25910 fi
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25912 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25913 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25914   passed=`expr $passed + 1`
25915 else
25916   failed=`expr $failed + 1`
25917 fi
25918
25919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25920 $as_echo_n "checking for inflate in -lz... " >&6; }
25921 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25922   $as_echo_n "(cached) " >&6
25923 else
25924   ac_check_lib_save_LIBS=$LIBS
25925 LIBS="-lz  $LIBS"
25926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h.  */
25928
25929 /* Override any GCC internal prototype to avoid an error.
25930    Use char because int might match the return type of a GCC
25931    builtin and then its argument prototype would still apply.  */
25932 #ifdef __cplusplus
25933 extern "C"
25934 #endif
25935 char inflate ();
25936 int
25937 main ()
25938 {
25939 return inflate ();
25940   ;
25941   return 0;
25942 }
25943 _ACEOF
25944 if ac_fn_c_try_link "$LINENO"; then :
25945   ac_cv_lib_z_inflate=yes
25946 else
25947   ac_cv_lib_z_inflate=no
25948 fi
25949 rm -f core conftest.err conftest.$ac_objext \
25950     conftest$ac_exeext conftest.$ac_ext
25951 LIBS=$ac_check_lib_save_LIBS
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25954 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25955 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25956   passed=`expr $passed + 1`
25957 else
25958   failed=`expr $failed + 1`
25959 fi
25960
25961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25962 $as_echo_n "checking for gzseek in -lz... " >&6; }
25963 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25964   $as_echo_n "(cached) " >&6
25965 else
25966   ac_check_lib_save_LIBS=$LIBS
25967 LIBS="-lz  $LIBS"
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970
25971 /* Override any GCC internal prototype to avoid an error.
25972    Use char because int might match the return type of a GCC
25973    builtin and then its argument prototype would still apply.  */
25974 #ifdef __cplusplus
25975 extern "C"
25976 #endif
25977 char gzseek ();
25978 int
25979 main ()
25980 {
25981 return gzseek ();
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 if ac_fn_c_try_link "$LINENO"; then :
25987   ac_cv_lib_z_gzseek=yes
25988 else
25989   ac_cv_lib_z_gzseek=no
25990 fi
25991 rm -f core conftest.err conftest.$ac_objext \
25992     conftest$ac_exeext conftest.$ac_ext
25993 LIBS=$ac_check_lib_save_LIBS
25994 fi
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
25996 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
25997 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
25998   passed=`expr $passed + 1`
25999 else
26000   failed=`expr $failed + 1`
26001 fi
26002
26003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26004 $as_echo_n "checking for gztell in -lz... " >&6; }
26005 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26006   $as_echo_n "(cached) " >&6
26007 else
26008   ac_check_lib_save_LIBS=$LIBS
26009 LIBS="-lz  $LIBS"
26010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011 /* end confdefs.h.  */
26012
26013 /* Override any GCC internal prototype to avoid an error.
26014    Use char because int might match the return type of a GCC
26015    builtin and then its argument prototype would still apply.  */
26016 #ifdef __cplusplus
26017 extern "C"
26018 #endif
26019 char gztell ();
26020 int
26021 main ()
26022 {
26023 return gztell ();
26024   ;
26025   return 0;
26026 }
26027 _ACEOF
26028 if ac_fn_c_try_link "$LINENO"; then :
26029   ac_cv_lib_z_gztell=yes
26030 else
26031   ac_cv_lib_z_gztell=no
26032 fi
26033 rm -f core conftest.err conftest.$ac_objext \
26034     conftest$ac_exeext conftest.$ac_ext
26035 LIBS=$ac_check_lib_save_LIBS
26036 fi
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26038 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26039 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26040   passed=`expr $passed + 1`
26041 else
26042   failed=`expr $failed + 1`
26043 fi
26044
26045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26046 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26047     if test $passed -gt 0; then
26048         if test $failed -gt 0; then
26049             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26050 $as_echo "no -- some components failed test" >&6; }
26051             have_zlib='no (failed tests)'
26052         else
26053             ZLIB_LIBS='-lz'
26054             LIBS="$ZLIB_LIBS $LIBS"
26055
26056 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26057
26058             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26059 $as_echo "yes" >&6; }
26060             have_zlib='yes'
26061         fi
26062     else
26063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26064 $as_echo "no" >&6; }
26065     fi
26066 fi
26067  if test "$have_zlib" = 'yes'; then
26068   ZLIB_DELEGATE_TRUE=
26069   ZLIB_DELEGATE_FALSE='#'
26070 else
26071   ZLIB_DELEGATE_TRUE='#'
26072   ZLIB_DELEGATE_FALSE=
26073 fi
26074
26075
26076
26077 #
26078 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26079 #
26080 LIB_DL=''
26081 if test "$enable_profiling" = 'yes'; then
26082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26083 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26084 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26085   $as_echo_n "(cached) " >&6
26086 else
26087   ac_check_lib_save_LIBS=$LIBS
26088 LIBS="-ldl  $LIBS"
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h.  */
26091
26092 /* Override any GCC internal prototype to avoid an error.
26093    Use char because int might match the return type of a GCC
26094    builtin and then its argument prototype would still apply.  */
26095 #ifdef __cplusplus
26096 extern "C"
26097 #endif
26098 char dlopen ();
26099 int
26100 main ()
26101 {
26102 return dlopen ();
26103   ;
26104   return 0;
26105 }
26106 _ACEOF
26107 if ac_fn_c_try_link "$LINENO"; then :
26108   ac_cv_lib_dl_dlopen=yes
26109 else
26110   ac_cv_lib_dl_dlopen=no
26111 fi
26112 rm -f core conftest.err conftest.$ac_objext \
26113     conftest$ac_exeext conftest.$ac_ext
26114 LIBS=$ac_check_lib_save_LIBS
26115 fi
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26117 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26118 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26119   LIB_DL='-ldl'
26120 fi
26121
26122     LIBS="$LIB_DL $LIBS"
26123 fi
26124
26125
26126
26127 #
26128 # Check for Autotrace delegate library.
26129 #
26130
26131 # Check whether --with-autotrace was given.
26132 if test "${with_autotrace+set}" = set; then :
26133   withval=$with_autotrace; with_autotrace=$withval
26134 else
26135   with_autotrace='no'
26136 fi
26137
26138
26139 if test "$with_autotrace" != 'yes'; then
26140     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26141 fi
26142
26143 have_autotrace='no'
26144 AUTOTRACE_CFLAGS=""
26145 AUTOTRACE_LIBS=""
26146 AUTOTRACE_PKG=""
26147 if test "x$with_autotrace" = "xyes"; then
26148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26149 $as_echo "-------------------------------------------------------------" >&6; }
26150
26151 pkg_failed=no
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26153 $as_echo_n "checking for AUTOTRACE... " >&6; }
26154
26155 if test -n "$AUTOTRACE_CFLAGS"; then
26156     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26157  elif test -n "$PKG_CONFIG"; then
26158     if test -n "$PKG_CONFIG" && \
26159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26160   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26161   ac_status=$?
26162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163   test $ac_status = 0; }; then
26164   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26165 else
26166   pkg_failed=yes
26167 fi
26168  else
26169     pkg_failed=untried
26170 fi
26171 if test -n "$AUTOTRACE_LIBS"; then
26172     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26173  elif test -n "$PKG_CONFIG"; then
26174     if test -n "$PKG_CONFIG" && \
26175     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26176   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26177   ac_status=$?
26178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179   test $ac_status = 0; }; then
26180   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26181 else
26182   pkg_failed=yes
26183 fi
26184  else
26185     pkg_failed=untried
26186 fi
26187
26188
26189
26190 if test $pkg_failed = yes; then
26191
26192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26193         _pkg_short_errors_supported=yes
26194 else
26195         _pkg_short_errors_supported=no
26196 fi
26197         if test $_pkg_short_errors_supported = yes; then
26198                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26199         else
26200                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26201         fi
26202         # Put the nasty error message in config.log where it belongs
26203         echo "$AUTOTRACE_PKG_ERRORS" >&5
26204
26205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26207                 have_autotrace=no
26208 elif test $pkg_failed = untried; then
26209         have_autotrace=no
26210 else
26211         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26212         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26214 $as_echo "yes" >&6; }
26215         have_autotrace=yes
26216 fi
26217     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26218 $as_echo "" >&6; }
26219 fi
26220
26221 if test "$have_autotrace" = 'yes'; then
26222     failed=0
26223
26224 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26225
26226     if test "$with_modules" = 'no'; then
26227     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26228     fi
26229 fi
26230
26231  if test "$have_autotrace" = 'yes'; then
26232   AUTOTRACE_DELEGATE_TRUE=
26233   AUTOTRACE_DELEGATE_FALSE='#'
26234 else
26235   AUTOTRACE_DELEGATE_TRUE='#'
26236   AUTOTRACE_DELEGATE_FALSE=
26237 fi
26238
26239
26240
26241
26242
26243 #
26244 # Check for Display Postscript delegate library.
26245 #
26246
26247 # Check whether --with-dps was given.
26248 if test "${with_dps+set}" = set; then :
26249   withval=$with_dps; with_dps=$withval
26250 else
26251   with_dps='yes'
26252 fi
26253
26254
26255 if test "$with_dps" != 'yes'; then
26256     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26257 fi
26258
26259 have_dps='no'
26260 DPS_LIBS=''
26261 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26263 $as_echo "-------------------------------------------------------------" >&6; }
26264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26265 $as_echo_n "checking for DPS... " >&6; }
26266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26267 $as_echo "" >&6; }
26268     failed=0
26269     passed=0
26270     PERSIST_CPPFLAGS="$CPPFLAGS"
26271     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26272     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26273 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26274   passed=`expr $passed + 1`
26275 else
26276   failed=`expr $failed + 1`
26277 fi
26278
26279
26280     # DPS issues:
26281     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26282     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26283     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26284     # ImageMagick itself doesn't use -lXt.
26285     have_libdps='no'
26286     LIBDPS_XT=''
26287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26288 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26289 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26290   $as_echo_n "(cached) " >&6
26291 else
26292   ac_check_lib_save_LIBS=$LIBS
26293 LIBS="-ldps  $LIBS"
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h.  */
26296
26297 /* Override any GCC internal prototype to avoid an error.
26298    Use char because int might match the return type of a GCC
26299    builtin and then its argument prototype would still apply.  */
26300 #ifdef __cplusplus
26301 extern "C"
26302 #endif
26303 char DPSInitialize ();
26304 int
26305 main ()
26306 {
26307 return DPSInitialize ();
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 if ac_fn_c_try_link "$LINENO"; then :
26313   ac_cv_lib_dps_DPSInitialize=yes
26314 else
26315   ac_cv_lib_dps_DPSInitialize=no
26316 fi
26317 rm -f core conftest.err conftest.$ac_objext \
26318     conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26320 fi
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26322 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26323 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26324   have_libdps='yes'
26325 else
26326   have_libdps='no'
26327 fi
26328
26329     if test "$have_libdps" != 'yes'; then
26330         # Unset cache variable so we can try again.
26331         unset ac_cv_lib_dps_DPSInitialize
26332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26333 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26334 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26335   $as_echo_n "(cached) " >&6
26336 else
26337   ac_check_lib_save_LIBS=$LIBS
26338 LIBS="-ldps -lXt $LIBS"
26339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26340 /* end confdefs.h.  */
26341
26342 /* Override any GCC internal prototype to avoid an error.
26343    Use char because int might match the return type of a GCC
26344    builtin and then its argument prototype would still apply.  */
26345 #ifdef __cplusplus
26346 extern "C"
26347 #endif
26348 char DPSInitialize ();
26349 int
26350 main ()
26351 {
26352 return DPSInitialize ();
26353   ;
26354   return 0;
26355 }
26356 _ACEOF
26357 if ac_fn_c_try_link "$LINENO"; then :
26358   ac_cv_lib_dps_DPSInitialize=yes
26359 else
26360   ac_cv_lib_dps_DPSInitialize=no
26361 fi
26362 rm -f core conftest.err conftest.$ac_objext \
26363     conftest$ac_exeext conftest.$ac_ext
26364 LIBS=$ac_check_lib_save_LIBS
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26367 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26368 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26369   have_libdps='yes'
26370 else
26371   have_libdps='no'
26372 fi
26373
26374         if test "$have_libdps" = 'yes'; then
26375             LIBDPS_XT='-lXt'
26376         fi
26377     fi
26378     if test "$have_libdps" = 'yes'; then
26379         passed=`expr $passed + 1`
26380     else
26381         failed=`expr $failed + 1`
26382     fi
26383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26384 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26385 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26386   $as_echo_n "(cached) " >&6
26387 else
26388   ac_check_lib_save_LIBS=$LIBS
26389 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h.  */
26392
26393 /* Override any GCC internal prototype to avoid an error.
26394    Use char because int might match the return type of a GCC
26395    builtin and then its argument prototype would still apply.  */
26396 #ifdef __cplusplus
26397 extern "C"
26398 #endif
26399 char XDPSPixelsPerPoint ();
26400 int
26401 main ()
26402 {
26403 return XDPSPixelsPerPoint ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 if ac_fn_c_try_link "$LINENO"; then :
26409   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26410 else
26411   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26412 fi
26413 rm -f core conftest.err conftest.$ac_objext \
26414     conftest$ac_exeext conftest.$ac_ext
26415 LIBS=$ac_check_lib_save_LIBS
26416 fi
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26418 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26419 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26420   passed=`expr $passed + 1`
26421 else
26422   failed=`expr $failed + 1`
26423 fi
26424
26425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26426 $as_echo_n "checking if DPS package is complete... " >&6; }
26427     if test $passed -gt 0; then
26428         if test $failed -gt 0; then
26429             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26430 $as_echo "no -- some components failed test" >&6; }
26431             have_dps='no (failed tests)'
26432             CPPFLAGS="$PERSIST_CPPFLAGS"
26433         else
26434             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26435             LIBS="$DPS_LIBS $LIBS"
26436
26437 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26438
26439             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26440 $as_echo "yes" >&6; }
26441             have_dps='yes'
26442         fi
26443     else
26444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26446         CPPFLAGS=$PERSIST_CPPFLAGS
26447     fi
26448 fi
26449  if test "$have_dps" = 'yes'; then
26450   DPS_DELEGATE_TRUE=
26451   DPS_DELEGATE_FALSE='#'
26452 else
26453   DPS_DELEGATE_TRUE='#'
26454   DPS_DELEGATE_FALSE=
26455 fi
26456
26457
26458
26459
26460 #
26461 # Check for DJVU delegate library.
26462 #
26463
26464 # Check whether --with-djvu was given.
26465 if test "${with_djvu+set}" = set; then :
26466   withval=$with_djvu; with_djvu=$withval
26467 else
26468   with_djvu='yes'
26469 fi
26470
26471
26472 if test "$with_djvu" != 'yes'; then
26473     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26474 fi
26475
26476 have_djvu='no'
26477 DJVU_LIBS=''
26478 if test "$with_djvu" != 'no'; then
26479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26480 $as_echo "-------------------------------------------------------------" >&6; }
26481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26482 $as_echo_n "checking for DJVU... " >&6; }
26483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26484 $as_echo "" >&6; }
26485     failed=0
26486     passed=0
26487     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26488 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26489   passed=`expr $passed + 1`
26490 else
26491   failed=`expr $failed + 1`
26492 fi
26493
26494
26495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26496 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26497 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26498   $as_echo_n "(cached) " >&6
26499 else
26500   ac_check_lib_save_LIBS=$LIBS
26501 LIBS="-ldjvulibre  $LIBS"
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h.  */
26504
26505 /* Override any GCC internal prototype to avoid an error.
26506    Use char because int might match the return type of a GCC
26507    builtin and then its argument prototype would still apply.  */
26508 #ifdef __cplusplus
26509 extern "C"
26510 #endif
26511 char ddjvu_context_create ();
26512 int
26513 main ()
26514 {
26515 return ddjvu_context_create ();
26516   ;
26517   return 0;
26518 }
26519 _ACEOF
26520 if ac_fn_c_try_link "$LINENO"; then :
26521   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26522 else
26523   ac_cv_lib_djvulibre_ddjvu_context_create=no
26524 fi
26525 rm -f core conftest.err conftest.$ac_objext \
26526     conftest$ac_exeext conftest.$ac_ext
26527 LIBS=$ac_check_lib_save_LIBS
26528 fi
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26530 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26531 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26532   passed=`expr $passed + 1`
26533 else
26534   failed=`expr $failed + 1`
26535 fi
26536
26537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26538 $as_echo_n "checking if DJVU package is complete... " >&6; }
26539     if test $passed -gt 0; then
26540         if test $failed -gt 0; then
26541             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26542 $as_echo "no -- some components failed test" >&6; }
26543             have_djvu='no (failed tests)'
26544         else
26545             DJVU_LIBS='-ldjvulibre'
26546             LIBS="$DJVU_LIBS $LIBS"
26547
26548 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26549
26550             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26551 $as_echo "yes" >&6; }
26552             have_djvu='yes'
26553         fi
26554     else
26555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26556 $as_echo "no" >&6; }
26557     fi
26558 fi
26559  if test "$have_djvu" = 'yes'; then
26560   DJVU_DELEGATE_TRUE=
26561   DJVU_DELEGATE_FALSE='#'
26562 else
26563   DJVU_DELEGATE_TRUE='#'
26564   DJVU_DELEGATE_FALSE=
26565 fi
26566
26567
26568
26569
26570 #
26571 # Set DejaVu font directory.
26572 #
26573
26574 # Check whether --with-dejavu-font-dir was given.
26575 if test "${with_dejavu_font_dir+set}" = set; then :
26576   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26577 else
26578   with_dejavu_font_dir='default'
26579 fi
26580
26581
26582 if test "$with_dejavu_font_dir" != 'default'; then
26583     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26584 fi
26585
26586
26587 #
26588 # Check for FFTW delegate library.
26589 #
26590
26591 # Check whether --with-fftw was given.
26592 if test "${with_fftw+set}" = set; then :
26593   withval=$with_fftw; with_fftw=$withval
26594 else
26595   with_fftw='yes'
26596 fi
26597
26598
26599 if test "$with_fftw" != 'yes'; then
26600     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26601 fi
26602
26603 have_fftw='no'
26604 FFTW_LIBS=''
26605 if test "$with_fftw" != 'no'; then
26606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26607 $as_echo "-------------------------------------------------------------" >&6; }
26608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26609 $as_echo_n "checking for FFTW... " >&6; }
26610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26611 $as_echo "" >&6; }
26612     failed=0
26613     passed=0
26614     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26615 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26616   passed=`expr $passed + 1`
26617 else
26618   failed=`expr $failed + 1`
26619 fi
26620
26621
26622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26623 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26624 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26625   $as_echo_n "(cached) " >&6
26626 else
26627   ac_check_lib_save_LIBS=$LIBS
26628 LIBS="-lfftw3  $LIBS"
26629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630 /* end confdefs.h.  */
26631
26632 /* Override any GCC internal prototype to avoid an error.
26633    Use char because int might match the return type of a GCC
26634    builtin and then its argument prototype would still apply.  */
26635 #ifdef __cplusplus
26636 extern "C"
26637 #endif
26638 char fftw_execute ();
26639 int
26640 main ()
26641 {
26642 return fftw_execute ();
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 if ac_fn_c_try_link "$LINENO"; then :
26648   ac_cv_lib_fftw3_fftw_execute=yes
26649 else
26650   ac_cv_lib_fftw3_fftw_execute=no
26651 fi
26652 rm -f core conftest.err conftest.$ac_objext \
26653     conftest$ac_exeext conftest.$ac_ext
26654 LIBS=$ac_check_lib_save_LIBS
26655 fi
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26657 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26658 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26659   passed=`expr $passed + 1`
26660 else
26661   failed=`expr $failed + 1`
26662 fi
26663
26664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26665 $as_echo_n "checking if FFTW package is complete... " >&6; }
26666     if test $passed -gt 0; then
26667         if test $failed -gt 0; then
26668             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26669 $as_echo "no -- some components failed test" >&6; }
26670             have_fftw='no (failed tests)'
26671         else
26672             FFTW_LIBS='-lfftw3'
26673             LIBS="$FFTW_LIBS $LIBS"
26674
26675 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26676
26677             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26678 $as_echo "yes" >&6; }
26679             have_fftw='yes'
26680         fi
26681     else
26682         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26683 $as_echo "no" >&6; }
26684     fi
26685 fi
26686  if test "$have_fftw" = 'yes'; then
26687   FFTW_DELEGATE_TRUE=
26688   FFTW_DELEGATE_FALSE='#'
26689 else
26690   FFTW_DELEGATE_TRUE='#'
26691   FFTW_DELEGATE_FALSE=
26692 fi
26693
26694
26695
26696
26697 #
26698 # Check for FlashPIX delegate library.
26699 #
26700
26701 # Check whether --with-fpx was given.
26702 if test "${with_fpx+set}" = set; then :
26703   withval=$with_fpx; with_fpx=$withval
26704 else
26705   with_fpx='yes'
26706 fi
26707
26708
26709 if test "$with_fpx" != 'yes'; then
26710     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26711 fi
26712
26713 have_fpx='no'
26714 FPX_LIBS=''
26715 if test "$with_fpx" != 'no'; then
26716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26717 $as_echo "-------------------------------------------------------------" >&6; }
26718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26719 $as_echo_n "checking for FlashPIX... " >&6; }
26720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26721 $as_echo "" >&6; }
26722     failed=0
26723     passed=0
26724     ac_ext=cpp
26725 ac_cpp='$CXXCPP $CPPFLAGS'
26726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26729
26730
26731 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26732 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26733   passed=`expr $passed + 1`
26734 else
26735   failed=`expr $failed + 1`
26736 fi
26737
26738
26739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26740 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26741 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26742   $as_echo_n "(cached) " >&6
26743 else
26744   ac_check_lib_save_LIBS=$LIBS
26745 LIBS="-lfpx  $LIBS"
26746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26747 /* end confdefs.h.  */
26748
26749 /* Override any GCC internal prototype to avoid an error.
26750    Use char because int might match the return type of a GCC
26751    builtin and then its argument prototype would still apply.  */
26752 #ifdef __cplusplus
26753 extern "C"
26754 #endif
26755 char FPX_OpenImageByFilename ();
26756 int
26757 main ()
26758 {
26759 return FPX_OpenImageByFilename ();
26760   ;
26761   return 0;
26762 }
26763 _ACEOF
26764 if ac_fn_cxx_try_link "$LINENO"; then :
26765   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26766 else
26767   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26768 fi
26769 rm -f core conftest.err conftest.$ac_objext \
26770     conftest$ac_exeext conftest.$ac_ext
26771 LIBS=$ac_check_lib_save_LIBS
26772 fi
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26774 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26775 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26776   passed=`expr $passed + 1`
26777 else
26778   failed=`expr $failed + 1`
26779 fi
26780
26781     ac_ext=c
26782 ac_cpp='$CPP $CPPFLAGS'
26783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26786
26787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26788 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26789     if test $passed -gt 0; then
26790         if test $failed -gt 0; then
26791             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26792 $as_echo "no -- some components failed test" >&6; }
26793             have_fpx='no (failed tests)'
26794         else
26795             FPX_LIBS='-lfpx'
26796
26797 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26798
26799             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26800 $as_echo "yes" >&6; }
26801             have_fpx='yes'
26802             PERLMAINCC="$CXX"
26803         fi
26804     else
26805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26806 $as_echo "no" >&6; }
26807     fi
26808 fi
26809  if test "$have_fpx" = 'yes'; then
26810   FPX_DELEGATE_TRUE=
26811   FPX_DELEGATE_FALSE='#'
26812 else
26813   FPX_DELEGATE_TRUE='#'
26814   FPX_DELEGATE_FALSE=
26815 fi
26816
26817
26818
26819
26820 #
26821 # Check for fontconfig delegate library.
26822 #
26823
26824 # Check whether --with-fontconfig was given.
26825 if test "${with_fontconfig+set}" = set; then :
26826   withval=$with_fontconfig; with_fontconfig=$withval
26827 else
26828   with_fontconfig=$have_x
26829 fi
26830
26831
26832 if test "$with_fontconfig" != 'yes'; then
26833     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26834 fi
26835
26836 have_fontconfig='no'
26837 FONTCONFIG_CFLAGS=""
26838 FONTCONFIG_LIBS=""
26839 FONTCONFIG_PKG=""
26840 if test "x$with_fontconfig" = "xyes"; then
26841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26842 $as_echo "-------------------------------------------------------------" >&6; }
26843
26844 pkg_failed=no
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26846 $as_echo_n "checking for FONTCONFIG... " >&6; }
26847
26848 if test -n "$FONTCONFIG_CFLAGS"; then
26849     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26850  elif test -n "$PKG_CONFIG"; then
26851     if test -n "$PKG_CONFIG" && \
26852     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26853   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26854   ac_status=$?
26855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856   test $ac_status = 0; }; then
26857   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26858 else
26859   pkg_failed=yes
26860 fi
26861  else
26862     pkg_failed=untried
26863 fi
26864 if test -n "$FONTCONFIG_LIBS"; then
26865     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26866  elif test -n "$PKG_CONFIG"; then
26867     if test -n "$PKG_CONFIG" && \
26868     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26869   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26870   ac_status=$?
26871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872   test $ac_status = 0; }; then
26873   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26874 else
26875   pkg_failed=yes
26876 fi
26877  else
26878     pkg_failed=untried
26879 fi
26880
26881
26882
26883 if test $pkg_failed = yes; then
26884
26885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26886         _pkg_short_errors_supported=yes
26887 else
26888         _pkg_short_errors_supported=no
26889 fi
26890         if test $_pkg_short_errors_supported = yes; then
26891                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26892         else
26893                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26894         fi
26895         # Put the nasty error message in config.log where it belongs
26896         echo "$FONTCONFIG_PKG_ERRORS" >&5
26897
26898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26899 $as_echo "no" >&6; }
26900                 have_fontconfig=no
26901 elif test $pkg_failed = untried; then
26902         have_fontconfig=no
26903 else
26904         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26905         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26907 $as_echo "yes" >&6; }
26908         have_fontconfig=yes
26909 fi
26910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26911 $as_echo "" >&6; }
26912 fi
26913
26914 if test "$have_fontconfig" = 'yes'; then
26915
26916 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26917
26918   if test "$with_modules" = 'no'; then
26919     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26920   fi
26921 fi
26922
26923  if test "$have_fontconfig" = 'yes'; then
26924   FONTCONFIG_DELEGATE_TRUE=
26925   FONTCONFIG_DELEGATE_FALSE='#'
26926 else
26927   FONTCONFIG_DELEGATE_TRUE='#'
26928   FONTCONFIG_DELEGATE_FALSE=
26929 fi
26930
26931
26932
26933
26934
26935 #
26936 # Check for freetype delegate library.
26937 #
26938
26939 # Check whether --with-freetype was given.
26940 if test "${with_freetype+set}" = set; then :
26941   withval=$with_freetype; with_freetype=$withval
26942 else
26943   with_freetype='yes'
26944 fi
26945
26946
26947
26948 if test "$with_freetype" != 'yes'; then
26949     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26950 fi
26951
26952 have_freetype='no'
26953 FREETYPE_LIBS=''
26954 if test "$with_freetype" != 'no'; then
26955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26956 $as_echo "-------------------------------------------------------------" >&6; }
26957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26958 $as_echo_n "checking for FreeType 2.0... " >&6; }
26959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26960 $as_echo "" >&6; }
26961     failed=0
26962     passed=0
26963     PERSIST_LIBS="$LIBS"
26964     PERSIST_CPPFLAGS="$CPPFLAGS"
26965     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26966         :
26967     else
26968         freetype_config=''
26969         for ac_prog in freetype-config
26970 do
26971   # Extract the first word of "$ac_prog", so it can be a program name with args.
26972 set dummy $ac_prog; ac_word=$2
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26974 $as_echo_n "checking for $ac_word... " >&6; }
26975 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26976   $as_echo_n "(cached) " >&6
26977 else
26978   if test -n "$freetype_config"; then
26979   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26980 else
26981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26982 for as_dir in $PATH
26983 do
26984   IFS=$as_save_IFS
26985   test -z "$as_dir" && as_dir=.
26986     for ac_exec_ext in '' $ac_executable_extensions; do
26987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26988     ac_cv_prog_freetype_config="$ac_prog"
26989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26990     break 2
26991   fi
26992 done
26993   done
26994 IFS=$as_save_IFS
26995
26996 fi
26997 fi
26998 freetype_config=$ac_cv_prog_freetype_config
26999 if test -n "$freetype_config"; then
27000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27001 $as_echo "$freetype_config" >&6; }
27002 else
27003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27004 $as_echo "no" >&6; }
27005 fi
27006
27007
27008   test -n "$freetype_config" && break
27009 done
27010         if test -n "$freetype_config"; then
27011             freetype_cflags=`$freetype_config --cflags`
27012             freetype_libs=`$freetype_config --libs`
27013             LIBS="$LIBS $freetype_libs"
27014             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27015         fi
27016     fi
27017
27018     if test "$FREETYPE_LIBS" = ''; then
27019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27020 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27021 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27022   $as_echo_n "(cached) " >&6
27023 else
27024   ac_check_lib_save_LIBS=$LIBS
27025 LIBS="-lfreetype  $LIBS"
27026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h.  */
27028
27029 /* Override any GCC internal prototype to avoid an error.
27030    Use char because int might match the return type of a GCC
27031    builtin and then its argument prototype would still apply.  */
27032 #ifdef __cplusplus
27033 extern "C"
27034 #endif
27035 char FT_Init_FreeType ();
27036 int
27037 main ()
27038 {
27039 return FT_Init_FreeType ();
27040   ;
27041   return 0;
27042 }
27043 _ACEOF
27044 if ac_fn_c_try_link "$LINENO"; then :
27045   ac_cv_lib_freetype_FT_Init_FreeType=yes
27046 else
27047   ac_cv_lib_freetype_FT_Init_FreeType=no
27048 fi
27049 rm -f core conftest.err conftest.$ac_objext \
27050     conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27052 fi
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27054 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27055 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27056   FREETYPE_LIBS='-lfreetype'
27057 fi
27058
27059         if test "$FREETYPE_LIBS" != ''; then
27060             passed=`expr $passed + 1`
27061         else
27062             failed=`expr $failed + 1`
27063             LIBS="$PERSIST_LIBS"
27064         fi
27065     fi
27066
27067     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27068 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27069   FT2BUILD_H='#include <ft2build.h>'
27070 else
27071   ft2build=''
27072 fi
27073
27074
27075     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27076 "
27077 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27078   have_freetype_h='yes'
27079 else
27080   have_freetype_h='no'
27081 fi
27082
27083
27084     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27085         passed=`expr $passed + 1`
27086     else
27087         failed=`expr $failed + 1`
27088         CPPFLAGS="$PERSIST_CPPFLAGS"
27089     fi
27090
27091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27092 $as_echo_n "checking if FreeType package is complete... " >&6; }
27093     if test $passed -gt 0; then
27094         if test $failed -gt 0; then
27095             FREETYPE_LIBS=''
27096             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27097 $as_echo "no -- some components failed test" >&6; }
27098             have_freetype='no (failed tests)'
27099         else
27100             LIBS="$FREETYPE_LIBS $LIBS"
27101
27102 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27103
27104             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27105
27106 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27107
27108             fi
27109             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27110 $as_echo "yes" >&6; }
27111             have_freetype='yes'
27112         fi
27113     else
27114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115 $as_echo "no" >&6; }
27116     fi
27117 fi
27118  if test "$have_freetype" = 'yes'; then
27119   FREETYPE_DELEGATE_TRUE=
27120   FREETYPE_DELEGATE_FALSE='#'
27121 else
27122   FREETYPE_DELEGATE_TRUE='#'
27123   FREETYPE_DELEGATE_FALSE=
27124 fi
27125
27126
27127
27128
27129
27130 #
27131 # Check for Ghostscript library or framework.
27132 #
27133 # Test for iapi.h & test for gsapi_new_instance in -lgs
27134 # or -framework Ghostscript
27135
27136
27137 # Check whether --with-gslib was given.
27138 if test "${with_gslib+set}" = set; then :
27139   withval=$with_gslib; with_gslib=$withval
27140 else
27141   with_gslib='no'
27142 fi
27143
27144
27145 gslib_framework='no'
27146 if test "$with_gslib" != 'yes'; then
27147     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27148 fi
27149
27150 have_gslib='no'
27151 GS_LIBS=''
27152 if test "$with_gslib" != 'no'; then
27153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27154 $as_echo "-------------------------------------------------------------" >&6; }
27155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27156 $as_echo_n "checking for Ghostscript... " >&6; }
27157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27158 $as_echo "" >&6; }
27159     framework=0
27160     failed=0
27161     passed=0
27162     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27164   passed=`expr $passed + 1`
27165 else
27166   failed=`expr $failed + 1`
27167 fi
27168
27169
27170     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27171 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27172   passed=`expr $passed + 1`
27173 else
27174   failed=`expr $failed + 1`
27175 fi
27176
27177
27178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27179 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27180 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27181   $as_echo_n "(cached) " >&6
27182 else
27183   ac_check_framework_save_LIBS=$LIBS
27184 LIBS="-framework Ghostscript  $LIBS"
27185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27186 /* end confdefs.h.  */
27187
27188 /* Override any GCC internal prototype to avoid an error.
27189    Use char because int might match the return type of a GCC
27190    builtin and then its argument prototype would still apply.  */
27191 #ifdef __cplusplus
27192 extern "C"
27193 #endif
27194 char gsapi_new_instance ();
27195 int
27196 main ()
27197 {
27198 return gsapi_new_instance ();
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 if ac_fn_c_try_link "$LINENO"; then :
27204   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27205 else
27206   ac_cv_framework_Ghostscript_gsapi_new_instance=no
27207 fi
27208 rm -f core conftest.err conftest.$ac_objext \
27209     conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_check_framework_save_LIBS
27211 fi
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27213 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27214 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27215   framework=`expr $framework + 1`
27216 else
27217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27218 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27219 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27220   $as_echo_n "(cached) " >&6
27221 else
27222   ac_check_lib_save_LIBS=$LIBS
27223 LIBS="-lgs  $LIBS"
27224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27225 /* end confdefs.h.  */
27226
27227 /* Override any GCC internal prototype to avoid an error.
27228    Use char because int might match the return type of a GCC
27229    builtin and then its argument prototype would still apply.  */
27230 #ifdef __cplusplus
27231 extern "C"
27232 #endif
27233 char gsapi_new_instance ();
27234 int
27235 main ()
27236 {
27237 return gsapi_new_instance ();
27238   ;
27239   return 0;
27240 }
27241 _ACEOF
27242 if ac_fn_c_try_link "$LINENO"; then :
27243   ac_cv_lib_gs_gsapi_new_instance=yes
27244 else
27245   ac_cv_lib_gs_gsapi_new_instance=no
27246 fi
27247 rm -f core conftest.err conftest.$ac_objext \
27248     conftest$ac_exeext conftest.$ac_ext
27249 LIBS=$ac_check_lib_save_LIBS
27250 fi
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27252 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27253 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27254   passed=`expr $passed + 1`
27255 else
27256   failed=`expr $failed + 1`
27257 fi
27258
27259 fi
27260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27261 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27262     if test $passed -gt 0; then
27263         if test $failed -gt 0; then
27264             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27265 $as_echo "no -- some components failed test" >&6; }
27266             have_gslib='no (failed tests)'
27267         else
27268             if test $framework -gt 0; then
27269                 GS_LIBS='-framework Ghostscript'
27270                 gslib_framework='yes'
27271                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27272 $as_echo "yes, using framework." >&6; }
27273             else
27274                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27275 $as_echo "yes, using library." >&6; }
27276                 GS_LIBS='-lgs'
27277             fi
27278             LIBS="$GS_LIBS $LIBS"
27279
27280 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27281
27282             have_gslib='yes'
27283         fi
27284     else
27285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27286 $as_echo "no" >&6; }
27287     fi
27288 fi
27289  if test "$have_gslib" = 'yes'; then
27290   GS_DELEGATE_TRUE=
27291   GS_DELEGATE_FALSE='#'
27292 else
27293   GS_DELEGATE_TRUE='#'
27294   GS_DELEGATE_FALSE=
27295 fi
27296
27297
27298
27299 # Set default font search path
27300
27301 # Check whether --with-fontpath was given.
27302 if test "${with_fontpath+set}" = set; then :
27303   withval=$with_fontpath; with_fontpath=$withval
27304 else
27305   with_fontpath=''
27306 fi
27307
27308
27309 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27310     with_fontpath=''
27311 else
27312
27313 cat >>confdefs.h <<_ACEOF
27314 #define MAGICK_FONT_PATH "$with_fontpath"
27315 _ACEOF
27316
27317 fi
27318 if test "$with_fontpath=" != ''; then
27319     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27320 fi
27321
27322 # Set Ghostscript font directory
27323
27324 # Check whether --with-gs-font-dir was given.
27325 if test "${with_gs_font_dir+set}" = set; then :
27326   withval=$with_gs_font_dir; with_gs_font_dir=$withval
27327 else
27328   with_gs_font_dir='default'
27329 fi
27330
27331
27332 if test "$with_gs_font_dir" != 'default'; then
27333     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27334 fi
27335
27336
27337 #
27338 # Check for GVC delegate library.
27339 #
27340
27341 # Check whether --with-gvc was given.
27342 if test "${with_gvc+set}" = set; then :
27343   withval=$with_gvc; with_gvc=$withval
27344 else
27345   with_gvc='yes'
27346 fi
27347
27348
27349 if test "$with_gvc" != 'yes'; then
27350     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27351 fi
27352
27353 GVC_PKG=""
27354 if test "x$with_gvc" = "xyes"; then
27355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27356 $as_echo "-------------------------------------------------------------" >&6; }
27357
27358 pkg_failed=no
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27360 $as_echo_n "checking for GVC... " >&6; }
27361
27362 if test -n "$GVC_CFLAGS"; then
27363     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27364  elif test -n "$PKG_CONFIG"; then
27365     if test -n "$PKG_CONFIG" && \
27366     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27367   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27368   ac_status=$?
27369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370   test $ac_status = 0; }; then
27371   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27372 else
27373   pkg_failed=yes
27374 fi
27375  else
27376     pkg_failed=untried
27377 fi
27378 if test -n "$GVC_LIBS"; then
27379     pkg_cv_GVC_LIBS="$GVC_LIBS"
27380  elif test -n "$PKG_CONFIG"; then
27381     if test -n "$PKG_CONFIG" && \
27382     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27383   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27384   ac_status=$?
27385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386   test $ac_status = 0; }; then
27387   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27388 else
27389   pkg_failed=yes
27390 fi
27391  else
27392     pkg_failed=untried
27393 fi
27394
27395
27396
27397 if test $pkg_failed = yes; then
27398
27399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27400         _pkg_short_errors_supported=yes
27401 else
27402         _pkg_short_errors_supported=no
27403 fi
27404         if test $_pkg_short_errors_supported = yes; then
27405                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27406         else
27407                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27408         fi
27409         # Put the nasty error message in config.log where it belongs
27410         echo "$GVC_PKG_ERRORS" >&5
27411
27412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27413 $as_echo "no" >&6; }
27414                 have_gvc=no
27415 elif test $pkg_failed = untried; then
27416         have_gvc=no
27417 else
27418         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27419         GVC_LIBS=$pkg_cv_GVC_LIBS
27420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27421 $as_echo "yes" >&6; }
27422         have_gvc=yes
27423 fi
27424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27425 $as_echo "" >&6; }
27426 fi
27427
27428 if test "$have_gvc" = 'yes'; then
27429
27430 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27431
27432     if test "$with_modules" = 'no'; then
27433         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27434     fi
27435 fi
27436
27437  if test "$have_gvc" = 'yes'; then
27438   GVC_DELEGATE_TRUE=
27439   GVC_DELEGATE_FALSE='#'
27440 else
27441   GVC_DELEGATE_TRUE='#'
27442   GVC_DELEGATE_FALSE=
27443 fi
27444
27445
27446
27447
27448
27449 #
27450 # Check for JBIG delegate library.
27451 #
27452
27453
27454 # Check whether --with-jbig was given.
27455 if test "${with_jbig+set}" = set; then :
27456   withval=$with_jbig; with_jbig=$withval
27457 else
27458   with_jbig='yes'
27459 fi
27460
27461
27462 have_jbig='no'
27463 JBIG_LIBS=''
27464 if test "$with_jbig" != 'no'; then
27465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27466 $as_echo "-------------------------------------------------------------" >&6; }
27467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27468 $as_echo_n "checking for JBIG... " >&6; }
27469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27470 $as_echo "" >&6; }
27471     failed=0
27472     passed=0
27473     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27474 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27475   passed=`expr $passed + 1`
27476 else
27477   failed=`expr $failed + 1`
27478 fi
27479
27480
27481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27482 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27483 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27484   $as_echo_n "(cached) " >&6
27485 else
27486   ac_check_lib_save_LIBS=$LIBS
27487 LIBS="-ljbig  $LIBS"
27488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27489 /* end confdefs.h.  */
27490
27491 /* Override any GCC internal prototype to avoid an error.
27492    Use char because int might match the return type of a GCC
27493    builtin and then its argument prototype would still apply.  */
27494 #ifdef __cplusplus
27495 extern "C"
27496 #endif
27497 char jbg_dec_init ();
27498 int
27499 main ()
27500 {
27501 return jbg_dec_init ();
27502   ;
27503   return 0;
27504 }
27505 _ACEOF
27506 if ac_fn_c_try_link "$LINENO"; then :
27507   ac_cv_lib_jbig_jbg_dec_init=yes
27508 else
27509   ac_cv_lib_jbig_jbg_dec_init=no
27510 fi
27511 rm -f core conftest.err conftest.$ac_objext \
27512     conftest$ac_exeext conftest.$ac_ext
27513 LIBS=$ac_check_lib_save_LIBS
27514 fi
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27516 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27517 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27518   passed=`expr $passed + 1`
27519 else
27520   failed=`expr $failed + 1`
27521 fi
27522
27523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27524 $as_echo_n "checking if JBIG package is complete... " >&6; }
27525     if test $passed -gt 0; then
27526         if test $failed -gt 0; then
27527             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27528 $as_echo "no -- some components failed test" >&6; }
27529             have_jbig='no (failed tests)'
27530         else
27531             JBIG_LIBS='-ljbig'
27532             LIBS="$JBIG_LIBS $LIBS"
27533
27534 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27535
27536             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27537 $as_echo "yes" >&6; }
27538             have_jbig='yes'
27539         fi
27540     else
27541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27542 $as_echo "no" >&6; }
27543     fi
27544 fi
27545  if test "$have_jbig" = 'yes'; then
27546   JBIG_DELEGATE_TRUE=
27547   JBIG_DELEGATE_FALSE='#'
27548 else
27549   JBIG_DELEGATE_TRUE='#'
27550   JBIG_DELEGATE_FALSE=
27551 fi
27552
27553
27554
27555
27556 #
27557 # Check for JPEG delegate library.
27558 #
27559
27560 # Check whether --with-jpeg was given.
27561 if test "${with_jpeg+set}" = set; then :
27562   withval=$with_jpeg; with_jpeg=$withval
27563 else
27564   with_jpeg='yes'
27565 fi
27566
27567
27568 if test "$with_jpeg" != 'yes'; then
27569     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27570 fi
27571
27572 have_jpeg='no'
27573 JPEG_LIBS=''
27574 if test "$with_jpeg" != 'no'; then
27575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27576 $as_echo "-------------------------------------------------------------" >&6; }
27577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27578 $as_echo_n "checking for JPEG... " >&6; }
27579     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27580 $as_echo "" >&6; }
27581     failed=0
27582     passed=0
27583     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27584 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27585   passed=`expr $passed + 1`
27586 else
27587   failed=`expr $failed + 1`
27588 fi
27589
27590
27591     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27592 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27593   passed=`expr $passed + 1`
27594 else
27595   failed=`expr $failed + 1`
27596 fi
27597
27598
27599     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27600 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27601   passed=`expr $passed + 1`
27602 else
27603   failed=`expr $failed + 1`
27604 fi
27605
27606
27607     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27608 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27609   passed=`expr $passed + 1`
27610 else
27611   failed=`expr $failed + 1`
27612 fi
27613
27614
27615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27616 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27617 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27618   $as_echo_n "(cached) " >&6
27619 else
27620   ac_check_lib_save_LIBS=$LIBS
27621 LIBS="-ljpeg  $LIBS"
27622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27623 /* end confdefs.h.  */
27624
27625 /* Override any GCC internal prototype to avoid an error.
27626    Use char because int might match the return type of a GCC
27627    builtin and then its argument prototype would still apply.  */
27628 #ifdef __cplusplus
27629 extern "C"
27630 #endif
27631 char jpeg_read_header ();
27632 int
27633 main ()
27634 {
27635 return jpeg_read_header ();
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 if ac_fn_c_try_link "$LINENO"; then :
27641   ac_cv_lib_jpeg_jpeg_read_header=yes
27642 else
27643   ac_cv_lib_jpeg_jpeg_read_header=no
27644 fi
27645 rm -f core conftest.err conftest.$ac_objext \
27646     conftest$ac_exeext conftest.$ac_ext
27647 LIBS=$ac_check_lib_save_LIBS
27648 fi
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27650 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27651 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27652   passed=`expr $passed + 1`
27653 else
27654   failed=`expr $failed + 1`
27655 fi
27656
27657
27658 # Test for compatible JPEG library
27659 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27661 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27662 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27663   $as_echo_n "(cached) " >&6
27664 else
27665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27666 /* end confdefs.h.  */
27667 #include <stdio.h>
27668 #include <stdlib.h>
27669 #include <jpeglib.h>
27670
27671 int
27672 main ()
27673 {
27674
27675 #if JPEG_LIB_VERSION < 62
27676 #error IJG JPEG library must be version 6b or newer!
27677 #endif
27678 return 0;
27679
27680   ;
27681   return 0;
27682 }
27683 _ACEOF
27684 if ac_fn_c_try_compile "$LINENO"; then :
27685   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27686 else
27687   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27688 fi
27689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690 fi
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27692 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27693 fi
27694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27695 $as_echo_n "checking if JPEG package is complete... " >&6; }
27696     if test $passed -gt 0; then
27697         if test $failed -gt 0; then
27698             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27699 $as_echo "no -- some components failed test" >&6; }
27700             have_jpeg='no (failed tests)'
27701         else
27702             JPEG_LIBS='-ljpeg'
27703             LIBS="$JPEG_LIBS $LIBS"
27704
27705 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27706
27707             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27708 $as_echo "yes" >&6; }
27709             have_jpeg='yes'
27710         fi
27711     else
27712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27714     fi
27715 fi
27716  if test "$have_jpeg" = 'yes'; then
27717   JPEG_DELEGATE_TRUE=
27718   JPEG_DELEGATE_FALSE='#'
27719 else
27720   JPEG_DELEGATE_TRUE='#'
27721   JPEG_DELEGATE_FALSE=
27722 fi
27723
27724
27725
27726
27727 #
27728 # Check for JPEG Version 2 delegate library.
27729 #
27730
27731 # Check whether --with-jp2 was given.
27732 if test "${with_jp2+set}" = set; then :
27733   withval=$with_jp2; with_jp2=$withval
27734 else
27735   with_jp2='yes'
27736 fi
27737
27738
27739 if test "$with_jp2" != 'yes'; then
27740     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27741 fi
27742
27743 have_jp2='no'
27744 JP2_LIBS=''
27745 if test "$with_jp2" != 'no'; then
27746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27747 $as_echo "-------------------------------------------------------------" >&6; }
27748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27749 $as_echo_n "checking for JPEG Version 2... " >&6; }
27750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27751 $as_echo "" >&6; }
27752     failed=0
27753     passed=0
27754     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27755 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27756   passed=`expr $passed + 1`
27757 else
27758   failed=`expr $failed + 1`
27759 fi
27760
27761
27762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27763 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27764 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27765   $as_echo_n "(cached) " >&6
27766 else
27767   ac_check_lib_save_LIBS=$LIBS
27768 LIBS="-ljasper  $LIBS"
27769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27770 /* end confdefs.h.  */
27771
27772 /* Override any GCC internal prototype to avoid an error.
27773    Use char because int might match the return type of a GCC
27774    builtin and then its argument prototype would still apply.  */
27775 #ifdef __cplusplus
27776 extern "C"
27777 #endif
27778 char jas_stream_fopen ();
27779 int
27780 main ()
27781 {
27782 return jas_stream_fopen ();
27783   ;
27784   return 0;
27785 }
27786 _ACEOF
27787 if ac_fn_c_try_link "$LINENO"; then :
27788   ac_cv_lib_jasper_jas_stream_fopen=yes
27789 else
27790   ac_cv_lib_jasper_jas_stream_fopen=no
27791 fi
27792 rm -f core conftest.err conftest.$ac_objext \
27793     conftest$ac_exeext conftest.$ac_ext
27794 LIBS=$ac_check_lib_save_LIBS
27795 fi
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27797 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27798 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27799   passed=`expr $passed + 1`
27800 else
27801   failed=`expr $failed + 1`
27802 fi
27803
27804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27805 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27806     if test $passed -gt 0; then
27807         if test $failed -gt 0; then
27808             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27809 $as_echo "no -- some components failed test" >&6; }
27810             have_jp2='no (failed tests)'
27811         else
27812             JP2_LIBS='-ljasper'
27813             LIBS="$JP2_LIBS $LIBS"
27814
27815 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27816
27817             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27819             have_jp2='yes'
27820         fi
27821     else
27822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27823 $as_echo "no" >&6; }
27824     fi
27825 fi
27826  if test "$have_jp2" = 'yes'; then
27827   JP2_DELEGATE_TRUE=
27828   JP2_DELEGATE_FALSE='#'
27829 else
27830   JP2_DELEGATE_TRUE='#'
27831   JP2_DELEGATE_FALSE=
27832 fi
27833
27834
27835
27836
27837 #
27838 # Check for LCMS delegate library.
27839 #
27840 # Disable LCMS.
27841
27842 # Check whether --with-lcms was given.
27843 if test "${with_lcms+set}" = set; then :
27844   withval=$with_lcms; with_lcms=$withval
27845 else
27846   with_lcms='yes'
27847 fi
27848
27849 if test "$with_lcms" != 'yes' ; then
27850     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27851 fi
27852
27853 # Disable LCMS2.
27854
27855 # Check whether --with-lcms2 was given.
27856 if test "${with_lcms2+set}" = set; then :
27857   withval=$with_lcms2; with_lcms2=$withval
27858 else
27859   with_lcms2='yes'
27860 fi
27861
27862 if test "$with_lcms2" != 'yes' ; then
27863     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27864 fi
27865
27866 have_lcms2='no'
27867 LCMS_LIBS=''
27868 if test "$with_lcms2" != 'no'; then
27869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27870 $as_echo "-------------------------------------------------------------" >&6; }
27871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27872 $as_echo_n "checking for LCMS v2... " >&6; }
27873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27874 $as_echo "" >&6; }
27875     failed=0
27876     passed=0
27877     have_lcms_header='no'
27878
27879     # Check for <lcms2.h>
27880     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27881 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27882   have_lcms_header='yes'
27883 fi
27884
27885
27886     if test "$have_lcms_header" = 'yes'; then
27887
27888 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27889
27890        passed=`expr $passed + 1`
27891     fi
27892
27893     # Check for <lcms2/lcms2.h)
27894     if test "$have_lcms_header" != 'yes'; then
27895       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27896 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27897   have_lcms_header='yes'
27898 fi
27899
27900
27901       if test "$have_lcms_header" = 'yes'; then
27902         passed=`expr $passed + 1`
27903
27904 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27905
27906       fi
27907     fi
27908
27909     # Failed to find lcms header?
27910     if test "$have_lcms_header" != 'yes'; then
27911       failed=`expr $failed + 1`
27912     fi
27913
27914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27915 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27916 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27917   $as_echo_n "(cached) " >&6
27918 else
27919   ac_check_lib_save_LIBS=$LIBS
27920 LIBS="-llcms2  $LIBS"
27921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922 /* end confdefs.h.  */
27923
27924 /* Override any GCC internal prototype to avoid an error.
27925    Use char because int might match the return type of a GCC
27926    builtin and then its argument prototype would still apply.  */
27927 #ifdef __cplusplus
27928 extern "C"
27929 #endif
27930 char cmsSetLogErrorHandler ();
27931 int
27932 main ()
27933 {
27934 return cmsSetLogErrorHandler ();
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 if ac_fn_c_try_link "$LINENO"; then :
27940   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27941 else
27942   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27943 fi
27944 rm -f core conftest.err conftest.$ac_objext \
27945     conftest$ac_exeext conftest.$ac_ext
27946 LIBS=$ac_check_lib_save_LIBS
27947 fi
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27949 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27950 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27951   passed=`expr $passed + 1`
27952 else
27953   failed=`expr $failed + 1`
27954 fi
27955
27956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27957 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27958     if test $passed -gt 0; then
27959       if test $failed -gt 0; then
27960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27961 $as_echo "no -- some components failed test" >&6; }
27962         have_lcms2='no (failed tests)'
27963       else
27964         LCMS_LIBS='-llcms2'
27965         LIBS="$LCMS_LIBS $LIBS"
27966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27967 $as_echo "yes" >&6; }
27968         have_lcms2='yes'
27969       fi
27970     else
27971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27972 $as_echo "no" >&6; }
27973     fi
27974 fi
27975
27976 #
27977 # Check for LCMS v1 (1.11 or later)
27978 #
27979 if test $have_lcms2 = 'yes'; then
27980   with_lcms='no'
27981 fi
27982
27983 have_lcms='no'
27984 if test "$with_lcms" != 'no'; then
27985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27986 $as_echo "-------------------------------------------------------------" >&6; }
27987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27988 $as_echo_n "checking for LCMS v1.1X... " >&6; }
27989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27990 $as_echo "" >&6; }
27991     failed=0
27992     passed=0
27993     have_lcms_header='no'
27994
27995     # Check for <lcms.h>
27996     if test "$have_lcms_header" != 'yes'; then
27997       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27998 if test "x$ac_cv_header_lcms_h" = x""yes; then :
27999   have_lcms_header='yes'
28000 fi
28001
28002
28003       if test "$have_lcms_header" = 'yes'; then
28004         passed=`expr $passed + 1`
28005
28006 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28007
28008       fi
28009     fi
28010
28011     # Check for <lcms/lcms.h>
28012     if test "$have_lcms_header" != 'yes'; then
28013       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28014 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28015   have_lcms_header='yes'
28016 fi
28017
28018
28019       if test "$have_lcms_header" = 'yes'; then
28020         passed=`expr $passed + 1`
28021
28022 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28023
28024       fi
28025     fi
28026
28027     # Failed to find lcms header?
28028     if test "$have_lcms_header" != 'yes'; then
28029       failed=`expr $failed + 1`
28030     fi
28031
28032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28033 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28034 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28035   $as_echo_n "(cached) " >&6
28036 else
28037   ac_check_lib_save_LIBS=$LIBS
28038 LIBS="-llcms  $LIBS"
28039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040 /* end confdefs.h.  */
28041
28042 /* Override any GCC internal prototype to avoid an error.
28043    Use char because int might match the return type of a GCC
28044    builtin and then its argument prototype would still apply.  */
28045 #ifdef __cplusplus
28046 extern "C"
28047 #endif
28048 char cmsSetErrorHandler ();
28049 int
28050 main ()
28051 {
28052 return cmsSetErrorHandler ();
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 if ac_fn_c_try_link "$LINENO"; then :
28058   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28059 else
28060   ac_cv_lib_lcms_cmsSetErrorHandler=no
28061 fi
28062 rm -f core conftest.err conftest.$ac_objext \
28063     conftest$ac_exeext conftest.$ac_ext
28064 LIBS=$ac_check_lib_save_LIBS
28065 fi
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28067 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28068 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28069   passed=`expr $passed + 1`
28070 else
28071   failed=`expr $failed + 1`
28072 fi
28073
28074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28075 $as_echo_n "checking if LCMS package is complete... " >&6; }
28076     if test $passed -gt 0; then
28077       if test $failed -gt 0; then
28078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28079 $as_echo "no -- some components failed test" >&6; }
28080         have_lcms='no (failed tests)'
28081       else
28082         LCMS_LIBS='-llcms'
28083         LIBS="$LCMS_LIBS $LIBS"
28084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28085 $as_echo "yes" >&6; }
28086         have_lcms='yes'
28087       fi
28088     else
28089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28090 $as_echo "no" >&6; }
28091     fi
28092 fi
28093
28094  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28095   LCMS_DELEGATE_TRUE=
28096   LCMS_DELEGATE_FALSE='#'
28097 else
28098   LCMS_DELEGATE_TRUE='#'
28099   LCMS_DELEGATE_FALSE=
28100 fi
28101
28102 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28103
28104 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28105
28106 fi
28107
28108
28109
28110
28111 #
28112 # Check for the LQR (Liquid Rescale) delegate library.
28113 #
28114
28115 # Check whether --with-lqr was given.
28116 if test "${with_lqr+set}" = set; then :
28117   withval=$with_lqr; with_lqr=$withval
28118 else
28119   with_lqr='yes'
28120 fi
28121
28122
28123 if test "$with_lqr" != 'yes'; then
28124     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28125 fi
28126
28127 have_lqr='no'
28128 LQR_CFLAGS=""
28129 LQR_LIBS=""
28130 LQR_PKG=""
28131 if test "x$with_lqr" = "xyes"; then
28132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28133 $as_echo "-------------------------------------------------------------" >&6; }
28134
28135 pkg_failed=no
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28137 $as_echo_n "checking for LQR... " >&6; }
28138
28139 if test -n "$LQR_CFLAGS"; then
28140     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28141  elif test -n "$PKG_CONFIG"; then
28142     if test -n "$PKG_CONFIG" && \
28143     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28144   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28145   ac_status=$?
28146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28147   test $ac_status = 0; }; then
28148   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28149 else
28150   pkg_failed=yes
28151 fi
28152  else
28153     pkg_failed=untried
28154 fi
28155 if test -n "$LQR_LIBS"; then
28156     pkg_cv_LQR_LIBS="$LQR_LIBS"
28157  elif test -n "$PKG_CONFIG"; then
28158     if test -n "$PKG_CONFIG" && \
28159     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28160   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28161   ac_status=$?
28162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28163   test $ac_status = 0; }; then
28164   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28165 else
28166   pkg_failed=yes
28167 fi
28168  else
28169     pkg_failed=untried
28170 fi
28171
28172
28173
28174 if test $pkg_failed = yes; then
28175
28176 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28177         _pkg_short_errors_supported=yes
28178 else
28179         _pkg_short_errors_supported=no
28180 fi
28181         if test $_pkg_short_errors_supported = yes; then
28182                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28183         else
28184                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28185         fi
28186         # Put the nasty error message in config.log where it belongs
28187         echo "$LQR_PKG_ERRORS" >&5
28188
28189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28190 $as_echo "no" >&6; }
28191                 have_lqr=no
28192 elif test $pkg_failed = untried; then
28193         have_lqr=no
28194 else
28195         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28196         LQR_LIBS=$pkg_cv_LQR_LIBS
28197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198 $as_echo "yes" >&6; }
28199         have_lqr=yes
28200 fi
28201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28202 $as_echo "" >&6; }
28203 fi
28204
28205 if test "$have_lqr" = 'yes'; then
28206
28207 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28208
28209     CFLAGS="$LQR_CFLAGS $CFLAGS"
28210 fi
28211
28212  if test "$have_lqr" = 'yes'; then
28213   LQR_DELEGATE_TRUE=
28214   LQR_DELEGATE_FALSE='#'
28215 else
28216   LQR_DELEGATE_TRUE='#'
28217   LQR_DELEGATE_FALSE=
28218 fi
28219
28220
28221
28222
28223
28224 #
28225 # Check for the OpenEXR delegate library.
28226 #
28227
28228 # Check whether --with-openexr was given.
28229 if test "${with_openexr+set}" = set; then :
28230   withval=$with_openexr; with_openexr=$withval
28231 else
28232   with_openexr='yes'
28233 fi
28234
28235
28236 if test "$with_openexr" != 'yes'; then
28237     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28238 fi
28239
28240 have_openexr='no'
28241 OPENEXR_CFLAGS=""
28242 OPENEXR_LIBS=""
28243 OPENEXR_PKG=""
28244 if test "x$with_openexr" = "xyes"; then
28245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28246 $as_echo "-------------------------------------------------------------" >&6; }
28247
28248 pkg_failed=no
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28250 $as_echo_n "checking for OPENEXR... " >&6; }
28251
28252 if test -n "$OPENEXR_CFLAGS"; then
28253     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28254  elif test -n "$PKG_CONFIG"; then
28255     if test -n "$PKG_CONFIG" && \
28256     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28257   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28258   ac_status=$?
28259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260   test $ac_status = 0; }; then
28261   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28262 else
28263   pkg_failed=yes
28264 fi
28265  else
28266     pkg_failed=untried
28267 fi
28268 if test -n "$OPENEXR_LIBS"; then
28269     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28270  elif test -n "$PKG_CONFIG"; then
28271     if test -n "$PKG_CONFIG" && \
28272     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28273   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28274   ac_status=$?
28275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276   test $ac_status = 0; }; then
28277   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28278 else
28279   pkg_failed=yes
28280 fi
28281  else
28282     pkg_failed=untried
28283 fi
28284
28285
28286
28287 if test $pkg_failed = yes; then
28288
28289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28290         _pkg_short_errors_supported=yes
28291 else
28292         _pkg_short_errors_supported=no
28293 fi
28294         if test $_pkg_short_errors_supported = yes; then
28295                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28296         else
28297                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28298         fi
28299         # Put the nasty error message in config.log where it belongs
28300         echo "$OPENEXR_PKG_ERRORS" >&5
28301
28302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303 $as_echo "no" >&6; }
28304                 have_openexr=no
28305 elif test $pkg_failed = untried; then
28306         have_openexr=no
28307 else
28308         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28309         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28311 $as_echo "yes" >&6; }
28312         have_openexr=yes
28313 fi
28314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28315 $as_echo "" >&6; }
28316 fi
28317
28318 if test "$have_openexr" = 'yes'; then
28319
28320 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28321
28322     if test "$with_modules" = 'no'; then
28323         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28324     fi
28325 fi
28326
28327  if test "$have_openexr" = 'yes'; then
28328   OPENEXR_DELEGATE_TRUE=
28329   OPENEXR_DELEGATE_FALSE='#'
28330 else
28331   OPENEXR_DELEGATE_TRUE='#'
28332   OPENEXR_DELEGATE_FALSE=
28333 fi
28334
28335
28336
28337
28338
28339 #
28340 # Check for PNG delegate library.
28341 #
28342
28343 # Check whether --with-png was given.
28344 if test "${with_png+set}" = set; then :
28345   withval=$with_png; with_png=$withval
28346 else
28347   with_png='yes'
28348 fi
28349
28350
28351 if test "$with_png" != 'yes'; then
28352     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28353 fi
28354
28355 have_png='no'
28356 PNG_LIBS=''
28357 if test "$with_png" != 'no'; then
28358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28359 $as_echo "-------------------------------------------------------------" >&6; }
28360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28361 $as_echo_n "checking for PNG... " >&6; }
28362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28363 $as_echo "" >&6; }
28364     failed=0
28365     passed=0
28366     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28367 if test "x$ac_cv_header_png_h" = x""yes; then :
28368   passed=`expr $passed + 1`
28369 else
28370   failed=`expr $failed + 1`
28371 fi
28372
28373
28374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28375 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28376 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28377   $as_echo_n "(cached) " >&6
28378 else
28379   ac_check_lib_save_LIBS=$LIBS
28380 LIBS="-lpng  $LIBS"
28381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h.  */
28383
28384 /* Override any GCC internal prototype to avoid an error.
28385    Use char because int might match the return type of a GCC
28386    builtin and then its argument prototype would still apply.  */
28387 #ifdef __cplusplus
28388 extern "C"
28389 #endif
28390 char png_get_io_ptr ();
28391 int
28392 main ()
28393 {
28394 return png_get_io_ptr ();
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 if ac_fn_c_try_link "$LINENO"; then :
28400   ac_cv_lib_png_png_get_io_ptr=yes
28401 else
28402   ac_cv_lib_png_png_get_io_ptr=no
28403 fi
28404 rm -f core conftest.err conftest.$ac_objext \
28405     conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28407 fi
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28409 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28410 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28411   passed=`expr $passed + 1`
28412 else
28413   failed=`expr $failed + 1`
28414 fi
28415
28416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28417 $as_echo_n "checking if PNG package is complete... " >&6; }
28418     if test $passed -gt 0; then
28419         if test $failed -gt 0; then
28420             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28421 $as_echo "no -- some components failed test" >&6; }
28422             have_png='no (failed tests)'
28423         else
28424             PNG_LIBS='-lpng'
28425             LIBS="$PNG_LIBS $LIBS"
28426
28427 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28428
28429             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28430 $as_echo "yes" >&6; }
28431             have_png='yes'
28432         fi
28433     else
28434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28435 $as_echo "no" >&6; }
28436     fi
28437 fi
28438  if test "$have_png" = 'yes'; then
28439   PNG_DELEGATE_TRUE=
28440   PNG_DELEGATE_FALSE='#'
28441 else
28442   PNG_DELEGATE_TRUE='#'
28443   PNG_DELEGATE_FALSE=
28444 fi
28445
28446
28447
28448
28449 #
28450 # Check for RSVG delegate library.
28451 #
28452
28453 # Check whether --with-rsvg was given.
28454 if test "${with_rsvg+set}" = set; then :
28455   withval=$with_rsvg; with_rsvg=$withval
28456 else
28457   with_rsvg=$have_x
28458 fi
28459
28460
28461 if test "$with_rsvg" != 'yes'; then
28462     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28463 fi
28464
28465 have_rsvg='no'
28466 have_cairo='no'
28467 RSVG_CFLAGS=""
28468 RSVG_LIBS=""
28469 RSVG_PKG=""
28470 if test "x$with_rsvg" = "xyes"; then
28471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28472 $as_echo "-------------------------------------------------------------" >&6; }
28473
28474 pkg_failed=no
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28476 $as_echo_n "checking for RSVG... " >&6; }
28477
28478 if test -n "$RSVG_CFLAGS"; then
28479     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28480  elif test -n "$PKG_CONFIG"; then
28481     if test -n "$PKG_CONFIG" && \
28482     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28483   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28484   ac_status=$?
28485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28486   test $ac_status = 0; }; then
28487   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28488 else
28489   pkg_failed=yes
28490 fi
28491  else
28492     pkg_failed=untried
28493 fi
28494 if test -n "$RSVG_LIBS"; then
28495     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28496  elif test -n "$PKG_CONFIG"; then
28497     if test -n "$PKG_CONFIG" && \
28498     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28499   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28500   ac_status=$?
28501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502   test $ac_status = 0; }; then
28503   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28504 else
28505   pkg_failed=yes
28506 fi
28507  else
28508     pkg_failed=untried
28509 fi
28510
28511
28512
28513 if test $pkg_failed = yes; then
28514
28515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28516         _pkg_short_errors_supported=yes
28517 else
28518         _pkg_short_errors_supported=no
28519 fi
28520         if test $_pkg_short_errors_supported = yes; then
28521                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28522         else
28523                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28524         fi
28525         # Put the nasty error message in config.log where it belongs
28526         echo "$RSVG_PKG_ERRORS" >&5
28527
28528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28529 $as_echo "no" >&6; }
28530                 have_rsvg=no
28531 elif test $pkg_failed = untried; then
28532         have_rsvg=no
28533 else
28534         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28535         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28537 $as_echo "yes" >&6; }
28538         have_rsvg=yes
28539 fi
28540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28541 $as_echo "" >&6; }
28542
28543 pkg_failed=no
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28545 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28546
28547 if test -n "$CAIRO_SVG_CFLAGS"; then
28548     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28549  elif test -n "$PKG_CONFIG"; then
28550     if test -n "$PKG_CONFIG" && \
28551     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28552   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28553   ac_status=$?
28554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28555   test $ac_status = 0; }; then
28556   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28557 else
28558   pkg_failed=yes
28559 fi
28560  else
28561     pkg_failed=untried
28562 fi
28563 if test -n "$CAIRO_SVG_LIBS"; then
28564     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28565  elif test -n "$PKG_CONFIG"; then
28566     if test -n "$PKG_CONFIG" && \
28567     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28568   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28569   ac_status=$?
28570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28571   test $ac_status = 0; }; then
28572   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28573 else
28574   pkg_failed=yes
28575 fi
28576  else
28577     pkg_failed=untried
28578 fi
28579
28580
28581
28582 if test $pkg_failed = yes; then
28583
28584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28585         _pkg_short_errors_supported=yes
28586 else
28587         _pkg_short_errors_supported=no
28588 fi
28589         if test $_pkg_short_errors_supported = yes; then
28590                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28591         else
28592                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28593         fi
28594         # Put the nasty error message in config.log where it belongs
28595         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28596
28597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598 $as_echo "no" >&6; }
28599                 have_cairo=no
28600 elif test $pkg_failed = untried; then
28601         have_cairo=no
28602 else
28603         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28604         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28606 $as_echo "yes" >&6; }
28607         have_cairo=yes
28608 fi
28609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28610 $as_echo "" >&6; }
28611 fi
28612
28613 if test "$have_rsvg" = 'yes'; then
28614
28615 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28616
28617     if test "$with_modules" = 'no'; then
28618         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28619     fi
28620 fi
28621
28622 if test "$have_cairo" = 'yes'; then
28623
28624 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28625
28626     if test "$with_modules" = 'no'; then
28627         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28628     fi
28629 fi
28630
28631  if test "$have_rsvg" = 'yes'; then
28632   RSVG_DELEGATE_TRUE=
28633   RSVG_DELEGATE_FALSE='#'
28634 else
28635   RSVG_DELEGATE_TRUE='#'
28636   RSVG_DELEGATE_FALSE=
28637 fi
28638
28639  if test "$have_cairo" = 'yes'; then
28640   CAIRO_DELEGATE_TRUE=
28641   CAIRO_DELEGATE_FALSE='#'
28642 else
28643   CAIRO_DELEGATE_TRUE='#'
28644   CAIRO_DELEGATE_FALSE=
28645 fi
28646
28647
28648
28649
28650
28651 #
28652 # Check for TIFF delegate library.
28653 #
28654
28655 # Check whether --with-tiff was given.
28656 if test "${with_tiff+set}" = set; then :
28657   withval=$with_tiff; with_tiff=$withval
28658 else
28659   with_tiff='yes'
28660 fi
28661
28662
28663 if test "$with_tiff" != 'yes'; then
28664     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28665 fi
28666
28667 have_tiff='no'
28668 TIFF_LIBS=''
28669 if test "$with_tiff" != 'no'; then
28670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28671 $as_echo "-------------------------------------------------------------" >&6; }
28672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28673 $as_echo_n "checking for TIFF... " >&6; }
28674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28675 $as_echo "" >&6; }
28676     failed=0
28677     passed=0
28678     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28679 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28680   passed=`expr $passed + 1`
28681 else
28682   failed=`expr $failed + 1`
28683 fi
28684
28685
28686     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28687 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28688   passed=`expr $passed + 1`
28689 else
28690   failed=`expr $failed + 1`
28691 fi
28692
28693
28694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28695 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28696 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28697   $as_echo_n "(cached) " >&6
28698 else
28699   ac_check_lib_save_LIBS=$LIBS
28700 LIBS="-ltiff  $LIBS"
28701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28702 /* end confdefs.h.  */
28703
28704 /* Override any GCC internal prototype to avoid an error.
28705    Use char because int might match the return type of a GCC
28706    builtin and then its argument prototype would still apply.  */
28707 #ifdef __cplusplus
28708 extern "C"
28709 #endif
28710 char TIFFOpen ();
28711 int
28712 main ()
28713 {
28714 return TIFFOpen ();
28715   ;
28716   return 0;
28717 }
28718 _ACEOF
28719 if ac_fn_c_try_link "$LINENO"; then :
28720   ac_cv_lib_tiff_TIFFOpen=yes
28721 else
28722   ac_cv_lib_tiff_TIFFOpen=no
28723 fi
28724 rm -f core conftest.err conftest.$ac_objext \
28725     conftest$ac_exeext conftest.$ac_ext
28726 LIBS=$ac_check_lib_save_LIBS
28727 fi
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28729 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28730 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28731   passed=`expr $passed + 1`
28732 else
28733   failed=`expr $failed + 1`
28734 fi
28735
28736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28737 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28738 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28739   $as_echo_n "(cached) " >&6
28740 else
28741   ac_check_lib_save_LIBS=$LIBS
28742 LIBS="-ltiff  $LIBS"
28743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h.  */
28745
28746 /* Override any GCC internal prototype to avoid an error.
28747    Use char because int might match the return type of a GCC
28748    builtin and then its argument prototype would still apply.  */
28749 #ifdef __cplusplus
28750 extern "C"
28751 #endif
28752 char TIFFClientOpen ();
28753 int
28754 main ()
28755 {
28756 return TIFFClientOpen ();
28757   ;
28758   return 0;
28759 }
28760 _ACEOF
28761 if ac_fn_c_try_link "$LINENO"; then :
28762   ac_cv_lib_tiff_TIFFClientOpen=yes
28763 else
28764   ac_cv_lib_tiff_TIFFClientOpen=no
28765 fi
28766 rm -f core conftest.err conftest.$ac_objext \
28767     conftest$ac_exeext conftest.$ac_ext
28768 LIBS=$ac_check_lib_save_LIBS
28769 fi
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28771 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28772 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28773   passed=`expr $passed + 1`
28774 else
28775   failed=`expr $failed + 1`
28776 fi
28777
28778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28779 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28780 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28781   $as_echo_n "(cached) " >&6
28782 else
28783   ac_check_lib_save_LIBS=$LIBS
28784 LIBS="-ltiff  $LIBS"
28785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28786 /* end confdefs.h.  */
28787
28788 /* Override any GCC internal prototype to avoid an error.
28789    Use char because int might match the return type of a GCC
28790    builtin and then its argument prototype would still apply.  */
28791 #ifdef __cplusplus
28792 extern "C"
28793 #endif
28794 char TIFFIsBigEndian ();
28795 int
28796 main ()
28797 {
28798 return TIFFIsBigEndian ();
28799   ;
28800   return 0;
28801 }
28802 _ACEOF
28803 if ac_fn_c_try_link "$LINENO"; then :
28804   ac_cv_lib_tiff_TIFFIsBigEndian=yes
28805 else
28806   ac_cv_lib_tiff_TIFFIsBigEndian=no
28807 fi
28808 rm -f core conftest.err conftest.$ac_objext \
28809     conftest$ac_exeext conftest.$ac_ext
28810 LIBS=$ac_check_lib_save_LIBS
28811 fi
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28813 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28814 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28815   passed=`expr $passed + 1`
28816 else
28817   failed=`expr $failed + 1`
28818 fi
28819
28820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28821 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28822 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28823   $as_echo_n "(cached) " >&6
28824 else
28825   ac_check_lib_save_LIBS=$LIBS
28826 LIBS="-ltiff  $LIBS"
28827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28828 /* end confdefs.h.  */
28829
28830 /* Override any GCC internal prototype to avoid an error.
28831    Use char because int might match the return type of a GCC
28832    builtin and then its argument prototype would still apply.  */
28833 #ifdef __cplusplus
28834 extern "C"
28835 #endif
28836 char TIFFIsByteSwapped ();
28837 int
28838 main ()
28839 {
28840 return TIFFIsByteSwapped ();
28841   ;
28842   return 0;
28843 }
28844 _ACEOF
28845 if ac_fn_c_try_link "$LINENO"; then :
28846   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28847 else
28848   ac_cv_lib_tiff_TIFFIsByteSwapped=no
28849 fi
28850 rm -f core conftest.err conftest.$ac_objext \
28851     conftest$ac_exeext conftest.$ac_ext
28852 LIBS=$ac_check_lib_save_LIBS
28853 fi
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28855 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28856 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28857   passed=`expr $passed + 1`
28858 else
28859   failed=`expr $failed + 1`
28860 fi
28861
28862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28863 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28864 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28865   $as_echo_n "(cached) " >&6
28866 else
28867   ac_check_lib_save_LIBS=$LIBS
28868 LIBS="-ltiff  $LIBS"
28869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28870 /* end confdefs.h.  */
28871
28872 /* Override any GCC internal prototype to avoid an error.
28873    Use char because int might match the return type of a GCC
28874    builtin and then its argument prototype would still apply.  */
28875 #ifdef __cplusplus
28876 extern "C"
28877 #endif
28878 char TIFFReadRGBATile ();
28879 int
28880 main ()
28881 {
28882 return TIFFReadRGBATile ();
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 if ac_fn_c_try_link "$LINENO"; then :
28888   ac_cv_lib_tiff_TIFFReadRGBATile=yes
28889 else
28890   ac_cv_lib_tiff_TIFFReadRGBATile=no
28891 fi
28892 rm -f core conftest.err conftest.$ac_objext \
28893     conftest$ac_exeext conftest.$ac_ext
28894 LIBS=$ac_check_lib_save_LIBS
28895 fi
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28897 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28898 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28899   passed=`expr $passed + 1`
28900 else
28901   failed=`expr $failed + 1`
28902 fi
28903
28904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28905 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28906 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28907   $as_echo_n "(cached) " >&6
28908 else
28909   ac_check_lib_save_LIBS=$LIBS
28910 LIBS="-ltiff  $LIBS"
28911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28912 /* end confdefs.h.  */
28913
28914 /* Override any GCC internal prototype to avoid an error.
28915    Use char because int might match the return type of a GCC
28916    builtin and then its argument prototype would still apply.  */
28917 #ifdef __cplusplus
28918 extern "C"
28919 #endif
28920 char TIFFReadRGBAStrip ();
28921 int
28922 main ()
28923 {
28924 return TIFFReadRGBAStrip ();
28925   ;
28926   return 0;
28927 }
28928 _ACEOF
28929 if ac_fn_c_try_link "$LINENO"; then :
28930   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28931 else
28932   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28933 fi
28934 rm -f core conftest.err conftest.$ac_objext \
28935     conftest$ac_exeext conftest.$ac_ext
28936 LIBS=$ac_check_lib_save_LIBS
28937 fi
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28939 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28940 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28941   passed=`expr $passed + 1`
28942 else
28943   failed=`expr $failed + 1`
28944 fi
28945
28946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28947 $as_echo_n "checking if TIFF package is complete... " >&6; }
28948     if test $passed -gt 0; then
28949         if test $failed -gt 0; then
28950             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28951 $as_echo "no -- some components failed test" >&6; }
28952             have_tiff='no (failed tests)'
28953         else
28954             TIFF_LIBS='-ltiff'
28955             LIBS="$TIFF_LIBS $LIBS"
28956
28957 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28958
28959             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28960 $as_echo "yes" >&6; }
28961             have_tiff='yes'
28962             for ac_header in tiffconf.h
28963 do :
28964   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28965 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28966   cat >>confdefs.h <<_ACEOF
28967 #define HAVE_TIFFCONF_H 1
28968 _ACEOF
28969
28970 fi
28971
28972 done
28973
28974             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28975               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28976               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28977 do :
28978   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28981   cat >>confdefs.h <<_ACEOF
28982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28983 _ACEOF
28984
28985 fi
28986 done
28987
28988         fi
28989     else
28990         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28991 $as_echo "no" >&6; }
28992     fi
28993 fi
28994  if test "$have_tiff" = 'yes'; then
28995   TIFF_DELEGATE_TRUE=
28996   TIFF_DELEGATE_FALSE='#'
28997 else
28998   TIFF_DELEGATE_TRUE='#'
28999   TIFF_DELEGATE_FALSE=
29000 fi
29001
29002
29003
29004
29005 #
29006 # Set Windows font directory.
29007 #
29008
29009 # Check whether --with-windows-font-dir was given.
29010 if test "${with_windows_font_dir+set}" = set; then :
29011   withval=$with_windows_font_dir; with_windows_font_dir=$withval
29012 else
29013   with_windows_font_dir=''
29014 fi
29015
29016 if test "$with_windows_font_dir" != '' ; then
29017     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29018 fi
29019
29020
29021 #
29022 # Check for WMF delegate library.
29023 #
29024
29025 # Check whether --with-wmf was given.
29026 if test "${with_wmf+set}" = set; then :
29027   withval=$with_wmf; with_wmf=$withval
29028 else
29029   with_wmf='yes'
29030 fi
29031
29032
29033 if test "$with_wmf" != 'yes'; then
29034     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29035 fi
29036
29037 have_wmf='no'
29038 WMF_LIBS=''
29039 if test "$with_wmf" != 'no'; then
29040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29041 $as_echo "-------------------------------------------------------------" >&6; }
29042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29043 $as_echo_n "checking for WMF... " >&6; }
29044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29045 $as_echo "" >&6; }
29046     failed=0
29047     passed=0
29048     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29049 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29050   passed=`expr $passed + 1`
29051 else
29052   failed=`expr $failed + 1`
29053 fi
29054
29055
29056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29057 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29058 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29059   $as_echo_n "(cached) " >&6
29060 else
29061   ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lwmf "-lwmflite" $LIBS"
29063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h.  */
29065
29066 /* Override any GCC internal prototype to avoid an error.
29067    Use char because int might match the return type of a GCC
29068    builtin and then its argument prototype would still apply.  */
29069 #ifdef __cplusplus
29070 extern "C"
29071 #endif
29072 char wmf_eps_function ();
29073 int
29074 main ()
29075 {
29076 return wmf_eps_function ();
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 if ac_fn_c_try_link "$LINENO"; then :
29082   ac_cv_lib_wmf_wmf_eps_function=yes
29083 else
29084   ac_cv_lib_wmf_wmf_eps_function=no
29085 fi
29086 rm -f core conftest.err conftest.$ac_objext \
29087     conftest$ac_exeext conftest.$ac_ext
29088 LIBS=$ac_check_lib_save_LIBS
29089 fi
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29091 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29092 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29093   passed=`expr $passed + 1`
29094 else
29095   failed=`expr $failed + 1`
29096 fi
29097
29098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29099 $as_echo_n "checking if WMF package is complete... " >&6; }
29100     if test $passed -gt 0; then
29101         if test $failed -gt 0; then
29102             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29103 $as_echo "no -- some components failed test" >&6; }
29104             have_wmf='no (failed tests)'
29105         else
29106             WMF_LIBS='-lwmf -lwmflite'
29107             LIBS="$WMF_LIBS $LIBS"
29108
29109 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29110
29111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29113             have_wmf='yes'
29114         fi
29115     else
29116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29117 $as_echo "no" >&6; }
29118     fi
29119 fi
29120  if test "$have_wmf" = 'yes'; then
29121   WMF_DELEGATE_TRUE=
29122   WMF_DELEGATE_FALSE='#'
29123 else
29124   WMF_DELEGATE_TRUE='#'
29125   WMF_DELEGATE_FALSE=
29126 fi
29127
29128
29129
29130
29131
29132
29133 #
29134 # Check for XML delegate library.
29135 #
29136
29137 # Check whether --with-xml was given.
29138 if test "${with_xml+set}" = set; then :
29139   withval=$with_xml; with_xml=$withval
29140 else
29141   with_xml=$have_x
29142 fi
29143
29144
29145 if test "$with_xml" != 'yes' ; then
29146     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29147 fi
29148
29149 have_xml='no'
29150 XML_LIBS=''
29151 if test "$with_xml" != 'no'; then
29152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29153 $as_echo "-------------------------------------------------------------" >&6; }
29154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29155 $as_echo_n "checking for XML... " >&6; }
29156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29157 $as_echo "" >&6; }
29158     PERSIST_LDFLAGS=$LDFLAGS
29159     PERSIST_CPPFLAGS=$CPPFLAGS
29160     xml2_config=''
29161     for ac_prog in xml2-config
29162 do
29163   # Extract the first word of "$ac_prog", so it can be a program name with args.
29164 set dummy $ac_prog; ac_word=$2
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29166 $as_echo_n "checking for $ac_word... " >&6; }
29167 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29168   $as_echo_n "(cached) " >&6
29169 else
29170   if test -n "$xml2_config"; then
29171   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29172 else
29173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29174 for as_dir in $PATH
29175 do
29176   IFS=$as_save_IFS
29177   test -z "$as_dir" && as_dir=.
29178     for ac_exec_ext in '' $ac_executable_extensions; do
29179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29180     ac_cv_prog_xml2_config="$ac_prog"
29181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29182     break 2
29183   fi
29184 done
29185   done
29186 IFS=$as_save_IFS
29187
29188 fi
29189 fi
29190 xml2_config=$ac_cv_prog_xml2_config
29191 if test -n "$xml2_config"; then
29192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29193 $as_echo "$xml2_config" >&6; }
29194 else
29195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29196 $as_echo "no" >&6; }
29197 fi
29198
29199
29200   test -n "$xml2_config" && break
29201 done
29202     if test -n "$xml2_config"; then
29203         # Debian installs libxml headers under /usr/include/libxml2/libxml with
29204         # the shared library installed under /usr/lib, whereas the package
29205         # installs itself under $prefix/libxml and $prefix/lib.
29206         xml2_prefix=`xml2-config --prefix`
29207         if test -d "${xml2_prefix}/include/libxml2"; then
29208             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29209         fi
29210         if test "${xml2_prefix}" != '/usr'; then
29211             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29212         fi
29213     fi
29214     failed=0
29215     passed=0
29216     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29217 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29218   passed=`expr $passed + 1`
29219 else
29220   failed=`expr $failed + 1`
29221 fi
29222
29223
29224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29225 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29226 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29227   $as_echo_n "(cached) " >&6
29228 else
29229   ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lxml2  $LIBS"
29231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29232 /* end confdefs.h.  */
29233
29234 /* Override any GCC internal prototype to avoid an error.
29235    Use char because int might match the return type of a GCC
29236    builtin and then its argument prototype would still apply.  */
29237 #ifdef __cplusplus
29238 extern "C"
29239 #endif
29240 char xmlParseExternalEntity ();
29241 int
29242 main ()
29243 {
29244 return xmlParseExternalEntity ();
29245   ;
29246   return 0;
29247 }
29248 _ACEOF
29249 if ac_fn_c_try_link "$LINENO"; then :
29250   ac_cv_lib_xml2_xmlParseExternalEntity=yes
29251 else
29252   ac_cv_lib_xml2_xmlParseExternalEntity=no
29253 fi
29254 rm -f core conftest.err conftest.$ac_objext \
29255     conftest$ac_exeext conftest.$ac_ext
29256 LIBS=$ac_check_lib_save_LIBS
29257 fi
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29259 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29260 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29261   passed=`expr $passed + 1`
29262 else
29263   failed=`expr $failed + 1`
29264 fi
29265
29266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29267 $as_echo_n "checking if XML package is complete... " >&6; }
29268     if test $passed -gt 0; then
29269         if test $failed -gt 0; then
29270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29271 $as_echo "no -- some components failed test" >&6; }
29272             have_xml='no (failed tests)'
29273             LDFLAGS="$PERSIST_LDFLAGS"
29274             CPPFLAGS="$PERSIST_CPPFLAGS"
29275         else
29276             XML_LIBS='-lxml2'
29277             LIBS="$XML_LIBS $LIBS"
29278
29279 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29280
29281             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29283             have_xml='yes'
29284         fi
29285     else
29286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29288     fi
29289 fi
29290  if test "$have_xml" = 'yes'; then
29291   XML_DELEGATE_TRUE=
29292   XML_DELEGATE_FALSE='#'
29293 else
29294   XML_DELEGATE_TRUE='#'
29295   XML_DELEGATE_FALSE=
29296 fi
29297
29298
29299
29300
29301 # Substitute compiler name to build/link PerlMagick
29302 #
29303
29304
29305 #
29306 # Configure install Paths
29307 #
29308
29309 # Subdirectory under lib to place ImageMagick lib files
29310 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29311
29312 cat >>confdefs.h <<_ACEOF
29313 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29314 _ACEOF
29315
29316
29317 # Path to ImageMagick bin directory
29318 EXECUTABLE_PATH="${BIN_DIR}"
29319 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29320 case "${build_os}" in
29321   mingw* )
29322     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29323     ;;
29324 esac
29325
29326 cat >>confdefs.h <<_ACEOF
29327 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29328 _ACEOF
29329
29330
29331
29332 # Path to ImageMagick lib
29333 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29334 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29335 case "${build_os}" in
29336   mingw* )
29337     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29338     ;;
29339 esac
29340
29341 cat >>confdefs.h <<_ACEOF
29342 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29343 _ACEOF
29344
29345
29346
29347 # Subdirectory under lib to place ImageMagick configuration files
29348 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29349
29350 cat >>confdefs.h <<_ACEOF
29351 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29352 _ACEOF
29353
29354 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29355 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29356 case "${build_os}" in
29357   mingw* )
29358     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29359     ;;
29360 esac
29361
29362 cat >>confdefs.h <<_ACEOF
29363 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29364 _ACEOF
29365
29366
29367
29368 #
29369 # Subdirectory under lib to place ImageMagick coder module files
29370 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29371
29372 cat >>confdefs.h <<_ACEOF
29373 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29374 _ACEOF
29375
29376 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29377 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29378 case "${build_os}" in
29379   mingw* )
29380     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29381     ;;
29382 esac
29383
29384 cat >>confdefs.h <<_ACEOF
29385 #define CODER_PATH "$DEFINE_CODER_PATH"
29386 _ACEOF
29387
29388
29389
29390 #
29391 # Subdirectory under lib to place ImageMagick filter module files
29392 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29393
29394 cat >>confdefs.h <<_ACEOF
29395 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29396 _ACEOF
29397
29398 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29399 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29400 case "${build_os}" in
29401   mingw* )
29402     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29403     ;;
29404 esac
29405
29406 cat >>confdefs.h <<_ACEOF
29407 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29408 _ACEOF
29409
29410
29411
29412 #
29413 # Path to ImageMagick documentation files
29414 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29415 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29416 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29417 case "${build_os}" in
29418   mingw* )
29419     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29420     ;;
29421 esac
29422
29423 cat >>confdefs.h <<_ACEOF
29424 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29425 _ACEOF
29426
29427
29428
29429 #
29430 # Path to ImageMagick share files
29431 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29432 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29433 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29434 case "${build_os}" in
29435   mingw* )
29436     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29437     ;;
29438 esac
29439
29440 cat >>confdefs.h <<_ACEOF
29441 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29442 _ACEOF
29443
29444
29445
29446 # Subdirectory under share to place ImageMagick configuration files
29447 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29448
29449 cat >>confdefs.h <<_ACEOF
29450 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29451 _ACEOF
29452
29453 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29454 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29455 case "${build_os}" in
29456   mingw* )
29457     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29458     ;;
29459 esac
29460
29461 cat >>confdefs.h <<_ACEOF
29462 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29463 _ACEOF
29464
29465
29466
29467 #
29468 # program_transform_name is formed for use in a Makefile, so create a
29469 # modified version for use in a shell script.
29470 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29471
29472 # Default delegate definitions
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29474 $as_echo "-------------------------------------------------------------" >&6; }
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29476 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29478 $as_echo "" >&6; }
29479 AutotraceDecodeDelegateDefault='autotrace'
29480 AVIDecodeDelegateDefault='mplayer'
29481 BlenderDecodeDelegateDefault='blender'
29482 BZIPDelegateDefault='bzip2'
29483 BrowseDelegateDefault='xdg-open'
29484 CGMDecodeDelegateDefault='ralcgm'
29485 CatDelegateDefault='cat'
29486 DNGDecodeDelegateDefault='ufraw-batch'
29487 GVCDecodeDelegateDefault='dot'
29488 DVIDecodeDelegateDefault='dvips'
29489 EchoDelegateDefault='echo'
29490 EditorDelegateDefault='xterm'
29491 FIGDecodeDelegateDefault='fig2dev'
29492 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29493 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29494 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29495 GnuplotDecodeDelegateDefault='gnuplot'
29496 HDRDecodeDelegateDefault='ra_pfm'
29497 HPGLDecodeDelegateDefault='hp2xx'
29498 HTMLDecodeDelegateDefault='html2ps'
29499 ILBMDecodeDelegateDefault='ilbmtoppm'
29500 ILBMEncodeDelegateDefault='ppmtoilbm'
29501 LPDelegateDefault='lp'
29502 LPRDelegateDefault='lpr'
29503 LZWDecodeDelegateDefault='uncompress'
29504 LZWEncodeDelegateDefault='compress'
29505 LaunchDelegateDefault='gimp'
29506 MANDelegateDefault='groff'
29507 MPEGDecodeDelegateDefault='ffmpeg'
29508 MPEGEncodeDelegateDefault='ffmpeg'
29509 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29510 MVDelegateDefault='mv'
29511 PCLDelegateDefault='pcl6'
29512 PGPDecodeDelegateDefault='pgpv'
29513 POVDelegateDefault='povray'
29514 if test "$native_win32_build" = 'yes'; then
29515     PSDelegateDefault='gswin32c'
29516 elif test "$gslib_framework" = 'yes'; then
29517     PSDelegateDefault='gsc'
29518 else
29519     PSDelegateDefault='gs'
29520 fi
29521 RLEEncodeDelegateDefault='rawtorle'
29522 RMDelegateDefault='rm'
29523 RSVGDecodeDelegateDefault='rsvg'
29524 SCANDecodeDelegateDefault='scanimage'
29525 TXTDelegateDefault='enscript'
29526 UniconvertorDelegateDefault='uniconvertor'
29527 WMFDecodeDelegateDefault='wmf2eps'
29528 WWWDecodeDelegateDefault='curl'
29529 XPSDelegateDefault='gxps'
29530 ZipDelegateDefault='gzip'
29531
29532 # Search for delegates
29533 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29534 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29536 $as_echo_n "checking for $ac_word... " >&6; }
29537 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29538   $as_echo_n "(cached) " >&6
29539 else
29540   case $AutotraceDecodeDelegate in
29541   [\\/]* | ?:[\\/]*)
29542   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29543   ;;
29544   *)
29545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29546 for as_dir in $PATH
29547 do
29548   IFS=$as_save_IFS
29549   test -z "$as_dir" && as_dir=.
29550     for ac_exec_ext in '' $ac_executable_extensions; do
29551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29552     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29554     break 2
29555   fi
29556 done
29557   done
29558 IFS=$as_save_IFS
29559
29560   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29561   ;;
29562 esac
29563 fi
29564 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29565 if test -n "$AutotraceDecodeDelegate"; then
29566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29567 $as_echo "$AutotraceDecodeDelegate" >&6; }
29568 else
29569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29570 $as_echo "no" >&6; }
29571 fi
29572
29573
29574 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29575 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29577 $as_echo_n "checking for $ac_word... " >&6; }
29578 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29579   $as_echo_n "(cached) " >&6
29580 else
29581   case $AVIDecodeDelegate in
29582   [\\/]* | ?:[\\/]*)
29583   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29584   ;;
29585   *)
29586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29587 for as_dir in $PATH
29588 do
29589   IFS=$as_save_IFS
29590   test -z "$as_dir" && as_dir=.
29591     for ac_exec_ext in '' $ac_executable_extensions; do
29592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29593     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29595     break 2
29596   fi
29597 done
29598   done
29599 IFS=$as_save_IFS
29600
29601   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29602   ;;
29603 esac
29604 fi
29605 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29606 if test -n "$AVIDecodeDelegate"; then
29607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29608 $as_echo "$AVIDecodeDelegate" >&6; }
29609 else
29610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29611 $as_echo "no" >&6; }
29612 fi
29613
29614
29615 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29616 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29618 $as_echo_n "checking for $ac_word... " >&6; }
29619 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29620   $as_echo_n "(cached) " >&6
29621 else
29622   case $BlenderDecodeDelegate in
29623   [\\/]* | ?:[\\/]*)
29624   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29625   ;;
29626   *)
29627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29628 for as_dir in $PATH
29629 do
29630   IFS=$as_save_IFS
29631   test -z "$as_dir" && as_dir=.
29632     for ac_exec_ext in '' $ac_executable_extensions; do
29633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29634     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29636     break 2
29637   fi
29638 done
29639   done
29640 IFS=$as_save_IFS
29641
29642   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29643   ;;
29644 esac
29645 fi
29646 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29647 if test -n "$BlenderDecodeDelegate"; then
29648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29649 $as_echo "$BlenderDecodeDelegate" >&6; }
29650 else
29651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29652 $as_echo "no" >&6; }
29653 fi
29654
29655
29656 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29657 set dummy "$BZIPDelegateDefault"; ac_word=$2
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29659 $as_echo_n "checking for $ac_word... " >&6; }
29660 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29661   $as_echo_n "(cached) " >&6
29662 else
29663   case $BZIPDelegate in
29664   [\\/]* | ?:[\\/]*)
29665   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29666   ;;
29667   *)
29668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669 for as_dir in $PATH
29670 do
29671   IFS=$as_save_IFS
29672   test -z "$as_dir" && as_dir=.
29673     for ac_exec_ext in '' $ac_executable_extensions; do
29674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29675     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29677     break 2
29678   fi
29679 done
29680   done
29681 IFS=$as_save_IFS
29682
29683   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29684   ;;
29685 esac
29686 fi
29687 BZIPDelegate=$ac_cv_path_BZIPDelegate
29688 if test -n "$BZIPDelegate"; then
29689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29690 $as_echo "$BZIPDelegate" >&6; }
29691 else
29692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693 $as_echo "no" >&6; }
29694 fi
29695
29696
29697 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29698 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29700 $as_echo_n "checking for $ac_word... " >&6; }
29701 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29702   $as_echo_n "(cached) " >&6
29703 else
29704   case $BrowseDelegate in
29705   [\\/]* | ?:[\\/]*)
29706   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29707   ;;
29708   *)
29709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29710 for as_dir in $PATH
29711 do
29712   IFS=$as_save_IFS
29713   test -z "$as_dir" && as_dir=.
29714     for ac_exec_ext in '' $ac_executable_extensions; do
29715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29716     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29718     break 2
29719   fi
29720 done
29721   done
29722 IFS=$as_save_IFS
29723
29724   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29725   ;;
29726 esac
29727 fi
29728 BrowseDelegate=$ac_cv_path_BrowseDelegate
29729 if test -n "$BrowseDelegate"; then
29730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29731 $as_echo "$BrowseDelegate" >&6; }
29732 else
29733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29735 fi
29736
29737
29738 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29739 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29741 $as_echo_n "checking for $ac_word... " >&6; }
29742 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29743   $as_echo_n "(cached) " >&6
29744 else
29745   case $CGMDecodeDelegate in
29746   [\\/]* | ?:[\\/]*)
29747   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29748   ;;
29749   *)
29750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29751 for as_dir in $PATH
29752 do
29753   IFS=$as_save_IFS
29754   test -z "$as_dir" && as_dir=.
29755     for ac_exec_ext in '' $ac_executable_extensions; do
29756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29757     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29759     break 2
29760   fi
29761 done
29762   done
29763 IFS=$as_save_IFS
29764
29765   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29766   ;;
29767 esac
29768 fi
29769 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29770 if test -n "$CGMDecodeDelegate"; then
29771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29772 $as_echo "$CGMDecodeDelegate" >&6; }
29773 else
29774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29775 $as_echo "no" >&6; }
29776 fi
29777
29778
29779 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29780 set dummy "$CatDelegateDefault"; ac_word=$2
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29782 $as_echo_n "checking for $ac_word... " >&6; }
29783 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29784   $as_echo_n "(cached) " >&6
29785 else
29786   case $CatDelegate in
29787   [\\/]* | ?:[\\/]*)
29788   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29789   ;;
29790   *)
29791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29792 for as_dir in $PATH
29793 do
29794   IFS=$as_save_IFS
29795   test -z "$as_dir" && as_dir=.
29796     for ac_exec_ext in '' $ac_executable_extensions; do
29797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29798     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29800     break 2
29801   fi
29802 done
29803   done
29804 IFS=$as_save_IFS
29805
29806   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29807   ;;
29808 esac
29809 fi
29810 CatDelegate=$ac_cv_path_CatDelegate
29811 if test -n "$CatDelegate"; then
29812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29813 $as_echo "$CatDelegate" >&6; }
29814 else
29815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816 $as_echo "no" >&6; }
29817 fi
29818
29819
29820 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29821 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29823 $as_echo_n "checking for $ac_word... " >&6; }
29824 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29825   $as_echo_n "(cached) " >&6
29826 else
29827   case $DNGDecodeDelegate in
29828   [\\/]* | ?:[\\/]*)
29829   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29830   ;;
29831   *)
29832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833 for as_dir in $PATH
29834 do
29835   IFS=$as_save_IFS
29836   test -z "$as_dir" && as_dir=.
29837     for ac_exec_ext in '' $ac_executable_extensions; do
29838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29839     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29841     break 2
29842   fi
29843 done
29844   done
29845 IFS=$as_save_IFS
29846
29847   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29848   ;;
29849 esac
29850 fi
29851 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29852 if test -n "$DNGDecodeDelegate"; then
29853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29854 $as_echo "$DNGDecodeDelegate" >&6; }
29855 else
29856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29857 $as_echo "no" >&6; }
29858 fi
29859
29860
29861 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29862 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29864 $as_echo_n "checking for $ac_word... " >&6; }
29865 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29866   $as_echo_n "(cached) " >&6
29867 else
29868   case $GVCDecodeDelegate in
29869   [\\/]* | ?:[\\/]*)
29870   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29871   ;;
29872   *)
29873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29874 for as_dir in $PATH
29875 do
29876   IFS=$as_save_IFS
29877   test -z "$as_dir" && as_dir=.
29878     for ac_exec_ext in '' $ac_executable_extensions; do
29879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29880     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29882     break 2
29883   fi
29884 done
29885   done
29886 IFS=$as_save_IFS
29887
29888   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29889   ;;
29890 esac
29891 fi
29892 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29893 if test -n "$GVCDecodeDelegate"; then
29894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29895 $as_echo "$GVCDecodeDelegate" >&6; }
29896 else
29897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29898 $as_echo "no" >&6; }
29899 fi
29900
29901
29902 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29903 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29905 $as_echo_n "checking for $ac_word... " >&6; }
29906 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29907   $as_echo_n "(cached) " >&6
29908 else
29909   case $DVIDecodeDelegate in
29910   [\\/]* | ?:[\\/]*)
29911   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29912   ;;
29913   *)
29914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915 for as_dir in $PATH
29916 do
29917   IFS=$as_save_IFS
29918   test -z "$as_dir" && as_dir=.
29919     for ac_exec_ext in '' $ac_executable_extensions; do
29920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29923     break 2
29924   fi
29925 done
29926   done
29927 IFS=$as_save_IFS
29928
29929   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29930   ;;
29931 esac
29932 fi
29933 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29934 if test -n "$DVIDecodeDelegate"; then
29935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29936 $as_echo "$DVIDecodeDelegate" >&6; }
29937 else
29938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940 fi
29941
29942
29943 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29944 set dummy "$EchoDelegateDefault"; ac_word=$2
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29946 $as_echo_n "checking for $ac_word... " >&6; }
29947 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29948   $as_echo_n "(cached) " >&6
29949 else
29950   case $EchoDelegate in
29951   [\\/]* | ?:[\\/]*)
29952   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29953   ;;
29954   *)
29955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956 for as_dir in $PATH
29957 do
29958   IFS=$as_save_IFS
29959   test -z "$as_dir" && as_dir=.
29960     for ac_exec_ext in '' $ac_executable_extensions; do
29961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29964     break 2
29965   fi
29966 done
29967   done
29968 IFS=$as_save_IFS
29969
29970   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29971   ;;
29972 esac
29973 fi
29974 EchoDelegate=$ac_cv_path_EchoDelegate
29975 if test -n "$EchoDelegate"; then
29976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29977 $as_echo "$EchoDelegate" >&6; }
29978 else
29979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29980 $as_echo "no" >&6; }
29981 fi
29982
29983
29984 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29985 set dummy "$EditorDelegateDefault"; ac_word=$2
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29987 $as_echo_n "checking for $ac_word... " >&6; }
29988 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29989   $as_echo_n "(cached) " >&6
29990 else
29991   case $EditorDelegate in
29992   [\\/]* | ?:[\\/]*)
29993   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29994   ;;
29995   *)
29996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997 for as_dir in $PATH
29998 do
29999   IFS=$as_save_IFS
30000   test -z "$as_dir" && as_dir=.
30001     for ac_exec_ext in '' $ac_executable_extensions; do
30002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30003     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30005     break 2
30006   fi
30007 done
30008   done
30009 IFS=$as_save_IFS
30010
30011   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30012   ;;
30013 esac
30014 fi
30015 EditorDelegate=$ac_cv_path_EditorDelegate
30016 if test -n "$EditorDelegate"; then
30017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30018 $as_echo "$EditorDelegate" >&6; }
30019 else
30020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30021 $as_echo "no" >&6; }
30022 fi
30023
30024
30025 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30026 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30028 $as_echo_n "checking for $ac_word... " >&6; }
30029 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30030   $as_echo_n "(cached) " >&6
30031 else
30032   case $FIGDecodeDelegate in
30033   [\\/]* | ?:[\\/]*)
30034   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30035   ;;
30036   *)
30037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30038 for as_dir in $PATH
30039 do
30040   IFS=$as_save_IFS
30041   test -z "$as_dir" && as_dir=.
30042     for ac_exec_ext in '' $ac_executable_extensions; do
30043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30044     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30046     break 2
30047   fi
30048 done
30049   done
30050 IFS=$as_save_IFS
30051
30052   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30053   ;;
30054 esac
30055 fi
30056 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30057 if test -n "$FIGDecodeDelegate"; then
30058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30059 $as_echo "$FIGDecodeDelegate" >&6; }
30060 else
30061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30062 $as_echo "no" >&6; }
30063 fi
30064
30065
30066 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30067 set dummy "$ConvertDelegateDefault"; ac_word=$2
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30069 $as_echo_n "checking for $ac_word... " >&6; }
30070 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30071   $as_echo_n "(cached) " >&6
30072 else
30073   case $ConvertDelegate in
30074   [\\/]* | ?:[\\/]*)
30075   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30076   ;;
30077   *)
30078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079 for as_dir in $PATH
30080 do
30081   IFS=$as_save_IFS
30082   test -z "$as_dir" && as_dir=.
30083     for ac_exec_ext in '' $ac_executable_extensions; do
30084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30085     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30087     break 2
30088   fi
30089 done
30090   done
30091 IFS=$as_save_IFS
30092
30093   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30094   ;;
30095 esac
30096 fi
30097 ConvertDelegate=$ac_cv_path_ConvertDelegate
30098 if test -n "$ConvertDelegate"; then
30099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30100 $as_echo "$ConvertDelegate" >&6; }
30101 else
30102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30103 $as_echo "no" >&6; }
30104 fi
30105
30106
30107 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30108 set dummy "$DisplayDelegateDefault"; ac_word=$2
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30110 $as_echo_n "checking for $ac_word... " >&6; }
30111 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30112   $as_echo_n "(cached) " >&6
30113 else
30114   case $DisplayDelegate in
30115   [\\/]* | ?:[\\/]*)
30116   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30117   ;;
30118   *)
30119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120 for as_dir in $PATH
30121 do
30122   IFS=$as_save_IFS
30123   test -z "$as_dir" && as_dir=.
30124     for ac_exec_ext in '' $ac_executable_extensions; do
30125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30128     break 2
30129   fi
30130 done
30131   done
30132 IFS=$as_save_IFS
30133
30134   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30135   ;;
30136 esac
30137 fi
30138 DisplayDelegate=$ac_cv_path_DisplayDelegate
30139 if test -n "$DisplayDelegate"; then
30140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30141 $as_echo "$DisplayDelegate" >&6; }
30142 else
30143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30144 $as_echo "no" >&6; }
30145 fi
30146
30147
30148 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30149 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30151 $as_echo_n "checking for $ac_word... " >&6; }
30152 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30153   $as_echo_n "(cached) " >&6
30154 else
30155   case $MogrifyDelegate in
30156   [\\/]* | ?:[\\/]*)
30157   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30158   ;;
30159   *)
30160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161 for as_dir in $PATH
30162 do
30163   IFS=$as_save_IFS
30164   test -z "$as_dir" && as_dir=.
30165     for ac_exec_ext in '' $ac_executable_extensions; do
30166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30169     break 2
30170   fi
30171 done
30172   done
30173 IFS=$as_save_IFS
30174
30175   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30176   ;;
30177 esac
30178 fi
30179 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30180 if test -n "$MogrifyDelegate"; then
30181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30182 $as_echo "$MogrifyDelegate" >&6; }
30183 else
30184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30185 $as_echo "no" >&6; }
30186 fi
30187
30188
30189 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30190 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30192 $as_echo_n "checking for $ac_word... " >&6; }
30193 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30194   $as_echo_n "(cached) " >&6
30195 else
30196   case $GnuplotDecodeDelegate in
30197   [\\/]* | ?:[\\/]*)
30198   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30199   ;;
30200   *)
30201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30202 for as_dir in $PATH
30203 do
30204   IFS=$as_save_IFS
30205   test -z "$as_dir" && as_dir=.
30206     for ac_exec_ext in '' $ac_executable_extensions; do
30207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30208     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30210     break 2
30211   fi
30212 done
30213   done
30214 IFS=$as_save_IFS
30215
30216   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30217   ;;
30218 esac
30219 fi
30220 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30221 if test -n "$GnuplotDecodeDelegate"; then
30222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30223 $as_echo "$GnuplotDecodeDelegate" >&6; }
30224 else
30225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30226 $as_echo "no" >&6; }
30227 fi
30228
30229
30230 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30231 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30233 $as_echo_n "checking for $ac_word... " >&6; }
30234 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30235   $as_echo_n "(cached) " >&6
30236 else
30237   case $HDRDecodeDelegate in
30238   [\\/]* | ?:[\\/]*)
30239   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30240   ;;
30241   *)
30242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243 for as_dir in $PATH
30244 do
30245   IFS=$as_save_IFS
30246   test -z "$as_dir" && as_dir=.
30247     for ac_exec_ext in '' $ac_executable_extensions; do
30248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30249     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30251     break 2
30252   fi
30253 done
30254   done
30255 IFS=$as_save_IFS
30256
30257   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30258   ;;
30259 esac
30260 fi
30261 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30262 if test -n "$HDRDecodeDelegate"; then
30263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30264 $as_echo "$HDRDecodeDelegate" >&6; }
30265 else
30266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30268 fi
30269
30270
30271 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30272 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30274 $as_echo_n "checking for $ac_word... " >&6; }
30275 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30276   $as_echo_n "(cached) " >&6
30277 else
30278   case $HPGLDecodeDelegate in
30279   [\\/]* | ?:[\\/]*)
30280   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30281   ;;
30282   *)
30283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30284 for as_dir in $PATH
30285 do
30286   IFS=$as_save_IFS
30287   test -z "$as_dir" && as_dir=.
30288     for ac_exec_ext in '' $ac_executable_extensions; do
30289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30292     break 2
30293   fi
30294 done
30295   done
30296 IFS=$as_save_IFS
30297
30298   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30299   ;;
30300 esac
30301 fi
30302 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30303 if test -n "$HPGLDecodeDelegate"; then
30304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30305 $as_echo "$HPGLDecodeDelegate" >&6; }
30306 else
30307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30308 $as_echo "no" >&6; }
30309 fi
30310
30311
30312 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30313 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30315 $as_echo_n "checking for $ac_word... " >&6; }
30316 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30317   $as_echo_n "(cached) " >&6
30318 else
30319   case $HTMLDecodeDelegate in
30320   [\\/]* | ?:[\\/]*)
30321   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30322   ;;
30323   *)
30324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30325 for as_dir in $PATH
30326 do
30327   IFS=$as_save_IFS
30328   test -z "$as_dir" && as_dir=.
30329     for ac_exec_ext in '' $ac_executable_extensions; do
30330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30331     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30333     break 2
30334   fi
30335 done
30336   done
30337 IFS=$as_save_IFS
30338
30339   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30340   ;;
30341 esac
30342 fi
30343 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30344 if test -n "$HTMLDecodeDelegate"; then
30345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30346 $as_echo "$HTMLDecodeDelegate" >&6; }
30347 else
30348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349 $as_echo "no" >&6; }
30350 fi
30351
30352
30353 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30354 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30356 $as_echo_n "checking for $ac_word... " >&6; }
30357 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30358   $as_echo_n "(cached) " >&6
30359 else
30360   case $ILBMDecodeDelegate in
30361   [\\/]* | ?:[\\/]*)
30362   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30363   ;;
30364   *)
30365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366 for as_dir in $PATH
30367 do
30368   IFS=$as_save_IFS
30369   test -z "$as_dir" && as_dir=.
30370     for ac_exec_ext in '' $ac_executable_extensions; do
30371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30374     break 2
30375   fi
30376 done
30377   done
30378 IFS=$as_save_IFS
30379
30380   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30381   ;;
30382 esac
30383 fi
30384 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30385 if test -n "$ILBMDecodeDelegate"; then
30386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30387 $as_echo "$ILBMDecodeDelegate" >&6; }
30388 else
30389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }
30391 fi
30392
30393
30394 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30395 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30397 $as_echo_n "checking for $ac_word... " >&6; }
30398 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30399   $as_echo_n "(cached) " >&6
30400 else
30401   case $ILBMEncodeDelegate in
30402   [\\/]* | ?:[\\/]*)
30403   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30404   ;;
30405   *)
30406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30407 for as_dir in $PATH
30408 do
30409   IFS=$as_save_IFS
30410   test -z "$as_dir" && as_dir=.
30411     for ac_exec_ext in '' $ac_executable_extensions; do
30412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30415     break 2
30416   fi
30417 done
30418   done
30419 IFS=$as_save_IFS
30420
30421   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30422   ;;
30423 esac
30424 fi
30425 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30426 if test -n "$ILBMEncodeDelegate"; then
30427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30428 $as_echo "$ILBMEncodeDelegate" >&6; }
30429 else
30430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30431 $as_echo "no" >&6; }
30432 fi
30433
30434
30435 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30436 set dummy "$LPDelegateDefault"; ac_word=$2
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30438 $as_echo_n "checking for $ac_word... " >&6; }
30439 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30440   $as_echo_n "(cached) " >&6
30441 else
30442   case $LPDelegate in
30443   [\\/]* | ?:[\\/]*)
30444   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30445   ;;
30446   *)
30447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30448 for as_dir in $PATH
30449 do
30450   IFS=$as_save_IFS
30451   test -z "$as_dir" && as_dir=.
30452     for ac_exec_ext in '' $ac_executable_extensions; do
30453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30454     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30456     break 2
30457   fi
30458 done
30459   done
30460 IFS=$as_save_IFS
30461
30462   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30463   ;;
30464 esac
30465 fi
30466 LPDelegate=$ac_cv_path_LPDelegate
30467 if test -n "$LPDelegate"; then
30468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30469 $as_echo "$LPDelegate" >&6; }
30470 else
30471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30472 $as_echo "no" >&6; }
30473 fi
30474
30475
30476 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30477 set dummy "$LPRDelegateDefault"; ac_word=$2
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30479 $as_echo_n "checking for $ac_word... " >&6; }
30480 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30481   $as_echo_n "(cached) " >&6
30482 else
30483   case $LPRDelegate in
30484   [\\/]* | ?:[\\/]*)
30485   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30486   ;;
30487   *)
30488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30489 for as_dir in $PATH
30490 do
30491   IFS=$as_save_IFS
30492   test -z "$as_dir" && as_dir=.
30493     for ac_exec_ext in '' $ac_executable_extensions; do
30494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30495     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30497     break 2
30498   fi
30499 done
30500   done
30501 IFS=$as_save_IFS
30502
30503   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30504   ;;
30505 esac
30506 fi
30507 LPRDelegate=$ac_cv_path_LPRDelegate
30508 if test -n "$LPRDelegate"; then
30509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30510 $as_echo "$LPRDelegate" >&6; }
30511 else
30512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30513 $as_echo "no" >&6; }
30514 fi
30515
30516
30517 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30518 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30520 $as_echo_n "checking for $ac_word... " >&6; }
30521 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30522   $as_echo_n "(cached) " >&6
30523 else
30524   case $LZWDecodeDelegate in
30525   [\\/]* | ?:[\\/]*)
30526   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30527   ;;
30528   *)
30529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530 for as_dir in $PATH
30531 do
30532   IFS=$as_save_IFS
30533   test -z "$as_dir" && as_dir=.
30534     for ac_exec_ext in '' $ac_executable_extensions; do
30535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30538     break 2
30539   fi
30540 done
30541   done
30542 IFS=$as_save_IFS
30543
30544   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30545   ;;
30546 esac
30547 fi
30548 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30549 if test -n "$LZWDecodeDelegate"; then
30550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30551 $as_echo "$LZWDecodeDelegate" >&6; }
30552 else
30553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30554 $as_echo "no" >&6; }
30555 fi
30556
30557
30558 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30559 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30561 $as_echo_n "checking for $ac_word... " >&6; }
30562 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30563   $as_echo_n "(cached) " >&6
30564 else
30565   case $LZWEncodeDelegate in
30566   [\\/]* | ?:[\\/]*)
30567   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30568   ;;
30569   *)
30570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571 for as_dir in $PATH
30572 do
30573   IFS=$as_save_IFS
30574   test -z "$as_dir" && as_dir=.
30575     for ac_exec_ext in '' $ac_executable_extensions; do
30576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30577     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30579     break 2
30580   fi
30581 done
30582   done
30583 IFS=$as_save_IFS
30584
30585   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30586   ;;
30587 esac
30588 fi
30589 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30590 if test -n "$LZWEncodeDelegate"; then
30591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30592 $as_echo "$LZWEncodeDelegate" >&6; }
30593 else
30594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595 $as_echo "no" >&6; }
30596 fi
30597
30598
30599 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30600 set dummy "$LaunchDelegateDefault"; ac_word=$2
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30602 $as_echo_n "checking for $ac_word... " >&6; }
30603 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30604   $as_echo_n "(cached) " >&6
30605 else
30606   case $LaunchDelegate in
30607   [\\/]* | ?:[\\/]*)
30608   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30609   ;;
30610   *)
30611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30612 for as_dir in $PATH
30613 do
30614   IFS=$as_save_IFS
30615   test -z "$as_dir" && as_dir=.
30616     for ac_exec_ext in '' $ac_executable_extensions; do
30617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30618     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30620     break 2
30621   fi
30622 done
30623   done
30624 IFS=$as_save_IFS
30625
30626   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30627   ;;
30628 esac
30629 fi
30630 LaunchDelegate=$ac_cv_path_LaunchDelegate
30631 if test -n "$LaunchDelegate"; then
30632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30633 $as_echo "$LaunchDelegate" >&6; }
30634 else
30635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 $as_echo "no" >&6; }
30637 fi
30638
30639
30640 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30641 set dummy "$MANDelegateDefault"; ac_word=$2
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30643 $as_echo_n "checking for $ac_word... " >&6; }
30644 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30645   $as_echo_n "(cached) " >&6
30646 else
30647   case $MANDelegate in
30648   [\\/]* | ?:[\\/]*)
30649   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30650   ;;
30651   *)
30652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653 for as_dir in $PATH
30654 do
30655   IFS=$as_save_IFS
30656   test -z "$as_dir" && as_dir=.
30657     for ac_exec_ext in '' $ac_executable_extensions; do
30658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30659     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30661     break 2
30662   fi
30663 done
30664   done
30665 IFS=$as_save_IFS
30666
30667   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30668   ;;
30669 esac
30670 fi
30671 MANDelegate=$ac_cv_path_MANDelegate
30672 if test -n "$MANDelegate"; then
30673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30674 $as_echo "$MANDelegate" >&6; }
30675 else
30676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677 $as_echo "no" >&6; }
30678 fi
30679
30680
30681 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30682 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30684 $as_echo_n "checking for $ac_word... " >&6; }
30685 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30686   $as_echo_n "(cached) " >&6
30687 else
30688   case $MPEGDecodeDelegate in
30689   [\\/]* | ?:[\\/]*)
30690   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30691   ;;
30692   *)
30693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694 for as_dir in $PATH
30695 do
30696   IFS=$as_save_IFS
30697   test -z "$as_dir" && as_dir=.
30698     for ac_exec_ext in '' $ac_executable_extensions; do
30699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30702     break 2
30703   fi
30704 done
30705   done
30706 IFS=$as_save_IFS
30707
30708   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30709   ;;
30710 esac
30711 fi
30712 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30713 if test -n "$MPEGDecodeDelegate"; then
30714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30715 $as_echo "$MPEGDecodeDelegate" >&6; }
30716 else
30717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 $as_echo "no" >&6; }
30719 fi
30720
30721
30722 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30723 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30725 $as_echo_n "checking for $ac_word... " >&6; }
30726 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30727   $as_echo_n "(cached) " >&6
30728 else
30729   case $MPEGEncodeDelegate in
30730   [\\/]* | ?:[\\/]*)
30731   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30732   ;;
30733   *)
30734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735 for as_dir in $PATH
30736 do
30737   IFS=$as_save_IFS
30738   test -z "$as_dir" && as_dir=.
30739     for ac_exec_ext in '' $ac_executable_extensions; do
30740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30743     break 2
30744   fi
30745 done
30746   done
30747 IFS=$as_save_IFS
30748
30749   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30750   ;;
30751 esac
30752 fi
30753 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30754 if test -n "$MPEGEncodeDelegate"; then
30755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30756 $as_echo "$MPEGEncodeDelegate" >&6; }
30757 else
30758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30759 $as_echo "no" >&6; }
30760 fi
30761
30762
30763 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30764 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30766 $as_echo_n "checking for $ac_word... " >&6; }
30767 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30768   $as_echo_n "(cached) " >&6
30769 else
30770   case $MrSIDDecodeDelegate in
30771   [\\/]* | ?:[\\/]*)
30772   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30773   ;;
30774   *)
30775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776 for as_dir in $PATH
30777 do
30778   IFS=$as_save_IFS
30779   test -z "$as_dir" && as_dir=.
30780     for ac_exec_ext in '' $ac_executable_extensions; do
30781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30784     break 2
30785   fi
30786 done
30787   done
30788 IFS=$as_save_IFS
30789
30790   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30791   ;;
30792 esac
30793 fi
30794 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30795 if test -n "$MrSIDDecodeDelegate"; then
30796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30797 $as_echo "$MrSIDDecodeDelegate" >&6; }
30798 else
30799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30800 $as_echo "no" >&6; }
30801 fi
30802
30803
30804 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30805 set dummy "$MVDelegateDefault"; ac_word=$2
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30807 $as_echo_n "checking for $ac_word... " >&6; }
30808 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30809   $as_echo_n "(cached) " >&6
30810 else
30811   case $MVDelegate in
30812   [\\/]* | ?:[\\/]*)
30813   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30814   ;;
30815   *)
30816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817 for as_dir in $PATH
30818 do
30819   IFS=$as_save_IFS
30820   test -z "$as_dir" && as_dir=.
30821     for ac_exec_ext in '' $ac_executable_extensions; do
30822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30825     break 2
30826   fi
30827 done
30828   done
30829 IFS=$as_save_IFS
30830
30831   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30832   ;;
30833 esac
30834 fi
30835 MVDelegate=$ac_cv_path_MVDelegate
30836 if test -n "$MVDelegate"; then
30837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30838 $as_echo "$MVDelegate" >&6; }
30839 else
30840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841 $as_echo "no" >&6; }
30842 fi
30843
30844
30845 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30846 set dummy "$PCLDelegateDefault"; ac_word=$2
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30848 $as_echo_n "checking for $ac_word... " >&6; }
30849 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30850   $as_echo_n "(cached) " >&6
30851 else
30852   case $PCLDelegate in
30853   [\\/]* | ?:[\\/]*)
30854   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30855   ;;
30856   *)
30857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858 for as_dir in $PATH
30859 do
30860   IFS=$as_save_IFS
30861   test -z "$as_dir" && as_dir=.
30862     for ac_exec_ext in '' $ac_executable_extensions; do
30863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30866     break 2
30867   fi
30868 done
30869   done
30870 IFS=$as_save_IFS
30871
30872   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30873   ;;
30874 esac
30875 fi
30876 PCLDelegate=$ac_cv_path_PCLDelegate
30877 if test -n "$PCLDelegate"; then
30878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30879 $as_echo "$PCLDelegate" >&6; }
30880 else
30881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30882 $as_echo "no" >&6; }
30883 fi
30884
30885
30886 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30887 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30889 $as_echo_n "checking for $ac_word... " >&6; }
30890 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30891   $as_echo_n "(cached) " >&6
30892 else
30893   case $PGPDecodeDelegate in
30894   [\\/]* | ?:[\\/]*)
30895   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30896   ;;
30897   *)
30898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899 for as_dir in $PATH
30900 do
30901   IFS=$as_save_IFS
30902   test -z "$as_dir" && as_dir=.
30903     for ac_exec_ext in '' $ac_executable_extensions; do
30904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30905     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30907     break 2
30908   fi
30909 done
30910   done
30911 IFS=$as_save_IFS
30912
30913   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30914   ;;
30915 esac
30916 fi
30917 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30918 if test -n "$PGPDecodeDelegate"; then
30919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30920 $as_echo "$PGPDecodeDelegate" >&6; }
30921 else
30922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923 $as_echo "no" >&6; }
30924 fi
30925
30926
30927 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30928 set dummy "$POVDelegateDefault"; ac_word=$2
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30930 $as_echo_n "checking for $ac_word... " >&6; }
30931 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30932   $as_echo_n "(cached) " >&6
30933 else
30934   case $POVDelegate in
30935   [\\/]* | ?:[\\/]*)
30936   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30937   ;;
30938   *)
30939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30940 for as_dir in $PATH
30941 do
30942   IFS=$as_save_IFS
30943   test -z "$as_dir" && as_dir=.
30944     for ac_exec_ext in '' $ac_executable_extensions; do
30945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30946     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30948     break 2
30949   fi
30950 done
30951   done
30952 IFS=$as_save_IFS
30953
30954   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30955   ;;
30956 esac
30957 fi
30958 POVDelegate=$ac_cv_path_POVDelegate
30959 if test -n "$POVDelegate"; then
30960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30961 $as_echo "$POVDelegate" >&6; }
30962 else
30963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30964 $as_echo "no" >&6; }
30965 fi
30966
30967
30968 for ac_prog in gsx gsc "$PSDelegateDefault"
30969 do
30970   # Extract the first word of "$ac_prog", so it can be a program name with args.
30971 set dummy $ac_prog; ac_word=$2
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30973 $as_echo_n "checking for $ac_word... " >&6; }
30974 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30975   $as_echo_n "(cached) " >&6
30976 else
30977   case $PSDelegate in
30978   [\\/]* | ?:[\\/]*)
30979   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30980   ;;
30981   *)
30982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30983 for as_dir in $PATH
30984 do
30985   IFS=$as_save_IFS
30986   test -z "$as_dir" && as_dir=.
30987     for ac_exec_ext in '' $ac_executable_extensions; do
30988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30989     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30991     break 2
30992   fi
30993 done
30994   done
30995 IFS=$as_save_IFS
30996
30997   ;;
30998 esac
30999 fi
31000 PSDelegate=$ac_cv_path_PSDelegate
31001 if test -n "$PSDelegate"; then
31002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31003 $as_echo "$PSDelegate" >&6; }
31004 else
31005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31006 $as_echo "no" >&6; }
31007 fi
31008
31009
31010   test -n "$PSDelegate" && break
31011 done
31012 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31013
31014 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31015 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31017 $as_echo_n "checking for $ac_word... " >&6; }
31018 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31019   $as_echo_n "(cached) " >&6
31020 else
31021   case $RLEEncodeDelegate in
31022   [\\/]* | ?:[\\/]*)
31023   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31024   ;;
31025   *)
31026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31027 for as_dir in $PATH
31028 do
31029   IFS=$as_save_IFS
31030   test -z "$as_dir" && as_dir=.
31031     for ac_exec_ext in '' $ac_executable_extensions; do
31032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31033     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31035     break 2
31036   fi
31037 done
31038   done
31039 IFS=$as_save_IFS
31040
31041   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31042   ;;
31043 esac
31044 fi
31045 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31046 if test -n "$RLEEncodeDelegate"; then
31047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31048 $as_echo "$RLEEncodeDelegate" >&6; }
31049 else
31050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31051 $as_echo "no" >&6; }
31052 fi
31053
31054
31055 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31056 set dummy "$RMDelegateDefault"; ac_word=$2
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31058 $as_echo_n "checking for $ac_word... " >&6; }
31059 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31060   $as_echo_n "(cached) " >&6
31061 else
31062   case $RMDelegate in
31063   [\\/]* | ?:[\\/]*)
31064   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31065   ;;
31066   *)
31067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31068 for as_dir in $PATH
31069 do
31070   IFS=$as_save_IFS
31071   test -z "$as_dir" && as_dir=.
31072     for ac_exec_ext in '' $ac_executable_extensions; do
31073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31074     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31076     break 2
31077   fi
31078 done
31079   done
31080 IFS=$as_save_IFS
31081
31082   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31083   ;;
31084 esac
31085 fi
31086 RMDelegate=$ac_cv_path_RMDelegate
31087 if test -n "$RMDelegate"; then
31088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31089 $as_echo "$RMDelegate" >&6; }
31090 else
31091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31092 $as_echo "no" >&6; }
31093 fi
31094
31095
31096 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31097 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31099 $as_echo_n "checking for $ac_word... " >&6; }
31100 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31101   $as_echo_n "(cached) " >&6
31102 else
31103   case $RSVGDecodeDelegate in
31104   [\\/]* | ?:[\\/]*)
31105   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31106   ;;
31107   *)
31108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31109 for as_dir in $PATH
31110 do
31111   IFS=$as_save_IFS
31112   test -z "$as_dir" && as_dir=.
31113     for ac_exec_ext in '' $ac_executable_extensions; do
31114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31115     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31117     break 2
31118   fi
31119 done
31120   done
31121 IFS=$as_save_IFS
31122
31123   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31124   ;;
31125 esac
31126 fi
31127 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31128 if test -n "$RSVGDecodeDelegate"; then
31129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31130 $as_echo "$RSVGDecodeDelegate" >&6; }
31131 else
31132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31133 $as_echo "no" >&6; }
31134 fi
31135
31136
31137 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31138 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31140 $as_echo_n "checking for $ac_word... " >&6; }
31141 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31142   $as_echo_n "(cached) " >&6
31143 else
31144   case $SCANDecodeDelegate in
31145   [\\/]* | ?:[\\/]*)
31146   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31147   ;;
31148   *)
31149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31150 for as_dir in $PATH
31151 do
31152   IFS=$as_save_IFS
31153   test -z "$as_dir" && as_dir=.
31154     for ac_exec_ext in '' $ac_executable_extensions; do
31155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31156     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31158     break 2
31159   fi
31160 done
31161   done
31162 IFS=$as_save_IFS
31163
31164   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31165   ;;
31166 esac
31167 fi
31168 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31169 if test -n "$SCANDecodeDelegate"; then
31170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31171 $as_echo "$SCANDecodeDelegate" >&6; }
31172 else
31173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31175 fi
31176
31177
31178 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31179 set dummy "$TXTDelegateDefault"; ac_word=$2
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31181 $as_echo_n "checking for $ac_word... " >&6; }
31182 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31183   $as_echo_n "(cached) " >&6
31184 else
31185   case $TXTDelegate in
31186   [\\/]* | ?:[\\/]*)
31187   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31188   ;;
31189   *)
31190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31191 for as_dir in $PATH
31192 do
31193   IFS=$as_save_IFS
31194   test -z "$as_dir" && as_dir=.
31195     for ac_exec_ext in '' $ac_executable_extensions; do
31196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31197     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31199     break 2
31200   fi
31201 done
31202   done
31203 IFS=$as_save_IFS
31204
31205   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31206   ;;
31207 esac
31208 fi
31209 TXTDelegate=$ac_cv_path_TXTDelegate
31210 if test -n "$TXTDelegate"; then
31211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31212 $as_echo "$TXTDelegate" >&6; }
31213 else
31214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31216 fi
31217
31218
31219 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31220 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31222 $as_echo_n "checking for $ac_word... " >&6; }
31223 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31224   $as_echo_n "(cached) " >&6
31225 else
31226   case $UniconvertorDelegate in
31227   [\\/]* | ?:[\\/]*)
31228   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31229   ;;
31230   *)
31231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232 for as_dir in $PATH
31233 do
31234   IFS=$as_save_IFS
31235   test -z "$as_dir" && as_dir=.
31236     for ac_exec_ext in '' $ac_executable_extensions; do
31237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31238     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31240     break 2
31241   fi
31242 done
31243   done
31244 IFS=$as_save_IFS
31245
31246   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31247   ;;
31248 esac
31249 fi
31250 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31251 if test -n "$UniconvertorDelegate"; then
31252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31253 $as_echo "$UniconvertorDelegate" >&6; }
31254 else
31255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256 $as_echo "no" >&6; }
31257 fi
31258
31259
31260 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31261 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31263 $as_echo_n "checking for $ac_word... " >&6; }
31264 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31265   $as_echo_n "(cached) " >&6
31266 else
31267   case $WMFDecodeDelegate in
31268   [\\/]* | ?:[\\/]*)
31269   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31270   ;;
31271   *)
31272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273 for as_dir in $PATH
31274 do
31275   IFS=$as_save_IFS
31276   test -z "$as_dir" && as_dir=.
31277     for ac_exec_ext in '' $ac_executable_extensions; do
31278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31279     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31281     break 2
31282   fi
31283 done
31284   done
31285 IFS=$as_save_IFS
31286
31287   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31288   ;;
31289 esac
31290 fi
31291 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31292 if test -n "$WMFDecodeDelegate"; then
31293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31294 $as_echo "$WMFDecodeDelegate" >&6; }
31295 else
31296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31297 $as_echo "no" >&6; }
31298 fi
31299
31300
31301 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31302 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31304 $as_echo_n "checking for $ac_word... " >&6; }
31305 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31306   $as_echo_n "(cached) " >&6
31307 else
31308   case $WWWDecodeDelegate in
31309   [\\/]* | ?:[\\/]*)
31310   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31311   ;;
31312   *)
31313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31314 for as_dir in $PATH
31315 do
31316   IFS=$as_save_IFS
31317   test -z "$as_dir" && as_dir=.
31318     for ac_exec_ext in '' $ac_executable_extensions; do
31319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31320     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31322     break 2
31323   fi
31324 done
31325   done
31326 IFS=$as_save_IFS
31327
31328   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31329   ;;
31330 esac
31331 fi
31332 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31333 if test -n "$WWWDecodeDelegate"; then
31334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31335 $as_echo "$WWWDecodeDelegate" >&6; }
31336 else
31337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 $as_echo "no" >&6; }
31339 fi
31340
31341
31342 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31343 set dummy "$XPSDelegateDefault"; ac_word=$2
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31345 $as_echo_n "checking for $ac_word... " >&6; }
31346 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31347   $as_echo_n "(cached) " >&6
31348 else
31349   case $XPSDelegate in
31350   [\\/]* | ?:[\\/]*)
31351   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31352   ;;
31353   *)
31354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31355 for as_dir in $PATH
31356 do
31357   IFS=$as_save_IFS
31358   test -z "$as_dir" && as_dir=.
31359     for ac_exec_ext in '' $ac_executable_extensions; do
31360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31361     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31363     break 2
31364   fi
31365 done
31366   done
31367 IFS=$as_save_IFS
31368
31369   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31370   ;;
31371 esac
31372 fi
31373 XPSDelegate=$ac_cv_path_XPSDelegate
31374 if test -n "$XPSDelegate"; then
31375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31376 $as_echo "$XPSDelegate" >&6; }
31377 else
31378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379 $as_echo "no" >&6; }
31380 fi
31381
31382
31383 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31384 set dummy "$ZipDelegateDefault"; ac_word=$2
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31386 $as_echo_n "checking for $ac_word... " >&6; }
31387 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31388   $as_echo_n "(cached) " >&6
31389 else
31390   case $ZipDelegate in
31391   [\\/]* | ?:[\\/]*)
31392   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31393   ;;
31394   *)
31395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396 for as_dir in $PATH
31397 do
31398   IFS=$as_save_IFS
31399   test -z "$as_dir" && as_dir=.
31400     for ac_exec_ext in '' $ac_executable_extensions; do
31401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31404     break 2
31405   fi
31406 done
31407   done
31408 IFS=$as_save_IFS
31409
31410   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31411   ;;
31412 esac
31413 fi
31414 ZipDelegate=$ac_cv_path_ZipDelegate
31415 if test -n "$ZipDelegate"; then
31416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31417 $as_echo "$ZipDelegate" >&6; }
31418 else
31419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31420 $as_echo "no" >&6; }
31421 fi
31422
31423
31424
31425 # Prefer lpr to lp; lp needs options tacked on.
31426 if test "$LPRDelegate" != no; then
31427     PrintDelegate="$LPRDelegate"
31428 else
31429     PrintDelegate="$LPDelegate -c -s"
31430 fi
31431
31432
31433 # Installed ImageMagick utiltity paths
31434 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31435 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31436 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31437
31438 # Set delegate booleans
31439 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31440 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31441 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31442 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31443 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31444 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31445 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31446 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31447 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31448 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31449 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31450 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31451
31452 #
31453 # Test for font directories
31454 #
31455 type_include_files=''
31456
31457 # Dejavu fonts.
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31459 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31460 dejavu_font_dir=''
31461 if test "${with_dejavu_font_dir}" != 'default'; then
31462   dejavu_font_dir="${with_dejavu_font_dir}/"
31463 else
31464   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31465     if test -f "${font_dir}DejaVuSerif.ttf"; then
31466       dejavu_font_dir="${font_dir}"
31467       break 1
31468     fi
31469   done
31470 fi
31471 if test "${dejavu_font_dir}x" != 'x'; then
31472   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31474 $as_echo "$dejavu_font_dir" >&6; }
31475 else
31476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31477 $as_echo "not found!" >&6; };
31478 fi
31479
31480
31481 # Windows
31482 windows_font_dir=''
31483 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31484    windows_font_dir="${with_windows_font_dir}/"
31485 fi
31486 if test "${windows_font_dir}x" != 'x'; then
31487     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31488       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31489     fi
31490     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31491       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31492     fi
31493     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31494       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31495     fi
31496 fi
31497 if test "${windows_font_dir}x" != 'x'; then
31498   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31499 fi
31500
31501
31502 # Ghostscript
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31504 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31505 ghostscript_font_dir=''
31506 if test "${with_gs_font_dir}" != 'default'; then
31507   ghostscript_font_dir="${with_gs_font_dir}/"
31508 else
31509   if test "${native_win32_build}" = 'yes'; then
31510     # Native Windows Build
31511     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31512       if test -f "${font_dir}a010013l.pfb"; then
31513         ghostscript_font_dir="$font_dir"
31514         break 1
31515       fi
31516     done
31517     if test "${PSDelegate}" != 'gswin32c'; then
31518       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31519     fi
31520   else
31521     # Linux / Mac OS X / Unix Build
31522     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
31523       if test -f "${font_dir}a010013l.pfb"; then
31524         ghostscript_font_dir="${font_dir}"
31525         break 1
31526       fi
31527     done
31528     if test "${ghostscript_font_dir}x" = 'x'; then
31529       if test "$PSDelegate" != 'gs'; then
31530         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31531       fi
31532     fi
31533   fi
31534 fi
31535 if test "${ghostscript_font_dir}x" != 'x'; then
31536   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31538 $as_echo "$ghostscript_font_dir" >&6; }
31539 else
31540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31541 $as_echo "not found!" >&6; };
31542 fi
31543
31544 case "${build_os}" in
31545   mingw* )
31546     PSDelegate=`$WinPathScript "$PSDelegate" 1`
31547     ;;
31548 esac
31549
31550
31551
31552 #
31553 # Handle case where user doesn't want frozen paths
31554 #
31555 if test "$with_frozenpaths" != 'yes'; then
31556   # Re-set delegate definitions to default (no paths)
31557   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31558   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31559   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31560   BZIPDelegate="$BZIPDelegateDefault"
31561   BrowseDelegate="$BrowseDelegateDefault"
31562   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31563   CatDelegate="$CatDelegateDefault"
31564   ConvertDelegate="$ConvertDelegateDefault"
31565   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31566   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31567   EchoDelegate="$EchoDelegateDefault"
31568   EditorDelegate="$EditorDelegateDefault"
31569   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31570   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31571   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31572   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31573   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31574   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31575   LPDelegate="$LPDelegateDefault"
31576   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31577   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31578   LaunchDelegate="$LaunchDelegateDefault"
31579   MANDelegate="$MANDelegateDefault"
31580   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31581   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31582   MogrifyDelegate="$MogrifyDelegateDefault"
31583   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31584   MVDelegate="$MVDelegateDefault"
31585   PCLDelegate="$PCLDelegateDefault"
31586   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31587   POVDelegate="$POVDelegateDefault"
31588   PSDelegate="$PSDelegateDefault"
31589   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31590   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31591   RMDelegate="$RMDelegateDefault"
31592   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31593   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31594   ShowImageDelegate="$ShowImageDelegateDefault"
31595   TXTDelegate="$TXTDelegateDefault"
31596   UniconvertorDelegate="$UniconvertorDelegateDefault"
31597   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31598   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31599   XPSDelegate="$XPSDelegateDefault"
31600   ZipDelegate="$ZipDelegateDefault"
31601 fi
31602
31603 # Delegate substitutions
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648 #
31649 # RPM support.
31650 #
31651 RPM=''
31652 for ac_prog in gnutar gtar tar
31653 do
31654   # Extract the first word of "$ac_prog", so it can be a program name with args.
31655 set dummy $ac_prog; ac_word=$2
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31657 $as_echo_n "checking for $ac_word... " >&6; }
31658 if test "${ac_cv_prog_TAR+set}" = set; then :
31659   $as_echo_n "(cached) " >&6
31660 else
31661   if test -n "$TAR"; then
31662   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31663 else
31664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31665 for as_dir in $PATH
31666 do
31667   IFS=$as_save_IFS
31668   test -z "$as_dir" && as_dir=.
31669     for ac_exec_ext in '' $ac_executable_extensions; do
31670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31671     ac_cv_prog_TAR="$ac_prog"
31672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31673     break 2
31674   fi
31675 done
31676   done
31677 IFS=$as_save_IFS
31678
31679 fi
31680 fi
31681 TAR=$ac_cv_prog_TAR
31682 if test -n "$TAR"; then
31683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31684 $as_echo "$TAR" >&6; }
31685 else
31686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31687 $as_echo "no" >&6; }
31688 fi
31689
31690
31691   test -n "$TAR" && break
31692 done
31693
31694 for ac_prog in perl
31695 do
31696   # Extract the first word of "$ac_prog", so it can be a program name with args.
31697 set dummy $ac_prog; ac_word=$2
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31699 $as_echo_n "checking for $ac_word... " >&6; }
31700 if test "${ac_cv_prog_PERL+set}" = set; then :
31701   $as_echo_n "(cached) " >&6
31702 else
31703   if test -n "$PERL"; then
31704   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31705 else
31706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31707 for as_dir in $PATH
31708 do
31709   IFS=$as_save_IFS
31710   test -z "$as_dir" && as_dir=.
31711     for ac_exec_ext in '' $ac_executable_extensions; do
31712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31713     ac_cv_prog_PERL="$ac_prog"
31714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31715     break 2
31716   fi
31717 done
31718   done
31719 IFS=$as_save_IFS
31720
31721 fi
31722 fi
31723 PERL=$ac_cv_prog_PERL
31724 if test -n "$PERL"; then
31725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31726 $as_echo "$PERL" >&6; }
31727 else
31728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31730 fi
31731
31732
31733   test -n "$PERL" && break
31734 done
31735
31736 for ac_prog in rpmbuild rpm
31737 do
31738   # Extract the first word of "$ac_prog", so it can be a program name with args.
31739 set dummy $ac_prog; ac_word=$2
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31741 $as_echo_n "checking for $ac_word... " >&6; }
31742 if test "${ac_cv_prog_RPM+set}" = set; then :
31743   $as_echo_n "(cached) " >&6
31744 else
31745   if test -n "$RPM"; then
31746   ac_cv_prog_RPM="$RPM" # Let the user override the test.
31747 else
31748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749 for as_dir in $PATH
31750 do
31751   IFS=$as_save_IFS
31752   test -z "$as_dir" && as_dir=.
31753     for ac_exec_ext in '' $ac_executable_extensions; do
31754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31755     ac_cv_prog_RPM="$ac_prog"
31756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31757     break 2
31758   fi
31759 done
31760   done
31761 IFS=$as_save_IFS
31762
31763 fi
31764 fi
31765 RPM=$ac_cv_prog_RPM
31766 if test -n "$RPM"; then
31767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31768 $as_echo "$RPM" >&6; }
31769 else
31770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31771 $as_echo "no" >&6; }
31772 fi
31773
31774
31775   test -n "$RPM" && break
31776 done
31777
31778
31779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31780
31781
31782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31783
31784
31785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31786
31787
31788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31789
31790
31791  if test "x$RPM" != "x" ; then
31792   RPM_DELEGATE_TRUE=
31793   RPM_DELEGATE_FALSE='#'
31794 else
31795   RPM_DELEGATE_TRUE='#'
31796   RPM_DELEGATE_FALSE=
31797 fi
31798
31799
31800 #
31801 # 7ZIP support (http://p7zip.sourceforge.net/)
31802 #
31803 P7ZIP=''
31804 for ac_prog in 7za
31805 do
31806   # Extract the first word of "$ac_prog", so it can be a program name with args.
31807 set dummy $ac_prog; ac_word=$2
31808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31809 $as_echo_n "checking for $ac_word... " >&6; }
31810 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31811   $as_echo_n "(cached) " >&6
31812 else
31813   if test -n "$P7ZIP"; then
31814   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31815 else
31816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817 for as_dir in $PATH
31818 do
31819   IFS=$as_save_IFS
31820   test -z "$as_dir" && as_dir=.
31821     for ac_exec_ext in '' $ac_executable_extensions; do
31822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823     ac_cv_prog_P7ZIP="$ac_prog"
31824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31825     break 2
31826   fi
31827 done
31828   done
31829 IFS=$as_save_IFS
31830
31831 fi
31832 fi
31833 P7ZIP=$ac_cv_prog_P7ZIP
31834 if test -n "$P7ZIP"; then
31835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31836 $as_echo "$P7ZIP" >&6; }
31837 else
31838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31839 $as_echo "no" >&6; }
31840 fi
31841
31842
31843   test -n "$P7ZIP" && break
31844 done
31845
31846
31847  if test "x$P7ZIP" != "x" ; then
31848   P7ZIP_DELEGATE_TRUE=
31849   P7ZIP_DELEGATE_FALSE='#'
31850 else
31851   P7ZIP_DELEGATE_TRUE='#'
31852   P7ZIP_DELEGATE_FALSE=
31853 fi
31854
31855
31856 #
31857 # ZIP support (http://www.info-zip.org/Zip.html)
31858 #
31859 ZIP=''
31860 for ac_prog in zip
31861 do
31862   # Extract the first word of "$ac_prog", so it can be a program name with args.
31863 set dummy $ac_prog; ac_word=$2
31864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31865 $as_echo_n "checking for $ac_word... " >&6; }
31866 if test "${ac_cv_prog_ZIP+set}" = set; then :
31867   $as_echo_n "(cached) " >&6
31868 else
31869   if test -n "$ZIP"; then
31870   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31871 else
31872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873 for as_dir in $PATH
31874 do
31875   IFS=$as_save_IFS
31876   test -z "$as_dir" && as_dir=.
31877     for ac_exec_ext in '' $ac_executable_extensions; do
31878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31879     ac_cv_prog_ZIP="$ac_prog"
31880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31881     break 2
31882   fi
31883 done
31884   done
31885 IFS=$as_save_IFS
31886
31887 fi
31888 fi
31889 ZIP=$ac_cv_prog_ZIP
31890 if test -n "$ZIP"; then
31891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31892 $as_echo "$ZIP" >&6; }
31893 else
31894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31895 $as_echo "no" >&6; }
31896 fi
31897
31898
31899   test -n "$ZIP" && break
31900 done
31901
31902
31903  if test "x$ZIP" != "x" ; then
31904   ZIP_DELEGATE_TRUE=
31905   ZIP_DELEGATE_FALSE='#'
31906 else
31907   ZIP_DELEGATE_TRUE='#'
31908   ZIP_DELEGATE_FALSE=
31909 fi
31910
31911
31912 #
31913 # GhostPCL related configuration.
31914 #
31915 PCLColorDevice=ppmraw
31916 PCLCMYKDevice=bmpsep8
31917 PCLMonoDevice=pbmraw
31918 if test -z "$PCLVersion"; then
31919     PCLVersion='unknown'
31920 fi
31921 if test $have_pcl = 'yes'; then
31922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31923 $as_echo "-------------------------------------------------------------" >&6; }
31924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31925 $as_echo_n "checking for PCL... " >&6; }
31926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31927 $as_echo "" >&6; }
31928     # PCLColorDevice
31929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31930 $as_echo_n "checking for pcl color device... " >&6; }
31931     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31932         :
31933     else
31934         PCLColorDevice=ppmraw
31935     fi
31936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31937 $as_echo "$PCLColorDevice" >&6; }
31938
31939     # PCLCMYKDevice
31940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31941 $as_echo_n "checking for pcl CMYK device... " >&6; }
31942     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31943         :
31944     else
31945         PCLCMYKDevice=$PCLColorDevice
31946     fi
31947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
31948 $as_echo "$PCLCMYKDevice" >&6; }
31949
31950     # PCLMonoDevice
31951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
31952 $as_echo_n "checking for pcl mono device... " >&6; }
31953     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31954         :
31955     else
31956         PCLMonoDevice=$PCLColorDevice
31957     fi
31958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
31959 $as_echo "$PCLMonoDevice" >&6; }
31960 fi
31961
31962
31963
31964
31965
31966
31967 #
31968 # GhostXPS related configuration.
31969 #
31970 XPSColorDevice=ppmraw
31971 XPSCMYKDevice=bmpsep8
31972 XPSMonoDevice=pbmraw
31973 if test -z "$XPSVersion"; then
31974     XPSVersion='unknown'
31975 fi
31976 if test $have_xps = 'yes'; then
31977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31978 $as_echo "-------------------------------------------------------------" >&6; }
31979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
31980 $as_echo_n "checking for XPS... " >&6; }
31981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31982 $as_echo "" >&6; }
31983     # XPSColorDevice
31984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
31985 $as_echo_n "checking for xps color device... " >&6; }
31986     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31987         :
31988     else
31989         XPSColorDevice=ppmraw
31990     fi
31991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
31992 $as_echo "$XPSColorDevice" >&6; }
31993
31994     # XPSCMYKDevice
31995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
31996 $as_echo_n "checking for xps CMYK device... " >&6; }
31997     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31998         :
31999     else
32000         XPSCMYKDevice=$XPSColorDevice
32001     fi
32002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32003 $as_echo "$XPSCMYKDevice" >&6; }
32004
32005     # XPSMonoDevice
32006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32007 $as_echo_n "checking for xps mono device... " >&6; }
32008     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32009         :
32010     else
32011         XPSMonoDevice=$XPSColorDevice
32012     fi
32013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32014 $as_echo "$XPSMonoDevice" >&6; }
32015 fi
32016
32017
32018
32019
32020
32021
32022 #
32023 # Ghostscript related configuration.
32024 #
32025 if test "$have_png" = 'yes'; then
32026     GSAlphaDevice=pngalpha
32027 else
32028     GSAlphaDevice=pnmraw
32029 fi
32030 GSColorDevice=pnmraw
32031 GSCMYKDevice=pam
32032 GSMonoDevice=pbmraw
32033 GSPDFDevice=pdfwrite
32034 GSPSDevice=pswrite
32035 GSEPSDevice=epswrite
32036 GSVersion='unknown'
32037 if test $have_gs = 'yes'; then
32038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32039 $as_echo "-------------------------------------------------------------" >&6; }
32040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32041 $as_echo_n "checking for Ghostscript... " >&6; }
32042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32043 $as_echo "" >&6; }
32044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32045 $as_echo_n "checking for Ghostscript version... " >&6; }
32046     if GSVersion=`$PSDelegate --version`; then
32047         :
32048     else
32049         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32050     fi
32051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32052 $as_echo "$GSVersion" >&6; }
32053
32054     # GSAlphaDevice
32055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32056 $as_echo_n "checking for gs alpha device... " >&6; }
32057     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32058         :
32059     else
32060         GSAlphaDevice=pnmraw
32061     fi
32062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32063 $as_echo "$GSAlphaDevice" >&6; }
32064
32065     # GSColorDevice
32066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32067 $as_echo_n "checking for gs color device... " >&6; }
32068     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32069         :
32070     else
32071         GSColorDevice=pnmraw
32072     fi
32073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32074 $as_echo "$GSColorDevice" >&6; }
32075
32076     # GSCMYKDevice
32077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32078 $as_echo_n "checking for gs CMYK device... " >&6; }
32079     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32080         :
32081     else
32082         GSCMYKDevice=bmpsep8
32083     fi
32084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32085 $as_echo "$GSCMYKDevice" >&6; }
32086
32087     # GSMonoDevice
32088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32089 $as_echo_n "checking for gs mono device... " >&6; }
32090     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32091         :
32092     else
32093         GSMonoDevice=$GSColorDevice
32094     fi
32095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32096 $as_echo "$GSMonoDevice" >&6; }
32097
32098     # GSPDFDevice
32099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32100 $as_echo_n "checking for gs PDF writing device... " >&6; }
32101     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32102         :
32103     else
32104         GSPDFDevice=nodevice
32105     fi
32106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32107 $as_echo "$GSPDFDevice" >&6; }
32108
32109     # GSPSDevice
32110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32111 $as_echo_n "checking for gs PS writing device... " >&6; }
32112     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32113         :
32114     else
32115         GSPSDevice=nodevice
32116     fi
32117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32118 $as_echo "$GSPSDevice" >&6; }
32119
32120     # GSEPSDevice
32121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32122 $as_echo_n "checking for gs EPS writing device... " >&6; }
32123     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32124         :
32125     else
32126         GSEPSDevice=nodevice
32127     fi
32128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32129 $as_echo "$GSEPSDevice" >&6; }
32130 fi
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141 #
32142 # PerlMagick-related configuration
32143 #
32144
32145 # Look for PERL if PerlMagick requested
32146 # If name/path of desired PERL interpreter is specified, look for that one first
32147 have_perl='no'
32148 if test "$with_perl" != 'no'; then
32149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32150 $as_echo "-------------------------------------------------------------" >&6; }
32151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32152 $as_echo_n "checking for Perl... " >&6; }
32153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32154 $as_echo "" >&6; }
32155     if test "$with_perl" != 'yes'; then
32156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32157 $as_echo_n "checking for perl... " >&6; }
32158 if test "${ac_cv_path_PERL+set}" = set; then :
32159   $as_echo_n "(cached) " >&6
32160 else
32161   ac_cv_path_PERL="$with_perl"
32162 fi
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32164 $as_echo "$ac_cv_path_PERL" >&6; };
32165         PERL=$ac_cv_path_PERL
32166                 have_perl="$ac_cv_path_PERL"
32167     else
32168         for ac_prog in perl perl5
32169 do
32170   # Extract the first word of "$ac_prog", so it can be a program name with args.
32171 set dummy $ac_prog; ac_word=$2
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32173 $as_echo_n "checking for $ac_word... " >&6; }
32174 if test "${ac_cv_path_PERL+set}" = set; then :
32175   $as_echo_n "(cached) " >&6
32176 else
32177   case $PERL in
32178   [\\/]* | ?:[\\/]*)
32179   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32180   ;;
32181   *)
32182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183 for as_dir in $PATH
32184 do
32185   IFS=$as_save_IFS
32186   test -z "$as_dir" && as_dir=.
32187     for ac_exec_ext in '' $ac_executable_extensions; do
32188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32191     break 2
32192   fi
32193 done
32194   done
32195 IFS=$as_save_IFS
32196
32197   ;;
32198 esac
32199 fi
32200 PERL=$ac_cv_path_PERL
32201 if test -n "$PERL"; then
32202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32203 $as_echo "$PERL" >&6; }
32204 else
32205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32206 $as_echo "no" >&6; }
32207 fi
32208
32209
32210   test -n "$PERL" && break
32211 done
32212         if test "$ac_cv_path_PERL"; then
32213             have_perl="$ac_cv_path_PERL"
32214         fi
32215     fi
32216 fi
32217
32218 if test "$with_perl" != 'yes' ; then
32219     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32220 fi
32221
32222 PERL_SUPPORTS_DESTDIR='no'
32223
32224 with_perl_static='no'
32225 with_perl_dynamic='no'
32226 if test "$have_perl" != 'no'; then
32227     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32228         with_perl_static='yes'
32229     fi
32230     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32231         with_perl_dynamic='yes'
32232     fi
32233     # Is PERL's MakeMaker new enough to support DESTDIR?
32234
32235
32236
32237
32238     if test -n "$PERL"; then :
32239
32240         ax_perl_version="5.8.1"
32241
32242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32243 $as_echo_n "checking for perl version... " >&6; }
32244
32245         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32246
32247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32248 $as_echo "$perl_version" >&6; }
32249
32250         PERL_VERSION=$perl_version
32251
32252
32253
32254
32255
32256   # Used to indicate true or false condition
32257   ax_compare_version=false
32258
32259   # Convert the two version strings to be compared into a format that
32260   # allows a simple string comparison.  The end result is that a version
32261   # string of the form 1.12.5-r617 will be converted to the form
32262   # 0001001200050617.  In other words, each number is zero padded to four
32263   # digits, and non digits are removed.
32264
32265   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32266                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32267                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32268                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32269                      -e 's/[^0-9]//g'`
32270
32271
32272   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32273                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32274                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32275                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32276                      -e 's/[^0-9]//g'`
32277
32278
32279     ax_compare_version=`echo "x$ax_compare_version_A
32280 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32281
32282
32283
32284     if test "$ax_compare_version" = "true" ; then
32285
32286             :
32287             PERL_SUPPORTS_DESTDIR='yes'
32288
32289     else
32290             :
32291             PERL_SUPPORTS_DESTDIR='no'
32292
32293   fi
32294
32295
32296 else
32297
32298         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32299 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32300         PERL_SUPPORTS_DESTDIR='no'
32301
32302 fi
32303
32304 fi
32305  if test "$have_perl" != 'no'; then
32306   WITH_PERL_TRUE=
32307   WITH_PERL_FALSE='#'
32308 else
32309   WITH_PERL_TRUE='#'
32310   WITH_PERL_FALSE=
32311 fi
32312
32313  if test $with_perl_static = 'yes'; then
32314   WITH_PERL_STATIC_TRUE=
32315   WITH_PERL_STATIC_FALSE='#'
32316 else
32317   WITH_PERL_STATIC_TRUE='#'
32318   WITH_PERL_STATIC_FALSE=
32319 fi
32320
32321  if test $with_perl_dynamic = 'yes'; then
32322   WITH_PERL_DYNAMIC_TRUE=
32323   WITH_PERL_DYNAMIC_FALSE='#'
32324 else
32325   WITH_PERL_DYNAMIC_TRUE='#'
32326   WITH_PERL_DYNAMIC_FALSE=
32327 fi
32328
32329
32330
32331 # Determine path to pick up MagickCore library from for use with building PerlMagick
32332 MAGICKCORE_PATH="${LIB_DIR}"
32333 if test $with_perl_static = 'yes'; then
32334     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32335     libtool_objdir=$objdir
32336
32337     # Linker search path to library, followed by -lMagickCore
32338     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32339 fi
32340
32341
32342 # Create a simple string containing format names for all delegate libraries
32343 DELEGATES=''
32344 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32345 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32346 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32347 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32348 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32349 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32350 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32351 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32352 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32353 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32354 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32355 if test "$have_jpeg"       = 'yes'; then
32356   DELEGATES="$DELEGATES jpeg";
32357   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32358 fi
32359 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32360 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32361 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32362 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32363 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32364 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32365 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
32366 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32367 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32368 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32369 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32370 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32371 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32372
32373
32374
32375 #
32376 # Handle special compiler flags
32377 #
32378
32379 # Add '-p' if prof source profiling support enabled
32380 if test "$enable_prof" = 'yes'; then
32381     CFLAGS="-p $CFLAGS"
32382     CXXFLAGS="-p $CXXFLAGS"
32383     LDFLAGS="-p $LDFLAGS"
32384 fi
32385
32386 # Add '-pg' if gprof source profiling support enabled
32387 if test "$enable_gprof" = 'yes'; then
32388     CFLAGS="-pg $CFLAGS"
32389     CXXFLAGS="-pg $CXXFLAGS"
32390     LDFLAGS="-pg $LDFLAGS"
32391 fi
32392
32393 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32394 # This is a gcc-specific feature
32395 if test "$enable_gcov" = 'yes'; then
32396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32397 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32398 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32399   $as_echo_n "(cached) " >&6
32400 else
32401   ac_check_lib_save_LIBS=$LIBS
32402 LIBS="-lgcov  $LIBS"
32403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32404 /* end confdefs.h.  */
32405
32406 /* Override any GCC internal prototype to avoid an error.
32407    Use char because int might match the return type of a GCC
32408    builtin and then its argument prototype would still apply.  */
32409 #ifdef __cplusplus
32410 extern "C"
32411 #endif
32412 char _gcov_init ();
32413 int
32414 main ()
32415 {
32416 return _gcov_init ();
32417   ;
32418   return 0;
32419 }
32420 _ACEOF
32421 if ac_fn_c_try_link "$LINENO"; then :
32422   ac_cv_lib_gcov__gcov_init=yes
32423 else
32424   ac_cv_lib_gcov__gcov_init=no
32425 fi
32426 rm -f core conftest.err conftest.$ac_objext \
32427     conftest$ac_exeext conftest.$ac_ext
32428 LIBS=$ac_check_lib_save_LIBS
32429 fi
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32431 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32432 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32433   cat >>confdefs.h <<_ACEOF
32434 #define HAVE_LIBGCOV 1
32435 _ACEOF
32436
32437   LIBS="-lgcov $LIBS"
32438
32439 fi
32440
32441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32442 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32443 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32444   $as_echo_n "(cached) " >&6
32445 else
32446   ac_check_lib_save_LIBS=$LIBS
32447 LIBS="-lgcov  $LIBS"
32448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32449 /* end confdefs.h.  */
32450
32451 /* Override any GCC internal prototype to avoid an error.
32452    Use char because int might match the return type of a GCC
32453    builtin and then its argument prototype would still apply.  */
32454 #ifdef __cplusplus
32455 extern "C"
32456 #endif
32457 char __gcov_init ();
32458 int
32459 main ()
32460 {
32461 return __gcov_init ();
32462   ;
32463   return 0;
32464 }
32465 _ACEOF
32466 if ac_fn_c_try_link "$LINENO"; then :
32467   ac_cv_lib_gcov___gcov_init=yes
32468 else
32469   ac_cv_lib_gcov___gcov_init=no
32470 fi
32471 rm -f core conftest.err conftest.$ac_objext \
32472     conftest$ac_exeext conftest.$ac_ext
32473 LIBS=$ac_check_lib_save_LIBS
32474 fi
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32476 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32477 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32478   cat >>confdefs.h <<_ACEOF
32479 #define HAVE_LIBGCOV 1
32480 _ACEOF
32481
32482   LIBS="-lgcov $LIBS"
32483
32484 fi
32485
32486     case "$target_os" in
32487         darwin*)
32488             OSX_GCOV_LDFLAG="-Wl,-single_module"
32489         ;;
32490         *)
32491             OSX_GCOV_LDFLAG=""
32492         ;;
32493     esac
32494
32495     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
32496     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
32497     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32498 fi
32499
32500 #
32501 # Build library dependency list for libMagickCore
32502 #
32503
32504 MAGICK_LIBLTDL='' # Libltdl for build
32505 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
32506 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
32507 if test "$with_ltdl" != 'no'
32508 then
32509   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32510     MAGICK_API_LIBLTDL='-lltdl'
32511   fi
32512   MAGICK_LIBLTDL=${LIBLTDL}
32513   MAGICK_LTDLDEPS=${LTDLDEPS}
32514 fi
32515
32516
32517
32518 if test "$with_modules" != 'no'; then
32519     MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
32520 else
32521     MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
32522 fi
32523
32524
32525 #
32526 # Remove extraneous spaces from output variables (asthetic)
32527 #
32528 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
32529 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
32530 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
32531 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
32532
32533 CC=`echo $CC | sed -e 's/  */ /g'`
32534 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
32535 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
32536 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
32537 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32538 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
32539 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
32540 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32541 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
32542 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32543
32544 # Pass only user-provided LIBS as "global" libraries
32545 LIBS=$USER_LIBS
32546
32547 #AC_SUBST(CPPFLAGS)
32548
32549 #AC_SUBST(LDFLAGS)
32550 #AC_SUBST(X_PRE_LIBS)
32551 #AC_SUBST(X_LIBS)
32552 #AC_SUBST(X_EXTRA_LIBS)
32553
32554 MAGICK_CFLAGS=$CFLAGS
32555 MAGICK_CXXFLAGS="$CXXFLAGS"
32556 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
32557 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
32558 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32559 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569 # Set configured scripts to executable.
32570 ac_config_commands="$ac_config_commands default"
32571
32572 ac_config_commands="$ac_config_commands MagickCore-config.in"
32573
32574 ac_config_commands="$ac_config_commands Magick-config.in"
32575
32576 ac_config_commands="$ac_config_commands MagickWand-config.in"
32577
32578 ac_config_commands="$ac_config_commands Wand-config.in"
32579
32580 ac_config_commands="$ac_config_commands Magick++-config.in"
32581
32582 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32583
32584
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32586 $as_echo "-------------------------------------------------------------" >&6; }
32587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32588 $as_echo "Update ImageMagick configuration" >&6; }
32589 cat >confcache <<\_ACEOF
32590 # This file is a shell script that caches the results of configure
32591 # tests run on this system so they can be shared between configure
32592 # scripts and configure runs, see configure's option --config-cache.
32593 # It is not useful on other systems.  If it contains results you don't
32594 # want to keep, you may remove or edit it.
32595 #
32596 # config.status only pays attention to the cache file if you give it
32597 # the --recheck option to rerun configure.
32598 #
32599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32601 # following values.
32602
32603 _ACEOF
32604
32605 # The following way of writing the cache mishandles newlines in values,
32606 # but we know of no workaround that is simple, portable, and efficient.
32607 # So, we kill variables containing newlines.
32608 # Ultrix sh set writes to stderr and can't be redirected directly,
32609 # and sets the high bit in the cache file unless we assign to the vars.
32610 (
32611   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32612     eval ac_val=\$$ac_var
32613     case $ac_val in #(
32614     *${as_nl}*)
32615       case $ac_var in #(
32616       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32618       esac
32619       case $ac_var in #(
32620       _ | IFS | as_nl) ;; #(
32621       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32622       *) { eval $ac_var=; unset $ac_var;} ;;
32623       esac ;;
32624     esac
32625   done
32626
32627   (set) 2>&1 |
32628     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32629     *${as_nl}ac_space=\ *)
32630       # `set' does not quote correctly, so add quotes: double-quote
32631       # substitution turns \\\\ into \\, and sed turns \\ into \.
32632       sed -n \
32633         "s/'/'\\\\''/g;
32634           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32635       ;; #(
32636     *)
32637       # `set' quotes correctly as required by POSIX, so do not add quotes.
32638       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32639       ;;
32640     esac |
32641     sort
32642 ) |
32643   sed '
32644      /^ac_cv_env_/b end
32645      t clear
32646      :clear
32647      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32648      t end
32649      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32650      :end' >>confcache
32651 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32652   if test -w "$cache_file"; then
32653     test "x$cache_file" != "x/dev/null" &&
32654       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32655 $as_echo "$as_me: updating cache $cache_file" >&6;}
32656     cat confcache >$cache_file
32657   else
32658     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32659 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32660   fi
32661 fi
32662 rm -f confcache
32663
32664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32665 # Let make expand exec_prefix.
32666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32667
32668 DEFS=-DHAVE_CONFIG_H
32669
32670 ac_libobjs=
32671 ac_ltlibobjs=
32672 U=
32673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32674   # 1. Remove the extension, and $U if already installed.
32675   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32676   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32677   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32678   #    will be set to the directory where LIBOBJS objects are built.
32679   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32680   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32681 done
32682 LIBOBJS=$ac_libobjs
32683
32684 LTLIBOBJS=$ac_ltlibobjs
32685
32686
32687  if test -n "$EXEEXT"; then
32688   am__EXEEXT_TRUE=
32689   am__EXEEXT_FALSE='#'
32690 else
32691   am__EXEEXT_TRUE='#'
32692   am__EXEEXT_FALSE=
32693 fi
32694
32695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32696   as_fn_error $? "conditional \"AMDEP\" was never defined.
32697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32698 fi
32699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32700   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32702 fi
32703 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32704   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32706 fi
32707 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32708   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32710 fi
32711 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32712   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32714 fi
32715 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32716   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32718 fi
32719 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32720   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32722 fi
32723 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32724   as_fn_error $? "conditional \"USING_CL\" was never defined.
32725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32726 fi
32727 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32728   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32730 fi
32731 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32732   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32734 fi
32735 LT_CONFIG_H=config/config.h
32736
32737     _ltdl_libobjs=
32738     _ltdl_ltlibobjs=
32739     if test -n "$_LT_LIBOBJS"; then
32740       # Remove the extension.
32741       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32742       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32743         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32744         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32745       done
32746     fi
32747     ltdl_LIBOBJS=$_ltdl_libobjs
32748
32749     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32750
32751
32752 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32753   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32755 fi
32756 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32757   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32759 fi
32760 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32761   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32763 fi
32764 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32765   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32767 fi
32768
32769 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32770   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32772 fi
32773 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32774   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32776 fi
32777 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32778   as_fn_error $? "conditional \"HasUMEM\" was never defined.
32779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32780 fi
32781 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32782   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32784 fi
32785 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32786   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32788 fi
32789 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32790   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32792 fi
32793 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32794   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32796 fi
32797 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32798   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32800 fi
32801 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32802   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32804 fi
32805 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32806   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32808 fi
32809 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32810   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32812 fi
32813 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32814   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32816 fi
32817 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32818   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32820 fi
32821 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32822   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32824 fi
32825 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32826   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32828 fi
32829 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32830   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832 fi
32833 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32834   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836 fi
32837 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32838   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840 fi
32841 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32842   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844 fi
32845 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32846   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32848 fi
32849 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32850   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32852 fi
32853 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32854   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32856 fi
32857 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32858   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32860 fi
32861 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32862   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32864 fi
32865 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32866   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32868 fi
32869 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32870   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32872 fi
32873 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32874   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
32875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32876 fi
32877 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32878   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
32879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32880 fi
32881 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32882   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
32883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32884 fi
32885 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32886   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
32887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32888 fi
32889 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32890   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
32891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32892 fi
32893 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32894   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
32895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32896 fi
32897 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32898   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32900 fi
32901
32902 : ${CONFIG_STATUS=./config.status}
32903 ac_write_fail=0
32904 ac_clean_files_save=$ac_clean_files
32905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32908 as_write_fail=0
32909 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32910 #! $SHELL
32911 # Generated by $as_me.
32912 # Run this file to recreate the current configuration.
32913 # Compiler output produced by configure, useful for debugging
32914 # configure, is in config.log if it exists.
32915
32916 debug=false
32917 ac_cs_recheck=false
32918 ac_cs_silent=false
32919
32920 SHELL=\${CONFIG_SHELL-$SHELL}
32921 export SHELL
32922 _ASEOF
32923 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32924 ## -------------------- ##
32925 ## M4sh Initialization. ##
32926 ## -------------------- ##
32927
32928 # Be more Bourne compatible
32929 DUALCASE=1; export DUALCASE # for MKS sh
32930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32931   emulate sh
32932   NULLCMD=:
32933   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32934   # is contrary to our usage.  Disable this feature.
32935   alias -g '${1+"$@"}'='"$@"'
32936   setopt NO_GLOB_SUBST
32937 else
32938   case `(set -o) 2>/dev/null` in #(
32939   *posix*) :
32940     set -o posix ;; #(
32941   *) :
32942      ;;
32943 esac
32944 fi
32945
32946
32947 as_nl='
32948 '
32949 export as_nl
32950 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32954 # Prefer a ksh shell builtin over an external printf program on Solaris,
32955 # but without wasting forks for bash or zsh.
32956 if test -z "$BASH_VERSION$ZSH_VERSION" \
32957     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32958   as_echo='print -r --'
32959   as_echo_n='print -rn --'
32960 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32961   as_echo='printf %s\n'
32962   as_echo_n='printf %s'
32963 else
32964   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32965     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32966     as_echo_n='/usr/ucb/echo -n'
32967   else
32968     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32969     as_echo_n_body='eval
32970       arg=$1;
32971       case $arg in #(
32972       *"$as_nl"*)
32973         expr "X$arg" : "X\\(.*\\)$as_nl";
32974         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32975       esac;
32976       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32977     '
32978     export as_echo_n_body
32979     as_echo_n='sh -c $as_echo_n_body as_echo'
32980   fi
32981   export as_echo_body
32982   as_echo='sh -c $as_echo_body as_echo'
32983 fi
32984
32985 # The user is always right.
32986 if test "${PATH_SEPARATOR+set}" != set; then
32987   PATH_SEPARATOR=:
32988   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32989     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32990       PATH_SEPARATOR=';'
32991   }
32992 fi
32993
32994
32995 # IFS
32996 # We need space, tab and new line, in precisely that order.  Quoting is
32997 # there to prevent editors from complaining about space-tab.
32998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32999 # splitting by setting IFS to empty value.)
33000 IFS=" ""        $as_nl"
33001
33002 # Find who we are.  Look in the path if we contain no directory separator.
33003 case $0 in #((
33004   *[\\/]* ) as_myself=$0 ;;
33005   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006 for as_dir in $PATH
33007 do
33008   IFS=$as_save_IFS
33009   test -z "$as_dir" && as_dir=.
33010     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33011   done
33012 IFS=$as_save_IFS
33013
33014      ;;
33015 esac
33016 # We did not find ourselves, most probably we were run as `sh COMMAND'
33017 # in which case we are not to be found in the path.
33018 if test "x$as_myself" = x; then
33019   as_myself=$0
33020 fi
33021 if test ! -f "$as_myself"; then
33022   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33023   exit 1
33024 fi
33025
33026 # Unset variables that we do not need and which cause bugs (e.g. in
33027 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33028 # suppresses any "Segmentation fault" message there.  '((' could
33029 # trigger a bug in pdksh 5.2.14.
33030 for as_var in BASH_ENV ENV MAIL MAILPATH
33031 do eval test x\${$as_var+set} = xset \
33032   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33033 done
33034 PS1='$ '
33035 PS2='> '
33036 PS4='+ '
33037
33038 # NLS nuisances.
33039 LC_ALL=C
33040 export LC_ALL
33041 LANGUAGE=C
33042 export LANGUAGE
33043
33044 # CDPATH.
33045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33046
33047
33048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33049 # ----------------------------------------
33050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33052 # script with STATUS, using 1 if that was 0.
33053 as_fn_error ()
33054 {
33055   as_status=$1; test $as_status -eq 0 && as_status=1
33056   if test "$4"; then
33057     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33058     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33059   fi
33060   $as_echo "$as_me: error: $2" >&2
33061   as_fn_exit $as_status
33062 } # as_fn_error
33063
33064
33065 # as_fn_set_status STATUS
33066 # -----------------------
33067 # Set $? to STATUS, without forking.
33068 as_fn_set_status ()
33069 {
33070   return $1
33071 } # as_fn_set_status
33072
33073 # as_fn_exit STATUS
33074 # -----------------
33075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33076 as_fn_exit ()
33077 {
33078   set +e
33079   as_fn_set_status $1
33080   exit $1
33081 } # as_fn_exit
33082
33083 # as_fn_unset VAR
33084 # ---------------
33085 # Portably unset VAR.
33086 as_fn_unset ()
33087 {
33088   { eval $1=; unset $1;}
33089 }
33090 as_unset=as_fn_unset
33091 # as_fn_append VAR VALUE
33092 # ----------------------
33093 # Append the text in VALUE to the end of the definition contained in VAR. Take
33094 # advantage of any shell optimizations that allow amortized linear growth over
33095 # repeated appends, instead of the typical quadratic growth present in naive
33096 # implementations.
33097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33098   eval 'as_fn_append ()
33099   {
33100     eval $1+=\$2
33101   }'
33102 else
33103   as_fn_append ()
33104   {
33105     eval $1=\$$1\$2
33106   }
33107 fi # as_fn_append
33108
33109 # as_fn_arith ARG...
33110 # ------------------
33111 # Perform arithmetic evaluation on the ARGs, and store the result in the
33112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33113 # must be portable across $(()) and expr.
33114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33115   eval 'as_fn_arith ()
33116   {
33117     as_val=$(( $* ))
33118   }'
33119 else
33120   as_fn_arith ()
33121   {
33122     as_val=`expr "$@" || test $? -eq 1`
33123   }
33124 fi # as_fn_arith
33125
33126
33127 if expr a : '\(a\)' >/dev/null 2>&1 &&
33128    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33129   as_expr=expr
33130 else
33131   as_expr=false
33132 fi
33133
33134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33135   as_basename=basename
33136 else
33137   as_basename=false
33138 fi
33139
33140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33141   as_dirname=dirname
33142 else
33143   as_dirname=false
33144 fi
33145
33146 as_me=`$as_basename -- "$0" ||
33147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33148          X"$0" : 'X\(//\)$' \| \
33149          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33150 $as_echo X/"$0" |
33151     sed '/^.*\/\([^/][^/]*\)\/*$/{
33152             s//\1/
33153             q
33154           }
33155           /^X\/\(\/\/\)$/{
33156             s//\1/
33157             q
33158           }
33159           /^X\/\(\/\).*/{
33160             s//\1/
33161             q
33162           }
33163           s/.*/./; q'`
33164
33165 # Avoid depending upon Character Ranges.
33166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33169 as_cr_digits='0123456789'
33170 as_cr_alnum=$as_cr_Letters$as_cr_digits
33171
33172 ECHO_C= ECHO_N= ECHO_T=
33173 case `echo -n x` in #(((((
33174 -n*)
33175   case `echo 'xy\c'` in
33176   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33177   xy)  ECHO_C='\c';;
33178   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33179        ECHO_T=' ';;
33180   esac;;
33181 *)
33182   ECHO_N='-n';;
33183 esac
33184
33185 rm -f conf$$ conf$$.exe conf$$.file
33186 if test -d conf$$.dir; then
33187   rm -f conf$$.dir/conf$$.file
33188 else
33189   rm -f conf$$.dir
33190   mkdir conf$$.dir 2>/dev/null
33191 fi
33192 if (echo >conf$$.file) 2>/dev/null; then
33193   if ln -s conf$$.file conf$$ 2>/dev/null; then
33194     as_ln_s='ln -s'
33195     # ... but there are two gotchas:
33196     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33197     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33198     # In both cases, we have to default to `cp -p'.
33199     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33200       as_ln_s='cp -p'
33201   elif ln conf$$.file conf$$ 2>/dev/null; then
33202     as_ln_s=ln
33203   else
33204     as_ln_s='cp -p'
33205   fi
33206 else
33207   as_ln_s='cp -p'
33208 fi
33209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33210 rmdir conf$$.dir 2>/dev/null
33211
33212
33213 # as_fn_mkdir_p
33214 # -------------
33215 # Create "$as_dir" as a directory, including parents if necessary.
33216 as_fn_mkdir_p ()
33217 {
33218
33219   case $as_dir in #(
33220   -*) as_dir=./$as_dir;;
33221   esac
33222   test -d "$as_dir" || eval $as_mkdir_p || {
33223     as_dirs=
33224     while :; do
33225       case $as_dir in #(
33226       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33227       *) as_qdir=$as_dir;;
33228       esac
33229       as_dirs="'$as_qdir' $as_dirs"
33230       as_dir=`$as_dirname -- "$as_dir" ||
33231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33232          X"$as_dir" : 'X\(//\)[^/]' \| \
33233          X"$as_dir" : 'X\(//\)$' \| \
33234          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33235 $as_echo X"$as_dir" |
33236     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33237             s//\1/
33238             q
33239           }
33240           /^X\(\/\/\)[^/].*/{
33241             s//\1/
33242             q
33243           }
33244           /^X\(\/\/\)$/{
33245             s//\1/
33246             q
33247           }
33248           /^X\(\/\).*/{
33249             s//\1/
33250             q
33251           }
33252           s/.*/./; q'`
33253       test -d "$as_dir" && break
33254     done
33255     test -z "$as_dirs" || eval "mkdir $as_dirs"
33256   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33257
33258
33259 } # as_fn_mkdir_p
33260 if mkdir -p . 2>/dev/null; then
33261   as_mkdir_p='mkdir -p "$as_dir"'
33262 else
33263   test -d ./-p && rmdir ./-p
33264   as_mkdir_p=false
33265 fi
33266
33267 if test -x / >/dev/null 2>&1; then
33268   as_test_x='test -x'
33269 else
33270   if ls -dL / >/dev/null 2>&1; then
33271     as_ls_L_option=L
33272   else
33273     as_ls_L_option=
33274   fi
33275   as_test_x='
33276     eval sh -c '\''
33277       if test -d "$1"; then
33278         test -d "$1/.";
33279       else
33280         case $1 in #(
33281         -*)set "./$1";;
33282         esac;
33283         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33284         ???[sx]*):;;*)false;;esac;fi
33285     '\'' sh
33286   '
33287 fi
33288 as_executable_p=$as_test_x
33289
33290 # Sed expression to map a string onto a valid CPP name.
33291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33292
33293 # Sed expression to map a string onto a valid variable name.
33294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33295
33296
33297 exec 6>&1
33298 ## ----------------------------------- ##
33299 ## Main body of $CONFIG_STATUS script. ##
33300 ## ----------------------------------- ##
33301 _ASEOF
33302 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33303
33304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33305 # Save the log message, to keep $0 and so on meaningful, and to
33306 # report actual input values of CONFIG_FILES etc. instead of their
33307 # values after options handling.
33308 ac_log="
33309 This file was extended by ImageMagick $as_me 6.6.3, which was
33310 generated by GNU Autoconf 2.66.  Invocation command line was
33311
33312   CONFIG_FILES    = $CONFIG_FILES
33313   CONFIG_HEADERS  = $CONFIG_HEADERS
33314   CONFIG_LINKS    = $CONFIG_LINKS
33315   CONFIG_COMMANDS = $CONFIG_COMMANDS
33316   $ $0 $@
33317
33318 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33319 "
33320
33321 _ACEOF
33322
33323 case $ac_config_files in *"
33324 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33325 esac
33326
33327 case $ac_config_headers in *"
33328 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33329 esac
33330
33331
33332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33333 # Files that config.status was made for.
33334 config_files="$ac_config_files"
33335 config_headers="$ac_config_headers"
33336 config_commands="$ac_config_commands"
33337
33338 _ACEOF
33339
33340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33341 ac_cs_usage="\
33342 \`$as_me' instantiates files and other configuration actions
33343 from templates according to the current configuration.  Unless the files
33344 and actions are specified as TAGs, all are instantiated by default.
33345
33346 Usage: $0 [OPTION]... [TAG]...
33347
33348   -h, --help       print this help, then exit
33349   -V, --version    print version number and configuration settings, then exit
33350       --config     print configuration, then exit
33351   -q, --quiet, --silent
33352                    do not print progress messages
33353   -d, --debug      don't remove temporary files
33354       --recheck    update $as_me by reconfiguring in the same conditions
33355       --file=FILE[:TEMPLATE]
33356                    instantiate the configuration file FILE
33357       --header=FILE[:TEMPLATE]
33358                    instantiate the configuration header FILE
33359
33360 Configuration files:
33361 $config_files
33362
33363 Configuration headers:
33364 $config_headers
33365
33366 Configuration commands:
33367 $config_commands
33368
33369 Report bugs to <http://www.imagemagick.org>."
33370
33371 _ACEOF
33372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33374 ac_cs_version="\\
33375 ImageMagick config.status 6.6.3
33376 configured by $0, generated by GNU Autoconf 2.66,
33377   with options \\"\$ac_cs_config\\"
33378
33379 Copyright (C) 2010 Free Software Foundation, Inc.
33380 This config.status script is free software; the Free Software Foundation
33381 gives unlimited permission to copy, distribute and modify it."
33382
33383 ac_pwd='$ac_pwd'
33384 srcdir='$srcdir'
33385 INSTALL='$INSTALL'
33386 MKDIR_P='$MKDIR_P'
33387 AWK='$AWK'
33388 test -n "\$AWK" || AWK=awk
33389 _ACEOF
33390
33391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33392 # The default lists apply if the user does not specify any file.
33393 ac_need_defaults=:
33394 while test $# != 0
33395 do
33396   case $1 in
33397   --*=*)
33398     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33399     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33400     ac_shift=:
33401     ;;
33402   *)
33403     ac_option=$1
33404     ac_optarg=$2
33405     ac_shift=shift
33406     ;;
33407   esac
33408
33409   case $ac_option in
33410   # Handling of the options.
33411   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33412     ac_cs_recheck=: ;;
33413   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33414     $as_echo "$ac_cs_version"; exit ;;
33415   --config | --confi | --conf | --con | --co | --c )
33416     $as_echo "$ac_cs_config"; exit ;;
33417   --debug | --debu | --deb | --de | --d | -d )
33418     debug=: ;;
33419   --file | --fil | --fi | --f )
33420     $ac_shift
33421     case $ac_optarg in
33422     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33423     esac
33424     as_fn_append CONFIG_FILES " '$ac_optarg'"
33425     ac_need_defaults=false;;
33426   --header | --heade | --head | --hea )
33427     $ac_shift
33428     case $ac_optarg in
33429     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33430     esac
33431     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33432     ac_need_defaults=false;;
33433   --he | --h)
33434     # Conflict between --help and --header
33435     as_fn_error $? "ambiguous option: \`$1'
33436 Try \`$0 --help' for more information.";;
33437   --help | --hel | -h )
33438     $as_echo "$ac_cs_usage"; exit ;;
33439   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33440   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33441     ac_cs_silent=: ;;
33442
33443   # This is an error.
33444   -*) as_fn_error $? "unrecognized option: \`$1'
33445 Try \`$0 --help' for more information." ;;
33446
33447   *) as_fn_append ac_config_targets " $1"
33448      ac_need_defaults=false ;;
33449
33450   esac
33451   shift
33452 done
33453
33454 ac_configure_extra_args=
33455
33456 if $ac_cs_silent; then
33457   exec 6>/dev/null
33458   ac_configure_extra_args="$ac_configure_extra_args --silent"
33459 fi
33460
33461 _ACEOF
33462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33463 if \$ac_cs_recheck; then
33464   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33465   shift
33466   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33467   CONFIG_SHELL='$SHELL'
33468   export CONFIG_SHELL
33469   exec "\$@"
33470 fi
33471
33472 _ACEOF
33473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33474 exec 5>>config.log
33475 {
33476   echo
33477   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33478 ## Running $as_me. ##
33479 _ASBOX
33480   $as_echo "$ac_log"
33481 } >&5
33482
33483 _ACEOF
33484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33485 #
33486 # INIT-COMMANDS
33487 #
33488 PACKAGE="$PACKAGE"
33489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33490
33491
33492 # The HP-UX ksh and POSIX shell print the target directory to stdout
33493 # if CDPATH is set.
33494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33495
33496 sed_quote_subst='$sed_quote_subst'
33497 double_quote_subst='$double_quote_subst'
33498 delay_variable_subst='$delay_variable_subst'
33499 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33500 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33501 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33502 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33503 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33507 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33508 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33509 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33510 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33513 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33514 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33515 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33516 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33517 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33518 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33519 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33520 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33521 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33530 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33531 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33532 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33533 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33534 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33535 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33536 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33537 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33538 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33539 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33540 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33541 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33542 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33543 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33544 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33545 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33546 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33547 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33548 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33549 lt_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"`'
33550 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33551 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33552 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33553 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33554 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33555 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33556 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33557 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33558 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33559 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33560 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33561 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33562 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33563 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33564 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33565 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33566 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33567 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33568 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33569 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33570 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33571 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33572 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33573 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33574 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33575 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33576 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33577 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33578 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33579 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33580 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33581 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33582 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33583 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33584 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33585 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33586 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33587 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33588 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33589 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33590 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33591 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33592 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33593 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33594 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33595 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33596 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33597 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33598 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33599 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33600 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33601 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33602 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33603 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33604 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33605 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33606 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33607 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33608 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33609 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33610 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33611 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33612 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33613 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33614 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33621 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33622 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33623 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33624 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33625 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33626 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33627 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33628 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33629 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33630 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33631 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33632 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33633 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33634 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33635 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33636 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33637 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33638 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33639 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33640 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33641 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33642 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33643 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33644 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33645 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33646 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33647 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33648 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33649 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33650 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33651 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33652 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33653 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33654 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33655 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33656 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33657 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33658 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33659 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33660 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33661 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33662 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33663 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33664 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33665 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33666 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33667 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33668 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33669 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33670 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33671 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33672 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33673 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33674 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33675 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33676
33677 LTCC='$LTCC'
33678 LTCFLAGS='$LTCFLAGS'
33679 compiler='$compiler_DEFAULT'
33680
33681 # A function that is used when there is no print builtin or printf.
33682 func_fallback_echo ()
33683 {
33684   eval 'cat <<_LTECHO_EOF
33685 \$1
33686 _LTECHO_EOF'
33687 }
33688
33689 # Quote evaled strings.
33690 for var in SED \
33691 GREP \
33692 EGREP \
33693 FGREP \
33694 SHELL \
33695 ECHO \
33696 LD \
33697 AS \
33698 DLLTOOL \
33699 OBJDUMP \
33700 NM \
33701 LN_S \
33702 lt_SP2NL \
33703 lt_NL2SP \
33704 reload_flag \
33705 deplibs_check_method \
33706 file_magic_cmd \
33707 AR \
33708 AR_FLAGS \
33709 STRIP \
33710 RANLIB \
33711 CC \
33712 CFLAGS \
33713 compiler \
33714 lt_cv_sys_global_symbol_pipe \
33715 lt_cv_sys_global_symbol_to_cdecl \
33716 lt_cv_sys_global_symbol_to_c_name_address \
33717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33718 lt_prog_compiler_no_builtin_flag \
33719 lt_prog_compiler_wl \
33720 lt_prog_compiler_pic \
33721 lt_prog_compiler_static \
33722 lt_cv_prog_compiler_c_o \
33723 need_locks \
33724 DSYMUTIL \
33725 NMEDIT \
33726 LIPO \
33727 OTOOL \
33728 OTOOL64 \
33729 shrext_cmds \
33730 export_dynamic_flag_spec \
33731 whole_archive_flag_spec \
33732 compiler_needs_object \
33733 with_gnu_ld \
33734 allow_undefined_flag \
33735 no_undefined_flag \
33736 hardcode_libdir_flag_spec \
33737 hardcode_libdir_flag_spec_ld \
33738 hardcode_libdir_separator \
33739 fix_srcfile_path \
33740 exclude_expsyms \
33741 include_expsyms \
33742 file_list_spec \
33743 variables_saved_for_relink \
33744 libname_spec \
33745 library_names_spec \
33746 soname_spec \
33747 install_override_mode \
33748 finish_eval \
33749 old_striplib \
33750 striplib \
33751 compiler_lib_search_dirs \
33752 predep_objects \
33753 postdep_objects \
33754 predeps \
33755 postdeps \
33756 compiler_lib_search_path \
33757 LD_CXX \
33758 reload_flag_CXX \
33759 compiler_CXX \
33760 lt_prog_compiler_no_builtin_flag_CXX \
33761 lt_prog_compiler_wl_CXX \
33762 lt_prog_compiler_pic_CXX \
33763 lt_prog_compiler_static_CXX \
33764 lt_cv_prog_compiler_c_o_CXX \
33765 export_dynamic_flag_spec_CXX \
33766 whole_archive_flag_spec_CXX \
33767 compiler_needs_object_CXX \
33768 with_gnu_ld_CXX \
33769 allow_undefined_flag_CXX \
33770 no_undefined_flag_CXX \
33771 hardcode_libdir_flag_spec_CXX \
33772 hardcode_libdir_flag_spec_ld_CXX \
33773 hardcode_libdir_separator_CXX \
33774 fix_srcfile_path_CXX \
33775 exclude_expsyms_CXX \
33776 include_expsyms_CXX \
33777 file_list_spec_CXX \
33778 compiler_lib_search_dirs_CXX \
33779 predep_objects_CXX \
33780 postdep_objects_CXX \
33781 predeps_CXX \
33782 postdeps_CXX \
33783 compiler_lib_search_path_CXX; do
33784     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33785     *[\\\\\\\`\\"\\\$]*)
33786       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33787       ;;
33788     *)
33789       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33790       ;;
33791     esac
33792 done
33793
33794 # Double-quote double-evaled strings.
33795 for var in reload_cmds \
33796 old_postinstall_cmds \
33797 old_postuninstall_cmds \
33798 old_archive_cmds \
33799 extract_expsyms_cmds \
33800 old_archive_from_new_cmds \
33801 old_archive_from_expsyms_cmds \
33802 archive_cmds \
33803 archive_expsym_cmds \
33804 module_cmds \
33805 module_expsym_cmds \
33806 export_symbols_cmds \
33807 prelink_cmds \
33808 postinstall_cmds \
33809 postuninstall_cmds \
33810 finish_cmds \
33811 sys_lib_search_path_spec \
33812 sys_lib_dlsearch_path_spec \
33813 reload_cmds_CXX \
33814 old_archive_cmds_CXX \
33815 old_archive_from_new_cmds_CXX \
33816 old_archive_from_expsyms_cmds_CXX \
33817 archive_cmds_CXX \
33818 archive_expsym_cmds_CXX \
33819 module_cmds_CXX \
33820 module_expsym_cmds_CXX \
33821 export_symbols_cmds_CXX \
33822 prelink_cmds_CXX; do
33823     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33824     *[\\\\\\\`\\"\\\$]*)
33825       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33826       ;;
33827     *)
33828       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33829       ;;
33830     esac
33831 done
33832
33833 ac_aux_dir='$ac_aux_dir'
33834 xsi_shell='$xsi_shell'
33835 lt_shell_append='$lt_shell_append'
33836
33837 # See if we are running on zsh, and set the options which allow our
33838 # commands through without removal of \ escapes INIT.
33839 if test -n "\${ZSH_VERSION+set}" ; then
33840    setopt NO_GLOB_SUBST
33841 fi
33842
33843
33844     PACKAGE='$PACKAGE'
33845     VERSION='$VERSION'
33846     TIMESTAMP='$TIMESTAMP'
33847     RM='$RM'
33848     ofile='$ofile'
33849
33850
33851
33852
33853
33854
33855 _ACEOF
33856
33857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33858
33859 # Handling of arguments.
33860 for ac_config_target in $ac_config_targets
33861 do
33862   case $ac_config_target in
33863     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33864     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33865     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33866     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33867     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33868     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33869     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33870     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33871     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33872     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33873     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33874     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33875     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33876     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33877     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33878     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33879     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33880     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33881     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33882     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33883     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33884     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33885     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33886     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33887     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33888     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33889     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33890     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33891     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33892     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33893     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33894     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33895     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33896     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33897     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33898     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33899     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33900     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33901     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33902     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33903     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33904     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33905     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33906     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33907     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33908     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33909     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33910     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33911     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33912     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33913
33914   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33915   esac
33916 done
33917
33918
33919 # If the user did not use the arguments to specify the items to instantiate,
33920 # then the envvar interface is used.  Set only those that are not.
33921 # We use the long form for the default assignment because of an extremely
33922 # bizarre bug on SunOS 4.1.3.
33923 if $ac_need_defaults; then
33924   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33925   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33926   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33927 fi
33928
33929 # Have a temporary directory for convenience.  Make it in the build tree
33930 # simply because there is no reason against having it here, and in addition,
33931 # creating and moving files from /tmp can sometimes cause problems.
33932 # Hook for its removal unless debugging.
33933 # Note that there is a small window in which the directory will not be cleaned:
33934 # after its creation but before its name has been assigned to `$tmp'.
33935 $debug ||
33936 {
33937   tmp=
33938   trap 'exit_status=$?
33939   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33940 ' 0
33941   trap 'as_fn_exit 1' 1 2 13 15
33942 }
33943 # Create a (secure) tmp directory for tmp files.
33944
33945 {
33946   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33947   test -n "$tmp" && test -d "$tmp"
33948 }  ||
33949 {
33950   tmp=./conf$$-$RANDOM
33951   (umask 077 && mkdir "$tmp")
33952 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33953
33954 # Set up the scripts for CONFIG_FILES section.
33955 # No need to generate them if there are no CONFIG_FILES.
33956 # This happens for instance with `./config.status config.h'.
33957 if test -n "$CONFIG_FILES"; then
33958
33959
33960 ac_cr=`echo X | tr X '\015'`
33961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33962 # But we know of no other shell where ac_cr would be empty at this
33963 # point, so we can use a bashism as a fallback.
33964 if test "x$ac_cr" = x; then
33965   eval ac_cr=\$\'\\r\'
33966 fi
33967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33969   ac_cs_awk_cr='\\r'
33970 else
33971   ac_cs_awk_cr=$ac_cr
33972 fi
33973
33974 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33975 _ACEOF
33976
33977
33978 {
33979   echo "cat >conf$$subs.awk <<_ACEOF" &&
33980   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33981   echo "_ACEOF"
33982 } >conf$$subs.sh ||
33983   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33985 ac_delim='%!_!# '
33986 for ac_last_try in false false false false false :; do
33987   . ./conf$$subs.sh ||
33988     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33989
33990   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33991   if test $ac_delim_n = $ac_delim_num; then
33992     break
33993   elif $ac_last_try; then
33994     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33995   else
33996     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33997   fi
33998 done
33999 rm -f conf$$subs.sh
34000
34001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34002 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34003 _ACEOF
34004 sed -n '
34005 h
34006 s/^/S["/; s/!.*/"]=/
34007 p
34008 g
34009 s/^[^!]*!//
34010 :repl
34011 t repl
34012 s/'"$ac_delim"'$//
34013 t delim
34014 :nl
34015 h
34016 s/\(.\{148\}\)..*/\1/
34017 t more1
34018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34019 p
34020 n
34021 b repl
34022 :more1
34023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34024 p
34025 g
34026 s/.\{148\}//
34027 t nl
34028 :delim
34029 h
34030 s/\(.\{148\}\)..*/\1/
34031 t more2
34032 s/["\\]/\\&/g; s/^/"/; s/$/"/
34033 p
34034 b
34035 :more2
34036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34037 p
34038 g
34039 s/.\{148\}//
34040 t delim
34041 ' <conf$$subs.awk | sed '
34042 /^[^""]/{
34043   N
34044   s/\n//
34045 }
34046 ' >>$CONFIG_STATUS || ac_write_fail=1
34047 rm -f conf$$subs.awk
34048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34049 _ACAWK
34050 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34051   for (key in S) S_is_set[key] = 1
34052   FS = "\a"
34053
34054 }
34055 {
34056   line = $ 0
34057   nfields = split(line, field, "@")
34058   substed = 0
34059   len = length(field[1])
34060   for (i = 2; i < nfields; i++) {
34061     key = field[i]
34062     keylen = length(key)
34063     if (S_is_set[key]) {
34064       value = S[key]
34065       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34066       len += length(value) + length(field[++i])
34067       substed = 1
34068     } else
34069       len += 1 + keylen
34070   }
34071
34072   print line
34073 }
34074
34075 _ACAWK
34076 _ACEOF
34077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34079   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34080 else
34081   cat
34082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34083   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34084 _ACEOF
34085
34086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34088 # trailing colons and then remove the whole line if VPATH becomes empty
34089 # (actually we leave an empty line to preserve line numbers).
34090 if test "x$srcdir" = x.; then
34091   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34092 h
34093 s///
34094 s/^/:/
34095 s/[      ]*$/:/
34096 s/:\$(srcdir):/:/g
34097 s/:\${srcdir}:/:/g
34098 s/:@srcdir@:/:/g
34099 s/^:*//
34100 s/:*$//
34101 x
34102 s/\(=[   ]*\).*/\1/
34103 G
34104 s/\n//
34105 s/^[^=]*=[       ]*$//
34106 }'
34107 fi
34108
34109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34110 fi # test -n "$CONFIG_FILES"
34111
34112 # Set up the scripts for CONFIG_HEADERS section.
34113 # No need to generate them if there are no CONFIG_HEADERS.
34114 # This happens for instance with `./config.status Makefile'.
34115 if test -n "$CONFIG_HEADERS"; then
34116 cat >"$tmp/defines.awk" <<\_ACAWK ||
34117 BEGIN {
34118 _ACEOF
34119
34120 # Transform confdefs.h into an awk script `defines.awk', embedded as
34121 # here-document in config.status, that substitutes the proper values into
34122 # config.h.in to produce config.h.
34123
34124 # Create a delimiter string that does not exist in confdefs.h, to ease
34125 # handling of long lines.
34126 ac_delim='%!_!# '
34127 for ac_last_try in false false :; do
34128   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34129   if test -z "$ac_t"; then
34130     break
34131   elif $ac_last_try; then
34132     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34133   else
34134     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34135   fi
34136 done
34137
34138 # For the awk script, D is an array of macro values keyed by name,
34139 # likewise P contains macro parameters if any.  Preserve backslash
34140 # newline sequences.
34141
34142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34143 sed -n '
34144 s/.\{148\}/&'"$ac_delim"'/g
34145 t rset
34146 :rset
34147 s/^[     ]*#[    ]*define[       ][      ]*/ /
34148 t def
34149 d
34150 :def
34151 s/\\$//
34152 t bsnl
34153 s/["\\]/\\&/g
34154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34155 D["\1"]=" \3"/p
34156 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34157 d
34158 :bsnl
34159 s/["\\]/\\&/g
34160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34161 D["\1"]=" \3\\\\\\n"\\/p
34162 t cont
34163 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34164 t cont
34165 d
34166 :cont
34167 n
34168 s/.\{148\}/&'"$ac_delim"'/g
34169 t clear
34170 :clear
34171 s/\\$//
34172 t bsnlc
34173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34174 d
34175 :bsnlc
34176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34177 b cont
34178 ' <confdefs.h | sed '
34179 s/'"$ac_delim"'/"\\\
34180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34181
34182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34183   for (key in D) D_is_set[key] = 1
34184   FS = "\a"
34185 }
34186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34187   line = \$ 0
34188   split(line, arg, " ")
34189   if (arg[1] == "#") {
34190     defundef = arg[2]
34191     mac1 = arg[3]
34192   } else {
34193     defundef = substr(arg[1], 2)
34194     mac1 = arg[2]
34195   }
34196   split(mac1, mac2, "(") #)
34197   macro = mac2[1]
34198   prefix = substr(line, 1, index(line, defundef) - 1)
34199   if (D_is_set[macro]) {
34200     # Preserve the white space surrounding the "#".
34201     print prefix "define", macro P[macro] D[macro]
34202     next
34203   } else {
34204     # Replace #undef with comments.  This is necessary, for example,
34205     # in the case of _POSIX_SOURCE, which is predefined and required
34206     # on some systems where configure will not decide to define it.
34207     if (defundef == "undef") {
34208       print "/*", prefix defundef, macro, "*/"
34209       next
34210     }
34211   }
34212 }
34213 { print }
34214 _ACAWK
34215 _ACEOF
34216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34217   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34218 fi # test -n "$CONFIG_HEADERS"
34219
34220
34221 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34222 shift
34223 for ac_tag
34224 do
34225   case $ac_tag in
34226   :[FHLC]) ac_mode=$ac_tag; continue;;
34227   esac
34228   case $ac_mode$ac_tag in
34229   :[FHL]*:*);;
34230   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34231   :[FH]-) ac_tag=-:-;;
34232   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34233   esac
34234   ac_save_IFS=$IFS
34235   IFS=:
34236   set x $ac_tag
34237   IFS=$ac_save_IFS
34238   shift
34239   ac_file=$1
34240   shift
34241
34242   case $ac_mode in
34243   :L) ac_source=$1;;
34244   :[FH])
34245     ac_file_inputs=
34246     for ac_f
34247     do
34248       case $ac_f in
34249       -) ac_f="$tmp/stdin";;
34250       *) # Look for the file first in the build tree, then in the source tree
34251          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34252          # because $ac_f cannot contain `:'.
34253          test -f "$ac_f" ||
34254            case $ac_f in
34255            [\\/$]*) false;;
34256            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34257            esac ||
34258            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34259       esac
34260       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34261       as_fn_append ac_file_inputs " '$ac_f'"
34262     done
34263
34264     # Let's still pretend it is `configure' which instantiates (i.e., don't
34265     # use $as_me), people would be surprised to read:
34266     #    /* config.h.  Generated by config.status.  */
34267     configure_input='Generated from '`
34268           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34269         `' by configure.'
34270     if test x"$ac_file" != x-; then
34271       configure_input="$ac_file.  $configure_input"
34272       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34273 $as_echo "$as_me: creating $ac_file" >&6;}
34274     fi
34275     # Neutralize special characters interpreted by sed in replacement strings.
34276     case $configure_input in #(
34277     *\&* | *\|* | *\\* )
34278        ac_sed_conf_input=`$as_echo "$configure_input" |
34279        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34280     *) ac_sed_conf_input=$configure_input;;
34281     esac
34282
34283     case $ac_tag in
34284     *:-:* | *:-) cat >"$tmp/stdin" \
34285       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34286     esac
34287     ;;
34288   esac
34289
34290   ac_dir=`$as_dirname -- "$ac_file" ||
34291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34292          X"$ac_file" : 'X\(//\)[^/]' \| \
34293          X"$ac_file" : 'X\(//\)$' \| \
34294          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34295 $as_echo X"$ac_file" |
34296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34297             s//\1/
34298             q
34299           }
34300           /^X\(\/\/\)[^/].*/{
34301             s//\1/
34302             q
34303           }
34304           /^X\(\/\/\)$/{
34305             s//\1/
34306             q
34307           }
34308           /^X\(\/\).*/{
34309             s//\1/
34310             q
34311           }
34312           s/.*/./; q'`
34313   as_dir="$ac_dir"; as_fn_mkdir_p
34314   ac_builddir=.
34315
34316 case "$ac_dir" in
34317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34318 *)
34319   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34320   # A ".." for each directory in $ac_dir_suffix.
34321   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34322   case $ac_top_builddir_sub in
34323   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34324   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34325   esac ;;
34326 esac
34327 ac_abs_top_builddir=$ac_pwd
34328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34329 # for backward compatibility:
34330 ac_top_builddir=$ac_top_build_prefix
34331
34332 case $srcdir in
34333   .)  # We are building in place.
34334     ac_srcdir=.
34335     ac_top_srcdir=$ac_top_builddir_sub
34336     ac_abs_top_srcdir=$ac_pwd ;;
34337   [\\/]* | ?:[\\/]* )  # Absolute name.
34338     ac_srcdir=$srcdir$ac_dir_suffix;
34339     ac_top_srcdir=$srcdir
34340     ac_abs_top_srcdir=$srcdir ;;
34341   *) # Relative name.
34342     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34343     ac_top_srcdir=$ac_top_build_prefix$srcdir
34344     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34345 esac
34346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34347
34348
34349   case $ac_mode in
34350   :F)
34351   #
34352   # CONFIG_FILE
34353   #
34354
34355   case $INSTALL in
34356   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34357   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34358   esac
34359   ac_MKDIR_P=$MKDIR_P
34360   case $MKDIR_P in
34361   [\\/$]* | ?:[\\/]* ) ;;
34362   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34363   esac
34364 _ACEOF
34365
34366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34367 # If the template does not know about datarootdir, expand it.
34368 # FIXME: This hack should be removed a few years after 2.60.
34369 ac_datarootdir_hack=; ac_datarootdir_seen=
34370 ac_sed_dataroot='
34371 /datarootdir/ {
34372   p
34373   q
34374 }
34375 /@datadir@/p
34376 /@docdir@/p
34377 /@infodir@/p
34378 /@localedir@/p
34379 /@mandir@/p'
34380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34381 *datarootdir*) ac_datarootdir_seen=yes;;
34382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34383   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34385 _ACEOF
34386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34387   ac_datarootdir_hack='
34388   s&@datadir@&$datadir&g
34389   s&@docdir@&$docdir&g
34390   s&@infodir@&$infodir&g
34391   s&@localedir@&$localedir&g
34392   s&@mandir@&$mandir&g
34393   s&\\\${datarootdir}&$datarootdir&g' ;;
34394 esac
34395 _ACEOF
34396
34397 # Neutralize VPATH when `$srcdir' = `.'.
34398 # Shell code in configure.ac might set extrasub.
34399 # FIXME: do we really want to maintain this feature?
34400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34401 ac_sed_extra="$ac_vpsub
34402 $extrasub
34403 _ACEOF
34404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34405 :t
34406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34407 s|@configure_input@|$ac_sed_conf_input|;t t
34408 s&@top_builddir@&$ac_top_builddir_sub&;t t
34409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34410 s&@srcdir@&$ac_srcdir&;t t
34411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34412 s&@top_srcdir@&$ac_top_srcdir&;t t
34413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34414 s&@builddir@&$ac_builddir&;t t
34415 s&@abs_builddir@&$ac_abs_builddir&;t t
34416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34417 s&@INSTALL@&$ac_INSTALL&;t t
34418 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34419 $ac_datarootdir_hack
34420 "
34421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34422   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34423
34424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34425   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34426   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34427   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34428 which seems to be undefined.  Please make sure it is defined" >&5
34429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34430 which seems to be undefined.  Please make sure it is defined" >&2;}
34431
34432   rm -f "$tmp/stdin"
34433   case $ac_file in
34434   -) cat "$tmp/out" && rm -f "$tmp/out";;
34435   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34436   esac \
34437   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34438  ;;
34439   :H)
34440   #
34441   # CONFIG_HEADER
34442   #
34443   if test x"$ac_file" != x-; then
34444     {
34445       $as_echo "/* $configure_input  */" \
34446       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34447     } >"$tmp/config.h" \
34448       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34449     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34450       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34452     else
34453       rm -f "$ac_file"
34454       mv "$tmp/config.h" "$ac_file" \
34455         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34456     fi
34457   else
34458     $as_echo "/* $configure_input  */" \
34459       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34460       || as_fn_error $? "could not create -" "$LINENO" 5
34461   fi
34462 # Compute "$ac_file"'s index in $config_headers.
34463 _am_arg="$ac_file"
34464 _am_stamp_count=1
34465 for _am_header in $config_headers :; do
34466   case $_am_header in
34467     $_am_arg | $_am_arg:* )
34468       break ;;
34469     * )
34470       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34471   esac
34472 done
34473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34475          X"$_am_arg" : 'X\(//\)[^/]' \| \
34476          X"$_am_arg" : 'X\(//\)$' \| \
34477          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34478 $as_echo X"$_am_arg" |
34479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34480             s//\1/
34481             q
34482           }
34483           /^X\(\/\/\)[^/].*/{
34484             s//\1/
34485             q
34486           }
34487           /^X\(\/\/\)$/{
34488             s//\1/
34489             q
34490           }
34491           /^X\(\/\).*/{
34492             s//\1/
34493             q
34494           }
34495           s/.*/./; q'`/stamp-h$_am_stamp_count
34496  ;;
34497
34498   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34499 $as_echo "$as_me: executing $ac_file commands" >&6;}
34500  ;;
34501   esac
34502
34503
34504   case $ac_file$ac_mode in
34505     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34506 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34507 ac_prefix_conf_PKG=`echo MagickCore`
34508 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34509 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
34510 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34511 if test ".$ac_prefix_conf_INP" = "."; then
34512    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34513      case "$ac_file" in
34514         *.h) ac_prefix_conf_INP=$ac_file ;;
34515         *)
34516      esac
34517      test ".$ac_prefix_conf_INP" != "." && break
34518    done
34519 fi
34520 if test ".$ac_prefix_conf_INP" = "."; then
34521    case "$ac_prefix_conf_OUT" in
34522       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34523       ;;
34524       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34525       ;;
34526       *) ac_prefix_conf_INP=config.h
34527       ;;
34528    esac
34529 fi
34530 if test -z "$ac_prefix_conf_PKG" ; then
34531    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34532 else
34533   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34534      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34535   fi fi
34536   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34537 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34538   if test -f $ac_prefix_conf_INP ; then
34539     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34540     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34541     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34542     echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34543     echo "#endif/" >>conftest.prefix
34544     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34545     echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34546     echo "#endif/" >> conftest.prefix
34547     # now executing _script on _DEF input to create _OUT output file
34548     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
34549     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34550     echo ' ' >>$tmp/pconfig.h
34551     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34552
34553     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34554     echo ' ' >>$tmp/pconfig.h
34555     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34556     echo "#endif" >>$tmp/pconfig.h
34557     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34558       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34559 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34560     else
34561       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34562 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34564          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34565          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34566 $as_echo X"$ac_prefix_conf_OUT" |
34567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34568             s//\1/
34569             q
34570           }
34571           /^X\(\/\/\)[^/].*/{
34572             s//\1/
34573             q
34574           }
34575           /^X\(\/\/\)$/{
34576             s//\1/
34577             q
34578           }
34579           /^X\(\/\).*/{
34580             s//\1/
34581             q
34582           }
34583           s/.*/./; q'`
34584       as_dir="$ac_dir"; as_fn_mkdir_p
34585       rm -f "$ac_prefix_conf_OUT"
34586       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34587     fi
34588     cp conftest.prefix _configs.sed
34589   else
34590     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34591   fi
34592   rm -f conftest.*
34593 fi
34594  ;;
34595     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34596   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34597   # are listed without --file.  Let's play safe and only enable the eval
34598   # if we detect the quoting.
34599   case $CONFIG_FILES in
34600   *\'*) eval set x "$CONFIG_FILES" ;;
34601   *)   set x $CONFIG_FILES ;;
34602   esac
34603   shift
34604   for mf
34605   do
34606     # Strip MF so we end up with the name of the file.
34607     mf=`echo "$mf" | sed -e 's/:.*$//'`
34608     # Check whether this is an Automake generated Makefile or not.
34609     # We used to match only the files named `Makefile.in', but
34610     # some people rename them; so instead we look at the file content.
34611     # Grep'ing the first line is not enough: some people post-process
34612     # each Makefile.in and add a new line on top of each file to say so.
34613     # Grep'ing the whole file is not good either: AIX grep has a line
34614     # limit of 2048, but all sed's we know have understand at least 4000.
34615     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34616       dirpart=`$as_dirname -- "$mf" ||
34617 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34618          X"$mf" : 'X\(//\)[^/]' \| \
34619          X"$mf" : 'X\(//\)$' \| \
34620          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34621 $as_echo X"$mf" |
34622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34623             s//\1/
34624             q
34625           }
34626           /^X\(\/\/\)[^/].*/{
34627             s//\1/
34628             q
34629           }
34630           /^X\(\/\/\)$/{
34631             s//\1/
34632             q
34633           }
34634           /^X\(\/\).*/{
34635             s//\1/
34636             q
34637           }
34638           s/.*/./; q'`
34639     else
34640       continue
34641     fi
34642     # Extract the definition of DEPDIR, am__include, and am__quote
34643     # from the Makefile without running `make'.
34644     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34645     test -z "$DEPDIR" && continue
34646     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34647     test -z "am__include" && continue
34648     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34649     # When using ansi2knr, U may be empty or an underscore; expand it
34650     U=`sed -n 's/^U = //p' < "$mf"`
34651     # Find all dependency output files, they are included files with
34652     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34653     # simplest approach to changing $(DEPDIR) to its actual value in the
34654     # expansion.
34655     for file in `sed -n "
34656       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34657          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34658       # Make sure the directory exists.
34659       test -f "$dirpart/$file" && continue
34660       fdir=`$as_dirname -- "$file" ||
34661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662          X"$file" : 'X\(//\)[^/]' \| \
34663          X"$file" : 'X\(//\)$' \| \
34664          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34665 $as_echo X"$file" |
34666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34667             s//\1/
34668             q
34669           }
34670           /^X\(\/\/\)[^/].*/{
34671             s//\1/
34672             q
34673           }
34674           /^X\(\/\/\)$/{
34675             s//\1/
34676             q
34677           }
34678           /^X\(\/\).*/{
34679             s//\1/
34680             q
34681           }
34682           s/.*/./; q'`
34683       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34684       # echo "creating $dirpart/$file"
34685       echo '# dummy' > "$dirpart/$file"
34686     done
34687   done
34688 }
34689  ;;
34690     "libtool":C)
34691
34692     # See if we are running on zsh, and set the options which allow our
34693     # commands through without removal of \ escapes.
34694     if test -n "${ZSH_VERSION+set}" ; then
34695       setopt NO_GLOB_SUBST
34696     fi
34697
34698     cfgfile="${ofile}T"
34699     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34700     $RM "$cfgfile"
34701
34702     cat <<_LT_EOF >> "$cfgfile"
34703 #! $SHELL
34704
34705 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34706 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34708 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34709 #
34710 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34711 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34712 #                 Inc.
34713 #   Written by Gordon Matzigkeit, 1996
34714 #
34715 #   This file is part of GNU Libtool.
34716 #
34717 # GNU Libtool is free software; you can redistribute it and/or
34718 # modify it under the terms of the GNU General Public License as
34719 # published by the Free Software Foundation; either version 2 of
34720 # the License, or (at your option) any later version.
34721 #
34722 # As a special exception to the GNU General Public License,
34723 # if you distribute this file as part of a program or library that
34724 # is built using GNU Libtool, you may include this file under the
34725 # same distribution terms that you use for the rest of that program.
34726 #
34727 # GNU Libtool is distributed in the hope that it will be useful,
34728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34730 # GNU General Public License for more details.
34731 #
34732 # You should have received a copy of the GNU General Public License
34733 # along with GNU Libtool; see the file COPYING.  If not, a copy
34734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34735 # obtained by writing to the Free Software Foundation, Inc.,
34736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34737
34738
34739 # The names of the tagged configurations supported by this script.
34740 available_tags="CXX "
34741
34742 # ### BEGIN LIBTOOL CONFIG
34743
34744 # A sed program that does not truncate output.
34745 SED=$lt_SED
34746
34747 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34748 Xsed="\$SED -e 1s/^X//"
34749
34750 # A grep program that handles long lines.
34751 GREP=$lt_GREP
34752
34753 # An ERE matcher.
34754 EGREP=$lt_EGREP
34755
34756 # A literal string matcher.
34757 FGREP=$lt_FGREP
34758
34759 # Shell to use when invoking shell scripts.
34760 SHELL=$lt_SHELL
34761
34762 # An echo program that protects backslashes.
34763 ECHO=$lt_ECHO
34764
34765 # Which release of libtool.m4 was used?
34766 macro_version=$macro_version
34767 macro_revision=$macro_revision
34768
34769 # Assembler program.
34770 AS=$lt_AS
34771
34772 # DLL creation program.
34773 DLLTOOL=$lt_DLLTOOL
34774
34775 # Object dumper program.
34776 OBJDUMP=$lt_OBJDUMP
34777
34778 # Whether or not to build shared libraries.
34779 build_libtool_libs=$enable_shared
34780
34781 # Whether or not to build static libraries.
34782 build_old_libs=$enable_static
34783
34784 # What type of objects to build.
34785 pic_mode=$pic_mode
34786
34787 # Whether or not to optimize for fast installation.
34788 fast_install=$enable_fast_install
34789
34790 # The host system.
34791 host_alias=$host_alias
34792 host=$host
34793 host_os=$host_os
34794
34795 # The build system.
34796 build_alias=$build_alias
34797 build=$build
34798 build_os=$build_os
34799
34800 # A BSD- or MS-compatible name lister.
34801 NM=$lt_NM
34802
34803 # Whether we need soft or hard links.
34804 LN_S=$lt_LN_S
34805
34806 # What is the maximum length of a command?
34807 max_cmd_len=$max_cmd_len
34808
34809 # Object file suffix (normally "o").
34810 objext=$ac_objext
34811
34812 # Executable file suffix (normally "").
34813 exeext=$exeext
34814
34815 # whether the shell understands "unset".
34816 lt_unset=$lt_unset
34817
34818 # turn spaces into newlines.
34819 SP2NL=$lt_lt_SP2NL
34820
34821 # turn newlines into spaces.
34822 NL2SP=$lt_lt_NL2SP
34823
34824 # Method to check whether dependent libraries are shared objects.
34825 deplibs_check_method=$lt_deplibs_check_method
34826
34827 # Command to use when deplibs_check_method == "file_magic".
34828 file_magic_cmd=$lt_file_magic_cmd
34829
34830 # The archiver.
34831 AR=$lt_AR
34832 AR_FLAGS=$lt_AR_FLAGS
34833
34834 # A symbol stripping program.
34835 STRIP=$lt_STRIP
34836
34837 # Commands used to install an old-style archive.
34838 RANLIB=$lt_RANLIB
34839 old_postinstall_cmds=$lt_old_postinstall_cmds
34840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34841
34842 # Whether to use a lock for old archive extraction.
34843 lock_old_archive_extraction=$lock_old_archive_extraction
34844
34845 # A C compiler.
34846 LTCC=$lt_CC
34847
34848 # LTCC compiler flags.
34849 LTCFLAGS=$lt_CFLAGS
34850
34851 # Take the output of nm and produce a listing of raw symbols and C names.
34852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34853
34854 # Transform the output of nm in a proper C declaration.
34855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34856
34857 # Transform the output of nm in a C name address pair.
34858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34859
34860 # Transform the output of nm in a C name address pair when lib prefix is needed.
34861 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34862
34863 # The name of the directory that contains temporary libtool files.
34864 objdir=$objdir
34865
34866 # Used to examine libraries when file_magic_cmd begins with "file".
34867 MAGIC_CMD=$MAGIC_CMD
34868
34869 # Must we lock files when doing compilation?
34870 need_locks=$lt_need_locks
34871
34872 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34873 DSYMUTIL=$lt_DSYMUTIL
34874
34875 # Tool to change global to local symbols on Mac OS X.
34876 NMEDIT=$lt_NMEDIT
34877
34878 # Tool to manipulate fat objects and archives on Mac OS X.
34879 LIPO=$lt_LIPO
34880
34881 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34882 OTOOL=$lt_OTOOL
34883
34884 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34885 OTOOL64=$lt_OTOOL64
34886
34887 # Old archive suffix (normally "a").
34888 libext=$libext
34889
34890 # Shared library suffix (normally ".so").
34891 shrext_cmds=$lt_shrext_cmds
34892
34893 # The commands to extract the exported symbol list from a shared archive.
34894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34895
34896 # Variables whose values should be saved in libtool wrapper scripts and
34897 # restored at link time.
34898 variables_saved_for_relink=$lt_variables_saved_for_relink
34899
34900 # Do we need the "lib" prefix for modules?
34901 need_lib_prefix=$need_lib_prefix
34902
34903 # Do we need a version for libraries?
34904 need_version=$need_version
34905
34906 # Library versioning type.
34907 version_type=$version_type
34908
34909 # Shared library runtime path variable.
34910 runpath_var=$runpath_var
34911
34912 # Shared library path variable.
34913 shlibpath_var=$shlibpath_var
34914
34915 # Is shlibpath searched before the hard-coded library search path?
34916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34917
34918 # Format of library name prefix.
34919 libname_spec=$lt_libname_spec
34920
34921 # List of archive names.  First name is the real one, the rest are links.
34922 # The last name is the one that the linker finds with -lNAME
34923 library_names_spec=$lt_library_names_spec
34924
34925 # The coded name of the library, if different from the real name.
34926 soname_spec=$lt_soname_spec
34927
34928 # Permission mode override for installation of shared libraries.
34929 install_override_mode=$lt_install_override_mode
34930
34931 # Command to use after installation of a shared archive.
34932 postinstall_cmds=$lt_postinstall_cmds
34933
34934 # Command to use after uninstallation of a shared archive.
34935 postuninstall_cmds=$lt_postuninstall_cmds
34936
34937 # Commands used to finish a libtool library installation in a directory.
34938 finish_cmds=$lt_finish_cmds
34939
34940 # As "finish_cmds", except a single script fragment to be evaled but
34941 # not shown.
34942 finish_eval=$lt_finish_eval
34943
34944 # Whether we should hardcode library paths into libraries.
34945 hardcode_into_libs=$hardcode_into_libs
34946
34947 # Compile-time system search path for libraries.
34948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34949
34950 # Run-time system search path for libraries.
34951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34952
34953 # Whether dlopen is supported.
34954 dlopen_support=$enable_dlopen
34955
34956 # Whether dlopen of programs is supported.
34957 dlopen_self=$enable_dlopen_self
34958
34959 # Whether dlopen of statically linked programs is supported.
34960 dlopen_self_static=$enable_dlopen_self_static
34961
34962 # Commands to strip libraries.
34963 old_striplib=$lt_old_striplib
34964 striplib=$lt_striplib
34965
34966
34967 # The linker used to build libraries.
34968 LD=$lt_LD
34969
34970 # How to create reloadable object files.
34971 reload_flag=$lt_reload_flag
34972 reload_cmds=$lt_reload_cmds
34973
34974 # Commands used to build an old-style archive.
34975 old_archive_cmds=$lt_old_archive_cmds
34976
34977 # A language specific compiler.
34978 CC=$lt_compiler
34979
34980 # Is the compiler the GNU compiler?
34981 with_gcc=$GCC
34982
34983 # Compiler flag to turn off builtin functions.
34984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34985
34986 # How to pass a linker flag through the compiler.
34987 wl=$lt_lt_prog_compiler_wl
34988
34989 # Additional compiler flags for building library objects.
34990 pic_flag=$lt_lt_prog_compiler_pic
34991
34992 # Compiler flag to prevent dynamic linking.
34993 link_static_flag=$lt_lt_prog_compiler_static
34994
34995 # Does compiler simultaneously support -c and -o options?
34996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34997
34998 # Whether or not to add -lc for building shared libraries.
34999 build_libtool_need_lc=$archive_cmds_need_lc
35000
35001 # Whether or not to disallow shared libs when runtime libs are static.
35002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35003
35004 # Compiler flag to allow reflexive dlopens.
35005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35006
35007 # Compiler flag to generate shared objects directly from archives.
35008 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35009
35010 # Whether the compiler copes with passing no objects directly.
35011 compiler_needs_object=$lt_compiler_needs_object
35012
35013 # Create an old-style archive from a shared archive.
35014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35015
35016 # Create a temporary old-style archive to link instead of a shared archive.
35017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35018
35019 # Commands used to build a shared archive.
35020 archive_cmds=$lt_archive_cmds
35021 archive_expsym_cmds=$lt_archive_expsym_cmds
35022
35023 # Commands used to build a loadable module if different from building
35024 # a shared archive.
35025 module_cmds=$lt_module_cmds
35026 module_expsym_cmds=$lt_module_expsym_cmds
35027
35028 # Whether we are building with GNU ld or not.
35029 with_gnu_ld=$lt_with_gnu_ld
35030
35031 # Flag that allows shared libraries with undefined symbols to be built.
35032 allow_undefined_flag=$lt_allow_undefined_flag
35033
35034 # Flag that enforces no undefined symbols.
35035 no_undefined_flag=$lt_no_undefined_flag
35036
35037 # Flag to hardcode \$libdir into a binary during linking.
35038 # This must work even if \$libdir does not exist
35039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35040
35041 # If ld is used when linking, flag to hardcode \$libdir into a binary
35042 # during linking.  This must work even if \$libdir does not exist.
35043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35044
35045 # Whether we need a single "-rpath" flag with a separated argument.
35046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35047
35048 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35049 # DIR into the resulting binary.
35050 hardcode_direct=$hardcode_direct
35051
35052 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35053 # DIR into the resulting binary and the resulting library dependency is
35054 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35055 # library is relocated.
35056 hardcode_direct_absolute=$hardcode_direct_absolute
35057
35058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35059 # into the resulting binary.
35060 hardcode_minus_L=$hardcode_minus_L
35061
35062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35063 # into the resulting binary.
35064 hardcode_shlibpath_var=$hardcode_shlibpath_var
35065
35066 # Set to "yes" if building a shared library automatically hardcodes DIR
35067 # into the library and all subsequent libraries and executables linked
35068 # against it.
35069 hardcode_automatic=$hardcode_automatic
35070
35071 # Set to yes if linker adds runtime paths of dependent libraries
35072 # to runtime path list.
35073 inherit_rpath=$inherit_rpath
35074
35075 # Whether libtool must link a program against all its dependency libraries.
35076 link_all_deplibs=$link_all_deplibs
35077
35078 # Fix the shell variable \$srcfile for the compiler.
35079 fix_srcfile_path=$lt_fix_srcfile_path
35080
35081 # Set to "yes" if exported symbols are required.
35082 always_export_symbols=$always_export_symbols
35083
35084 # The commands to list exported symbols.
35085 export_symbols_cmds=$lt_export_symbols_cmds
35086
35087 # Symbols that should not be listed in the preloaded symbols.
35088 exclude_expsyms=$lt_exclude_expsyms
35089
35090 # Symbols that must always be exported.
35091 include_expsyms=$lt_include_expsyms
35092
35093 # Commands necessary for linking programs (against libraries) with templates.
35094 prelink_cmds=$lt_prelink_cmds
35095
35096 # Specify filename containing input files.
35097 file_list_spec=$lt_file_list_spec
35098
35099 # How to hardcode a shared library path into an executable.
35100 hardcode_action=$hardcode_action
35101
35102 # The directories searched by this compiler when creating a shared library.
35103 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35104
35105 # Dependencies to place before and after the objects being linked to
35106 # create a shared library.
35107 predep_objects=$lt_predep_objects
35108 postdep_objects=$lt_postdep_objects
35109 predeps=$lt_predeps
35110 postdeps=$lt_postdeps
35111
35112 # The library search path used internally by the compiler when linking
35113 # a shared library.
35114 compiler_lib_search_path=$lt_compiler_lib_search_path
35115
35116 # ### END LIBTOOL CONFIG
35117
35118 _LT_EOF
35119
35120   case $host_os in
35121   aix3*)
35122     cat <<\_LT_EOF >> "$cfgfile"
35123 # AIX sometimes has problems with the GCC collect2 program.  For some
35124 # reason, if we set the COLLECT_NAMES environment variable, the problems
35125 # vanish in a puff of smoke.
35126 if test "X${COLLECT_NAMES+set}" != Xset; then
35127   COLLECT_NAMES=
35128   export COLLECT_NAMES
35129 fi
35130 _LT_EOF
35131     ;;
35132   esac
35133
35134
35135 ltmain="$ac_aux_dir/ltmain.sh"
35136
35137
35138   # We use sed instead of cat because bash on DJGPP gets confused if
35139   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35140   # text mode, it properly converts lines to CR/LF.  This bash problem
35141   # is reportedly fixed, but why not run on old versions too?
35142   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35143     || (rm -f "$cfgfile"; exit 1)
35144
35145   case $xsi_shell in
35146   yes)
35147     cat << \_LT_EOF >> "$cfgfile"
35148
35149 # func_dirname file append nondir_replacement
35150 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35151 # otherwise set result to NONDIR_REPLACEMENT.
35152 func_dirname ()
35153 {
35154   case ${1} in
35155     */*) func_dirname_result="${1%/*}${2}" ;;
35156     *  ) func_dirname_result="${3}" ;;
35157   esac
35158 }
35159
35160 # func_basename file
35161 func_basename ()
35162 {
35163   func_basename_result="${1##*/}"
35164 }
35165
35166 # func_dirname_and_basename file append nondir_replacement
35167 # perform func_basename and func_dirname in a single function
35168 # call:
35169 #   dirname:  Compute the dirname of FILE.  If nonempty,
35170 #             add APPEND to the result, otherwise set result
35171 #             to NONDIR_REPLACEMENT.
35172 #             value returned in "$func_dirname_result"
35173 #   basename: Compute filename of FILE.
35174 #             value retuned in "$func_basename_result"
35175 # Implementation must be kept synchronized with func_dirname
35176 # and func_basename. For efficiency, we do not delegate to
35177 # those functions but instead duplicate the functionality here.
35178 func_dirname_and_basename ()
35179 {
35180   case ${1} in
35181     */*) func_dirname_result="${1%/*}${2}" ;;
35182     *  ) func_dirname_result="${3}" ;;
35183   esac
35184   func_basename_result="${1##*/}"
35185 }
35186
35187 # func_stripname prefix suffix name
35188 # strip PREFIX and SUFFIX off of NAME.
35189 # PREFIX and SUFFIX must not contain globbing or regex special
35190 # characters, hashes, percent signs, but SUFFIX may contain a leading
35191 # dot (in which case that matches only a dot).
35192 func_stripname ()
35193 {
35194   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35195   # positional parameters, so assign one to ordinary parameter first.
35196   func_stripname_result=${3}
35197   func_stripname_result=${func_stripname_result#"${1}"}
35198   func_stripname_result=${func_stripname_result%"${2}"}
35199 }
35200
35201 # func_opt_split
35202 func_opt_split ()
35203 {
35204   func_opt_split_opt=${1%%=*}
35205   func_opt_split_arg=${1#*=}
35206 }
35207
35208 # func_lo2o object
35209 func_lo2o ()
35210 {
35211   case ${1} in
35212     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35213     *)    func_lo2o_result=${1} ;;
35214   esac
35215 }
35216
35217 # func_xform libobj-or-source
35218 func_xform ()
35219 {
35220   func_xform_result=${1%.*}.lo
35221 }
35222
35223 # func_arith arithmetic-term...
35224 func_arith ()
35225 {
35226   func_arith_result=$(( $* ))
35227 }
35228
35229 # func_len string
35230 # STRING may not start with a hyphen.
35231 func_len ()
35232 {
35233   func_len_result=${#1}
35234 }
35235
35236 _LT_EOF
35237     ;;
35238   *) # Bourne compatible functions.
35239     cat << \_LT_EOF >> "$cfgfile"
35240
35241 # func_dirname file append nondir_replacement
35242 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35243 # otherwise set result to NONDIR_REPLACEMENT.
35244 func_dirname ()
35245 {
35246   # Extract subdirectory from the argument.
35247   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35248   if test "X$func_dirname_result" = "X${1}"; then
35249     func_dirname_result="${3}"
35250   else
35251     func_dirname_result="$func_dirname_result${2}"
35252   fi
35253 }
35254
35255 # func_basename file
35256 func_basename ()
35257 {
35258   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35259 }
35260
35261
35262 # func_stripname prefix suffix name
35263 # strip PREFIX and SUFFIX off of NAME.
35264 # PREFIX and SUFFIX must not contain globbing or regex special
35265 # characters, hashes, percent signs, but SUFFIX may contain a leading
35266 # dot (in which case that matches only a dot).
35267 # func_strip_suffix prefix name
35268 func_stripname ()
35269 {
35270   case ${2} in
35271     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35272     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35273   esac
35274 }
35275
35276 # sed scripts:
35277 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35278 my_sed_long_arg='1s/^-[^=]*=//'
35279
35280 # func_opt_split
35281 func_opt_split ()
35282 {
35283   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35284   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35285 }
35286
35287 # func_lo2o object
35288 func_lo2o ()
35289 {
35290   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35291 }
35292
35293 # func_xform libobj-or-source
35294 func_xform ()
35295 {
35296   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35297 }
35298
35299 # func_arith arithmetic-term...
35300 func_arith ()
35301 {
35302   func_arith_result=`expr "$@"`
35303 }
35304
35305 # func_len string
35306 # STRING may not start with a hyphen.
35307 func_len ()
35308 {
35309   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35310 }
35311
35312 _LT_EOF
35313 esac
35314
35315 case $lt_shell_append in
35316   yes)
35317     cat << \_LT_EOF >> "$cfgfile"
35318
35319 # func_append var value
35320 # Append VALUE to the end of shell variable VAR.
35321 func_append ()
35322 {
35323   eval "$1+=\$2"
35324 }
35325 _LT_EOF
35326     ;;
35327   *)
35328     cat << \_LT_EOF >> "$cfgfile"
35329
35330 # func_append var value
35331 # Append VALUE to the end of shell variable VAR.
35332 func_append ()
35333 {
35334   eval "$1=\$$1\$2"
35335 }
35336
35337 _LT_EOF
35338     ;;
35339   esac
35340
35341
35342   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35343     || (rm -f "$cfgfile"; exit 1)
35344
35345   mv -f "$cfgfile" "$ofile" ||
35346     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35347   chmod +x "$ofile"
35348
35349
35350     cat <<_LT_EOF >> "$ofile"
35351
35352 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35353
35354 # The linker used to build libraries.
35355 LD=$lt_LD_CXX
35356
35357 # How to create reloadable object files.
35358 reload_flag=$lt_reload_flag_CXX
35359 reload_cmds=$lt_reload_cmds_CXX
35360
35361 # Commands used to build an old-style archive.
35362 old_archive_cmds=$lt_old_archive_cmds_CXX
35363
35364 # A language specific compiler.
35365 CC=$lt_compiler_CXX
35366
35367 # Is the compiler the GNU compiler?
35368 with_gcc=$GCC_CXX
35369
35370 # Compiler flag to turn off builtin functions.
35371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35372
35373 # How to pass a linker flag through the compiler.
35374 wl=$lt_lt_prog_compiler_wl_CXX
35375
35376 # Additional compiler flags for building library objects.
35377 pic_flag=$lt_lt_prog_compiler_pic_CXX
35378
35379 # Compiler flag to prevent dynamic linking.
35380 link_static_flag=$lt_lt_prog_compiler_static_CXX
35381
35382 # Does compiler simultaneously support -c and -o options?
35383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35384
35385 # Whether or not to add -lc for building shared libraries.
35386 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35387
35388 # Whether or not to disallow shared libs when runtime libs are static.
35389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35390
35391 # Compiler flag to allow reflexive dlopens.
35392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35393
35394 # Compiler flag to generate shared objects directly from archives.
35395 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35396
35397 # Whether the compiler copes with passing no objects directly.
35398 compiler_needs_object=$lt_compiler_needs_object_CXX
35399
35400 # Create an old-style archive from a shared archive.
35401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35402
35403 # Create a temporary old-style archive to link instead of a shared archive.
35404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35405
35406 # Commands used to build a shared archive.
35407 archive_cmds=$lt_archive_cmds_CXX
35408 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35409
35410 # Commands used to build a loadable module if different from building
35411 # a shared archive.
35412 module_cmds=$lt_module_cmds_CXX
35413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35414
35415 # Whether we are building with GNU ld or not.
35416 with_gnu_ld=$lt_with_gnu_ld_CXX
35417
35418 # Flag that allows shared libraries with undefined symbols to be built.
35419 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35420
35421 # Flag that enforces no undefined symbols.
35422 no_undefined_flag=$lt_no_undefined_flag_CXX
35423
35424 # Flag to hardcode \$libdir into a binary during linking.
35425 # This must work even if \$libdir does not exist
35426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35427
35428 # If ld is used when linking, flag to hardcode \$libdir into a binary
35429 # during linking.  This must work even if \$libdir does not exist.
35430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35431
35432 # Whether we need a single "-rpath" flag with a separated argument.
35433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35434
35435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35436 # DIR into the resulting binary.
35437 hardcode_direct=$hardcode_direct_CXX
35438
35439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35440 # DIR into the resulting binary and the resulting library dependency is
35441 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35442 # library is relocated.
35443 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35444
35445 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35446 # into the resulting binary.
35447 hardcode_minus_L=$hardcode_minus_L_CXX
35448
35449 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35450 # into the resulting binary.
35451 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35452
35453 # Set to "yes" if building a shared library automatically hardcodes DIR
35454 # into the library and all subsequent libraries and executables linked
35455 # against it.
35456 hardcode_automatic=$hardcode_automatic_CXX
35457
35458 # Set to yes if linker adds runtime paths of dependent libraries
35459 # to runtime path list.
35460 inherit_rpath=$inherit_rpath_CXX
35461
35462 # Whether libtool must link a program against all its dependency libraries.
35463 link_all_deplibs=$link_all_deplibs_CXX
35464
35465 # Fix the shell variable \$srcfile for the compiler.
35466 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35467
35468 # Set to "yes" if exported symbols are required.
35469 always_export_symbols=$always_export_symbols_CXX
35470
35471 # The commands to list exported symbols.
35472 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35473
35474 # Symbols that should not be listed in the preloaded symbols.
35475 exclude_expsyms=$lt_exclude_expsyms_CXX
35476
35477 # Symbols that must always be exported.
35478 include_expsyms=$lt_include_expsyms_CXX
35479
35480 # Commands necessary for linking programs (against libraries) with templates.
35481 prelink_cmds=$lt_prelink_cmds_CXX
35482
35483 # Specify filename containing input files.
35484 file_list_spec=$lt_file_list_spec_CXX
35485
35486 # How to hardcode a shared library path into an executable.
35487 hardcode_action=$hardcode_action_CXX
35488
35489 # The directories searched by this compiler when creating a shared library.
35490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35491
35492 # Dependencies to place before and after the objects being linked to
35493 # create a shared library.
35494 predep_objects=$lt_predep_objects_CXX
35495 postdep_objects=$lt_postdep_objects_CXX
35496 predeps=$lt_predeps_CXX
35497 postdeps=$lt_postdeps_CXX
35498
35499 # The library search path used internally by the compiler when linking
35500 # a shared library.
35501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35502
35503 # ### END LIBTOOL TAG CONFIG: CXX
35504 _LT_EOF
35505
35506  ;;
35507     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35508     "Magick-config.in":C) chmod +x magick/Magick-config ;;
35509     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35510     "Wand-config.in":C) chmod +x wand/Wand-config ;;
35511     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35512     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35513
35514   esac
35515 done # for ac_tag
35516
35517
35518 as_fn_exit 0
35519 _ACEOF
35520 ac_clean_files=$ac_clean_files_save
35521
35522 test $ac_write_fail = 0 ||
35523   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35524
35525
35526 # configure is writing to config.log, and then calls config.status.
35527 # config.status does its own redirection, appending to config.log.
35528 # Unfortunately, on DOS this fails, as config.log is still kept open
35529 # by configure, so config.status won't be able to write to it; its
35530 # output is simply discarded.  So we exec the FD to /dev/null,
35531 # effectively closing config.log, so it can be properly (re)opened and
35532 # appended to by config.status.  When coming back to configure, we
35533 # need to make the FD available again.
35534 if test "$no_create" != yes; then
35535   ac_cs_success=:
35536   ac_config_status_args=
35537   test "$silent" = yes &&
35538     ac_config_status_args="$ac_config_status_args --quiet"
35539   exec 5>/dev/null
35540   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35541   exec 5>>config.log
35542   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35543   # would make configure fail if this is the last instruction.
35544   $ac_cs_success || as_fn_exit 1
35545 fi
35546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35547   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35549 fi
35550
35551
35552 rm -f magick-version
35553
35554 result_dejavu_font_dir='none'
35555 if test "${dejavu_font_dir}x" != 'x'; then
35556     result_dejavu_font_dir=$dejavu_font_dir
35557 fi
35558
35559 result_ghostscript_font_dir='none'
35560 if test "${ghostscript_font_dir}x" != 'x'; then
35561     result_ghostscript_font_dir=$ghostscript_font_dir
35562 fi
35563
35564 result_windows_font_dir='none'
35565 if test "${windows_font_dir}x" != 'x'; then
35566     result_windows_font_dir=${windows_font_dir}
35567 fi
35568
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35570 ImageMagick is configured as follows. Please verify that this configuration
35571 matches your expectations.
35572
35573 Host system type: $host
35574 Build system type: $build
35575
35576                   Option                        Value
35577 -------------------------------------------------------------------------------
35578 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35579 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35580 Module support    --with-modules=$with_modules          $with_modules
35581 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35582 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35583 High Dynamic Range Imagery
35584                   --enable-hdri=$enable_hdri            $enable_hdri
35585
35586 Delegate Configuration:
35587 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35588 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35589 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35590 DJVU              --with-djvu=$with_djvu                $have_djvu
35591 DPS               --with-dps=$with_dps          $have_dps
35592 FFTW              --with-fftw=$with_fftw                $have_fftw
35593 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35594 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35595 FreeType          --with-freetype=$with_freetype                $have_freetype
35596 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35597 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35598 Ghostscript       None                          $PSDelegate ($GSVersion)
35599 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35600 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35601 Graphviz          --with-gvc=$with_gvc          $have_gvc
35602 JBIG              --with-jbig=$with_jbig                $have_jbig
35603 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35604 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35605 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35606 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35607 LQR               --with-lqr=$with_lqr          $have_lqr
35608 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35609 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35610 PERL              --with-perl=$with_perl                $have_perl
35611 PNG               --with-png=$with_png          $have_png
35612 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35613 TIFF              --with-tiff=$with_tiff                $have_tiff
35614 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35615 WMF               --with-wmf=$with_wmf          $have_wmf
35616 X11               --with-x=$with_x                      $have_x
35617 XML               --with-xml=$with_xml          $have_xml
35618 ZLIB              --with-zlib=$with_zlib                $have_zlib
35619
35620 X11 Configuration:
35621       X_CFLAGS        = $X_CFLAGS
35622       X_PRE_LIBS      = $X_PRE_LIBS
35623       X_LIBS          = $X_LIBS
35624       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35625
35626 Options used to compile and link:
35627   PREFIX          = $PREFIX_DIR
35628   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35629   VERSION         = $PACKAGE_VERSION
35630   CC              = $CC
35631   CFLAGS          = $CFLAGS
35632   CPPFLAGS        = $MAGICK_CPPFLAGS
35633   PCFLAGS         = $MAGICK_PCFLAGS
35634   DEFS            = $DEFS
35635   LDFLAGS         = $LDFLAGS
35636   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35637   LIBS            = $MAGICK_LIBS
35638   CXX             = $CXX
35639   CXXFLAGS        = $CXXFLAGS
35640   FEATURES        = $MAGICK_FEATURES
35641 " >&5
35642 $as_echo "
35643 ImageMagick is configured as follows. Please verify that this configuration
35644 matches your expectations.
35645
35646 Host system type: $host
35647 Build system type: $build
35648
35649                   Option                        Value
35650 -------------------------------------------------------------------------------
35651 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35652 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35653 Module support    --with-modules=$with_modules          $with_modules
35654 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35655 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35656 High Dynamic Range Imagery
35657                   --enable-hdri=$enable_hdri            $enable_hdri
35658
35659 Delegate Configuration:
35660 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35661 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35662 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35663 DJVU              --with-djvu=$with_djvu                $have_djvu
35664 DPS               --with-dps=$with_dps          $have_dps
35665 FFTW              --with-fftw=$with_fftw                $have_fftw
35666 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35667 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35668 FreeType          --with-freetype=$with_freetype                $have_freetype
35669 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35670 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35671 Ghostscript       None                          $PSDelegate ($GSVersion)
35672 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35673 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35674 Graphviz          --with-gvc=$with_gvc          $have_gvc
35675 JBIG              --with-jbig=$with_jbig                $have_jbig
35676 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35677 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35678 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35679 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35680 LQR               --with-lqr=$with_lqr          $have_lqr
35681 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35682 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35683 PERL              --with-perl=$with_perl                $have_perl
35684 PNG               --with-png=$with_png          $have_png
35685 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35686 TIFF              --with-tiff=$with_tiff                $have_tiff
35687 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35688 WMF               --with-wmf=$with_wmf          $have_wmf
35689 X11               --with-x=$with_x                      $have_x
35690 XML               --with-xml=$with_xml          $have_xml
35691 ZLIB              --with-zlib=$with_zlib                $have_zlib
35692
35693 X11 Configuration:
35694       X_CFLAGS        = $X_CFLAGS
35695       X_PRE_LIBS      = $X_PRE_LIBS
35696       X_LIBS          = $X_LIBS
35697       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35698
35699 Options used to compile and link:
35700   PREFIX          = $PREFIX_DIR
35701   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35702   VERSION         = $PACKAGE_VERSION
35703   CC              = $CC
35704   CFLAGS          = $CFLAGS
35705   CPPFLAGS        = $MAGICK_CPPFLAGS
35706   PCFLAGS         = $MAGICK_PCFLAGS
35707   DEFS            = $DEFS
35708   LDFLAGS         = $LDFLAGS
35709   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35710   LIBS            = $MAGICK_LIBS
35711   CXX             = $CXX
35712   CXXFLAGS        = $CXXFLAGS
35713   FEATURES        = $MAGICK_FEATURES
35714 " >&6; }