]> 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.4.
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.4'
570 PACKAGE_STRING='ImageMagick 6.6.4'
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 WEBPDelegate
677 UniconvertorDelegate
678 TXTDelegate
679 SCANDecodeDelegate
680 RSVGDecodeDelegate
681 RMDelegate
682 RLEEncodeDelegate
683 PSDelegate
684 POVDelegate
685 PGPDecodeDelegate
686 PCLDelegate
687 MVDelegate
688 MrSIDDecodeDelegate
689 MPEGEncodeDelegate
690 MPEGDecodeDelegate
691 MANDelegate
692 LaunchDelegate
693 LZWEncodeDelegate
694 LZWDecodeDelegate
695 LPRDelegate
696 LPDelegate
697 ILBMEncodeDelegate
698 ILBMDecodeDelegate
699 HTMLDecodeDelegate
700 HPGLDecodeDelegate
701 HDRDecodeDelegate
702 GnuplotDecodeDelegate
703 MogrifyDelegate
704 DisplayDelegate
705 ConvertDelegate
706 FIGDecodeDelegate
707 EditorDelegate
708 EchoDelegate
709 DVIDecodeDelegate
710 GVCDecodeDelegate
711 DNGDecodeDelegate
712 CatDelegate
713 CGMDecodeDelegate
714 BrowseDelegate
715 BZIPDelegate
716 BlenderDecodeDelegate
717 AVIDecodeDelegate
718 AutotraceDecodeDelegate
719 SHARE_CONFIGURE_PATH
720 SHARE_PATH
721 DOCUMENTATION_PATH
722 FILTER_PATH
723 CODER_PATH
724 CONFIGURE_PATH
725 LIBRARY_PATH
726 EXECUTABLE_PATH
727 PERLMAINCC
728 XML_LIBS
729 XML_DELEGATE_FALSE
730 XML_DELEGATE_TRUE
731 xml2_config
732 WMF_LIBS
733 WMF_DELEGATE_FALSE
734 WMF_DELEGATE_TRUE
735 TIFF_LIBS
736 TIFF_DELEGATE_FALSE
737 TIFF_DELEGATE_TRUE
738 CAIRO_DELEGATE_FALSE
739 CAIRO_DELEGATE_TRUE
740 RSVG_DELEGATE_FALSE
741 RSVG_DELEGATE_TRUE
742 CAIRO_SVG_LIBS
743 CAIRO_SVG_CFLAGS
744 RSVG_LIBS
745 RSVG_CFLAGS
746 PNG_LIBS
747 PNG_DELEGATE_FALSE
748 PNG_DELEGATE_TRUE
749 OPENEXR_DELEGATE_FALSE
750 OPENEXR_DELEGATE_TRUE
751 OPENEXR_LIBS
752 OPENEXR_CFLAGS
753 LQR_DELEGATE_FALSE
754 LQR_DELEGATE_TRUE
755 LQR_LIBS
756 LQR_CFLAGS
757 LCMS_LIBS
758 LCMS_DELEGATE_FALSE
759 LCMS_DELEGATE_TRUE
760 JP2_LIBS
761 JP2_DELEGATE_FALSE
762 JP2_DELEGATE_TRUE
763 JPEG_LIBS
764 JPEG_DELEGATE_FALSE
765 JPEG_DELEGATE_TRUE
766 JBIG_LIBS
767 JBIG_DELEGATE_FALSE
768 JBIG_DELEGATE_TRUE
769 GVC_DELEGATE_FALSE
770 GVC_DELEGATE_TRUE
771 GVC_LIBS
772 GVC_CFLAGS
773 GS_LIBS
774 GS_DELEGATE_FALSE
775 GS_DELEGATE_TRUE
776 FREETYPE_LIBS
777 FREETYPE_DELEGATE_FALSE
778 FREETYPE_DELEGATE_TRUE
779 freetype_config
780 FONTCONFIG_DELEGATE_FALSE
781 FONTCONFIG_DELEGATE_TRUE
782 FONTCONFIG_LIBS
783 FONTCONFIG_CFLAGS
784 FPX_LIBS
785 FPX_DELEGATE_FALSE
786 FPX_DELEGATE_TRUE
787 FFTW_LIBS
788 FFTW_DELEGATE_FALSE
789 FFTW_DELEGATE_TRUE
790 DJVU_LIBS
791 DJVU_DELEGATE_FALSE
792 DJVU_DELEGATE_TRUE
793 DPS_LIBS
794 DPS_DELEGATE_FALSE
795 DPS_DELEGATE_TRUE
796 AUTOTRACE_DELEGATE_FALSE
797 AUTOTRACE_DELEGATE_TRUE
798 AUTOTRACE_LIBS
799 AUTOTRACE_CFLAGS
800 LIB_DL
801 ZLIB_LIBS
802 ZLIB_DELEGATE_FALSE
803 ZLIB_DELEGATE_TRUE
804 XEXT_LIBS
805 X11_LIBS
806 X11_DELEGATE_FALSE
807 X11_DELEGATE_TRUE
808 X_EXTRA_LIBS
809 X_LIBS
810 X_PRE_LIBS
811 X_CFLAGS
812 XMKMF
813 BZLIB_LIBS
814 BZLIB_DELEGATE_FALSE
815 BZLIB_DELEGATE_TRUE
816 CCMALLOCDelegate
817 UMEM_LIBS
818 HasUMEM_FALSE
819 HasUMEM_TRUE
820 THREAD_LIBS
821 GOMP_LIBS
822 WITH_MAGICK_PLUS_PLUS_FALSE
823 WITH_MAGICK_PLUS_PLUS_TRUE
824 OPENMP_CXXFLAGS
825 MATH_LIBS
826 POW_LIB
827 LIBOBJS
828 UINTPTR_T
829 UINTMAX_T
830 UINT64_T
831 INT64_T
832 UINT32_T
833 INT32_T
834 UINT16_T
835 INT16_T
836 UINT8_T
837 INT8_T
838 LIBRARY_EXTRA_CPPFLAGS
839 MODULE_EXTRA_CPPFLAGS
840 LIBSTDCLDFLAGS
841 PERL_MAKE_OPTIONS
842 QUANTUM_DEPTH
843 MAINT
844 MAINTAINER_MODE_FALSE
845 MAINTAINER_MODE_TRUE
846 MAGICK_HDRI
847 DLLDFLAGS
848 WITH_LTDL_FALSE
849 WITH_LTDL_TRUE
850 WITH_MODULES_FALSE
851 WITH_MODULES_TRUE
852 WITH_SHARED_LIBS_FALSE
853 WITH_SHARED_LIBS_TRUE
854 LTDLOPEN
855 LT_CONFIG_H
856 CONVENIENCE_LTDL_FALSE
857 CONVENIENCE_LTDL_TRUE
858 INSTALL_LTDL_FALSE
859 INSTALL_LTDL_TRUE
860 ARGZ_H
861 sys_symbol_underscore
862 LIBADD_DL
863 LT_DLPREOPEN
864 LIBADD_DLD_LINK
865 LIBADD_SHL_LOAD
866 LIBADD_DLOPEN
867 LT_DLLOADERS
868 INCLTDL
869 LTDLINCL
870 LTDLDEPS
871 LIBLTDL
872 LIBTOOL_DEPS
873 CXXCPP
874 OTOOL64
875 OTOOL
876 LIPO
877 NMEDIT
878 DSYMUTIL
879 RANLIB
880 AR
881 NM
882 ac_ct_DUMPBIN
883 DUMPBIN
884 LIBTOOL
885 OBJDUMP
886 DLLTOOL
887 AS
888 LFS_CPPFLAGS
889 CL_LIBS
890 CL_CFLAGS
891 OPENMP_CFLAGS
892 PTHREAD_CFLAGS
893 PTHREAD_LIBS
894 PTHREAD_CC
895 ax_pthread_config
896 WinPathScript
897 USING_CL_FALSE
898 USING_CL_TRUE
899 CYGWIN_BUILD_FALSE
900 CYGWIN_BUILD_TRUE
901 WIN32_NATIVE_BUILD_FALSE
902 WIN32_NATIVE_BUILD_TRUE
903 WINGDI32_DELEGATE_FALSE
904 WINGDI32_DELEGATE_TRUE
905 GDI32_LIBS
906 PKG_CONFIG
907 LN_S
908 LD
909 FGREP
910 SED
911 am__fastdepCXX_FALSE
912 am__fastdepCXX_TRUE
913 CXXDEPMODE
914 ac_ct_CXX
915 CXXFLAGS
916 CXX
917 EGREP
918 GREP
919 CPP
920 am__fastdepCC_FALSE
921 am__fastdepCC_TRUE
922 CCDEPMODE
923 AMDEPBACKSLASH
924 AMDEP_FALSE
925 AMDEP_TRUE
926 am__quote
927 am__include
928 DEPDIR
929 OBJEXT
930 EXEEXT
931 ac_ct_CC
932 CPPFLAGS
933 LDFLAGS
934 CFLAGS
935 CC
936 DIRSEP
937 MAGICK_FILTER_MODULE_PATH
938 MAGICK_CONFIGURE_BUILD_PATH
939 MAGICK_CONFIGURE_SRC_PATH
940 MAGICK_CODER_MODULE_PATH
941 MAN_DIR
942 INFO_DIR
943 PERSISTINCLUDE_DIR
944 INCLUDE_DIR
945 LIB_DIR
946 LOCALSTATE_DIR
947 SHAREDSTATE_DIR
948 SYSCONF_DIR
949 DATA_DIR
950 LIBEXEC_DIR
951 SBIN_DIR
952 BIN_DIR
953 EXEC_PREFIX_DIR
954 PREFIX_DIR
955 CONFIG_STATUS_DEPENDENCIES
956 MAGICK_LIB_VERSION_NUMBER
957 MAGICK_LIB_VERSION_TEXT
958 MAGICK_LIB_VERSION
959 AM_BACKSLASH
960 AM_DEFAULT_VERBOSITY
961 am__untar
962 am__tar
963 AMTAR
964 am__leading_dot
965 SET_MAKE
966 AWK
967 mkdir_p
968 MKDIR_P
969 INSTALL_STRIP_PROGRAM
970 STRIP
971 install_sh
972 MAKEINFO
973 AUTOHEADER
974 AUTOMAKE
975 AUTOCONF
976 ACLOCAL
977 VERSION
978 PACKAGE
979 CYGPATH_W
980 am__isrc
981 INSTALL_DATA
982 INSTALL_SCRIPT
983 INSTALL_PROGRAM
984 PACKAGE_VERSION_ADDENDUM
985 PACKAGE_RELEASE_DATE
986 PACKAGE_LIB_VERSION_NUMBER
987 PACKAGE_LIB_VERSION
988 PACKAGE_CHANGE_DATE
989 PACKAGE_RELEASE
990 MAGICK_LIBRARY_VERSION_INFO
991 MAGICK_LIBRARY_CURRENT_MIN
992 MAGICK_LIBRARY_AGE
993 MAGICK_LIBRARY_REVISION
994 MAGICK_LIBRARY_CURRENT
995 MAGICK_TARGET_OS
996 MAGICK_TARGET_VENDOR
997 MAGICK_TARGET_CPU
998 target_os
999 target_vendor
1000 target_cpu
1001 target
1002 host_os
1003 host_vendor
1004 host_cpu
1005 host
1006 build_os
1007 build_vendor
1008 build_cpu
1009 build
1010 CONFIGURE_ARGS
1011 DISTCHECK_CONFIG_FLAGS
1012 target_alias
1013 host_alias
1014 build_alias
1015 LIBS
1016 ECHO_T
1017 ECHO_N
1018 ECHO_C
1019 DEFS
1020 mandir
1021 localedir
1022 libdir
1023 psdir
1024 pdfdir
1025 dvidir
1026 htmldir
1027 infodir
1028 docdir
1029 oldincludedir
1030 includedir
1031 localstatedir
1032 sharedstatedir
1033 sysconfdir
1034 datadir
1035 datarootdir
1036 libexecdir
1037 sbindir
1038 bindir
1039 program_transform_name
1040 prefix
1041 exec_prefix
1042 PACKAGE_URL
1043 PACKAGE_BUGREPORT
1044 PACKAGE_STRING
1045 PACKAGE_VERSION
1046 PACKAGE_TARNAME
1047 PACKAGE_NAME
1048 PATH_SEPARATOR
1049 SHELL'
1050 ac_subst_files=''
1051 ac_user_opts='
1052 enable_option_checking
1053 enable_silent_rules
1054 enable_dependency_tracking
1055 with_gnu_ld
1056 with_dmalloc
1057 enable_bounds_checking
1058 enable_osx_universal_binary
1059 with_threads
1060 enable_openmp
1061 enable_opencl
1062 enable_largefile
1063 enable_shared
1064 enable_static
1065 with_pic
1066 enable_fast_install
1067 enable_libtool_lock
1068 with_included_ltdl
1069 with_ltdl_include
1070 with_ltdl_lib
1071 enable_ltdl_install
1072 with_modules
1073 enable_delegate_build
1074 enable_deprecated
1075 enable_installed
1076 enable_cipher
1077 enable_embeddable
1078 enable_hdri
1079 enable_assert
1080 enable_maintainer_mode
1081 enable_ccmalloc
1082 enable_efence
1083 enable_prof
1084 enable_gprof
1085 enable_gcov
1086 with_method_prefix
1087 with_quantum_depth
1088 with_cache
1089 with_frozenpaths
1090 with_magick_plus_plus
1091 with_perl
1092 with_perl_options
1093 with_umem
1094 with_libstdc
1095 with_bzlib
1096 with_x
1097 with_zlib
1098 with_autotrace
1099 with_dps
1100 with_djvu
1101 with_dejavu_font_dir
1102 with_fftw
1103 with_fpx
1104 with_fontconfig
1105 with_freetype
1106 with_gslib
1107 with_fontpath
1108 with_gs_font_dir
1109 with_gvc
1110 with_jbig
1111 with_jpeg
1112 with_jp2
1113 with_lcms
1114 with_lcms2
1115 with_lqr
1116 with_openexr
1117 with_png
1118 with_rsvg
1119 with_tiff
1120 with_windows_font_dir
1121 with_wmf
1122 with_xml
1123 '
1124       ac_precious_vars='build_alias
1125 host_alias
1126 target_alias
1127 CC
1128 CFLAGS
1129 LDFLAGS
1130 LIBS
1131 CPPFLAGS
1132 CPP
1133 CXX
1134 CXXFLAGS
1135 CCC
1136 PKG_CONFIG
1137 CXXCPP
1138 XMKMF
1139 AUTOTRACE_CFLAGS
1140 AUTOTRACE_LIBS
1141 FONTCONFIG_CFLAGS
1142 FONTCONFIG_LIBS
1143 GVC_CFLAGS
1144 GVC_LIBS
1145 LQR_CFLAGS
1146 LQR_LIBS
1147 OPENEXR_CFLAGS
1148 OPENEXR_LIBS
1149 RSVG_CFLAGS
1150 RSVG_LIBS
1151 CAIRO_SVG_CFLAGS
1152 CAIRO_SVG_LIBS'
1153
1154
1155 # Initialize some variables set by options.
1156 ac_init_help=
1157 ac_init_version=false
1158 ac_unrecognized_opts=
1159 ac_unrecognized_sep=
1160 # The variables have the same names as the options, with
1161 # dashes changed to underlines.
1162 cache_file=/dev/null
1163 exec_prefix=NONE
1164 no_create=
1165 no_recursion=
1166 prefix=NONE
1167 program_prefix=NONE
1168 program_suffix=NONE
1169 program_transform_name=s,x,x,
1170 silent=
1171 site=
1172 srcdir=
1173 verbose=
1174 x_includes=NONE
1175 x_libraries=NONE
1176
1177 # Installation directory options.
1178 # These are left unexpanded so users can "make install exec_prefix=/foo"
1179 # and all the variables that are supposed to be based on exec_prefix
1180 # by default will actually change.
1181 # Use braces instead of parens because sh, perl, etc. also accept them.
1182 # (The list follows the same order as the GNU Coding Standards.)
1183 bindir='${exec_prefix}/bin'
1184 sbindir='${exec_prefix}/sbin'
1185 libexecdir='${exec_prefix}/libexec'
1186 datarootdir='${prefix}/share'
1187 datadir='${datarootdir}'
1188 sysconfdir='${prefix}/etc'
1189 sharedstatedir='${prefix}/com'
1190 localstatedir='${prefix}/var'
1191 includedir='${prefix}/include'
1192 oldincludedir='/usr/include'
1193 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1194 infodir='${datarootdir}/info'
1195 htmldir='${docdir}'
1196 dvidir='${docdir}'
1197 pdfdir='${docdir}'
1198 psdir='${docdir}'
1199 libdir='${exec_prefix}/lib'
1200 localedir='${datarootdir}/locale'
1201 mandir='${datarootdir}/man'
1202
1203 ac_prev=
1204 ac_dashdash=
1205 for ac_option
1206 do
1207   # If the previous option needs an argument, assign it.
1208   if test -n "$ac_prev"; then
1209     eval $ac_prev=\$ac_option
1210     ac_prev=
1211     continue
1212   fi
1213
1214   case $ac_option in
1215   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1216   *)    ac_optarg=yes ;;
1217   esac
1218
1219   # Accept the important Cygnus configure options, so we can diagnose typos.
1220
1221   case $ac_dashdash$ac_option in
1222   --)
1223     ac_dashdash=yes ;;
1224
1225   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1226     ac_prev=bindir ;;
1227   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1228     bindir=$ac_optarg ;;
1229
1230   -build | --build | --buil | --bui | --bu)
1231     ac_prev=build_alias ;;
1232   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1233     build_alias=$ac_optarg ;;
1234
1235   -cache-file | --cache-file | --cache-fil | --cache-fi \
1236   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1237     ac_prev=cache_file ;;
1238   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1239   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1240     cache_file=$ac_optarg ;;
1241
1242   --config-cache | -C)
1243     cache_file=config.cache ;;
1244
1245   -datadir | --datadir | --datadi | --datad)
1246     ac_prev=datadir ;;
1247   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1248     datadir=$ac_optarg ;;
1249
1250   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1251   | --dataroo | --dataro | --datar)
1252     ac_prev=datarootdir ;;
1253   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1254   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1255     datarootdir=$ac_optarg ;;
1256
1257   -disable-* | --disable-*)
1258     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261       as_fn_error $? "invalid feature name: $ac_useropt"
1262     ac_useropt_orig=$ac_useropt
1263     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264     case $ac_user_opts in
1265       *"
1266 "enable_$ac_useropt"
1267 "*) ;;
1268       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1269          ac_unrecognized_sep=', ';;
1270     esac
1271     eval enable_$ac_useropt=no ;;
1272
1273   -docdir | --docdir | --docdi | --doc | --do)
1274     ac_prev=docdir ;;
1275   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1276     docdir=$ac_optarg ;;
1277
1278   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1279     ac_prev=dvidir ;;
1280   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1281     dvidir=$ac_optarg ;;
1282
1283   -enable-* | --enable-*)
1284     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1285     # Reject names that are not valid shell variable names.
1286     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287       as_fn_error $? "invalid feature name: $ac_useropt"
1288     ac_useropt_orig=$ac_useropt
1289     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290     case $ac_user_opts in
1291       *"
1292 "enable_$ac_useropt"
1293 "*) ;;
1294       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1295          ac_unrecognized_sep=', ';;
1296     esac
1297     eval enable_$ac_useropt=\$ac_optarg ;;
1298
1299   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1300   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1301   | --exec | --exe | --ex)
1302     ac_prev=exec_prefix ;;
1303   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1304   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1305   | --exec=* | --exe=* | --ex=*)
1306     exec_prefix=$ac_optarg ;;
1307
1308   -gas | --gas | --ga | --g)
1309     # Obsolete; use --with-gas.
1310     with_gas=yes ;;
1311
1312   -help | --help | --hel | --he | -h)
1313     ac_init_help=long ;;
1314   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1315     ac_init_help=recursive ;;
1316   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1317     ac_init_help=short ;;
1318
1319   -host | --host | --hos | --ho)
1320     ac_prev=host_alias ;;
1321   -host=* | --host=* | --hos=* | --ho=*)
1322     host_alias=$ac_optarg ;;
1323
1324   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1325     ac_prev=htmldir ;;
1326   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1327   | --ht=*)
1328     htmldir=$ac_optarg ;;
1329
1330   -includedir | --includedir | --includedi | --included | --include \
1331   | --includ | --inclu | --incl | --inc)
1332     ac_prev=includedir ;;
1333   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1334   | --includ=* | --inclu=* | --incl=* | --inc=*)
1335     includedir=$ac_optarg ;;
1336
1337   -infodir | --infodir | --infodi | --infod | --info | --inf)
1338     ac_prev=infodir ;;
1339   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1340     infodir=$ac_optarg ;;
1341
1342   -libdir | --libdir | --libdi | --libd)
1343     ac_prev=libdir ;;
1344   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1345     libdir=$ac_optarg ;;
1346
1347   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1348   | --libexe | --libex | --libe)
1349     ac_prev=libexecdir ;;
1350   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1351   | --libexe=* | --libex=* | --libe=*)
1352     libexecdir=$ac_optarg ;;
1353
1354   -localedir | --localedir | --localedi | --localed | --locale)
1355     ac_prev=localedir ;;
1356   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1357     localedir=$ac_optarg ;;
1358
1359   -localstatedir | --localstatedir | --localstatedi | --localstated \
1360   | --localstate | --localstat | --localsta | --localst | --locals)
1361     ac_prev=localstatedir ;;
1362   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1363   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1364     localstatedir=$ac_optarg ;;
1365
1366   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1367     ac_prev=mandir ;;
1368   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1369     mandir=$ac_optarg ;;
1370
1371   -nfp | --nfp | --nf)
1372     # Obsolete; use --without-fp.
1373     with_fp=no ;;
1374
1375   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1376   | --no-cr | --no-c | -n)
1377     no_create=yes ;;
1378
1379   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1380   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1381     no_recursion=yes ;;
1382
1383   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1384   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1385   | --oldin | --oldi | --old | --ol | --o)
1386     ac_prev=oldincludedir ;;
1387   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1388   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1389   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1390     oldincludedir=$ac_optarg ;;
1391
1392   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1393     ac_prev=prefix ;;
1394   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1395     prefix=$ac_optarg ;;
1396
1397   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1398   | --program-pre | --program-pr | --program-p)
1399     ac_prev=program_prefix ;;
1400   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1401   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1402     program_prefix=$ac_optarg ;;
1403
1404   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1405   | --program-suf | --program-su | --program-s)
1406     ac_prev=program_suffix ;;
1407   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1408   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1409     program_suffix=$ac_optarg ;;
1410
1411   -program-transform-name | --program-transform-name \
1412   | --program-transform-nam | --program-transform-na \
1413   | --program-transform-n | --program-transform- \
1414   | --program-transform | --program-transfor \
1415   | --program-transfo | --program-transf \
1416   | --program-trans | --program-tran \
1417   | --progr-tra | --program-tr | --program-t)
1418     ac_prev=program_transform_name ;;
1419   -program-transform-name=* | --program-transform-name=* \
1420   | --program-transform-nam=* | --program-transform-na=* \
1421   | --program-transform-n=* | --program-transform-=* \
1422   | --program-transform=* | --program-transfor=* \
1423   | --program-transfo=* | --program-transf=* \
1424   | --program-trans=* | --program-tran=* \
1425   | --progr-tra=* | --program-tr=* | --program-t=*)
1426     program_transform_name=$ac_optarg ;;
1427
1428   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1429     ac_prev=pdfdir ;;
1430   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1431     pdfdir=$ac_optarg ;;
1432
1433   -psdir | --psdir | --psdi | --psd | --ps)
1434     ac_prev=psdir ;;
1435   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1436     psdir=$ac_optarg ;;
1437
1438   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439   | -silent | --silent | --silen | --sile | --sil)
1440     silent=yes ;;
1441
1442   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1443     ac_prev=sbindir ;;
1444   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1445   | --sbi=* | --sb=*)
1446     sbindir=$ac_optarg ;;
1447
1448   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1449   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1450   | --sharedst | --shareds | --shared | --share | --shar \
1451   | --sha | --sh)
1452     ac_prev=sharedstatedir ;;
1453   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1454   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1455   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1456   | --sha=* | --sh=*)
1457     sharedstatedir=$ac_optarg ;;
1458
1459   -site | --site | --sit)
1460     ac_prev=site ;;
1461   -site=* | --site=* | --sit=*)
1462     site=$ac_optarg ;;
1463
1464   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1465     ac_prev=srcdir ;;
1466   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1467     srcdir=$ac_optarg ;;
1468
1469   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1470   | --syscon | --sysco | --sysc | --sys | --sy)
1471     ac_prev=sysconfdir ;;
1472   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1473   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1474     sysconfdir=$ac_optarg ;;
1475
1476   -target | --target | --targe | --targ | --tar | --ta | --t)
1477     ac_prev=target_alias ;;
1478   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1479     target_alias=$ac_optarg ;;
1480
1481   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1482     verbose=yes ;;
1483
1484   -version | --version | --versio | --versi | --vers | -V)
1485     ac_init_version=: ;;
1486
1487   -with-* | --with-*)
1488     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1489     # Reject names that are not valid shell variable names.
1490     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1491       as_fn_error $? "invalid package name: $ac_useropt"
1492     ac_useropt_orig=$ac_useropt
1493     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494     case $ac_user_opts in
1495       *"
1496 "with_$ac_useropt"
1497 "*) ;;
1498       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1499          ac_unrecognized_sep=', ';;
1500     esac
1501     eval with_$ac_useropt=\$ac_optarg ;;
1502
1503   -without-* | --without-*)
1504     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1505     # Reject names that are not valid shell variable names.
1506     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1507       as_fn_error $? "invalid package name: $ac_useropt"
1508     ac_useropt_orig=$ac_useropt
1509     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510     case $ac_user_opts in
1511       *"
1512 "with_$ac_useropt"
1513 "*) ;;
1514       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1515          ac_unrecognized_sep=', ';;
1516     esac
1517     eval with_$ac_useropt=no ;;
1518
1519   --x)
1520     # Obsolete; use --with-x.
1521     with_x=yes ;;
1522
1523   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1524   | --x-incl | --x-inc | --x-in | --x-i)
1525     ac_prev=x_includes ;;
1526   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1527   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1528     x_includes=$ac_optarg ;;
1529
1530   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1531   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1532     ac_prev=x_libraries ;;
1533   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1534   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1535     x_libraries=$ac_optarg ;;
1536
1537   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1538 Try \`$0 --help' for more information"
1539     ;;
1540
1541   *=*)
1542     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1543     # Reject names that are not valid shell variable names.
1544     case $ac_envvar in #(
1545       '' | [0-9]* | *[!_$as_cr_alnum]* )
1546       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1547     esac
1548     eval $ac_envvar=\$ac_optarg
1549     export $ac_envvar ;;
1550
1551   *)
1552     # FIXME: should be removed in autoconf 3.0.
1553     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1554     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1555       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1556     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1557     ;;
1558
1559   esac
1560 done
1561
1562 if test -n "$ac_prev"; then
1563   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1564   as_fn_error $? "missing argument to $ac_option"
1565 fi
1566
1567 if test -n "$ac_unrecognized_opts"; then
1568   case $enable_option_checking in
1569     no) ;;
1570     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1571     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1572   esac
1573 fi
1574
1575 # Check all directory arguments for consistency.
1576 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577                 datadir sysconfdir sharedstatedir localstatedir includedir \
1578                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579                 libdir localedir mandir
1580 do
1581   eval ac_val=\$$ac_var
1582   # Remove trailing slashes.
1583   case $ac_val in
1584     */ )
1585       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586       eval $ac_var=\$ac_val;;
1587   esac
1588   # Be sure to have absolute directory names.
1589   case $ac_val in
1590     [\\/$]* | ?:[\\/]* )  continue;;
1591     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1592   esac
1593   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1594 done
1595
1596 # There might be people who depend on the old broken behavior: `$host'
1597 # used to hold the argument of --host etc.
1598 # FIXME: To remove some day.
1599 build=$build_alias
1600 host=$host_alias
1601 target=$target_alias
1602
1603 # FIXME: To remove some day.
1604 if test "x$host_alias" != x; then
1605   if test "x$build_alias" = x; then
1606     cross_compiling=maybe
1607     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1608     If a cross compiler is detected then cross compile mode will be used" >&2
1609   elif test "x$build_alias" != "x$host_alias"; then
1610     cross_compiling=yes
1611   fi
1612 fi
1613
1614 ac_tool_prefix=
1615 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1616
1617 test "$silent" = yes && exec 6>/dev/null
1618
1619
1620 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1621 ac_ls_di=`ls -di .` &&
1622 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1623   as_fn_error $? "working directory cannot be determined"
1624 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1625   as_fn_error $? "pwd does not report name of working directory"
1626
1627
1628 # Find the source files, if location was not specified.
1629 if test -z "$srcdir"; then
1630   ac_srcdir_defaulted=yes
1631   # Try the directory containing this script, then the parent directory.
1632   ac_confdir=`$as_dirname -- "$as_myself" ||
1633 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1634          X"$as_myself" : 'X\(//\)[^/]' \| \
1635          X"$as_myself" : 'X\(//\)$' \| \
1636          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1637 $as_echo X"$as_myself" |
1638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1639             s//\1/
1640             q
1641           }
1642           /^X\(\/\/\)[^/].*/{
1643             s//\1/
1644             q
1645           }
1646           /^X\(\/\/\)$/{
1647             s//\1/
1648             q
1649           }
1650           /^X\(\/\).*/{
1651             s//\1/
1652             q
1653           }
1654           s/.*/./; q'`
1655   srcdir=$ac_confdir
1656   if test ! -r "$srcdir/$ac_unique_file"; then
1657     srcdir=..
1658   fi
1659 else
1660   ac_srcdir_defaulted=no
1661 fi
1662 if test ! -r "$srcdir/$ac_unique_file"; then
1663   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1664   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1665 fi
1666 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1667 ac_abs_confdir=`(
1668         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1669         pwd)`
1670 # When building in place, set srcdir=.
1671 if test "$ac_abs_confdir" = "$ac_pwd"; then
1672   srcdir=.
1673 fi
1674 # Remove unnecessary trailing slashes from srcdir.
1675 # Double slashes in file names in object file debugging info
1676 # mess up M-x gdb in Emacs.
1677 case $srcdir in
1678 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1679 esac
1680 for ac_var in $ac_precious_vars; do
1681   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1682   eval ac_env_${ac_var}_value=\$${ac_var}
1683   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1684   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1685 done
1686
1687 #
1688 # Report the --help message.
1689 #
1690 if test "$ac_init_help" = "long"; then
1691   # Omit some internal or obsolete options to make the list less imposing.
1692   # This message is too long to be a string in the A/UX 3.1 sh.
1693   cat <<_ACEOF
1694 \`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
1695
1696 Usage: $0 [OPTION]... [VAR=VALUE]...
1697
1698 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1699 VAR=VALUE.  See below for descriptions of some of the useful variables.
1700
1701 Defaults for the options are specified in brackets.
1702
1703 Configuration:
1704   -h, --help              display this help and exit
1705       --help=short        display options specific to this package
1706       --help=recursive    display the short help of all the included packages
1707   -V, --version           display version information and exit
1708   -q, --quiet, --silent   do not print \`checking ...' messages
1709       --cache-file=FILE   cache test results in FILE [disabled]
1710   -C, --config-cache      alias for \`--cache-file=config.cache'
1711   -n, --no-create         do not create output files
1712       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1713
1714 Installation directories:
1715   --prefix=PREFIX         install architecture-independent files in PREFIX
1716                           [$ac_default_prefix]
1717   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1718                           [PREFIX]
1719
1720 By default, \`make install' will install all the files in
1721 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1722 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1723 for instance \`--prefix=\$HOME'.
1724
1725 For better control, use the options below.
1726
1727 Fine tuning of the installation directories:
1728   --bindir=DIR            user executables [EPREFIX/bin]
1729   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1730   --libexecdir=DIR        program executables [EPREFIX/libexec]
1731   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1732   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1733   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1734   --libdir=DIR            object code libraries [EPREFIX/lib]
1735   --includedir=DIR        C header files [PREFIX/include]
1736   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1737   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1738   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1739   --infodir=DIR           info documentation [DATAROOTDIR/info]
1740   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1741   --mandir=DIR            man documentation [DATAROOTDIR/man]
1742   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1743   --htmldir=DIR           html documentation [DOCDIR]
1744   --dvidir=DIR            dvi documentation [DOCDIR]
1745   --pdfdir=DIR            pdf documentation [DOCDIR]
1746   --psdir=DIR             ps documentation [DOCDIR]
1747 _ACEOF
1748
1749   cat <<\_ACEOF
1750
1751 Program names:
1752   --program-prefix=PREFIX            prepend PREFIX to installed program names
1753   --program-suffix=SUFFIX            append SUFFIX to installed program names
1754   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1755
1756 X features:
1757   --x-includes=DIR    X include files are in DIR
1758   --x-libraries=DIR   X library files are in DIR
1759
1760 System types:
1761   --build=BUILD     configure for building on BUILD [guessed]
1762   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1763   --target=TARGET   configure for building compilers for TARGET [HOST]
1764 _ACEOF
1765 fi
1766
1767 if test -n "$ac_init_help"; then
1768   case $ac_init_help in
1769      short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
1770    esac
1771   cat <<\_ACEOF
1772
1773 Optional Features:
1774   --disable-option-checking  ignore unrecognized --enable/--with options
1775   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1776   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1777   --enable-silent-rules          less verbose build output (undo: `make V=1')
1778   --disable-silent-rules         verbose build output (undo: `make V=0')
1779   --disable-dependency-tracking  speeds up one-time build
1780   --enable-dependency-tracking   do not reject slow dependency extractors
1781   --bounds-checking       enable run-time bounds-checking
1782   --enable-osx-universal-binary
1783                           build universal binary on OS X [[default=no]]
1784   --disable-openmp        do not use OpenMP
1785   --disable-opencl        do not use OpenCL
1786   --disable-largefile     omit support for large files
1787   --enable-shared[=PKGS]  build shared libraries [default=yes]
1788   --enable-static[=PKGS]  build static libraries [default=yes]
1789   --enable-fast-install[=PKGS]
1790                           optimize for fast installation [default=yes]
1791   --disable-libtool-lock  avoid locking (might break parallel builds)
1792   --enable-ltdl-install   install libltdl
1793   --enable-delegate-build look for delegate libraries in build directory
1794   --disable-deprecated    exclude deprecated methods in MagickCore and
1795                           MagickWand API's
1796   --disable-installed     Formally install ImageMagick under PREFIX
1797   --disable-cipher        disable enciphering and deciphering image pixels
1798   --enable-embeddable     enable self-contained, embeddable,
1799                           zero-configuration ImageMagick
1800   --enable-hdri           accurately represent the wide range of intensity
1801                           levels found in real scenes
1802   --disable-assert        disable assert() statements in build
1803   --enable-maintainer-mode  enable make rules and dependencies not useful
1804                           (and sometimes confusing) to the casual installer
1805   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1806   --enable-efence         enable 'efence' memory debug support
1807   --enable-prof           enable 'prof' profiling support
1808   --enable-gprof          enable 'gprof' profiling support
1809   --enable-gcov           enable 'gcov' profiling support
1810   --disable-assert        turn off assertions
1811
1812 Optional Packages:
1813   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1814   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1815   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1816   --with-dmalloc          use dmalloc, as in
1817                           http://www.dmalloc.com/dmalloc.tar.gz
1818   --without-threads       disable threads support
1819   --with-pic              try to use only PIC/non-PIC objects [default=use
1820                           both]
1821   --with-included-ltdl    use the GNU ltdl sources included here
1822   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1823   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1824   --with-modules          enable building dynamically loadable modules
1825   --with-method-prefix=PREFIX
1826                           prefix MagickCore API methods
1827   --with-quantum-depth=DEPTH
1828                           number of bits in a pixel quantum (default 16)
1829   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1830                           memory)
1831   --with-frozenpaths      freeze delegate paths
1832   --without-magick-plus-plus
1833                           disable build/install of Magick++
1834   --with-perl             enable build/install of PerlMagick
1835   --with-perl-options=OPTIONS
1836                           options to pass on command-line when generating
1837                           PerlMagick's build file
1838   --with-umem             enable umem memory allocation library support
1839   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1840   --without-bzlib         disable BZLIB support
1841   --with-x                use the X Window System
1842   --without-zlib          disable ZLIB support
1843   --with-autotrace        enable autotrace support
1844   --without-dps           disable Display Postscript support
1845   --without-djvu          disable DjVu support
1846   --with-dejavu-font-dir=DIR
1847                           DejaVu font directory
1848   --without-fftw          disable FFTW support
1849   --without-fpx           disable FlashPIX support
1850   --without-fontconfig    disable fontconfig support
1851   --without-freetype      disable Freetype support
1852   --without-gslib         enable Ghostscript library support
1853   --with-fontpath=DIR     prepend to default font search path
1854   --with-gs-font-dir=DIR  Ghostscript font directory
1855   --without-gvc           disable GVC support
1856   --without-jbig          disable JBIG support
1857   --without-jpeg          disable JPEG support
1858   --without-jp2           disable JPEG-2000 support
1859   --without-lcms          disable lcms (v1.1X) support
1860   --without-lcms2         disable lcms (v2.X) support
1861   --without-lqr           disable Liquid Rescale support
1862   --without-openexr       disable OpenEXR support
1863   --without-png           disable PNG support
1864   --without-rsvg          disable RSVG support
1865   --without-tiff          disable TIFF support
1866   --with-windows-font-dir=DIR
1867                           directory containing MS-Windows fonts
1868   --without-wmf           disable WMF support
1869   --without-xml           disable XML support
1870
1871 Some influential environment variables:
1872   CC          C compiler command
1873   CFLAGS      C compiler flags
1874   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1875               nonstandard directory <lib dir>
1876   LIBS        libraries to pass to the linker, e.g. -l<library>
1877   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1878               you have headers in a nonstandard directory <include dir>
1879   CPP         C preprocessor
1880   CXX         C++ compiler command
1881   CXXFLAGS    C++ compiler flags
1882   PKG_CONFIG  path to pkg-config utility
1883   CXXCPP      C++ preprocessor
1884   XMKMF       Path to xmkmf, Makefile generator for X Window System
1885   AUTOTRACE_CFLAGS
1886               C compiler flags for AUTOTRACE, overriding pkg-config
1887   AUTOTRACE_LIBS
1888               linker flags for AUTOTRACE, overriding pkg-config
1889   FONTCONFIG_CFLAGS
1890               C compiler flags for FONTCONFIG, overriding pkg-config
1891   FONTCONFIG_LIBS
1892               linker flags for FONTCONFIG, overriding pkg-config
1893   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1894   GVC_LIBS    linker flags for GVC, overriding pkg-config
1895   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1896   LQR_LIBS    linker flags for LQR, overriding pkg-config
1897   OPENEXR_CFLAGS
1898               C compiler flags for OPENEXR, overriding pkg-config
1899   OPENEXR_LIBS
1900               linker flags for OPENEXR, overriding pkg-config
1901   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1902   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1903   CAIRO_SVG_CFLAGS
1904               C compiler flags for CAIRO_SVG, overriding pkg-config
1905   CAIRO_SVG_LIBS
1906               linker flags for CAIRO_SVG, overriding pkg-config
1907
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1910
1911 Report bugs to <http://www.imagemagick.org>.
1912 _ACEOF
1913 ac_status=$?
1914 fi
1915
1916 if test "$ac_init_help" = "recursive"; then
1917   # If there are subdirs, report their specific --help.
1918   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919     test -d "$ac_dir" ||
1920       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1921       continue
1922     ac_builddir=.
1923
1924 case "$ac_dir" in
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 *)
1927   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928   # A ".." for each directory in $ac_dir_suffix.
1929   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930   case $ac_top_builddir_sub in
1931   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1933   esac ;;
1934 esac
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1939
1940 case $srcdir in
1941   .)  # We are building in place.
1942     ac_srcdir=.
1943     ac_top_srcdir=$ac_top_builddir_sub
1944     ac_abs_top_srcdir=$ac_pwd ;;
1945   [\\/]* | ?:[\\/]* )  # Absolute name.
1946     ac_srcdir=$srcdir$ac_dir_suffix;
1947     ac_top_srcdir=$srcdir
1948     ac_abs_top_srcdir=$srcdir ;;
1949   *) # Relative name.
1950     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951     ac_top_srcdir=$ac_top_build_prefix$srcdir
1952     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 esac
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955
1956     cd "$ac_dir" || { ac_status=$?; continue; }
1957     # Check for guested configure.
1958     if test -f "$ac_srcdir/configure.gnu"; then
1959       echo &&
1960       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961     elif test -f "$ac_srcdir/configure"; then
1962       echo &&
1963       $SHELL "$ac_srcdir/configure" --help=recursive
1964     else
1965       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966     fi || ac_status=$?
1967     cd "$ac_pwd" || { ac_status=$?; break; }
1968   done
1969 fi
1970
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1973   cat <<\_ACEOF
1974 ImageMagick configure 6.6.4
1975 generated by GNU Autoconf 2.66
1976
1977 Copyright (C) 2010 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1980 _ACEOF
1981   exit
1982 fi
1983
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1987
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   rm -f conftest.$ac_objext
1995   if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_compile") 2>conftest.err
2003   ac_status=$?
2004   if test -s conftest.err; then
2005     grep -v '^ *+' conftest.err >conftest.er1
2006     cat conftest.er1 >&5
2007     mv -f conftest.er1 conftest.err
2008   fi
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; } && {
2011          test -z "$ac_c_werror_flag" ||
2012          test ! -s conftest.err
2013        } && test -s conftest.$ac_objext; then :
2014   ac_retval=0
2015 else
2016   $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019         ac_retval=1
2020 fi
2021   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022   as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_compile
2025
2026 # ac_fn_c_try_cpp LINENO
2027 # ----------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_c_try_cpp ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040   ac_status=$?
2041   if test -s conftest.err; then
2042     grep -v '^ *+' conftest.err >conftest.er1
2043     cat conftest.er1 >&5
2044     mv -f conftest.er1 conftest.err
2045   fi
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; } >/dev/null && {
2048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049          test ! -s conftest.err
2050        }; then :
2051   ac_retval=0
2052 else
2053   $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056     ac_retval=1
2057 fi
2058   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059   as_fn_set_status $ac_retval
2060
2061 } # ac_fn_c_try_cpp
2062
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2067 # accordingly.
2068 ac_fn_c_check_header_mongrel ()
2069 {
2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071   if eval "test \"\${$3+set}\"" = set; then :
2072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval "test \"\${$3+set}\"" = set; then :
2075   $as_echo_n "(cached) " >&6
2076 fi
2077 eval ac_res=\$$3
2078                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 else
2081   # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $4
2087 #include <$2>
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090   ac_header_compiler=yes
2091 else
2092   ac_header_compiler=no
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2097
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 #include <$2>
2104 _ACEOF
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106   ac_header_preproc=yes
2107 else
2108   ac_header_preproc=no
2109 fi
2110 rm -f conftest.err conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2113
2114 # So?  What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116   yes:no: )
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121     ;;
2122   no:yes:* )
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ( $as_echo "## ----------------------------------------- ##
2134 ## Report this to http://www.imagemagick.org ##
2135 ## ----------------------------------------- ##"
2136      ) | sed "s/^/$as_me: WARNING:     /" >&2
2137     ;;
2138 esac
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval "test \"\${$3+set}\"" = set; then :
2142   $as_echo_n "(cached) " >&6
2143 else
2144   eval "$3=\$ac_header_compiler"
2145 fi
2146 eval ac_res=\$$3
2147                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 fi
2150   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151
2152 } # ac_fn_c_check_header_mongrel
2153
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2158 ac_fn_c_try_run ()
2159 {
2160   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161   if { { ac_try="$ac_link"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168   (eval "$ac_link") 2>&5
2169   ac_status=$?
2170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172   { { case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178   (eval "$ac_try") 2>&5
2179   ac_status=$?
2180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181   test $ac_status = 0; }; }; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: program exited with status $ac_status" >&5
2185        $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2187
2188        ac_retval=$ac_status
2189 fi
2190   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192   as_fn_set_status $ac_retval
2193
2194 } # ac_fn_c_try_run
2195
2196 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2197 # -------------------------------------------------------
2198 # Tests whether HEADER exists and can be compiled using the include files in
2199 # INCLUDES, setting the cache variable VAR accordingly.
2200 ac_fn_c_check_header_compile ()
2201 {
2202   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206   $as_echo_n "(cached) " >&6
2207 else
2208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h.  */
2210 $4
2211 #include <$2>
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214   eval "$3=yes"
2215 else
2216   eval "$3=no"
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 eval ac_res=\$$3
2221                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224
2225 } # ac_fn_c_check_header_compile
2226
2227 # ac_fn_cxx_try_compile LINENO
2228 # ----------------------------
2229 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2230 ac_fn_cxx_try_compile ()
2231 {
2232   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233   rm -f conftest.$ac_objext
2234   if { { ac_try="$ac_compile"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_compile") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } && {
2250          test -z "$ac_cxx_werror_flag" ||
2251          test ! -s conftest.err
2252        } && test -s conftest.$ac_objext; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258         ac_retval=1
2259 fi
2260   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261   as_fn_set_status $ac_retval
2262
2263 } # ac_fn_cxx_try_compile
2264
2265 # ac_fn_c_try_link LINENO
2266 # -----------------------
2267 # Try to link conftest.$ac_ext, and return whether this succeeded.
2268 ac_fn_c_try_link ()
2269 {
2270   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271   rm -f conftest.$ac_objext conftest$ac_exeext
2272   if { { ac_try="$ac_link"
2273 case "(($ac_try" in
2274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275   *) ac_try_echo=$ac_try;;
2276 esac
2277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278 $as_echo "$ac_try_echo"; } >&5
2279   (eval "$ac_link") 2>conftest.err
2280   ac_status=$?
2281   if test -s conftest.err; then
2282     grep -v '^ *+' conftest.err >conftest.er1
2283     cat conftest.er1 >&5
2284     mv -f conftest.er1 conftest.err
2285   fi
2286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287   test $ac_status = 0; } && {
2288          test -z "$ac_c_werror_flag" ||
2289          test ! -s conftest.err
2290        } && test -s conftest$ac_exeext && {
2291          test "$cross_compiling" = yes ||
2292          $as_test_x conftest$ac_exeext
2293        }; then :
2294   ac_retval=0
2295 else
2296   $as_echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299         ac_retval=1
2300 fi
2301   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2302   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2303   # interfere with the next link command; also delete a directory that is
2304   # left behind by Apple's compiler.  We do this before executing the actions.
2305   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2306   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307   as_fn_set_status $ac_retval
2308
2309 } # ac_fn_c_try_link
2310
2311 # ac_fn_c_check_func LINENO FUNC VAR
2312 # ----------------------------------
2313 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2314 ac_fn_c_check_func ()
2315 {
2316   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval "test \"\${$3+set}\"" = set; then :
2320   $as_echo_n "(cached) " >&6
2321 else
2322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h.  */
2324 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2326 #define $2 innocuous_$2
2327
2328 /* System header to define __stub macros and hopefully few prototypes,
2329     which can conflict with char $2 (); below.
2330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331     <limits.h> exists even on freestanding compilers.  */
2332
2333 #ifdef __STDC__
2334 # include <limits.h>
2335 #else
2336 # include <assert.h>
2337 #endif
2338
2339 #undef $2
2340
2341 /* Override any GCC internal prototype to avoid an error.
2342    Use char because int might match the return type of a GCC
2343    builtin and then its argument prototype would still apply.  */
2344 #ifdef __cplusplus
2345 extern "C"
2346 #endif
2347 char $2 ();
2348 /* The GNU C library defines this for functions which it implements
2349     to always fail with ENOSYS.  Some functions are actually named
2350     something starting with __ and the normal name is an alias.  */
2351 #if defined __stub_$2 || defined __stub___$2
2352 choke me
2353 #endif
2354
2355 int
2356 main ()
2357 {
2358 return $2 ();
2359   ;
2360   return 0;
2361 }
2362 _ACEOF
2363 if ac_fn_c_try_link "$LINENO"; then :
2364   eval "$3=yes"
2365 else
2366   eval "$3=no"
2367 fi
2368 rm -f core conftest.err conftest.$ac_objext \
2369     conftest$ac_exeext conftest.$ac_ext
2370 fi
2371 eval ac_res=\$$3
2372                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375
2376 } # ac_fn_c_check_func
2377
2378 # ac_fn_cxx_try_cpp LINENO
2379 # ------------------------
2380 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_cxx_try_cpp ()
2382 {
2383   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384   if { { ac_try="$ac_cpp conftest.$ac_ext"
2385 case "(($ac_try" in
2386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387   *) ac_try_echo=$ac_try;;
2388 esac
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2392   ac_status=$?
2393   if test -s conftest.err; then
2394     grep -v '^ *+' conftest.err >conftest.er1
2395     cat conftest.er1 >&5
2396     mv -f conftest.er1 conftest.err
2397   fi
2398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399   test $ac_status = 0; } >/dev/null && {
2400          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2401          test ! -s conftest.err
2402        }; then :
2403   ac_retval=0
2404 else
2405   $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408     ac_retval=1
2409 fi
2410   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411   as_fn_set_status $ac_retval
2412
2413 } # ac_fn_cxx_try_cpp
2414
2415 # ac_fn_cxx_try_link LINENO
2416 # -------------------------
2417 # Try to link conftest.$ac_ext, and return whether this succeeded.
2418 ac_fn_cxx_try_link ()
2419 {
2420   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421   rm -f conftest.$ac_objext conftest$ac_exeext
2422   if { { ac_try="$ac_link"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429   (eval "$ac_link") 2>conftest.err
2430   ac_status=$?
2431   if test -s conftest.err; then
2432     grep -v '^ *+' conftest.err >conftest.er1
2433     cat conftest.er1 >&5
2434     mv -f conftest.er1 conftest.err
2435   fi
2436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437   test $ac_status = 0; } && {
2438          test -z "$ac_cxx_werror_flag" ||
2439          test ! -s conftest.err
2440        } && test -s conftest$ac_exeext && {
2441          test "$cross_compiling" = yes ||
2442          $as_test_x conftest$ac_exeext
2443        }; then :
2444   ac_retval=0
2445 else
2446   $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449         ac_retval=1
2450 fi
2451   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2452   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2453   # interfere with the next link command; also delete a directory that is
2454   # left behind by Apple's compiler.  We do this before executing the actions.
2455   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2456   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457   as_fn_set_status $ac_retval
2458
2459 } # ac_fn_cxx_try_link
2460
2461 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2462 # ---------------------------------------------
2463 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2464 # accordingly.
2465 ac_fn_c_check_decl ()
2466 {
2467   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468   as_decl_name=`echo $2|sed 's/ *(.*//'`
2469   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2471 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2472 if eval "test \"\${$3+set}\"" = set; then :
2473   $as_echo_n "(cached) " >&6
2474 else
2475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 $4
2478 int
2479 main ()
2480 {
2481 #ifndef $as_decl_name
2482 #ifdef __cplusplus
2483   (void) $as_decl_use;
2484 #else
2485   (void) $as_decl_name;
2486 #endif
2487 #endif
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 if ac_fn_c_try_compile "$LINENO"; then :
2494   eval "$3=yes"
2495 else
2496   eval "$3=no"
2497 fi
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 fi
2500 eval ac_res=\$$3
2501                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504
2505 } # ac_fn_c_check_decl
2506
2507 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2508 # -------------------------------------------
2509 # Tests whether TYPE exists after having included INCLUDES, setting cache
2510 # variable VAR accordingly.
2511 ac_fn_c_check_type ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval "test \"\${$3+set}\"" = set; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   eval "$3=no"
2520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h.  */
2522 $4
2523 int
2524 main ()
2525 {
2526 if (sizeof ($2))
2527          return 0;
2528   ;
2529   return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h.  */
2535 $4
2536 int
2537 main ()
2538 {
2539 if (sizeof (($2)))
2540             return 0;
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546
2547 else
2548   eval "$3=yes"
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558
2559 } # ac_fn_c_check_type
2560
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2566 {
2567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if eval "test \"\${$4+set}\"" = set; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h.  */
2575 $5
2576 int
2577 main ()
2578 {
2579 static $2 ac_aggr;
2580 if (ac_aggr.$3)
2581 return 0;
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587   eval "$4=yes"
2588 else
2589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $5
2592 int
2593 main ()
2594 {
2595 static $2 ac_aggr;
2596 if (sizeof ac_aggr.$3)
2597 return 0;
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603   eval "$4=yes"
2604 else
2605   eval "$4=no"
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 eval ac_res=\$$4
2612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615
2616 } # ac_fn_c_check_member
2617
2618 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2619 # --------------------------------------------
2620 # Tries to find the compile-time value of EXPR in a program that includes
2621 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2622 # computed
2623 ac_fn_c_compute_int ()
2624 {
2625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626   if test "$cross_compiling" = yes; then
2627     # Depending upon the size, compute the lo and hi bounds.
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 int
2632 main ()
2633 {
2634 static int test_array [1 - 2 * !(($2) >= 0)];
2635 test_array [0] = 0
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642   ac_lo=0 ac_mid=0
2643   while :; do
2644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h.  */
2646 $4
2647 int
2648 main ()
2649 {
2650 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2651 test_array [0] = 0
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 if ac_fn_c_try_compile "$LINENO"; then :
2658   ac_hi=$ac_mid; break
2659 else
2660   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2661                         if test $ac_lo -le $ac_mid; then
2662                           ac_lo= ac_hi=
2663                           break
2664                         fi
2665                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2666 fi
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668   done
2669 else
2670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h.  */
2672 $4
2673 int
2674 main ()
2675 {
2676 static int test_array [1 - 2 * !(($2) < 0)];
2677 test_array [0] = 0
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684   ac_hi=-1 ac_mid=-1
2685   while :; do
2686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h.  */
2688 $4
2689 int
2690 main ()
2691 {
2692 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2693 test_array [0] = 0
2694
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700   ac_lo=$ac_mid; break
2701 else
2702   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2703                         if test $ac_mid -le $ac_hi; then
2704                           ac_lo= ac_hi=
2705                           break
2706                         fi
2707                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710   done
2711 else
2712   ac_lo= ac_hi=
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 fi
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 # Binary search between lo and hi bounds.
2718 while test "x$ac_lo" != "x$ac_hi"; do
2719   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h.  */
2722 $4
2723 int
2724 main ()
2725 {
2726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2727 test_array [0] = 0
2728
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 if ac_fn_c_try_compile "$LINENO"; then :
2734   ac_hi=$ac_mid
2735 else
2736   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 done
2740 case $ac_lo in #((
2741 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2742 '') ac_retval=1 ;;
2743 esac
2744   else
2745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h.  */
2747 $4
2748 static long int longval () { return $2; }
2749 static unsigned long int ulongval () { return $2; }
2750 #include <stdio.h>
2751 #include <stdlib.h>
2752 int
2753 main ()
2754 {
2755
2756   FILE *f = fopen ("conftest.val", "w");
2757   if (! f)
2758     return 1;
2759   if (($2) < 0)
2760     {
2761       long int i = longval ();
2762       if (i != ($2))
2763         return 1;
2764       fprintf (f, "%ld", i);
2765     }
2766   else
2767     {
2768       unsigned long int i = ulongval ();
2769       if (i != ($2))
2770         return 1;
2771       fprintf (f, "%lu", i);
2772     }
2773   /* Do not output a trailing newline, as this causes \r\n confusion
2774      on some platforms.  */
2775   return ferror (f) || fclose (f) != 0;
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 if ac_fn_c_try_run "$LINENO"; then :
2782   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2783 else
2784   ac_retval=1
2785 fi
2786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2787   conftest.$ac_objext conftest.beam conftest.$ac_ext
2788 rm -f conftest.val
2789
2790   fi
2791   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2792   as_fn_set_status $ac_retval
2793
2794 } # ac_fn_c_compute_int
2795
2796 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2797 # ---------------------------------------------------------
2798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2799 # the include files in INCLUDES and setting the cache variable VAR
2800 # accordingly.
2801 ac_fn_cxx_check_header_mongrel ()
2802 {
2803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804   if eval "test \"\${$3+set}\"" = set; then :
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2806 $as_echo_n "checking for $2... " >&6; }
2807 if eval "test \"\${$3+set}\"" = set; then :
2808   $as_echo_n "(cached) " >&6
2809 fi
2810 eval ac_res=\$$3
2811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812 $as_echo "$ac_res" >&6; }
2813 else
2814   # Is the header compilable?
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2816 $as_echo_n "checking $2 usability... " >&6; }
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h.  */
2819 $4
2820 #include <$2>
2821 _ACEOF
2822 if ac_fn_cxx_try_compile "$LINENO"; then :
2823   ac_header_compiler=yes
2824 else
2825   ac_header_compiler=no
2826 fi
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2829 $as_echo "$ac_header_compiler" >&6; }
2830
2831 # Is the header present?
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2833 $as_echo_n "checking $2 presence... " >&6; }
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h.  */
2836 #include <$2>
2837 _ACEOF
2838 if ac_fn_cxx_try_cpp "$LINENO"; then :
2839   ac_header_preproc=yes
2840 else
2841   ac_header_preproc=no
2842 fi
2843 rm -f conftest.err conftest.$ac_ext
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2845 $as_echo "$ac_header_preproc" >&6; }
2846
2847 # So?  What about this header?
2848 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2849   yes:no: )
2850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2854     ;;
2855   no:yes:* )
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2859 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2863 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2866 ( $as_echo "## ----------------------------------------- ##
2867 ## Report this to http://www.imagemagick.org ##
2868 ## ----------------------------------------- ##"
2869      ) | sed "s/^/$as_me: WARNING:     /" >&2
2870     ;;
2871 esac
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2873 $as_echo_n "checking for $2... " >&6; }
2874 if eval "test \"\${$3+set}\"" = set; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   eval "$3=\$ac_header_compiler"
2878 fi
2879 eval ac_res=\$$3
2880                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2881 $as_echo "$ac_res" >&6; }
2882 fi
2883   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2884
2885 } # ac_fn_cxx_check_header_mongrel
2886 cat >config.log <<_ACEOF
2887 This file contains any messages produced by compilers while
2888 running configure, to aid debugging if configure makes a mistake.
2889
2890 It was created by ImageMagick $as_me 6.6.4, which was
2891 generated by GNU Autoconf 2.66.  Invocation command line was
2892
2893   $ $0 $@
2894
2895 _ACEOF
2896 exec 5>>config.log
2897 {
2898 cat <<_ASUNAME
2899 ## --------- ##
2900 ## Platform. ##
2901 ## --------- ##
2902
2903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2908
2909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2910 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2911
2912 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2913 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2915 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2916 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2917 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2918 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2919
2920 _ASUNAME
2921
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     $as_echo "PATH: $as_dir"
2928   done
2929 IFS=$as_save_IFS
2930
2931 } >&5
2932
2933 cat >&5 <<_ACEOF
2934
2935
2936 ## ----------- ##
2937 ## Core tests. ##
2938 ## ----------- ##
2939
2940 _ACEOF
2941
2942
2943 # Keep a trace of the command line.
2944 # Strip out --no-create and --no-recursion so they do not pile up.
2945 # Strip out --silent because we don't want to record it for future runs.
2946 # Also quote any args containing shell meta-characters.
2947 # Make two passes to allow for proper duplicate-argument suppression.
2948 ac_configure_args=
2949 ac_configure_args0=
2950 ac_configure_args1=
2951 ac_must_keep_next=false
2952 for ac_pass in 1 2
2953 do
2954   for ac_arg
2955   do
2956     case $ac_arg in
2957     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2958     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2959     | -silent | --silent | --silen | --sile | --sil)
2960       continue ;;
2961     *\'*)
2962       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2963     esac
2964     case $ac_pass in
2965     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2966     2)
2967       as_fn_append ac_configure_args1 " '$ac_arg'"
2968       if test $ac_must_keep_next = true; then
2969         ac_must_keep_next=false # Got value, back to normal.
2970       else
2971         case $ac_arg in
2972           *=* | --config-cache | -C | -disable-* | --disable-* \
2973           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2974           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2975           | -with-* | --with-* | -without-* | --without-* | --x)
2976             case "$ac_configure_args0 " in
2977               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2978             esac
2979             ;;
2980           -* ) ac_must_keep_next=true ;;
2981         esac
2982       fi
2983       as_fn_append ac_configure_args " '$ac_arg'"
2984       ;;
2985     esac
2986   done
2987 done
2988 { ac_configure_args0=; unset ac_configure_args0;}
2989 { ac_configure_args1=; unset ac_configure_args1;}
2990
2991 # When interrupted or exit'd, cleanup temporary files, and complete
2992 # config.log.  We remove comments because anyway the quotes in there
2993 # would cause problems or look ugly.
2994 # WARNING: Use '\'' to represent an apostrophe within the trap.
2995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2996 trap 'exit_status=$?
2997   # Save into config.log some information that might help in debugging.
2998   {
2999     echo
3000
3001     $as_echo "## ---------------- ##
3002 ## Cache variables. ##
3003 ## ---------------- ##"
3004     echo
3005     # The following way of writing the cache mishandles newlines in values,
3006 (
3007   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3008     eval ac_val=\$$ac_var
3009     case $ac_val in #(
3010     *${as_nl}*)
3011       case $ac_var in #(
3012       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3014       esac
3015       case $ac_var in #(
3016       _ | IFS | as_nl) ;; #(
3017       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3018       *) { eval $ac_var=; unset $ac_var;} ;;
3019       esac ;;
3020     esac
3021   done
3022   (set) 2>&1 |
3023     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3024     *${as_nl}ac_space=\ *)
3025       sed -n \
3026         "s/'\''/'\''\\\\'\'''\''/g;
3027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3028       ;; #(
3029     *)
3030       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3031       ;;
3032     esac |
3033     sort
3034 )
3035     echo
3036
3037     $as_echo "## ----------------- ##
3038 ## Output variables. ##
3039 ## ----------------- ##"
3040     echo
3041     for ac_var in $ac_subst_vars
3042     do
3043       eval ac_val=\$$ac_var
3044       case $ac_val in
3045       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3046       esac
3047       $as_echo "$ac_var='\''$ac_val'\''"
3048     done | sort
3049     echo
3050
3051     if test -n "$ac_subst_files"; then
3052       $as_echo "## ------------------- ##
3053 ## File substitutions. ##
3054 ## ------------------- ##"
3055       echo
3056       for ac_var in $ac_subst_files
3057       do
3058         eval ac_val=\$$ac_var
3059         case $ac_val in
3060         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061         esac
3062         $as_echo "$ac_var='\''$ac_val'\''"
3063       done | sort
3064       echo
3065     fi
3066
3067     if test -s confdefs.h; then
3068       $as_echo "## ----------- ##
3069 ## confdefs.h. ##
3070 ## ----------- ##"
3071       echo
3072       cat confdefs.h
3073       echo
3074     fi
3075     test "$ac_signal" != 0 &&
3076       $as_echo "$as_me: caught signal $ac_signal"
3077     $as_echo "$as_me: exit $exit_status"
3078   } >&5
3079   rm -f core *.core core.conftest.* &&
3080     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3081     exit $exit_status
3082 ' 0
3083 for ac_signal in 1 2 13 15; do
3084   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3085 done
3086 ac_signal=0
3087
3088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3089 rm -f -r conftest* confdefs.h
3090
3091 $as_echo "/* confdefs.h */" > confdefs.h
3092
3093 # Predefined preprocessor variables.
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_NAME "$PACKAGE_NAME"
3097 _ACEOF
3098
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3101 _ACEOF
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3105 _ACEOF
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_STRING "$PACKAGE_STRING"
3109 _ACEOF
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3113 _ACEOF
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_URL "$PACKAGE_URL"
3117 _ACEOF
3118
3119
3120 # Let the site file select an alternate cache file if it wants to.
3121 # Prefer an explicitly selected file to automatically selected ones.
3122 ac_site_file1=NONE
3123 ac_site_file2=NONE
3124 if test -n "$CONFIG_SITE"; then
3125   # We do not want a PATH search for config.site.
3126   case $CONFIG_SITE in #((
3127     -*)  ac_site_file1=./$CONFIG_SITE;;
3128     */*) ac_site_file1=$CONFIG_SITE;;
3129     *)   ac_site_file1=./$CONFIG_SITE;;
3130   esac
3131 elif test "x$prefix" != xNONE; then
3132   ac_site_file1=$prefix/share/config.site
3133   ac_site_file2=$prefix/etc/config.site
3134 else
3135   ac_site_file1=$ac_default_prefix/share/config.site
3136   ac_site_file2=$ac_default_prefix/etc/config.site
3137 fi
3138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3139 do
3140   test "x$ac_site_file" = xNONE && continue
3141   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3142     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144     sed 's/^/| /' "$ac_site_file" >&5
3145     . "$ac_site_file" \
3146       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "failed to load site script $ac_site_file
3149 See \`config.log' for more details" "$LINENO" 5; }
3150   fi
3151 done
3152
3153 if test -r "$cache_file"; then
3154   # Some versions of bash will fail to source /dev/null (special files
3155   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3156   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3157     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3158 $as_echo "$as_me: loading cache $cache_file" >&6;}
3159     case $cache_file in
3160       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3161       *)                      . "./$cache_file";;
3162     esac
3163   fi
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3166 $as_echo "$as_me: creating cache $cache_file" >&6;}
3167   >$cache_file
3168 fi
3169
3170 as_fn_append ac_header_list " stdlib.h"
3171 as_fn_append ac_header_list " unistd.h"
3172 as_fn_append ac_header_list " sys/param.h"
3173 # Check that the precious variables saved in the cache have kept the same
3174 # value.
3175 ac_cache_corrupted=false
3176 for ac_var in $ac_precious_vars; do
3177   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3178   eval ac_new_set=\$ac_env_${ac_var}_set
3179   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3180   eval ac_new_val=\$ac_env_${ac_var}_value
3181   case $ac_old_set,$ac_new_set in
3182     set,)
3183       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3185       ac_cache_corrupted=: ;;
3186     ,set)
3187       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3189       ac_cache_corrupted=: ;;
3190     ,);;
3191     *)
3192       if test "x$ac_old_val" != "x$ac_new_val"; then
3193         # differences in whitespace do not lead to failure.
3194         ac_old_val_w=`echo x $ac_old_val`
3195         ac_new_val_w=`echo x $ac_new_val`
3196         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3197           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3199           ac_cache_corrupted=:
3200         else
3201           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3203           eval $ac_var=\$ac_old_val
3204         fi
3205         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3206 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3207         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3208 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3209       fi;;
3210   esac
3211   # Pass precious variables to config.status.
3212   if test "$ac_new_set" = set; then
3213     case $ac_new_val in
3214     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3215     *) ac_arg=$ac_var=$ac_new_val ;;
3216     esac
3217     case " $ac_configure_args " in
3218       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3219       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3220     esac
3221   fi
3222 done
3223 if $ac_cache_corrupted; then
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3228   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3229 fi
3230 ## -------------------- ##
3231 ## Main body of script. ##
3232 ## -------------------- ##
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240
3241
3242 ac_aux_dir=
3243 for ac_dir in config "$srcdir"/config; do
3244   if test -f "$ac_dir/install-sh"; then
3245     ac_aux_dir=$ac_dir
3246     ac_install_sh="$ac_aux_dir/install-sh -c"
3247     break
3248   elif test -f "$ac_dir/install.sh"; then
3249     ac_aux_dir=$ac_dir
3250     ac_install_sh="$ac_aux_dir/install.sh -c"
3251     break
3252   elif test -f "$ac_dir/shtool"; then
3253     ac_aux_dir=$ac_dir
3254     ac_install_sh="$ac_aux_dir/shtool install -c"
3255     break
3256   fi
3257 done
3258 if test -z "$ac_aux_dir"; then
3259   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3260 fi
3261
3262 # These three variables are undocumented and unsupported,
3263 # and are intended to be withdrawn in a future Autoconf release.
3264 # They can cause serious problems if a builder's source tree is in a directory
3265 # whose full name contains unusual characters.
3266 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3267 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3268 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3269
3270
3271
3272
3273 ac_config_headers="$ac_config_headers config/config.h"
3274
3275
3276 ac_config_commands="$ac_config_commands magick/magick-config.h"
3277
3278 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"
3279
3280
3281 #
3282 # Save initial user-tunable values
3283 #
3284 USER_LIBS=$LIBS
3285 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3286   eval isset=\${$var+set}
3287     if test "$isset" = 'set'; then
3288         eval val=$`echo $var`
3289         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3290     fi
3291 done
3292
3293
3294 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3295
3296
3297 # Source file containing package/library versioning information.
3298 . ${srcdir}/version.sh
3299
3300 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3301 # Make sure we can run config.sub.
3302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3303   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3304
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 $as_echo_n "checking build system type... " >&6; }
3307 if test "${ac_cv_build+set}" = set; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   ac_build_alias=$build_alias
3311 test "x$ac_build_alias" = x &&
3312   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313 test "x$ac_build_alias" = x &&
3314   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3316   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3317
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320 $as_echo "$ac_cv_build" >&6; }
3321 case $ac_cv_build in
3322 *-*-*) ;;
3323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3324 esac
3325 build=$ac_cv_build
3326 ac_save_IFS=$IFS; IFS='-'
3327 set x $ac_cv_build
3328 shift
3329 build_cpu=$1
3330 build_vendor=$2
3331 shift; shift
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3334 build_os=$*
3335 IFS=$ac_save_IFS
3336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3337
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340 $as_echo_n "checking host system type... " >&6; }
3341 if test "${ac_cv_host+set}" = set; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if test "x$host_alias" = x; then
3345   ac_cv_host=$ac_cv_build
3346 else
3347   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3348     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3349 fi
3350
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 $as_echo "$ac_cv_host" >&6; }
3354 case $ac_cv_host in
3355 *-*-*) ;;
3356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3357 esac
3358 host=$ac_cv_host
3359 ac_save_IFS=$IFS; IFS='-'
3360 set x $ac_cv_host
3361 shift
3362 host_cpu=$1
3363 host_vendor=$2
3364 shift; shift
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3367 host_os=$*
3368 IFS=$ac_save_IFS
3369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370
3371
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3373 $as_echo_n "checking target system type... " >&6; }
3374 if test "${ac_cv_target+set}" = set; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   if test "x$target_alias" = x; then
3378   ac_cv_target=$ac_cv_host
3379 else
3380   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3381     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3382 fi
3383
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3386 $as_echo "$ac_cv_target" >&6; }
3387 case $ac_cv_target in
3388 *-*-*) ;;
3389 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3390 esac
3391 target=$ac_cv_target
3392 ac_save_IFS=$IFS; IFS='-'
3393 set x $ac_cv_target
3394 shift
3395 target_cpu=$1
3396 target_vendor=$2
3397 shift; shift
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3400 target_os=$*
3401 IFS=$ac_save_IFS
3402 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3403
3404
3405 # The aliases save the names the user supplied, while $host etc.
3406 # will get canonicalized.
3407 test -n "$target_alias" &&
3408   test "$program_prefix$program_suffix$program_transform_name" = \
3409     NONENONEs,x,x, &&
3410   program_prefix=${target_alias}-
3411
3412
3413
3414
3415
3416 MAGICK_TARGET_CPU=$target_cpu
3417
3418
3419 MAGICK_TARGET_VENDOR=$target_vendor
3420
3421
3422 MAGICK_TARGET_OS=$target_os
3423
3424
3425 # Substitute library versioning
3426 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3427
3428 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3429
3430
3431
3432 # Ensure that make can run correctly
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3434 $as_echo_n "checking whether build environment is sane... " >&6; }
3435 # Just in case
3436 sleep 1
3437 echo timestamp > conftest.file
3438 # Reject unsafe characters in $srcdir or the absolute working directory
3439 # name.  Accept space and tab only in the latter.
3440 am_lf='
3441 '
3442 case `pwd` in
3443   *[\\\"\#\$\&\'\`$am_lf]*)
3444     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3445 esac
3446 case $srcdir in
3447   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3448     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3449 esac
3450
3451 # Do `set' in a subshell so we don't clobber the current shell's
3452 # arguments.  Must try -L first in case configure is actually a
3453 # symlink; some systems play weird games with the mod time of symlinks
3454 # (eg FreeBSD returns the mod time of the symlink's containing
3455 # directory).
3456 if (
3457    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3458    if test "$*" = "X"; then
3459       # -L didn't work.
3460       set X `ls -t "$srcdir/configure" conftest.file`
3461    fi
3462    rm -f conftest.file
3463    if test "$*" != "X $srcdir/configure conftest.file" \
3464       && test "$*" != "X conftest.file $srcdir/configure"; then
3465
3466       # If neither matched, then we have a broken ls.  This can happen
3467       # if, for instance, CONFIG_SHELL is bash and it inherits a
3468       # broken ls alias from the environment.  This has actually
3469       # happened.  Such a system could not be considered "sane".
3470       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3471 alias in your environment" "$LINENO" 5
3472    fi
3473
3474    test "$2" = conftest.file
3475    )
3476 then
3477    # Ok.
3478    :
3479 else
3480    as_fn_error $? "newly created file is older than distributed files!
3481 Check your system clock" "$LINENO" 5
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3485
3486 am__api_version='1.11'
3487
3488 # Find a good install program.  We prefer a C program (faster),
3489 # so one script is as good as another.  But avoid the broken or
3490 # incompatible versions:
3491 # SysV /etc/install, /usr/sbin/install
3492 # SunOS /usr/etc/install
3493 # IRIX /sbin/install
3494 # AIX /bin/install
3495 # AmigaOS /C/install, which installs bootblocks on floppy discs
3496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3499 # OS/2's system install, which has a completely different semantic
3500 # ./install, which can be erroneously created by make from ./install.sh.
3501 # Reject install programs that cannot install multiple files.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3504 if test -z "$INSTALL"; then
3505 if test "${ac_cv_path_install+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     # Account for people who put trailing slashes in PATH elements.
3514 case $as_dir/ in #((
3515   ./ | .// | /[cC]/* | \
3516   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3517   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3518   /usr/ucb/* ) ;;
3519   *)
3520     # OSF1 and SCO ODT 3.0 have their own names for install.
3521     # Don't use installbsd from OSF since it installs stuff as root
3522     # by default.
3523     for ac_prog in ginstall scoinst install; do
3524       for ac_exec_ext in '' $ac_executable_extensions; do
3525         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3526           if test $ac_prog = install &&
3527             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528             # AIX install.  It has an incompatible calling convention.
3529             :
3530           elif test $ac_prog = install &&
3531             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532             # program-specific install script used by HP pwplus--don't use.
3533             :
3534           else
3535             rm -rf conftest.one conftest.two conftest.dir
3536             echo one > conftest.one
3537             echo two > conftest.two
3538             mkdir conftest.dir
3539             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3540               test -s conftest.one && test -s conftest.two &&
3541               test -s conftest.dir/conftest.one &&
3542               test -s conftest.dir/conftest.two
3543             then
3544               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545               break 3
3546             fi
3547           fi
3548         fi
3549       done
3550     done
3551     ;;
3552 esac
3553
3554   done
3555 IFS=$as_save_IFS
3556
3557 rm -rf conftest.one conftest.two conftest.dir
3558
3559 fi
3560   if test "${ac_cv_path_install+set}" = set; then
3561     INSTALL=$ac_cv_path_install
3562   else
3563     # As a last resort, use the slow shell script.  Don't cache a
3564     # value for INSTALL within a source directory, because that will
3565     # break other packages using the cache if that directory is
3566     # removed, or if the value is a relative name.
3567     INSTALL=$ac_install_sh
3568   fi
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3571 $as_echo "$INSTALL" >&6; }
3572
3573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3574 # It thinks the first close brace ends the variable substitution.
3575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3576
3577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3578
3579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3580
3581 test "$program_prefix" != NONE &&
3582   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3583 # Use a double $ so make ignores it.
3584 test "$program_suffix" != NONE &&
3585   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3586 # Double any \ or $.
3587 # By default was `s,x,x', remove it if useless.
3588 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3589 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3590
3591 # expand $ac_aux_dir to an absolute path
3592 am_aux_dir=`cd $ac_aux_dir && pwd`
3593
3594 if test x"${MISSING+set}" != xset; then
3595   case $am_aux_dir in
3596   *\ * | *\     *)
3597     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3598   *)
3599     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3600   esac
3601 fi
3602 # Use eval to expand $SHELL
3603 if eval "$MISSING --run true"; then
3604   am_missing_run="$MISSING --run "
3605 else
3606   am_missing_run=
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3608 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3609 fi
3610
3611 if test x"${install_sh}" != xset; then
3612   case $am_aux_dir in
3613   *\ * | *\     *)
3614     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3615   *)
3616     install_sh="\${SHELL} $am_aux_dir/install-sh"
3617   esac
3618 fi
3619
3620 # Installed binaries are usually stripped using `strip' when the user
3621 # run `make install-strip'.  However `strip' might not be the right
3622 # tool to use in cross-compilation environments, therefore Automake
3623 # will honor the `STRIP' environment variable to overrule this program.
3624 if test "$cross_compiling" != no; then
3625   if test -n "$ac_tool_prefix"; then
3626   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}strip; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_STRIP+set}" = set; then :
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$STRIP"; then
3634   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648   done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 STRIP=$ac_cv_prog_STRIP
3654 if test -n "$STRIP"; then
3655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3656 $as_echo "$STRIP" >&6; }
3657 else
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662
3663 fi
3664 if test -z "$ac_cv_prog_STRIP"; then
3665   ac_ct_STRIP=$STRIP
3666   # Extract the first word of "strip", so it can be a program name with args.
3667 set dummy strip; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673   if test -n "$ac_ct_STRIP"; then
3674   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681     for ac_exec_ext in '' $ac_executable_extensions; do
3682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683     ac_cv_prog_ac_ct_STRIP="strip"
3684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688   done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3694 if test -n "$ac_ct_STRIP"; then
3695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3696 $as_echo "$ac_ct_STRIP" >&6; }
3697 else
3698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3700 fi
3701
3702   if test "x$ac_ct_STRIP" = x; then
3703     STRIP=":"
3704   else
3705     case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3710 esac
3711     STRIP=$ac_ct_STRIP
3712   fi
3713 else
3714   STRIP="$ac_cv_prog_STRIP"
3715 fi
3716
3717 fi
3718 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3722 if test -z "$MKDIR_P"; then
3723   if test "${ac_cv_path_mkdir+set}" = set; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_prog in mkdir gmkdir; do
3732          for ac_exec_ext in '' $ac_executable_extensions; do
3733            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3734            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3735              'mkdir (GNU coreutils) '* | \
3736              'mkdir (coreutils) '* | \
3737              'mkdir (fileutils) '4.1*)
3738                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3739                break 3;;
3740            esac
3741          done
3742        done
3743   done
3744 IFS=$as_save_IFS
3745
3746 fi
3747
3748   test -d ./--version && rmdir ./--version
3749   if test "${ac_cv_path_mkdir+set}" = set; then
3750     MKDIR_P="$ac_cv_path_mkdir -p"
3751   else
3752     # As a last resort, use the slow shell script.  Don't cache a
3753     # value for MKDIR_P within a source directory, because that will
3754     # break other packages using the cache if that directory is
3755     # removed, or if the value is a relative name.
3756     MKDIR_P="$ac_install_sh -d"
3757   fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3760 $as_echo "$MKDIR_P" >&6; }
3761
3762 mkdir_p="$MKDIR_P"
3763 case $mkdir_p in
3764   [\\/$]* | ?:[\\/]*) ;;
3765   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3766 esac
3767
3768 for ac_prog in gawk mawk nawk awk
3769 do
3770   # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_AWK+set}" = set; then :
3775   $as_echo_n "(cached) " >&6
3776 else
3777   if test -n "$AWK"; then
3778   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785     for ac_exec_ext in '' $ac_executable_extensions; do
3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787     ac_cv_prog_AWK="$ac_prog"
3788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792   done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 AWK=$ac_cv_prog_AWK
3798 if test -n "$AWK"; then
3799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3800 $as_echo "$AWK" >&6; }
3801 else
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 fi
3805
3806
3807   test -n "$AWK" && break
3808 done
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3812 set x ${MAKE-make}
3813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   cat >conftest.make <<\_ACEOF
3818 SHELL = /bin/sh
3819 all:
3820         @echo '@@@%%%=$(MAKE)=@@@%%%'
3821 _ACEOF
3822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3824   *@@@%%%=?*=@@@%%%*)
3825     eval ac_cv_prog_make_${ac_make}_set=yes;;
3826   *)
3827     eval ac_cv_prog_make_${ac_make}_set=no;;
3828 esac
3829 rm -f conftest.make
3830 fi
3831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3834   SET_MAKE=
3835 else
3836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3838   SET_MAKE="MAKE=${MAKE-make}"
3839 fi
3840
3841 rm -rf .tst 2>/dev/null
3842 mkdir .tst 2>/dev/null
3843 if test -d .tst; then
3844   am__leading_dot=.
3845 else
3846   am__leading_dot=_
3847 fi
3848 rmdir .tst 2>/dev/null
3849
3850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3851   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3852   # is not polluted with repeated "-I."
3853   am__isrc=' -I$(srcdir)'
3854   # test to see if srcdir already configured
3855   if test -f $srcdir/config.status; then
3856     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3857   fi
3858 fi
3859
3860 # test whether we have cygpath
3861 if test -z "$CYGPATH_W"; then
3862   if (cygpath --version) >/dev/null 2>/dev/null; then
3863     CYGPATH_W='cygpath -w'
3864   else
3865     CYGPATH_W=echo
3866   fi
3867 fi
3868
3869
3870 # Define the identity of the package.
3871  PACKAGE=$PACKAGE_NAME
3872  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3873
3874
3875 # Some tools Automake needs.
3876
3877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878
3879
3880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881
3882
3883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884
3885
3886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887
3888
3889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3890
3891 # We need awk for the "check" target.  The system "awk" is bad on
3892 # some platforms.
3893 # Always define AMTAR for backward compatibility.
3894
3895 AMTAR=${AMTAR-"${am_missing_run}tar"}
3896
3897 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3898
3899
3900
3901
3902
3903
3904 # Enable support for silent build rules
3905 # Check whether --enable-silent-rules was given.
3906 if test "${enable_silent_rules+set}" = set; then :
3907   enableval=$enable_silent_rules;
3908 fi
3909
3910 case $enable_silent_rules in
3911 yes) AM_DEFAULT_VERBOSITY=0;;
3912 no)  AM_DEFAULT_VERBOSITY=1;;
3913 *)   AM_DEFAULT_VERBOSITY=0;;
3914 esac
3915 AM_BACKSLASH='\'
3916
3917
3918 MAGICK_LIB_VERSION="0x"
3919 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3920   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3921 fi
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3923 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3924   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3925 fi
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3927 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3928   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3929 fi
3930 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3931
3932
3933 # Definition used to define MagickLibVersionText in version.h
3934 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3935
3936
3937 # Definition used to define MagickLibVersionNumber in version.h
3938 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3939
3940
3941 # Regenerate config.status if ChangeLog or version.sh is updated.
3942 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3943
3944
3945 PERLMAINCC=$CC
3946
3947 MAGICK_CFLAGS=''
3948 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3949 MAGICK_PCFLAGS=$CPPFLAGS_USER
3950 MAGICK_LDFLAGS=''
3951 MAGICK_LIBS=''
3952 MAGICK_FEATURES=''
3953
3954 #
3955 # Evaluate shell variable equivalents to Makefile directory variables
3956 #
3957 if test "x$prefix" = xNONE; then
3958     prefix=$ac_default_prefix
3959 fi
3960 # Let make expand exec_prefix.
3961 if test "x$exec_prefix" = xNONE; then
3962     exec_prefix='${prefix}'
3963 fi
3964
3965 #
3966 eval "eval PREFIX_DIR=${prefix}"
3967
3968 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3969
3970 eval "eval BIN_DIR=$bindir"
3971
3972 eval "eval SBIN_DIR=$sbindir"
3973
3974 eval "eval LIBEXEC_DIR=$libexecdir"
3975
3976 eval "eval DATA_DIR=$datadir"
3977
3978 eval "eval SYSCONF_DIR=$sysconfdir"
3979
3980 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3981
3982 eval "eval LOCALSTATE_DIR=$localstatedir"
3983
3984 eval "eval LIB_DIR=$libdir"
3985
3986 eval "eval INCLUDE_DIR=$includedir"
3987
3988 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3989
3990 eval "eval INFO_DIR=$infodir"
3991
3992 eval "eval MAN_DIR=$mandir"
3993
3994
3995 # Get full paths to source and build directories
3996 srcdirfull="`cd $srcdir && pwd`"
3997 builddir="`pwd`"
3998
3999 #
4000 # Compute variables useful for running uninstalled software.
4001 #
4002 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4003 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4004 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4005 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4006 DIRSEP=':'
4007 case "${build_os}" in
4008     mingw* )
4009         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4010         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4011         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4012         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4013         DIRSEP=';'
4014     ;;
4015 esac
4016 case "${host_os}" in
4017   mingw* )
4018     DIRSEP=';'
4019     ;;
4020 esac
4021
4022
4023
4024
4025
4026
4027
4028 #
4029 # Enable OS features.
4030 #
4031 DEPDIR="${am__leading_dot}deps"
4032
4033 ac_config_commands="$ac_config_commands depfiles"
4034
4035
4036 am_make=${MAKE-make}
4037 cat > confinc << 'END'
4038 am__doit:
4039         @echo this is the am__doit target
4040 .PHONY: am__doit
4041 END
4042 # If we don't find an include directive, just comment out the code.
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4044 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4045 am__include="#"
4046 am__quote=
4047 _am_result=none
4048 # First try GNU make style include.
4049 echo "include confinc" > confmf
4050 # Ignore all kinds of additional output from `make'.
4051 case `$am_make -s -f confmf 2> /dev/null` in #(
4052 *the\ am__doit\ target*)
4053   am__include=include
4054   am__quote=
4055   _am_result=GNU
4056   ;;
4057 esac
4058 # Now try BSD make style include.
4059 if test "$am__include" = "#"; then
4060    echo '.include "confinc"' > confmf
4061    case `$am_make -s -f confmf 2> /dev/null` in #(
4062    *the\ am__doit\ target*)
4063      am__include=.include
4064      am__quote="\""
4065      _am_result=BSD
4066      ;;
4067    esac
4068 fi
4069
4070
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4072 $as_echo "$_am_result" >&6; }
4073 rm -f confinc confmf
4074
4075 # Check whether --enable-dependency-tracking was given.
4076 if test "${enable_dependency_tracking+set}" = set; then :
4077   enableval=$enable_dependency_tracking;
4078 fi
4079
4080 if test "x$enable_dependency_tracking" != xno; then
4081   am_depcomp="$ac_aux_dir/depcomp"
4082   AMDEPBACKSLASH='\'
4083 fi
4084  if test "x$enable_dependency_tracking" != xno; then
4085   AMDEP_TRUE=
4086   AMDEP_FALSE='#'
4087 else
4088   AMDEP_TRUE='#'
4089   AMDEP_FALSE=
4090 fi
4091
4092
4093 ac_ext=c
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098 if test -n "$ac_tool_prefix"; then
4099   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_CC+set}" = set; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -n "$CC"; then
4107   ac_cv_prog_CC="$CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114     for ac_exec_ext in '' $ac_executable_extensions; do
4115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121   done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4130 else
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 fi
4134
4135
4136 fi
4137 if test -z "$ac_cv_prog_CC"; then
4138   ac_ct_CC=$CC
4139   # Extract the first word of "gcc", so it can be a program name with args.
4140 set dummy gcc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$ac_ct_CC"; then
4147   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_ac_ct_CC="gcc"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4167 if test -n "$ac_ct_CC"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4169 $as_echo "$ac_ct_CC" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175   if test "x$ac_ct_CC" = x; then
4176     CC=""
4177   else
4178     case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4183 esac
4184     CC=$ac_ct_CC
4185   fi
4186 else
4187   CC="$ac_cv_prog_CC"
4188 fi
4189
4190 if test -z "$CC"; then
4191           if test -n "$ac_tool_prefix"; then
4192     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4193 set dummy ${ac_tool_prefix}cc; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if test "${ac_cv_prog_CC+set}" = set; then :
4197   $as_echo_n "(cached) " >&6
4198 else
4199   if test -n "$CC"; then
4200   ac_cv_prog_CC="$CC" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_exec_ext in '' $ac_executable_extensions; do
4208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209     ac_cv_prog_CC="${ac_tool_prefix}cc"
4210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211     break 2
4212   fi
4213 done
4214   done
4215 IFS=$as_save_IFS
4216
4217 fi
4218 fi
4219 CC=$ac_cv_prog_CC
4220 if test -n "$CC"; then
4221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222 $as_echo "$CC" >&6; }
4223 else
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4226 fi
4227
4228
4229   fi
4230 fi
4231 if test -z "$CC"; then
4232   # Extract the first word of "cc", so it can be a program name with args.
4233 set dummy cc; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_CC+set}" = set; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -n "$CC"; then
4240   ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242   ac_prog_rejected=no
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_exec_ext in '' $ac_executable_extensions; do
4249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251        ac_prog_rejected=yes
4252        continue
4253      fi
4254     ac_cv_prog_CC="cc"
4255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259   done
4260 IFS=$as_save_IFS
4261
4262 if test $ac_prog_rejected = yes; then
4263   # We found a bogon in the path, so make sure we never use it.
4264   set dummy $ac_cv_prog_CC
4265   shift
4266   if test $# != 0; then
4267     # We chose a different compiler from the bogus one.
4268     # However, it has the same basename, so the bogon will be chosen
4269     # first if we set CC to just the basename; use the full file name.
4270     shift
4271     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272   fi
4273 fi
4274 fi
4275 fi
4276 CC=$ac_cv_prog_CC
4277 if test -n "$CC"; then
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279 $as_echo "$CC" >&6; }
4280 else
4281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285
4286 fi
4287 if test -z "$CC"; then
4288   if test -n "$ac_tool_prefix"; then
4289   for ac_prog in cl.exe
4290   do
4291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_CC+set}" = set; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   if test -n "$CC"; then
4299   ac_cv_prog_CC="$CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306     for ac_exec_ext in '' $ac_executable_extensions; do
4307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313   done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 CC=$ac_cv_prog_CC
4319 if test -n "$CC"; then
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4322 else
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328     test -n "$CC" && break
4329   done
4330 fi
4331 if test -z "$CC"; then
4332   ac_ct_CC=$CC
4333   for ac_prog in cl.exe
4334 do
4335   # Extract the first word of "$ac_prog", so it can be a program name with args.
4336 set dummy $ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if test -n "$ac_ct_CC"; then
4343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352     ac_cv_prog_ac_ct_CC="$ac_prog"
4353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357   done
4358 IFS=$as_save_IFS
4359
4360 fi
4361 fi
4362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363 if test -n "$ac_ct_CC"; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4365 $as_echo "$ac_ct_CC" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372   test -n "$ac_ct_CC" && break
4373 done
4374
4375   if test "x$ac_ct_CC" = x; then
4376     CC=""
4377   else
4378     case $cross_compiling:$ac_tool_warned in
4379 yes:)
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4383 esac
4384     CC=$ac_ct_CC
4385   fi
4386 fi
4387
4388 fi
4389
4390
4391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393 as_fn_error $? "no acceptable C compiler found in \$PATH
4394 See \`config.log' for more details" "$LINENO" 5; }
4395
4396 # Provide some information about the compiler.
4397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4398 set X $ac_compile
4399 ac_compiler=$2
4400 for ac_option in --version -v -V -qversion; do
4401   { { ac_try="$ac_compiler $ac_option >&5"
4402 case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4409   ac_status=$?
4410   if test -s conftest.err; then
4411     sed '10a\
4412 ... rest of stderr output deleted ...
4413          10q' conftest.err >conftest.er1
4414     cat conftest.er1 >&5
4415   fi
4416   rm -f conftest.er1 conftest.err
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; }
4419 done
4420
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423
4424 int
4425 main ()
4426 {
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 ac_clean_files_save=$ac_clean_files
4433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4434 # Try to create an executable without -o first, disregard a.out.
4435 # It will help us diagnose broken compilers, and finding out an intuition
4436 # of exeext.
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4438 $as_echo_n "checking whether the C compiler works... " >&6; }
4439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4440
4441 # The possible output files:
4442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4443
4444 ac_rmfiles=
4445 for ac_file in $ac_files
4446 do
4447   case $ac_file in
4448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4449     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4450   esac
4451 done
4452 rm -f $ac_rmfiles
4453
4454 if { { ac_try="$ac_link_default"
4455 case "(($ac_try" in
4456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457   *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461   (eval "$ac_link_default") 2>&5
4462   ac_status=$?
4463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464   test $ac_status = 0; }; then :
4465   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4467 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4468 # so that the user can short-circuit this test for compilers unknown to
4469 # Autoconf.
4470 for ac_file in $ac_files ''
4471 do
4472   test -f "$ac_file" || continue
4473   case $ac_file in
4474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4475         ;;
4476     [ab].out )
4477         # We found the default executable, but exeext='' is most
4478         # certainly right.
4479         break;;
4480     *.* )
4481         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4482         then :; else
4483            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4484         fi
4485         # We set ac_cv_exeext here because the later test for it is not
4486         # safe: cross compilers may not add the suffix if given an `-o'
4487         # argument, so we may need to know it at that point already.
4488         # Even if this section looks crufty: it has the advantage of
4489         # actually working.
4490         break;;
4491     * )
4492         break;;
4493   esac
4494 done
4495 test "$ac_cv_exeext" = no && ac_cv_exeext=
4496
4497 else
4498   ac_file=''
4499 fi
4500 if test -z "$ac_file"; then :
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error 77 "C compiler cannot create executables
4509 See \`config.log' for more details" "$LINENO" 5; }
4510 else
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512 $as_echo "yes" >&6; }
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4515 $as_echo_n "checking for C compiler default output file name... " >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4517 $as_echo "$ac_file" >&6; }
4518 ac_exeext=$ac_cv_exeext
4519
4520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4521 ac_clean_files=$ac_clean_files_save
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4523 $as_echo_n "checking for suffix of executables... " >&6; }
4524 if { { ac_try="$ac_link"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531   (eval "$ac_link") 2>&5
4532   ac_status=$?
4533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534   test $ac_status = 0; }; then :
4535   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4536 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4537 # work properly (i.e., refer to `conftest.exe'), while it won't with
4538 # `rm'.
4539 for ac_file in conftest.exe conftest conftest.*; do
4540   test -f "$ac_file" || continue
4541   case $ac_file in
4542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4543     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544           break;;
4545     * ) break;;
4546   esac
4547 done
4548 else
4549   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4552 See \`config.log' for more details" "$LINENO" 5; }
4553 fi
4554 rm -f conftest conftest$ac_cv_exeext
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4556 $as_echo "$ac_cv_exeext" >&6; }
4557
4558 rm -f conftest.$ac_ext
4559 EXEEXT=$ac_cv_exeext
4560 ac_exeext=$EXEEXT
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h.  */
4563 #include <stdio.h>
4564 int
4565 main ()
4566 {
4567 FILE *f = fopen ("conftest.out", "w");
4568  return ferror (f) || fclose (f) != 0;
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 ac_clean_files="$ac_clean_files conftest.out"
4575 # Check that the compiler produces executables we can run.  If not, either
4576 # the compiler is broken, or we cross compile.
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4578 $as_echo_n "checking whether we are cross compiling... " >&6; }
4579 if test "$cross_compiling" != yes; then
4580   { { ac_try="$ac_link"
4581 case "(($ac_try" in
4582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583   *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587   (eval "$ac_link") 2>&5
4588   ac_status=$?
4589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590   test $ac_status = 0; }
4591   if { ac_try='./conftest$ac_cv_exeext'
4592   { { case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 $as_echo "$ac_try_echo"; } >&5
4598   (eval "$ac_try") 2>&5
4599   ac_status=$?
4600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601   test $ac_status = 0; }; }; then
4602     cross_compiling=no
4603   else
4604     if test "$cross_compiling" = maybe; then
4605         cross_compiling=yes
4606     else
4607         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot run C compiled programs.
4610 If you meant to cross compile, use \`--host'.
4611 See \`config.log' for more details" "$LINENO" 5; }
4612     fi
4613   fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4616 $as_echo "$cross_compiling" >&6; }
4617
4618 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4619 ac_clean_files=$ac_clean_files_save
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4621 $as_echo_n "checking for suffix of object files... " >&6; }
4622 if test "${ac_cv_objext+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.o conftest.obj
4637 if { { ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644   (eval "$ac_compile") 2>&5
4645   ac_status=$?
4646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647   test $ac_status = 0; }; then :
4648   for ac_file in conftest.o conftest.obj conftest.*; do
4649   test -f "$ac_file" || continue;
4650   case $ac_file in
4651     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4652     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4653        break;;
4654   esac
4655 done
4656 else
4657   $as_echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662 as_fn_error $? "cannot compute suffix of object files: cannot compile
4663 See \`config.log' for more details" "$LINENO" 5; }
4664 fi
4665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4668 $as_echo "$ac_cv_objext" >&6; }
4669 OBJEXT=$ac_cv_objext
4670 ac_objext=$OBJEXT
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4673 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4674   $as_echo_n "(cached) " >&6
4675 else
4676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682 #ifndef __GNUC__
4683        choke me
4684 #endif
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691   ac_compiler_gnu=yes
4692 else
4693   ac_compiler_gnu=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4697
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4701 if test $ac_compiler_gnu = yes; then
4702   GCC=yes
4703 else
4704   GCC=
4705 fi
4706 ac_test_CFLAGS=${CFLAGS+set}
4707 ac_save_CFLAGS=$CFLAGS
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4710 if test "${ac_cv_prog_cc_g+set}" = set; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   ac_save_c_werror_flag=$ac_c_werror_flag
4714    ac_c_werror_flag=yes
4715    ac_cv_prog_cc_g=no
4716    CFLAGS="-g"
4717    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719
4720 int
4721 main ()
4722 {
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729   ac_cv_prog_cc_g=yes
4730 else
4731   CFLAGS=""
4732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h.  */
4734
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744
4745 else
4746   ac_c_werror_flag=$ac_save_c_werror_flag
4747          CFLAGS="-g"
4748          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 if ac_fn_c_try_compile "$LINENO"; then :
4760   ac_cv_prog_cc_g=yes
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 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767    ac_c_werror_flag=$ac_save_c_werror_flag
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4770 $as_echo "$ac_cv_prog_cc_g" >&6; }
4771 if test "$ac_test_CFLAGS" = set; then
4772   CFLAGS=$ac_save_CFLAGS
4773 elif test $ac_cv_prog_cc_g = yes; then
4774   if test "$GCC" = yes; then
4775     CFLAGS="-g -O2"
4776   else
4777     CFLAGS="-g"
4778   fi
4779 else
4780   if test "$GCC" = yes; then
4781     CFLAGS="-O2"
4782   else
4783     CFLAGS=
4784   fi
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4788 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   ac_cv_prog_cc_c89=no
4792 ac_save_CC=$CC
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795 #include <stdarg.h>
4796 #include <stdio.h>
4797 #include <sys/types.h>
4798 #include <sys/stat.h>
4799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4800 struct buf { int x; };
4801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802 static char *e (p, i)
4803      char **p;
4804      int i;
4805 {
4806   return p[i];
4807 }
4808 static char *f (char * (*g) (char **, int), char **p, ...)
4809 {
4810   char *s;
4811   va_list v;
4812   va_start (v,p);
4813   s = g (p, va_arg (v,int));
4814   va_end (v);
4815   return s;
4816 }
4817
4818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4819    function prototypes and stuff, but not '\xHH' hex character constants.
4820    These don't provoke an error unfortunately, instead are silently treated
4821    as 'x'.  The following induces an error, until -std is added to get
4822    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4823    array size at least.  It's necessary to write '\x00'==0 to get something
4824    that's true only with -std.  */
4825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4826
4827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828    inside strings and character constants.  */
4829 #define FOO(x) 'x'
4830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4831
4832 int test (int i, double x);
4833 struct s1 {int (*f) (int a);};
4834 struct s2 {int (*f) (double a);};
4835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4836 int argc;
4837 char **argv;
4838 int
4839 main ()
4840 {
4841 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4842   ;
4843   return 0;
4844 }
4845 _ACEOF
4846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4848 do
4849   CC="$ac_save_CC $ac_arg"
4850   if ac_fn_c_try_compile "$LINENO"; then :
4851   ac_cv_prog_cc_c89=$ac_arg
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext
4854   test "x$ac_cv_prog_cc_c89" != "xno" && break
4855 done
4856 rm -f conftest.$ac_ext
4857 CC=$ac_save_CC
4858
4859 fi
4860 # AC_CACHE_VAL
4861 case "x$ac_cv_prog_cc_c89" in
4862   x)
4863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 $as_echo "none needed" >&6; } ;;
4865   xno)
4866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867 $as_echo "unsupported" >&6; } ;;
4868   *)
4869     CC="$CC $ac_cv_prog_cc_c89"
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4872 esac
4873 if test "x$ac_cv_prog_cc_c89" != xno; then :
4874
4875 fi
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883 depcc="$CC"   am_compiler_list=
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4886 $as_echo_n "checking dependency style of $depcc... " >&6; }
4887 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891   # We make a subdir and do the tests there.  Otherwise we can end up
4892   # making bogus files that we don't know about and never remove.  For
4893   # instance it was reported that on HP-UX the gcc test will end up
4894   # making a dummy file named `D' -- because `-MD' means `put the output
4895   # in D'.
4896   mkdir conftest.dir
4897   # Copy depcomp to subdir because otherwise we won't find it if we're
4898   # using a relative directory.
4899   cp "$am_depcomp" conftest.dir
4900   cd conftest.dir
4901   # We will build objects and dependencies in a subdirectory because
4902   # it helps to detect inapplicable dependency modes.  For instance
4903   # both Tru64's cc and ICC support -MD to output dependencies as a
4904   # side effect of compilation, but ICC will put the dependencies in
4905   # the current directory while Tru64 will put them in the object
4906   # directory.
4907   mkdir sub
4908
4909   am_cv_CC_dependencies_compiler_type=none
4910   if test "$am_compiler_list" = ""; then
4911      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4912   fi
4913   am__universal=false
4914   case " $depcc " in #(
4915      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4916      esac
4917
4918   for depmode in $am_compiler_list; do
4919     # Setup a source with many dependencies, because some compilers
4920     # like to wrap large dependency lists on column 80 (with \), and
4921     # we should not choose a depcomp mode which is confused by this.
4922     #
4923     # We need to recreate these files for each test, as the compiler may
4924     # overwrite some of them when testing with obscure command lines.
4925     # This happens at least with the AIX C compiler.
4926     : > sub/conftest.c
4927     for i in 1 2 3 4 5 6; do
4928       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930       # Solaris 8's {/usr,}/bin/sh.
4931       touch sub/conftst$i.h
4932     done
4933     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4936     # mode.  It turns out that the SunPro C++ compiler does not properly
4937     # handle `-M -o', and we need to detect this.  Also, some Intel
4938     # versions had trouble with output in subdirs
4939     am__obj=sub/conftest.${OBJEXT-o}
4940     am__minus_obj="-o $am__obj"
4941     case $depmode in
4942     gcc)
4943       # This depmode causes a compiler race in universal mode.
4944       test "$am__universal" = false || continue
4945       ;;
4946     nosideeffect)
4947       # after this tag, mechanisms are not by side-effect, so they'll
4948       # only be used when explicitly requested
4949       if test "x$enable_dependency_tracking" = xyes; then
4950         continue
4951       else
4952         break
4953       fi
4954       ;;
4955     msvisualcpp | msvcmsys)
4956       # This compiler won't grok `-c -o', but also, the minuso test has
4957       # not run yet.  These depmodes are late enough in the game, and
4958       # so weak that their functioning should not be impacted.
4959       am__obj=conftest.${OBJEXT-o}
4960       am__minus_obj=
4961       ;;
4962     none) break ;;
4963     esac
4964     if depmode=$depmode \
4965        source=sub/conftest.c object=$am__obj \
4966        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4967        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4968          >/dev/null 2>conftest.err &&
4969        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4970        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4971        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4972        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4973       # icc doesn't choke on unknown options, it will just issue warnings
4974       # or remarks (even with -Werror).  So we grep stderr for any message
4975       # that says an option was ignored or not supported.
4976       # When given -MP, icc 7.0 and 7.1 complain thusly:
4977       #   icc: Command line warning: ignoring option '-M'; no argument required
4978       # The diagnosis changed in icc 8.0:
4979       #   icc: Command line remark: option '-MP' not supported
4980       if (grep 'ignoring option' conftest.err ||
4981           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4982         am_cv_CC_dependencies_compiler_type=$depmode
4983         break
4984       fi
4985     fi
4986   done
4987
4988   cd ..
4989   rm -rf conftest.dir
4990 else
4991   am_cv_CC_dependencies_compiler_type=none
4992 fi
4993
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4996 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4997 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4998
4999  if
5000   test "x$enable_dependency_tracking" != xno \
5001   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5002   am__fastdepCC_TRUE=
5003   am__fastdepCC_FALSE='#'
5004 else
5005   am__fastdepCC_TRUE='#'
5006   am__fastdepCC_FALSE=
5007 fi
5008
5009
5010
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5018 # On Suns, sometimes $CPP names a directory.
5019 if test -n "$CPP" && test -d "$CPP"; then
5020   CPP=
5021 fi
5022 if test -z "$CPP"; then
5023   if test "${ac_cv_prog_CPP+set}" = set; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026       # Double quotes because CPP needs to be expanded
5027     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028     do
5029       ac_preproc_ok=false
5030 for ac_c_preproc_warn_flag in '' yes
5031 do
5032   # Use a header file that comes with gcc, so configuring glibc
5033   # with a fresh cross-compiler works.
5034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035   # <limits.h> exists even on freestanding compilers.
5036   # On the NeXT, cc -E runs the code through the compiler's parser,
5037   # not just through cpp. "Syntax error" is here to catch this case.
5038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h.  */
5040 #ifdef __STDC__
5041 # include <limits.h>
5042 #else
5043 # include <assert.h>
5044 #endif
5045                      Syntax error
5046 _ACEOF
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5048
5049 else
5050   # Broken: fails on valid input.
5051 continue
5052 fi
5053 rm -f conftest.err conftest.$ac_ext
5054
5055   # OK, works on sane cases.  Now check whether nonexistent headers
5056   # can be detected and how.
5057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h.  */
5059 #include <ac_nonexistent.h>
5060 _ACEOF
5061 if ac_fn_c_try_cpp "$LINENO"; then :
5062   # Broken: success on invalid input.
5063 continue
5064 else
5065   # Passes both tests.
5066 ac_preproc_ok=:
5067 break
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then :
5075   break
5076 fi
5077
5078     done
5079     ac_cv_prog_CPP=$CPP
5080
5081 fi
5082   CPP=$ac_cv_prog_CPP
5083 else
5084   ac_cv_prog_CPP=$CPP
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5087 $as_echo "$CPP" >&6; }
5088 ac_preproc_ok=false
5089 for ac_c_preproc_warn_flag in '' yes
5090 do
5091   # Use a header file that comes with gcc, so configuring glibc
5092   # with a fresh cross-compiler works.
5093   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094   # <limits.h> exists even on freestanding compilers.
5095   # On the NeXT, cc -E runs the code through the compiler's parser,
5096   # not just through cpp. "Syntax error" is here to catch this case.
5097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h.  */
5099 #ifdef __STDC__
5100 # include <limits.h>
5101 #else
5102 # include <assert.h>
5103 #endif
5104                      Syntax error
5105 _ACEOF
5106 if ac_fn_c_try_cpp "$LINENO"; then :
5107
5108 else
5109   # Broken: fails on valid input.
5110 continue
5111 fi
5112 rm -f conftest.err conftest.$ac_ext
5113
5114   # OK, works on sane cases.  Now check whether nonexistent headers
5115   # can be detected and how.
5116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h.  */
5118 #include <ac_nonexistent.h>
5119 _ACEOF
5120 if ac_fn_c_try_cpp "$LINENO"; then :
5121   # Broken: success on invalid input.
5122 continue
5123 else
5124   # Passes both tests.
5125 ac_preproc_ok=:
5126 break
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 done
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then :
5134
5135 else
5136   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5139 See \`config.log' for more details" "$LINENO" 5; }
5140 fi
5141
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5151 if test "${ac_cv_path_GREP+set}" = set; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -z "$GREP"; then
5155   ac_path_GREP_found=false
5156   # Loop through the user's path and test for each of PROGNAME-LIST
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162     for ac_prog in grep ggrep; do
5163     for ac_exec_ext in '' $ac_executable_extensions; do
5164       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5165       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5166 # Check for GNU ac_path_GREP and select it if it is found.
5167   # Check for GNU $ac_path_GREP
5168 case `"$ac_path_GREP" --version 2>&1` in
5169 *GNU*)
5170   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5171 *)
5172   ac_count=0
5173   $as_echo_n 0123456789 >"conftest.in"
5174   while :
5175   do
5176     cat "conftest.in" "conftest.in" >"conftest.tmp"
5177     mv "conftest.tmp" "conftest.in"
5178     cp "conftest.in" "conftest.nl"
5179     $as_echo 'GREP' >> "conftest.nl"
5180     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182     as_fn_arith $ac_count + 1 && ac_count=$as_val
5183     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5184       # Best one so far, save it but keep looking for a better one
5185       ac_cv_path_GREP="$ac_path_GREP"
5186       ac_path_GREP_max=$ac_count
5187     fi
5188     # 10*(2^10) chars as input seems more than enough
5189     test $ac_count -gt 10 && break
5190   done
5191   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 esac
5193
5194       $ac_path_GREP_found && break 3
5195     done
5196   done
5197   done
5198 IFS=$as_save_IFS
5199   if test -z "$ac_cv_path_GREP"; then
5200     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5201   fi
5202 else
5203   ac_cv_path_GREP=$GREP
5204 fi
5205
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5208 $as_echo "$ac_cv_path_GREP" >&6; }
5209  GREP="$ac_cv_path_GREP"
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5213 $as_echo_n "checking for egrep... " >&6; }
5214 if test "${ac_cv_path_EGREP+set}" = set; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5218    then ac_cv_path_EGREP="$GREP -E"
5219    else
5220      if test -z "$EGREP"; then
5221   ac_path_EGREP_found=false
5222   # Loop through the user's path and test for each of PROGNAME-LIST
5223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228     for ac_prog in egrep; do
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5231       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5232 # Check for GNU ac_path_EGREP and select it if it is found.
5233   # Check for GNU $ac_path_EGREP
5234 case `"$ac_path_EGREP" --version 2>&1` in
5235 *GNU*)
5236   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5237 *)
5238   ac_count=0
5239   $as_echo_n 0123456789 >"conftest.in"
5240   while :
5241   do
5242     cat "conftest.in" "conftest.in" >"conftest.tmp"
5243     mv "conftest.tmp" "conftest.in"
5244     cp "conftest.in" "conftest.nl"
5245     $as_echo 'EGREP' >> "conftest.nl"
5246     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248     as_fn_arith $ac_count + 1 && ac_count=$as_val
5249     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5250       # Best one so far, save it but keep looking for a better one
5251       ac_cv_path_EGREP="$ac_path_EGREP"
5252       ac_path_EGREP_max=$ac_count
5253     fi
5254     # 10*(2^10) chars as input seems more than enough
5255     test $ac_count -gt 10 && break
5256   done
5257   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258 esac
5259
5260       $ac_path_EGREP_found && break 3
5261     done
5262   done
5263   done
5264 IFS=$as_save_IFS
5265   if test -z "$ac_cv_path_EGREP"; then
5266     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5267   fi
5268 else
5269   ac_cv_path_EGREP=$EGREP
5270 fi
5271
5272    fi
5273 fi
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5275 $as_echo "$ac_cv_path_EGREP" >&6; }
5276  EGREP="$ac_cv_path_EGREP"
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5280 $as_echo_n "checking for ANSI C header files... " >&6; }
5281 if test "${ac_cv_header_stdc+set}" = set; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <stdlib.h>
5287 #include <stdarg.h>
5288 #include <string.h>
5289 #include <float.h>
5290
5291 int
5292 main ()
5293 {
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300   ac_cv_header_stdc=yes
5301 else
5302   ac_cv_header_stdc=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305
5306 if test $ac_cv_header_stdc = yes; then
5307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h.  */
5310 #include <string.h>
5311
5312 _ACEOF
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314   $EGREP "memchr" >/dev/null 2>&1; then :
5315
5316 else
5317   ac_cv_header_stdc=no
5318 fi
5319 rm -f conftest*
5320
5321 fi
5322
5323 if test $ac_cv_header_stdc = yes; then
5324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h.  */
5327 #include <stdlib.h>
5328
5329 _ACEOF
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331   $EGREP "free" >/dev/null 2>&1; then :
5332
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f conftest*
5337
5338 fi
5339
5340 if test $ac_cv_header_stdc = yes; then
5341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342   if test "$cross_compiling" = yes; then :
5343   :
5344 else
5345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h.  */
5347 #include <ctype.h>
5348 #include <stdlib.h>
5349 #if ((' ' & 0x0FF) == 0x020)
5350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5352 #else
5353 # define ISLOWER(c) \
5354                    (('a' <= (c) && (c) <= 'i') \
5355                      || ('j' <= (c) && (c) <= 'r') \
5356                      || ('s' <= (c) && (c) <= 'z'))
5357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5358 #endif
5359
5360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5361 int
5362 main ()
5363 {
5364   int i;
5365   for (i = 0; i < 256; i++)
5366     if (XOR (islower (i), ISLOWER (i))
5367         || toupper (i) != TOUPPER (i))
5368       return 2;
5369   return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_run "$LINENO"; then :
5373
5374 else
5375   ac_cv_header_stdc=no
5376 fi
5377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5378   conftest.$ac_objext conftest.beam conftest.$ac_ext
5379 fi
5380
5381 fi
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5384 $as_echo "$ac_cv_header_stdc" >&6; }
5385 if test $ac_cv_header_stdc = yes; then
5386
5387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5388
5389 fi
5390
5391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5393                   inttypes.h stdint.h unistd.h
5394 do :
5395   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5397 "
5398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5399   cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5401 _ACEOF
5402
5403 fi
5404
5405 done
5406
5407
5408
5409   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5410 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5411   MINIX=yes
5412 else
5413   MINIX=
5414 fi
5415
5416
5417   if test "$MINIX" = yes; then
5418
5419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5420
5421
5422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5423
5424
5425 $as_echo "#define _MINIX 1" >>confdefs.h
5426
5427   fi
5428
5429
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5431 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5432 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h.  */
5437
5438 #         define __EXTENSIONS__ 1
5439           $ac_includes_default
5440 int
5441 main ()
5442 {
5443
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449   ac_cv_safe_to_define___extensions__=yes
5450 else
5451   ac_cv_safe_to_define___extensions__=no
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5456 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5457   test $ac_cv_safe_to_define___extensions__ = yes &&
5458     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5459
5460   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5461
5462   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5463
5464   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5465
5466   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5467
5468
5469
5470 # Check for programs
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 if test -n "$ac_tool_prefix"; then
5477   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_prog_CC+set}" = set; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   if test -n "$CC"; then
5485   ac_cv_prog_CC="$CC" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 CC=$ac_cv_prog_CC
5505 if test -n "$CC"; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5507 $as_echo "$CC" >&6; }
5508 else
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513
5514 fi
5515 if test -z "$ac_cv_prog_CC"; then
5516   ac_ct_CC=$CC
5517   # Extract the first word of "gcc", so it can be a program name with args.
5518 set dummy gcc; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   if test -n "$ac_ct_CC"; then
5525   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532     for ac_exec_ext in '' $ac_executable_extensions; do
5533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534     ac_cv_prog_ac_ct_CC="gcc"
5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539   done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5545 if test -n "$ac_ct_CC"; then
5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5547 $as_echo "$ac_ct_CC" >&6; }
5548 else
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553   if test "x$ac_ct_CC" = x; then
5554     CC=""
5555   else
5556     case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562     CC=$ac_ct_CC
5563   fi
5564 else
5565   CC="$ac_cv_prog_CC"
5566 fi
5567
5568 if test -z "$CC"; then
5569           if test -n "$ac_tool_prefix"; then
5570     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}cc; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_CC+set}" = set; then :
5575   $as_echo_n "(cached) " >&6
5576 else
5577   if test -n "$CC"; then
5578   ac_cv_prog_CC="$CC" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587     ac_cv_prog_CC="${ac_tool_prefix}cc"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 CC=$ac_cv_prog_CC
5598 if test -n "$CC"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5600 $as_echo "$CC" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607   fi
5608 fi
5609 if test -z "$CC"; then
5610   # Extract the first word of "cc", so it can be a program name with args.
5611 set dummy cc; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_CC+set}" = set; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -n "$CC"; then
5618   ac_cv_prog_CC="$CC" # Let the user override the test.
5619 else
5620   ac_prog_rejected=no
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5629        ac_prog_rejected=yes
5630        continue
5631      fi
5632     ac_cv_prog_CC="cc"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639
5640 if test $ac_prog_rejected = yes; then
5641   # We found a bogon in the path, so make sure we never use it.
5642   set dummy $ac_cv_prog_CC
5643   shift
5644   if test $# != 0; then
5645     # We chose a different compiler from the bogus one.
5646     # However, it has the same basename, so the bogon will be chosen
5647     # first if we set CC to just the basename; use the full file name.
5648     shift
5649     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5650   fi
5651 fi
5652 fi
5653 fi
5654 CC=$ac_cv_prog_CC
5655 if test -n "$CC"; then
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5657 $as_echo "$CC" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664 fi
5665 if test -z "$CC"; then
5666   if test -n "$ac_tool_prefix"; then
5667   for ac_prog in cl.exe
5668   do
5669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if test "${ac_cv_prog_CC+set}" = set; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   if test -n "$CC"; then
5677   ac_cv_prog_CC="$CC" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682   IFS=$as_save_IFS
5683   test -z "$as_dir" && as_dir=.
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688     break 2
5689   fi
5690 done
5691   done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 CC=$ac_cv_prog_CC
5697 if test -n "$CC"; then
5698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5699 $as_echo "$CC" >&6; }
5700 else
5701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705
5706     test -n "$CC" && break
5707   done
5708 fi
5709 if test -z "$CC"; then
5710   ac_ct_CC=$CC
5711   for ac_prog in cl.exe
5712 do
5713   # Extract the first word of "$ac_prog", so it can be a program name with args.
5714 set dummy $ac_prog; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   if test -n "$ac_ct_CC"; then
5721   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730     ac_cv_prog_ac_ct_CC="$ac_prog"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737
5738 fi
5739 fi
5740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5741 if test -n "$ac_ct_CC"; then
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5743 $as_echo "$ac_ct_CC" >&6; }
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748
5749
5750   test -n "$ac_ct_CC" && break
5751 done
5752
5753   if test "x$ac_ct_CC" = x; then
5754     CC=""
5755   else
5756     case $cross_compiling:$ac_tool_warned in
5757 yes:)
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762     CC=$ac_ct_CC
5763   fi
5764 fi
5765
5766 fi
5767
5768
5769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5771 as_fn_error $? "no acceptable C compiler found in \$PATH
5772 See \`config.log' for more details" "$LINENO" 5; }
5773
5774 # Provide some information about the compiler.
5775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5776 set X $ac_compile
5777 ac_compiler=$2
5778 for ac_option in --version -v -V -qversion; do
5779   { { ac_try="$ac_compiler $ac_option >&5"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5787   ac_status=$?
5788   if test -s conftest.err; then
5789     sed '10a\
5790 ... rest of stderr output deleted ...
5791          10q' conftest.err >conftest.er1
5792     cat conftest.er1 >&5
5793   fi
5794   rm -f conftest.er1 conftest.err
5795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796   test $ac_status = 0; }
5797 done
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5801 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h.  */
5806
5807 int
5808 main ()
5809 {
5810 #ifndef __GNUC__
5811        choke me
5812 #endif
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 if ac_fn_c_try_compile "$LINENO"; then :
5819   ac_compiler_gnu=yes
5820 else
5821   ac_compiler_gnu=no
5822 fi
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5829 if test $ac_compiler_gnu = yes; then
5830   GCC=yes
5831 else
5832   GCC=
5833 fi
5834 ac_test_CFLAGS=${CFLAGS+set}
5835 ac_save_CFLAGS=$CFLAGS
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5838 if test "${ac_cv_prog_cc_g+set}" = set; then :
5839   $as_echo_n "(cached) " >&6
5840 else
5841   ac_save_c_werror_flag=$ac_c_werror_flag
5842    ac_c_werror_flag=yes
5843    ac_cv_prog_cc_g=no
5844    CFLAGS="-g"
5845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h.  */
5847
5848 int
5849 main ()
5850 {
5851
5852   ;
5853   return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857   ac_cv_prog_cc_g=yes
5858 else
5859   CFLAGS=""
5860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h.  */
5862
5863 int
5864 main ()
5865 {
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"; then :
5872
5873 else
5874   ac_c_werror_flag=$ac_save_c_werror_flag
5875          CFLAGS="-g"
5876          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h.  */
5878
5879 int
5880 main ()
5881 {
5882
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888   ac_cv_prog_cc_g=yes
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 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895    ac_c_werror_flag=$ac_save_c_werror_flag
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5898 $as_echo "$ac_cv_prog_cc_g" >&6; }
5899 if test "$ac_test_CFLAGS" = set; then
5900   CFLAGS=$ac_save_CFLAGS
5901 elif test $ac_cv_prog_cc_g = yes; then
5902   if test "$GCC" = yes; then
5903     CFLAGS="-g -O2"
5904   else
5905     CFLAGS="-g"
5906   fi
5907 else
5908   if test "$GCC" = yes; then
5909     CFLAGS="-O2"
5910   else
5911     CFLAGS=
5912   fi
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5916 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   ac_cv_prog_cc_c89=no
5920 ac_save_CC=$CC
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h.  */
5923 #include <stdarg.h>
5924 #include <stdio.h>
5925 #include <sys/types.h>
5926 #include <sys/stat.h>
5927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5928 struct buf { int x; };
5929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5930 static char *e (p, i)
5931      char **p;
5932      int i;
5933 {
5934   return p[i];
5935 }
5936 static char *f (char * (*g) (char **, int), char **p, ...)
5937 {
5938   char *s;
5939   va_list v;
5940   va_start (v,p);
5941   s = g (p, va_arg (v,int));
5942   va_end (v);
5943   return s;
5944 }
5945
5946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5947    function prototypes and stuff, but not '\xHH' hex character constants.
5948    These don't provoke an error unfortunately, instead are silently treated
5949    as 'x'.  The following induces an error, until -std is added to get
5950    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5951    array size at least.  It's necessary to write '\x00'==0 to get something
5952    that's true only with -std.  */
5953 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5954
5955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5956    inside strings and character constants.  */
5957 #define FOO(x) 'x'
5958 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5959
5960 int test (int i, double x);
5961 struct s1 {int (*f) (int a);};
5962 struct s2 {int (*f) (double a);};
5963 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5964 int argc;
5965 char **argv;
5966 int
5967 main ()
5968 {
5969 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5975         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5976 do
5977   CC="$ac_save_CC $ac_arg"
5978   if ac_fn_c_try_compile "$LINENO"; then :
5979   ac_cv_prog_cc_c89=$ac_arg
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext
5982   test "x$ac_cv_prog_cc_c89" != "xno" && break
5983 done
5984 rm -f conftest.$ac_ext
5985 CC=$ac_save_CC
5986
5987 fi
5988 # AC_CACHE_VAL
5989 case "x$ac_cv_prog_cc_c89" in
5990   x)
5991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5992 $as_echo "none needed" >&6; } ;;
5993   xno)
5994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5995 $as_echo "unsupported" >&6; } ;;
5996   *)
5997     CC="$CC $ac_cv_prog_cc_c89"
5998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6000 esac
6001 if test "x$ac_cv_prog_cc_c89" != xno; then :
6002
6003 fi
6004
6005 ac_ext=c
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010
6011 depcc="$CC"   am_compiler_list=
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6014 $as_echo_n "checking dependency style of $depcc... " >&6; }
6015 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6019   # We make a subdir and do the tests there.  Otherwise we can end up
6020   # making bogus files that we don't know about and never remove.  For
6021   # instance it was reported that on HP-UX the gcc test will end up
6022   # making a dummy file named `D' -- because `-MD' means `put the output
6023   # in D'.
6024   mkdir conftest.dir
6025   # Copy depcomp to subdir because otherwise we won't find it if we're
6026   # using a relative directory.
6027   cp "$am_depcomp" conftest.dir
6028   cd conftest.dir
6029   # We will build objects and dependencies in a subdirectory because
6030   # it helps to detect inapplicable dependency modes.  For instance
6031   # both Tru64's cc and ICC support -MD to output dependencies as a
6032   # side effect of compilation, but ICC will put the dependencies in
6033   # the current directory while Tru64 will put them in the object
6034   # directory.
6035   mkdir sub
6036
6037   am_cv_CC_dependencies_compiler_type=none
6038   if test "$am_compiler_list" = ""; then
6039      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6040   fi
6041   am__universal=false
6042   case " $depcc " in #(
6043      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6044      esac
6045
6046   for depmode in $am_compiler_list; do
6047     # Setup a source with many dependencies, because some compilers
6048     # like to wrap large dependency lists on column 80 (with \), and
6049     # we should not choose a depcomp mode which is confused by this.
6050     #
6051     # We need to recreate these files for each test, as the compiler may
6052     # overwrite some of them when testing with obscure command lines.
6053     # This happens at least with the AIX C compiler.
6054     : > sub/conftest.c
6055     for i in 1 2 3 4 5 6; do
6056       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6057       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6058       # Solaris 8's {/usr,}/bin/sh.
6059       touch sub/conftst$i.h
6060     done
6061     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6062
6063     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6064     # mode.  It turns out that the SunPro C++ compiler does not properly
6065     # handle `-M -o', and we need to detect this.  Also, some Intel
6066     # versions had trouble with output in subdirs
6067     am__obj=sub/conftest.${OBJEXT-o}
6068     am__minus_obj="-o $am__obj"
6069     case $depmode in
6070     gcc)
6071       # This depmode causes a compiler race in universal mode.
6072       test "$am__universal" = false || continue
6073       ;;
6074     nosideeffect)
6075       # after this tag, mechanisms are not by side-effect, so they'll
6076       # only be used when explicitly requested
6077       if test "x$enable_dependency_tracking" = xyes; then
6078         continue
6079       else
6080         break
6081       fi
6082       ;;
6083     msvisualcpp | msvcmsys)
6084       # This compiler won't grok `-c -o', but also, the minuso test has
6085       # not run yet.  These depmodes are late enough in the game, and
6086       # so weak that their functioning should not be impacted.
6087       am__obj=conftest.${OBJEXT-o}
6088       am__minus_obj=
6089       ;;
6090     none) break ;;
6091     esac
6092     if depmode=$depmode \
6093        source=sub/conftest.c object=$am__obj \
6094        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6095        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6096          >/dev/null 2>conftest.err &&
6097        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6098        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6099        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6100        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6101       # icc doesn't choke on unknown options, it will just issue warnings
6102       # or remarks (even with -Werror).  So we grep stderr for any message
6103       # that says an option was ignored or not supported.
6104       # When given -MP, icc 7.0 and 7.1 complain thusly:
6105       #   icc: Command line warning: ignoring option '-M'; no argument required
6106       # The diagnosis changed in icc 8.0:
6107       #   icc: Command line remark: option '-MP' not supported
6108       if (grep 'ignoring option' conftest.err ||
6109           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6110         am_cv_CC_dependencies_compiler_type=$depmode
6111         break
6112       fi
6113     fi
6114   done
6115
6116   cd ..
6117   rm -rf conftest.dir
6118 else
6119   am_cv_CC_dependencies_compiler_type=none
6120 fi
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6124 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6125 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6126
6127  if
6128   test "x$enable_dependency_tracking" != xno \
6129   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6130   am__fastdepCC_TRUE=
6131   am__fastdepCC_FALSE='#'
6132 else
6133   am__fastdepCC_TRUE='#'
6134   am__fastdepCC_FALSE=
6135 fi
6136
6137
6138 ac_ext=cpp
6139 ac_cpp='$CXXCPP $CPPFLAGS'
6140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6143 if test -z "$CXX"; then
6144   if test -n "$CCC"; then
6145     CXX=$CCC
6146   else
6147     if test -n "$ac_tool_prefix"; then
6148   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6149   do
6150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_CXX+set}" = set; then :
6155   $as_echo_n "(cached) " >&6
6156 else
6157   if test -n "$CXX"; then
6158   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165     for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172   done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 CXX=$ac_cv_prog_CXX
6178 if test -n "$CXX"; then
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6180 $as_echo "$CXX" >&6; }
6181 else
6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185
6186
6187     test -n "$CXX" && break
6188   done
6189 fi
6190 if test -z "$CXX"; then
6191   ac_ct_CXX=$CXX
6192   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6193 do
6194   # Extract the first word of "$ac_prog", so it can be a program name with args.
6195 set dummy $ac_prog; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6199   $as_echo_n "(cached) " >&6
6200 else
6201   if test -n "$ac_ct_CXX"; then
6202   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211     ac_cv_prog_ac_ct_CXX="$ac_prog"
6212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218
6219 fi
6220 fi
6221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6222 if test -n "$ac_ct_CXX"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6224 $as_echo "$ac_ct_CXX" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229
6230
6231   test -n "$ac_ct_CXX" && break
6232 done
6233
6234   if test "x$ac_ct_CXX" = x; then
6235     CXX="g++"
6236   else
6237     case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243     CXX=$ac_ct_CXX
6244   fi
6245 fi
6246
6247   fi
6248 fi
6249 # Provide some information about the compiler.
6250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6251 set X $ac_compile
6252 ac_compiler=$2
6253 for ac_option in --version -v -V -qversion; do
6254   { { ac_try="$ac_compiler $ac_option >&5"
6255 case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6260 $as_echo "$ac_try_echo"; } >&5
6261   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6262   ac_status=$?
6263   if test -s conftest.err; then
6264     sed '10a\
6265 ... rest of stderr output deleted ...
6266          10q' conftest.err >conftest.er1
6267     cat conftest.er1 >&5
6268   fi
6269   rm -f conftest.er1 conftest.err
6270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271   test $ac_status = 0; }
6272 done
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h.  */
6281
6282 int
6283 main ()
6284 {
6285 #ifndef __GNUC__
6286        choke me
6287 #endif
6288
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 if ac_fn_cxx_try_compile "$LINENO"; then :
6294   ac_compiler_gnu=yes
6295 else
6296   ac_compiler_gnu=no
6297 fi
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6300
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6303 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6304 if test $ac_compiler_gnu = yes; then
6305   GXX=yes
6306 else
6307   GXX=
6308 fi
6309 ac_test_CXXFLAGS=${CXXFLAGS+set}
6310 ac_save_CXXFLAGS=$CXXFLAGS
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6312 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6313 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6317    ac_cxx_werror_flag=yes
6318    ac_cv_prog_cxx_g=no
6319    CXXFLAGS="-g"
6320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h.  */
6322
6323 int
6324 main ()
6325 {
6326
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 if ac_fn_cxx_try_compile "$LINENO"; then :
6332   ac_cv_prog_cxx_g=yes
6333 else
6334   CXXFLAGS=""
6335       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h.  */
6337
6338 int
6339 main ()
6340 {
6341
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 if ac_fn_cxx_try_compile "$LINENO"; then :
6347
6348 else
6349   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6350          CXXFLAGS="-g"
6351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h.  */
6353
6354 int
6355 main ()
6356 {
6357
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_cxx_try_compile "$LINENO"; then :
6363   ac_cv_prog_cxx_g=yes
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 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6371 fi
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6374 if test "$ac_test_CXXFLAGS" = set; then
6375   CXXFLAGS=$ac_save_CXXFLAGS
6376 elif test $ac_cv_prog_cxx_g = yes; then
6377   if test "$GXX" = yes; then
6378     CXXFLAGS="-g -O2"
6379   else
6380     CXXFLAGS="-g"
6381   fi
6382 else
6383   if test "$GXX" = yes; then
6384     CXXFLAGS="-O2"
6385   else
6386     CXXFLAGS=
6387   fi
6388 fi
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395 depcc="$CXX"  am_compiler_list=
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6398 $as_echo_n "checking dependency style of $depcc... " >&6; }
6399 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6403   # We make a subdir and do the tests there.  Otherwise we can end up
6404   # making bogus files that we don't know about and never remove.  For
6405   # instance it was reported that on HP-UX the gcc test will end up
6406   # making a dummy file named `D' -- because `-MD' means `put the output
6407   # in D'.
6408   mkdir conftest.dir
6409   # Copy depcomp to subdir because otherwise we won't find it if we're
6410   # using a relative directory.
6411   cp "$am_depcomp" conftest.dir
6412   cd conftest.dir
6413   # We will build objects and dependencies in a subdirectory because
6414   # it helps to detect inapplicable dependency modes.  For instance
6415   # both Tru64's cc and ICC support -MD to output dependencies as a
6416   # side effect of compilation, but ICC will put the dependencies in
6417   # the current directory while Tru64 will put them in the object
6418   # directory.
6419   mkdir sub
6420
6421   am_cv_CXX_dependencies_compiler_type=none
6422   if test "$am_compiler_list" = ""; then
6423      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6424   fi
6425   am__universal=false
6426   case " $depcc " in #(
6427      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6428      esac
6429
6430   for depmode in $am_compiler_list; do
6431     # Setup a source with many dependencies, because some compilers
6432     # like to wrap large dependency lists on column 80 (with \), and
6433     # we should not choose a depcomp mode which is confused by this.
6434     #
6435     # We need to recreate these files for each test, as the compiler may
6436     # overwrite some of them when testing with obscure command lines.
6437     # This happens at least with the AIX C compiler.
6438     : > sub/conftest.c
6439     for i in 1 2 3 4 5 6; do
6440       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6441       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6442       # Solaris 8's {/usr,}/bin/sh.
6443       touch sub/conftst$i.h
6444     done
6445     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6446
6447     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6448     # mode.  It turns out that the SunPro C++ compiler does not properly
6449     # handle `-M -o', and we need to detect this.  Also, some Intel
6450     # versions had trouble with output in subdirs
6451     am__obj=sub/conftest.${OBJEXT-o}
6452     am__minus_obj="-o $am__obj"
6453     case $depmode in
6454     gcc)
6455       # This depmode causes a compiler race in universal mode.
6456       test "$am__universal" = false || continue
6457       ;;
6458     nosideeffect)
6459       # after this tag, mechanisms are not by side-effect, so they'll
6460       # only be used when explicitly requested
6461       if test "x$enable_dependency_tracking" = xyes; then
6462         continue
6463       else
6464         break
6465       fi
6466       ;;
6467     msvisualcpp | msvcmsys)
6468       # This compiler won't grok `-c -o', but also, the minuso test has
6469       # not run yet.  These depmodes are late enough in the game, and
6470       # so weak that their functioning should not be impacted.
6471       am__obj=conftest.${OBJEXT-o}
6472       am__minus_obj=
6473       ;;
6474     none) break ;;
6475     esac
6476     if depmode=$depmode \
6477        source=sub/conftest.c object=$am__obj \
6478        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6479        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6480          >/dev/null 2>conftest.err &&
6481        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6482        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6483        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6484        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6485       # icc doesn't choke on unknown options, it will just issue warnings
6486       # or remarks (even with -Werror).  So we grep stderr for any message
6487       # that says an option was ignored or not supported.
6488       # When given -MP, icc 7.0 and 7.1 complain thusly:
6489       #   icc: Command line warning: ignoring option '-M'; no argument required
6490       # The diagnosis changed in icc 8.0:
6491       #   icc: Command line remark: option '-MP' not supported
6492       if (grep 'ignoring option' conftest.err ||
6493           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6494         am_cv_CXX_dependencies_compiler_type=$depmode
6495         break
6496       fi
6497     fi
6498   done
6499
6500   cd ..
6501   rm -rf conftest.dir
6502 else
6503   am_cv_CXX_dependencies_compiler_type=none
6504 fi
6505
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6510
6511  if
6512   test "x$enable_dependency_tracking" != xno \
6513   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6514   am__fastdepCXX_TRUE=
6515   am__fastdepCXX_FALSE='#'
6516 else
6517   am__fastdepCXX_TRUE='#'
6518   am__fastdepCXX_FALSE=
6519 fi
6520
6521
6522    case $ac_cv_prog_cc_stdc in #(
6523   no) :
6524     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6525   *) :
6526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6527 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6528 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   ac_cv_prog_cc_c99=no
6532 ac_save_CC=$CC
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535 #include <stdarg.h>
6536 #include <stdbool.h>
6537 #include <stdlib.h>
6538 #include <wchar.h>
6539 #include <stdio.h>
6540
6541 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6542 #define debug(...) fprintf (stderr, __VA_ARGS__)
6543 #define showlist(...) puts (#__VA_ARGS__)
6544 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6545 static void
6546 test_varargs_macros (void)
6547 {
6548   int x = 1234;
6549   int y = 5678;
6550   debug ("Flag");
6551   debug ("X = %d\n", x);
6552   showlist (The first, second, and third items.);
6553   report (x>y, "x is %d but y is %d", x, y);
6554 }
6555
6556 // Check long long types.
6557 #define BIG64 18446744073709551615ull
6558 #define BIG32 4294967295ul
6559 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6560 #if !BIG_OK
6561   your preprocessor is broken;
6562 #endif
6563 #if BIG_OK
6564 #else
6565   your preprocessor is broken;
6566 #endif
6567 static long long int bignum = -9223372036854775807LL;
6568 static unsigned long long int ubignum = BIG64;
6569
6570 struct incomplete_array
6571 {
6572   int datasize;
6573   double data[];
6574 };
6575
6576 struct named_init {
6577   int number;
6578   const wchar_t *name;
6579   double average;
6580 };
6581
6582 typedef const char *ccp;
6583
6584 static inline int
6585 test_restrict (ccp restrict text)
6586 {
6587   // See if C++-style comments work.
6588   // Iterate through items via the restricted pointer.
6589   // Also check for declarations in for loops.
6590   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6591     continue;
6592   return 0;
6593 }
6594
6595 // Check varargs and va_copy.
6596 static void
6597 test_varargs (const char *format, ...)
6598 {
6599   va_list args;
6600   va_start (args, format);
6601   va_list args_copy;
6602   va_copy (args_copy, args);
6603
6604   const char *str;
6605   int number;
6606   float fnumber;
6607
6608   while (*format)
6609     {
6610       switch (*format++)
6611         {
6612         case 's': // string
6613           str = va_arg (args_copy, const char *);
6614           break;
6615         case 'd': // int
6616           number = va_arg (args_copy, int);
6617           break;
6618         case 'f': // float
6619           fnumber = va_arg (args_copy, double);
6620           break;
6621         default:
6622           break;
6623         }
6624     }
6625   va_end (args_copy);
6626   va_end (args);
6627 }
6628
6629 int
6630 main ()
6631 {
6632
6633   // Check bool.
6634   _Bool success = false;
6635
6636   // Check restrict.
6637   if (test_restrict ("String literal") == 0)
6638     success = true;
6639   char *restrict newvar = "Another string";
6640
6641   // Check varargs.
6642   test_varargs ("s, d' f .", "string", 65, 34.234);
6643   test_varargs_macros ();
6644
6645   // Check flexible array members.
6646   struct incomplete_array *ia =
6647     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6648   ia->datasize = 10;
6649   for (int i = 0; i < ia->datasize; ++i)
6650     ia->data[i] = i * 1.234;
6651
6652   // Check named initializers.
6653   struct named_init ni = {
6654     .number = 34,
6655     .name = L"Test wide string",
6656     .average = 543.34343,
6657   };
6658
6659   ni.number = 58;
6660
6661   int dynamic_array[ni.number];
6662   dynamic_array[ni.number - 1] = 543;
6663
6664   // work around unused variable warnings
6665   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6666           || dynamic_array[ni.number - 1] != 543);
6667
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6673 do
6674   CC="$ac_save_CC $ac_arg"
6675   if ac_fn_c_try_compile "$LINENO"; then :
6676   ac_cv_prog_cc_c99=$ac_arg
6677 fi
6678 rm -f core conftest.err conftest.$ac_objext
6679   test "x$ac_cv_prog_cc_c99" != "xno" && break
6680 done
6681 rm -f conftest.$ac_ext
6682 CC=$ac_save_CC
6683
6684 fi
6685 # AC_CACHE_VAL
6686 case "x$ac_cv_prog_cc_c99" in
6687   x)
6688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6689 $as_echo "none needed" >&6; } ;;
6690   xno)
6691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6692 $as_echo "unsupported" >&6; } ;;
6693   *)
6694     CC="$CC $ac_cv_prog_cc_c99"
6695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6696 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6697 esac
6698 if test "x$ac_cv_prog_cc_c99" != xno; then :
6699   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6703 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   ac_cv_prog_cc_c89=no
6707 ac_save_CC=$CC
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h.  */
6710 #include <stdarg.h>
6711 #include <stdio.h>
6712 #include <sys/types.h>
6713 #include <sys/stat.h>
6714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6715 struct buf { int x; };
6716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6717 static char *e (p, i)
6718      char **p;
6719      int i;
6720 {
6721   return p[i];
6722 }
6723 static char *f (char * (*g) (char **, int), char **p, ...)
6724 {
6725   char *s;
6726   va_list v;
6727   va_start (v,p);
6728   s = g (p, va_arg (v,int));
6729   va_end (v);
6730   return s;
6731 }
6732
6733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6734    function prototypes and stuff, but not '\xHH' hex character constants.
6735    These don't provoke an error unfortunately, instead are silently treated
6736    as 'x'.  The following induces an error, until -std is added to get
6737    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6738    array size at least.  It's necessary to write '\x00'==0 to get something
6739    that's true only with -std.  */
6740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6741
6742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6743    inside strings and character constants.  */
6744 #define FOO(x) 'x'
6745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6746
6747 int test (int i, double x);
6748 struct s1 {int (*f) (int a);};
6749 struct s2 {int (*f) (double a);};
6750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6751 int argc;
6752 char **argv;
6753 int
6754 main ()
6755 {
6756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6757   ;
6758   return 0;
6759 }
6760 _ACEOF
6761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6763 do
6764   CC="$ac_save_CC $ac_arg"
6765   if ac_fn_c_try_compile "$LINENO"; then :
6766   ac_cv_prog_cc_c89=$ac_arg
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext
6769   test "x$ac_cv_prog_cc_c89" != "xno" && break
6770 done
6771 rm -f conftest.$ac_ext
6772 CC=$ac_save_CC
6773
6774 fi
6775 # AC_CACHE_VAL
6776 case "x$ac_cv_prog_cc_c89" in
6777   x)
6778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6779 $as_echo "none needed" >&6; } ;;
6780   xno)
6781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6782 $as_echo "unsupported" >&6; } ;;
6783   *)
6784     CC="$CC $ac_cv_prog_cc_c89"
6785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6787 esac
6788 if test "x$ac_cv_prog_cc_c89" != xno; then :
6789   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6790 else
6791   ac_cv_prog_cc_stdc=no
6792 fi
6793
6794 fi
6795  ;;
6796 esac
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6798 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6799   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6800   $as_echo_n "(cached) " >&6
6801 fi
6802
6803   case $ac_cv_prog_cc_stdc in #(
6804   no) :
6805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806 $as_echo "unsupported" >&6; } ;; #(
6807   '') :
6808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;; #(
6810   *) :
6811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6812 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6813 esac
6814
6815 ac_ext=c
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6821 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6822 # On Suns, sometimes $CPP names a directory.
6823 if test -n "$CPP" && test -d "$CPP"; then
6824   CPP=
6825 fi
6826 if test -z "$CPP"; then
6827   if test "${ac_cv_prog_CPP+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830       # Double quotes because CPP needs to be expanded
6831     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6832     do
6833       ac_preproc_ok=false
6834 for ac_c_preproc_warn_flag in '' yes
6835 do
6836   # Use a header file that comes with gcc, so configuring glibc
6837   # with a fresh cross-compiler works.
6838   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6839   # <limits.h> exists even on freestanding compilers.
6840   # On the NeXT, cc -E runs the code through the compiler's parser,
6841   # not just through cpp. "Syntax error" is here to catch this case.
6842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844 #ifdef __STDC__
6845 # include <limits.h>
6846 #else
6847 # include <assert.h>
6848 #endif
6849                      Syntax error
6850 _ACEOF
6851 if ac_fn_c_try_cpp "$LINENO"; then :
6852
6853 else
6854   # Broken: fails on valid input.
6855 continue
6856 fi
6857 rm -f conftest.err conftest.$ac_ext
6858
6859   # OK, works on sane cases.  Now check whether nonexistent headers
6860   # can be detected and how.
6861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h.  */
6863 #include <ac_nonexistent.h>
6864 _ACEOF
6865 if ac_fn_c_try_cpp "$LINENO"; then :
6866   # Broken: success on invalid input.
6867 continue
6868 else
6869   # Passes both tests.
6870 ac_preproc_ok=:
6871 break
6872 fi
6873 rm -f conftest.err conftest.$ac_ext
6874
6875 done
6876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6877 rm -f conftest.err conftest.$ac_ext
6878 if $ac_preproc_ok; then :
6879   break
6880 fi
6881
6882     done
6883     ac_cv_prog_CPP=$CPP
6884
6885 fi
6886   CPP=$ac_cv_prog_CPP
6887 else
6888   ac_cv_prog_CPP=$CPP
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6891 $as_echo "$CPP" >&6; }
6892 ac_preproc_ok=false
6893 for ac_c_preproc_warn_flag in '' yes
6894 do
6895   # Use a header file that comes with gcc, so configuring glibc
6896   # with a fresh cross-compiler works.
6897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898   # <limits.h> exists even on freestanding compilers.
6899   # On the NeXT, cc -E runs the code through the compiler's parser,
6900   # not just through cpp. "Syntax error" is here to catch this case.
6901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h.  */
6903 #ifdef __STDC__
6904 # include <limits.h>
6905 #else
6906 # include <assert.h>
6907 #endif
6908                      Syntax error
6909 _ACEOF
6910 if ac_fn_c_try_cpp "$LINENO"; then :
6911
6912 else
6913   # Broken: fails on valid input.
6914 continue
6915 fi
6916 rm -f conftest.err conftest.$ac_ext
6917
6918   # OK, works on sane cases.  Now check whether nonexistent headers
6919   # can be detected and how.
6920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h.  */
6922 #include <ac_nonexistent.h>
6923 _ACEOF
6924 if ac_fn_c_try_cpp "$LINENO"; then :
6925   # Broken: success on invalid input.
6926 continue
6927 else
6928   # Passes both tests.
6929 ac_preproc_ok=:
6930 break
6931 fi
6932 rm -f conftest.err conftest.$ac_ext
6933
6934 done
6935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6936 rm -f conftest.err conftest.$ac_ext
6937 if $ac_preproc_ok; then :
6938
6939 else
6940   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6942 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6943 See \`config.log' for more details" "$LINENO" 5; }
6944 fi
6945
6946 ac_ext=c
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6954 if test "${ac_cv_path_SED+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6958      for ac_i in 1 2 3 4 5 6 7; do
6959        ac_script="$ac_script$as_nl$ac_script"
6960      done
6961      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6962      { ac_script=; unset ac_script;}
6963      if test -z "$SED"; then
6964   ac_path_SED_found=false
6965   # Loop through the user's path and test for each of PROGNAME-LIST
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971     for ac_prog in sed gsed; do
6972     for ac_exec_ext in '' $ac_executable_extensions; do
6973       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6974       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6975 # Check for GNU ac_path_SED and select it if it is found.
6976   # Check for GNU $ac_path_SED
6977 case `"$ac_path_SED" --version 2>&1` in
6978 *GNU*)
6979   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6980 *)
6981   ac_count=0
6982   $as_echo_n 0123456789 >"conftest.in"
6983   while :
6984   do
6985     cat "conftest.in" "conftest.in" >"conftest.tmp"
6986     mv "conftest.tmp" "conftest.in"
6987     cp "conftest.in" "conftest.nl"
6988     $as_echo '' >> "conftest.nl"
6989     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6990     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6991     as_fn_arith $ac_count + 1 && ac_count=$as_val
6992     if test $ac_count -gt ${ac_path_SED_max-0}; then
6993       # Best one so far, save it but keep looking for a better one
6994       ac_cv_path_SED="$ac_path_SED"
6995       ac_path_SED_max=$ac_count
6996     fi
6997     # 10*(2^10) chars as input seems more than enough
6998     test $ac_count -gt 10 && break
6999   done
7000   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7001 esac
7002
7003       $ac_path_SED_found && break 3
7004     done
7005   done
7006   done
7007 IFS=$as_save_IFS
7008   if test -z "$ac_cv_path_SED"; then
7009     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7010   fi
7011 else
7012   ac_cv_path_SED=$SED
7013 fi
7014
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7017 $as_echo "$ac_cv_path_SED" >&6; }
7018  SED="$ac_cv_path_SED"
7019   rm -f conftest.sed
7020
7021 test -z "$SED" && SED=sed
7022 Xsed="$SED -e 1s/^X//"
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7035 $as_echo_n "checking for fgrep... " >&6; }
7036 if test "${ac_cv_path_FGREP+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7040    then ac_cv_path_FGREP="$GREP -F"
7041    else
7042      if test -z "$FGREP"; then
7043   ac_path_FGREP_found=false
7044   # Loop through the user's path and test for each of PROGNAME-LIST
7045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050     for ac_prog in fgrep; do
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7053       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7054 # Check for GNU ac_path_FGREP and select it if it is found.
7055   # Check for GNU $ac_path_FGREP
7056 case `"$ac_path_FGREP" --version 2>&1` in
7057 *GNU*)
7058   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7059 *)
7060   ac_count=0
7061   $as_echo_n 0123456789 >"conftest.in"
7062   while :
7063   do
7064     cat "conftest.in" "conftest.in" >"conftest.tmp"
7065     mv "conftest.tmp" "conftest.in"
7066     cp "conftest.in" "conftest.nl"
7067     $as_echo 'FGREP' >> "conftest.nl"
7068     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7069     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7070     as_fn_arith $ac_count + 1 && ac_count=$as_val
7071     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7072       # Best one so far, save it but keep looking for a better one
7073       ac_cv_path_FGREP="$ac_path_FGREP"
7074       ac_path_FGREP_max=$ac_count
7075     fi
7076     # 10*(2^10) chars as input seems more than enough
7077     test $ac_count -gt 10 && break
7078   done
7079   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7080 esac
7081
7082       $ac_path_FGREP_found && break 3
7083     done
7084   done
7085   done
7086 IFS=$as_save_IFS
7087   if test -z "$ac_cv_path_FGREP"; then
7088     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7089   fi
7090 else
7091   ac_cv_path_FGREP=$FGREP
7092 fi
7093
7094    fi
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7097 $as_echo "$ac_cv_path_FGREP" >&6; }
7098  FGREP="$ac_cv_path_FGREP"
7099
7100
7101 test -z "$GREP" && GREP=grep
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7122
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7124 $as_echo_n "checking how to print strings... " >&6; }
7125 # Test print first, because it will be a builtin if present.
7126 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7127    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7128   ECHO='print -r --'
7129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7130   ECHO='printf %s\n'
7131 else
7132   # Use this function as a fallback that always works.
7133   func_fallback_echo ()
7134   {
7135     eval 'cat <<_LTECHO_EOF
7136 $1
7137 _LTECHO_EOF'
7138   }
7139   ECHO='func_fallback_echo'
7140 fi
7141
7142 # func_echo_all arg...
7143 # Invoke $ECHO with all args, space-separated.
7144 func_echo_all ()
7145 {
7146     $ECHO ""
7147 }
7148
7149 case "$ECHO" in
7150   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7151 $as_echo "printf" >&6; } ;;
7152   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7153 $as_echo "print -r" >&6; } ;;
7154   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7155 $as_echo "cat" >&6; } ;;
7156 esac
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173 # Check whether --with-gnu-ld was given.
7174 if test "${with_gnu_ld+set}" = set; then :
7175   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7176 else
7177   with_gnu_ld=no
7178 fi
7179
7180 ac_prog=ld
7181 if test "$GCC" = yes; then
7182   # Check if gcc -print-prog-name=ld gives a path.
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7184 $as_echo_n "checking for ld used by $CC... " >&6; }
7185   case $host in
7186   *-*-mingw*)
7187     # gcc leaves a trailing carriage return which upsets mingw
7188     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7189   *)
7190     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7191   esac
7192   case $ac_prog in
7193     # Accept absolute paths.
7194     [\\/]* | ?:[\\/]*)
7195       re_direlt='/[^/][^/]*/\.\./'
7196       # Canonicalize the pathname of ld
7197       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7198       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7199         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7200       done
7201       test -z "$LD" && LD="$ac_prog"
7202       ;;
7203   "")
7204     # If it fails, then pretend we aren't using GCC.
7205     ac_prog=ld
7206     ;;
7207   *)
7208     # If it is relative, then search for the first ld in PATH.
7209     with_gnu_ld=unknown
7210     ;;
7211   esac
7212 elif test "$with_gnu_ld" = yes; then
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7214 $as_echo_n "checking for GNU ld... " >&6; }
7215 else
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7217 $as_echo_n "checking for non-GNU ld... " >&6; }
7218 fi
7219 if test "${lt_cv_path_LD+set}" = set; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   if test -z "$LD"; then
7223   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224   for ac_dir in $PATH; do
7225     IFS="$lt_save_ifs"
7226     test -z "$ac_dir" && ac_dir=.
7227     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7228       lt_cv_path_LD="$ac_dir/$ac_prog"
7229       # Check to see if the program is GNU ld.  I'd rather use --version,
7230       # but apparently some variants of GNU ld only accept -v.
7231       # Break only if it was the GNU/non-GNU ld that we prefer.
7232       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7233       *GNU* | *'with BFD'*)
7234         test "$with_gnu_ld" != no && break
7235         ;;
7236       *)
7237         test "$with_gnu_ld" != yes && break
7238         ;;
7239       esac
7240     fi
7241   done
7242   IFS="$lt_save_ifs"
7243 else
7244   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7245 fi
7246 fi
7247
7248 LD="$lt_cv_path_LD"
7249 if test -n "$LD"; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7251 $as_echo "$LD" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7258 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7259 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7263 case `$LD -v 2>&1 </dev/null` in
7264 *GNU* | *'with BFD'*)
7265   lt_cv_prog_gnu_ld=yes
7266   ;;
7267 *)
7268   lt_cv_prog_gnu_ld=no
7269   ;;
7270 esac
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7273 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7274 with_gnu_ld=$lt_cv_prog_gnu_ld
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7286 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7287 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7288   $as_echo_n "(cached) " >&6
7289 else
7290   ac_cv_prog_cc_c99=no
7291 ac_save_CC=$CC
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h.  */
7294 #include <stdarg.h>
7295 #include <stdbool.h>
7296 #include <stdlib.h>
7297 #include <wchar.h>
7298 #include <stdio.h>
7299
7300 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7301 #define debug(...) fprintf (stderr, __VA_ARGS__)
7302 #define showlist(...) puts (#__VA_ARGS__)
7303 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7304 static void
7305 test_varargs_macros (void)
7306 {
7307   int x = 1234;
7308   int y = 5678;
7309   debug ("Flag");
7310   debug ("X = %d\n", x);
7311   showlist (The first, second, and third items.);
7312   report (x>y, "x is %d but y is %d", x, y);
7313 }
7314
7315 // Check long long types.
7316 #define BIG64 18446744073709551615ull
7317 #define BIG32 4294967295ul
7318 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7319 #if !BIG_OK
7320   your preprocessor is broken;
7321 #endif
7322 #if BIG_OK
7323 #else
7324   your preprocessor is broken;
7325 #endif
7326 static long long int bignum = -9223372036854775807LL;
7327 static unsigned long long int ubignum = BIG64;
7328
7329 struct incomplete_array
7330 {
7331   int datasize;
7332   double data[];
7333 };
7334
7335 struct named_init {
7336   int number;
7337   const wchar_t *name;
7338   double average;
7339 };
7340
7341 typedef const char *ccp;
7342
7343 static inline int
7344 test_restrict (ccp restrict text)
7345 {
7346   // See if C++-style comments work.
7347   // Iterate through items via the restricted pointer.
7348   // Also check for declarations in for loops.
7349   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7350     continue;
7351   return 0;
7352 }
7353
7354 // Check varargs and va_copy.
7355 static void
7356 test_varargs (const char *format, ...)
7357 {
7358   va_list args;
7359   va_start (args, format);
7360   va_list args_copy;
7361   va_copy (args_copy, args);
7362
7363   const char *str;
7364   int number;
7365   float fnumber;
7366
7367   while (*format)
7368     {
7369       switch (*format++)
7370         {
7371         case 's': // string
7372           str = va_arg (args_copy, const char *);
7373           break;
7374         case 'd': // int
7375           number = va_arg (args_copy, int);
7376           break;
7377         case 'f': // float
7378           fnumber = va_arg (args_copy, double);
7379           break;
7380         default:
7381           break;
7382         }
7383     }
7384   va_end (args_copy);
7385   va_end (args);
7386 }
7387
7388 int
7389 main ()
7390 {
7391
7392   // Check bool.
7393   _Bool success = false;
7394
7395   // Check restrict.
7396   if (test_restrict ("String literal") == 0)
7397     success = true;
7398   char *restrict newvar = "Another string";
7399
7400   // Check varargs.
7401   test_varargs ("s, d' f .", "string", 65, 34.234);
7402   test_varargs_macros ();
7403
7404   // Check flexible array members.
7405   struct incomplete_array *ia =
7406     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7407   ia->datasize = 10;
7408   for (int i = 0; i < ia->datasize; ++i)
7409     ia->data[i] = i * 1.234;
7410
7411   // Check named initializers.
7412   struct named_init ni = {
7413     .number = 34,
7414     .name = L"Test wide string",
7415     .average = 543.34343,
7416   };
7417
7418   ni.number = 58;
7419
7420   int dynamic_array[ni.number];
7421   dynamic_array[ni.number - 1] = 543;
7422
7423   // work around unused variable warnings
7424   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7425           || dynamic_array[ni.number - 1] != 543);
7426
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7432 do
7433   CC="$ac_save_CC $ac_arg"
7434   if ac_fn_c_try_compile "$LINENO"; then :
7435   ac_cv_prog_cc_c99=$ac_arg
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext
7438   test "x$ac_cv_prog_cc_c99" != "xno" && break
7439 done
7440 rm -f conftest.$ac_ext
7441 CC=$ac_save_CC
7442
7443 fi
7444 # AC_CACHE_VAL
7445 case "x$ac_cv_prog_cc_c99" in
7446   x)
7447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7448 $as_echo "none needed" >&6; } ;;
7449   xno)
7450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7451 $as_echo "unsupported" >&6; } ;;
7452   *)
7453     CC="$CC $ac_cv_prog_cc_c99"
7454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7455 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7456 esac
7457 if test "x$ac_cv_prog_cc_c99" != xno; then :
7458
7459 fi
7460
7461
7462 if test "x$CC" != xcc; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7464 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7467 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7468 fi
7469 set dummy $CC; ac_cc=`$as_echo "$2" |
7470                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7471 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476
7477 int
7478 main ()
7479 {
7480
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 # Make sure it works both with $CC and with simple cc.
7486 # We do the test twice because some compilers refuse to overwrite an
7487 # existing .o file with -o, though they will create one.
7488 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7489 rm -f conftest2.*
7490 if { { case "(($ac_try" in
7491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492   *) ac_try_echo=$ac_try;;
7493 esac
7494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7495 $as_echo "$ac_try_echo"; } >&5
7496   (eval "$ac_try") 2>&5
7497   ac_status=$?
7498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499   test $ac_status = 0; } &&
7500    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502   *) ac_try_echo=$ac_try;;
7503 esac
7504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7505 $as_echo "$ac_try_echo"; } >&5
7506   (eval "$ac_try") 2>&5
7507   ac_status=$?
7508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509   test $ac_status = 0; };
7510 then
7511   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7512   if test "x$CC" != xcc; then
7513     # Test first that cc exists at all.
7514     if { ac_try='cc -c conftest.$ac_ext >&5'
7515   { { case "(($ac_try" in
7516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517   *) ac_try_echo=$ac_try;;
7518 esac
7519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7520 $as_echo "$ac_try_echo"; } >&5
7521   (eval "$ac_try") 2>&5
7522   ac_status=$?
7523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524   test $ac_status = 0; }; }; then
7525       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7526       rm -f conftest2.*
7527       if { { case "(($ac_try" in
7528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529   *) ac_try_echo=$ac_try;;
7530 esac
7531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7532 $as_echo "$ac_try_echo"; } >&5
7533   (eval "$ac_try") 2>&5
7534   ac_status=$?
7535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536   test $ac_status = 0; } &&
7537          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539   *) ac_try_echo=$ac_try;;
7540 esac
7541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7542 $as_echo "$ac_try_echo"; } >&5
7543   (eval "$ac_try") 2>&5
7544   ac_status=$?
7545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546   test $ac_status = 0; };
7547       then
7548         # cc works too.
7549         :
7550       else
7551         # cc exists but doesn't like -o.
7552         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7553       fi
7554     fi
7555   fi
7556 else
7557   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7558 fi
7559 rm -f core conftest*
7560
7561 fi
7562 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568
7569 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7570
7571 fi
7572
7573 # FIXME: we rely on the cache variable name because
7574 # there is no other way.
7575 set dummy $CC
7576 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7577 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7578 if test "$am_t" != yes; then
7579    # Losing compiler, so override with the script.
7580    # FIXME: It is wrong to rewrite CC.
7581    # But if we don't then we get into trouble of one sort or another.
7582    # A longer-term fix would be to have automake use am__CC in this case,
7583    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7584    CC="$am_aux_dir/compile $CC"
7585 fi
7586
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7589 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7590 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   ac_cv_cflags_warn_all="no, unknown"
7594  ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599
7600  ac_save_CFLAGS="$CFLAGS"
7601 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"    #
7602 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h.  */
7605
7606 int
7607 main ()
7608 {
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 done
7619  CFLAGS="$ac_save_CFLAGS"
7620  ac_ext=c
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7629 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7630 case ".$ac_cv_cflags_warn_all" in
7631      .ok|.ok,*)  ;;
7632    .|.no|.no,*)
7633  ;;
7634    *)
7635    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7636    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7637   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7638   ac_status=$?
7639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640   test $ac_status = 0; }
7641    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7642   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7643   ac_status=$?
7644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645   test $ac_status = 0; }
7646                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7647    fi
7648  ;;
7649 esac
7650
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654 set x ${MAKE-make}
7655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7656 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7657   $as_echo_n "(cached) " >&6
7658 else
7659   cat >conftest.make <<\_ACEOF
7660 SHELL = /bin/sh
7661 all:
7662         @echo '@@@%%%=$(MAKE)=@@@%%%'
7663 _ACEOF
7664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666   *@@@%%%=?*=@@@%%%*)
7667     eval ac_cv_prog_make_${ac_make}_set=yes;;
7668   *)
7669     eval ac_cv_prog_make_${ac_make}_set=no;;
7670 esac
7671 rm -f conftest.make
7672 fi
7673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7676   SET_MAKE=
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680   SET_MAKE="MAKE=${MAKE-make}"
7681 fi
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7684 $as_echo_n "checking whether ln -s works... " >&6; }
7685 LN_S=$as_ln_s
7686 if test "$LN_S" = "ln -s"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688 $as_echo "yes" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7691 $as_echo "no, using $LN_S" >&6; }
7692 fi
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7695 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696
7697 # Check whether --with-dmalloc was given.
7698 if test "${with_dmalloc+set}" = set; then :
7699   withval=$with_dmalloc; if test "$withval" = yes; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7701 $as_echo "yes" >&6; }
7702
7703 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7704
7705   LIBS="$LIBS -ldmalloc"
7706   LDFLAGS="$LDFLAGS -g"
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716
7717
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7719 $as_echo_n "checking for __attribute__... " >&6; }
7720 if test "${ax_cv___attribute__+set}" = set; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725 #include <stdlib.h>
7726           static void foo(void) __attribute__ ((unused));
7727           static void
7728           foo(void) {
7729               exit(1);
7730           }
7731
7732 int
7733 main ()
7734 {
7735
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741   ax_cv___attribute__=yes
7742 else
7743   ax_cv___attribute__=no
7744
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7750 $as_echo "$ax_cv___attribute__" >&6; }
7751   if test "$ax_cv___attribute__" = "yes"; then
7752
7753 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7754
7755   fi
7756
7757
7758
7759 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7760         if test -n "$ac_tool_prefix"; then
7761   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   case $PKG_CONFIG in
7769   [\\/]* | ?:[\\/]*)
7770   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7771   ;;
7772   *)
7773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776   IFS=$as_save_IFS
7777   test -z "$as_dir" && as_dir=.
7778     for ac_exec_ext in '' $ac_executable_extensions; do
7779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782     break 2
7783   fi
7784 done
7785   done
7786 IFS=$as_save_IFS
7787
7788   ;;
7789 esac
7790 fi
7791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7792 if test -n "$PKG_CONFIG"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7794 $as_echo "$PKG_CONFIG" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_path_PKG_CONFIG"; then
7803   ac_pt_PKG_CONFIG=$PKG_CONFIG
7804   # Extract the first word of "pkg-config", so it can be a program name with args.
7805 set dummy pkg-config; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7809   $as_echo_n "(cached) " >&6
7810 else
7811   case $ac_pt_PKG_CONFIG in
7812   [\\/]* | ?:[\\/]*)
7813   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7814   ;;
7815   *)
7816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7818 do
7819   IFS=$as_save_IFS
7820   test -z "$as_dir" && as_dir=.
7821     for ac_exec_ext in '' $ac_executable_extensions; do
7822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825     break 2
7826   fi
7827 done
7828   done
7829 IFS=$as_save_IFS
7830
7831   ;;
7832 esac
7833 fi
7834 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7835 if test -n "$ac_pt_PKG_CONFIG"; then
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7837 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843   if test "x$ac_pt_PKG_CONFIG" = x; then
7844     PKG_CONFIG=""
7845   else
7846     case $cross_compiling:$ac_tool_warned in
7847 yes:)
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7850 ac_tool_warned=yes ;;
7851 esac
7852     PKG_CONFIG=$ac_pt_PKG_CONFIG
7853   fi
7854 else
7855   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7856 fi
7857
7858 fi
7859 if test -n "$PKG_CONFIG"; then
7860         _pkg_min_version=0.9.0
7861         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7862 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7863         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7864                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865 $as_echo "yes" >&6; }
7866         else
7867                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869                 PKG_CONFIG=""
7870         fi
7871
7872 fi
7873
7874 #
7875 # Enable run-time checking.
7876 #
7877 # Check whether --enable-bounds-checking was given.
7878 if test "${enable_bounds_checking+set}" = set; then :
7879   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7880 else
7881   enable_bounds_checking='no'
7882 fi
7883
7884
7885 if test "$enable_bounds_checking" = yes; then
7886
7887 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7888
7889 fi
7890
7891 #
7892 # Tests for Windows
7893 #
7894
7895
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7897 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7898 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903
7904 int
7905 main ()
7906 {
7907 #ifndef _MSC_VER
7908        choke me
7909 #endif
7910
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916   ax_compiler_ms=yes
7917 else
7918   ax_compiler_ms=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 ax_cv_c_compiler_ms=$ax_compiler_ms
7922
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7925 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7926
7927 GDI32_LIBS=''
7928 native_win32_build='no'
7929 cygwin_build='no'
7930 case "${host_os}" in
7931     cygwin* )
7932         cygwin_build='yes'
7933         GDI32_LIBS='-lgdi32'
7934     ;;
7935     mingw* )
7936         native_win32_build='yes'
7937         GDI32_LIBS='-lgdi32'
7938     ;;
7939 esac
7940 if test "${GDI32_LIBS}x" != 'x'; then
7941
7942 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7943
7944 fi
7945
7946  if test "${GDI32_LIBS}x" != 'x' ; then
7947   WINGDI32_DELEGATE_TRUE=
7948   WINGDI32_DELEGATE_FALSE='#'
7949 else
7950   WINGDI32_DELEGATE_TRUE='#'
7951   WINGDI32_DELEGATE_FALSE=
7952 fi
7953
7954  if test "${native_win32_build}" = 'yes' ; then
7955   WIN32_NATIVE_BUILD_TRUE=
7956   WIN32_NATIVE_BUILD_FALSE='#'
7957 else
7958   WIN32_NATIVE_BUILD_TRUE='#'
7959   WIN32_NATIVE_BUILD_FALSE=
7960 fi
7961
7962  if test "${cygwin_build}" = 'yes' ; then
7963   CYGWIN_BUILD_TRUE=
7964   CYGWIN_BUILD_FALSE='#'
7965 else
7966   CYGWIN_BUILD_TRUE='#'
7967   CYGWIN_BUILD_FALSE=
7968 fi
7969
7970  if test "x${CC}" = 'xcl.exe' ; then
7971   USING_CL_TRUE=
7972   USING_CL_FALSE='#'
7973 else
7974   USING_CL_TRUE='#'
7975   USING_CL_FALSE=
7976 fi
7977
7978
7979 WinPathScript="${srcdirfull}/winpath.sh"
7980
7981
7982 #
7983 # Compiler flags tweaks
7984 #
7985 if test "${GCC}" != "yes"; then
7986     case "${host}" in
7987         *-*-hpux* )
7988             # aCC: HP ANSI C++ B3910B A.03.34
7989             CFLAGS="${CFLAGS} -Wp,-H30000"
7990             if test -n "${CXXFLAGS}"; then
7991                 CXXFLAGS='-AA'
7992             else
7993                 CXXFLAGS="${CXXFLAGS} -AA"
7994             fi
7995         ;;
7996         *-dec-osf5.* )
7997             # Compaq alphaev68-dec-osf5.1 compiler
7998             if test -n "${CXXFLAGS}"; then
7999                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8000             else
8001                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8002             fi
8003   esac
8004 fi
8005
8006 # Check for lazy-loading.
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8008 $as_echo_n "checking for linker lazyload option... " >&6; }
8009 if test "${im_cv_ld_lazyload+set}" = set; then :
8010   $as_echo_n "(cached) " >&6
8011 else
8012
8013 im_cv_ld_lazyload='none'
8014 case "${host}" in
8015   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8016     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8017        im_cv_ld_lazyload='-Wl,-zlazyload'
8018     fi
8019     ;;
8020 esac
8021
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8024 $as_echo "$im_cv_ld_lazyload" >&6; }
8025 if test "${im_cv_ld_lazyload}" != 'none' ; then
8026   if test -z "${LDFLAGS}" ; then
8027     LDFLAGS="${im_cv_ld_lazyload}"
8028   else
8029     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8030   fi
8031 fi
8032
8033 case "$host" in
8034 *darwin* | *-macos10*)
8035     # Check whether --enable-osx-universal-binary was given.
8036 if test "${enable_osx_universal_binary+set}" = set; then :
8037   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8038 else
8039   build_osxuniversal=no
8040 fi
8041
8042
8043   if test "${build_osxuniversal}" != no ; then
8044     if test "$enable_dependency_tracking" != no ; then
8045       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8046 Please re-run configure with these options:
8047   --disable-dependency-tracking --enable-osx-universal-binary
8048         " "$LINENO" 5
8049     fi
8050     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8053   fi
8054   ;;
8055 esac
8056
8057 # Enable support for threads
8058
8059 # Check whether --with-threads was given.
8060 if test "${with_threads+set}" = set; then :
8061   withval=$with_threads; with_threads=$withval
8062 else
8063   with_threads='yes'
8064 fi
8065
8066
8067 have_threads=no
8068 if test "$with_threads" != 'no'; then
8069
8070
8071
8072 ac_ext=c
8073 ac_cpp='$CPP $CPPFLAGS'
8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
8078 ax_pthread_ok=no
8079
8080 # We used to check for pthread.h first, but this fails if pthread.h
8081 # requires special compiler flags (e.g. on True64 or Sequent).
8082 # It gets checked for in the link test anyway.
8083
8084 # First of all, check if the user has set any of the PTHREAD_LIBS,
8085 # etcetera environment variables, and if threads linking works using
8086 # them:
8087 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8088         save_CFLAGS="$CFLAGS"
8089         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8090         save_LIBS="$LIBS"
8091         LIBS="$PTHREAD_LIBS $LIBS"
8092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8093 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8094         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h.  */
8096
8097 /* Override any GCC internal prototype to avoid an error.
8098    Use char because int might match the return type of a GCC
8099    builtin and then its argument prototype would still apply.  */
8100 #ifdef __cplusplus
8101 extern "C"
8102 #endif
8103 char pthread_join ();
8104 int
8105 main ()
8106 {
8107 return pthread_join ();
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 if ac_fn_c_try_link "$LINENO"; then :
8113   ax_pthread_ok=yes
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext \
8116     conftest$ac_exeext conftest.$ac_ext
8117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8118 $as_echo "$ax_pthread_ok" >&6; }
8119         if test x"$ax_pthread_ok" = xno; then
8120                 PTHREAD_LIBS=""
8121                 PTHREAD_CFLAGS=""
8122         fi
8123         LIBS="$save_LIBS"
8124         CFLAGS="$save_CFLAGS"
8125 fi
8126
8127 # We must check for the threads library under a number of different
8128 # names; the ordering is very important because some systems
8129 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8130 # libraries is broken (non-POSIX).
8131
8132 # Create a list of thread flags to try.  Items starting with a "-" are
8133 # C compiler flags, and other items are library names, except for "none"
8134 # which indicates that we try without any flags at all, and "pthread-config"
8135 # which is a program returning the flags for the Pth emulation library.
8136
8137 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8138
8139 # The ordering *is* (sometimes) important.  Some notes on the
8140 # individual items follow:
8141
8142 # pthreads: AIX (must check this before -lpthread)
8143 # none: in case threads are in libc; should be tried before -Kthread and
8144 #       other compiler flags to prevent continual compiler warnings
8145 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8146 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8147 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8148 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8149 # -pthreads: Solaris/gcc
8150 # -mthreads: Mingw32/gcc, Lynx/gcc
8151 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8152 #      doesn't hurt to check since this sometimes defines pthreads too;
8153 #      also defines -D_REENTRANT)
8154 #      ... -mt is also the pthreads flag for HP/aCC
8155 # pthread: Linux, etcetera
8156 # --thread-safe: KAI C++
8157 # pthread-config: use pthread-config program (for GNU Pth library)
8158
8159 case "${host_cpu}-${host_os}" in
8160         *solaris*)
8161
8162         # On Solaris (at least, for some versions), libc contains stubbed
8163         # (non-functional) versions of the pthreads routines, so link-based
8164         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8165         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8166         # a function called by this macro, so we could check for that, but
8167         # who knows whether they'll stub that too in a future libc.)  So,
8168         # we'll just look for -pthreads and -lpthread first:
8169
8170         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8171         ;;
8172
8173         *-darwin*)
8174         ax_pthread_flags="-pthread $ax_pthread_flags"
8175         ;;
8176 esac
8177
8178 if test x"$ax_pthread_ok" = xno; then
8179 for flag in $ax_pthread_flags; do
8180
8181         case $flag in
8182                 none)
8183                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8184 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8185                 ;;
8186
8187                 -*)
8188                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8189 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8190                 PTHREAD_CFLAGS="$flag"
8191                 ;;
8192
8193                 pthread-config)
8194                 # Extract the first word of "pthread-config", so it can be a program name with args.
8195 set dummy pthread-config; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   if test -n "$ax_pthread_config"; then
8202   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8203 else
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8206 do
8207   IFS=$as_save_IFS
8208   test -z "$as_dir" && as_dir=.
8209     for ac_exec_ext in '' $ac_executable_extensions; do
8210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211     ac_cv_prog_ax_pthread_config="yes"
8212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213     break 2
8214   fi
8215 done
8216   done
8217 IFS=$as_save_IFS
8218
8219   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8220 fi
8221 fi
8222 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8223 if test -n "$ax_pthread_config"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8225 $as_echo "$ax_pthread_config" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232                 if test x"$ax_pthread_config" = xno; then continue; fi
8233                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8234                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8235                 ;;
8236
8237                 *)
8238                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8239 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8240                 PTHREAD_LIBS="-l$flag"
8241                 ;;
8242         esac
8243
8244         save_LIBS="$LIBS"
8245         save_CFLAGS="$CFLAGS"
8246         LIBS="$PTHREAD_LIBS $LIBS"
8247         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8248
8249         # Check for various functions.  We must include pthread.h,
8250         # since some functions may be macros.  (On the Sequent, we
8251         # need a special flag -Kthread to make this header compile.)
8252         # We check for pthread_join because it is in -lpthread on IRIX
8253         # while pthread_create is in libc.  We check for pthread_attr_init
8254         # due to DEC craziness with -lpthreads.  We check for
8255         # pthread_cleanup_push because it is one of the few pthread
8256         # functions on Solaris that doesn't have a non-functional libc stub.
8257         # We try pthread_create on general principles.
8258         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260 #include <pthread.h>
8261                      static void routine(void* a) {a=0;}
8262                      static void* start_routine(void* a) {return a;}
8263 int
8264 main ()
8265 {
8266 pthread_t th; pthread_attr_t attr;
8267                      pthread_create(&th,0,start_routine,0);
8268                      pthread_join(th, 0);
8269                      pthread_attr_init(&attr);
8270                      pthread_cleanup_push(routine, 0);
8271                      pthread_cleanup_pop(0);
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277   ax_pthread_ok=yes
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext \
8280     conftest$ac_exeext conftest.$ac_ext
8281
8282         LIBS="$save_LIBS"
8283         CFLAGS="$save_CFLAGS"
8284
8285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8286 $as_echo "$ax_pthread_ok" >&6; }
8287         if test "x$ax_pthread_ok" = xyes; then
8288                 break;
8289         fi
8290
8291         PTHREAD_LIBS=""
8292         PTHREAD_CFLAGS=""
8293 done
8294 fi
8295
8296 # Various other checks:
8297 if test "x$ax_pthread_ok" = xyes; then
8298         save_LIBS="$LIBS"
8299         LIBS="$PTHREAD_LIBS $LIBS"
8300         save_CFLAGS="$CFLAGS"
8301         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8302
8303         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8305 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8306         attr_name=unknown
8307         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8308             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h.  */
8310 #include <pthread.h>
8311 int
8312 main ()
8313 {
8314 int attr=$attr; return attr;
8315   ;
8316   return 0;
8317 }
8318 _ACEOF
8319 if ac_fn_c_try_link "$LINENO"; then :
8320   attr_name=$attr; break
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext \
8323     conftest$ac_exeext conftest.$ac_ext
8324         done
8325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8326 $as_echo "$attr_name" >&6; }
8327         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8328
8329 cat >>confdefs.h <<_ACEOF
8330 #define PTHREAD_CREATE_JOINABLE $attr_name
8331 _ACEOF
8332
8333         fi
8334
8335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8336 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8337         flag=no
8338         case "${host_cpu}-${host_os}" in
8339             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8340             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8341         esac
8342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8343 $as_echo "${flag}" >&6; }
8344         if test "x$flag" != xno; then
8345             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8346         fi
8347
8348         LIBS="$save_LIBS"
8349         CFLAGS="$save_CFLAGS"
8350
8351         # More AIX lossage: must compile with xlc_r or cc_r
8352         if test x"$GCC" != xyes; then
8353           for ac_prog in xlc_r cc_r
8354 do
8355   # Extract the first word of "$ac_prog", so it can be a program name with args.
8356 set dummy $ac_prog; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   if test -n "$PTHREAD_CC"; then
8363   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370     for ac_exec_ext in '' $ac_executable_extensions; do
8371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372     ac_cv_prog_PTHREAD_CC="$ac_prog"
8373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377   done
8378 IFS=$as_save_IFS
8379
8380 fi
8381 fi
8382 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8383 if test -n "$PTHREAD_CC"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8385 $as_echo "$PTHREAD_CC" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392   test -n "$PTHREAD_CC" && break
8393 done
8394 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8395
8396         else
8397           PTHREAD_CC=$CC
8398         fi
8399 else
8400         PTHREAD_CC="$CC"
8401 fi
8402
8403
8404
8405
8406
8407 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8408 if test x"$ax_pthread_ok" = xyes; then
8409
8410 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8411
8412         :
8413 else
8414         ax_pthread_ok=no
8415
8416 fi
8417 ac_ext=c
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422
8423
8424     if test "$ax_pthread_ok" = yes; then
8425         have_threads=yes
8426         DEF_THREAD="$PTHREAD_CFLAGS"
8427         CFLAGS="$CFLAGS $DEF_THREAD"
8428         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8429         if test "$CC" != "$PTHREAD_CC"; then
8430             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8431 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8432             CC="$PTHREAD_CC"
8433         fi
8434
8435 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8436
8437     fi
8438 fi
8439
8440 # Enable support for OpenMP
8441 if test "$have_threads" != 'yes'; then
8442   ac_cv_prog_c_openmp=unsupported
8443 fi
8444
8445   OPENMP_CFLAGS=
8446   # Check whether --enable-openmp was given.
8447 if test "${enable_openmp+set}" = set; then :
8448   enableval=$enable_openmp;
8449 fi
8450
8451   if test "$enable_openmp" != no; then
8452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8453 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8454 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h.  */
8459
8460 #ifndef _OPENMP
8461  choke me
8462 #endif
8463 #include <omp.h>
8464 int main () { return omp_get_num_threads (); }
8465
8466 _ACEOF
8467 if ac_fn_c_try_link "$LINENO"; then :
8468   ac_cv_prog_c_openmp='none needed'
8469 else
8470   ac_cv_prog_c_openmp='unsupported'
8471                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8472             ac_save_CFLAGS=$CFLAGS
8473             CFLAGS="$CFLAGS $ac_option"
8474             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476
8477 #ifndef _OPENMP
8478  choke me
8479 #endif
8480 #include <omp.h>
8481 int main () { return omp_get_num_threads (); }
8482
8483 _ACEOF
8484 if ac_fn_c_try_link "$LINENO"; then :
8485   ac_cv_prog_c_openmp=$ac_option
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext \
8488     conftest$ac_exeext conftest.$ac_ext
8489             CFLAGS=$ac_save_CFLAGS
8490             if test "$ac_cv_prog_c_openmp" != unsupported; then
8491               break
8492             fi
8493           done
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext \
8496     conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8499 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8500     case $ac_cv_prog_c_openmp in #(
8501       "none needed" | unsupported)
8502         ;; #(
8503       *)
8504         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8505     esac
8506   fi
8507
8508
8509 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8510 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8511
8512 if test "$enable_openmp" != no; then
8513   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8514     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8515   fi
8516 fi
8517
8518 # Enable support for OpenCL
8519
8520
8521
8522 ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527
8528 ax_pthread_ok=no
8529
8530 # We used to check for pthread.h first, but this fails if pthread.h
8531 # requires special compiler flags (e.g. on True64 or Sequent).
8532 # It gets checked for in the link test anyway.
8533
8534 # First of all, check if the user has set any of the PTHREAD_LIBS,
8535 # etcetera environment variables, and if threads linking works using
8536 # them:
8537 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8538         save_CFLAGS="$CFLAGS"
8539         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8540         save_LIBS="$LIBS"
8541         LIBS="$PTHREAD_LIBS $LIBS"
8542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8543 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8544         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546
8547 /* Override any GCC internal prototype to avoid an error.
8548    Use char because int might match the return type of a GCC
8549    builtin and then its argument prototype would still apply.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 char pthread_join ();
8554 int
8555 main ()
8556 {
8557 return pthread_join ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_link "$LINENO"; then :
8563   ax_pthread_ok=yes
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566     conftest$ac_exeext conftest.$ac_ext
8567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8568 $as_echo "$ax_pthread_ok" >&6; }
8569         if test x"$ax_pthread_ok" = xno; then
8570                 PTHREAD_LIBS=""
8571                 PTHREAD_CFLAGS=""
8572         fi
8573         LIBS="$save_LIBS"
8574         CFLAGS="$save_CFLAGS"
8575 fi
8576
8577 # We must check for the threads library under a number of different
8578 # names; the ordering is very important because some systems
8579 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8580 # libraries is broken (non-POSIX).
8581
8582 # Create a list of thread flags to try.  Items starting with a "-" are
8583 # C compiler flags, and other items are library names, except for "none"
8584 # which indicates that we try without any flags at all, and "pthread-config"
8585 # which is a program returning the flags for the Pth emulation library.
8586
8587 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8588
8589 # The ordering *is* (sometimes) important.  Some notes on the
8590 # individual items follow:
8591
8592 # pthreads: AIX (must check this before -lpthread)
8593 # none: in case threads are in libc; should be tried before -Kthread and
8594 #       other compiler flags to prevent continual compiler warnings
8595 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8596 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8597 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8598 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8599 # -pthreads: Solaris/gcc
8600 # -mthreads: Mingw32/gcc, Lynx/gcc
8601 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8602 #      doesn't hurt to check since this sometimes defines pthreads too;
8603 #      also defines -D_REENTRANT)
8604 #      ... -mt is also the pthreads flag for HP/aCC
8605 # pthread: Linux, etcetera
8606 # --thread-safe: KAI C++
8607 # pthread-config: use pthread-config program (for GNU Pth library)
8608
8609 case "${host_cpu}-${host_os}" in
8610         *solaris*)
8611
8612         # On Solaris (at least, for some versions), libc contains stubbed
8613         # (non-functional) versions of the pthreads routines, so link-based
8614         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8615         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8616         # a function called by this macro, so we could check for that, but
8617         # who knows whether they'll stub that too in a future libc.)  So,
8618         # we'll just look for -pthreads and -lpthread first:
8619
8620         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8621         ;;
8622
8623         *-darwin*)
8624         ax_pthread_flags="-pthread $ax_pthread_flags"
8625         ;;
8626 esac
8627
8628 if test x"$ax_pthread_ok" = xno; then
8629 for flag in $ax_pthread_flags; do
8630
8631         case $flag in
8632                 none)
8633                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8634 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8635                 ;;
8636
8637                 -*)
8638                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8639 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8640                 PTHREAD_CFLAGS="$flag"
8641                 ;;
8642
8643                 pthread-config)
8644                 # Extract the first word of "pthread-config", so it can be a program name with args.
8645 set dummy pthread-config; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   if test -n "$ax_pthread_config"; then
8652   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661     ac_cv_prog_ax_pthread_config="yes"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668
8669   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8670 fi
8671 fi
8672 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8673 if test -n "$ax_pthread_config"; then
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8675 $as_echo "$ax_pthread_config" >&6; }
8676 else
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681
8682                 if test x"$ax_pthread_config" = xno; then continue; fi
8683                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8684                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8685                 ;;
8686
8687                 *)
8688                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8689 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8690                 PTHREAD_LIBS="-l$flag"
8691                 ;;
8692         esac
8693
8694         save_LIBS="$LIBS"
8695         save_CFLAGS="$CFLAGS"
8696         LIBS="$PTHREAD_LIBS $LIBS"
8697         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8698
8699         # Check for various functions.  We must include pthread.h,
8700         # since some functions may be macros.  (On the Sequent, we
8701         # need a special flag -Kthread to make this header compile.)
8702         # We check for pthread_join because it is in -lpthread on IRIX
8703         # while pthread_create is in libc.  We check for pthread_attr_init
8704         # due to DEC craziness with -lpthreads.  We check for
8705         # pthread_cleanup_push because it is one of the few pthread
8706         # functions on Solaris that doesn't have a non-functional libc stub.
8707         # We try pthread_create on general principles.
8708         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h.  */
8710 #include <pthread.h>
8711                      static void routine(void* a) {a=0;}
8712                      static void* start_routine(void* a) {return a;}
8713 int
8714 main ()
8715 {
8716 pthread_t th; pthread_attr_t attr;
8717                      pthread_create(&th,0,start_routine,0);
8718                      pthread_join(th, 0);
8719                      pthread_attr_init(&attr);
8720                      pthread_cleanup_push(routine, 0);
8721                      pthread_cleanup_pop(0);
8722   ;
8723   return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_c_try_link "$LINENO"; then :
8727   ax_pthread_ok=yes
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext \
8730     conftest$ac_exeext conftest.$ac_ext
8731
8732         LIBS="$save_LIBS"
8733         CFLAGS="$save_CFLAGS"
8734
8735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8736 $as_echo "$ax_pthread_ok" >&6; }
8737         if test "x$ax_pthread_ok" = xyes; then
8738                 break;
8739         fi
8740
8741         PTHREAD_LIBS=""
8742         PTHREAD_CFLAGS=""
8743 done
8744 fi
8745
8746 # Various other checks:
8747 if test "x$ax_pthread_ok" = xyes; then
8748         save_LIBS="$LIBS"
8749         LIBS="$PTHREAD_LIBS $LIBS"
8750         save_CFLAGS="$CFLAGS"
8751         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8752
8753         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8755 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8756         attr_name=unknown
8757         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8758             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h.  */
8760 #include <pthread.h>
8761 int
8762 main ()
8763 {
8764 int attr=$attr; return attr;
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_link "$LINENO"; then :
8770   attr_name=$attr; break
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773     conftest$ac_exeext conftest.$ac_ext
8774         done
8775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8776 $as_echo "$attr_name" >&6; }
8777         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8778
8779 cat >>confdefs.h <<_ACEOF
8780 #define PTHREAD_CREATE_JOINABLE $attr_name
8781 _ACEOF
8782
8783         fi
8784
8785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8786 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8787         flag=no
8788         case "${host_cpu}-${host_os}" in
8789             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8790             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8791         esac
8792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8793 $as_echo "${flag}" >&6; }
8794         if test "x$flag" != xno; then
8795             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8796         fi
8797
8798         LIBS="$save_LIBS"
8799         CFLAGS="$save_CFLAGS"
8800
8801         # More AIX lossage: must compile with xlc_r or cc_r
8802         if test x"$GCC" != xyes; then
8803           for ac_prog in xlc_r cc_r
8804 do
8805   # Extract the first word of "$ac_prog", so it can be a program name with args.
8806 set dummy $ac_prog; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   if test -n "$PTHREAD_CC"; then
8813   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818   IFS=$as_save_IFS
8819   test -z "$as_dir" && as_dir=.
8820     for ac_exec_ext in '' $ac_executable_extensions; do
8821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822     ac_cv_prog_PTHREAD_CC="$ac_prog"
8823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824     break 2
8825   fi
8826 done
8827   done
8828 IFS=$as_save_IFS
8829
8830 fi
8831 fi
8832 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8833 if test -n "$PTHREAD_CC"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8835 $as_echo "$PTHREAD_CC" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842   test -n "$PTHREAD_CC" && break
8843 done
8844 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8845
8846         else
8847           PTHREAD_CC=$CC
8848         fi
8849 else
8850         PTHREAD_CC="$CC"
8851 fi
8852
8853
8854
8855
8856
8857 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8858 if test x"$ax_pthread_ok" = xyes; then
8859
8860 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8861
8862         :
8863 else
8864         ax_pthread_ok=no
8865
8866 fi
8867 ac_ext=c
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872
8873
8874
8875 # Check whether --enable-opencl was given.
8876 if test "${enable_opencl+set}" = set; then :
8877   enableval=$enable_opencl; disable_opencl=$enableval
8878 else
8879   disable_opencl='yes'
8880 fi
8881
8882
8883 if test "$disable_opencl" = 'yes'; then
8884   ac_ext=c
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8891 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8892 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h.  */
8897
8898 int
8899 main ()
8900 {
8901 #ifndef _MSC_VER
8902        choke me
8903 #endif
8904
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 if ac_fn_c_try_compile "$LINENO"; then :
8910   ax_compiler_ms=yes
8911 else
8912   ax_compiler_ms=no
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 ax_cv_c_compiler_ms=$ax_compiler_ms
8916
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8919 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8920   if test X$ax_compiler_ms = Xno; then :
8921   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8922 fi
8923
8924   ax_save_CPPFLAGS=$CPPFLAGS
8925   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8926   for ac_header in CL/cl.h OpenCL/cl.h
8927 do :
8928   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8931   cat >>confdefs.h <<_ACEOF
8932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933 _ACEOF
8934
8935 fi
8936
8937 done
8938
8939   CPPFLAGS=$ax_save_CPPFLAGS
8940
8941   for ac_header in windows.h
8942 do :
8943   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8944 if test "x$ac_cv_header_windows_h" = x""yes; then :
8945   cat >>confdefs.h <<_ACEOF
8946 #define HAVE_WINDOWS_H 1
8947 _ACEOF
8948
8949 fi
8950
8951 done
8952
8953
8954
8955
8956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8957 $as_echo_n "checking for OpenCL library... " >&6; }
8958 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   ax_cv_check_cl_libcl=no
8962   case $host_cpu in
8963     x86_64) ax_check_cl_libdir=lib64 ;;
8964     *)      ax_check_cl_libdir=lib ;;
8965   esac
8966   ax_save_CPPFLAGS=$CPPFLAGS
8967   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8968   ax_save_LIBS=$LIBS
8969   LIBS=""
8970   ax_check_libs="-lOpenCL -lCL -lclparser"
8971   for ax_lib in $ax_check_libs; do
8972     if test X$ax_compiler_ms = Xyes; then :
8973   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8974 else
8975   ax_try_lib=$ax_lib
8976 fi
8977     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980
8981   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8982   #   include <windows.h>
8983   # endif
8984   # ifdef HAVE_CL_CL_H
8985   #   include <CL/cl.h>
8986   # elif defined(HAVE_OPENCL_CL_H)
8987   #   include <OpenCL/cl.h>
8988   # else
8989   #   error no CL.h
8990   # endif
8991 int
8992 main ()
8993 {
8994 clCreateContextFromType(0,0,0,0,0)
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"; then :
9000   ax_cv_check_cl_libcl=$ax_try_lib; break
9001 else
9002   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"
9003                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h.  */
9005
9006   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9007   #   include <windows.h>
9008   # endif
9009   # ifdef HAVE_CL_CL_H
9010   #   include <CL/cl.h>
9011   # elif defined(HAVE_OPENCL_CL_H)
9012   #   include <OpenCL/cl.h>
9013   # else
9014   #   error no CL.h
9015   # endif
9016 int
9017 main ()
9018 {
9019 clCreateContextFromType(0,0,0,0,0)
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 if ac_fn_c_try_link "$LINENO"; then :
9025   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9026 else
9027   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"
9028                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h.  */
9030
9031   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9032   #   include <windows.h>
9033   # endif
9034   # ifdef HAVE_CL_CL_H
9035   #   include <CL/cl.h>
9036   # elif defined(HAVE_OPENCL_CL_H)
9037   #   include <OpenCL/cl.h>
9038   # else
9039   #   error no CL.h
9040   # endif
9041 int
9042 main ()
9043 {
9044 clCreateContextFromType(0,0,0,0,0)
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
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 fi
9058 rm -f core conftest.err conftest.$ac_objext \
9059     conftest$ac_exeext conftest.$ac_ext
9060   done
9061
9062   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9063   LIBS='-framework OpenCL'
9064         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h.  */
9066
9067   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9068   #   include <windows.h>
9069   # endif
9070   # ifdef HAVE_CL_CL_H
9071   #   include <CL/cl.h>
9072   # elif defined(HAVE_OPENCL_CL_H)
9073   #   include <OpenCL/cl.h>
9074   # else
9075   #   error no CL.h
9076   # endif
9077 int
9078 main ()
9079 {
9080 clCreateContextFromType(0,0,0,0,0)
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_link "$LINENO"; then :
9086   ax_cv_check_cl_libcl=$LIBS
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext \
9089     conftest$ac_exeext conftest.$ac_ext
9090 fi
9091
9092   LIBS=$ax_save_LIBS
9093   CPPFLAGS=$ax_save_CPPFLAGS
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9096 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9097
9098   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9099   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9100 else
9101   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9102 $as_echo "#define _OPENCL 1" >>confdefs.h
9103
9104 fi
9105   ac_ext=c
9106 ac_cpp='$CPP $CPPFLAGS'
9107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9110
9111 fi
9112
9113
9114
9115
9116 CFLAGS="$CL_CFLAGS $CFLAGS"
9117 LIBS="$CL_LIBS $LIBS"
9118
9119 if test "$enable_opencl" != no; then
9120   if test "_OPENCL" = '1'; then
9121     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9122   fi
9123 fi
9124
9125 ########
9126 #
9127 # Check for large file support
9128 #
9129 ########
9130 # Check whether --enable-largefile was given.
9131 if test "${enable_largefile+set}" = set; then :
9132   enableval=$enable_largefile;
9133 fi
9134
9135 if test "$enable_largefile" != no; then
9136
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9138 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9139 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   ac_cv_sys_largefile_CC=no
9143      if test "$GCC" != yes; then
9144        ac_save_CC=$CC
9145        while :; do
9146          # IRIX 6.2 and later do not support large files by default,
9147          # so use the C compiler's -n32 option if that helps.
9148          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h.  */
9150 #include <sys/types.h>
9151  /* Check that off_t can represent 2**63 - 1 correctly.
9152     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9153     since some C++ compilers masquerading as C compilers
9154     incorrectly reject 9223372036854775807.  */
9155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9156   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9157                        && LARGE_OFF_T % 2147483647 == 1)
9158                       ? 1 : -1];
9159 int
9160 main ()
9161 {
9162
9163   ;
9164   return 0;
9165 }
9166 _ACEOF
9167          if ac_fn_c_try_compile "$LINENO"; then :
9168   break
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext
9171          CC="$CC -n32"
9172          if ac_fn_c_try_compile "$LINENO"; then :
9173   ac_cv_sys_largefile_CC=' -n32'; break
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext
9176          break
9177        done
9178        CC=$ac_save_CC
9179        rm -f conftest.$ac_ext
9180     fi
9181 fi
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9183 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9184   if test "$ac_cv_sys_largefile_CC" != no; then
9185     CC=$CC$ac_cv_sys_largefile_CC
9186   fi
9187
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9189 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9190 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9191   $as_echo_n "(cached) " >&6
9192 else
9193   while :; do
9194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h.  */
9196 #include <sys/types.h>
9197  /* Check that off_t can represent 2**63 - 1 correctly.
9198     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9199     since some C++ compilers masquerading as C compilers
9200     incorrectly reject 9223372036854775807.  */
9201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9202   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9203                        && LARGE_OFF_T % 2147483647 == 1)
9204                       ? 1 : -1];
9205 int
9206 main ()
9207 {
9208
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_compile "$LINENO"; then :
9214   ac_cv_sys_file_offset_bits=no; break
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h.  */
9219 #define _FILE_OFFSET_BITS 64
9220 #include <sys/types.h>
9221  /* Check that off_t can represent 2**63 - 1 correctly.
9222     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9223     since some C++ compilers masquerading as C compilers
9224     incorrectly reject 9223372036854775807.  */
9225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9226   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9227                        && LARGE_OFF_T % 2147483647 == 1)
9228                       ? 1 : -1];
9229 int
9230 main ()
9231 {
9232
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238   ac_cv_sys_file_offset_bits=64; break
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241   ac_cv_sys_file_offset_bits=unknown
9242   break
9243 done
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9246 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9247 case $ac_cv_sys_file_offset_bits in #(
9248   no | unknown) ;;
9249   *)
9250 cat >>confdefs.h <<_ACEOF
9251 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9252 _ACEOF
9253 ;;
9254 esac
9255 rm -rf conftest*
9256   if test $ac_cv_sys_file_offset_bits = unknown; then
9257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9258 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9259 if test "${ac_cv_sys_large_files+set}" = set; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   while :; do
9263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h.  */
9265 #include <sys/types.h>
9266  /* Check that off_t can represent 2**63 - 1 correctly.
9267     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9268     since some C++ compilers masquerading as C compilers
9269     incorrectly reject 9223372036854775807.  */
9270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9271   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9272                        && LARGE_OFF_T % 2147483647 == 1)
9273                       ? 1 : -1];
9274 int
9275 main ()
9276 {
9277
9278   ;
9279   return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283   ac_cv_sys_large_files=no; break
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h.  */
9288 #define _LARGE_FILES 1
9289 #include <sys/types.h>
9290  /* Check that off_t can represent 2**63 - 1 correctly.
9291     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9292     since some C++ compilers masquerading as C compilers
9293     incorrectly reject 9223372036854775807.  */
9294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9295   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9296                        && LARGE_OFF_T % 2147483647 == 1)
9297                       ? 1 : -1];
9298 int
9299 main ()
9300 {
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307   ac_cv_sys_large_files=1; break
9308 fi
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310   ac_cv_sys_large_files=unknown
9311   break
9312 done
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9315 $as_echo "$ac_cv_sys_large_files" >&6; }
9316 case $ac_cv_sys_large_files in #(
9317   no | unknown) ;;
9318   *)
9319 cat >>confdefs.h <<_ACEOF
9320 #define _LARGE_FILES $ac_cv_sys_large_files
9321 _ACEOF
9322 ;;
9323 esac
9324 rm -rf conftest*
9325   fi
9326 fi
9327
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9329 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9330 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   while :; do
9334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h.  */
9336 #include <sys/types.h> /* for off_t */
9337      #include <stdio.h>
9338 int
9339 main ()
9340 {
9341 int (*fp) (FILE *, off_t, int) = fseeko;
9342      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 if ac_fn_c_try_link "$LINENO"; then :
9348   ac_cv_sys_largefile_source=no; break
9349 fi
9350 rm -f core conftest.err conftest.$ac_objext \
9351     conftest$ac_exeext conftest.$ac_ext
9352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h.  */
9354 #define _LARGEFILE_SOURCE 1
9355 #include <sys/types.h> /* for off_t */
9356      #include <stdio.h>
9357 int
9358 main ()
9359 {
9360 int (*fp) (FILE *, off_t, int) = fseeko;
9361      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"; then :
9367   ac_cv_sys_largefile_source=1; break
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext \
9370     conftest$ac_exeext conftest.$ac_ext
9371   ac_cv_sys_largefile_source=unknown
9372   break
9373 done
9374 fi
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9376 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9377 case $ac_cv_sys_largefile_source in #(
9378   no | unknown) ;;
9379   *)
9380 cat >>confdefs.h <<_ACEOF
9381 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9382 _ACEOF
9383 ;;
9384 esac
9385 rm -rf conftest*
9386
9387 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9388 # in glibc 2.1.3, but that breaks too many other things.
9389 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9390 if test $ac_cv_sys_largefile_source != unknown; then
9391
9392 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9393
9394 fi
9395
9396 LFS_CPPFLAGS=''
9397 if test "$enable_largefile" != no; then
9398     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9399         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9400     else
9401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9402 $as_echo_n "checking for native large file support... " >&6; }
9403         if test "$cross_compiling" = yes; then :
9404   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9406 as_fn_error $? "cannot run test program while cross compiling
9407 See \`config.log' for more details" "$LINENO" 5; }
9408 else
9409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h.  */
9411 #include <unistd.h>
9412           main () {
9413           exit(!(sizeof(off_t) == 8));
9414         }
9415 _ACEOF
9416 if ac_fn_c_try_run "$LINENO"; then :
9417   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9418
9419          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9420 $as_echo "yes" >&6; }
9421 else
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9424 fi
9425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9426   conftest.$ac_objext conftest.beam conftest.$ac_ext
9427 fi
9428
9429     fi
9430     if test "$ac_cv_sys_large_files" != 'no'; then
9431         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9432     fi
9433     if test "$ac_cv_sys_largefile_source" != 'no'; then
9434         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9435     fi
9436 fi
9437
9438
9439 #
9440 # Configure libtool & libltdl
9441 #
9442 # Configure libtool
9443 enable_dlopen=yes
9444
9445
9446
9447 case `pwd` in
9448   *\ * | *\     *)
9449     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9451 esac
9452
9453
9454
9455 macro_version='2.2.10'
9456 macro_revision='1.3175'
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470 ltmain="$ac_aux_dir/ltmain.sh"
9471
9472 # Backslashify metacharacters that are still active within
9473 # double-quoted strings.
9474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9475
9476 # Same as above, but do not quote variable references.
9477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9478
9479 # Sed substitution to delay expansion of an escaped shell variable in a
9480 # double_quote_subst'ed string.
9481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9482
9483 # Sed substitution to delay expansion of an escaped single quote.
9484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9485
9486 # Sed substitution to avoid accidental globbing in evaled expressions
9487 no_glob_subst='s/\*/\\\*/g'
9488
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9490 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9491 if test "${lt_cv_path_NM+set}" = set; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -n "$NM"; then
9495   # Let the user override the test.
9496   lt_cv_path_NM="$NM"
9497 else
9498   lt_nm_to_check="${ac_tool_prefix}nm"
9499   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9500     lt_nm_to_check="$lt_nm_to_check nm"
9501   fi
9502   for lt_tmp_nm in $lt_nm_to_check; do
9503     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9504     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9505       IFS="$lt_save_ifs"
9506       test -z "$ac_dir" && ac_dir=.
9507       tmp_nm="$ac_dir/$lt_tmp_nm"
9508       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9509         # Check to see if the nm accepts a BSD-compat flag.
9510         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9511         #   nm: unknown option "B" ignored
9512         # Tru64's nm complains that /dev/null is an invalid object file
9513         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9514         */dev/null* | *'Invalid file or object type'*)
9515           lt_cv_path_NM="$tmp_nm -B"
9516           break
9517           ;;
9518         *)
9519           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9520           */dev/null*)
9521             lt_cv_path_NM="$tmp_nm -p"
9522             break
9523             ;;
9524           *)
9525             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9526             continue # so that we can try to find one that supports BSD flags
9527             ;;
9528           esac
9529           ;;
9530         esac
9531       fi
9532     done
9533     IFS="$lt_save_ifs"
9534   done
9535   : ${lt_cv_path_NM=no}
9536 fi
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9539 $as_echo "$lt_cv_path_NM" >&6; }
9540 if test "$lt_cv_path_NM" != "no"; then
9541   NM="$lt_cv_path_NM"
9542 else
9543   # Didn't find any BSD compatible name lister, look for dumpbin.
9544   if test -n "$DUMPBIN"; then :
9545     # Let the user override the test.
9546   else
9547     if test -n "$ac_tool_prefix"; then
9548   for ac_prog in dumpbin "link -dump"
9549   do
9550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9555   $as_echo_n "(cached) " >&6
9556 else
9557   if test -n "$DUMPBIN"; then
9558   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9559 else
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9561 for as_dir in $PATH
9562 do
9563   IFS=$as_save_IFS
9564   test -z "$as_dir" && as_dir=.
9565     for ac_exec_ext in '' $ac_executable_extensions; do
9566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569     break 2
9570   fi
9571 done
9572   done
9573 IFS=$as_save_IFS
9574
9575 fi
9576 fi
9577 DUMPBIN=$ac_cv_prog_DUMPBIN
9578 if test -n "$DUMPBIN"; then
9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9580 $as_echo "$DUMPBIN" >&6; }
9581 else
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584 fi
9585
9586
9587     test -n "$DUMPBIN" && break
9588   done
9589 fi
9590 if test -z "$DUMPBIN"; then
9591   ac_ct_DUMPBIN=$DUMPBIN
9592   for ac_prog in dumpbin "link -dump"
9593 do
9594   # Extract the first word of "$ac_prog", so it can be a program name with args.
9595 set dummy $ac_prog; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   if test -n "$ac_ct_DUMPBIN"; then
9602   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9603 else
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607   IFS=$as_save_IFS
9608   test -z "$as_dir" && as_dir=.
9609     for ac_exec_ext in '' $ac_executable_extensions; do
9610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613     break 2
9614   fi
9615 done
9616   done
9617 IFS=$as_save_IFS
9618
9619 fi
9620 fi
9621 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9622 if test -n "$ac_ct_DUMPBIN"; then
9623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9624 $as_echo "$ac_ct_DUMPBIN" >&6; }
9625 else
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9628 fi
9629
9630
9631   test -n "$ac_ct_DUMPBIN" && break
9632 done
9633
9634   if test "x$ac_ct_DUMPBIN" = x; then
9635     DUMPBIN=":"
9636   else
9637     case $cross_compiling:$ac_tool_warned in
9638 yes:)
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9642 esac
9643     DUMPBIN=$ac_ct_DUMPBIN
9644   fi
9645 fi
9646
9647     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9648     *COFF*)
9649       DUMPBIN="$DUMPBIN -symbols"
9650       ;;
9651     *)
9652       DUMPBIN=:
9653       ;;
9654     esac
9655   fi
9656
9657   if test "$DUMPBIN" != ":"; then
9658     NM="$DUMPBIN"
9659   fi
9660 fi
9661 test -z "$NM" && NM=nm
9662
9663
9664
9665
9666
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9669 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9670 if test "${lt_cv_nm_interface+set}" = set; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   lt_cv_nm_interface="BSD nm"
9674   echo "int some_variable = 0;" > conftest.$ac_ext
9675   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9676   (eval "$ac_compile" 2>conftest.err)
9677   cat conftest.err >&5
9678   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9679   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9680   cat conftest.err >&5
9681   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9682   cat conftest.out >&5
9683   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9684     lt_cv_nm_interface="MS dumpbin"
9685   fi
9686   rm -f conftest*
9687 fi
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9689 $as_echo "$lt_cv_nm_interface" >&6; }
9690
9691 # find the maximum length of command line arguments
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9693 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9694 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697     i=0
9698   teststring="ABCD"
9699
9700   case $build_os in
9701   msdosdjgpp*)
9702     # On DJGPP, this test can blow up pretty badly due to problems in libc
9703     # (any single argument exceeding 2000 bytes causes a buffer overrun
9704     # during glob expansion).  Even if it were fixed, the result of this
9705     # check would be larger than it should be.
9706     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9707     ;;
9708
9709   gnu*)
9710     # Under GNU Hurd, this test is not required because there is
9711     # no limit to the length of command line arguments.
9712     # Libtool will interpret -1 as no limit whatsoever
9713     lt_cv_sys_max_cmd_len=-1;
9714     ;;
9715
9716   cygwin* | mingw* | cegcc*)
9717     # On Win9x/ME, this test blows up -- it succeeds, but takes
9718     # about 5 minutes as the teststring grows exponentially.
9719     # Worse, since 9x/ME are not pre-emptively multitasking,
9720     # you end up with a "frozen" computer, even though with patience
9721     # the test eventually succeeds (with a max line length of 256k).
9722     # Instead, let's just punt: use the minimum linelength reported by
9723     # all of the supported platforms: 8192 (on NT/2K/XP).
9724     lt_cv_sys_max_cmd_len=8192;
9725     ;;
9726
9727   mint*)
9728     # On MiNT this can take a long time and run out of memory.
9729     lt_cv_sys_max_cmd_len=8192;
9730     ;;
9731
9732   amigaos*)
9733     # On AmigaOS with pdksh, this test takes hours, literally.
9734     # So we just punt and use a minimum line length of 8192.
9735     lt_cv_sys_max_cmd_len=8192;
9736     ;;
9737
9738   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9739     # This has been around since 386BSD, at least.  Likely further.
9740     if test -x /sbin/sysctl; then
9741       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9742     elif test -x /usr/sbin/sysctl; then
9743       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9744     else
9745       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9746     fi
9747     # And add a safety zone
9748     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9749     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9750     ;;
9751
9752   interix*)
9753     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9754     lt_cv_sys_max_cmd_len=196608
9755     ;;
9756
9757   osf*)
9758     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9759     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9760     # nice to cause kernel panics so lets avoid the loop below.
9761     # First set a reasonable default.
9762     lt_cv_sys_max_cmd_len=16384
9763     #
9764     if test -x /sbin/sysconfig; then
9765       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9766         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9767       esac
9768     fi
9769     ;;
9770   sco3.2v5*)
9771     lt_cv_sys_max_cmd_len=102400
9772     ;;
9773   sysv5* | sco5v6* | sysv4.2uw2*)
9774     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9775     if test -n "$kargmax"; then
9776       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9777     else
9778       lt_cv_sys_max_cmd_len=32768
9779     fi
9780     ;;
9781   *)
9782     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9783     if test -n "$lt_cv_sys_max_cmd_len"; then
9784       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9786     else
9787       # Make teststring a little bigger before we do anything with it.
9788       # a 1K string should be a reasonable start.
9789       for i in 1 2 3 4 5 6 7 8 ; do
9790         teststring=$teststring$teststring
9791       done
9792       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9793       # If test is not a shell built-in, we'll probably end up computing a
9794       # maximum length that is only half of the actual maximum length, but
9795       # we can't tell.
9796       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9797                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9798               test $i != 17 # 1/2 MB should be enough
9799       do
9800         i=`expr $i + 1`
9801         teststring=$teststring$teststring
9802       done
9803       # Only check the string length outside the loop.
9804       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9805       teststring=
9806       # Add a significant safety factor because C++ compilers can tack on
9807       # massive amounts of additional arguments before passing them to the
9808       # linker.  It appears as though 1/2 is a usable value.
9809       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9810     fi
9811     ;;
9812   esac
9813
9814 fi
9815
9816 if test -n $lt_cv_sys_max_cmd_len ; then
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9818 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9819 else
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9821 $as_echo "none" >&6; }
9822 fi
9823 max_cmd_len=$lt_cv_sys_max_cmd_len
9824
9825
9826
9827
9828
9829
9830 : ${CP="cp -f"}
9831 : ${MV="mv -f"}
9832 : ${RM="rm -f"}
9833
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9835 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9836 # Try some XSI features
9837 xsi_shell=no
9838 ( _lt_dummy="a/b/c"
9839   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9840       = c,a/b,, \
9841     && eval 'test $(( 1 + 1 )) -eq 2 \
9842     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9843   && xsi_shell=yes
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9845 $as_echo "$xsi_shell" >&6; }
9846
9847
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9849 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9850 lt_shell_append=no
9851 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9852     >/dev/null 2>&1 \
9853   && lt_shell_append=yes
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9855 $as_echo "$lt_shell_append" >&6; }
9856
9857
9858 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9859   lt_unset=unset
9860 else
9861   lt_unset=false
9862 fi
9863
9864
9865
9866
9867
9868 # test EBCDIC or ASCII
9869 case `echo X|tr X '\101'` in
9870  A) # ASCII based system
9871     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9872   lt_SP2NL='tr \040 \012'
9873   lt_NL2SP='tr \015\012 \040\040'
9874   ;;
9875  *) # EBCDIC based system
9876   lt_SP2NL='tr \100 \n'
9877   lt_NL2SP='tr \r\n \100\100'
9878   ;;
9879 esac
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9891 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   lt_cv_ld_reload_flag='-r'
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9898 reload_flag=$lt_cv_ld_reload_flag
9899 case $reload_flag in
9900 "" | " "*) ;;
9901 *) reload_flag=" $reload_flag" ;;
9902 esac
9903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9904 case $host_os in
9905   darwin*)
9906     if test "$GCC" = yes; then
9907       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9908     else
9909       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9910     fi
9911     ;;
9912 esac
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922 if test -n "$ac_tool_prefix"; then
9923   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9924 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9928   $as_echo_n "(cached) " >&6
9929 else
9930   if test -n "$OBJDUMP"; then
9931   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9932 else
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934 for as_dir in $PATH
9935 do
9936   IFS=$as_save_IFS
9937   test -z "$as_dir" && as_dir=.
9938     for ac_exec_ext in '' $ac_executable_extensions; do
9939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942     break 2
9943   fi
9944 done
9945   done
9946 IFS=$as_save_IFS
9947
9948 fi
9949 fi
9950 OBJDUMP=$ac_cv_prog_OBJDUMP
9951 if test -n "$OBJDUMP"; then
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9953 $as_echo "$OBJDUMP" >&6; }
9954 else
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9957 fi
9958
9959
9960 fi
9961 if test -z "$ac_cv_prog_OBJDUMP"; then
9962   ac_ct_OBJDUMP=$OBJDUMP
9963   # Extract the first word of "objdump", so it can be a program name with args.
9964 set dummy objdump; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   if test -n "$ac_ct_OBJDUMP"; then
9971   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976   IFS=$as_save_IFS
9977   test -z "$as_dir" && as_dir=.
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982     break 2
9983   fi
9984 done
9985   done
9986 IFS=$as_save_IFS
9987
9988 fi
9989 fi
9990 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9991 if test -n "$ac_ct_OBJDUMP"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9993 $as_echo "$ac_ct_OBJDUMP" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998
9999   if test "x$ac_ct_OBJDUMP" = x; then
10000     OBJDUMP="false"
10001   else
10002     case $cross_compiling:$ac_tool_warned in
10003 yes:)
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006 ac_tool_warned=yes ;;
10007 esac
10008     OBJDUMP=$ac_ct_OBJDUMP
10009   fi
10010 else
10011   OBJDUMP="$ac_cv_prog_OBJDUMP"
10012 fi
10013
10014 test -z "$OBJDUMP" && OBJDUMP=objdump
10015
10016
10017
10018
10019
10020
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   lt_cv_file_magic_cmd='$MAGIC_CMD'
10027 lt_cv_file_magic_test_file=
10028 lt_cv_deplibs_check_method='unknown'
10029 # Need to set the preceding variable on all platforms that support
10030 # interlibrary dependencies.
10031 # 'none' -- dependencies not supported.
10032 # `unknown' -- same as none, but documents that we really don't know.
10033 # 'pass_all' -- all dependencies passed with no checks.
10034 # 'test_compile' -- check by making test program.
10035 # 'file_magic [[regex]]' -- check by looking for files in library path
10036 # which responds to the $file_magic_cmd with a given extended regex.
10037 # If you have `file' or equivalent on your system and you're not sure
10038 # whether `pass_all' will *always* work, you probably want this one.
10039
10040 case $host_os in
10041 aix[4-9]*)
10042   lt_cv_deplibs_check_method=pass_all
10043   ;;
10044
10045 beos*)
10046   lt_cv_deplibs_check_method=pass_all
10047   ;;
10048
10049 bsdi[45]*)
10050   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10051   lt_cv_file_magic_cmd='/usr/bin/file -L'
10052   lt_cv_file_magic_test_file=/shlib/libc.so
10053   ;;
10054
10055 cygwin*)
10056   # func_win32_libid is a shell function defined in ltmain.sh
10057   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10058   lt_cv_file_magic_cmd='func_win32_libid'
10059   ;;
10060
10061 mingw* | pw32*)
10062   # Base MSYS/MinGW do not provide the 'file' command needed by
10063   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10064   # unless we find 'file', for example because we are cross-compiling.
10065   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10066   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10067     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10068     lt_cv_file_magic_cmd='func_win32_libid'
10069   else
10070     # Keep this pattern in sync with the one in func_win32_libid.
10071     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10072     lt_cv_file_magic_cmd='$OBJDUMP -f'
10073   fi
10074   ;;
10075
10076 cegcc*)
10077   # use the weaker test based on 'objdump'. See mingw*.
10078   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10079   lt_cv_file_magic_cmd='$OBJDUMP -f'
10080   ;;
10081
10082 darwin* | rhapsody*)
10083   lt_cv_deplibs_check_method=pass_all
10084   ;;
10085
10086 freebsd* | dragonfly*)
10087   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10088     case $host_cpu in
10089     i*86 )
10090       # Not sure whether the presence of OpenBSD here was a mistake.
10091       # Let's accept both of them until this is cleared up.
10092       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10093       lt_cv_file_magic_cmd=/usr/bin/file
10094       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10095       ;;
10096     esac
10097   else
10098     lt_cv_deplibs_check_method=pass_all
10099   fi
10100   ;;
10101
10102 gnu*)
10103   lt_cv_deplibs_check_method=pass_all
10104   ;;
10105
10106 haiku*)
10107   lt_cv_deplibs_check_method=pass_all
10108   ;;
10109
10110 hpux10.20* | hpux11*)
10111   lt_cv_file_magic_cmd=/usr/bin/file
10112   case $host_cpu in
10113   ia64*)
10114     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10115     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10116     ;;
10117   hppa*64*)
10118     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]'
10119     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10120     ;;
10121   *)
10122     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10123     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10124     ;;
10125   esac
10126   ;;
10127
10128 interix[3-9]*)
10129   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10130   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10131   ;;
10132
10133 irix5* | irix6* | nonstopux*)
10134   case $LD in
10135   *-32|*"-32 ") libmagic=32-bit;;
10136   *-n32|*"-n32 ") libmagic=N32;;
10137   *-64|*"-64 ") libmagic=64-bit;;
10138   *) libmagic=never-match;;
10139   esac
10140   lt_cv_deplibs_check_method=pass_all
10141   ;;
10142
10143 # This must be Linux ELF.
10144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10145   lt_cv_deplibs_check_method=pass_all
10146   ;;
10147
10148 netbsd*)
10149   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10150     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10151   else
10152     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10153   fi
10154   ;;
10155
10156 newos6*)
10157   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10158   lt_cv_file_magic_cmd=/usr/bin/file
10159   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10160   ;;
10161
10162 *nto* | *qnx*)
10163   lt_cv_deplibs_check_method=pass_all
10164   ;;
10165
10166 openbsd*)
10167   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10168     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10169   else
10170     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10171   fi
10172   ;;
10173
10174 osf3* | osf4* | osf5*)
10175   lt_cv_deplibs_check_method=pass_all
10176   ;;
10177
10178 rdos*)
10179   lt_cv_deplibs_check_method=pass_all
10180   ;;
10181
10182 solaris*)
10183   lt_cv_deplibs_check_method=pass_all
10184   ;;
10185
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187   lt_cv_deplibs_check_method=pass_all
10188   ;;
10189
10190 sysv4 | sysv4.3*)
10191   case $host_vendor in
10192   motorola)
10193     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]'
10194     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10195     ;;
10196   ncr)
10197     lt_cv_deplibs_check_method=pass_all
10198     ;;
10199   sequent)
10200     lt_cv_file_magic_cmd='/bin/file'
10201     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10202     ;;
10203   sni)
10204     lt_cv_file_magic_cmd='/bin/file'
10205     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10206     lt_cv_file_magic_test_file=/lib/libc.so
10207     ;;
10208   siemens)
10209     lt_cv_deplibs_check_method=pass_all
10210     ;;
10211   pc)
10212     lt_cv_deplibs_check_method=pass_all
10213     ;;
10214   esac
10215   ;;
10216
10217 tpf*)
10218   lt_cv_deplibs_check_method=pass_all
10219   ;;
10220 esac
10221
10222 fi
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10224 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10225 file_magic_cmd=$lt_cv_file_magic_cmd
10226 deplibs_check_method=$lt_cv_deplibs_check_method
10227 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 if test -n "$ac_tool_prefix"; then
10241   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10242 set dummy ${ac_tool_prefix}ar; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if test "${ac_cv_prog_AR+set}" = set; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   if test -n "$AR"; then
10249   ac_cv_prog_AR="$AR" # Let the user override the test.
10250 else
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256     for ac_exec_ext in '' $ac_executable_extensions; do
10257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258     ac_cv_prog_AR="${ac_tool_prefix}ar"
10259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260     break 2
10261   fi
10262 done
10263   done
10264 IFS=$as_save_IFS
10265
10266 fi
10267 fi
10268 AR=$ac_cv_prog_AR
10269 if test -n "$AR"; then
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10271 $as_echo "$AR" >&6; }
10272 else
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10275 fi
10276
10277
10278 fi
10279 if test -z "$ac_cv_prog_AR"; then
10280   ac_ct_AR=$AR
10281   # Extract the first word of "ar", so it can be a program name with args.
10282 set dummy ar; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   if test -n "$ac_ct_AR"; then
10289   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296     for ac_exec_ext in '' $ac_executable_extensions; do
10297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298     ac_cv_prog_ac_ct_AR="ar"
10299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303   done
10304 IFS=$as_save_IFS
10305
10306 fi
10307 fi
10308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10309 if test -n "$ac_ct_AR"; then
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10311 $as_echo "$ac_ct_AR" >&6; }
10312 else
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316
10317   if test "x$ac_ct_AR" = x; then
10318     AR="false"
10319   else
10320     case $cross_compiling:$ac_tool_warned in
10321 yes:)
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10324 ac_tool_warned=yes ;;
10325 esac
10326     AR=$ac_ct_AR
10327   fi
10328 else
10329   AR="$ac_cv_prog_AR"
10330 fi
10331
10332 test -z "$AR" && AR=ar
10333 test -z "$AR_FLAGS" && AR_FLAGS=cru
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345 if test -n "$ac_tool_prefix"; then
10346   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10347 set dummy ${ac_tool_prefix}strip; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if test "${ac_cv_prog_STRIP+set}" = set; then :
10351   $as_echo_n "(cached) " >&6
10352 else
10353   if test -n "$STRIP"; then
10354   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10355 else
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10358 do
10359   IFS=$as_save_IFS
10360   test -z "$as_dir" && as_dir=.
10361     for ac_exec_ext in '' $ac_executable_extensions; do
10362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365     break 2
10366   fi
10367 done
10368   done
10369 IFS=$as_save_IFS
10370
10371 fi
10372 fi
10373 STRIP=$ac_cv_prog_STRIP
10374 if test -n "$STRIP"; then
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10376 $as_echo "$STRIP" >&6; }
10377 else
10378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 fi
10381
10382
10383 fi
10384 if test -z "$ac_cv_prog_STRIP"; then
10385   ac_ct_STRIP=$STRIP
10386   # Extract the first word of "strip", so it can be a program name with args.
10387 set dummy strip; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10391   $as_echo_n "(cached) " >&6
10392 else
10393   if test -n "$ac_ct_STRIP"; then
10394   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399   IFS=$as_save_IFS
10400   test -z "$as_dir" && as_dir=.
10401     for ac_exec_ext in '' $ac_executable_extensions; do
10402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403     ac_cv_prog_ac_ct_STRIP="strip"
10404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405     break 2
10406   fi
10407 done
10408   done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10414 if test -n "$ac_ct_STRIP"; then
10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10416 $as_echo "$ac_ct_STRIP" >&6; }
10417 else
10418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422   if test "x$ac_ct_STRIP" = x; then
10423     STRIP=":"
10424   else
10425     case $cross_compiling:$ac_tool_warned in
10426 yes:)
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10429 ac_tool_warned=yes ;;
10430 esac
10431     STRIP=$ac_ct_STRIP
10432   fi
10433 else
10434   STRIP="$ac_cv_prog_STRIP"
10435 fi
10436
10437 test -z "$STRIP" && STRIP=:
10438
10439
10440
10441
10442
10443
10444 if test -n "$ac_tool_prefix"; then
10445   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 $as_echo_n "checking for $ac_word... " >&6; }
10449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   if test -n "$RANLIB"; then
10453   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10454 else
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10457 do
10458   IFS=$as_save_IFS
10459   test -z "$as_dir" && as_dir=.
10460     for ac_exec_ext in '' $ac_executable_extensions; do
10461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464     break 2
10465   fi
10466 done
10467   done
10468 IFS=$as_save_IFS
10469
10470 fi
10471 fi
10472 RANLIB=$ac_cv_prog_RANLIB
10473 if test -n "$RANLIB"; then
10474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10475 $as_echo "$RANLIB" >&6; }
10476 else
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 fi
10480
10481
10482 fi
10483 if test -z "$ac_cv_prog_RANLIB"; then
10484   ac_ct_RANLIB=$RANLIB
10485   # Extract the first word of "ranlib", so it can be a program name with args.
10486 set dummy ranlib; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   if test -n "$ac_ct_RANLIB"; then
10493   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10497 do
10498   IFS=$as_save_IFS
10499   test -z "$as_dir" && as_dir=.
10500     for ac_exec_ext in '' $ac_executable_extensions; do
10501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502     ac_cv_prog_ac_ct_RANLIB="ranlib"
10503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504     break 2
10505   fi
10506 done
10507   done
10508 IFS=$as_save_IFS
10509
10510 fi
10511 fi
10512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10513 if test -n "$ac_ct_RANLIB"; then
10514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10515 $as_echo "$ac_ct_RANLIB" >&6; }
10516 else
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10519 fi
10520
10521   if test "x$ac_ct_RANLIB" = x; then
10522     RANLIB=":"
10523   else
10524     case $cross_compiling:$ac_tool_warned in
10525 yes:)
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10528 ac_tool_warned=yes ;;
10529 esac
10530     RANLIB=$ac_ct_RANLIB
10531   fi
10532 else
10533   RANLIB="$ac_cv_prog_RANLIB"
10534 fi
10535
10536 test -z "$RANLIB" && RANLIB=:
10537
10538
10539
10540
10541
10542
10543 # Determine commands to create old-style static archives.
10544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10545 old_postinstall_cmds='chmod 644 $oldlib'
10546 old_postuninstall_cmds=
10547
10548 if test -n "$RANLIB"; then
10549   case $host_os in
10550   openbsd*)
10551     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10552     ;;
10553   *)
10554     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10555     ;;
10556   esac
10557   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10558 fi
10559
10560 case $host_os in
10561   darwin*)
10562     lock_old_archive_extraction=yes ;;
10563   *)
10564     lock_old_archive_extraction=no ;;
10565 esac
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
10601
10602
10603
10604
10605 # If no C compiler was specified, use CC.
10606 LTCC=${LTCC-"$CC"}
10607
10608 # If no C compiler flags were specified, use CFLAGS.
10609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10610
10611 # Allow CC to be a program name with arguments.
10612 compiler=$CC
10613
10614
10615 # Check for command to grab the raw symbol name followed by C symbol from nm.
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10618 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10619   $as_echo_n "(cached) " >&6
10620 else
10621
10622 # These are sane defaults that work on at least a few old systems.
10623 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10624
10625 # Character class describing NM global symbol codes.
10626 symcode='[BCDEGRST]'
10627
10628 # Regexp to match symbols that can be accessed directly from C.
10629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10630
10631 # Define system-specific variables.
10632 case $host_os in
10633 aix*)
10634   symcode='[BCDT]'
10635   ;;
10636 cygwin* | mingw* | pw32* | cegcc*)
10637   symcode='[ABCDGISTW]'
10638   ;;
10639 hpux*)
10640   if test "$host_cpu" = ia64; then
10641     symcode='[ABCDEGRST]'
10642   fi
10643   ;;
10644 irix* | nonstopux*)
10645   symcode='[BCDEGRST]'
10646   ;;
10647 osf*)
10648   symcode='[BCDEGQRST]'
10649   ;;
10650 solaris*)
10651   symcode='[BDRT]'
10652   ;;
10653 sco3.2v5*)
10654   symcode='[DT]'
10655   ;;
10656 sysv4.2uw2*)
10657   symcode='[DT]'
10658   ;;
10659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10660   symcode='[ABDT]'
10661   ;;
10662 sysv4)
10663   symcode='[DFNSTU]'
10664   ;;
10665 esac
10666
10667 # If we're using GNU nm, then use its standard symbol codes.
10668 case `$NM -V 2>&1` in
10669 *GNU* | *'with BFD'*)
10670   symcode='[ABCDGIRSTW]' ;;
10671 esac
10672
10673 # Transform an extracted symbol line into a proper C declaration.
10674 # Some systems (esp. on ia64) link data and code symbols differently,
10675 # so use this general approach.
10676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10677
10678 # Transform an extracted symbol line into symbol name and symbol address
10679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10680 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'"
10681
10682 # Handle CRLF in mingw tool chain
10683 opt_cr=
10684 case $build_os in
10685 mingw*)
10686   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10687   ;;
10688 esac
10689
10690 # Try without a prefix underscore, then with it.
10691 for ac_symprfx in "" "_"; do
10692
10693   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10694   symxfrm="\\1 $ac_symprfx\\2 \\2"
10695
10696   # Write the raw and C identifiers.
10697   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10698     # Fake it for dumpbin and say T for any non-static function
10699     # and D for any global variable.
10700     # Also find C++ and __fastcall symbols from MSVC++,
10701     # which start with @ or ?.
10702     lt_cv_sys_global_symbol_pipe="$AWK '"\
10703 "     {last_section=section; section=\$ 3};"\
10704 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10705 "     \$ 0!~/External *\|/{next};"\
10706 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10707 "     {if(hide[section]) next};"\
10708 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10709 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10710 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10711 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10712 "     ' prfx=^$ac_symprfx"
10713   else
10714     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10715   fi
10716
10717   # Check to see that the pipe works correctly.
10718   pipe_works=no
10719
10720   rm -f conftest*
10721   cat > conftest.$ac_ext <<_LT_EOF
10722 #ifdef __cplusplus
10723 extern "C" {
10724 #endif
10725 char nm_test_var;
10726 void nm_test_func(void);
10727 void nm_test_func(void){}
10728 #ifdef __cplusplus
10729 }
10730 #endif
10731 int main(){nm_test_var='a';nm_test_func();return(0);}
10732 _LT_EOF
10733
10734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735   (eval $ac_compile) 2>&5
10736   ac_status=$?
10737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738   test $ac_status = 0; }; then
10739     # Now try to grab the symbols.
10740     nlist=conftest.nm
10741     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10742   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10743   ac_status=$?
10744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10745   test $ac_status = 0; } && test -s "$nlist"; then
10746       # Try sorting and uniquifying the output.
10747       if sort "$nlist" | uniq > "$nlist"T; then
10748         mv -f "$nlist"T "$nlist"
10749       else
10750         rm -f "$nlist"T
10751       fi
10752
10753       # Make sure that we snagged all the symbols we need.
10754       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10755         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10756           cat <<_LT_EOF > conftest.$ac_ext
10757 #ifdef __cplusplus
10758 extern "C" {
10759 #endif
10760
10761 _LT_EOF
10762           # Now generate the symbol file.
10763           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10764
10765           cat <<_LT_EOF >> conftest.$ac_ext
10766
10767 /* The mapping between symbol names and symbols.  */
10768 const struct {
10769   const char *name;
10770   void       *address;
10771 }
10772 lt__PROGRAM__LTX_preloaded_symbols[] =
10773 {
10774   { "@PROGRAM@", (void *) 0 },
10775 _LT_EOF
10776           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10777           cat <<\_LT_EOF >> conftest.$ac_ext
10778   {0, (void *) 0}
10779 };
10780
10781 /* This works around a problem in FreeBSD linker */
10782 #ifdef FREEBSD_WORKAROUND
10783 static const void *lt_preloaded_setup() {
10784   return lt__PROGRAM__LTX_preloaded_symbols;
10785 }
10786 #endif
10787
10788 #ifdef __cplusplus
10789 }
10790 #endif
10791 _LT_EOF
10792           # Now try linking the two files.
10793           mv conftest.$ac_objext conftstm.$ac_objext
10794           lt_save_LIBS="$LIBS"
10795           lt_save_CFLAGS="$CFLAGS"
10796           LIBS="conftstm.$ac_objext"
10797           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10798           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10799   (eval $ac_link) 2>&5
10800   ac_status=$?
10801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10802   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10803             pipe_works=yes
10804           fi
10805           LIBS="$lt_save_LIBS"
10806           CFLAGS="$lt_save_CFLAGS"
10807         else
10808           echo "cannot find nm_test_func in $nlist" >&5
10809         fi
10810       else
10811         echo "cannot find nm_test_var in $nlist" >&5
10812       fi
10813     else
10814       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10815     fi
10816   else
10817     echo "$progname: failed program was:" >&5
10818     cat conftest.$ac_ext >&5
10819   fi
10820   rm -rf conftest* conftst*
10821
10822   # Do not use the global_symbol_pipe unless it works.
10823   if test "$pipe_works" = yes; then
10824     break
10825   else
10826     lt_cv_sys_global_symbol_pipe=
10827   fi
10828 done
10829
10830 fi
10831
10832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10833   lt_cv_sys_global_symbol_to_cdecl=
10834 fi
10835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10837 $as_echo "failed" >&6; }
10838 else
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10840 $as_echo "ok" >&6; }
10841 fi
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864 # Check whether --enable-libtool-lock was given.
10865 if test "${enable_libtool_lock+set}" = set; then :
10866   enableval=$enable_libtool_lock;
10867 fi
10868
10869 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10870
10871 # Some flags need to be propagated to the compiler or linker for good
10872 # libtool support.
10873 case $host in
10874 ia64-*-hpux*)
10875   # Find out which ABI we are using.
10876   echo 'int i;' > conftest.$ac_ext
10877   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10878   (eval $ac_compile) 2>&5
10879   ac_status=$?
10880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881   test $ac_status = 0; }; then
10882     case `/usr/bin/file conftest.$ac_objext` in
10883       *ELF-32*)
10884         HPUX_IA64_MODE="32"
10885         ;;
10886       *ELF-64*)
10887         HPUX_IA64_MODE="64"
10888         ;;
10889     esac
10890   fi
10891   rm -rf conftest*
10892   ;;
10893 *-*-irix6*)
10894   # Find out which ABI we are using.
10895   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10897   (eval $ac_compile) 2>&5
10898   ac_status=$?
10899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900   test $ac_status = 0; }; then
10901     if test "$lt_cv_prog_gnu_ld" = yes; then
10902       case `/usr/bin/file conftest.$ac_objext` in
10903         *32-bit*)
10904           LD="${LD-ld} -melf32bsmip"
10905           ;;
10906         *N32*)
10907           LD="${LD-ld} -melf32bmipn32"
10908           ;;
10909         *64-bit*)
10910           LD="${LD-ld} -melf64bmip"
10911         ;;
10912       esac
10913     else
10914       case `/usr/bin/file conftest.$ac_objext` in
10915         *32-bit*)
10916           LD="${LD-ld} -32"
10917           ;;
10918         *N32*)
10919           LD="${LD-ld} -n32"
10920           ;;
10921         *64-bit*)
10922           LD="${LD-ld} -64"
10923           ;;
10924       esac
10925     fi
10926   fi
10927   rm -rf conftest*
10928   ;;
10929
10930 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10931 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10932   # Find out which ABI we are using.
10933   echo 'int i;' > conftest.$ac_ext
10934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10935   (eval $ac_compile) 2>&5
10936   ac_status=$?
10937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938   test $ac_status = 0; }; then
10939     case `/usr/bin/file conftest.o` in
10940       *32-bit*)
10941         case $host in
10942           x86_64-*kfreebsd*-gnu)
10943             LD="${LD-ld} -m elf_i386_fbsd"
10944             ;;
10945           x86_64-*linux*)
10946             LD="${LD-ld} -m elf_i386"
10947             ;;
10948           ppc64-*linux*|powerpc64-*linux*)
10949             LD="${LD-ld} -m elf32ppclinux"
10950             ;;
10951           s390x-*linux*)
10952             LD="${LD-ld} -m elf_s390"
10953             ;;
10954           sparc64-*linux*)
10955             LD="${LD-ld} -m elf32_sparc"
10956             ;;
10957         esac
10958         ;;
10959       *64-bit*)
10960         case $host in
10961           x86_64-*kfreebsd*-gnu)
10962             LD="${LD-ld} -m elf_x86_64_fbsd"
10963             ;;
10964           x86_64-*linux*)
10965             LD="${LD-ld} -m elf_x86_64"
10966             ;;
10967           ppc*-*linux*|powerpc*-*linux*)
10968             LD="${LD-ld} -m elf64ppc"
10969             ;;
10970           s390*-*linux*|s390*-*tpf*)
10971             LD="${LD-ld} -m elf64_s390"
10972             ;;
10973           sparc*-*linux*)
10974             LD="${LD-ld} -m elf64_sparc"
10975             ;;
10976         esac
10977         ;;
10978     esac
10979   fi
10980   rm -rf conftest*
10981   ;;
10982
10983 *-*-sco3.2v5*)
10984   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10985   SAVE_CFLAGS="$CFLAGS"
10986   CFLAGS="$CFLAGS -belf"
10987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10989 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10990   $as_echo_n "(cached) " >&6
10991 else
10992   ac_ext=c
10993 ac_cpp='$CPP $CPPFLAGS'
10994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10997
10998      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 int
11002 main ()
11003 {
11004
11005   ;
11006   return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010   lt_cv_cc_needs_belf=yes
11011 else
11012   lt_cv_cc_needs_belf=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015     conftest$ac_exeext conftest.$ac_ext
11016      ac_ext=c
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11021
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11025   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11026     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11027     CFLAGS="$SAVE_CFLAGS"
11028   fi
11029   ;;
11030 sparc*-*solaris*)
11031   # Find out which ABI we are using.
11032   echo 'int i;' > conftest.$ac_ext
11033   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11034   (eval $ac_compile) 2>&5
11035   ac_status=$?
11036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037   test $ac_status = 0; }; then
11038     case `/usr/bin/file conftest.o` in
11039     *64-bit*)
11040       case $lt_cv_prog_gnu_ld in
11041       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11042       *)
11043         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11044           LD="${LD-ld} -64"
11045         fi
11046         ;;
11047       esac
11048       ;;
11049     esac
11050   fi
11051   rm -rf conftest*
11052   ;;
11053 esac
11054
11055 need_locks="$enable_libtool_lock"
11056
11057
11058   case $host_os in
11059     rhapsody* | darwin*)
11060     if test -n "$ac_tool_prefix"; then
11061   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068   if test -n "$DSYMUTIL"; then
11069   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11070 else
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11073 do
11074   IFS=$as_save_IFS
11075   test -z "$as_dir" && as_dir=.
11076     for ac_exec_ext in '' $ac_executable_extensions; do
11077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080     break 2
11081   fi
11082 done
11083   done
11084 IFS=$as_save_IFS
11085
11086 fi
11087 fi
11088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11089 if test -n "$DSYMUTIL"; then
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11091 $as_echo "$DSYMUTIL" >&6; }
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096
11097
11098 fi
11099 if test -z "$ac_cv_prog_DSYMUTIL"; then
11100   ac_ct_DSYMUTIL=$DSYMUTIL
11101   # Extract the first word of "dsymutil", so it can be a program name with args.
11102 set dummy dsymutil; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   if test -n "$ac_ct_DSYMUTIL"; then
11109   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11110 else
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114   IFS=$as_save_IFS
11115   test -z "$as_dir" && as_dir=.
11116     for ac_exec_ext in '' $ac_executable_extensions; do
11117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120     break 2
11121   fi
11122 done
11123   done
11124 IFS=$as_save_IFS
11125
11126 fi
11127 fi
11128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11129 if test -n "$ac_ct_DSYMUTIL"; then
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11132 else
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 fi
11136
11137   if test "x$ac_ct_DSYMUTIL" = x; then
11138     DSYMUTIL=":"
11139   else
11140     case $cross_compiling:$ac_tool_warned in
11141 yes:)
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11144 ac_tool_warned=yes ;;
11145 esac
11146     DSYMUTIL=$ac_ct_DSYMUTIL
11147   fi
11148 else
11149   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11150 fi
11151
11152     if test -n "$ac_tool_prefix"; then
11153   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   if test -n "$NMEDIT"; then
11161   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177
11178 fi
11179 fi
11180 NMEDIT=$ac_cv_prog_NMEDIT
11181 if test -n "$NMEDIT"; then
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11183 $as_echo "$NMEDIT" >&6; }
11184 else
11185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 fi
11188
11189
11190 fi
11191 if test -z "$ac_cv_prog_NMEDIT"; then
11192   ac_ct_NMEDIT=$NMEDIT
11193   # Extract the first word of "nmedit", so it can be a program name with args.
11194 set dummy nmedit; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11198   $as_echo_n "(cached) " >&6
11199 else
11200   if test -n "$ac_ct_NMEDIT"; then
11201   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11202 else
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206   IFS=$as_save_IFS
11207   test -z "$as_dir" && as_dir=.
11208     for ac_exec_ext in '' $ac_executable_extensions; do
11209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212     break 2
11213   fi
11214 done
11215   done
11216 IFS=$as_save_IFS
11217
11218 fi
11219 fi
11220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11221 if test -n "$ac_ct_NMEDIT"; then
11222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11223 $as_echo "$ac_ct_NMEDIT" >&6; }
11224 else
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11227 fi
11228
11229   if test "x$ac_ct_NMEDIT" = x; then
11230     NMEDIT=":"
11231   else
11232     case $cross_compiling:$ac_tool_warned in
11233 yes:)
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11236 ac_tool_warned=yes ;;
11237 esac
11238     NMEDIT=$ac_ct_NMEDIT
11239   fi
11240 else
11241   NMEDIT="$ac_cv_prog_NMEDIT"
11242 fi
11243
11244     if test -n "$ac_tool_prefix"; then
11245   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if test "${ac_cv_prog_LIPO+set}" = set; then :
11250   $as_echo_n "(cached) " >&6
11251 else
11252   if test -n "$LIPO"; then
11253   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258   IFS=$as_save_IFS
11259   test -z "$as_dir" && as_dir=.
11260     for ac_exec_ext in '' $ac_executable_extensions; do
11261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264     break 2
11265   fi
11266 done
11267   done
11268 IFS=$as_save_IFS
11269
11270 fi
11271 fi
11272 LIPO=$ac_cv_prog_LIPO
11273 if test -n "$LIPO"; then
11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11275 $as_echo "$LIPO" >&6; }
11276 else
11277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11279 fi
11280
11281
11282 fi
11283 if test -z "$ac_cv_prog_LIPO"; then
11284   ac_ct_LIPO=$LIPO
11285   # Extract the first word of "lipo", so it can be a program name with args.
11286 set dummy lipo; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   if test -n "$ac_ct_LIPO"; then
11293   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11297 do
11298   IFS=$as_save_IFS
11299   test -z "$as_dir" && as_dir=.
11300     for ac_exec_ext in '' $ac_executable_extensions; do
11301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302     ac_cv_prog_ac_ct_LIPO="lipo"
11303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304     break 2
11305   fi
11306 done
11307   done
11308 IFS=$as_save_IFS
11309
11310 fi
11311 fi
11312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11313 if test -n "$ac_ct_LIPO"; then
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11315 $as_echo "$ac_ct_LIPO" >&6; }
11316 else
11317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11319 fi
11320
11321   if test "x$ac_ct_LIPO" = x; then
11322     LIPO=":"
11323   else
11324     case $cross_compiling:$ac_tool_warned in
11325 yes:)
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328 ac_tool_warned=yes ;;
11329 esac
11330     LIPO=$ac_ct_LIPO
11331   fi
11332 else
11333   LIPO="$ac_cv_prog_LIPO"
11334 fi
11335
11336     if test -n "$ac_tool_prefix"; then
11337   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11338 set dummy ${ac_tool_prefix}otool; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   if test -n "$OTOOL"; then
11345   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350   IFS=$as_save_IFS
11351   test -z "$as_dir" && as_dir=.
11352     for ac_exec_ext in '' $ac_executable_extensions; do
11353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11354     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356     break 2
11357   fi
11358 done
11359   done
11360 IFS=$as_save_IFS
11361
11362 fi
11363 fi
11364 OTOOL=$ac_cv_prog_OTOOL
11365 if test -n "$OTOOL"; then
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11367 $as_echo "$OTOOL" >&6; }
11368 else
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 fi
11375 if test -z "$ac_cv_prog_OTOOL"; then
11376   ac_ct_OTOOL=$OTOOL
11377   # Extract the first word of "otool", so it can be a program name with args.
11378 set dummy otool; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11382   $as_echo_n "(cached) " >&6
11383 else
11384   if test -n "$ac_ct_OTOOL"; then
11385   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11386 else
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390   IFS=$as_save_IFS
11391   test -z "$as_dir" && as_dir=.
11392     for ac_exec_ext in '' $ac_executable_extensions; do
11393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394     ac_cv_prog_ac_ct_OTOOL="otool"
11395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396     break 2
11397   fi
11398 done
11399   done
11400 IFS=$as_save_IFS
11401
11402 fi
11403 fi
11404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11405 if test -n "$ac_ct_OTOOL"; then
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11407 $as_echo "$ac_ct_OTOOL" >&6; }
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 fi
11412
11413   if test "x$ac_ct_OTOOL" = x; then
11414     OTOOL=":"
11415   else
11416     case $cross_compiling:$ac_tool_warned in
11417 yes:)
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420 ac_tool_warned=yes ;;
11421 esac
11422     OTOOL=$ac_ct_OTOOL
11423   fi
11424 else
11425   OTOOL="$ac_cv_prog_OTOOL"
11426 fi
11427
11428     if test -n "$ac_tool_prefix"; then
11429   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   if test -n "$OTOOL64"; then
11437   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11438 else
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11441 do
11442   IFS=$as_save_IFS
11443   test -z "$as_dir" && as_dir=.
11444     for ac_exec_ext in '' $ac_executable_extensions; do
11445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11446     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11448     break 2
11449   fi
11450 done
11451   done
11452 IFS=$as_save_IFS
11453
11454 fi
11455 fi
11456 OTOOL64=$ac_cv_prog_OTOOL64
11457 if test -n "$OTOOL64"; then
11458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11459 $as_echo "$OTOOL64" >&6; }
11460 else
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11463 fi
11464
11465
11466 fi
11467 if test -z "$ac_cv_prog_OTOOL64"; then
11468   ac_ct_OTOOL64=$OTOOL64
11469   # Extract the first word of "otool64", so it can be a program name with args.
11470 set dummy otool64; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   if test -n "$ac_ct_OTOOL64"; then
11477   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11481 do
11482   IFS=$as_save_IFS
11483   test -z "$as_dir" && as_dir=.
11484     for ac_exec_ext in '' $ac_executable_extensions; do
11485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486     ac_cv_prog_ac_ct_OTOOL64="otool64"
11487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488     break 2
11489   fi
11490 done
11491   done
11492 IFS=$as_save_IFS
11493
11494 fi
11495 fi
11496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11497 if test -n "$ac_ct_OTOOL64"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11499 $as_echo "$ac_ct_OTOOL64" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505   if test "x$ac_ct_OTOOL64" = x; then
11506     OTOOL64=":"
11507   else
11508     case $cross_compiling:$ac_tool_warned in
11509 yes:)
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512 ac_tool_warned=yes ;;
11513 esac
11514     OTOOL64=$ac_ct_OTOOL64
11515   fi
11516 else
11517   OTOOL64="$ac_cv_prog_OTOOL64"
11518 fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11547 $as_echo_n "checking for -single_module linker flag... " >&6; }
11548 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551   lt_cv_apple_cc_single_mod=no
11552       if test -z "${LT_MULTI_MODULE}"; then
11553         # By default we will add the -single_module flag. You can override
11554         # by either setting the environment variable LT_MULTI_MODULE
11555         # non-empty at configure time, or by adding -multi_module to the
11556         # link flags.
11557         rm -rf libconftest.dylib*
11558         echo "int foo(void){return 1;}" > conftest.c
11559         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11560 -dynamiclib -Wl,-single_module conftest.c" >&5
11561         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11562           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11563         _lt_result=$?
11564         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11565           lt_cv_apple_cc_single_mod=yes
11566         else
11567           cat conftest.err >&5
11568         fi
11569         rm -rf libconftest.dylib*
11570         rm -f conftest.*
11571       fi
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11574 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11576 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11577 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11578   $as_echo_n "(cached) " >&6
11579 else
11580   lt_cv_ld_exported_symbols_list=no
11581       save_LDFLAGS=$LDFLAGS
11582       echo "_main" > conftest.sym
11583       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h.  */
11586
11587 int
11588 main ()
11589 {
11590
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596   lt_cv_ld_exported_symbols_list=yes
11597 else
11598   lt_cv_ld_exported_symbols_list=no
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601     conftest$ac_exeext conftest.$ac_ext
11602         LDFLAGS="$save_LDFLAGS"
11603
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11606 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11608 $as_echo_n "checking for -force_load linker flag... " >&6; }
11609 if test "${lt_cv_ld_force_load+set}" = set; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   lt_cv_ld_force_load=no
11613       cat > conftest.c << _LT_EOF
11614 int forced_loaded() { return 2;}
11615 _LT_EOF
11616       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11617       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11618       echo "$AR cru libconftest.a conftest.o" >&5
11619       $AR cru libconftest.a conftest.o 2>&5
11620       echo "$RANLIB libconftest.a" >&5
11621       $RANLIB libconftest.a 2>&5
11622       cat > conftest.c << _LT_EOF
11623 int main() { return 0;}
11624 _LT_EOF
11625       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11626       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11627       _lt_result=$?
11628       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11629         lt_cv_ld_force_load=yes
11630       else
11631         cat conftest.err >&5
11632       fi
11633         rm -f conftest.err libconftest.a conftest conftest.c
11634         rm -rf conftest.dSYM
11635
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11638 $as_echo "$lt_cv_ld_force_load" >&6; }
11639     case $host_os in
11640     rhapsody* | darwin1.[012])
11641       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11642     darwin1.*)
11643       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11644     darwin*) # darwin 5.x on
11645       # if running on 10.5 or later, the deployment target defaults
11646       # to the OS version, if on x86, and 10.4, the deployment
11647       # target defaults to 10.4. Don't you love it?
11648       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11649         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11650           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11651         10.[012]*)
11652           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11653         10.*)
11654           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655       esac
11656     ;;
11657   esac
11658     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11659       _lt_dar_single_mod='$single_module'
11660     fi
11661     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11662       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11663     else
11664       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11665     fi
11666     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11667       _lt_dsymutil='~$DSYMUTIL $lib || :'
11668     else
11669       _lt_dsymutil=
11670     fi
11671     ;;
11672   esac
11673
11674 for ac_header in dlfcn.h
11675 do :
11676   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11677 "
11678 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11679   cat >>confdefs.h <<_ACEOF
11680 #define HAVE_DLFCN_H 1
11681 _ACEOF
11682
11683 fi
11684
11685 done
11686
11687
11688
11689
11690
11691
11692 # Set options
11693 enable_win32_dll=yes
11694
11695 case $host in
11696 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11697   if test -n "$ac_tool_prefix"; then
11698   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699 set dummy ${ac_tool_prefix}as; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_AS+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   if test -n "$AS"; then
11706   ac_cv_prog_AS="$AS" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_exec_ext in '' $ac_executable_extensions; do
11714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715     ac_cv_prog_AS="${ac_tool_prefix}as"
11716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717     break 2
11718   fi
11719 done
11720   done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 AS=$ac_cv_prog_AS
11726 if test -n "$AS"; then
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11728 $as_echo "$AS" >&6; }
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 fi
11736 if test -z "$ac_cv_prog_AS"; then
11737   ac_ct_AS=$AS
11738   # Extract the first word of "as", so it can be a program name with args.
11739 set dummy as; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   if test -n "$ac_ct_AS"; then
11746   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753     for ac_exec_ext in '' $ac_executable_extensions; do
11754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755     ac_cv_prog_ac_ct_AS="as"
11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760   done
11761 IFS=$as_save_IFS
11762
11763 fi
11764 fi
11765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766 if test -n "$ac_ct_AS"; then
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11768 $as_echo "$ac_ct_AS" >&6; }
11769 else
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772 fi
11773
11774   if test "x$ac_ct_AS" = x; then
11775     AS="false"
11776   else
11777     case $cross_compiling:$ac_tool_warned in
11778 yes:)
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781 ac_tool_warned=yes ;;
11782 esac
11783     AS=$ac_ct_AS
11784   fi
11785 else
11786   AS="$ac_cv_prog_AS"
11787 fi
11788
11789   if test -n "$ac_tool_prefix"; then
11790   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   if test -n "$DLLTOOL"; then
11798   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803   IFS=$as_save_IFS
11804   test -z "$as_dir" && as_dir=.
11805     for ac_exec_ext in '' $ac_executable_extensions; do
11806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809     break 2
11810   fi
11811 done
11812   done
11813 IFS=$as_save_IFS
11814
11815 fi
11816 fi
11817 DLLTOOL=$ac_cv_prog_DLLTOOL
11818 if test -n "$DLLTOOL"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11820 $as_echo "$DLLTOOL" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 fi
11828 if test -z "$ac_cv_prog_DLLTOOL"; then
11829   ac_ct_DLLTOOL=$DLLTOOL
11830   # Extract the first word of "dlltool", so it can be a program name with args.
11831 set dummy dlltool; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   if test -n "$ac_ct_DLLTOOL"; then
11838   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11839 else
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11842 do
11843   IFS=$as_save_IFS
11844   test -z "$as_dir" && as_dir=.
11845     for ac_exec_ext in '' $ac_executable_extensions; do
11846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849     break 2
11850   fi
11851 done
11852   done
11853 IFS=$as_save_IFS
11854
11855 fi
11856 fi
11857 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858 if test -n "$ac_ct_DLLTOOL"; then
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11860 $as_echo "$ac_ct_DLLTOOL" >&6; }
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865
11866   if test "x$ac_ct_DLLTOOL" = x; then
11867     DLLTOOL="false"
11868   else
11869     case $cross_compiling:$ac_tool_warned in
11870 yes:)
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11874 esac
11875     DLLTOOL=$ac_ct_DLLTOOL
11876   fi
11877 else
11878   DLLTOOL="$ac_cv_prog_DLLTOOL"
11879 fi
11880
11881   if test -n "$ac_tool_prefix"; then
11882   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889   if test -n "$OBJDUMP"; then
11890   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895   IFS=$as_save_IFS
11896   test -z "$as_dir" && as_dir=.
11897     for ac_exec_ext in '' $ac_executable_extensions; do
11898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901     break 2
11902   fi
11903 done
11904   done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 OBJDUMP=$ac_cv_prog_OBJDUMP
11910 if test -n "$OBJDUMP"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912 $as_echo "$OBJDUMP" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 if test -z "$ac_cv_prog_OBJDUMP"; then
11921   ac_ct_OBJDUMP=$OBJDUMP
11922   # Extract the first word of "objdump", so it can be a program name with args.
11923 set dummy objdump; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if test -n "$ac_ct_OBJDUMP"; then
11930   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_exec_ext in '' $ac_executable_extensions; do
11938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944   done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950 if test -n "$ac_ct_OBJDUMP"; then
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952 $as_echo "$ac_ct_OBJDUMP" >&6; }
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958   if test "x$ac_ct_OBJDUMP" = x; then
11959     OBJDUMP="false"
11960   else
11961     case $cross_compiling:$ac_tool_warned in
11962 yes:)
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11966 esac
11967     OBJDUMP=$ac_ct_OBJDUMP
11968   fi
11969 else
11970   OBJDUMP="$ac_cv_prog_OBJDUMP"
11971 fi
11972
11973   ;;
11974 esac
11975
11976 test -z "$AS" && AS=as
11977
11978
11979
11980
11981
11982 test -z "$DLLTOOL" && DLLTOOL=dlltool
11983
11984
11985
11986
11987
11988 test -z "$OBJDUMP" && OBJDUMP=objdump
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998             # Check whether --enable-shared was given.
11999 if test "${enable_shared+set}" = set; then :
12000   enableval=$enable_shared; p=${PACKAGE-default}
12001     case $enableval in
12002     yes) enable_shared=yes ;;
12003     no) enable_shared=no ;;
12004     *)
12005       enable_shared=no
12006       # Look at the argument we got.  We use all the common list separators.
12007       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008       for pkg in $enableval; do
12009         IFS="$lt_save_ifs"
12010         if test "X$pkg" = "X$p"; then
12011           enable_shared=yes
12012         fi
12013       done
12014       IFS="$lt_save_ifs"
12015       ;;
12016     esac
12017 else
12018   enable_shared=yes
12019 fi
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029   # Check whether --enable-static was given.
12030 if test "${enable_static+set}" = set; then :
12031   enableval=$enable_static; p=${PACKAGE-default}
12032     case $enableval in
12033     yes) enable_static=yes ;;
12034     no) enable_static=no ;;
12035     *)
12036      enable_static=no
12037       # Look at the argument we got.  We use all the common list separators.
12038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039       for pkg in $enableval; do
12040         IFS="$lt_save_ifs"
12041         if test "X$pkg" = "X$p"; then
12042           enable_static=yes
12043         fi
12044       done
12045       IFS="$lt_save_ifs"
12046       ;;
12047     esac
12048 else
12049   enable_static=yes
12050 fi
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061 # Check whether --with-pic was given.
12062 if test "${with_pic+set}" = set; then :
12063   withval=$with_pic; pic_mode="$withval"
12064 else
12065   pic_mode=default
12066 fi
12067
12068
12069 test -z "$pic_mode" && pic_mode=default
12070
12071
12072
12073
12074
12075
12076
12077   # Check whether --enable-fast-install was given.
12078 if test "${enable_fast_install+set}" = set; then :
12079   enableval=$enable_fast_install; p=${PACKAGE-default}
12080     case $enableval in
12081     yes) enable_fast_install=yes ;;
12082     no) enable_fast_install=no ;;
12083     *)
12084       enable_fast_install=no
12085       # Look at the argument we got.  We use all the common list separators.
12086       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087       for pkg in $enableval; do
12088         IFS="$lt_save_ifs"
12089         if test "X$pkg" = "X$p"; then
12090           enable_fast_install=yes
12091         fi
12092       done
12093       IFS="$lt_save_ifs"
12094       ;;
12095     esac
12096 else
12097   enable_fast_install=yes
12098 fi
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 # This can be used to rebuild libtool when needed
12111 LIBTOOL_DEPS="$ltmain"
12112
12113 # Always use our own libtool.
12114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141 test -z "$LN_S" && LN_S="ln -s"
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 if test -n "${ZSH_VERSION+set}" ; then
12157    setopt NO_GLOB_SUBST
12158 fi
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12161 $as_echo_n "checking for objdir... " >&6; }
12162 if test "${lt_cv_objdir+set}" = set; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   rm -f .libs 2>/dev/null
12166 mkdir .libs 2>/dev/null
12167 if test -d .libs; then
12168   lt_cv_objdir=.libs
12169 else
12170   # MS-DOS does not allow filenames that begin with a dot.
12171   lt_cv_objdir=_libs
12172 fi
12173 rmdir .libs 2>/dev/null
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12176 $as_echo "$lt_cv_objdir" >&6; }
12177 objdir=$lt_cv_objdir
12178
12179
12180
12181
12182
12183 cat >>confdefs.h <<_ACEOF
12184 #define LT_OBJDIR "$lt_cv_objdir/"
12185 _ACEOF
12186
12187
12188
12189
12190 case $host_os in
12191 aix3*)
12192   # AIX sometimes has problems with the GCC collect2 program.  For some
12193   # reason, if we set the COLLECT_NAMES environment variable, the problems
12194   # vanish in a puff of smoke.
12195   if test "X${COLLECT_NAMES+set}" != Xset; then
12196     COLLECT_NAMES=
12197     export COLLECT_NAMES
12198   fi
12199   ;;
12200 esac
12201
12202 # Global variables:
12203 ofile=libtool
12204 can_build_shared=yes
12205
12206 # All known linkers require a `.a' archive for static linking (except MSVC,
12207 # which needs '.lib').
12208 libext=a
12209
12210 with_gnu_ld="$lt_cv_prog_gnu_ld"
12211
12212 old_CC="$CC"
12213 old_CFLAGS="$CFLAGS"
12214
12215 # Set sane defaults for various variables
12216 test -z "$CC" && CC=cc
12217 test -z "$LTCC" && LTCC=$CC
12218 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12219 test -z "$LD" && LD=ld
12220 test -z "$ac_objext" && ac_objext=o
12221
12222 for cc_temp in $compiler""; do
12223   case $cc_temp in
12224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12226     \-*) ;;
12227     *) break;;
12228   esac
12229 done
12230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12231
12232
12233 # Only perform the check for file, if the check method requires it
12234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12235 case $deplibs_check_method in
12236 file_magic*)
12237   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12239 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12240 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243   case $MAGIC_CMD in
12244 [\\/*] |  ?:[\\/]*)
12245   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12246   ;;
12247 *)
12248   lt_save_MAGIC_CMD="$MAGIC_CMD"
12249   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12250   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12251   for ac_dir in $ac_dummy; do
12252     IFS="$lt_save_ifs"
12253     test -z "$ac_dir" && ac_dir=.
12254     if test -f $ac_dir/${ac_tool_prefix}file; then
12255       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12256       if test -n "$file_magic_test_file"; then
12257         case $deplibs_check_method in
12258         "file_magic "*)
12259           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12260           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12261           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12262             $EGREP "$file_magic_regex" > /dev/null; then
12263             :
12264           else
12265             cat <<_LT_EOF 1>&2
12266
12267 *** Warning: the command libtool uses to detect shared libraries,
12268 *** $file_magic_cmd, produces output that libtool cannot recognize.
12269 *** The result is that libtool may fail to recognize shared libraries
12270 *** as such.  This will affect the creation of libtool libraries that
12271 *** depend on shared libraries, but programs linked with such libtool
12272 *** libraries will work regardless of this problem.  Nevertheless, you
12273 *** may want to report the problem to your system manager and/or to
12274 *** bug-libtool@gnu.org
12275
12276 _LT_EOF
12277           fi ;;
12278         esac
12279       fi
12280       break
12281     fi
12282   done
12283   IFS="$lt_save_ifs"
12284   MAGIC_CMD="$lt_save_MAGIC_CMD"
12285   ;;
12286 esac
12287 fi
12288
12289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290 if test -n "$MAGIC_CMD"; then
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12292 $as_echo "$MAGIC_CMD" >&6; }
12293 else
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297
12298
12299
12300
12301
12302 if test -z "$lt_cv_path_MAGIC_CMD"; then
12303   if test -n "$ac_tool_prefix"; then
12304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12305 $as_echo_n "checking for file... " >&6; }
12306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   case $MAGIC_CMD in
12310 [\\/*] |  ?:[\\/]*)
12311   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12312   ;;
12313 *)
12314   lt_save_MAGIC_CMD="$MAGIC_CMD"
12315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12316   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12317   for ac_dir in $ac_dummy; do
12318     IFS="$lt_save_ifs"
12319     test -z "$ac_dir" && ac_dir=.
12320     if test -f $ac_dir/file; then
12321       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12322       if test -n "$file_magic_test_file"; then
12323         case $deplibs_check_method in
12324         "file_magic "*)
12325           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12326           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12327           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12328             $EGREP "$file_magic_regex" > /dev/null; then
12329             :
12330           else
12331             cat <<_LT_EOF 1>&2
12332
12333 *** Warning: the command libtool uses to detect shared libraries,
12334 *** $file_magic_cmd, produces output that libtool cannot recognize.
12335 *** The result is that libtool may fail to recognize shared libraries
12336 *** as such.  This will affect the creation of libtool libraries that
12337 *** depend on shared libraries, but programs linked with such libtool
12338 *** libraries will work regardless of this problem.  Nevertheless, you
12339 *** may want to report the problem to your system manager and/or to
12340 *** bug-libtool@gnu.org
12341
12342 _LT_EOF
12343           fi ;;
12344         esac
12345       fi
12346       break
12347     fi
12348   done
12349   IFS="$lt_save_ifs"
12350   MAGIC_CMD="$lt_save_MAGIC_CMD"
12351   ;;
12352 esac
12353 fi
12354
12355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356 if test -n "$MAGIC_CMD"; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12358 $as_echo "$MAGIC_CMD" >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363
12364
12365   else
12366     MAGIC_CMD=:
12367   fi
12368 fi
12369
12370   fi
12371   ;;
12372 esac
12373
12374 # Use C for the default configuration in the libtool script
12375
12376 lt_save_CC="$CC"
12377 ac_ext=c
12378 ac_cpp='$CPP $CPPFLAGS'
12379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
12383
12384 # Source file extension for C test sources.
12385 ac_ext=c
12386
12387 # Object file extension for compiled C test sources.
12388 objext=o
12389 objext=$objext
12390
12391 # Code to be used in simple compile tests
12392 lt_simple_compile_test_code="int some_variable = 0;"
12393
12394 # Code to be used in simple link tests
12395 lt_simple_link_test_code='int main(){return(0);}'
12396
12397
12398
12399
12400
12401
12402
12403 # If no C compiler was specified, use CC.
12404 LTCC=${LTCC-"$CC"}
12405
12406 # If no C compiler flags were specified, use CFLAGS.
12407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12408
12409 # Allow CC to be a program name with arguments.
12410 compiler=$CC
12411
12412 # Save the default compiler, since it gets overwritten when the other
12413 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12414 compiler_DEFAULT=$CC
12415
12416 # save warnings/boilerplate of simple test code
12417 ac_outfile=conftest.$ac_objext
12418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12420 _lt_compiler_boilerplate=`cat conftest.err`
12421 $RM conftest*
12422
12423 ac_outfile=conftest.$ac_objext
12424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12426 _lt_linker_boilerplate=`cat conftest.err`
12427 $RM -r conftest*
12428
12429
12430 ## CAVEAT EMPTOR:
12431 ## There is no encapsulation within the following macros, do not change
12432 ## the running order or otherwise move them around unless you know exactly
12433 ## what you are doing...
12434 if test -n "$compiler"; then
12435
12436 lt_prog_compiler_no_builtin_flag=
12437
12438 if test "$GCC" = yes; then
12439   case $cc_basename in
12440   nvcc*)
12441     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12442   *)
12443     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12444   esac
12445
12446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   lt_cv_prog_compiler_rtti_exceptions=no
12452    ac_outfile=conftest.$ac_objext
12453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12454    lt_compiler_flag="-fno-rtti -fno-exceptions"
12455    # Insert the option either (1) after the last *FLAGS variable, or
12456    # (2) before a word containing "conftest.", or (3) at the end.
12457    # Note that $ac_compile itself does not contain backslashes and begins
12458    # with a dollar sign (not a hyphen), so the echo should work correctly.
12459    # The option is referenced via a variable to avoid confusing sed.
12460    lt_compile=`echo "$ac_compile" | $SED \
12461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12463    -e 's:$: $lt_compiler_flag:'`
12464    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12465    (eval "$lt_compile" 2>conftest.err)
12466    ac_status=$?
12467    cat conftest.err >&5
12468    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469    if (exit $ac_status) && test -s "$ac_outfile"; then
12470      # The compiler can only warn and ignore the option if not recognized
12471      # So say no if there are warnings other than the usual output.
12472      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12473      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12474      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12475        lt_cv_prog_compiler_rtti_exceptions=yes
12476      fi
12477    fi
12478    $RM conftest*
12479
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12483
12484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12485     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12486 else
12487     :
12488 fi
12489
12490 fi
12491
12492
12493
12494
12495
12496
12497   lt_prog_compiler_wl=
12498 lt_prog_compiler_pic=
12499 lt_prog_compiler_static=
12500
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12502 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12503
12504   if test "$GCC" = yes; then
12505     lt_prog_compiler_wl='-Wl,'
12506     lt_prog_compiler_static='-static'
12507
12508     case $host_os in
12509       aix*)
12510       # All AIX code is PIC.
12511       if test "$host_cpu" = ia64; then
12512         # AIX 5 now supports IA64 processor
12513         lt_prog_compiler_static='-Bstatic'
12514       fi
12515       ;;
12516
12517     amigaos*)
12518       case $host_cpu in
12519       powerpc)
12520             # see comment about AmigaOS4 .so support
12521             lt_prog_compiler_pic='-fPIC'
12522         ;;
12523       m68k)
12524             # FIXME: we need at least 68020 code to build shared libraries, but
12525             # adding the `-m68020' flag to GCC prevents building anything better,
12526             # like `-m68040'.
12527             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12528         ;;
12529       esac
12530       ;;
12531
12532     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12533       # PIC is the default for these OSes.
12534       ;;
12535
12536     mingw* | cygwin* | pw32* | os2* | cegcc*)
12537       # This hack is so that the source file can tell whether it is being
12538       # built for inclusion in a dll (and should export symbols for example).
12539       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12540       # (--disable-auto-import) libraries
12541       lt_prog_compiler_pic='-DDLL_EXPORT'
12542       ;;
12543
12544     darwin* | rhapsody*)
12545       # PIC is the default on this platform
12546       # Common symbols not allowed in MH_DYLIB files
12547       lt_prog_compiler_pic='-fno-common'
12548       ;;
12549
12550     haiku*)
12551       # PIC is the default for Haiku.
12552       # The "-static" flag exists, but is broken.
12553       lt_prog_compiler_static=
12554       ;;
12555
12556     hpux*)
12557       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12558       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12559       # sets the default TLS model and affects inlining.
12560       case $host_cpu in
12561       hppa*64*)
12562         # +Z the default
12563         ;;
12564       *)
12565         lt_prog_compiler_pic='-fPIC'
12566         ;;
12567       esac
12568       ;;
12569
12570     interix[3-9]*)
12571       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12572       # Instead, we relocate shared libraries at runtime.
12573       ;;
12574
12575     msdosdjgpp*)
12576       # Just because we use GCC doesn't mean we suddenly get shared libraries
12577       # on systems that don't support them.
12578       lt_prog_compiler_can_build_shared=no
12579       enable_shared=no
12580       ;;
12581
12582     *nto* | *qnx*)
12583       # QNX uses GNU C++, but need to define -shared option too, otherwise
12584       # it will coredump.
12585       lt_prog_compiler_pic='-fPIC -shared'
12586       ;;
12587
12588     sysv4*MP*)
12589       if test -d /usr/nec; then
12590         lt_prog_compiler_pic=-Kconform_pic
12591       fi
12592       ;;
12593
12594     *)
12595       lt_prog_compiler_pic='-fPIC'
12596       ;;
12597     esac
12598
12599     case $cc_basename in
12600     nvcc*) # Cuda Compiler Driver 2.2
12601       lt_prog_compiler_wl='-Xlinker '
12602       lt_prog_compiler_pic='-Xcompiler -fPIC'
12603       ;;
12604     esac
12605   else
12606     # PORTME Check for flag to pass linker flags through the system compiler.
12607     case $host_os in
12608     aix*)
12609       lt_prog_compiler_wl='-Wl,'
12610       if test "$host_cpu" = ia64; then
12611         # AIX 5 now supports IA64 processor
12612         lt_prog_compiler_static='-Bstatic'
12613       else
12614         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12615       fi
12616       ;;
12617
12618     mingw* | cygwin* | pw32* | os2* | cegcc*)
12619       # This hack is so that the source file can tell whether it is being
12620       # built for inclusion in a dll (and should export symbols for example).
12621       lt_prog_compiler_pic='-DDLL_EXPORT'
12622       ;;
12623
12624     hpux9* | hpux10* | hpux11*)
12625       lt_prog_compiler_wl='-Wl,'
12626       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12627       # not for PA HP-UX.
12628       case $host_cpu in
12629       hppa*64*|ia64*)
12630         # +Z the default
12631         ;;
12632       *)
12633         lt_prog_compiler_pic='+Z'
12634         ;;
12635       esac
12636       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12637       lt_prog_compiler_static='${wl}-a ${wl}archive'
12638       ;;
12639
12640     irix5* | irix6* | nonstopux*)
12641       lt_prog_compiler_wl='-Wl,'
12642       # PIC (with -KPIC) is the default.
12643       lt_prog_compiler_static='-non_shared'
12644       ;;
12645
12646     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12647       case $cc_basename in
12648       # old Intel for x86_64 which still supported -KPIC.
12649       ecc*)
12650         lt_prog_compiler_wl='-Wl,'
12651         lt_prog_compiler_pic='-KPIC'
12652         lt_prog_compiler_static='-static'
12653         ;;
12654       # icc used to be incompatible with GCC.
12655       # ICC 10 doesn't accept -KPIC any more.
12656       icc* | ifort*)
12657         lt_prog_compiler_wl='-Wl,'
12658         lt_prog_compiler_pic='-fPIC'
12659         lt_prog_compiler_static='-static'
12660         ;;
12661       # Lahey Fortran 8.1.
12662       lf95*)
12663         lt_prog_compiler_wl='-Wl,'
12664         lt_prog_compiler_pic='--shared'
12665         lt_prog_compiler_static='--static'
12666         ;;
12667       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12668         # Portland Group compilers (*not* the Pentium gcc compiler,
12669         # which looks to be a dead project)
12670         lt_prog_compiler_wl='-Wl,'
12671         lt_prog_compiler_pic='-fpic'
12672         lt_prog_compiler_static='-Bstatic'
12673         ;;
12674       ccc*)
12675         lt_prog_compiler_wl='-Wl,'
12676         # All Alpha code is PIC.
12677         lt_prog_compiler_static='-non_shared'
12678         ;;
12679       xl* | bgxl* | bgf* | mpixl*)
12680         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12681         lt_prog_compiler_wl='-Wl,'
12682         lt_prog_compiler_pic='-qpic'
12683         lt_prog_compiler_static='-qstaticlink'
12684         ;;
12685       *)
12686         case `$CC -V 2>&1 | sed 5q` in
12687         *Sun\ F* | *Sun*Fortran*)
12688           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12689           lt_prog_compiler_pic='-KPIC'
12690           lt_prog_compiler_static='-Bstatic'
12691           lt_prog_compiler_wl=''
12692           ;;
12693         *Sun\ C*)
12694           # Sun C 5.9
12695           lt_prog_compiler_pic='-KPIC'
12696           lt_prog_compiler_static='-Bstatic'
12697           lt_prog_compiler_wl='-Wl,'
12698           ;;
12699         esac
12700         ;;
12701       esac
12702       ;;
12703
12704     newsos6)
12705       lt_prog_compiler_pic='-KPIC'
12706       lt_prog_compiler_static='-Bstatic'
12707       ;;
12708
12709     *nto* | *qnx*)
12710       # QNX uses GNU C++, but need to define -shared option too, otherwise
12711       # it will coredump.
12712       lt_prog_compiler_pic='-fPIC -shared'
12713       ;;
12714
12715     osf3* | osf4* | osf5*)
12716       lt_prog_compiler_wl='-Wl,'
12717       # All OSF/1 code is PIC.
12718       lt_prog_compiler_static='-non_shared'
12719       ;;
12720
12721     rdos*)
12722       lt_prog_compiler_static='-non_shared'
12723       ;;
12724
12725     solaris*)
12726       lt_prog_compiler_pic='-KPIC'
12727       lt_prog_compiler_static='-Bstatic'
12728       case $cc_basename in
12729       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12730         lt_prog_compiler_wl='-Qoption ld ';;
12731       *)
12732         lt_prog_compiler_wl='-Wl,';;
12733       esac
12734       ;;
12735
12736     sunos4*)
12737       lt_prog_compiler_wl='-Qoption ld '
12738       lt_prog_compiler_pic='-PIC'
12739       lt_prog_compiler_static='-Bstatic'
12740       ;;
12741
12742     sysv4 | sysv4.2uw2* | sysv4.3*)
12743       lt_prog_compiler_wl='-Wl,'
12744       lt_prog_compiler_pic='-KPIC'
12745       lt_prog_compiler_static='-Bstatic'
12746       ;;
12747
12748     sysv4*MP*)
12749       if test -d /usr/nec ;then
12750         lt_prog_compiler_pic='-Kconform_pic'
12751         lt_prog_compiler_static='-Bstatic'
12752       fi
12753       ;;
12754
12755     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12756       lt_prog_compiler_wl='-Wl,'
12757       lt_prog_compiler_pic='-KPIC'
12758       lt_prog_compiler_static='-Bstatic'
12759       ;;
12760
12761     unicos*)
12762       lt_prog_compiler_wl='-Wl,'
12763       lt_prog_compiler_can_build_shared=no
12764       ;;
12765
12766     uts4*)
12767       lt_prog_compiler_pic='-pic'
12768       lt_prog_compiler_static='-Bstatic'
12769       ;;
12770
12771     *)
12772       lt_prog_compiler_can_build_shared=no
12773       ;;
12774     esac
12775   fi
12776
12777 case $host_os in
12778   # For platforms which do not support PIC, -DPIC is meaningless:
12779   *djgpp*)
12780     lt_prog_compiler_pic=
12781     ;;
12782   *)
12783     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12784     ;;
12785 esac
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12787 $as_echo "$lt_prog_compiler_pic" >&6; }
12788
12789
12790
12791
12792
12793
12794 #
12795 # Check to make sure the PIC flag actually works.
12796 #
12797 if test -n "$lt_prog_compiler_pic"; then
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12800 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12801   $as_echo_n "(cached) " >&6
12802 else
12803   lt_cv_prog_compiler_pic_works=no
12804    ac_outfile=conftest.$ac_objext
12805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12807    # Insert the option either (1) after the last *FLAGS variable, or
12808    # (2) before a word containing "conftest.", or (3) at the end.
12809    # Note that $ac_compile itself does not contain backslashes and begins
12810    # with a dollar sign (not a hyphen), so the echo should work correctly.
12811    # The option is referenced via a variable to avoid confusing sed.
12812    lt_compile=`echo "$ac_compile" | $SED \
12813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12815    -e 's:$: $lt_compiler_flag:'`
12816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12817    (eval "$lt_compile" 2>conftest.err)
12818    ac_status=$?
12819    cat conftest.err >&5
12820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821    if (exit $ac_status) && test -s "$ac_outfile"; then
12822      # The compiler can only warn and ignore the option if not recognized
12823      # So say no if there are warnings other than the usual output.
12824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12827        lt_cv_prog_compiler_pic_works=yes
12828      fi
12829    fi
12830    $RM conftest*
12831
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12834 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12835
12836 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12837     case $lt_prog_compiler_pic in
12838      "" | " "*) ;;
12839      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12840      esac
12841 else
12842     lt_prog_compiler_pic=
12843      lt_prog_compiler_can_build_shared=no
12844 fi
12845
12846 fi
12847
12848
12849
12850
12851
12852
12853 #
12854 # Check to make sure the static flag actually works.
12855 #
12856 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12858 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12859 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   lt_cv_prog_compiler_static_works=no
12863    save_LDFLAGS="$LDFLAGS"
12864    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12865    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867      # The linker can only warn and ignore the option if not recognized
12868      # So say no if there are warnings
12869      if test -s conftest.err; then
12870        # Append any errors to the config.log.
12871        cat conftest.err 1>&5
12872        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12873        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874        if diff conftest.exp conftest.er2 >/dev/null; then
12875          lt_cv_prog_compiler_static_works=yes
12876        fi
12877      else
12878        lt_cv_prog_compiler_static_works=yes
12879      fi
12880    fi
12881    $RM -r conftest*
12882    LDFLAGS="$save_LDFLAGS"
12883
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12886 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12887
12888 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12889     :
12890 else
12891     lt_prog_compiler_static=
12892 fi
12893
12894
12895
12896
12897
12898
12899
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12903   $as_echo_n "(cached) " >&6
12904 else
12905   lt_cv_prog_compiler_c_o=no
12906    $RM -r conftest 2>/dev/null
12907    mkdir conftest
12908    cd conftest
12909    mkdir out
12910    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12911
12912    lt_compiler_flag="-o out/conftest2.$ac_objext"
12913    # Insert the option either (1) after the last *FLAGS variable, or
12914    # (2) before a word containing "conftest.", or (3) at the end.
12915    # Note that $ac_compile itself does not contain backslashes and begins
12916    # with a dollar sign (not a hyphen), so the echo should work correctly.
12917    lt_compile=`echo "$ac_compile" | $SED \
12918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920    -e 's:$: $lt_compiler_flag:'`
12921    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12922    (eval "$lt_compile" 2>out/conftest.err)
12923    ac_status=$?
12924    cat out/conftest.err >&5
12925    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12927    then
12928      # The compiler can only warn and ignore the option if not recognized
12929      # So say no if there are warnings
12930      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12931      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933        lt_cv_prog_compiler_c_o=yes
12934      fi
12935    fi
12936    chmod u+w . 2>&5
12937    $RM conftest*
12938    # SGI C++ compiler will create directory out/ii_files/ for
12939    # template instantiation
12940    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12941    $RM out/* && rmdir out
12942    cd ..
12943    $RM -r conftest
12944    $RM conftest*
12945
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12949
12950
12951
12952
12953
12954
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12956 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12957 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12958   $as_echo_n "(cached) " >&6
12959 else
12960   lt_cv_prog_compiler_c_o=no
12961    $RM -r conftest 2>/dev/null
12962    mkdir conftest
12963    cd conftest
12964    mkdir out
12965    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966
12967    lt_compiler_flag="-o out/conftest2.$ac_objext"
12968    # Insert the option either (1) after the last *FLAGS variable, or
12969    # (2) before a word containing "conftest.", or (3) at the end.
12970    # Note that $ac_compile itself does not contain backslashes and begins
12971    # with a dollar sign (not a hyphen), so the echo should work correctly.
12972    lt_compile=`echo "$ac_compile" | $SED \
12973    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975    -e 's:$: $lt_compiler_flag:'`
12976    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12977    (eval "$lt_compile" 2>out/conftest.err)
12978    ac_status=$?
12979    cat out/conftest.err >&5
12980    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12982    then
12983      # The compiler can only warn and ignore the option if not recognized
12984      # So say no if there are warnings
12985      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12986      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12987      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12988        lt_cv_prog_compiler_c_o=yes
12989      fi
12990    fi
12991    chmod u+w . 2>&5
12992    $RM conftest*
12993    # SGI C++ compiler will create directory out/ii_files/ for
12994    # template instantiation
12995    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12996    $RM out/* && rmdir out
12997    cd ..
12998    $RM -r conftest
12999    $RM conftest*
13000
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13003 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13004
13005
13006
13007
13008 hard_links="nottested"
13009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13010   # do not overwrite the value of need_locks provided by the user
13011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13012 $as_echo_n "checking if we can lock with hard links... " >&6; }
13013   hard_links=yes
13014   $RM conftest*
13015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13016   touch conftest.a
13017   ln conftest.a conftest.b 2>&5 || hard_links=no
13018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13020 $as_echo "$hard_links" >&6; }
13021   if test "$hard_links" = no; then
13022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13023 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13024     need_locks=warn
13025   fi
13026 else
13027   need_locks=no
13028 fi
13029
13030
13031
13032
13033
13034
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13037
13038   runpath_var=
13039   allow_undefined_flag=
13040   always_export_symbols=no
13041   archive_cmds=
13042   archive_expsym_cmds=
13043   compiler_needs_object=no
13044   enable_shared_with_static_runtimes=no
13045   export_dynamic_flag_spec=
13046   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13047   hardcode_automatic=no
13048   hardcode_direct=no
13049   hardcode_direct_absolute=no
13050   hardcode_libdir_flag_spec=
13051   hardcode_libdir_flag_spec_ld=
13052   hardcode_libdir_separator=
13053   hardcode_minus_L=no
13054   hardcode_shlibpath_var=unsupported
13055   inherit_rpath=no
13056   link_all_deplibs=unknown
13057   module_cmds=
13058   module_expsym_cmds=
13059   old_archive_from_new_cmds=
13060   old_archive_from_expsyms_cmds=
13061   thread_safe_flag_spec=
13062   whole_archive_flag_spec=
13063   # include_expsyms should be a list of space-separated symbols to be *always*
13064   # included in the symbol list
13065   include_expsyms=
13066   # exclude_expsyms can be an extended regexp of symbols to exclude
13067   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13068   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13069   # as well as any symbol that contains `d'.
13070   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13071   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13072   # platforms (ab)use it in PIC code, but their linkers get confused if
13073   # the symbol is explicitly referenced.  Since portable code cannot
13074   # rely on this symbol name, it's probably fine to never include it in
13075   # preloaded symbol tables.
13076   # Exclude shared library initialization/finalization symbols.
13077   extract_expsyms_cmds=
13078
13079   case $host_os in
13080   cygwin* | mingw* | pw32* | cegcc*)
13081     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13082     # When not using gcc, we currently assume that we are using
13083     # Microsoft Visual C++.
13084     if test "$GCC" != yes; then
13085       with_gnu_ld=no
13086     fi
13087     ;;
13088   interix*)
13089     # we just hope/assume this is gcc and not c89 (= MSVC++)
13090     with_gnu_ld=yes
13091     ;;
13092   openbsd*)
13093     with_gnu_ld=no
13094     ;;
13095   esac
13096
13097   ld_shlibs=yes
13098
13099   # On some targets, GNU ld is compatible enough with the native linker
13100   # that we're better off using the native interface for both.
13101   lt_use_gnu_ld_interface=no
13102   if test "$with_gnu_ld" = yes; then
13103     case $host_os in
13104       aix*)
13105         # The AIX port of GNU ld has always aspired to compatibility
13106         # with the native linker.  However, as the warning in the GNU ld
13107         # block says, versions before 2.19.5* couldn't really create working
13108         # shared libraries, regardless of the interface used.
13109         case `$LD -v 2>&1` in
13110           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13111           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13112           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13113           *)
13114             lt_use_gnu_ld_interface=yes
13115             ;;
13116         esac
13117         ;;
13118       *)
13119         lt_use_gnu_ld_interface=yes
13120         ;;
13121     esac
13122   fi
13123
13124   if test "$lt_use_gnu_ld_interface" = yes; then
13125     # If archive_cmds runs LD, not CC, wlarc should be empty
13126     wlarc='${wl}'
13127
13128     # Set some defaults for GNU ld with shared library support. These
13129     # are reset later if shared libraries are not supported. Putting them
13130     # here allows them to be overridden if necessary.
13131     runpath_var=LD_RUN_PATH
13132     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13133     export_dynamic_flag_spec='${wl}--export-dynamic'
13134     # ancient GNU ld didn't support --whole-archive et. al.
13135     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13136       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13137     else
13138       whole_archive_flag_spec=
13139     fi
13140     supports_anon_versioning=no
13141     case `$LD -v 2>&1` in
13142       *GNU\ gold*) supports_anon_versioning=yes ;;
13143       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13144       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13145       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13146       *\ 2.11.*) ;; # other 2.11 versions
13147       *) supports_anon_versioning=yes ;;
13148     esac
13149
13150     # See if GNU ld supports shared libraries.
13151     case $host_os in
13152     aix[3-9]*)
13153       # On AIX/PPC, the GNU linker is very broken
13154       if test "$host_cpu" != ia64; then
13155         ld_shlibs=no
13156         cat <<_LT_EOF 1>&2
13157
13158 *** Warning: the GNU linker, at least up to release 2.19, is reported
13159 *** to be unable to reliably create shared libraries on AIX.
13160 *** Therefore, libtool is disabling shared libraries support.  If you
13161 *** really care for shared libraries, you may want to install binutils
13162 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13163 *** You will then need to restart the configuration process.
13164
13165 _LT_EOF
13166       fi
13167       ;;
13168
13169     amigaos*)
13170       case $host_cpu in
13171       powerpc)
13172             # see comment about AmigaOS4 .so support
13173             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174             archive_expsym_cmds=''
13175         ;;
13176       m68k)
13177             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)'
13178             hardcode_libdir_flag_spec='-L$libdir'
13179             hardcode_minus_L=yes
13180         ;;
13181       esac
13182       ;;
13183
13184     beos*)
13185       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13186         allow_undefined_flag=unsupported
13187         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13188         # support --undefined.  This deserves some investigation.  FIXME
13189         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190       else
13191         ld_shlibs=no
13192       fi
13193       ;;
13194
13195     cygwin* | mingw* | pw32* | cegcc*)
13196       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13197       # as there is no search path for DLLs.
13198       hardcode_libdir_flag_spec='-L$libdir'
13199       export_dynamic_flag_spec='${wl}--export-all-symbols'
13200       allow_undefined_flag=unsupported
13201       always_export_symbols=no
13202       enable_shared_with_static_runtimes=yes
13203       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13204
13205       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13206         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13207         # If the export-symbols file already is a .def file (1st line
13208         # is EXPORTS), use it as is; otherwise, prepend...
13209         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13210           cp $export_symbols $output_objdir/$soname.def;
13211         else
13212           echo EXPORTS > $output_objdir/$soname.def;
13213           cat $export_symbols >> $output_objdir/$soname.def;
13214         fi~
13215         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13216       else
13217         ld_shlibs=no
13218       fi
13219       ;;
13220
13221     haiku*)
13222       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223       link_all_deplibs=yes
13224       ;;
13225
13226     interix[3-9]*)
13227       hardcode_direct=no
13228       hardcode_shlibpath_var=no
13229       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13230       export_dynamic_flag_spec='${wl}-E'
13231       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232       # Instead, shared libraries are loaded at an image base (0x10000000 by
13233       # default) and relocated if they conflict, which is a slow very memory
13234       # consuming and fragmenting process.  To avoid this, we pick a random,
13235       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13237       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13238       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'
13239       ;;
13240
13241     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13242       tmp_diet=no
13243       if test "$host_os" = linux-dietlibc; then
13244         case $cc_basename in
13245           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13246         esac
13247       fi
13248       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13249          && test "$tmp_diet" = no
13250       then
13251         tmp_addflag=
13252         tmp_sharedflag='-shared'
13253         case $cc_basename,$host_cpu in
13254         pgcc*)                          # Portland Group C compiler
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'
13257           ;;
13258         pgf77* | pgf90* | pgf95* | pgfortran*)
13259                                         # Portland Group f77 and f90 compilers
13260           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'
13261           tmp_addflag=' $pic_flag -Mnomain' ;;
13262         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13263           tmp_addflag=' -i_dynamic' ;;
13264         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13265           tmp_addflag=' -i_dynamic -nofor_main' ;;
13266         ifc* | ifort*)                  # Intel Fortran compiler
13267           tmp_addflag=' -nofor_main' ;;
13268         lf95*)                          # Lahey Fortran 8.1
13269           whole_archive_flag_spec=
13270           tmp_sharedflag='--shared' ;;
13271         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13272           tmp_sharedflag='-qmkshrobj'
13273           tmp_addflag= ;;
13274         nvcc*)  # Cuda Compiler Driver 2.2
13275           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'
13276           compiler_needs_object=yes
13277           ;;
13278         esac
13279         case `$CC -V 2>&1 | sed 5q` in
13280         *Sun\ C*)                       # Sun C 5.9
13281           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'
13282           compiler_needs_object=yes
13283           tmp_sharedflag='-G' ;;
13284         *Sun\ F*)                       # Sun Fortran 8.3
13285           tmp_sharedflag='-G' ;;
13286         esac
13287         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13288
13289         if test "x$supports_anon_versioning" = xyes; then
13290           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13291             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13292             echo "local: *; };" >> $output_objdir/$libname.ver~
13293             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13294         fi
13295
13296         case $cc_basename in
13297         xlf* | bgf* | bgxlf* | mpixlf*)
13298           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13299           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13300           hardcode_libdir_flag_spec=
13301           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13302           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13303           if test "x$supports_anon_versioning" = xyes; then
13304             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13305               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13306               echo "local: *; };" >> $output_objdir/$libname.ver~
13307               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13308           fi
13309           ;;
13310         esac
13311       else
13312         ld_shlibs=no
13313       fi
13314       ;;
13315
13316     netbsd*)
13317       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13318         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13319         wlarc=
13320       else
13321         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13323       fi
13324       ;;
13325
13326     solaris*)
13327       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13328         ld_shlibs=no
13329         cat <<_LT_EOF 1>&2
13330
13331 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13332 *** create shared libraries on Solaris systems.  Therefore, libtool
13333 *** is disabling shared libraries support.  We urge you to upgrade GNU
13334 *** binutils to release 2.9.1 or newer.  Another option is to modify
13335 *** your PATH or compiler configuration so that the native linker is
13336 *** used, and then restart.
13337
13338 _LT_EOF
13339       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342       else
13343         ld_shlibs=no
13344       fi
13345       ;;
13346
13347     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13348       case `$LD -v 2>&1` in
13349         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13350         ld_shlibs=no
13351         cat <<_LT_EOF 1>&2
13352
13353 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13354 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13355 *** is disabling shared libraries support.  We urge you to upgrade GNU
13356 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13357 *** your PATH or compiler configuration so that the native linker is
13358 *** used, and then restart.
13359
13360 _LT_EOF
13361         ;;
13362         *)
13363           # For security reasons, it is highly recommended that you always
13364           # use absolute paths for naming shared libraries, and exclude the
13365           # DT_RUNPATH tag from executables and libraries.  But doing so
13366           # requires that you compile everything twice, which is a pain.
13367           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13368             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13369             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371           else
13372             ld_shlibs=no
13373           fi
13374         ;;
13375       esac
13376       ;;
13377
13378     sunos4*)
13379       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13380       wlarc=
13381       hardcode_direct=yes
13382       hardcode_shlibpath_var=no
13383       ;;
13384
13385     *)
13386       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13387         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13389       else
13390         ld_shlibs=no
13391       fi
13392       ;;
13393     esac
13394
13395     if test "$ld_shlibs" = no; then
13396       runpath_var=
13397       hardcode_libdir_flag_spec=
13398       export_dynamic_flag_spec=
13399       whole_archive_flag_spec=
13400     fi
13401   else
13402     # PORTME fill in a description of your system's linker (not GNU ld)
13403     case $host_os in
13404     aix3*)
13405       allow_undefined_flag=unsupported
13406       always_export_symbols=yes
13407       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'
13408       # Note: this linker hardcodes the directories in LIBPATH if there
13409       # are no directories specified by -L.
13410       hardcode_minus_L=yes
13411       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13412         # Neither direct hardcoding nor static linking is supported with a
13413         # broken collect2.
13414         hardcode_direct=unsupported
13415       fi
13416       ;;
13417
13418     aix[4-9]*)
13419       if test "$host_cpu" = ia64; then
13420         # On IA64, the linker does run time linking by default, so we don't
13421         # have to do anything special.
13422         aix_use_runtimelinking=no
13423         exp_sym_flag='-Bexport'
13424         no_entry_flag=""
13425       else
13426         # If we're using GNU nm, then we don't want the "-C" option.
13427         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13428         # Also, AIX nm treats weak defined symbols like other global
13429         # defined symbols, whereas GNU nm marks them as "W".
13430         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13431           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'
13432         else
13433           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'
13434         fi
13435         aix_use_runtimelinking=no
13436
13437         # Test if we are trying to use run time linking or normal
13438         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13439         # need to do runtime linking.
13440         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13441           for ld_flag in $LDFLAGS; do
13442           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13443             aix_use_runtimelinking=yes
13444             break
13445           fi
13446           done
13447           ;;
13448         esac
13449
13450         exp_sym_flag='-bexport'
13451         no_entry_flag='-bnoentry'
13452       fi
13453
13454       # When large executables or shared objects are built, AIX ld can
13455       # have problems creating the table of contents.  If linking a library
13456       # or program results in "error TOC overflow" add -mminimal-toc to
13457       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13458       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13459
13460       archive_cmds=''
13461       hardcode_direct=yes
13462       hardcode_direct_absolute=yes
13463       hardcode_libdir_separator=':'
13464       link_all_deplibs=yes
13465       file_list_spec='${wl}-f,'
13466
13467       if test "$GCC" = yes; then
13468         case $host_os in aix4.[012]|aix4.[012].*)
13469         # We only want to do this on AIX 4.2 and lower, the check
13470         # below for broken collect2 doesn't work under 4.3+
13471           collect2name=`${CC} -print-prog-name=collect2`
13472           if test -f "$collect2name" &&
13473            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13474           then
13475           # We have reworked collect2
13476           :
13477           else
13478           # We have old collect2
13479           hardcode_direct=unsupported
13480           # It fails to find uninstalled libraries when the uninstalled
13481           # path is not listed in the libpath.  Setting hardcode_minus_L
13482           # to unsupported forces relinking
13483           hardcode_minus_L=yes
13484           hardcode_libdir_flag_spec='-L$libdir'
13485           hardcode_libdir_separator=
13486           fi
13487           ;;
13488         esac
13489         shared_flag='-shared'
13490         if test "$aix_use_runtimelinking" = yes; then
13491           shared_flag="$shared_flag "'${wl}-G'
13492         fi
13493       else
13494         # not using gcc
13495         if test "$host_cpu" = ia64; then
13496         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13497         # chokes on -Wl,-G. The following line is correct:
13498           shared_flag='-G'
13499         else
13500           if test "$aix_use_runtimelinking" = yes; then
13501             shared_flag='${wl}-G'
13502           else
13503             shared_flag='${wl}-bM:SRE'
13504           fi
13505         fi
13506       fi
13507
13508       export_dynamic_flag_spec='${wl}-bexpall'
13509       # It seems that -bexpall does not export symbols beginning with
13510       # underscore (_), so it is better to generate a list of symbols to export.
13511       always_export_symbols=yes
13512       if test "$aix_use_runtimelinking" = yes; then
13513         # Warning - without using the other runtime loading flags (-brtl),
13514         # -berok will link without error, but may produce a broken library.
13515         allow_undefined_flag='-berok'
13516         # Determine the default libpath from the value encoded in an
13517         # empty executable.
13518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h.  */
13520
13521 int
13522 main ()
13523 {
13524
13525   ;
13526   return 0;
13527 }
13528 _ACEOF
13529 if ac_fn_c_try_link "$LINENO"; then :
13530
13531 lt_aix_libpath_sed='
13532     /Import File Strings/,/^$/ {
13533         /^0/ {
13534             s/^0  *\(.*\)$/\1/
13535             p
13536         }
13537     }'
13538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539 # Check for a 64-bit object if we didn't find anything.
13540 if test -z "$aix_libpath"; then
13541   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13542 fi
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext \
13545     conftest$ac_exeext conftest.$ac_ext
13546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13547
13548         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13549         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"
13550       else
13551         if test "$host_cpu" = ia64; then
13552           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13553           allow_undefined_flag="-z nodefs"
13554           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"
13555         else
13556          # Determine the default libpath from the value encoded in an
13557          # empty executable.
13558          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h.  */
13560
13561 int
13562 main ()
13563 {
13564
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570
13571 lt_aix_libpath_sed='
13572     /Import File Strings/,/^$/ {
13573         /^0/ {
13574             s/^0  *\(.*\)$/\1/
13575             p
13576         }
13577     }'
13578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579 # Check for a 64-bit object if we didn't find anything.
13580 if test -z "$aix_libpath"; then
13581   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13582 fi
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext \
13585     conftest$ac_exeext conftest.$ac_ext
13586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13587
13588          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13589           # Warning - without using the other run time loading flags,
13590           # -berok will link without error, but may produce a broken library.
13591           no_undefined_flag=' ${wl}-bernotok'
13592           allow_undefined_flag=' ${wl}-berok'
13593           if test "$with_gnu_ld" = yes; then
13594             # We only use this code for GNU lds that support --whole-archive.
13595             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13596           else
13597             # Exported symbols can be pulled into shared objects from archives
13598             whole_archive_flag_spec='$convenience'
13599           fi
13600           archive_cmds_need_lc=yes
13601           # This is similar to how AIX traditionally builds its shared libraries.
13602           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'
13603         fi
13604       fi
13605       ;;
13606
13607     amigaos*)
13608       case $host_cpu in
13609       powerpc)
13610             # see comment about AmigaOS4 .so support
13611             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612             archive_expsym_cmds=''
13613         ;;
13614       m68k)
13615             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)'
13616             hardcode_libdir_flag_spec='-L$libdir'
13617             hardcode_minus_L=yes
13618         ;;
13619       esac
13620       ;;
13621
13622     bsdi[45]*)
13623       export_dynamic_flag_spec=-rdynamic
13624       ;;
13625
13626     cygwin* | mingw* | pw32* | cegcc*)
13627       # When not using gcc, we currently assume that we are using
13628       # Microsoft Visual C++.
13629       # hardcode_libdir_flag_spec is actually meaningless, as there is
13630       # no search path for DLLs.
13631       hardcode_libdir_flag_spec=' '
13632       allow_undefined_flag=unsupported
13633       # Tell ltmain to make .lib files, not .a files.
13634       libext=lib
13635       # Tell ltmain to make .dll files, not .so files.
13636       shrext_cmds=".dll"
13637       # FIXME: Setting linknames here is a bad hack.
13638       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13639       # The linker will automatically build a .lib file if we build a DLL.
13640       old_archive_from_new_cmds='true'
13641       # FIXME: Should let the user specify the lib program.
13642       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13643       fix_srcfile_path='`cygpath -w "$srcfile"`'
13644       enable_shared_with_static_runtimes=yes
13645       ;;
13646
13647     darwin* | rhapsody*)
13648
13649
13650   archive_cmds_need_lc=no
13651   hardcode_direct=no
13652   hardcode_automatic=yes
13653   hardcode_shlibpath_var=unsupported
13654   if test "$lt_cv_ld_force_load" = "yes"; then
13655     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\"`'
13656   else
13657     whole_archive_flag_spec=''
13658   fi
13659   link_all_deplibs=yes
13660   allow_undefined_flag="$_lt_dar_allow_undefined"
13661   case $cc_basename in
13662      ifort*) _lt_dar_can_shared=yes ;;
13663      *) _lt_dar_can_shared=$GCC ;;
13664   esac
13665   if test "$_lt_dar_can_shared" = "yes"; then
13666     output_verbose_link_cmd=func_echo_all
13667     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13668     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13669     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}"
13670     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}"
13671
13672   else
13673   ld_shlibs=no
13674   fi
13675
13676       ;;
13677
13678     dgux*)
13679       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13680       hardcode_libdir_flag_spec='-L$libdir'
13681       hardcode_shlibpath_var=no
13682       ;;
13683
13684     freebsd1*)
13685       ld_shlibs=no
13686       ;;
13687
13688     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13689     # support.  Future versions do this automatically, but an explicit c++rt0.o
13690     # does not break anything, and helps significantly (at the cost of a little
13691     # extra space).
13692     freebsd2.2*)
13693       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13694       hardcode_libdir_flag_spec='-R$libdir'
13695       hardcode_direct=yes
13696       hardcode_shlibpath_var=no
13697       ;;
13698
13699     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13700     freebsd2*)
13701       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13702       hardcode_direct=yes
13703       hardcode_minus_L=yes
13704       hardcode_shlibpath_var=no
13705       ;;
13706
13707     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13708     freebsd* | dragonfly*)
13709       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13710       hardcode_libdir_flag_spec='-R$libdir'
13711       hardcode_direct=yes
13712       hardcode_shlibpath_var=no
13713       ;;
13714
13715     hpux9*)
13716       if test "$GCC" = yes; then
13717         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'
13718       else
13719         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'
13720       fi
13721       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13722       hardcode_libdir_separator=:
13723       hardcode_direct=yes
13724
13725       # hardcode_minus_L: Not really in the search PATH,
13726       # but as the default location of the library.
13727       hardcode_minus_L=yes
13728       export_dynamic_flag_spec='${wl}-E'
13729       ;;
13730
13731     hpux10*)
13732       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13733         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13734       else
13735         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13736       fi
13737       if test "$with_gnu_ld" = no; then
13738         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739         hardcode_libdir_flag_spec_ld='+b $libdir'
13740         hardcode_libdir_separator=:
13741         hardcode_direct=yes
13742         hardcode_direct_absolute=yes
13743         export_dynamic_flag_spec='${wl}-E'
13744         # hardcode_minus_L: Not really in the search PATH,
13745         # but as the default location of the library.
13746         hardcode_minus_L=yes
13747       fi
13748       ;;
13749
13750     hpux11*)
13751       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13752         case $host_cpu in
13753         hppa*64*)
13754           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13755           ;;
13756         ia64*)
13757           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13758           ;;
13759         *)
13760           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13761           ;;
13762         esac
13763       else
13764         case $host_cpu in
13765         hppa*64*)
13766           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13767           ;;
13768         ia64*)
13769           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13770           ;;
13771         *)
13772
13773           # Older versions of the 11.00 compiler do not understand -b yet
13774           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13775           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13776 $as_echo_n "checking if $CC understands -b... " >&6; }
13777 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13778   $as_echo_n "(cached) " >&6
13779 else
13780   lt_cv_prog_compiler__b=no
13781    save_LDFLAGS="$LDFLAGS"
13782    LDFLAGS="$LDFLAGS -b"
13783    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13784    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13785      # The linker can only warn and ignore the option if not recognized
13786      # So say no if there are warnings
13787      if test -s conftest.err; then
13788        # Append any errors to the config.log.
13789        cat conftest.err 1>&5
13790        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13791        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13792        if diff conftest.exp conftest.er2 >/dev/null; then
13793          lt_cv_prog_compiler__b=yes
13794        fi
13795      else
13796        lt_cv_prog_compiler__b=yes
13797      fi
13798    fi
13799    $RM -r conftest*
13800    LDFLAGS="$save_LDFLAGS"
13801
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13804 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13805
13806 if test x"$lt_cv_prog_compiler__b" = xyes; then
13807     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13808 else
13809     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13810 fi
13811
13812           ;;
13813         esac
13814       fi
13815       if test "$with_gnu_ld" = no; then
13816         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13817         hardcode_libdir_separator=:
13818
13819         case $host_cpu in
13820         hppa*64*|ia64*)
13821           hardcode_direct=no
13822           hardcode_shlibpath_var=no
13823           ;;
13824         *)
13825           hardcode_direct=yes
13826           hardcode_direct_absolute=yes
13827           export_dynamic_flag_spec='${wl}-E'
13828
13829           # hardcode_minus_L: Not really in the search PATH,
13830           # but as the default location of the library.
13831           hardcode_minus_L=yes
13832           ;;
13833         esac
13834       fi
13835       ;;
13836
13837     irix5* | irix6* | nonstopux*)
13838       if test "$GCC" = yes; then
13839         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'
13840         # Try to use the -exported_symbol ld option, if it does not
13841         # work, assume that -exports_file does not work either and
13842         # implicitly export all symbols.
13843         save_LDFLAGS="$LDFLAGS"
13844         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13845         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h.  */
13847 int foo(void) {}
13848 _ACEOF
13849 if ac_fn_c_try_link "$LINENO"; then :
13850   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'
13851
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854     conftest$ac_exeext conftest.$ac_ext
13855         LDFLAGS="$save_LDFLAGS"
13856       else
13857         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'
13858         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'
13859       fi
13860       archive_cmds_need_lc='no'
13861       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862       hardcode_libdir_separator=:
13863       inherit_rpath=yes
13864       link_all_deplibs=yes
13865       ;;
13866
13867     netbsd*)
13868       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13870       else
13871         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13872       fi
13873       hardcode_libdir_flag_spec='-R$libdir'
13874       hardcode_direct=yes
13875       hardcode_shlibpath_var=no
13876       ;;
13877
13878     newsos6)
13879       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880       hardcode_direct=yes
13881       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13882       hardcode_libdir_separator=:
13883       hardcode_shlibpath_var=no
13884       ;;
13885
13886     *nto* | *qnx*)
13887       ;;
13888
13889     openbsd*)
13890       if test -f /usr/libexec/ld.so; then
13891         hardcode_direct=yes
13892         hardcode_shlibpath_var=no
13893         hardcode_direct_absolute=yes
13894         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13895           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13896           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13897           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13898           export_dynamic_flag_spec='${wl}-E'
13899         else
13900           case $host_os in
13901            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903              hardcode_libdir_flag_spec='-R$libdir'
13904              ;;
13905            *)
13906              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908              ;;
13909           esac
13910         fi
13911       else
13912         ld_shlibs=no
13913       fi
13914       ;;
13915
13916     os2*)
13917       hardcode_libdir_flag_spec='-L$libdir'
13918       hardcode_minus_L=yes
13919       allow_undefined_flag=unsupported
13920       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'
13921       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13922       ;;
13923
13924     osf3*)
13925       if test "$GCC" = yes; then
13926         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13927         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'
13928       else
13929         allow_undefined_flag=' -expect_unresolved \*'
13930         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'
13931       fi
13932       archive_cmds_need_lc='no'
13933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13934       hardcode_libdir_separator=:
13935       ;;
13936
13937     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13938       if test "$GCC" = yes; then
13939         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13940         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'
13941         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13942       else
13943         allow_undefined_flag=' -expect_unresolved \*'
13944         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'
13945         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~
13946         $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'
13947
13948         # Both c and cxx compiler support -rpath directly
13949         hardcode_libdir_flag_spec='-rpath $libdir'
13950       fi
13951       archive_cmds_need_lc='no'
13952       hardcode_libdir_separator=:
13953       ;;
13954
13955     solaris*)
13956       no_undefined_flag=' -z defs'
13957       if test "$GCC" = yes; then
13958         wlarc='${wl}'
13959         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13960         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13961           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13962       else
13963         case `$CC -V 2>&1` in
13964         *"Compilers 5.0"*)
13965           wlarc=''
13966           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13968           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13969           ;;
13970         *)
13971           wlarc='${wl}'
13972           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13973           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13974           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13975           ;;
13976         esac
13977       fi
13978       hardcode_libdir_flag_spec='-R$libdir'
13979       hardcode_shlibpath_var=no
13980       case $host_os in
13981       solaris2.[0-5] | solaris2.[0-5].*) ;;
13982       *)
13983         # The compiler driver will combine and reorder linker options,
13984         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13985         # but is careful enough not to reorder.
13986         # Supported since Solaris 2.6 (maybe 2.5.1?)
13987         if test "$GCC" = yes; then
13988           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13989         else
13990           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13991         fi
13992         ;;
13993       esac
13994       link_all_deplibs=yes
13995       ;;
13996
13997     sunos4*)
13998       if test "x$host_vendor" = xsequent; then
13999         # Use $CC to link under sequent, because it throws in some extra .o
14000         # files that make .init and .fini sections work.
14001         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14002       else
14003         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14004       fi
14005       hardcode_libdir_flag_spec='-L$libdir'
14006       hardcode_direct=yes
14007       hardcode_minus_L=yes
14008       hardcode_shlibpath_var=no
14009       ;;
14010
14011     sysv4)
14012       case $host_vendor in
14013         sni)
14014           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015           hardcode_direct=yes # is this really true???
14016         ;;
14017         siemens)
14018           ## LD is ld it makes a PLAMLIB
14019           ## CC just makes a GrossModule.
14020           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14021           reload_cmds='$CC -r -o $output$reload_objs'
14022           hardcode_direct=no
14023         ;;
14024         motorola)
14025           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14027         ;;
14028       esac
14029       runpath_var='LD_RUN_PATH'
14030       hardcode_shlibpath_var=no
14031       ;;
14032
14033     sysv4.3*)
14034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035       hardcode_shlibpath_var=no
14036       export_dynamic_flag_spec='-Bexport'
14037       ;;
14038
14039     sysv4*MP*)
14040       if test -d /usr/nec; then
14041         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042         hardcode_shlibpath_var=no
14043         runpath_var=LD_RUN_PATH
14044         hardcode_runpath_var=yes
14045         ld_shlibs=yes
14046       fi
14047       ;;
14048
14049     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14050       no_undefined_flag='${wl}-z,text'
14051       archive_cmds_need_lc=no
14052       hardcode_shlibpath_var=no
14053       runpath_var='LD_RUN_PATH'
14054
14055       if test "$GCC" = yes; then
14056         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14058       else
14059         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061       fi
14062       ;;
14063
14064     sysv5* | sco3.2v5* | sco5v6*)
14065       # Note: We can NOT use -z defs as we might desire, because we do not
14066       # link with -lc, and that would cause any symbols used from libc to
14067       # always be unresolved, which means just about no library would
14068       # ever link correctly.  If we're not using GNU ld we use -z text
14069       # though, which does catch some bad symbols but isn't as heavy-handed
14070       # as -z defs.
14071       no_undefined_flag='${wl}-z,text'
14072       allow_undefined_flag='${wl}-z,nodefs'
14073       archive_cmds_need_lc=no
14074       hardcode_shlibpath_var=no
14075       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14076       hardcode_libdir_separator=':'
14077       link_all_deplibs=yes
14078       export_dynamic_flag_spec='${wl}-Bexport'
14079       runpath_var='LD_RUN_PATH'
14080
14081       if test "$GCC" = yes; then
14082         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14084       else
14085         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087       fi
14088       ;;
14089
14090     uts4*)
14091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14092       hardcode_libdir_flag_spec='-L$libdir'
14093       hardcode_shlibpath_var=no
14094       ;;
14095
14096     *)
14097       ld_shlibs=no
14098       ;;
14099     esac
14100
14101     if test x$host_vendor = xsni; then
14102       case $host in
14103       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14104         export_dynamic_flag_spec='${wl}-Blargedynsym'
14105         ;;
14106       esac
14107     fi
14108   fi
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14111 $as_echo "$ld_shlibs" >&6; }
14112 test "$ld_shlibs" = no && can_build_shared=no
14113
14114 with_gnu_ld=$with_gnu_ld
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130 #
14131 # Do we need to explicitly link libc?
14132 #
14133 case "x$archive_cmds_need_lc" in
14134 x|xyes)
14135   # Assume -lc should be added
14136   archive_cmds_need_lc=yes
14137
14138   if test "$enable_shared" = yes && test "$GCC" = yes; then
14139     case $archive_cmds in
14140     *'~'*)
14141       # FIXME: we may have to deal with multi-command sequences.
14142       ;;
14143     '$CC '*)
14144       # Test whether the compiler implicitly links with -lc since on some
14145       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14146       # to ld, don't add -lc before -lgcc.
14147       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14148 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14149 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   $RM conftest*
14153         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14154
14155         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14156   (eval $ac_compile) 2>&5
14157   ac_status=$?
14158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159   test $ac_status = 0; } 2>conftest.err; then
14160           soname=conftest
14161           lib=conftest
14162           libobjs=conftest.$ac_objext
14163           deplibs=
14164           wl=$lt_prog_compiler_wl
14165           pic_flag=$lt_prog_compiler_pic
14166           compiler_flags=-v
14167           linker_flags=-v
14168           verstring=
14169           output_objdir=.
14170           libname=conftest
14171           lt_save_allow_undefined_flag=$allow_undefined_flag
14172           allow_undefined_flag=
14173           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14174   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14175   ac_status=$?
14176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177   test $ac_status = 0; }
14178           then
14179             lt_cv_archive_cmds_need_lc=no
14180           else
14181             lt_cv_archive_cmds_need_lc=yes
14182           fi
14183           allow_undefined_flag=$lt_save_allow_undefined_flag
14184         else
14185           cat conftest.err 1>&5
14186         fi
14187         $RM conftest*
14188
14189 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14191 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14192       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14193       ;;
14194     esac
14195   fi
14196   ;;
14197 esac
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
14351
14352
14353
14354
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14356 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14357
14358 if test "$GCC" = yes; then
14359   case $host_os in
14360     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14361     *) lt_awk_arg="/^libraries:/" ;;
14362   esac
14363   case $host_os in
14364     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14365     *) lt_sed_strip_eq="s,=/,/,g" ;;
14366   esac
14367   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14368   case $lt_search_path_spec in
14369   *\;*)
14370     # if the path contains ";" then we assume it to be the separator
14371     # otherwise default to the standard path separator (i.e. ":") - it is
14372     # assumed that no part of a normal pathname contains ";" but that should
14373     # okay in the real world where ";" in dirpaths is itself problematic.
14374     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14375     ;;
14376   *)
14377     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14378     ;;
14379   esac
14380   # Ok, now we have the path, separated by spaces, we can step through it
14381   # and add multilib dir if necessary.
14382   lt_tmp_lt_search_path_spec=
14383   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14384   for lt_sys_path in $lt_search_path_spec; do
14385     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14386       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14387     else
14388       test -d "$lt_sys_path" && \
14389         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14390     fi
14391   done
14392   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14393 BEGIN {RS=" "; FS="/|\n";} {
14394   lt_foo="";
14395   lt_count=0;
14396   for (lt_i = NF; lt_i > 0; lt_i--) {
14397     if ($lt_i != "" && $lt_i != ".") {
14398       if ($lt_i == "..") {
14399         lt_count++;
14400       } else {
14401         if (lt_count == 0) {
14402           lt_foo="/" $lt_i lt_foo;
14403         } else {
14404           lt_count--;
14405         }
14406       }
14407     }
14408   }
14409   if (lt_foo != "") { lt_freq[lt_foo]++; }
14410   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14411 }'`
14412   # AWK program above erroneously prepends '/' to C:/dos/paths
14413   # for these hosts.
14414   case $host_os in
14415     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14416       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14417   esac
14418   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14419 else
14420   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14421 fi
14422 library_names_spec=
14423 libname_spec='lib$name'
14424 soname_spec=
14425 shrext_cmds=".so"
14426 postinstall_cmds=
14427 postuninstall_cmds=
14428 finish_cmds=
14429 finish_eval=
14430 shlibpath_var=
14431 shlibpath_overrides_runpath=unknown
14432 version_type=none
14433 dynamic_linker="$host_os ld.so"
14434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14435 need_lib_prefix=unknown
14436 hardcode_into_libs=no
14437
14438 # when you set need_version to no, make sure it does not cause -set_version
14439 # flags to be left without arguments
14440 need_version=unknown
14441
14442 case $host_os in
14443 aix3*)
14444   version_type=linux
14445   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14446   shlibpath_var=LIBPATH
14447
14448   # AIX 3 has no versioning support, so we append a major version to the name.
14449   soname_spec='${libname}${release}${shared_ext}$major'
14450   ;;
14451
14452 aix[4-9]*)
14453   version_type=linux
14454   need_lib_prefix=no
14455   need_version=no
14456   hardcode_into_libs=yes
14457   if test "$host_cpu" = ia64; then
14458     # AIX 5 supports IA64
14459     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14460     shlibpath_var=LD_LIBRARY_PATH
14461   else
14462     # With GCC up to 2.95.x, collect2 would create an import file
14463     # for dependence libraries.  The import file would start with
14464     # the line `#! .'.  This would cause the generated library to
14465     # depend on `.', always an invalid library.  This was fixed in
14466     # development snapshots of GCC prior to 3.0.
14467     case $host_os in
14468       aix4 | aix4.[01] | aix4.[01].*)
14469       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14470            echo ' yes '
14471            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14472         :
14473       else
14474         can_build_shared=no
14475       fi
14476       ;;
14477     esac
14478     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14479     # soname into executable. Probably we can add versioning support to
14480     # collect2, so additional links can be useful in future.
14481     if test "$aix_use_runtimelinking" = yes; then
14482       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14483       # instead of lib<name>.a to let people know that these are not
14484       # typical AIX shared libraries.
14485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14486     else
14487       # We preserve .a as extension for shared libraries through AIX4.2
14488       # and later when we are not doing run time linking.
14489       library_names_spec='${libname}${release}.a $libname.a'
14490       soname_spec='${libname}${release}${shared_ext}$major'
14491     fi
14492     shlibpath_var=LIBPATH
14493   fi
14494   ;;
14495
14496 amigaos*)
14497   case $host_cpu in
14498   powerpc)
14499     # Since July 2007 AmigaOS4 officially supports .so libraries.
14500     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502     ;;
14503   m68k)
14504     library_names_spec='$libname.ixlibrary $libname.a'
14505     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14506     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'
14507     ;;
14508   esac
14509   ;;
14510
14511 beos*)
14512   library_names_spec='${libname}${shared_ext}'
14513   dynamic_linker="$host_os ld.so"
14514   shlibpath_var=LIBRARY_PATH
14515   ;;
14516
14517 bsdi[45]*)
14518   version_type=linux
14519   need_version=no
14520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521   soname_spec='${libname}${release}${shared_ext}$major'
14522   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14523   shlibpath_var=LD_LIBRARY_PATH
14524   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14525   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14526   # the default ld.so.conf also contains /usr/contrib/lib and
14527   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14528   # libtool to hard-code these into programs
14529   ;;
14530
14531 cygwin* | mingw* | pw32* | cegcc*)
14532   version_type=windows
14533   shrext_cmds=".dll"
14534   need_version=no
14535   need_lib_prefix=no
14536
14537   case $GCC,$host_os in
14538   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14539     library_names_spec='$libname.dll.a'
14540     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14541     postinstall_cmds='base_file=`basename \${file}`~
14542       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14543       dldir=$destdir/`dirname \$dlpath`~
14544       test -d \$dldir || mkdir -p \$dldir~
14545       $install_prog $dir/$dlname \$dldir/$dlname~
14546       chmod a+x \$dldir/$dlname~
14547       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14548         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14549       fi'
14550     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551       dlpath=$dir/\$dldll~
14552        $RM \$dlpath'
14553     shlibpath_overrides_runpath=yes
14554
14555     case $host_os in
14556     cygwin*)
14557       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14558       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14559
14560       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14561       ;;
14562     mingw* | cegcc*)
14563       # MinGW DLLs use traditional 'lib' prefix
14564       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565       ;;
14566     pw32*)
14567       # pw32 DLLs use 'pw' prefix rather than 'lib'
14568       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14569       ;;
14570     esac
14571     ;;
14572
14573   *)
14574     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14575     ;;
14576   esac
14577   dynamic_linker='Win32 ld.exe'
14578   # FIXME: first we should search . and the directory the executable is in
14579   shlibpath_var=PATH
14580   ;;
14581
14582 darwin* | rhapsody*)
14583   dynamic_linker="$host_os dyld"
14584   version_type=darwin
14585   need_lib_prefix=no
14586   need_version=no
14587   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14588   soname_spec='${libname}${release}${major}$shared_ext'
14589   shlibpath_overrides_runpath=yes
14590   shlibpath_var=DYLD_LIBRARY_PATH
14591   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14592
14593   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14594   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14595   ;;
14596
14597 dgux*)
14598   version_type=linux
14599   need_lib_prefix=no
14600   need_version=no
14601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14602   soname_spec='${libname}${release}${shared_ext}$major'
14603   shlibpath_var=LD_LIBRARY_PATH
14604   ;;
14605
14606 freebsd1*)
14607   dynamic_linker=no
14608   ;;
14609
14610 freebsd* | dragonfly*)
14611   # DragonFly does not have aout.  When/if they implement a new
14612   # versioning mechanism, adjust this.
14613   if test -x /usr/bin/objformat; then
14614     objformat=`/usr/bin/objformat`
14615   else
14616     case $host_os in
14617     freebsd[123]*) objformat=aout ;;
14618     *) objformat=elf ;;
14619     esac
14620   fi
14621   version_type=freebsd-$objformat
14622   case $version_type in
14623     freebsd-elf*)
14624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14625       need_version=no
14626       need_lib_prefix=no
14627       ;;
14628     freebsd-*)
14629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14630       need_version=yes
14631       ;;
14632   esac
14633   shlibpath_var=LD_LIBRARY_PATH
14634   case $host_os in
14635   freebsd2*)
14636     shlibpath_overrides_runpath=yes
14637     ;;
14638   freebsd3.[01]* | freebsdelf3.[01]*)
14639     shlibpath_overrides_runpath=yes
14640     hardcode_into_libs=yes
14641     ;;
14642   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14643   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14644     shlibpath_overrides_runpath=no
14645     hardcode_into_libs=yes
14646     ;;
14647   *) # from 4.6 on, and DragonFly
14648     shlibpath_overrides_runpath=yes
14649     hardcode_into_libs=yes
14650     ;;
14651   esac
14652   ;;
14653
14654 gnu*)
14655   version_type=linux
14656   need_lib_prefix=no
14657   need_version=no
14658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   shlibpath_var=LD_LIBRARY_PATH
14661   hardcode_into_libs=yes
14662   ;;
14663
14664 haiku*)
14665   version_type=linux
14666   need_lib_prefix=no
14667   need_version=no
14668   dynamic_linker="$host_os runtime_loader"
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14670   soname_spec='${libname}${release}${shared_ext}$major'
14671   shlibpath_var=LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14674   hardcode_into_libs=yes
14675   ;;
14676
14677 hpux9* | hpux10* | hpux11*)
14678   # Give a soname corresponding to the major version so that dld.sl refuses to
14679   # link against other versions.
14680   version_type=sunos
14681   need_lib_prefix=no
14682   need_version=no
14683   case $host_cpu in
14684   ia64*)
14685     shrext_cmds='.so'
14686     hardcode_into_libs=yes
14687     dynamic_linker="$host_os dld.so"
14688     shlibpath_var=LD_LIBRARY_PATH
14689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691     soname_spec='${libname}${release}${shared_ext}$major'
14692     if test "X$HPUX_IA64_MODE" = X32; then
14693       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14694     else
14695       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14696     fi
14697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698     ;;
14699   hppa*64*)
14700     shrext_cmds='.sl'
14701     hardcode_into_libs=yes
14702     dynamic_linker="$host_os dld.sl"
14703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706     soname_spec='${libname}${release}${shared_ext}$major'
14707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14709     ;;
14710   *)
14711     shrext_cmds='.sl'
14712     dynamic_linker="$host_os dld.sl"
14713     shlibpath_var=SHLIB_PATH
14714     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716     soname_spec='${libname}${release}${shared_ext}$major'
14717     ;;
14718   esac
14719   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14720   postinstall_cmds='chmod 555 $lib'
14721   # or fails outright, so override atomically:
14722   install_override_mode=555
14723   ;;
14724
14725 interix[3-9]*)
14726   version_type=linux
14727   need_lib_prefix=no
14728   need_version=no
14729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730   soname_spec='${libname}${release}${shared_ext}$major'
14731   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14732   shlibpath_var=LD_LIBRARY_PATH
14733   shlibpath_overrides_runpath=no
14734   hardcode_into_libs=yes
14735   ;;
14736
14737 irix5* | irix6* | nonstopux*)
14738   case $host_os in
14739     nonstopux*) version_type=nonstopux ;;
14740     *)
14741         if test "$lt_cv_prog_gnu_ld" = yes; then
14742                 version_type=linux
14743         else
14744                 version_type=irix
14745         fi ;;
14746   esac
14747   need_lib_prefix=no
14748   need_version=no
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14751   case $host_os in
14752   irix5* | nonstopux*)
14753     libsuff= shlibsuff=
14754     ;;
14755   *)
14756     case $LD in # libtool.m4 will add one of these switches to LD
14757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758       libsuff= shlibsuff= libmagic=32-bit;;
14759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760       libsuff=32 shlibsuff=N32 libmagic=N32;;
14761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763     *) libsuff= shlibsuff= libmagic=never-match;;
14764     esac
14765     ;;
14766   esac
14767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768   shlibpath_overrides_runpath=no
14769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771   hardcode_into_libs=yes
14772   ;;
14773
14774 # No shared lib support for Linux oldld, aout, or coff.
14775 linux*oldld* | linux*aout* | linux*coff*)
14776   dynamic_linker=no
14777   ;;
14778
14779 # This must be Linux ELF.
14780 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14781   version_type=linux
14782   need_lib_prefix=no
14783   need_version=no
14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785   soname_spec='${libname}${release}${shared_ext}$major'
14786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   shlibpath_overrides_runpath=no
14789
14790   # Some binutils ld are patched to set DT_RUNPATH
14791   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14792   $as_echo_n "(cached) " >&6
14793 else
14794   lt_cv_shlibpath_overrides_runpath=no
14795     save_LDFLAGS=$LDFLAGS
14796     save_libdir=$libdir
14797     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14798          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14799     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h.  */
14801
14802 int
14803 main ()
14804 {
14805
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 if ac_fn_c_try_link "$LINENO"; then :
14811   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14812   lt_cv_shlibpath_overrides_runpath=yes
14813 fi
14814 fi
14815 rm -f core conftest.err conftest.$ac_objext \
14816     conftest$ac_exeext conftest.$ac_ext
14817     LDFLAGS=$save_LDFLAGS
14818     libdir=$save_libdir
14819
14820 fi
14821
14822   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14823
14824   # This implies no fast_install, which is unacceptable.
14825   # Some rework will be needed to allow for fast_install
14826   # before this can be enabled.
14827   hardcode_into_libs=yes
14828
14829   # Add ABI-specific directories to the system library path.
14830   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14831
14832   # Append ld.so.conf contents to the search path
14833   if test -f /etc/ld.so.conf; then
14834     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' ' '`
14835     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14836
14837   fi
14838
14839   # We used to test for /lib/ld.so.1 and disable shared libraries on
14840   # powerpc, because MkLinux only supported shared libraries with the
14841   # GNU dynamic linker.  Since this was broken with cross compilers,
14842   # most powerpc-linux boxes support dynamic linking these days and
14843   # people can always --disable-shared, the test was removed, and we
14844   # assume the GNU/Linux dynamic linker is in use.
14845   dynamic_linker='GNU/Linux ld.so'
14846   ;;
14847
14848 netbsd*)
14849   version_type=sunos
14850   need_lib_prefix=no
14851   need_version=no
14852   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855     dynamic_linker='NetBSD (a.out) ld.so'
14856   else
14857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858     soname_spec='${libname}${release}${shared_ext}$major'
14859     dynamic_linker='NetBSD ld.elf_so'
14860   fi
14861   shlibpath_var=LD_LIBRARY_PATH
14862   shlibpath_overrides_runpath=yes
14863   hardcode_into_libs=yes
14864   ;;
14865
14866 newsos6)
14867   version_type=linux
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   shlibpath_overrides_runpath=yes
14871   ;;
14872
14873 *nto* | *qnx*)
14874   version_type=qnx
14875   need_lib_prefix=no
14876   need_version=no
14877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878   soname_spec='${libname}${release}${shared_ext}$major'
14879   shlibpath_var=LD_LIBRARY_PATH
14880   shlibpath_overrides_runpath=no
14881   hardcode_into_libs=yes
14882   dynamic_linker='ldqnx.so'
14883   ;;
14884
14885 openbsd*)
14886   version_type=sunos
14887   sys_lib_dlsearch_path_spec="/usr/lib"
14888   need_lib_prefix=no
14889   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14890   case $host_os in
14891     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14892     *)                          need_version=no  ;;
14893   esac
14894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898     case $host_os in
14899       openbsd2.[89] | openbsd2.[89].*)
14900         shlibpath_overrides_runpath=no
14901         ;;
14902       *)
14903         shlibpath_overrides_runpath=yes
14904         ;;
14905       esac
14906   else
14907     shlibpath_overrides_runpath=yes
14908   fi
14909   ;;
14910
14911 os2*)
14912   libname_spec='$name'
14913   shrext_cmds=".dll"
14914   need_lib_prefix=no
14915   library_names_spec='$libname${shared_ext} $libname.a'
14916   dynamic_linker='OS/2 ld.exe'
14917   shlibpath_var=LIBPATH
14918   ;;
14919
14920 osf3* | osf4* | osf5*)
14921   version_type=osf
14922   need_lib_prefix=no
14923   need_version=no
14924   soname_spec='${libname}${release}${shared_ext}$major'
14925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14929   ;;
14930
14931 rdos*)
14932   dynamic_linker=no
14933   ;;
14934
14935 solaris*)
14936   version_type=linux
14937   need_lib_prefix=no
14938   need_version=no
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940   soname_spec='${libname}${release}${shared_ext}$major'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   shlibpath_overrides_runpath=yes
14943   hardcode_into_libs=yes
14944   # ldd complains unless libraries are executable
14945   postinstall_cmds='chmod +x $lib'
14946   ;;
14947
14948 sunos4*)
14949   version_type=sunos
14950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14952   shlibpath_var=LD_LIBRARY_PATH
14953   shlibpath_overrides_runpath=yes
14954   if test "$with_gnu_ld" = yes; then
14955     need_lib_prefix=no
14956   fi
14957   need_version=yes
14958   ;;
14959
14960 sysv4 | sysv4.3*)
14961   version_type=linux
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963   soname_spec='${libname}${release}${shared_ext}$major'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   case $host_vendor in
14966     sni)
14967       shlibpath_overrides_runpath=no
14968       need_lib_prefix=no
14969       runpath_var=LD_RUN_PATH
14970       ;;
14971     siemens)
14972       need_lib_prefix=no
14973       ;;
14974     motorola)
14975       need_lib_prefix=no
14976       need_version=no
14977       shlibpath_overrides_runpath=no
14978       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979       ;;
14980   esac
14981   ;;
14982
14983 sysv4*MP*)
14984   if test -d /usr/nec ;then
14985     version_type=linux
14986     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987     soname_spec='$libname${shared_ext}.$major'
14988     shlibpath_var=LD_LIBRARY_PATH
14989   fi
14990   ;;
14991
14992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993   version_type=freebsd-elf
14994   need_lib_prefix=no
14995   need_version=no
14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997   soname_spec='${libname}${release}${shared_ext}$major'
14998   shlibpath_var=LD_LIBRARY_PATH
14999   shlibpath_overrides_runpath=yes
15000   hardcode_into_libs=yes
15001   if test "$with_gnu_ld" = yes; then
15002     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15003   else
15004     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005     case $host_os in
15006       sco3.2v5*)
15007         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15008         ;;
15009     esac
15010   fi
15011   sys_lib_dlsearch_path_spec='/usr/lib'
15012   ;;
15013
15014 tpf*)
15015   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15016   version_type=linux
15017   need_lib_prefix=no
15018   need_version=no
15019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020   shlibpath_var=LD_LIBRARY_PATH
15021   shlibpath_overrides_runpath=no
15022   hardcode_into_libs=yes
15023   ;;
15024
15025 uts4*)
15026   version_type=linux
15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028   soname_spec='${libname}${release}${shared_ext}$major'
15029   shlibpath_var=LD_LIBRARY_PATH
15030   ;;
15031
15032 *)
15033   dynamic_linker=no
15034   ;;
15035 esac
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15037 $as_echo "$dynamic_linker" >&6; }
15038 test "$dynamic_linker" = no && can_build_shared=no
15039
15040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041 if test "$GCC" = yes; then
15042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15043 fi
15044
15045 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15046   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15047 fi
15048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15049   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15050 fi
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
15139
15140
15141
15142
15143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15144 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15145 hardcode_action=
15146 if test -n "$hardcode_libdir_flag_spec" ||
15147    test -n "$runpath_var" ||
15148    test "X$hardcode_automatic" = "Xyes" ; then
15149
15150   # We can hardcode non-existent directories.
15151   if test "$hardcode_direct" != no &&
15152      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15153      # have to relink, otherwise we might link with an installed library
15154      # when we should be linking with a yet-to-be-installed one
15155      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15156      test "$hardcode_minus_L" != no; then
15157     # Linking always hardcodes the temporary library directory.
15158     hardcode_action=relink
15159   else
15160     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15161     hardcode_action=immediate
15162   fi
15163 else
15164   # We cannot hardcode anything, or else we can only hardcode existing
15165   # directories.
15166   hardcode_action=unsupported
15167 fi
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15169 $as_echo "$hardcode_action" >&6; }
15170
15171 if test "$hardcode_action" = relink ||
15172    test "$inherit_rpath" = yes; then
15173   # Fast installation is not supported
15174   enable_fast_install=no
15175 elif test "$shlibpath_overrides_runpath" = yes ||
15176      test "$enable_shared" = no; then
15177   # Fast installation is not necessary
15178   enable_fast_install=needless
15179 fi
15180
15181
15182
15183
15184
15185
15186   if test "x$enable_dlopen" != xyes; then
15187   enable_dlopen=unknown
15188   enable_dlopen_self=unknown
15189   enable_dlopen_self_static=unknown
15190 else
15191   lt_cv_dlopen=no
15192   lt_cv_dlopen_libs=
15193
15194   case $host_os in
15195   beos*)
15196     lt_cv_dlopen="load_add_on"
15197     lt_cv_dlopen_libs=
15198     lt_cv_dlopen_self=yes
15199     ;;
15200
15201   mingw* | pw32* | cegcc*)
15202     lt_cv_dlopen="LoadLibrary"
15203     lt_cv_dlopen_libs=
15204     ;;
15205
15206   cygwin*)
15207     lt_cv_dlopen="dlopen"
15208     lt_cv_dlopen_libs=
15209     ;;
15210
15211   darwin*)
15212   # if libdl is installed we need to link against it
15213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15214 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15216   $as_echo_n "(cached) " >&6
15217 else
15218   ac_check_lib_save_LIBS=$LIBS
15219 LIBS="-ldl  $LIBS"
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h.  */
15222
15223 /* Override any GCC internal prototype to avoid an error.
15224    Use char because int might match the return type of a GCC
15225    builtin and then its argument prototype would still apply.  */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 char dlopen ();
15230 int
15231 main ()
15232 {
15233 return dlopen ();
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 if ac_fn_c_try_link "$LINENO"; then :
15239   ac_cv_lib_dl_dlopen=yes
15240 else
15241   ac_cv_lib_dl_dlopen=no
15242 fi
15243 rm -f core conftest.err conftest.$ac_objext \
15244     conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15248 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15249 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15251 else
15252
15253     lt_cv_dlopen="dyld"
15254     lt_cv_dlopen_libs=
15255     lt_cv_dlopen_self=yes
15256
15257 fi
15258
15259     ;;
15260
15261   *)
15262     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15263 if test "x$ac_cv_func_shl_load" = x""yes; then :
15264   lt_cv_dlopen="shl_load"
15265 else
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15267 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15268 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15269   $as_echo_n "(cached) " >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-ldld  $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275
15276 /* Override any GCC internal prototype to avoid an error.
15277    Use char because int might match the return type of a GCC
15278    builtin and then its argument prototype would still apply.  */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 char shl_load ();
15283 int
15284 main ()
15285 {
15286 return shl_load ();
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_link "$LINENO"; then :
15292   ac_cv_lib_dld_shl_load=yes
15293 else
15294   ac_cv_lib_dld_shl_load=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297     conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15301 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15302 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15303   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15304 else
15305   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15306 if test "x$ac_cv_func_dlopen" = x""yes; then :
15307   lt_cv_dlopen="dlopen"
15308 else
15309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15312   $as_echo_n "(cached) " >&6
15313 else
15314   ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-ldl  $LIBS"
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h.  */
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320    Use char because int might match the return type of a GCC
15321    builtin and then its argument prototype would still apply.  */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char dlopen ();
15326 int
15327 main ()
15328 {
15329 return dlopen ();
15330   ;
15331   return 0;
15332 }
15333 _ACEOF
15334 if ac_fn_c_try_link "$LINENO"; then :
15335   ac_cv_lib_dl_dlopen=yes
15336 else
15337   ac_cv_lib_dl_dlopen=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext \
15340     conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15342 fi
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15346   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15347 else
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15349 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15350 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15351   $as_echo_n "(cached) " >&6
15352 else
15353   ac_check_lib_save_LIBS=$LIBS
15354 LIBS="-lsvld  $LIBS"
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h.  */
15357
15358 /* Override any GCC internal prototype to avoid an error.
15359    Use char because int might match the return type of a GCC
15360    builtin and then its argument prototype would still apply.  */
15361 #ifdef __cplusplus
15362 extern "C"
15363 #endif
15364 char dlopen ();
15365 int
15366 main ()
15367 {
15368 return dlopen ();
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 if ac_fn_c_try_link "$LINENO"; then :
15374   ac_cv_lib_svld_dlopen=yes
15375 else
15376   ac_cv_lib_svld_dlopen=no
15377 fi
15378 rm -f core conftest.err conftest.$ac_objext \
15379     conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15381 fi
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15383 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15384 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15386 else
15387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15388 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15390   $as_echo_n "(cached) " >&6
15391 else
15392   ac_check_lib_save_LIBS=$LIBS
15393 LIBS="-ldld  $LIBS"
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h.  */
15396
15397 /* Override any GCC internal prototype to avoid an error.
15398    Use char because int might match the return type of a GCC
15399    builtin and then its argument prototype would still apply.  */
15400 #ifdef __cplusplus
15401 extern "C"
15402 #endif
15403 char dld_link ();
15404 int
15405 main ()
15406 {
15407 return dld_link ();
15408   ;
15409   return 0;
15410 }
15411 _ACEOF
15412 if ac_fn_c_try_link "$LINENO"; then :
15413   ac_cv_lib_dld_dld_link=yes
15414 else
15415   ac_cv_lib_dld_dld_link=no
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext \
15418     conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15422 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15423 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15424   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15425 fi
15426
15427
15428 fi
15429
15430
15431 fi
15432
15433
15434 fi
15435
15436
15437 fi
15438
15439
15440 fi
15441
15442     ;;
15443   esac
15444
15445   if test "x$lt_cv_dlopen" != xno; then
15446     enable_dlopen=yes
15447   else
15448     enable_dlopen=no
15449   fi
15450
15451   case $lt_cv_dlopen in
15452   dlopen)
15453     save_CPPFLAGS="$CPPFLAGS"
15454     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15455
15456     save_LDFLAGS="$LDFLAGS"
15457     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15458
15459     save_LIBS="$LIBS"
15460     LIBS="$lt_cv_dlopen_libs $LIBS"
15461
15462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15463 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15464 if test "${lt_cv_dlopen_self+set}" = set; then :
15465   $as_echo_n "(cached) " >&6
15466 else
15467           if test "$cross_compiling" = yes; then :
15468   lt_cv_dlopen_self=cross
15469 else
15470   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15471   lt_status=$lt_dlunknown
15472   cat > conftest.$ac_ext <<_LT_EOF
15473 #line $LINENO "configure"
15474 #include "confdefs.h"
15475
15476 #if HAVE_DLFCN_H
15477 #include <dlfcn.h>
15478 #endif
15479
15480 #include <stdio.h>
15481
15482 #ifdef RTLD_GLOBAL
15483 #  define LT_DLGLOBAL           RTLD_GLOBAL
15484 #else
15485 #  ifdef DL_GLOBAL
15486 #    define LT_DLGLOBAL         DL_GLOBAL
15487 #  else
15488 #    define LT_DLGLOBAL         0
15489 #  endif
15490 #endif
15491
15492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15493    find out it does not work in some platform. */
15494 #ifndef LT_DLLAZY_OR_NOW
15495 #  ifdef RTLD_LAZY
15496 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15497 #  else
15498 #    ifdef DL_LAZY
15499 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15500 #    else
15501 #      ifdef RTLD_NOW
15502 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15503 #      else
15504 #        ifdef DL_NOW
15505 #          define LT_DLLAZY_OR_NOW      DL_NOW
15506 #        else
15507 #          define LT_DLLAZY_OR_NOW      0
15508 #        endif
15509 #      endif
15510 #    endif
15511 #  endif
15512 #endif
15513
15514 /* When -fvisbility=hidden is used, assume the code has been annotated
15515    correspondingly for the symbols needed.  */
15516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15517 void fnord () __attribute__((visibility("default")));
15518 #endif
15519
15520 void fnord () { int i=42; }
15521 int main ()
15522 {
15523   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15524   int status = $lt_dlunknown;
15525
15526   if (self)
15527     {
15528       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15529       else
15530         {
15531           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15532           else puts (dlerror ());
15533         }
15534       /* dlclose (self); */
15535     }
15536   else
15537     puts (dlerror ());
15538
15539   return status;
15540 }
15541 _LT_EOF
15542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15543   (eval $ac_link) 2>&5
15544   ac_status=$?
15545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15546   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15547     (./conftest; exit; ) >&5 2>/dev/null
15548     lt_status=$?
15549     case x$lt_status in
15550       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15551       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15552       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15553     esac
15554   else :
15555     # compilation failed
15556     lt_cv_dlopen_self=no
15557   fi
15558 fi
15559 rm -fr conftest*
15560
15561
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15564 $as_echo "$lt_cv_dlopen_self" >&6; }
15565
15566     if test "x$lt_cv_dlopen_self" = xyes; then
15567       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15569 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15570 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15571   $as_echo_n "(cached) " >&6
15572 else
15573           if test "$cross_compiling" = yes; then :
15574   lt_cv_dlopen_self_static=cross
15575 else
15576   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15577   lt_status=$lt_dlunknown
15578   cat > conftest.$ac_ext <<_LT_EOF
15579 #line $LINENO "configure"
15580 #include "confdefs.h"
15581
15582 #if HAVE_DLFCN_H
15583 #include <dlfcn.h>
15584 #endif
15585
15586 #include <stdio.h>
15587
15588 #ifdef RTLD_GLOBAL
15589 #  define LT_DLGLOBAL           RTLD_GLOBAL
15590 #else
15591 #  ifdef DL_GLOBAL
15592 #    define LT_DLGLOBAL         DL_GLOBAL
15593 #  else
15594 #    define LT_DLGLOBAL         0
15595 #  endif
15596 #endif
15597
15598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15599    find out it does not work in some platform. */
15600 #ifndef LT_DLLAZY_OR_NOW
15601 #  ifdef RTLD_LAZY
15602 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15603 #  else
15604 #    ifdef DL_LAZY
15605 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15606 #    else
15607 #      ifdef RTLD_NOW
15608 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15609 #      else
15610 #        ifdef DL_NOW
15611 #          define LT_DLLAZY_OR_NOW      DL_NOW
15612 #        else
15613 #          define LT_DLLAZY_OR_NOW      0
15614 #        endif
15615 #      endif
15616 #    endif
15617 #  endif
15618 #endif
15619
15620 /* When -fvisbility=hidden is used, assume the code has been annotated
15621    correspondingly for the symbols needed.  */
15622 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15623 void fnord () __attribute__((visibility("default")));
15624 #endif
15625
15626 void fnord () { int i=42; }
15627 int main ()
15628 {
15629   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15630   int status = $lt_dlunknown;
15631
15632   if (self)
15633     {
15634       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15635       else
15636         {
15637           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15638           else puts (dlerror ());
15639         }
15640       /* dlclose (self); */
15641     }
15642   else
15643     puts (dlerror ());
15644
15645   return status;
15646 }
15647 _LT_EOF
15648   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15649   (eval $ac_link) 2>&5
15650   ac_status=$?
15651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15653     (./conftest; exit; ) >&5 2>/dev/null
15654     lt_status=$?
15655     case x$lt_status in
15656       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15657       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15658       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15659     esac
15660   else :
15661     # compilation failed
15662     lt_cv_dlopen_self_static=no
15663   fi
15664 fi
15665 rm -fr conftest*
15666
15667
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15670 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15671     fi
15672
15673     CPPFLAGS="$save_CPPFLAGS"
15674     LDFLAGS="$save_LDFLAGS"
15675     LIBS="$save_LIBS"
15676     ;;
15677   esac
15678
15679   case $lt_cv_dlopen_self in
15680   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15681   *) enable_dlopen_self=unknown ;;
15682   esac
15683
15684   case $lt_cv_dlopen_self_static in
15685   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15686   *) enable_dlopen_self_static=unknown ;;
15687   esac
15688 fi
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706 striplib=
15707 old_striplib=
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15709 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15710 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15711   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15712   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15714 $as_echo "yes" >&6; }
15715 else
15716 # FIXME - insert some real tests, host_os isn't really good enough
15717   case $host_os in
15718   darwin*)
15719     if test -n "$STRIP" ; then
15720       striplib="$STRIP -x"
15721       old_striplib="$STRIP -S"
15722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15723 $as_echo "yes" >&6; }
15724     else
15725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15727     fi
15728     ;;
15729   *)
15730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15732     ;;
15733   esac
15734 fi
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747   # Report which library types will actually be built
15748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15751 $as_echo "$can_build_shared" >&6; }
15752
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15754 $as_echo_n "checking whether to build shared libraries... " >&6; }
15755   test "$can_build_shared" = "no" && enable_shared=no
15756
15757   # On AIX, shared libraries and static libraries use the same namespace, and
15758   # are all built from PIC.
15759   case $host_os in
15760   aix3*)
15761     test "$enable_shared" = yes && enable_static=no
15762     if test -n "$RANLIB"; then
15763       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15764       postinstall_cmds='$RANLIB $lib'
15765     fi
15766     ;;
15767
15768   aix[4-9]*)
15769     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15770       test "$enable_shared" = yes && enable_static=no
15771     fi
15772     ;;
15773   esac
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15775 $as_echo "$enable_shared" >&6; }
15776
15777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15778 $as_echo_n "checking whether to build static libraries... " >&6; }
15779   # Make sure either enable_shared or enable_static is yes.
15780   test "$enable_shared" = yes || enable_static=yes
15781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15782 $as_echo "$enable_static" >&6; }
15783
15784
15785
15786
15787 fi
15788 ac_ext=c
15789 ac_cpp='$CPP $CPPFLAGS'
15790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793
15794 CC="$lt_save_CC"
15795
15796       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15797     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15798     (test "X$CXX" != "Xg++"))) ; then
15799   ac_ext=cpp
15800 ac_cpp='$CXXCPP $CPPFLAGS'
15801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15805 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15806 if test -z "$CXXCPP"; then
15807   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15808   $as_echo_n "(cached) " >&6
15809 else
15810       # Double quotes because CXXCPP needs to be expanded
15811     for CXXCPP in "$CXX -E" "/lib/cpp"
15812     do
15813       ac_preproc_ok=false
15814 for ac_cxx_preproc_warn_flag in '' yes
15815 do
15816   # Use a header file that comes with gcc, so configuring glibc
15817   # with a fresh cross-compiler works.
15818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819   # <limits.h> exists even on freestanding compilers.
15820   # On the NeXT, cc -E runs the code through the compiler's parser,
15821   # not just through cpp. "Syntax error" is here to catch this case.
15822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h.  */
15824 #ifdef __STDC__
15825 # include <limits.h>
15826 #else
15827 # include <assert.h>
15828 #endif
15829                      Syntax error
15830 _ACEOF
15831 if ac_fn_cxx_try_cpp "$LINENO"; then :
15832
15833 else
15834   # Broken: fails on valid input.
15835 continue
15836 fi
15837 rm -f conftest.err conftest.$ac_ext
15838
15839   # OK, works on sane cases.  Now check whether nonexistent headers
15840   # can be detected and how.
15841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h.  */
15843 #include <ac_nonexistent.h>
15844 _ACEOF
15845 if ac_fn_cxx_try_cpp "$LINENO"; then :
15846   # Broken: success on invalid input.
15847 continue
15848 else
15849   # Passes both tests.
15850 ac_preproc_ok=:
15851 break
15852 fi
15853 rm -f conftest.err conftest.$ac_ext
15854
15855 done
15856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15857 rm -f conftest.err conftest.$ac_ext
15858 if $ac_preproc_ok; then :
15859   break
15860 fi
15861
15862     done
15863     ac_cv_prog_CXXCPP=$CXXCPP
15864
15865 fi
15866   CXXCPP=$ac_cv_prog_CXXCPP
15867 else
15868   ac_cv_prog_CXXCPP=$CXXCPP
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15871 $as_echo "$CXXCPP" >&6; }
15872 ac_preproc_ok=false
15873 for ac_cxx_preproc_warn_flag in '' yes
15874 do
15875   # Use a header file that comes with gcc, so configuring glibc
15876   # with a fresh cross-compiler works.
15877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878   # <limits.h> exists even on freestanding compilers.
15879   # On the NeXT, cc -E runs the code through the compiler's parser,
15880   # not just through cpp. "Syntax error" is here to catch this case.
15881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h.  */
15883 #ifdef __STDC__
15884 # include <limits.h>
15885 #else
15886 # include <assert.h>
15887 #endif
15888                      Syntax error
15889 _ACEOF
15890 if ac_fn_cxx_try_cpp "$LINENO"; then :
15891
15892 else
15893   # Broken: fails on valid input.
15894 continue
15895 fi
15896 rm -f conftest.err conftest.$ac_ext
15897
15898   # OK, works on sane cases.  Now check whether nonexistent headers
15899   # can be detected and how.
15900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h.  */
15902 #include <ac_nonexistent.h>
15903 _ACEOF
15904 if ac_fn_cxx_try_cpp "$LINENO"; then :
15905   # Broken: success on invalid input.
15906 continue
15907 else
15908   # Passes both tests.
15909 ac_preproc_ok=:
15910 break
15911 fi
15912 rm -f conftest.err conftest.$ac_ext
15913
15914 done
15915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15916 rm -f conftest.err conftest.$ac_ext
15917 if $ac_preproc_ok; then :
15918
15919 else
15920   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15922 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15923 See \`config.log' for more details" "$LINENO" 5; }
15924 fi
15925
15926 ac_ext=c
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15931
15932 else
15933   _lt_caught_CXX_error=yes
15934 fi
15935
15936 ac_ext=cpp
15937 ac_cpp='$CXXCPP $CPPFLAGS'
15938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15941
15942 archive_cmds_need_lc_CXX=no
15943 allow_undefined_flag_CXX=
15944 always_export_symbols_CXX=no
15945 archive_expsym_cmds_CXX=
15946 compiler_needs_object_CXX=no
15947 export_dynamic_flag_spec_CXX=
15948 hardcode_direct_CXX=no
15949 hardcode_direct_absolute_CXX=no
15950 hardcode_libdir_flag_spec_CXX=
15951 hardcode_libdir_flag_spec_ld_CXX=
15952 hardcode_libdir_separator_CXX=
15953 hardcode_minus_L_CXX=no
15954 hardcode_shlibpath_var_CXX=unsupported
15955 hardcode_automatic_CXX=no
15956 inherit_rpath_CXX=no
15957 module_cmds_CXX=
15958 module_expsym_cmds_CXX=
15959 link_all_deplibs_CXX=unknown
15960 old_archive_cmds_CXX=$old_archive_cmds
15961 reload_flag_CXX=$reload_flag
15962 reload_cmds_CXX=$reload_cmds
15963 no_undefined_flag_CXX=
15964 whole_archive_flag_spec_CXX=
15965 enable_shared_with_static_runtimes_CXX=no
15966
15967 # Source file extension for C++ test sources.
15968 ac_ext=cpp
15969
15970 # Object file extension for compiled C++ test sources.
15971 objext=o
15972 objext_CXX=$objext
15973
15974 # No sense in running all these tests if we already determined that
15975 # the CXX compiler isn't working.  Some variables (like enable_shared)
15976 # are currently assumed to apply to all compilers on this platform,
15977 # and will be corrupted by setting them based on a non-working compiler.
15978 if test "$_lt_caught_CXX_error" != yes; then
15979   # Code to be used in simple compile tests
15980   lt_simple_compile_test_code="int some_variable = 0;"
15981
15982   # Code to be used in simple link tests
15983   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15984
15985   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15986
15987
15988
15989
15990
15991
15992 # If no C compiler was specified, use CC.
15993 LTCC=${LTCC-"$CC"}
15994
15995 # If no C compiler flags were specified, use CFLAGS.
15996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15997
15998 # Allow CC to be a program name with arguments.
15999 compiler=$CC
16000
16001
16002   # save warnings/boilerplate of simple test code
16003   ac_outfile=conftest.$ac_objext
16004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16006 _lt_compiler_boilerplate=`cat conftest.err`
16007 $RM conftest*
16008
16009   ac_outfile=conftest.$ac_objext
16010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16012 _lt_linker_boilerplate=`cat conftest.err`
16013 $RM -r conftest*
16014
16015
16016   # Allow CC to be a program name with arguments.
16017   lt_save_CC=$CC
16018   lt_save_LD=$LD
16019   lt_save_GCC=$GCC
16020   GCC=$GXX
16021   lt_save_with_gnu_ld=$with_gnu_ld
16022   lt_save_path_LD=$lt_cv_path_LD
16023   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16024     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16025   else
16026     $as_unset lt_cv_prog_gnu_ld
16027   fi
16028   if test -n "${lt_cv_path_LDCXX+set}"; then
16029     lt_cv_path_LD=$lt_cv_path_LDCXX
16030   else
16031     $as_unset lt_cv_path_LD
16032   fi
16033   test -z "${LDCXX+set}" || LD=$LDCXX
16034   CC=${CXX-"c++"}
16035   compiler=$CC
16036   compiler_CXX=$CC
16037   for cc_temp in $compiler""; do
16038   case $cc_temp in
16039     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16040     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16041     \-*) ;;
16042     *) break;;
16043   esac
16044 done
16045 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16046
16047
16048   if test -n "$compiler"; then
16049     # We don't want -fno-exception when compiling C++ code, so set the
16050     # no_builtin_flag separately
16051     if test "$GXX" = yes; then
16052       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16053     else
16054       lt_prog_compiler_no_builtin_flag_CXX=
16055     fi
16056
16057     if test "$GXX" = yes; then
16058       # Set up default GNU C++ configuration
16059
16060
16061
16062 # Check whether --with-gnu-ld was given.
16063 if test "${with_gnu_ld+set}" = set; then :
16064   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16065 else
16066   with_gnu_ld=no
16067 fi
16068
16069 ac_prog=ld
16070 if test "$GCC" = yes; then
16071   # Check if gcc -print-prog-name=ld gives a path.
16072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16073 $as_echo_n "checking for ld used by $CC... " >&6; }
16074   case $host in
16075   *-*-mingw*)
16076     # gcc leaves a trailing carriage return which upsets mingw
16077     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16078   *)
16079     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16080   esac
16081   case $ac_prog in
16082     # Accept absolute paths.
16083     [\\/]* | ?:[\\/]*)
16084       re_direlt='/[^/][^/]*/\.\./'
16085       # Canonicalize the pathname of ld
16086       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16087       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16088         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16089       done
16090       test -z "$LD" && LD="$ac_prog"
16091       ;;
16092   "")
16093     # If it fails, then pretend we aren't using GCC.
16094     ac_prog=ld
16095     ;;
16096   *)
16097     # If it is relative, then search for the first ld in PATH.
16098     with_gnu_ld=unknown
16099     ;;
16100   esac
16101 elif test "$with_gnu_ld" = yes; then
16102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16103 $as_echo_n "checking for GNU ld... " >&6; }
16104 else
16105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16106 $as_echo_n "checking for non-GNU ld... " >&6; }
16107 fi
16108 if test "${lt_cv_path_LD+set}" = set; then :
16109   $as_echo_n "(cached) " >&6
16110 else
16111   if test -z "$LD"; then
16112   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16113   for ac_dir in $PATH; do
16114     IFS="$lt_save_ifs"
16115     test -z "$ac_dir" && ac_dir=.
16116     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16117       lt_cv_path_LD="$ac_dir/$ac_prog"
16118       # Check to see if the program is GNU ld.  I'd rather use --version,
16119       # but apparently some variants of GNU ld only accept -v.
16120       # Break only if it was the GNU/non-GNU ld that we prefer.
16121       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16122       *GNU* | *'with BFD'*)
16123         test "$with_gnu_ld" != no && break
16124         ;;
16125       *)
16126         test "$with_gnu_ld" != yes && break
16127         ;;
16128       esac
16129     fi
16130   done
16131   IFS="$lt_save_ifs"
16132 else
16133   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16134 fi
16135 fi
16136
16137 LD="$lt_cv_path_LD"
16138 if test -n "$LD"; then
16139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16140 $as_echo "$LD" >&6; }
16141 else
16142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16144 fi
16145 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16148 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16149   $as_echo_n "(cached) " >&6
16150 else
16151   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16152 case `$LD -v 2>&1 </dev/null` in
16153 *GNU* | *'with BFD'*)
16154   lt_cv_prog_gnu_ld=yes
16155   ;;
16156 *)
16157   lt_cv_prog_gnu_ld=no
16158   ;;
16159 esac
16160 fi
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16162 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16163 with_gnu_ld=$lt_cv_prog_gnu_ld
16164
16165
16166
16167
16168
16169
16170
16171       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16172       # archiving commands below assume that GNU ld is being used.
16173       if test "$with_gnu_ld" = yes; then
16174         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175         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'
16176
16177         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16178         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16179
16180         # If archive_cmds runs LD, not CC, wlarc should be empty
16181         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16182         #     investigate it a little bit more. (MM)
16183         wlarc='${wl}'
16184
16185         # ancient GNU ld didn't support --whole-archive et. al.
16186         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16187           $GREP 'no-whole-archive' > /dev/null; then
16188           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16189         else
16190           whole_archive_flag_spec_CXX=
16191         fi
16192       else
16193         with_gnu_ld=no
16194         wlarc=
16195
16196         # A generic and very simple default shared library creation
16197         # command for GNU C++ for the case where it uses the native
16198         # linker, instead of GNU ld.  If possible, this setting should
16199         # overridden to take advantage of the native linker features on
16200         # the platform it is being used on.
16201         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16202       fi
16203
16204       # Commands to make compiler produce verbose output that lists
16205       # what "hidden" libraries, object files and flags are used when
16206       # linking a shared library.
16207       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16208
16209     else
16210       GXX=no
16211       with_gnu_ld=no
16212       wlarc=
16213     fi
16214
16215     # PORTME: fill in a description of your system's C++ link characteristics
16216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16217 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16218     ld_shlibs_CXX=yes
16219     case $host_os in
16220       aix3*)
16221         # FIXME: insert proper C++ library support
16222         ld_shlibs_CXX=no
16223         ;;
16224       aix[4-9]*)
16225         if test "$host_cpu" = ia64; then
16226           # On IA64, the linker does run time linking by default, so we don't
16227           # have to do anything special.
16228           aix_use_runtimelinking=no
16229           exp_sym_flag='-Bexport'
16230           no_entry_flag=""
16231         else
16232           aix_use_runtimelinking=no
16233
16234           # Test if we are trying to use run time linking or normal
16235           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16236           # need to do runtime linking.
16237           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16238             for ld_flag in $LDFLAGS; do
16239               case $ld_flag in
16240               *-brtl*)
16241                 aix_use_runtimelinking=yes
16242                 break
16243                 ;;
16244               esac
16245             done
16246             ;;
16247           esac
16248
16249           exp_sym_flag='-bexport'
16250           no_entry_flag='-bnoentry'
16251         fi
16252
16253         # When large executables or shared objects are built, AIX ld can
16254         # have problems creating the table of contents.  If linking a library
16255         # or program results in "error TOC overflow" add -mminimal-toc to
16256         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16257         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16258
16259         archive_cmds_CXX=''
16260         hardcode_direct_CXX=yes
16261         hardcode_direct_absolute_CXX=yes
16262         hardcode_libdir_separator_CXX=':'
16263         link_all_deplibs_CXX=yes
16264         file_list_spec_CXX='${wl}-f,'
16265
16266         if test "$GXX" = yes; then
16267           case $host_os in aix4.[012]|aix4.[012].*)
16268           # We only want to do this on AIX 4.2 and lower, the check
16269           # below for broken collect2 doesn't work under 4.3+
16270           collect2name=`${CC} -print-prog-name=collect2`
16271           if test -f "$collect2name" &&
16272              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16273           then
16274             # We have reworked collect2
16275             :
16276           else
16277             # We have old collect2
16278             hardcode_direct_CXX=unsupported
16279             # It fails to find uninstalled libraries when the uninstalled
16280             # path is not listed in the libpath.  Setting hardcode_minus_L
16281             # to unsupported forces relinking
16282             hardcode_minus_L_CXX=yes
16283             hardcode_libdir_flag_spec_CXX='-L$libdir'
16284             hardcode_libdir_separator_CXX=
16285           fi
16286           esac
16287           shared_flag='-shared'
16288           if test "$aix_use_runtimelinking" = yes; then
16289             shared_flag="$shared_flag "'${wl}-G'
16290           fi
16291         else
16292           # not using gcc
16293           if test "$host_cpu" = ia64; then
16294           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16295           # chokes on -Wl,-G. The following line is correct:
16296           shared_flag='-G'
16297           else
16298             if test "$aix_use_runtimelinking" = yes; then
16299               shared_flag='${wl}-G'
16300             else
16301               shared_flag='${wl}-bM:SRE'
16302             fi
16303           fi
16304         fi
16305
16306         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16307         # It seems that -bexpall does not export symbols beginning with
16308         # underscore (_), so it is better to generate a list of symbols to
16309         # export.
16310         always_export_symbols_CXX=yes
16311         if test "$aix_use_runtimelinking" = yes; then
16312           # Warning - without using the other runtime loading flags (-brtl),
16313           # -berok will link without error, but may produce a broken library.
16314           allow_undefined_flag_CXX='-berok'
16315           # Determine the default libpath from the value encoded in an empty
16316           # executable.
16317           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h.  */
16319
16320 int
16321 main ()
16322 {
16323
16324   ;
16325   return 0;
16326 }
16327 _ACEOF
16328 if ac_fn_cxx_try_link "$LINENO"; then :
16329
16330 lt_aix_libpath_sed='
16331     /Import File Strings/,/^$/ {
16332         /^0/ {
16333             s/^0  *\(.*\)$/\1/
16334             p
16335         }
16336     }'
16337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338 # Check for a 64-bit object if we didn't find anything.
16339 if test -z "$aix_libpath"; then
16340   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16341 fi
16342 fi
16343 rm -f core conftest.err conftest.$ac_objext \
16344     conftest$ac_exeext conftest.$ac_ext
16345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16346
16347           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16348
16349           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"
16350         else
16351           if test "$host_cpu" = ia64; then
16352             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16353             allow_undefined_flag_CXX="-z nodefs"
16354             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"
16355           else
16356             # Determine the default libpath from the value encoded in an
16357             # empty executable.
16358             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h.  */
16360
16361 int
16362 main ()
16363 {
16364
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 if ac_fn_cxx_try_link "$LINENO"; then :
16370
16371 lt_aix_libpath_sed='
16372     /Import File Strings/,/^$/ {
16373         /^0/ {
16374             s/^0  *\(.*\)$/\1/
16375             p
16376         }
16377     }'
16378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379 # Check for a 64-bit object if we didn't find anything.
16380 if test -z "$aix_libpath"; then
16381   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16382 fi
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext \
16385     conftest$ac_exeext conftest.$ac_ext
16386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16387
16388             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16389             # Warning - without using the other run time loading flags,
16390             # -berok will link without error, but may produce a broken library.
16391             no_undefined_flag_CXX=' ${wl}-bernotok'
16392             allow_undefined_flag_CXX=' ${wl}-berok'
16393             if test "$with_gnu_ld" = yes; then
16394               # We only use this code for GNU lds that support --whole-archive.
16395               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16396             else
16397               # Exported symbols can be pulled into shared objects from archives
16398               whole_archive_flag_spec_CXX='$convenience'
16399             fi
16400             archive_cmds_need_lc_CXX=yes
16401             # This is similar to how AIX traditionally builds its shared
16402             # libraries.
16403             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'
16404           fi
16405         fi
16406         ;;
16407
16408       beos*)
16409         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16410           allow_undefined_flag_CXX=unsupported
16411           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16412           # support --undefined.  This deserves some investigation.  FIXME
16413           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16414         else
16415           ld_shlibs_CXX=no
16416         fi
16417         ;;
16418
16419       chorus*)
16420         case $cc_basename in
16421           *)
16422           # FIXME: insert proper C++ library support
16423           ld_shlibs_CXX=no
16424           ;;
16425         esac
16426         ;;
16427
16428       cygwin* | mingw* | pw32* | cegcc*)
16429         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16430         # as there is no search path for DLLs.
16431         hardcode_libdir_flag_spec_CXX='-L$libdir'
16432         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16433         allow_undefined_flag_CXX=unsupported
16434         always_export_symbols_CXX=no
16435         enable_shared_with_static_runtimes_CXX=yes
16436
16437         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16438           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'
16439           # If the export-symbols file already is a .def file (1st line
16440           # is EXPORTS), use it as is; otherwise, prepend...
16441           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16442             cp $export_symbols $output_objdir/$soname.def;
16443           else
16444             echo EXPORTS > $output_objdir/$soname.def;
16445             cat $export_symbols >> $output_objdir/$soname.def;
16446           fi~
16447           $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'
16448         else
16449           ld_shlibs_CXX=no
16450         fi
16451         ;;
16452       darwin* | rhapsody*)
16453
16454
16455   archive_cmds_need_lc_CXX=no
16456   hardcode_direct_CXX=no
16457   hardcode_automatic_CXX=yes
16458   hardcode_shlibpath_var_CXX=unsupported
16459   if test "$lt_cv_ld_force_load" = "yes"; then
16460     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\"`'
16461   else
16462     whole_archive_flag_spec_CXX=''
16463   fi
16464   link_all_deplibs_CXX=yes
16465   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16466   case $cc_basename in
16467      ifort*) _lt_dar_can_shared=yes ;;
16468      *) _lt_dar_can_shared=$GCC ;;
16469   esac
16470   if test "$_lt_dar_can_shared" = "yes"; then
16471     output_verbose_link_cmd=func_echo_all
16472     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}"
16473     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16474     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}"
16475     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}"
16476        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16477       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}"
16478       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}"
16479     fi
16480
16481   else
16482   ld_shlibs_CXX=no
16483   fi
16484
16485         ;;
16486
16487       dgux*)
16488         case $cc_basename in
16489           ec++*)
16490             # FIXME: insert proper C++ library support
16491             ld_shlibs_CXX=no
16492             ;;
16493           ghcx*)
16494             # Green Hills C++ Compiler
16495             # FIXME: insert proper C++ library support
16496             ld_shlibs_CXX=no
16497             ;;
16498           *)
16499             # FIXME: insert proper C++ library support
16500             ld_shlibs_CXX=no
16501             ;;
16502         esac
16503         ;;
16504
16505       freebsd[12]*)
16506         # C++ shared libraries reported to be fairly broken before
16507         # switch to ELF
16508         ld_shlibs_CXX=no
16509         ;;
16510
16511       freebsd-elf*)
16512         archive_cmds_need_lc_CXX=no
16513         ;;
16514
16515       freebsd* | dragonfly*)
16516         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16517         # conventions
16518         ld_shlibs_CXX=yes
16519         ;;
16520
16521       gnu*)
16522         ;;
16523
16524       haiku*)
16525         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526         link_all_deplibs_CXX=yes
16527         ;;
16528
16529       hpux9*)
16530         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16531         hardcode_libdir_separator_CXX=:
16532         export_dynamic_flag_spec_CXX='${wl}-E'
16533         hardcode_direct_CXX=yes
16534         hardcode_minus_L_CXX=yes # Not in the search PATH,
16535                                              # but as the default
16536                                              # location of the library.
16537
16538         case $cc_basename in
16539           CC*)
16540             # FIXME: insert proper C++ library support
16541             ld_shlibs_CXX=no
16542             ;;
16543           aCC*)
16544             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'
16545             # Commands to make compiler produce verbose output that lists
16546             # what "hidden" libraries, object files and flags are used when
16547             # linking a shared library.
16548             #
16549             # There doesn't appear to be a way to prevent this compiler from
16550             # explicitly linking system object files so we need to strip them
16551             # from the output so that they don't get included in the library
16552             # dependencies.
16553             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"'
16554             ;;
16555           *)
16556             if test "$GXX" = yes; then
16557               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'
16558             else
16559               # FIXME: insert proper C++ library support
16560               ld_shlibs_CXX=no
16561             fi
16562             ;;
16563         esac
16564         ;;
16565
16566       hpux10*|hpux11*)
16567         if test $with_gnu_ld = no; then
16568           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16569           hardcode_libdir_separator_CXX=:
16570
16571           case $host_cpu in
16572             hppa*64*|ia64*)
16573               ;;
16574             *)
16575               export_dynamic_flag_spec_CXX='${wl}-E'
16576               ;;
16577           esac
16578         fi
16579         case $host_cpu in
16580           hppa*64*|ia64*)
16581             hardcode_direct_CXX=no
16582             hardcode_shlibpath_var_CXX=no
16583             ;;
16584           *)
16585             hardcode_direct_CXX=yes
16586             hardcode_direct_absolute_CXX=yes
16587             hardcode_minus_L_CXX=yes # Not in the search PATH,
16588                                                  # but as the default
16589                                                  # location of the library.
16590             ;;
16591         esac
16592
16593         case $cc_basename in
16594           CC*)
16595             # FIXME: insert proper C++ library support
16596             ld_shlibs_CXX=no
16597             ;;
16598           aCC*)
16599             case $host_cpu in
16600               hppa*64*)
16601                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16602                 ;;
16603               ia64*)
16604                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16605                 ;;
16606               *)
16607                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16608                 ;;
16609             esac
16610             # Commands to make compiler produce verbose output that lists
16611             # what "hidden" libraries, object files and flags are used when
16612             # linking a shared library.
16613             #
16614             # There doesn't appear to be a way to prevent this compiler from
16615             # explicitly linking system object files so we need to strip them
16616             # from the output so that they don't get included in the library
16617             # dependencies.
16618             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"'
16619             ;;
16620           *)
16621             if test "$GXX" = yes; then
16622               if test $with_gnu_ld = no; then
16623                 case $host_cpu in
16624                   hppa*64*)
16625                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16626                     ;;
16627                   ia64*)
16628                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16629                     ;;
16630                   *)
16631                     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'
16632                     ;;
16633                 esac
16634               fi
16635             else
16636               # FIXME: insert proper C++ library support
16637               ld_shlibs_CXX=no
16638             fi
16639             ;;
16640         esac
16641         ;;
16642
16643       interix[3-9]*)
16644         hardcode_direct_CXX=no
16645         hardcode_shlibpath_var_CXX=no
16646         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16647         export_dynamic_flag_spec_CXX='${wl}-E'
16648         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16649         # Instead, shared libraries are loaded at an image base (0x10000000 by
16650         # default) and relocated if they conflict, which is a slow very memory
16651         # consuming and fragmenting process.  To avoid this, we pick a random,
16652         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16653         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16654         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'
16655         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'
16656         ;;
16657       irix5* | irix6*)
16658         case $cc_basename in
16659           CC*)
16660             # SGI C++
16661             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'
16662
16663             # Archives containing C++ object files must be created using
16664             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16665             # necessary to make sure instantiated templates are included
16666             # in the archive.
16667             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16668             ;;
16669           *)
16670             if test "$GXX" = yes; then
16671               if test "$with_gnu_ld" = no; then
16672                 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'
16673               else
16674                 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'
16675               fi
16676             fi
16677             link_all_deplibs_CXX=yes
16678             ;;
16679         esac
16680         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16681         hardcode_libdir_separator_CXX=:
16682         inherit_rpath_CXX=yes
16683         ;;
16684
16685       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16686         case $cc_basename in
16687           KCC*)
16688             # Kuck and Associates, Inc. (KAI) C++ Compiler
16689
16690             # KCC will only create a shared library if the output file
16691             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16692             # to its proper name (with version) after linking.
16693             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'
16694             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'
16695             # Commands to make compiler produce verbose output that lists
16696             # what "hidden" libraries, object files and flags are used when
16697             # linking a shared library.
16698             #
16699             # There doesn't appear to be a way to prevent this compiler from
16700             # explicitly linking system object files so we need to strip them
16701             # from the output so that they don't get included in the library
16702             # dependencies.
16703             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"'
16704
16705             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16706             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16707
16708             # Archives containing C++ object files must be created using
16709             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16710             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16711             ;;
16712           icpc* | ecpc* )
16713             # Intel C++
16714             with_gnu_ld=yes
16715             # version 8.0 and above of icpc choke on multiply defined symbols
16716             # if we add $predep_objects and $postdep_objects, however 7.1 and
16717             # earlier do not add the objects themselves.
16718             case `$CC -V 2>&1` in
16719               *"Version 7."*)
16720                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721                 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'
16722                 ;;
16723               *)  # Version 8.0 or newer
16724                 tmp_idyn=
16725                 case $host_cpu in
16726                   ia64*) tmp_idyn=' -i_dynamic';;
16727                 esac
16728                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729                 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'
16730                 ;;
16731             esac
16732             archive_cmds_need_lc_CXX=no
16733             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16734             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16735             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16736             ;;
16737           pgCC* | pgcpp*)
16738             # Portland Group C++ compiler
16739             case `$CC -V` in
16740             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16741               prelink_cmds_CXX='tpldir=Template.dir~
16742                 rm -rf $tpldir~
16743                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16744                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16745               old_archive_cmds_CXX='tpldir=Template.dir~
16746                 rm -rf $tpldir~
16747                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16748                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16749                 $RANLIB $oldlib'
16750               archive_cmds_CXX='tpldir=Template.dir~
16751                 rm -rf $tpldir~
16752                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16753                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16754               archive_expsym_cmds_CXX='tpldir=Template.dir~
16755                 rm -rf $tpldir~
16756                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16757                 $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'
16758               ;;
16759             *) # Version 6 and above use weak symbols
16760               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16761               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'
16762               ;;
16763             esac
16764
16765             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16766             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16767             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'
16768             ;;
16769           cxx*)
16770             # Compaq C++
16771             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772             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'
16773
16774             runpath_var=LD_RUN_PATH
16775             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16776             hardcode_libdir_separator_CXX=:
16777
16778             # Commands to make compiler produce verbose output that lists
16779             # what "hidden" libraries, object files and flags are used when
16780             # linking a shared library.
16781             #
16782             # There doesn't appear to be a way to prevent this compiler from
16783             # explicitly linking system object files so we need to strip them
16784             # from the output so that they don't get included in the library
16785             # dependencies.
16786             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'
16787             ;;
16788           xl* | mpixl* | bgxl*)
16789             # IBM XL 8.0 on PPC, with GNU ld
16790             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16791             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16792             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16793             if test "x$supports_anon_versioning" = xyes; then
16794               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16795                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16796                 echo "local: *; };" >> $output_objdir/$libname.ver~
16797                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16798             fi
16799             ;;
16800           *)
16801             case `$CC -V 2>&1 | sed 5q` in
16802             *Sun\ C*)
16803               # Sun C++ 5.9
16804               no_undefined_flag_CXX=' -zdefs'
16805               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16806               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'
16807               hardcode_libdir_flag_spec_CXX='-R$libdir'
16808               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'
16809               compiler_needs_object_CXX=yes
16810
16811               # Not sure whether something based on
16812               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16813               # would be better.
16814               output_verbose_link_cmd='func_echo_all'
16815
16816               # Archives containing C++ object files must be created using
16817               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16818               # necessary to make sure instantiated templates are included
16819               # in the archive.
16820               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16821               ;;
16822             esac
16823             ;;
16824         esac
16825         ;;
16826
16827       lynxos*)
16828         # FIXME: insert proper C++ library support
16829         ld_shlibs_CXX=no
16830         ;;
16831
16832       m88k*)
16833         # FIXME: insert proper C++ library support
16834         ld_shlibs_CXX=no
16835         ;;
16836
16837       mvs*)
16838         case $cc_basename in
16839           cxx*)
16840             # FIXME: insert proper C++ library support
16841             ld_shlibs_CXX=no
16842             ;;
16843           *)
16844             # FIXME: insert proper C++ library support
16845             ld_shlibs_CXX=no
16846             ;;
16847         esac
16848         ;;
16849
16850       netbsd*)
16851         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16852           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16853           wlarc=
16854           hardcode_libdir_flag_spec_CXX='-R$libdir'
16855           hardcode_direct_CXX=yes
16856           hardcode_shlibpath_var_CXX=no
16857         fi
16858         # Workaround some broken pre-1.5 toolchains
16859         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16860         ;;
16861
16862       *nto* | *qnx*)
16863         ld_shlibs_CXX=yes
16864         ;;
16865
16866       openbsd2*)
16867         # C++ shared libraries are fairly broken
16868         ld_shlibs_CXX=no
16869         ;;
16870
16871       openbsd*)
16872         if test -f /usr/libexec/ld.so; then
16873           hardcode_direct_CXX=yes
16874           hardcode_shlibpath_var_CXX=no
16875           hardcode_direct_absolute_CXX=yes
16876           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16877           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16878           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16879             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16880             export_dynamic_flag_spec_CXX='${wl}-E'
16881             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16882           fi
16883           output_verbose_link_cmd=func_echo_all
16884         else
16885           ld_shlibs_CXX=no
16886         fi
16887         ;;
16888
16889       osf3* | osf4* | osf5*)
16890         case $cc_basename in
16891           KCC*)
16892             # Kuck and Associates, Inc. (KAI) C++ Compiler
16893
16894             # KCC will only create a shared library if the output file
16895             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16896             # to its proper name (with version) after linking.
16897             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'
16898
16899             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16900             hardcode_libdir_separator_CXX=:
16901
16902             # Archives containing C++ object files must be created using
16903             # the KAI C++ compiler.
16904             case $host in
16905               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16906               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16907             esac
16908             ;;
16909           RCC*)
16910             # Rational C++ 2.4.1
16911             # FIXME: insert proper C++ library support
16912             ld_shlibs_CXX=no
16913             ;;
16914           cxx*)
16915             case $host in
16916               osf3*)
16917                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16918                 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'
16919                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16920                 ;;
16921               *)
16922                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16923                 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'
16924                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16925                   echo "-hidden">> $lib.exp~
16926                   $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~
16927                   $RM $lib.exp'
16928                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16929                 ;;
16930             esac
16931
16932             hardcode_libdir_separator_CXX=:
16933
16934             # Commands to make compiler produce verbose output that lists
16935             # what "hidden" libraries, object files and flags are used when
16936             # linking a shared library.
16937             #
16938             # There doesn't appear to be a way to prevent this compiler from
16939             # explicitly linking system object files so we need to strip them
16940             # from the output so that they don't get included in the library
16941             # dependencies.
16942             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"'
16943             ;;
16944           *)
16945             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16946               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16947               case $host in
16948                 osf3*)
16949                   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'
16950                   ;;
16951                 *)
16952                   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'
16953                   ;;
16954               esac
16955
16956               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16957               hardcode_libdir_separator_CXX=:
16958
16959               # Commands to make compiler produce verbose output that lists
16960               # what "hidden" libraries, object files and flags are used when
16961               # linking a shared library.
16962               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16963
16964             else
16965               # FIXME: insert proper C++ library support
16966               ld_shlibs_CXX=no
16967             fi
16968             ;;
16969         esac
16970         ;;
16971
16972       psos*)
16973         # FIXME: insert proper C++ library support
16974         ld_shlibs_CXX=no
16975         ;;
16976
16977       sunos4*)
16978         case $cc_basename in
16979           CC*)
16980             # Sun C++ 4.x
16981             # FIXME: insert proper C++ library support
16982             ld_shlibs_CXX=no
16983             ;;
16984           lcc*)
16985             # Lucid
16986             # FIXME: insert proper C++ library support
16987             ld_shlibs_CXX=no
16988             ;;
16989           *)
16990             # FIXME: insert proper C++ library support
16991             ld_shlibs_CXX=no
16992             ;;
16993         esac
16994         ;;
16995
16996       solaris*)
16997         case $cc_basename in
16998           CC* | sunCC*)
16999             # Sun C++ 4.2, 5.x and Centerline C++
17000             archive_cmds_need_lc_CXX=yes
17001             no_undefined_flag_CXX=' -zdefs'
17002             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17003             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17004               $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'
17005
17006             hardcode_libdir_flag_spec_CXX='-R$libdir'
17007             hardcode_shlibpath_var_CXX=no
17008             case $host_os in
17009               solaris2.[0-5] | solaris2.[0-5].*) ;;
17010               *)
17011                 # The compiler driver will combine and reorder linker options,
17012                 # but understands `-z linker_flag'.
17013                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17014                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17015                 ;;
17016             esac
17017             link_all_deplibs_CXX=yes
17018
17019             output_verbose_link_cmd='func_echo_all'
17020
17021             # Archives containing C++ object files must be created using
17022             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17023             # necessary to make sure instantiated templates are included
17024             # in the archive.
17025             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17026             ;;
17027           gcx*)
17028             # Green Hills C++ Compiler
17029             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17030
17031             # The C++ compiler must be used to create the archive.
17032             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17033             ;;
17034           *)
17035             # GNU C++ compiler with Solaris linker
17036             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17037               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17038               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17039                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17040                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17041                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17042
17043                 # Commands to make compiler produce verbose output that lists
17044                 # what "hidden" libraries, object files and flags are used when
17045                 # linking a shared library.
17046                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17047               else
17048                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17049                 # platform.
17050                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17051                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17052                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17053
17054                 # Commands to make compiler produce verbose output that lists
17055                 # what "hidden" libraries, object files and flags are used when
17056                 # linking a shared library.
17057                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17058               fi
17059
17060               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17061               case $host_os in
17062                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17063                 *)
17064                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17065                   ;;
17066               esac
17067             fi
17068             ;;
17069         esac
17070         ;;
17071
17072     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17073       no_undefined_flag_CXX='${wl}-z,text'
17074       archive_cmds_need_lc_CXX=no
17075       hardcode_shlibpath_var_CXX=no
17076       runpath_var='LD_RUN_PATH'
17077
17078       case $cc_basename in
17079         CC*)
17080           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082           ;;
17083         *)
17084           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086           ;;
17087       esac
17088       ;;
17089
17090       sysv5* | sco3.2v5* | sco5v6*)
17091         # Note: We can NOT use -z defs as we might desire, because we do not
17092         # link with -lc, and that would cause any symbols used from libc to
17093         # always be unresolved, which means just about no library would
17094         # ever link correctly.  If we're not using GNU ld we use -z text
17095         # though, which does catch some bad symbols but isn't as heavy-handed
17096         # as -z defs.
17097         no_undefined_flag_CXX='${wl}-z,text'
17098         allow_undefined_flag_CXX='${wl}-z,nodefs'
17099         archive_cmds_need_lc_CXX=no
17100         hardcode_shlibpath_var_CXX=no
17101         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17102         hardcode_libdir_separator_CXX=':'
17103         link_all_deplibs_CXX=yes
17104         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17105         runpath_var='LD_RUN_PATH'
17106
17107         case $cc_basename in
17108           CC*)
17109             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17112               '"$old_archive_cmds_CXX"
17113             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17114               '"$reload_cmds_CXX"
17115             ;;
17116           *)
17117             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17118             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119             ;;
17120         esac
17121       ;;
17122
17123       tandem*)
17124         case $cc_basename in
17125           NCC*)
17126             # NonStop-UX NCC 3.20
17127             # FIXME: insert proper C++ library support
17128             ld_shlibs_CXX=no
17129             ;;
17130           *)
17131             # FIXME: insert proper C++ library support
17132             ld_shlibs_CXX=no
17133             ;;
17134         esac
17135         ;;
17136
17137       vxworks*)
17138         # FIXME: insert proper C++ library support
17139         ld_shlibs_CXX=no
17140         ;;
17141
17142       *)
17143         # FIXME: insert proper C++ library support
17144         ld_shlibs_CXX=no
17145         ;;
17146     esac
17147
17148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17149 $as_echo "$ld_shlibs_CXX" >&6; }
17150     test "$ld_shlibs_CXX" = no && can_build_shared=no
17151
17152     GCC_CXX="$GXX"
17153     LD_CXX="$LD"
17154
17155     ## CAVEAT EMPTOR:
17156     ## There is no encapsulation within the following macros, do not change
17157     ## the running order or otherwise move them around unless you know exactly
17158     ## what you are doing...
17159     # Dependencies to place before and after the object being linked:
17160 predep_objects_CXX=
17161 postdep_objects_CXX=
17162 predeps_CXX=
17163 postdeps_CXX=
17164 compiler_lib_search_path_CXX=
17165
17166 cat > conftest.$ac_ext <<_LT_EOF
17167 class Foo
17168 {
17169 public:
17170   Foo (void) { a = 0; }
17171 private:
17172   int a;
17173 };
17174 _LT_EOF
17175
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17177   (eval $ac_compile) 2>&5
17178   ac_status=$?
17179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180   test $ac_status = 0; }; then
17181   # Parse the compiler output and extract the necessary
17182   # objects, libraries and library flags.
17183
17184   # Sentinel used to keep track of whether or not we are before
17185   # the conftest object file.
17186   pre_test_object_deps_done=no
17187
17188   for p in `eval "$output_verbose_link_cmd"`; do
17189     case $p in
17190
17191     -L* | -R* | -l*)
17192        # Some compilers place space between "-{L,R}" and the path.
17193        # Remove the space.
17194        if test $p = "-L" ||
17195           test $p = "-R"; then
17196          prev=$p
17197          continue
17198        else
17199          prev=
17200        fi
17201
17202        if test "$pre_test_object_deps_done" = no; then
17203          case $p in
17204          -L* | -R*)
17205            # Internal compiler library paths should come after those
17206            # provided the user.  The postdeps already come after the
17207            # user supplied libs so there is no need to process them.
17208            if test -z "$compiler_lib_search_path_CXX"; then
17209              compiler_lib_search_path_CXX="${prev}${p}"
17210            else
17211              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17212            fi
17213            ;;
17214          # The "-l" case would never come before the object being
17215          # linked, so don't bother handling this case.
17216          esac
17217        else
17218          if test -z "$postdeps_CXX"; then
17219            postdeps_CXX="${prev}${p}"
17220          else
17221            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17222          fi
17223        fi
17224        ;;
17225
17226     *.$objext)
17227        # This assumes that the test object file only shows up
17228        # once in the compiler output.
17229        if test "$p" = "conftest.$objext"; then
17230          pre_test_object_deps_done=yes
17231          continue
17232        fi
17233
17234        if test "$pre_test_object_deps_done" = no; then
17235          if test -z "$predep_objects_CXX"; then
17236            predep_objects_CXX="$p"
17237          else
17238            predep_objects_CXX="$predep_objects_CXX $p"
17239          fi
17240        else
17241          if test -z "$postdep_objects_CXX"; then
17242            postdep_objects_CXX="$p"
17243          else
17244            postdep_objects_CXX="$postdep_objects_CXX $p"
17245          fi
17246        fi
17247        ;;
17248
17249     *) ;; # Ignore the rest.
17250
17251     esac
17252   done
17253
17254   # Clean up.
17255   rm -f a.out a.exe
17256 else
17257   echo "libtool.m4: error: problem compiling CXX test program"
17258 fi
17259
17260 $RM -f confest.$objext
17261
17262 # PORTME: override above test on systems where it is broken
17263 case $host_os in
17264 interix[3-9]*)
17265   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17266   # hack all around it, let's just trust "g++" to DTRT.
17267   predep_objects_CXX=
17268   postdep_objects_CXX=
17269   postdeps_CXX=
17270   ;;
17271
17272 linux*)
17273   case `$CC -V 2>&1 | sed 5q` in
17274   *Sun\ C*)
17275     # Sun C++ 5.9
17276
17277     # The more standards-conforming stlport4 library is
17278     # incompatible with the Cstd library. Avoid specifying
17279     # it if it's in CXXFLAGS. Ignore libCrun as
17280     # -library=stlport4 depends on it.
17281     case " $CXX $CXXFLAGS " in
17282     *" -library=stlport4 "*)
17283       solaris_use_stlport4=yes
17284       ;;
17285     esac
17286
17287     if test "$solaris_use_stlport4" != yes; then
17288       postdeps_CXX='-library=Cstd -library=Crun'
17289     fi
17290     ;;
17291   esac
17292   ;;
17293
17294 solaris*)
17295   case $cc_basename in
17296   CC* | sunCC*)
17297     # The more standards-conforming stlport4 library is
17298     # incompatible with the Cstd library. Avoid specifying
17299     # it if it's in CXXFLAGS. Ignore libCrun as
17300     # -library=stlport4 depends on it.
17301     case " $CXX $CXXFLAGS " in
17302     *" -library=stlport4 "*)
17303       solaris_use_stlport4=yes
17304       ;;
17305     esac
17306
17307     # Adding this requires a known-good setup of shared libraries for
17308     # Sun compiler versions before 5.6, else PIC objects from an old
17309     # archive will be linked into the output, leading to subtle bugs.
17310     if test "$solaris_use_stlport4" != yes; then
17311       postdeps_CXX='-library=Cstd -library=Crun'
17312     fi
17313     ;;
17314   esac
17315   ;;
17316 esac
17317
17318
17319 case " $postdeps_CXX " in
17320 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17321 esac
17322  compiler_lib_search_dirs_CXX=
17323 if test -n "${compiler_lib_search_path_CXX}"; then
17324  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17325 fi
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
17353
17354
17355
17356
17357     lt_prog_compiler_wl_CXX=
17358 lt_prog_compiler_pic_CXX=
17359 lt_prog_compiler_static_CXX=
17360
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17363
17364   # C++ specific cases for pic, static, wl, etc.
17365   if test "$GXX" = yes; then
17366     lt_prog_compiler_wl_CXX='-Wl,'
17367     lt_prog_compiler_static_CXX='-static'
17368
17369     case $host_os in
17370     aix*)
17371       # All AIX code is PIC.
17372       if test "$host_cpu" = ia64; then
17373         # AIX 5 now supports IA64 processor
17374         lt_prog_compiler_static_CXX='-Bstatic'
17375       fi
17376       ;;
17377
17378     amigaos*)
17379       case $host_cpu in
17380       powerpc)
17381             # see comment about AmigaOS4 .so support
17382             lt_prog_compiler_pic_CXX='-fPIC'
17383         ;;
17384       m68k)
17385             # FIXME: we need at least 68020 code to build shared libraries, but
17386             # adding the `-m68020' flag to GCC prevents building anything better,
17387             # like `-m68040'.
17388             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17389         ;;
17390       esac
17391       ;;
17392
17393     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17394       # PIC is the default for these OSes.
17395       ;;
17396     mingw* | cygwin* | os2* | pw32* | cegcc*)
17397       # This hack is so that the source file can tell whether it is being
17398       # built for inclusion in a dll (and should export symbols for example).
17399       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17400       # (--disable-auto-import) libraries
17401       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17402       ;;
17403     darwin* | rhapsody*)
17404       # PIC is the default on this platform
17405       # Common symbols not allowed in MH_DYLIB files
17406       lt_prog_compiler_pic_CXX='-fno-common'
17407       ;;
17408     *djgpp*)
17409       # DJGPP does not support shared libraries at all
17410       lt_prog_compiler_pic_CXX=
17411       ;;
17412     haiku*)
17413       # PIC is the default for Haiku.
17414       # The "-static" flag exists, but is broken.
17415       lt_prog_compiler_static_CXX=
17416       ;;
17417     interix[3-9]*)
17418       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17419       # Instead, we relocate shared libraries at runtime.
17420       ;;
17421     sysv4*MP*)
17422       if test -d /usr/nec; then
17423         lt_prog_compiler_pic_CXX=-Kconform_pic
17424       fi
17425       ;;
17426     hpux*)
17427       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17428       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17429       # sets the default TLS model and affects inlining.
17430       case $host_cpu in
17431       hppa*64*)
17432         ;;
17433       *)
17434         lt_prog_compiler_pic_CXX='-fPIC'
17435         ;;
17436       esac
17437       ;;
17438     *qnx* | *nto*)
17439       # QNX uses GNU C++, but need to define -shared option too, otherwise
17440       # it will coredump.
17441       lt_prog_compiler_pic_CXX='-fPIC -shared'
17442       ;;
17443     *)
17444       lt_prog_compiler_pic_CXX='-fPIC'
17445       ;;
17446     esac
17447   else
17448     case $host_os in
17449       aix[4-9]*)
17450         # All AIX code is PIC.
17451         if test "$host_cpu" = ia64; then
17452           # AIX 5 now supports IA64 processor
17453           lt_prog_compiler_static_CXX='-Bstatic'
17454         else
17455           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17456         fi
17457         ;;
17458       chorus*)
17459         case $cc_basename in
17460         cxch68*)
17461           # Green Hills C++ Compiler
17462           # _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"
17463           ;;
17464         esac
17465         ;;
17466       dgux*)
17467         case $cc_basename in
17468           ec++*)
17469             lt_prog_compiler_pic_CXX='-KPIC'
17470             ;;
17471           ghcx*)
17472             # Green Hills C++ Compiler
17473             lt_prog_compiler_pic_CXX='-pic'
17474             ;;
17475           *)
17476             ;;
17477         esac
17478         ;;
17479       freebsd* | dragonfly*)
17480         # FreeBSD uses GNU C++
17481         ;;
17482       hpux9* | hpux10* | hpux11*)
17483         case $cc_basename in
17484           CC*)
17485             lt_prog_compiler_wl_CXX='-Wl,'
17486             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17487             if test "$host_cpu" != ia64; then
17488               lt_prog_compiler_pic_CXX='+Z'
17489             fi
17490             ;;
17491           aCC*)
17492             lt_prog_compiler_wl_CXX='-Wl,'
17493             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17494             case $host_cpu in
17495             hppa*64*|ia64*)
17496               # +Z the default
17497               ;;
17498             *)
17499               lt_prog_compiler_pic_CXX='+Z'
17500               ;;
17501             esac
17502             ;;
17503           *)
17504             ;;
17505         esac
17506         ;;
17507       interix*)
17508         # This is c89, which is MS Visual C++ (no shared libs)
17509         # Anyone wants to do a port?
17510         ;;
17511       irix5* | irix6* | nonstopux*)
17512         case $cc_basename in
17513           CC*)
17514             lt_prog_compiler_wl_CXX='-Wl,'
17515             lt_prog_compiler_static_CXX='-non_shared'
17516             # CC pic flag -KPIC is the default.
17517             ;;
17518           *)
17519             ;;
17520         esac
17521         ;;
17522       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17523         case $cc_basename in
17524           KCC*)
17525             # KAI C++ Compiler
17526             lt_prog_compiler_wl_CXX='--backend -Wl,'
17527             lt_prog_compiler_pic_CXX='-fPIC'
17528             ;;
17529           ecpc* )
17530             # old Intel C++ for x86_64 which still supported -KPIC.
17531             lt_prog_compiler_wl_CXX='-Wl,'
17532             lt_prog_compiler_pic_CXX='-KPIC'
17533             lt_prog_compiler_static_CXX='-static'
17534             ;;
17535           icpc* )
17536             # Intel C++, used to be incompatible with GCC.
17537             # ICC 10 doesn't accept -KPIC any more.
17538             lt_prog_compiler_wl_CXX='-Wl,'
17539             lt_prog_compiler_pic_CXX='-fPIC'
17540             lt_prog_compiler_static_CXX='-static'
17541             ;;
17542           pgCC* | pgcpp*)
17543             # Portland Group C++ compiler
17544             lt_prog_compiler_wl_CXX='-Wl,'
17545             lt_prog_compiler_pic_CXX='-fpic'
17546             lt_prog_compiler_static_CXX='-Bstatic'
17547             ;;
17548           cxx*)
17549             # Compaq C++
17550             # Make sure the PIC flag is empty.  It appears that all Alpha
17551             # Linux and Compaq Tru64 Unix objects are PIC.
17552             lt_prog_compiler_pic_CXX=
17553             lt_prog_compiler_static_CXX='-non_shared'
17554             ;;
17555           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17556             # IBM XL 8.0, 9.0 on PPC and BlueGene
17557             lt_prog_compiler_wl_CXX='-Wl,'
17558             lt_prog_compiler_pic_CXX='-qpic'
17559             lt_prog_compiler_static_CXX='-qstaticlink'
17560             ;;
17561           *)
17562             case `$CC -V 2>&1 | sed 5q` in
17563             *Sun\ C*)
17564               # Sun C++ 5.9
17565               lt_prog_compiler_pic_CXX='-KPIC'
17566               lt_prog_compiler_static_CXX='-Bstatic'
17567               lt_prog_compiler_wl_CXX='-Qoption ld '
17568               ;;
17569             esac
17570             ;;
17571         esac
17572         ;;
17573       lynxos*)
17574         ;;
17575       m88k*)
17576         ;;
17577       mvs*)
17578         case $cc_basename in
17579           cxx*)
17580             lt_prog_compiler_pic_CXX='-W c,exportall'
17581             ;;
17582           *)
17583             ;;
17584         esac
17585         ;;
17586       netbsd*)
17587         ;;
17588       *qnx* | *nto*)
17589         # QNX uses GNU C++, but need to define -shared option too, otherwise
17590         # it will coredump.
17591         lt_prog_compiler_pic_CXX='-fPIC -shared'
17592         ;;
17593       osf3* | osf4* | osf5*)
17594         case $cc_basename in
17595           KCC*)
17596             lt_prog_compiler_wl_CXX='--backend -Wl,'
17597             ;;
17598           RCC*)
17599             # Rational C++ 2.4.1
17600             lt_prog_compiler_pic_CXX='-pic'
17601             ;;
17602           cxx*)
17603             # Digital/Compaq C++
17604             lt_prog_compiler_wl_CXX='-Wl,'
17605             # Make sure the PIC flag is empty.  It appears that all Alpha
17606             # Linux and Compaq Tru64 Unix objects are PIC.
17607             lt_prog_compiler_pic_CXX=
17608             lt_prog_compiler_static_CXX='-non_shared'
17609             ;;
17610           *)
17611             ;;
17612         esac
17613         ;;
17614       psos*)
17615         ;;
17616       solaris*)
17617         case $cc_basename in
17618           CC* | sunCC*)
17619             # Sun C++ 4.2, 5.x and Centerline C++
17620             lt_prog_compiler_pic_CXX='-KPIC'
17621             lt_prog_compiler_static_CXX='-Bstatic'
17622             lt_prog_compiler_wl_CXX='-Qoption ld '
17623             ;;
17624           gcx*)
17625             # Green Hills C++ Compiler
17626             lt_prog_compiler_pic_CXX='-PIC'
17627             ;;
17628           *)
17629             ;;
17630         esac
17631         ;;
17632       sunos4*)
17633         case $cc_basename in
17634           CC*)
17635             # Sun C++ 4.x
17636             lt_prog_compiler_pic_CXX='-pic'
17637             lt_prog_compiler_static_CXX='-Bstatic'
17638             ;;
17639           lcc*)
17640             # Lucid
17641             lt_prog_compiler_pic_CXX='-pic'
17642             ;;
17643           *)
17644             ;;
17645         esac
17646         ;;
17647       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17648         case $cc_basename in
17649           CC*)
17650             lt_prog_compiler_wl_CXX='-Wl,'
17651             lt_prog_compiler_pic_CXX='-KPIC'
17652             lt_prog_compiler_static_CXX='-Bstatic'
17653             ;;
17654         esac
17655         ;;
17656       tandem*)
17657         case $cc_basename in
17658           NCC*)
17659             # NonStop-UX NCC 3.20
17660             lt_prog_compiler_pic_CXX='-KPIC'
17661             ;;
17662           *)
17663             ;;
17664         esac
17665         ;;
17666       vxworks*)
17667         ;;
17668       *)
17669         lt_prog_compiler_can_build_shared_CXX=no
17670         ;;
17671     esac
17672   fi
17673
17674 case $host_os in
17675   # For platforms which do not support PIC, -DPIC is meaningless:
17676   *djgpp*)
17677     lt_prog_compiler_pic_CXX=
17678     ;;
17679   *)
17680     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17681     ;;
17682 esac
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17684 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17685
17686
17687
17688 #
17689 # Check to make sure the PIC flag actually works.
17690 #
17691 if test -n "$lt_prog_compiler_pic_CXX"; then
17692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17693 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17694 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17695   $as_echo_n "(cached) " >&6
17696 else
17697   lt_cv_prog_compiler_pic_works_CXX=no
17698    ac_outfile=conftest.$ac_objext
17699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17700    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17701    # Insert the option either (1) after the last *FLAGS variable, or
17702    # (2) before a word containing "conftest.", or (3) at the end.
17703    # Note that $ac_compile itself does not contain backslashes and begins
17704    # with a dollar sign (not a hyphen), so the echo should work correctly.
17705    # The option is referenced via a variable to avoid confusing sed.
17706    lt_compile=`echo "$ac_compile" | $SED \
17707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17709    -e 's:$: $lt_compiler_flag:'`
17710    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17711    (eval "$lt_compile" 2>conftest.err)
17712    ac_status=$?
17713    cat conftest.err >&5
17714    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715    if (exit $ac_status) && test -s "$ac_outfile"; then
17716      # The compiler can only warn and ignore the option if not recognized
17717      # So say no if there are warnings other than the usual output.
17718      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17721        lt_cv_prog_compiler_pic_works_CXX=yes
17722      fi
17723    fi
17724    $RM conftest*
17725
17726 fi
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17728 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17729
17730 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17731     case $lt_prog_compiler_pic_CXX in
17732      "" | " "*) ;;
17733      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17734      esac
17735 else
17736     lt_prog_compiler_pic_CXX=
17737      lt_prog_compiler_can_build_shared_CXX=no
17738 fi
17739
17740 fi
17741
17742
17743
17744 #
17745 # Check to make sure the static flag actually works.
17746 #
17747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17750 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17751   $as_echo_n "(cached) " >&6
17752 else
17753   lt_cv_prog_compiler_static_works_CXX=no
17754    save_LDFLAGS="$LDFLAGS"
17755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17758      # The linker can only warn and ignore the option if not recognized
17759      # So say no if there are warnings
17760      if test -s conftest.err; then
17761        # Append any errors to the config.log.
17762        cat conftest.err 1>&5
17763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17765        if diff conftest.exp conftest.er2 >/dev/null; then
17766          lt_cv_prog_compiler_static_works_CXX=yes
17767        fi
17768      else
17769        lt_cv_prog_compiler_static_works_CXX=yes
17770      fi
17771    fi
17772    $RM -r conftest*
17773    LDFLAGS="$save_LDFLAGS"
17774
17775 fi
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17777 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17778
17779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17780     :
17781 else
17782     lt_prog_compiler_static_CXX=
17783 fi
17784
17785
17786
17787
17788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17790 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17791   $as_echo_n "(cached) " >&6
17792 else
17793   lt_cv_prog_compiler_c_o_CXX=no
17794    $RM -r conftest 2>/dev/null
17795    mkdir conftest
17796    cd conftest
17797    mkdir out
17798    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17799
17800    lt_compiler_flag="-o out/conftest2.$ac_objext"
17801    # Insert the option either (1) after the last *FLAGS variable, or
17802    # (2) before a word containing "conftest.", or (3) at the end.
17803    # Note that $ac_compile itself does not contain backslashes and begins
17804    # with a dollar sign (not a hyphen), so the echo should work correctly.
17805    lt_compile=`echo "$ac_compile" | $SED \
17806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808    -e 's:$: $lt_compiler_flag:'`
17809    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17810    (eval "$lt_compile" 2>out/conftest.err)
17811    ac_status=$?
17812    cat out/conftest.err >&5
17813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17815    then
17816      # The compiler can only warn and ignore the option if not recognized
17817      # So say no if there are warnings
17818      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17819      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17820      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17821        lt_cv_prog_compiler_c_o_CXX=yes
17822      fi
17823    fi
17824    chmod u+w . 2>&5
17825    $RM conftest*
17826    # SGI C++ compiler will create directory out/ii_files/ for
17827    # template instantiation
17828    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17829    $RM out/* && rmdir out
17830    cd ..
17831    $RM -r conftest
17832    $RM conftest*
17833
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17837
17838
17839
17840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17842 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17843   $as_echo_n "(cached) " >&6
17844 else
17845   lt_cv_prog_compiler_c_o_CXX=no
17846    $RM -r conftest 2>/dev/null
17847    mkdir conftest
17848    cd conftest
17849    mkdir out
17850    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17851
17852    lt_compiler_flag="-o out/conftest2.$ac_objext"
17853    # Insert the option either (1) after the last *FLAGS variable, or
17854    # (2) before a word containing "conftest.", or (3) at the end.
17855    # Note that $ac_compile itself does not contain backslashes and begins
17856    # with a dollar sign (not a hyphen), so the echo should work correctly.
17857    lt_compile=`echo "$ac_compile" | $SED \
17858    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17859    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17860    -e 's:$: $lt_compiler_flag:'`
17861    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17862    (eval "$lt_compile" 2>out/conftest.err)
17863    ac_status=$?
17864    cat out/conftest.err >&5
17865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17867    then
17868      # The compiler can only warn and ignore the option if not recognized
17869      # So say no if there are warnings
17870      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17871      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17872      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17873        lt_cv_prog_compiler_c_o_CXX=yes
17874      fi
17875    fi
17876    chmod u+w . 2>&5
17877    $RM conftest*
17878    # SGI C++ compiler will create directory out/ii_files/ for
17879    # template instantiation
17880    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17881    $RM out/* && rmdir out
17882    cd ..
17883    $RM -r conftest
17884    $RM conftest*
17885
17886 fi
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17889
17890
17891
17892
17893 hard_links="nottested"
17894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17895   # do not overwrite the value of need_locks provided by the user
17896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17897 $as_echo_n "checking if we can lock with hard links... " >&6; }
17898   hard_links=yes
17899   $RM conftest*
17900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17901   touch conftest.a
17902   ln conftest.a conftest.b 2>&5 || hard_links=no
17903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17905 $as_echo "$hard_links" >&6; }
17906   if test "$hard_links" = no; then
17907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17909     need_locks=warn
17910   fi
17911 else
17912   need_locks=no
17913 fi
17914
17915
17916
17917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17919
17920   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17921   case $host_os in
17922   aix[4-9]*)
17923     # If we're using GNU nm, then we don't want the "-C" option.
17924     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17925     # Also, AIX nm treats weak defined symbols like other global defined
17926     # symbols, whereas GNU nm marks them as "W".
17927     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17928       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'
17929     else
17930       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'
17931     fi
17932     ;;
17933   pw32*)
17934     export_symbols_cmds_CXX="$ltdll_cmds"
17935   ;;
17936   cygwin* | mingw* | cegcc*)
17937     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'
17938   ;;
17939   *)
17940     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17941   ;;
17942   esac
17943   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17944
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17946 $as_echo "$ld_shlibs_CXX" >&6; }
17947 test "$ld_shlibs_CXX" = no && can_build_shared=no
17948
17949 with_gnu_ld_CXX=$with_gnu_ld
17950
17951
17952
17953
17954
17955
17956 #
17957 # Do we need to explicitly link libc?
17958 #
17959 case "x$archive_cmds_need_lc_CXX" in
17960 x|xyes)
17961   # Assume -lc should be added
17962   archive_cmds_need_lc_CXX=yes
17963
17964   if test "$enable_shared" = yes && test "$GCC" = yes; then
17965     case $archive_cmds_CXX in
17966     *'~'*)
17967       # FIXME: we may have to deal with multi-command sequences.
17968       ;;
17969     '$CC '*)
17970       # Test whether the compiler implicitly links with -lc since on some
17971       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17972       # to ld, don't add -lc before -lgcc.
17973       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17974 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17975 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17976   $as_echo_n "(cached) " >&6
17977 else
17978   $RM conftest*
17979         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17980
17981         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17982   (eval $ac_compile) 2>&5
17983   ac_status=$?
17984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985   test $ac_status = 0; } 2>conftest.err; then
17986           soname=conftest
17987           lib=conftest
17988           libobjs=conftest.$ac_objext
17989           deplibs=
17990           wl=$lt_prog_compiler_wl_CXX
17991           pic_flag=$lt_prog_compiler_pic_CXX
17992           compiler_flags=-v
17993           linker_flags=-v
17994           verstring=
17995           output_objdir=.
17996           libname=conftest
17997           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17998           allow_undefined_flag_CXX=
17999           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18000   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18001   ac_status=$?
18002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003   test $ac_status = 0; }
18004           then
18005             lt_cv_archive_cmds_need_lc_CXX=no
18006           else
18007             lt_cv_archive_cmds_need_lc_CXX=yes
18008           fi
18009           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18010         else
18011           cat conftest.err 1>&5
18012         fi
18013         $RM conftest*
18014
18015 fi
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18017 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18018       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18019       ;;
18020     esac
18021   fi
18022   ;;
18023 esac
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
18084
18085
18086
18087
18088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18089 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18090
18091 library_names_spec=
18092 libname_spec='lib$name'
18093 soname_spec=
18094 shrext_cmds=".so"
18095 postinstall_cmds=
18096 postuninstall_cmds=
18097 finish_cmds=
18098 finish_eval=
18099 shlibpath_var=
18100 shlibpath_overrides_runpath=unknown
18101 version_type=none
18102 dynamic_linker="$host_os ld.so"
18103 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18104 need_lib_prefix=unknown
18105 hardcode_into_libs=no
18106
18107 # when you set need_version to no, make sure it does not cause -set_version
18108 # flags to be left without arguments
18109 need_version=unknown
18110
18111 case $host_os in
18112 aix3*)
18113   version_type=linux
18114   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18115   shlibpath_var=LIBPATH
18116
18117   # AIX 3 has no versioning support, so we append a major version to the name.
18118   soname_spec='${libname}${release}${shared_ext}$major'
18119   ;;
18120
18121 aix[4-9]*)
18122   version_type=linux
18123   need_lib_prefix=no
18124   need_version=no
18125   hardcode_into_libs=yes
18126   if test "$host_cpu" = ia64; then
18127     # AIX 5 supports IA64
18128     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18129     shlibpath_var=LD_LIBRARY_PATH
18130   else
18131     # With GCC up to 2.95.x, collect2 would create an import file
18132     # for dependence libraries.  The import file would start with
18133     # the line `#! .'.  This would cause the generated library to
18134     # depend on `.', always an invalid library.  This was fixed in
18135     # development snapshots of GCC prior to 3.0.
18136     case $host_os in
18137       aix4 | aix4.[01] | aix4.[01].*)
18138       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18139            echo ' yes '
18140            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18141         :
18142       else
18143         can_build_shared=no
18144       fi
18145       ;;
18146     esac
18147     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18148     # soname into executable. Probably we can add versioning support to
18149     # collect2, so additional links can be useful in future.
18150     if test "$aix_use_runtimelinking" = yes; then
18151       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18152       # instead of lib<name>.a to let people know that these are not
18153       # typical AIX shared libraries.
18154       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155     else
18156       # We preserve .a as extension for shared libraries through AIX4.2
18157       # and later when we are not doing run time linking.
18158       library_names_spec='${libname}${release}.a $libname.a'
18159       soname_spec='${libname}${release}${shared_ext}$major'
18160     fi
18161     shlibpath_var=LIBPATH
18162   fi
18163   ;;
18164
18165 amigaos*)
18166   case $host_cpu in
18167   powerpc)
18168     # Since July 2007 AmigaOS4 officially supports .so libraries.
18169     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171     ;;
18172   m68k)
18173     library_names_spec='$libname.ixlibrary $libname.a'
18174     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18175     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'
18176     ;;
18177   esac
18178   ;;
18179
18180 beos*)
18181   library_names_spec='${libname}${shared_ext}'
18182   dynamic_linker="$host_os ld.so"
18183   shlibpath_var=LIBRARY_PATH
18184   ;;
18185
18186 bsdi[45]*)
18187   version_type=linux
18188   need_version=no
18189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190   soname_spec='${libname}${release}${shared_ext}$major'
18191   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18194   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18195   # the default ld.so.conf also contains /usr/contrib/lib and
18196   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18197   # libtool to hard-code these into programs
18198   ;;
18199
18200 cygwin* | mingw* | pw32* | cegcc*)
18201   version_type=windows
18202   shrext_cmds=".dll"
18203   need_version=no
18204   need_lib_prefix=no
18205
18206   case $GCC,$host_os in
18207   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18208     library_names_spec='$libname.dll.a'
18209     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18210     postinstall_cmds='base_file=`basename \${file}`~
18211       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18212       dldir=$destdir/`dirname \$dlpath`~
18213       test -d \$dldir || mkdir -p \$dldir~
18214       $install_prog $dir/$dlname \$dldir/$dlname~
18215       chmod a+x \$dldir/$dlname~
18216       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18217         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18218       fi'
18219     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18220       dlpath=$dir/\$dldll~
18221        $RM \$dlpath'
18222     shlibpath_overrides_runpath=yes
18223
18224     case $host_os in
18225     cygwin*)
18226       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18227       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18228
18229       ;;
18230     mingw* | cegcc*)
18231       # MinGW DLLs use traditional 'lib' prefix
18232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18233       ;;
18234     pw32*)
18235       # pw32 DLLs use 'pw' prefix rather than 'lib'
18236       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18237       ;;
18238     esac
18239     ;;
18240
18241   *)
18242     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18243     ;;
18244   esac
18245   dynamic_linker='Win32 ld.exe'
18246   # FIXME: first we should search . and the directory the executable is in
18247   shlibpath_var=PATH
18248   ;;
18249
18250 darwin* | rhapsody*)
18251   dynamic_linker="$host_os dyld"
18252   version_type=darwin
18253   need_lib_prefix=no
18254   need_version=no
18255   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18256   soname_spec='${libname}${release}${major}$shared_ext'
18257   shlibpath_overrides_runpath=yes
18258   shlibpath_var=DYLD_LIBRARY_PATH
18259   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18260
18261   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18262   ;;
18263
18264 dgux*)
18265   version_type=linux
18266   need_lib_prefix=no
18267   need_version=no
18268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18269   soname_spec='${libname}${release}${shared_ext}$major'
18270   shlibpath_var=LD_LIBRARY_PATH
18271   ;;
18272
18273 freebsd1*)
18274   dynamic_linker=no
18275   ;;
18276
18277 freebsd* | dragonfly*)
18278   # DragonFly does not have aout.  When/if they implement a new
18279   # versioning mechanism, adjust this.
18280   if test -x /usr/bin/objformat; then
18281     objformat=`/usr/bin/objformat`
18282   else
18283     case $host_os in
18284     freebsd[123]*) objformat=aout ;;
18285     *) objformat=elf ;;
18286     esac
18287   fi
18288   version_type=freebsd-$objformat
18289   case $version_type in
18290     freebsd-elf*)
18291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18292       need_version=no
18293       need_lib_prefix=no
18294       ;;
18295     freebsd-*)
18296       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18297       need_version=yes
18298       ;;
18299   esac
18300   shlibpath_var=LD_LIBRARY_PATH
18301   case $host_os in
18302   freebsd2*)
18303     shlibpath_overrides_runpath=yes
18304     ;;
18305   freebsd3.[01]* | freebsdelf3.[01]*)
18306     shlibpath_overrides_runpath=yes
18307     hardcode_into_libs=yes
18308     ;;
18309   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18310   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18311     shlibpath_overrides_runpath=no
18312     hardcode_into_libs=yes
18313     ;;
18314   *) # from 4.6 on, and DragonFly
18315     shlibpath_overrides_runpath=yes
18316     hardcode_into_libs=yes
18317     ;;
18318   esac
18319   ;;
18320
18321 gnu*)
18322   version_type=linux
18323   need_lib_prefix=no
18324   need_version=no
18325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18326   soname_spec='${libname}${release}${shared_ext}$major'
18327   shlibpath_var=LD_LIBRARY_PATH
18328   hardcode_into_libs=yes
18329   ;;
18330
18331 haiku*)
18332   version_type=linux
18333   need_lib_prefix=no
18334   need_version=no
18335   dynamic_linker="$host_os runtime_loader"
18336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18337   soname_spec='${libname}${release}${shared_ext}$major'
18338   shlibpath_var=LIBRARY_PATH
18339   shlibpath_overrides_runpath=yes
18340   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18341   hardcode_into_libs=yes
18342   ;;
18343
18344 hpux9* | hpux10* | hpux11*)
18345   # Give a soname corresponding to the major version so that dld.sl refuses to
18346   # link against other versions.
18347   version_type=sunos
18348   need_lib_prefix=no
18349   need_version=no
18350   case $host_cpu in
18351   ia64*)
18352     shrext_cmds='.so'
18353     hardcode_into_libs=yes
18354     dynamic_linker="$host_os dld.so"
18355     shlibpath_var=LD_LIBRARY_PATH
18356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358     soname_spec='${libname}${release}${shared_ext}$major'
18359     if test "X$HPUX_IA64_MODE" = X32; then
18360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18361     else
18362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18363     fi
18364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18365     ;;
18366   hppa*64*)
18367     shrext_cmds='.sl'
18368     hardcode_into_libs=yes
18369     dynamic_linker="$host_os dld.sl"
18370     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373     soname_spec='${libname}${release}${shared_ext}$major'
18374     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18376     ;;
18377   *)
18378     shrext_cmds='.sl'
18379     dynamic_linker="$host_os dld.sl"
18380     shlibpath_var=SHLIB_PATH
18381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383     soname_spec='${libname}${release}${shared_ext}$major'
18384     ;;
18385   esac
18386   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18387   postinstall_cmds='chmod 555 $lib'
18388   # or fails outright, so override atomically:
18389   install_override_mode=555
18390   ;;
18391
18392 interix[3-9]*)
18393   version_type=linux
18394   need_lib_prefix=no
18395   need_version=no
18396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18397   soname_spec='${libname}${release}${shared_ext}$major'
18398   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18399   shlibpath_var=LD_LIBRARY_PATH
18400   shlibpath_overrides_runpath=no
18401   hardcode_into_libs=yes
18402   ;;
18403
18404 irix5* | irix6* | nonstopux*)
18405   case $host_os in
18406     nonstopux*) version_type=nonstopux ;;
18407     *)
18408         if test "$lt_cv_prog_gnu_ld" = yes; then
18409                 version_type=linux
18410         else
18411                 version_type=irix
18412         fi ;;
18413   esac
18414   need_lib_prefix=no
18415   need_version=no
18416   soname_spec='${libname}${release}${shared_ext}$major'
18417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18418   case $host_os in
18419   irix5* | nonstopux*)
18420     libsuff= shlibsuff=
18421     ;;
18422   *)
18423     case $LD in # libtool.m4 will add one of these switches to LD
18424     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18425       libsuff= shlibsuff= libmagic=32-bit;;
18426     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18427       libsuff=32 shlibsuff=N32 libmagic=N32;;
18428     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18429       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18430     *) libsuff= shlibsuff= libmagic=never-match;;
18431     esac
18432     ;;
18433   esac
18434   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18435   shlibpath_overrides_runpath=no
18436   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18437   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18438   hardcode_into_libs=yes
18439   ;;
18440
18441 # No shared lib support for Linux oldld, aout, or coff.
18442 linux*oldld* | linux*aout* | linux*coff*)
18443   dynamic_linker=no
18444   ;;
18445
18446 # This must be Linux ELF.
18447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18448   version_type=linux
18449   need_lib_prefix=no
18450   need_version=no
18451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452   soname_spec='${libname}${release}${shared_ext}$major'
18453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18454   shlibpath_var=LD_LIBRARY_PATH
18455   shlibpath_overrides_runpath=no
18456
18457   # Some binutils ld are patched to set DT_RUNPATH
18458   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18459   $as_echo_n "(cached) " >&6
18460 else
18461   lt_cv_shlibpath_overrides_runpath=no
18462     save_LDFLAGS=$LDFLAGS
18463     save_libdir=$libdir
18464     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18465          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h.  */
18468
18469 int
18470 main ()
18471 {
18472
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 if ac_fn_cxx_try_link "$LINENO"; then :
18478   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18479   lt_cv_shlibpath_overrides_runpath=yes
18480 fi
18481 fi
18482 rm -f core conftest.err conftest.$ac_objext \
18483     conftest$ac_exeext conftest.$ac_ext
18484     LDFLAGS=$save_LDFLAGS
18485     libdir=$save_libdir
18486
18487 fi
18488
18489   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18490
18491   # This implies no fast_install, which is unacceptable.
18492   # Some rework will be needed to allow for fast_install
18493   # before this can be enabled.
18494   hardcode_into_libs=yes
18495
18496   # Add ABI-specific directories to the system library path.
18497   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18498
18499   # Append ld.so.conf contents to the search path
18500   if test -f /etc/ld.so.conf; then
18501     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' ' '`
18502     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18503
18504   fi
18505
18506   # We used to test for /lib/ld.so.1 and disable shared libraries on
18507   # powerpc, because MkLinux only supported shared libraries with the
18508   # GNU dynamic linker.  Since this was broken with cross compilers,
18509   # most powerpc-linux boxes support dynamic linking these days and
18510   # people can always --disable-shared, the test was removed, and we
18511   # assume the GNU/Linux dynamic linker is in use.
18512   dynamic_linker='GNU/Linux ld.so'
18513   ;;
18514
18515 netbsd*)
18516   version_type=sunos
18517   need_lib_prefix=no
18518   need_version=no
18519   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18521     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18522     dynamic_linker='NetBSD (a.out) ld.so'
18523   else
18524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18525     soname_spec='${libname}${release}${shared_ext}$major'
18526     dynamic_linker='NetBSD ld.elf_so'
18527   fi
18528   shlibpath_var=LD_LIBRARY_PATH
18529   shlibpath_overrides_runpath=yes
18530   hardcode_into_libs=yes
18531   ;;
18532
18533 newsos6)
18534   version_type=linux
18535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536   shlibpath_var=LD_LIBRARY_PATH
18537   shlibpath_overrides_runpath=yes
18538   ;;
18539
18540 *nto* | *qnx*)
18541   version_type=qnx
18542   need_lib_prefix=no
18543   need_version=no
18544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545   soname_spec='${libname}${release}${shared_ext}$major'
18546   shlibpath_var=LD_LIBRARY_PATH
18547   shlibpath_overrides_runpath=no
18548   hardcode_into_libs=yes
18549   dynamic_linker='ldqnx.so'
18550   ;;
18551
18552 openbsd*)
18553   version_type=sunos
18554   sys_lib_dlsearch_path_spec="/usr/lib"
18555   need_lib_prefix=no
18556   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18557   case $host_os in
18558     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18559     *)                          need_version=no  ;;
18560   esac
18561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18563   shlibpath_var=LD_LIBRARY_PATH
18564   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18565     case $host_os in
18566       openbsd2.[89] | openbsd2.[89].*)
18567         shlibpath_overrides_runpath=no
18568         ;;
18569       *)
18570         shlibpath_overrides_runpath=yes
18571         ;;
18572       esac
18573   else
18574     shlibpath_overrides_runpath=yes
18575   fi
18576   ;;
18577
18578 os2*)
18579   libname_spec='$name'
18580   shrext_cmds=".dll"
18581   need_lib_prefix=no
18582   library_names_spec='$libname${shared_ext} $libname.a'
18583   dynamic_linker='OS/2 ld.exe'
18584   shlibpath_var=LIBPATH
18585   ;;
18586
18587 osf3* | osf4* | osf5*)
18588   version_type=osf
18589   need_lib_prefix=no
18590   need_version=no
18591   soname_spec='${libname}${release}${shared_ext}$major'
18592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593   shlibpath_var=LD_LIBRARY_PATH
18594   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18595   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18596   ;;
18597
18598 rdos*)
18599   dynamic_linker=no
18600   ;;
18601
18602 solaris*)
18603   version_type=linux
18604   need_lib_prefix=no
18605   need_version=no
18606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607   soname_spec='${libname}${release}${shared_ext}$major'
18608   shlibpath_var=LD_LIBRARY_PATH
18609   shlibpath_overrides_runpath=yes
18610   hardcode_into_libs=yes
18611   # ldd complains unless libraries are executable
18612   postinstall_cmds='chmod +x $lib'
18613   ;;
18614
18615 sunos4*)
18616   version_type=sunos
18617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18619   shlibpath_var=LD_LIBRARY_PATH
18620   shlibpath_overrides_runpath=yes
18621   if test "$with_gnu_ld" = yes; then
18622     need_lib_prefix=no
18623   fi
18624   need_version=yes
18625   ;;
18626
18627 sysv4 | sysv4.3*)
18628   version_type=linux
18629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630   soname_spec='${libname}${release}${shared_ext}$major'
18631   shlibpath_var=LD_LIBRARY_PATH
18632   case $host_vendor in
18633     sni)
18634       shlibpath_overrides_runpath=no
18635       need_lib_prefix=no
18636       runpath_var=LD_RUN_PATH
18637       ;;
18638     siemens)
18639       need_lib_prefix=no
18640       ;;
18641     motorola)
18642       need_lib_prefix=no
18643       need_version=no
18644       shlibpath_overrides_runpath=no
18645       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18646       ;;
18647   esac
18648   ;;
18649
18650 sysv4*MP*)
18651   if test -d /usr/nec ;then
18652     version_type=linux
18653     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18654     soname_spec='$libname${shared_ext}.$major'
18655     shlibpath_var=LD_LIBRARY_PATH
18656   fi
18657   ;;
18658
18659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18660   version_type=freebsd-elf
18661   need_lib_prefix=no
18662   need_version=no
18663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18664   soname_spec='${libname}${release}${shared_ext}$major'
18665   shlibpath_var=LD_LIBRARY_PATH
18666   shlibpath_overrides_runpath=yes
18667   hardcode_into_libs=yes
18668   if test "$with_gnu_ld" = yes; then
18669     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18670   else
18671     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18672     case $host_os in
18673       sco3.2v5*)
18674         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18675         ;;
18676     esac
18677   fi
18678   sys_lib_dlsearch_path_spec='/usr/lib'
18679   ;;
18680
18681 tpf*)
18682   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18683   version_type=linux
18684   need_lib_prefix=no
18685   need_version=no
18686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687   shlibpath_var=LD_LIBRARY_PATH
18688   shlibpath_overrides_runpath=no
18689   hardcode_into_libs=yes
18690   ;;
18691
18692 uts4*)
18693   version_type=linux
18694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695   soname_spec='${libname}${release}${shared_ext}$major'
18696   shlibpath_var=LD_LIBRARY_PATH
18697   ;;
18698
18699 *)
18700   dynamic_linker=no
18701   ;;
18702 esac
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18704 $as_echo "$dynamic_linker" >&6; }
18705 test "$dynamic_linker" = no && can_build_shared=no
18706
18707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18708 if test "$GCC" = yes; then
18709   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18710 fi
18711
18712 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18713   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18714 fi
18715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18716   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18717 fi
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
18752
18753
18754
18755
18756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18758 hardcode_action_CXX=
18759 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18760    test -n "$runpath_var_CXX" ||
18761    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18762
18763   # We can hardcode non-existent directories.
18764   if test "$hardcode_direct_CXX" != no &&
18765      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18766      # have to relink, otherwise we might link with an installed library
18767      # when we should be linking with a yet-to-be-installed one
18768      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18769      test "$hardcode_minus_L_CXX" != no; then
18770     # Linking always hardcodes the temporary library directory.
18771     hardcode_action_CXX=relink
18772   else
18773     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18774     hardcode_action_CXX=immediate
18775   fi
18776 else
18777   # We cannot hardcode anything, or else we can only hardcode existing
18778   # directories.
18779   hardcode_action_CXX=unsupported
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18782 $as_echo "$hardcode_action_CXX" >&6; }
18783
18784 if test "$hardcode_action_CXX" = relink ||
18785    test "$inherit_rpath_CXX" = yes; then
18786   # Fast installation is not supported
18787   enable_fast_install=no
18788 elif test "$shlibpath_overrides_runpath" = yes ||
18789      test "$enable_shared" = no; then
18790   # Fast installation is not necessary
18791   enable_fast_install=needless
18792 fi
18793
18794
18795
18796
18797
18798
18799
18800   fi # test -n "$compiler"
18801
18802   CC=$lt_save_CC
18803   LDCXX=$LD
18804   LD=$lt_save_LD
18805   GCC=$lt_save_GCC
18806   with_gnu_ld=$lt_save_with_gnu_ld
18807   lt_cv_path_LDCXX=$lt_cv_path_LD
18808   lt_cv_path_LD=$lt_save_path_LD
18809   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18810   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18811 fi # test "$_lt_caught_CXX_error" != yes
18812
18813 ac_ext=c
18814 ac_cpp='$CPP $CPPFLAGS'
18815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831         ac_config_commands="$ac_config_commands libtool"
18832
18833
18834
18835
18836 # Only expand once:
18837
18838
18839
18840
18841
18842 # Configure libltdl
18843
18844
18845
18846
18847
18848
18849
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18851 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18852 if test "${libltdl_cv_shlibext+set}" = set; then :
18853   $as_echo_n "(cached) " >&6
18854 else
18855
18856 module=yes
18857 eval libltdl_cv_shlibext=$shrext_cmds
18858
18859 fi
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18861 $as_echo "$libltdl_cv_shlibext" >&6; }
18862 if test -n "$libltdl_cv_shlibext"; then
18863
18864 cat >>confdefs.h <<_ACEOF
18865 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18866 _ACEOF
18867
18868 fi
18869
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18871 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18872 if test "${lt_cv_module_path_var+set}" = set; then :
18873   $as_echo_n "(cached) " >&6
18874 else
18875   lt_cv_module_path_var="$shlibpath_var"
18876 fi
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18878 $as_echo "$lt_cv_module_path_var" >&6; }
18879 if test -n "$lt_cv_module_path_var"; then
18880
18881 cat >>confdefs.h <<_ACEOF
18882 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18883 _ACEOF
18884
18885 fi
18886
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18888 $as_echo_n "checking for the default library search path... " >&6; }
18889 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18890   $as_echo_n "(cached) " >&6
18891 else
18892   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18893 fi
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18895 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18896 if test -n "$lt_cv_sys_dlsearch_path"; then
18897   sys_dlsearch_path=
18898   for dir in $lt_cv_sys_dlsearch_path; do
18899     if test -z "$sys_dlsearch_path"; then
18900       sys_dlsearch_path="$dir"
18901     else
18902       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18903     fi
18904   done
18905
18906 cat >>confdefs.h <<_ACEOF
18907 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18908 _ACEOF
18909
18910 fi
18911
18912
18913 LT_DLLOADERS=
18914
18915
18916 ac_ext=c
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18921
18922
18923 LIBADD_DLOPEN=
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18925 $as_echo_n "checking for library containing dlopen... " >&6; }
18926 if test "${ac_cv_search_dlopen+set}" = set; then :
18927   $as_echo_n "(cached) " >&6
18928 else
18929   ac_func_search_save_LIBS=$LIBS
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h.  */
18932
18933 /* Override any GCC internal prototype to avoid an error.
18934    Use char because int might match the return type of a GCC
18935    builtin and then its argument prototype would still apply.  */
18936 #ifdef __cplusplus
18937 extern "C"
18938 #endif
18939 char dlopen ();
18940 int
18941 main ()
18942 {
18943 return dlopen ();
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 for ac_lib in '' dl; do
18949   if test -z "$ac_lib"; then
18950     ac_res="none required"
18951   else
18952     ac_res=-l$ac_lib
18953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18954   fi
18955   if ac_fn_c_try_link "$LINENO"; then :
18956   ac_cv_search_dlopen=$ac_res
18957 fi
18958 rm -f core conftest.err conftest.$ac_objext \
18959     conftest$ac_exeext
18960   if test "${ac_cv_search_dlopen+set}" = set; then :
18961   break
18962 fi
18963 done
18964 if test "${ac_cv_search_dlopen+set}" = set; then :
18965
18966 else
18967   ac_cv_search_dlopen=no
18968 fi
18969 rm conftest.$ac_ext
18970 LIBS=$ac_func_search_save_LIBS
18971 fi
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18973 $as_echo "$ac_cv_search_dlopen" >&6; }
18974 ac_res=$ac_cv_search_dlopen
18975 if test "$ac_res" != no; then :
18976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18977
18978 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18979
18980         if test "$ac_cv_search_dlopen" != "none required" ; then
18981           LIBADD_DLOPEN="-ldl"
18982         fi
18983         libltdl_cv_lib_dl_dlopen="yes"
18984         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18985 else
18986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h.  */
18988 #if HAVE_DLFCN_H
18989 #  include <dlfcn.h>
18990 #endif
18991
18992 int
18993 main ()
18994 {
18995 dlopen(0, 0);
18996   ;
18997   return 0;
18998 }
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"; then :
19001
19002 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19003
19004             libltdl_cv_func_dlopen="yes"
19005             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19006 else
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19010   $as_echo_n "(cached) " >&6
19011 else
19012   ac_check_lib_save_LIBS=$LIBS
19013 LIBS="-lsvld  $LIBS"
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h.  */
19016
19017 /* Override any GCC internal prototype to avoid an error.
19018    Use char because int might match the return type of a GCC
19019    builtin and then its argument prototype would still apply.  */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 char dlopen ();
19024 int
19025 main ()
19026 {
19027 return dlopen ();
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 if ac_fn_c_try_link "$LINENO"; then :
19033   ac_cv_lib_svld_dlopen=yes
19034 else
19035   ac_cv_lib_svld_dlopen=no
19036 fi
19037 rm -f core conftest.err conftest.$ac_objext \
19038     conftest$ac_exeext conftest.$ac_ext
19039 LIBS=$ac_check_lib_save_LIBS
19040 fi
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19042 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19043 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19044
19045 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19046
19047                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19048                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19049 fi
19050
19051 fi
19052 rm -f core conftest.err conftest.$ac_objext \
19053     conftest$ac_exeext conftest.$ac_ext
19054 fi
19055
19056 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19057 then
19058   lt_save_LIBS="$LIBS"
19059   LIBS="$LIBS $LIBADD_DLOPEN"
19060   for ac_func in dlerror
19061 do :
19062   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19063 if test "x$ac_cv_func_dlerror" = x""yes; then :
19064   cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DLERROR 1
19066 _ACEOF
19067
19068 fi
19069 done
19070
19071   LIBS="$lt_save_LIBS"
19072 fi
19073
19074
19075 LIBADD_SHL_LOAD=
19076 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19077 if test "x$ac_cv_func_shl_load" = x""yes; then :
19078
19079 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19080
19081         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19082 else
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19084 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19085 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19086   $as_echo_n "(cached) " >&6
19087 else
19088   ac_check_lib_save_LIBS=$LIBS
19089 LIBS="-ldld  $LIBS"
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h.  */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094    Use char because int might match the return type of a GCC
19095    builtin and then its argument prototype would still apply.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char shl_load ();
19100 int
19101 main ()
19102 {
19103 return shl_load ();
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_link "$LINENO"; then :
19109   ac_cv_lib_dld_shl_load=yes
19110 else
19111   ac_cv_lib_dld_shl_load=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext \
19114     conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19118 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19119 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19120
19121 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19122
19123             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19124             LIBADD_SHL_LOAD="-ldld"
19125 fi
19126
19127 fi
19128
19129
19130
19131 case $host_os in
19132 darwin[1567].*)
19133 # We only want this for pre-Mac OS X 10.4.
19134   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19135 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19136
19137 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19138
19139         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19140 fi
19141
19142   ;;
19143 beos*)
19144   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19145   ;;
19146 cygwin* | mingw* | os2* | pw32*)
19147   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19148 "
19149 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19150   ac_have_decl=1
19151 else
19152   ac_have_decl=0
19153 fi
19154
19155 cat >>confdefs.h <<_ACEOF
19156 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19157 _ACEOF
19158
19159   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19160   ;;
19161 esac
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19164 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19165 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19166   $as_echo_n "(cached) " >&6
19167 else
19168   ac_check_lib_save_LIBS=$LIBS
19169 LIBS="-ldld  $LIBS"
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h.  */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174    Use char because int might match the return type of a GCC
19175    builtin and then its argument prototype would still apply.  */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char dld_link ();
19180 int
19181 main ()
19182 {
19183 return dld_link ();
19184   ;
19185   return 0;
19186 }
19187 _ACEOF
19188 if ac_fn_c_try_link "$LINENO"; then :
19189   ac_cv_lib_dld_dld_link=yes
19190 else
19191   ac_cv_lib_dld_dld_link=no
19192 fi
19193 rm -f core conftest.err conftest.$ac_objext \
19194     conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19196 fi
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19199 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19200
19201 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19202
19203                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19204 fi
19205
19206
19207
19208
19209 LT_DLPREOPEN=
19210 if test -n "$LT_DLLOADERS"
19211 then
19212   for lt_loader in $LT_DLLOADERS; do
19213     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19214   done
19215
19216 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19217
19218 fi
19219
19220
19221 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19222
19223
19224 ac_ext=c
19225 ac_cpp='$CPP $CPPFLAGS'
19226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19229
19230
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19232 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19233 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19234   $as_echo_n "(cached) " >&6
19235 else
19236   lt_cv_sys_symbol_underscore=no
19237   cat > conftest.$ac_ext <<_LT_EOF
19238 void nm_test_func(){}
19239 int main(){nm_test_func;return 0;}
19240 _LT_EOF
19241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19242   (eval $ac_compile) 2>&5
19243   ac_status=$?
19244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19245   test $ac_status = 0; }; then
19246     # Now try to grab the symbols.
19247     ac_nlist=conftest.nm
19248     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19249   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19250   ac_status=$?
19251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252   test $ac_status = 0; } && test -s "$ac_nlist"; then
19253       # See whether the symbols have a leading underscore.
19254       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19255         lt_cv_sys_symbol_underscore=yes
19256       else
19257         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19258           :
19259         else
19260           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19261         fi
19262       fi
19263     else
19264       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19265     fi
19266   else
19267     echo "configure: failed program was:" >&5
19268     cat conftest.c >&5
19269   fi
19270   rm -rf conftest*
19271
19272 fi
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19274 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19275   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19276
19277
19278 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19279   if test x"$libltdl_cv_func_dlopen" = xyes ||
19280      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19282 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19283 if test "${libltdl_cv_need_uscore+set}" = set; then :
19284   $as_echo_n "(cached) " >&6
19285 else
19286   libltdl_cv_need_uscore=unknown
19287           save_LIBS="$LIBS"
19288           LIBS="$LIBS $LIBADD_DLOPEN"
19289           if test "$cross_compiling" = yes; then :
19290   libltdl_cv_need_uscore=cross
19291 else
19292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19293   lt_status=$lt_dlunknown
19294   cat > conftest.$ac_ext <<_LT_EOF
19295 #line $LINENO "configure"
19296 #include "confdefs.h"
19297
19298 #if HAVE_DLFCN_H
19299 #include <dlfcn.h>
19300 #endif
19301
19302 #include <stdio.h>
19303
19304 #ifdef RTLD_GLOBAL
19305 #  define LT_DLGLOBAL           RTLD_GLOBAL
19306 #else
19307 #  ifdef DL_GLOBAL
19308 #    define LT_DLGLOBAL         DL_GLOBAL
19309 #  else
19310 #    define LT_DLGLOBAL         0
19311 #  endif
19312 #endif
19313
19314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19315    find out it does not work in some platform. */
19316 #ifndef LT_DLLAZY_OR_NOW
19317 #  ifdef RTLD_LAZY
19318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19319 #  else
19320 #    ifdef DL_LAZY
19321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19322 #    else
19323 #      ifdef RTLD_NOW
19324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19325 #      else
19326 #        ifdef DL_NOW
19327 #          define LT_DLLAZY_OR_NOW      DL_NOW
19328 #        else
19329 #          define LT_DLLAZY_OR_NOW      0
19330 #        endif
19331 #      endif
19332 #    endif
19333 #  endif
19334 #endif
19335
19336 /* When -fvisbility=hidden is used, assume the code has been annotated
19337    correspondingly for the symbols needed.  */
19338 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19339 void fnord () __attribute__((visibility("default")));
19340 #endif
19341
19342 void fnord () { int i=42; }
19343 int main ()
19344 {
19345   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19346   int status = $lt_dlunknown;
19347
19348   if (self)
19349     {
19350       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19351       else
19352         {
19353           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19354           else puts (dlerror ());
19355         }
19356       /* dlclose (self); */
19357     }
19358   else
19359     puts (dlerror ());
19360
19361   return status;
19362 }
19363 _LT_EOF
19364   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19365   (eval $ac_link) 2>&5
19366   ac_status=$?
19367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19369     (./conftest; exit; ) >&5 2>/dev/null
19370     lt_status=$?
19371     case x$lt_status in
19372       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19373       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19374       x$lt_dlunknown|x*)  ;;
19375     esac
19376   else :
19377     # compilation failed
19378
19379   fi
19380 fi
19381 rm -fr conftest*
19382
19383           LIBS="$save_LIBS"
19384
19385 fi
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19387 $as_echo "$libltdl_cv_need_uscore" >&6; }
19388   fi
19389 fi
19390
19391 if test x"$libltdl_cv_need_uscore" = xyes; then
19392
19393 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19394
19395 fi
19396
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19398 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19399 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19400   $as_echo_n "(cached) " >&6
19401 else
19402   # PORTME does your system automatically load deplibs for dlopen?
19403   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19404   # For now, we just catch OSes we know something about -- in the
19405   # future, we'll try test this programmatically.
19406   lt_cv_sys_dlopen_deplibs=unknown
19407   case $host_os in
19408   aix3*|aix4.1.*|aix4.2.*)
19409     # Unknown whether this is true for these versions of AIX, but
19410     # we want this `case' here to explicitly catch those versions.
19411     lt_cv_sys_dlopen_deplibs=unknown
19412     ;;
19413   aix[4-9]*)
19414     lt_cv_sys_dlopen_deplibs=yes
19415     ;;
19416   amigaos*)
19417     case $host_cpu in
19418     powerpc)
19419       lt_cv_sys_dlopen_deplibs=no
19420       ;;
19421     esac
19422     ;;
19423   darwin*)
19424     # Assuming the user has installed a libdl from somewhere, this is true
19425     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19426     lt_cv_sys_dlopen_deplibs=yes
19427     ;;
19428   freebsd* | dragonfly*)
19429     lt_cv_sys_dlopen_deplibs=yes
19430     ;;
19431   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19432     # GNU and its variants, using gnu ld.so (Glibc)
19433     lt_cv_sys_dlopen_deplibs=yes
19434     ;;
19435   hpux10*|hpux11*)
19436     lt_cv_sys_dlopen_deplibs=yes
19437     ;;
19438   interix*)
19439     lt_cv_sys_dlopen_deplibs=yes
19440     ;;
19441   irix[12345]*|irix6.[01]*)
19442     # Catch all versions of IRIX before 6.2, and indicate that we don't
19443     # know how it worked for any of those versions.
19444     lt_cv_sys_dlopen_deplibs=unknown
19445     ;;
19446   irix*)
19447     # The case above catches anything before 6.2, and it's known that
19448     # at 6.2 and later dlopen does load deplibs.
19449     lt_cv_sys_dlopen_deplibs=yes
19450     ;;
19451   netbsd*)
19452     lt_cv_sys_dlopen_deplibs=yes
19453     ;;
19454   openbsd*)
19455     lt_cv_sys_dlopen_deplibs=yes
19456     ;;
19457   osf[1234]*)
19458     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19459     # it did *not* use an RPATH in a shared library to find objects the
19460     # library depends on, so we explicitly say `no'.
19461     lt_cv_sys_dlopen_deplibs=no
19462     ;;
19463   osf5.0|osf5.0a|osf5.1)
19464     # dlopen *does* load deplibs and with the right loader patch applied
19465     # it even uses RPATH in a shared library to search for shared objects
19466     # that the library depends on, but there's no easy way to know if that
19467     # patch is installed.  Since this is the case, all we can really
19468     # say is unknown -- it depends on the patch being installed.  If
19469     # it is, this changes to `yes'.  Without it, it would be `no'.
19470     lt_cv_sys_dlopen_deplibs=unknown
19471     ;;
19472   osf*)
19473     # the two cases above should catch all versions of osf <= 5.1.  Read
19474     # the comments above for what we know about them.
19475     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19476     # is used to find them so we can finally say `yes'.
19477     lt_cv_sys_dlopen_deplibs=yes
19478     ;;
19479   qnx*)
19480     lt_cv_sys_dlopen_deplibs=yes
19481     ;;
19482   solaris*)
19483     lt_cv_sys_dlopen_deplibs=yes
19484     ;;
19485   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19486     libltdl_cv_sys_dlopen_deplibs=yes
19487     ;;
19488   esac
19489
19490 fi
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19492 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19493 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19494
19495 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19496
19497 fi
19498
19499 :
19500
19501 for ac_header in argz.h
19502 do :
19503   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19504 "
19505 if test "x$ac_cv_header_argz_h" = x""yes; then :
19506   cat >>confdefs.h <<_ACEOF
19507 #define HAVE_ARGZ_H 1
19508 _ACEOF
19509
19510 fi
19511
19512 done
19513
19514
19515 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19516 #  include <argz.h>
19517 #endif
19518 "
19519 if test "x$ac_cv_type_error_t" = x""yes; then :
19520
19521 cat >>confdefs.h <<_ACEOF
19522 #define HAVE_ERROR_T 1
19523 _ACEOF
19524
19525
19526 else
19527
19528 $as_echo "#define error_t int" >>confdefs.h
19529
19530
19531 $as_echo "#define __error_t_defined 1" >>confdefs.h
19532
19533 fi
19534
19535
19536 ARGZ_H=
19537 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19538         argz_next argz_stringify
19539 do :
19540   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19543   cat >>confdefs.h <<_ACEOF
19544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545 _ACEOF
19546
19547 else
19548   ARGZ_H=argz.h;
19549
19550   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19551
19552 fi
19553 done
19554
19555
19556 if test -z "$ARGZ_H"; then :
19557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19558 $as_echo_n "checking if argz actually works... " >&6; }
19559 if test "${lt_cv_sys_argz_works+set}" = set; then :
19560   $as_echo_n "(cached) " >&6
19561 else
19562   case $host_os in #(
19563          *cygwin*)
19564            lt_cv_sys_argz_works=no
19565            if test "$cross_compiling" != no; then
19566              lt_cv_sys_argz_works="guessing no"
19567            else
19568              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19569              save_IFS=$IFS
19570              IFS=-.
19571              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19572              IFS=$save_IFS
19573              lt_os_major=${2-0}
19574              lt_os_minor=${3-0}
19575              lt_os_micro=${4-0}
19576              if test "$lt_os_major" -gt 1 \
19577                 || { test "$lt_os_major" -eq 1 \
19578                   && { test "$lt_os_minor" -gt 5 \
19579                     || { test "$lt_os_minor" -eq 5 \
19580                       && test "$lt_os_micro" -gt 24; }; }; }; then
19581                lt_cv_sys_argz_works=yes
19582              fi
19583            fi
19584            ;; #(
19585          *) lt_cv_sys_argz_works=yes ;;
19586          esac
19587 fi
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19589 $as_echo "$lt_cv_sys_argz_works" >&6; }
19590      if test $lt_cv_sys_argz_works = yes; then :
19591
19592 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19593
19594 else
19595   ARGZ_H=argz.h
19596
19597
19598   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19599
19600 fi
19601 fi
19602
19603
19604
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19606 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19608   $as_echo_n "(cached) " >&6
19609 else
19610   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19611     libltdl_cv_preloaded_symbols=yes
19612   else
19613     libltdl_cv_preloaded_symbols=no
19614   fi
19615
19616 fi
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19618 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19620
19621 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19622
19623 fi
19624
19625 # Set options
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637 # Check whether --with-included_ltdl was given.
19638 if test "${with_included_ltdl+set}" = set; then :
19639   withval=$with_included_ltdl;
19640 fi
19641
19642
19643 if test "x$with_included_ltdl" != xyes; then
19644   # We are not being forced to use the included libltdl sources, so
19645   # decide whether there is a useful installed version we can use.
19646   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19647
19648 "
19649 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19650   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19651             #include <ltdl.h>
19652 "
19653 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19655 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19656 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19657   $as_echo_n "(cached) " >&6
19658 else
19659   ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lltdl  $LIBS"
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h.  */
19663
19664 /* Override any GCC internal prototype to avoid an error.
19665    Use char because int might match the return type of a GCC
19666    builtin and then its argument prototype would still apply.  */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 char lt_dladvise_preload ();
19671 int
19672 main ()
19673 {
19674 return lt_dladvise_preload ();
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 if ac_fn_c_try_link "$LINENO"; then :
19680   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19681 else
19682   ac_cv_lib_ltdl_lt_dladvise_preload=no
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext \
19685     conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19687 fi
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19689 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19690 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19691   with_included_ltdl=no
19692 else
19693   with_included_ltdl=yes
19694 fi
19695
19696 else
19697   with_included_ltdl=yes
19698 fi
19699
19700 else
19701   with_included_ltdl=yes
19702 fi
19703
19704
19705 fi
19706
19707
19708
19709
19710 # Check whether --with-ltdl_include was given.
19711 if test "${with_ltdl_include+set}" = set; then :
19712   withval=$with_ltdl_include;
19713 fi
19714
19715
19716 if test -n "$with_ltdl_include"; then
19717   if test -f "$with_ltdl_include/ltdl.h"; then :
19718   else
19719     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19720   fi
19721 else
19722   with_ltdl_include=no
19723 fi
19724
19725
19726 # Check whether --with-ltdl_lib was given.
19727 if test "${with_ltdl_lib+set}" = set; then :
19728   withval=$with_ltdl_lib;
19729 fi
19730
19731
19732 if test -n "$with_ltdl_lib"; then
19733   if test -f "$with_ltdl_lib/libltdl.la"; then :
19734   else
19735     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19736   fi
19737 else
19738   with_ltdl_lib=no
19739 fi
19740
19741 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19742   ,yes,no,no,)
19743         case $enable_ltdl_convenience in
19744   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19745   "") enable_ltdl_convenience=yes
19746       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19747 esac
19748 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19749 LTDLDEPS=$LIBLTDL
19750 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19751
19752
19753
19754
19755
19756 # For backwards non-gettext consistent compatibility...
19757 INCLTDL="$LTDLINCL"
19758
19759
19760         ;;
19761   ,no,no,no,)
19762         # If the included ltdl is not to be used, then use the
19763         # preinstalled libltdl we found.
19764
19765 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19766
19767         LIBLTDL=-lltdl
19768         LTDLDEPS=
19769         LTDLINCL=
19770         ;;
19771   ,no*,no,*)
19772         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19773         ;;
19774   *)    with_included_ltdl=no
19775         LIBLTDL="-L$with_ltdl_lib -lltdl"
19776         LTDLDEPS=
19777         LTDLINCL="-I$with_ltdl_include"
19778         ;;
19779 esac
19780 INCLTDL="$LTDLINCL"
19781
19782 # Report our decision...
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19784 $as_echo_n "checking where to find libltdl headers... " >&6; }
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19786 $as_echo "$LTDLINCL" >&6; }
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19788 $as_echo_n "checking where to find libltdl library... " >&6; }
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19790 $as_echo "$LIBLTDL" >&6; }
19791
19792
19793
19794 # Check whether --enable-ltdl-install was given.
19795 if test "${enable_ltdl_install+set}" = set; then :
19796   enableval=$enable_ltdl_install;
19797 fi
19798
19799
19800 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19801   *yes*) ;;
19802   *) enable_ltdl_convenience=yes ;;
19803 esac
19804
19805  if test x"${enable_ltdl_install-no}" != xno; then
19806   INSTALL_LTDL_TRUE=
19807   INSTALL_LTDL_FALSE='#'
19808 else
19809   INSTALL_LTDL_TRUE='#'
19810   INSTALL_LTDL_FALSE=
19811 fi
19812
19813   if test x"${enable_ltdl_convenience-no}" != xno; then
19814   CONVENIENCE_LTDL_TRUE=
19815   CONVENIENCE_LTDL_FALSE='#'
19816 else
19817   CONVENIENCE_LTDL_TRUE='#'
19818   CONVENIENCE_LTDL_FALSE=
19819 fi
19820
19821
19822
19823
19824
19825
19826 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19827 # the user used.  This is so that ltdl.h can pick up the parent projects
19828 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19829 # definitions required by ltdl.c.
19830 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19831
19832
19833
19834 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19835 do :
19836   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19838 "
19839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19840   cat >>confdefs.h <<_ACEOF
19841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19842 _ACEOF
19843
19844 fi
19845
19846 done
19847
19848
19849 for ac_func in closedir opendir readdir
19850 do :
19851   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19854   cat >>confdefs.h <<_ACEOF
19855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856 _ACEOF
19857
19858 else
19859
19860
19861   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19862
19863 fi
19864 done
19865
19866 for ac_func in strlcat strlcpy
19867 do :
19868   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19871   cat >>confdefs.h <<_ACEOF
19872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19873 _ACEOF
19874
19875 else
19876
19877
19878   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19879
19880 fi
19881 done
19882
19883
19884
19885 cat >>confdefs.h <<_ACEOF
19886 #define LT_LIBEXT "$libext"
19887 _ACEOF
19888
19889
19890 name=ltdl
19891 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19892
19893
19894
19895
19896
19897
19898
19899
19900 # Only expand once:
19901
19902
19903
19904 # Check to see if building shared libraries
19905 libtool_build_shared_libs='no'
19906 if test "$enable_shared" = 'yes'; then
19907     libtool_build_shared_libs='yes'
19908 fi
19909
19910 # Check to see if building static libraries
19911 libtool_build_static_libs='no'
19912 if test "$enable_static" = 'yes'; then
19913     libtool_build_static_libs='yes'
19914 fi
19915
19916  if test "${libtool_build_shared_libs}" = 'yes'; then
19917   WITH_SHARED_LIBS_TRUE=
19918   WITH_SHARED_LIBS_FALSE='#'
19919 else
19920   WITH_SHARED_LIBS_TRUE='#'
19921   WITH_SHARED_LIBS_FALSE=
19922 fi
19923
19924 #
19925 # Enable support for building loadable modules
19926 #
19927
19928 # Check whether --with-modules was given.
19929 if test "${with_modules+set}" = set; then :
19930   withval=$with_modules; with_modules=$withval
19931 else
19932   with_modules='no'
19933 fi
19934
19935
19936 # Only allow building loadable modules if we are building shared libraries
19937 if test "$with_modules" != 'no' ; then
19938     if test "$libtool_build_shared_libs" = 'no'; then
19939         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19940 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19941         with_modules='no'
19942     fi
19943 fi
19944 if test "$with_modules" != 'no'; then
19945
19946 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19947
19948 fi
19949  if test "$with_modules" != 'no'; then
19950   WITH_MODULES_TRUE=
19951   WITH_MODULES_FALSE='#'
19952 else
19953   WITH_MODULES_TRUE='#'
19954   WITH_MODULES_FALSE=
19955 fi
19956
19957
19958 # Enable building/use of libltdl if we are building shared libraries regardless
19959 # of whether modules are built or not.
19960 with_ltdl='no'
19961 if test "$libtool_build_shared_libs" != 'no'; then
19962     with_ltdl='yes'
19963 fi
19964
19965  if test "$with_ltdl" != 'no'; then
19966   WITH_LTDL_TRUE=
19967   WITH_LTDL_FALSE='#'
19968 else
19969   WITH_LTDL_TRUE='#'
19970   WITH_LTDL_FALSE=
19971 fi
19972
19973 if test "$with_ltdl" != 'no'; then
19974
19975 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19976
19977
19978     # Set DLLDFLAGS
19979     if test X"$enable_shared" = Xyes; then
19980         DLLDFLAGS=-export-dynamic
19981
19982     fi
19983 fi
19984
19985 # Enable build using delegate libraries built in subdirectories rather than installed
19986 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19987 # Check whether --enable-delegate-build was given.
19988 if test "${enable_delegate_build+set}" = set; then :
19989   enableval=$enable_delegate_build; enable_delegate_build=$enableval
19990 else
19991   enable_delegate_build='no'
19992 fi
19993
19994
19995 # Check whether --enable-deprecated was given.
19996 if test "${enable_deprecated+set}" = set; then :
19997   enableval=$enable_deprecated; enable_deprecated=$enableval
19998 else
19999   enable_deprecated='no'
20000 fi
20001
20002
20003 if test "$enable_deprecated" = 'yes'; then
20004
20005 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20006
20007 else
20008   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20009 fi
20010
20011 # Build a version of ImageMagick which operates uninstalled.
20012 # Used to build distributions located via MAGICK_HOME / executable path
20013 # Check whether --enable-installed was given.
20014 if test "${enable_installed+set}" = set; then :
20015   enableval=$enable_installed; enable_installed=$enableval
20016 else
20017   enable_installed='yes'
20018 fi
20019
20020
20021 if test "$enable_installed" = 'yes'; then
20022
20023 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20024
20025 else
20026     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20027 fi
20028
20029 # Permit enciphering and deciphering image pixels.
20030 # Check whether --enable-cipher was given.
20031 if test "${enable_cipher+set}" = set; then :
20032   enableval=$enable_cipher; enable_cipher=$enableval
20033 else
20034   enable_cipher='yes'
20035 fi
20036
20037
20038 if test "$enable_cipher" = 'yes'; then
20039
20040 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20041
20042 fi
20043
20044 # Build an embeddable version of ImageMagick.
20045 # Check whether --enable-embeddable was given.
20046 if test "${enable_embeddable+set}" = set; then :
20047   enableval=$enable_embeddable; enable_embeddable=$enableval
20048 else
20049   enable_embeddable='no'
20050 fi
20051
20052
20053 if test "$enable_embeddable" = 'yes'; then
20054
20055 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20056
20057 fi
20058
20059 # Build a high dynamic range version of ImageMagick.
20060 # Check whether --enable-hdri was given.
20061 if test "${enable_hdri+set}" = set; then :
20062   enableval=$enable_hdri; enable_hdri=$enableval
20063 else
20064   enable_hdri='no'
20065 fi
20066
20067
20068 MAGICK_HDRI=""
20069 if test "$enable_hdri" = 'yes'; then
20070     MAGICK_HDRI="HDRI"
20071
20072 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20073
20074     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20075 fi
20076
20077 # Build a version of ImageMagick with assert statements.
20078 # Check whether --enable-assert was given.
20079 if test "${enable_assert+set}" = set; then :
20080   enableval=$enable_assert; enable_assert=$enableval
20081 else
20082   enable_assert='yes'
20083 fi
20084
20085
20086 if test "$enable_assert" = 'no'; then
20087
20088 $as_echo "#define NDEBUG 1" >>confdefs.h
20089
20090 fi
20091
20092 # Add configure option --enable-maintainer-mode which enables dependency
20093 # checking and generation useful to package maintainers.  This is made an
20094 # option to avoid confusing end users.
20095
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20097 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20098     # Check whether --enable-maintainer-mode was given.
20099 if test "${enable_maintainer_mode+set}" = set; then :
20100   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20101 else
20102   USE_MAINTAINER_MODE=no
20103 fi
20104
20105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20106 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20107    if test $USE_MAINTAINER_MODE = yes; then
20108   MAINTAINER_MODE_TRUE=
20109   MAINTAINER_MODE_FALSE='#'
20110 else
20111   MAINTAINER_MODE_TRUE='#'
20112   MAINTAINER_MODE_FALSE=
20113 fi
20114
20115   MAINT=$MAINTAINER_MODE_TRUE
20116
20117
20118
20119
20120 # Enable ccmalloc memory debugging support
20121 # Check whether --enable-ccmalloc was given.
20122 if test "${enable_ccmalloc+set}" = set; then :
20123   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20124 else
20125   enable_ccmalloc='no'
20126 fi
20127
20128
20129 # Enable Electric Fence memory debugging support
20130 # Check whether --enable-efence was given.
20131 if test "${enable_efence+set}" = set; then :
20132   enableval=$enable_efence; enable_efence=$enableval
20133 else
20134   enable_efence='no'
20135 fi
20136
20137
20138 # Enable prof-based profiling support
20139 # Check whether --enable-prof was given.
20140 if test "${enable_prof+set}" = set; then :
20141   enableval=$enable_prof; enable_prof=$enableval
20142 else
20143   enable_prof='no'
20144 fi
20145
20146
20147 # Enable gprof-based profiling support
20148 # Check whether --enable-gprof was given.
20149 if test "${enable_gprof+set}" = set; then :
20150   enableval=$enable_gprof; enable_gprof=$enableval
20151 else
20152   enable_gprof='no'
20153 fi
20154
20155
20156 # Enable gcov-based profiling support
20157 # Check whether --enable-gcov was given.
20158 if test "${enable_gcov+set}" = set; then :
20159   enableval=$enable_gcov; enable_gcov=$enableval
20160 else
20161   enable_gcov='no'
20162 fi
20163
20164
20165 enable_profiling='no'
20166 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20167     enable_profiling='yes'
20168     if test "$libtool_build_shared_libs" = 'yes'; then
20169         echo "Warning: Can not profile code using shared libraries"
20170     fi
20171 fi
20172
20173 # Magick API method prefix
20174
20175 # Check whether --with-method-prefix was given.
20176 if test "${with_method_prefix+set}" = set; then :
20177   withval=$with_method_prefix; with_method_prefix=$enableval
20178 else
20179   with_method_prefix=''
20180 fi
20181
20182
20183 if test "$with_method_prefix" != ''; then
20184
20185 cat >>confdefs.h <<_ACEOF
20186 #define NAMESPACE_PREFIX $with_method_prefix
20187 _ACEOF
20188
20189 fi
20190
20191 # Number of bits in a Quantum
20192
20193 # Check whether --with-quantum-depth was given.
20194 if test "${with_quantum_depth+set}" = set; then :
20195   withval=$with_quantum_depth; with_quantum_depth=$withval
20196 else
20197   with_quantum_depth=16
20198 fi
20199
20200
20201 if test "$with_quantum_depth" != '8'; then
20202     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20203 fi
20204
20205 case "${with_quantum_depth}" in
20206     8 ) ;;
20207     16 ) ;;
20208     32 ) ;;
20209     64 ) ;;
20210     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20211 esac
20212 if test "$enable_hdri" = 'yes'; then
20213   with_quantum_depth=16
20214 fi
20215 QUANTUM_DEPTH="$with_quantum_depth"
20216
20217 cat >>confdefs.h <<_ACEOF
20218 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20219 _ACEOF
20220
20221
20222 # Set pixel cache threshold
20223
20224 # Check whether --with-cache was given.
20225 if test "${with_cache+set}" = set; then :
20226   withval=$with_cache; with_cache=$withval
20227 else
20228   with_cache=''
20229 fi
20230
20231
20232 if test "$with_cache" != ''; then
20233
20234 cat >>confdefs.h <<_ACEOF
20235 #define PixelCacheThreshold $with_cache
20236 _ACEOF
20237
20238     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20239 fi
20240
20241 # Disable/Enable support for full delegate paths
20242
20243 # Check whether --with-frozenpaths was given.
20244 if test "${with_frozenpaths+set}" = set; then :
20245   withval=$with_frozenpaths; with_frozenpaths=$withval
20246 else
20247   with_frozenpaths='no'
20248 fi
20249
20250
20251 # Enable build/install of Magick++
20252
20253 # Check whether --with-magick-plus-plus was given.
20254 if test "${with_magick_plus_plus+set}" = set; then :
20255   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20256 else
20257   with_magick_plus_plus='yes'
20258 fi
20259
20260
20261 # Disable build/install of PerlMagick.
20262
20263 # Check whether --with-perl was given.
20264 if test "${with_perl+set}" = set; then :
20265   withval=$with_perl; with_perl=$withval
20266 else
20267   with_perl='no'
20268 fi
20269
20270
20271 # Options to pass when configuring PerlMagick
20272
20273 # Check whether --with-perl-options was given.
20274 if test "${with_perl_options+set}" = set; then :
20275   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20276 fi
20277
20278
20279
20280 # Enable umem, object-caching memory allocation library.
20281
20282 # Check whether --with-umem was given.
20283 if test "${with_umem+set}" = set; then :
20284   withval=$with_umem; with_umem=$withval
20285 else
20286   with_umem='no'
20287 fi
20288
20289 if test "$with_umem" != 'yes' ; then
20290     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20291 fi
20292
20293 #
20294 # Specify path to shared libstdc++ if not in normal location
20295 #
20296
20297 # Check whether --with-libstdc was given.
20298 if test "${with_libstdc+set}" = set; then :
20299   withval=$with_libstdc; with_libstdc=$withval
20300 else
20301   with_libstdc=''
20302 fi
20303
20304
20305 if test "$with_libstdc" != ''; then
20306     if test -d "$with_libstdc"; then
20307         LIBSTDCLDFLAGS="-L$with_libstdc"
20308     fi
20309 fi
20310
20311
20312 # Does gcc required -traditional?
20313 if test $ac_cv_c_compiler_gnu = yes; then
20314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20315 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20316 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20317   $as_echo_n "(cached) " >&6
20318 else
20319     ac_pattern="Autoconf.*'x'"
20320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h.  */
20322 #include <sgtty.h>
20323 Autoconf TIOCGETP
20324 _ACEOF
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20327   ac_cv_prog_gcc_traditional=yes
20328 else
20329   ac_cv_prog_gcc_traditional=no
20330 fi
20331 rm -f conftest*
20332
20333
20334   if test $ac_cv_prog_gcc_traditional = no; then
20335     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h.  */
20337 #include <termio.h>
20338 Autoconf TCGETA
20339 _ACEOF
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20342   ac_cv_prog_gcc_traditional=yes
20343 fi
20344 rm -f conftest*
20345
20346   fi
20347 fi
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20349 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20350   if test $ac_cv_prog_gcc_traditional = yes; then
20351     CC="$CC -traditional"
20352   fi
20353 fi
20354
20355
20356 ########
20357 #
20358 # Set defines required to build DLLs and modules using MinGW
20359 #
20360 ########
20361 # These options are set for multi-thread DLL module build
20362 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20363 #  module:              _DLL
20364 #  executable/Magick++: _DLL _MAGICKMOD_
20365 MODULE_EXTRA_CPPFLAGS=''
20366 LIBRARY_EXTRA_CPPFLAGS=''
20367 if test "${native_win32_build}" = 'yes'; then
20368     if test "${libtool_build_shared_libs}" = 'yes'; then
20369         CPPFLAGS="$CPPFLAGS -D_DLL"
20370         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20371         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20372         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20373         if test "$with_modules" = 'yes'; then
20374             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20375         else
20376             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377         fi
20378     else
20379         CPPFLAGS="$CPPFLAGS -D_LIB"
20380         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20381         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20382     fi
20383     if test "$with_threads" = 'yes'; then
20384          CPPFLAGS="$CPPFLAGS -D_MT"
20385          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20386          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20387     fi
20388 fi
20389
20390
20391
20392 # Check standard headers
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20394 $as_echo_n "checking for ANSI C header files... " >&6; }
20395 if test "${ac_cv_header_stdc+set}" = set; then :
20396   $as_echo_n "(cached) " >&6
20397 else
20398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h.  */
20400 #include <stdlib.h>
20401 #include <stdarg.h>
20402 #include <string.h>
20403 #include <float.h>
20404
20405 int
20406 main ()
20407 {
20408
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 if ac_fn_c_try_compile "$LINENO"; then :
20414   ac_cv_header_stdc=yes
20415 else
20416   ac_cv_header_stdc=no
20417 fi
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419
20420 if test $ac_cv_header_stdc = yes; then
20421   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h.  */
20424 #include <string.h>
20425
20426 _ACEOF
20427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20428   $EGREP "memchr" >/dev/null 2>&1; then :
20429
20430 else
20431   ac_cv_header_stdc=no
20432 fi
20433 rm -f conftest*
20434
20435 fi
20436
20437 if test $ac_cv_header_stdc = yes; then
20438   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h.  */
20441 #include <stdlib.h>
20442
20443 _ACEOF
20444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20445   $EGREP "free" >/dev/null 2>&1; then :
20446
20447 else
20448   ac_cv_header_stdc=no
20449 fi
20450 rm -f conftest*
20451
20452 fi
20453
20454 if test $ac_cv_header_stdc = yes; then
20455   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20456   if test "$cross_compiling" = yes; then :
20457   :
20458 else
20459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h.  */
20461 #include <ctype.h>
20462 #include <stdlib.h>
20463 #if ((' ' & 0x0FF) == 0x020)
20464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20466 #else
20467 # define ISLOWER(c) \
20468                    (('a' <= (c) && (c) <= 'i') \
20469                      || ('j' <= (c) && (c) <= 'r') \
20470                      || ('s' <= (c) && (c) <= 'z'))
20471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20472 #endif
20473
20474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20475 int
20476 main ()
20477 {
20478   int i;
20479   for (i = 0; i < 256; i++)
20480     if (XOR (islower (i), ISLOWER (i))
20481         || toupper (i) != TOUPPER (i))
20482       return 2;
20483   return 0;
20484 }
20485 _ACEOF
20486 if ac_fn_c_try_run "$LINENO"; then :
20487
20488 else
20489   ac_cv_header_stdc=no
20490 fi
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492   conftest.$ac_objext conftest.beam conftest.$ac_ext
20493 fi
20494
20495 fi
20496 fi
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20498 $as_echo "$ac_cv_header_stdc" >&6; }
20499 if test $ac_cv_header_stdc = yes; then
20500
20501 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20502
20503 fi
20504
20505 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20506     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20507     header files.  Compilation cannot proceed.  Please install the ANSI C
20508     headers and rerun this script." >&5
20509 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20510     header files.  Compilation cannot proceed.  Please install the ANSI C
20511     headers and rerun this script." >&2;};
20512 fi
20513
20514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20515 $as_echo_n "checking whether to enable assertions... " >&6; }
20516   # Check whether --enable-assert was given.
20517 if test "${enable_assert+set}" = set; then :
20518   enableval=$enable_assert; ac_enable_assert=$enableval
20519      if       test "x$enableval" = xno; then :
20520
20521 $as_echo "#define NDEBUG 1" >>confdefs.h
20522
20523 elif test "x$enableval" != xyes; then :
20524   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20525 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20526         ac_enable_assert=yes
20527 fi
20528 else
20529   ac_enable_assert=yes
20530 fi
20531
20532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20533 $as_echo "$ac_enable_assert" >&6; }
20534
20535 ac_header_dirent=no
20536 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20537   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20539 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20540 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20541   $as_echo_n "(cached) " >&6
20542 else
20543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h.  */
20545 #include <sys/types.h>
20546 #include <$ac_hdr>
20547
20548 int
20549 main ()
20550 {
20551 if ((DIR *) 0)
20552 return 0;
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 if ac_fn_c_try_compile "$LINENO"; then :
20558   eval "$as_ac_Header=yes"
20559 else
20560   eval "$as_ac_Header=no"
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 fi
20564 eval ac_res=\$$as_ac_Header
20565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20566 $as_echo "$ac_res" >&6; }
20567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20568   cat >>confdefs.h <<_ACEOF
20569 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20570 _ACEOF
20571
20572 ac_header_dirent=$ac_hdr; break
20573 fi
20574
20575 done
20576 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20577 if test $ac_header_dirent = dirent.h; then
20578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20579 $as_echo_n "checking for library containing opendir... " >&6; }
20580 if test "${ac_cv_search_opendir+set}" = set; then :
20581   $as_echo_n "(cached) " >&6
20582 else
20583   ac_func_search_save_LIBS=$LIBS
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h.  */
20586
20587 /* Override any GCC internal prototype to avoid an error.
20588    Use char because int might match the return type of a GCC
20589    builtin and then its argument prototype would still apply.  */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char opendir ();
20594 int
20595 main ()
20596 {
20597 return opendir ();
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 for ac_lib in '' dir; do
20603   if test -z "$ac_lib"; then
20604     ac_res="none required"
20605   else
20606     ac_res=-l$ac_lib
20607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20608   fi
20609   if ac_fn_c_try_link "$LINENO"; then :
20610   ac_cv_search_opendir=$ac_res
20611 fi
20612 rm -f core conftest.err conftest.$ac_objext \
20613     conftest$ac_exeext
20614   if test "${ac_cv_search_opendir+set}" = set; then :
20615   break
20616 fi
20617 done
20618 if test "${ac_cv_search_opendir+set}" = set; then :
20619
20620 else
20621   ac_cv_search_opendir=no
20622 fi
20623 rm conftest.$ac_ext
20624 LIBS=$ac_func_search_save_LIBS
20625 fi
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20627 $as_echo "$ac_cv_search_opendir" >&6; }
20628 ac_res=$ac_cv_search_opendir
20629 if test "$ac_res" != no; then :
20630   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20631
20632 fi
20633
20634 else
20635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20636 $as_echo_n "checking for library containing opendir... " >&6; }
20637 if test "${ac_cv_search_opendir+set}" = set; then :
20638   $as_echo_n "(cached) " >&6
20639 else
20640   ac_func_search_save_LIBS=$LIBS
20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h.  */
20643
20644 /* Override any GCC internal prototype to avoid an error.
20645    Use char because int might match the return type of a GCC
20646    builtin and then its argument prototype would still apply.  */
20647 #ifdef __cplusplus
20648 extern "C"
20649 #endif
20650 char opendir ();
20651 int
20652 main ()
20653 {
20654 return opendir ();
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 for ac_lib in '' x; do
20660   if test -z "$ac_lib"; then
20661     ac_res="none required"
20662   else
20663     ac_res=-l$ac_lib
20664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20665   fi
20666   if ac_fn_c_try_link "$LINENO"; then :
20667   ac_cv_search_opendir=$ac_res
20668 fi
20669 rm -f core conftest.err conftest.$ac_objext \
20670     conftest$ac_exeext
20671   if test "${ac_cv_search_opendir+set}" = set; then :
20672   break
20673 fi
20674 done
20675 if test "${ac_cv_search_opendir+set}" = set; then :
20676
20677 else
20678   ac_cv_search_opendir=no
20679 fi
20680 rm conftest.$ac_ext
20681 LIBS=$ac_func_search_save_LIBS
20682 fi
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20684 $as_echo "$ac_cv_search_opendir" >&6; }
20685 ac_res=$ac_cv_search_opendir
20686 if test "$ac_res" != no; then :
20687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20688
20689 fi
20690
20691 fi
20692
20693
20694 # Check additional headers
20695 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
20696 do :
20697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20700   cat >>confdefs.h <<_ACEOF
20701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20702 _ACEOF
20703
20704 fi
20705
20706 done
20707
20708
20709 ########
20710 #
20711 # Checks for typedefs, structures, and compiler characteristics.
20712 #
20713 ########
20714
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20716 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20717 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20718   $as_echo_n "(cached) " >&6
20719 else
20720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20721 /* end confdefs.h.  */
20722
20723 #include <stdbool.h>
20724 #ifndef bool
20725  "error: bool is not defined"
20726 #endif
20727 #ifndef false
20728  "error: false is not defined"
20729 #endif
20730 #if false
20731  "error: false is not 0"
20732 #endif
20733 #ifndef true
20734  "error: true is not defined"
20735 #endif
20736 #if true != 1
20737  "error: true is not 1"
20738 #endif
20739 #ifndef __bool_true_false_are_defined
20740  "error: __bool_true_false_are_defined is not defined"
20741 #endif
20742
20743         struct s { _Bool s: 1; _Bool t; } s;
20744
20745         char a[true == 1 ? 1 : -1];
20746         char b[false == 0 ? 1 : -1];
20747         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20748         char d[(bool) 0.5 == true ? 1 : -1];
20749         bool e = &s;
20750         char f[(_Bool) 0.0 == false ? 1 : -1];
20751         char g[true];
20752         char h[sizeof (_Bool)];
20753         char i[sizeof s.t];
20754         enum { j = false, k = true, l = false * true, m = true * 256 };
20755         /* The following fails for
20756            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20757         _Bool n[m];
20758         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20759         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20760 #       if defined __xlc__ || defined __GNUC__
20761          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20762             reported by James Lemley on 2005-10-05; see
20763             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20764             This test is not quite right, since xlc is allowed to
20765             reject this program, as the initializer for xlcbug is
20766             not one of the forms that C requires support for.
20767             However, doing the test right would require a runtime
20768             test, and that would make cross-compilation harder.
20769             Let us hope that IBM fixes the xlc bug, and also adds
20770             support for this kind of constant expression.  In the
20771             meantime, this test will reject xlc, which is OK, since
20772             our stdbool.h substitute should suffice.  We also test
20773             this with GCC, where it should work, to detect more
20774             quickly whether someone messes up the test in the
20775             future.  */
20776          char digs[] = "0123456789";
20777          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20778 #       endif
20779         /* Catch a bug in an HP-UX C compiler.  See
20780            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20781            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20782          */
20783         _Bool q = true;
20784         _Bool *pq = &q;
20785
20786 int
20787 main ()
20788 {
20789
20790         *pq |= q;
20791         *pq |= ! q;
20792         /* Refer to every declared value, to avoid compiler optimizations.  */
20793         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20794                 + !m + !n + !o + !p + !q + !pq);
20795
20796   ;
20797   return 0;
20798 }
20799 _ACEOF
20800 if ac_fn_c_try_compile "$LINENO"; then :
20801   ac_cv_header_stdbool_h=yes
20802 else
20803   ac_cv_header_stdbool_h=no
20804 fi
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 fi
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20808 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20809 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20810 if test "x$ac_cv_type__Bool" = x""yes; then :
20811
20812 cat >>confdefs.h <<_ACEOF
20813 #define HAVE__BOOL 1
20814 _ACEOF
20815
20816
20817 fi
20818
20819 if test $ac_cv_header_stdbool_h = yes; then
20820
20821 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20822
20823 fi
20824
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20826 $as_echo_n "checking for working volatile... " >&6; }
20827 if test "${ac_cv_c_volatile+set}" = set; then :
20828   $as_echo_n "(cached) " >&6
20829 else
20830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h.  */
20832
20833 int
20834 main ()
20835 {
20836
20837 volatile int x;
20838 int * volatile y = (int *) 0;
20839 return !x && !y;
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 if ac_fn_c_try_compile "$LINENO"; then :
20845   ac_cv_c_volatile=yes
20846 else
20847   ac_cv_c_volatile=no
20848 fi
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 fi
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20852 $as_echo "$ac_cv_c_volatile" >&6; }
20853 if test $ac_cv_c_volatile = no; then
20854
20855 $as_echo "#define volatile /**/" >>confdefs.h
20856
20857 fi
20858
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20860 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20861 if test "${ac_cv_c_stringize+set}" = set; then :
20862   $as_echo_n "(cached) " >&6
20863 else
20864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h.  */
20866 #define x(y) #y
20867
20868 char *s = x(teststring);
20869 _ACEOF
20870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20871   $EGREP "#teststring" >/dev/null 2>&1; then :
20872   ac_cv_c_stringize=no
20873 else
20874   ac_cv_c_stringize=yes
20875 fi
20876 rm -f conftest*
20877
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20880 $as_echo "$ac_cv_c_stringize" >&6; }
20881 if test $ac_cv_c_stringize = yes; then
20882
20883 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20884
20885 fi
20886
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20888 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20889 if test "${ac_cv_header_stat_broken+set}" = set; then :
20890   $as_echo_n "(cached) " >&6
20891 else
20892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20893 /* end confdefs.h.  */
20894 #include <sys/types.h>
20895 #include <sys/stat.h>
20896
20897 #if defined S_ISBLK && defined S_IFDIR
20898 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20899 #endif
20900
20901 #if defined S_ISBLK && defined S_IFCHR
20902 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20903 #endif
20904
20905 #if defined S_ISLNK && defined S_IFREG
20906 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20907 #endif
20908
20909 #if defined S_ISSOCK && defined S_IFREG
20910 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20911 #endif
20912
20913 _ACEOF
20914 if ac_fn_c_try_compile "$LINENO"; then :
20915   ac_cv_header_stat_broken=no
20916 else
20917   ac_cv_header_stat_broken=yes
20918 fi
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20922 $as_echo "$ac_cv_header_stat_broken" >&6; }
20923 if test $ac_cv_header_stat_broken = yes; then
20924
20925 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20926
20927 fi
20928
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20930 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20931 if test "${ac_cv_header_time+set}" = set; then :
20932   $as_echo_n "(cached) " >&6
20933 else
20934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h.  */
20936 #include <sys/types.h>
20937 #include <sys/time.h>
20938 #include <time.h>
20939
20940 int
20941 main ()
20942 {
20943 if ((struct tm *) 0)
20944 return 0;
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 if ac_fn_c_try_compile "$LINENO"; then :
20950   ac_cv_header_time=yes
20951 else
20952   ac_cv_header_time=no
20953 fi
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 fi
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20957 $as_echo "$ac_cv_header_time" >&6; }
20958 if test $ac_cv_header_time = yes; then
20959
20960 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20961
20962 fi
20963
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20965 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20966 if test "${ac_cv_struct_tm+set}" = set; then :
20967   $as_echo_n "(cached) " >&6
20968 else
20969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h.  */
20971 #include <sys/types.h>
20972 #include <time.h>
20973
20974 int
20975 main ()
20976 {
20977 struct tm tm;
20978                                      int *p = &tm.tm_sec;
20979                                      return !p;
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 if ac_fn_c_try_compile "$LINENO"; then :
20985   ac_cv_struct_tm=time.h
20986 else
20987   ac_cv_struct_tm=sys/time.h
20988 fi
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20990 fi
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20992 $as_echo "$ac_cv_struct_tm" >&6; }
20993 if test $ac_cv_struct_tm = sys/time.h; then
20994
20995 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20996
20997 fi
20998
20999 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21000 #include <$ac_cv_struct_tm>
21001
21002 "
21003 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21004
21005 cat >>confdefs.h <<_ACEOF
21006 #define HAVE_STRUCT_TM_TM_ZONE 1
21007 _ACEOF
21008
21009
21010 fi
21011
21012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21013
21014 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21015
21016 else
21017   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21018 "
21019 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21020   ac_have_decl=1
21021 else
21022   ac_have_decl=0
21023 fi
21024
21025 cat >>confdefs.h <<_ACEOF
21026 #define HAVE_DECL_TZNAME $ac_have_decl
21027 _ACEOF
21028
21029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21030 $as_echo_n "checking for tzname... " >&6; }
21031 if test "${ac_cv_var_tzname+set}" = set; then :
21032   $as_echo_n "(cached) " >&6
21033 else
21034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h.  */
21036 #include <time.h>
21037 #if !HAVE_DECL_TZNAME
21038 extern char *tzname[];
21039 #endif
21040
21041 int
21042 main ()
21043 {
21044 return tzname[0][0];
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 if ac_fn_c_try_link "$LINENO"; then :
21050   ac_cv_var_tzname=yes
21051 else
21052   ac_cv_var_tzname=no
21053 fi
21054 rm -f core conftest.err conftest.$ac_objext \
21055     conftest$ac_exeext conftest.$ac_ext
21056 fi
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21058 $as_echo "$ac_cv_var_tzname" >&6; }
21059   if test $ac_cv_var_tzname = yes; then
21060
21061 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21062
21063   fi
21064 fi
21065
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21067 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21068 if test "${ac_cv_sys_interpreter+set}" = set; then :
21069   $as_echo_n "(cached) " >&6
21070 else
21071   echo '#! /bin/cat
21072 exit 69
21073 ' >conftest
21074 chmod u+x conftest
21075 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21076 if test $? -ne 69; then
21077    ac_cv_sys_interpreter=yes
21078 else
21079    ac_cv_sys_interpreter=no
21080 fi
21081 rm -f conftest
21082 fi
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21084 $as_echo "$ac_cv_sys_interpreter" >&6; }
21085 interpval=$ac_cv_sys_interpreter
21086
21087
21088 # If the C compiler supports the keyword inline, do nothing. Otherwise
21089 # define inline to __inline__ or __inline if it accepts one of those,
21090 # otherwise define inline to be empty.
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21092 $as_echo_n "checking for inline... " >&6; }
21093 if test "${ac_cv_c_inline+set}" = set; then :
21094   $as_echo_n "(cached) " >&6
21095 else
21096   ac_cv_c_inline=no
21097 for ac_kw in inline __inline__ __inline; do
21098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h.  */
21100 #ifndef __cplusplus
21101 typedef int foo_t;
21102 static $ac_kw foo_t static_foo () {return 0; }
21103 $ac_kw foo_t foo () {return 0; }
21104 #endif
21105
21106 _ACEOF
21107 if ac_fn_c_try_compile "$LINENO"; then :
21108   ac_cv_c_inline=$ac_kw
21109 fi
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111   test "$ac_cv_c_inline" != no && break
21112 done
21113
21114 fi
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21116 $as_echo "$ac_cv_c_inline" >&6; }
21117
21118 case $ac_cv_c_inline in
21119   inline | yes) ;;
21120   *)
21121     case $ac_cv_c_inline in
21122       no) ac_val=;;
21123       *) ac_val=$ac_cv_c_inline;;
21124     esac
21125     cat >>confdefs.h <<_ACEOF
21126 #ifndef __cplusplus
21127 #define inline $ac_val
21128 #endif
21129 _ACEOF
21130     ;;
21131 esac
21132
21133
21134 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21135 # define restrict to __restrict__ or __restrict if it accepts one of those,
21136 # otherwise define restrict to be empty.
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21138 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21139 if test "${ac_cv_c_restrict+set}" = set; then :
21140   $as_echo_n "(cached) " >&6
21141 else
21142   ac_cv_c_restrict=no
21143    # The order here caters to the fact that C++ does not require restrict.
21144    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h.  */
21147 typedef int * int_ptr;
21148         int foo (int_ptr $ac_kw ip) {
21149         return ip[0];
21150        }
21151 int
21152 main ()
21153 {
21154 int s[1];
21155         int * $ac_kw t = s;
21156         t[0] = 0;
21157         return foo(t)
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 if ac_fn_c_try_compile "$LINENO"; then :
21163   ac_cv_c_restrict=$ac_kw
21164 fi
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166      test "$ac_cv_c_restrict" != no && break
21167    done
21168
21169 fi
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21171 $as_echo "$ac_cv_c_restrict" >&6; }
21172
21173  case $ac_cv_c_restrict in
21174    restrict) ;;
21175    no) $as_echo "#define restrict /**/" >>confdefs.h
21176  ;;
21177    *)  cat >>confdefs.h <<_ACEOF
21178 #define restrict $ac_cv_c_restrict
21179 _ACEOF
21180  ;;
21181  esac
21182
21183
21184 # If words are stored with the most significant byte first (like
21185 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21188 if test "${ac_cv_c_bigendian+set}" = set; then :
21189   $as_echo_n "(cached) " >&6
21190 else
21191   ac_cv_c_bigendian=unknown
21192     # See if we're dealing with a universal compiler.
21193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h.  */
21195 #ifndef __APPLE_CC__
21196                not a universal capable compiler
21197              #endif
21198              typedef int dummy;
21199
21200 _ACEOF
21201 if ac_fn_c_try_compile "$LINENO"; then :
21202
21203         # Check for potential -arch flags.  It is not universal unless
21204         # there are at least two -arch flags with different values.
21205         ac_arch=
21206         ac_prev=
21207         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21208          if test -n "$ac_prev"; then
21209            case $ac_word in
21210              i?86 | x86_64 | ppc | ppc64)
21211                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21212                  ac_arch=$ac_word
21213                else
21214                  ac_cv_c_bigendian=universal
21215                  break
21216                fi
21217                ;;
21218            esac
21219            ac_prev=
21220          elif test "x$ac_word" = "x-arch"; then
21221            ac_prev=arch
21222          fi
21223        done
21224 fi
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226     if test $ac_cv_c_bigendian = unknown; then
21227       # See if sys/param.h defines the BYTE_ORDER macro.
21228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h.  */
21230 #include <sys/types.h>
21231              #include <sys/param.h>
21232
21233 int
21234 main ()
21235 {
21236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21237                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21238                      && LITTLE_ENDIAN)
21239               bogus endian macros
21240              #endif
21241
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 if ac_fn_c_try_compile "$LINENO"; then :
21247   # It does; now see whether it defined to BIG_ENDIAN or not.
21248          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h.  */
21250 #include <sys/types.h>
21251                 #include <sys/param.h>
21252
21253 int
21254 main ()
21255 {
21256 #if BYTE_ORDER != BIG_ENDIAN
21257                  not big endian
21258                 #endif
21259
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 if ac_fn_c_try_compile "$LINENO"; then :
21265   ac_cv_c_bigendian=yes
21266 else
21267   ac_cv_c_bigendian=no
21268 fi
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 fi
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272     fi
21273     if test $ac_cv_c_bigendian = unknown; then
21274       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h.  */
21277 #include <limits.h>
21278
21279 int
21280 main ()
21281 {
21282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21283               bogus endian macros
21284              #endif
21285
21286   ;
21287   return 0;
21288 }
21289 _ACEOF
21290 if ac_fn_c_try_compile "$LINENO"; then :
21291   # It does; now see whether it defined to _BIG_ENDIAN or not.
21292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h.  */
21294 #include <limits.h>
21295
21296 int
21297 main ()
21298 {
21299 #ifndef _BIG_ENDIAN
21300                  not big endian
21301                 #endif
21302
21303   ;
21304   return 0;
21305 }
21306 _ACEOF
21307 if ac_fn_c_try_compile "$LINENO"; then :
21308   ac_cv_c_bigendian=yes
21309 else
21310   ac_cv_c_bigendian=no
21311 fi
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 fi
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21315     fi
21316     if test $ac_cv_c_bigendian = unknown; then
21317       # Compile a test program.
21318       if test "$cross_compiling" = yes; then :
21319   # Try to guess by grepping values from an object file.
21320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h.  */
21322 short int ascii_mm[] =
21323                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21324                 short int ascii_ii[] =
21325                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21326                 int use_ascii (int i) {
21327                   return ascii_mm[i] + ascii_ii[i];
21328                 }
21329                 short int ebcdic_ii[] =
21330                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21331                 short int ebcdic_mm[] =
21332                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21333                 int use_ebcdic (int i) {
21334                   return ebcdic_mm[i] + ebcdic_ii[i];
21335                 }
21336                 extern int foo;
21337
21338 int
21339 main ()
21340 {
21341 return use_ascii (foo) == use_ebcdic (foo);
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 if ac_fn_c_try_compile "$LINENO"; then :
21347   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21348               ac_cv_c_bigendian=yes
21349             fi
21350             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21351               if test "$ac_cv_c_bigendian" = unknown; then
21352                 ac_cv_c_bigendian=no
21353               else
21354                 # finding both strings is unlikely to happen, but who knows?
21355                 ac_cv_c_bigendian=unknown
21356               fi
21357             fi
21358 fi
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 else
21361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h.  */
21363 $ac_includes_default
21364 int
21365 main ()
21366 {
21367
21368              /* Are we little or big endian?  From Harbison&Steele.  */
21369              union
21370              {
21371                long int l;
21372                char c[sizeof (long int)];
21373              } u;
21374              u.l = 1;
21375              return u.c[sizeof (long int) - 1] == 1;
21376
21377   ;
21378   return 0;
21379 }
21380 _ACEOF
21381 if ac_fn_c_try_run "$LINENO"; then :
21382   ac_cv_c_bigendian=no
21383 else
21384   ac_cv_c_bigendian=yes
21385 fi
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21387   conftest.$ac_objext conftest.beam conftest.$ac_ext
21388 fi
21389
21390     fi
21391 fi
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21393 $as_echo "$ac_cv_c_bigendian" >&6; }
21394  case $ac_cv_c_bigendian in #(
21395    yes)
21396      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21397 ;; #(
21398    no)
21399       ;; #(
21400    universal)
21401
21402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21403
21404      ;; #(
21405    *)
21406      as_fn_error $? "unknown endianness
21407  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21408  esac
21409
21410
21411 # Define mode_t to a suitable type, if standard headers do not define it.
21412 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21413 if test "x$ac_cv_type_mode_t" = x""yes; then :
21414
21415 else
21416
21417 cat >>confdefs.h <<_ACEOF
21418 #define mode_t int
21419 _ACEOF
21420
21421 fi
21422
21423
21424 # Define off_t to a suitable type, if standard headers do not define it.
21425 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21426 if test "x$ac_cv_type_off_t" = x""yes; then :
21427
21428 else
21429
21430 cat >>confdefs.h <<_ACEOF
21431 #define off_t long int
21432 _ACEOF
21433
21434 fi
21435
21436
21437 # Define pid_t to a suitable type, if standard headers do not define it.
21438 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21439 if test "x$ac_cv_type_pid_t" = x""yes; then :
21440
21441 else
21442
21443 cat >>confdefs.h <<_ACEOF
21444 #define pid_t int
21445 _ACEOF
21446
21447 fi
21448
21449
21450 # Define size_t to a suitable type, if standard headers do not define it.
21451 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21452 if test "x$ac_cv_type_size_t" = x""yes; then :
21453
21454 else
21455
21456 cat >>confdefs.h <<_ACEOF
21457 #define size_t unsigned int
21458 _ACEOF
21459
21460 fi
21461
21462
21463 # Define ssize_t to a suitable type, if standard headers do not define it.
21464 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21465 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21466
21467 else
21468
21469 cat >>confdefs.h <<_ACEOF
21470 #define ssize_t int
21471 _ACEOF
21472
21473 fi
21474
21475
21476 # If the C compiler supports a working long double type with more range
21477 # or precision than the double type, define HAVE_LONG_DOUBLE.
21478
21479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21480 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21481 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21482   $as_echo_n "(cached) " >&6
21483 else
21484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h.  */
21486 #include <float.h>
21487             long double const a[] =
21488               {
21489                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21490                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21491               };
21492             long double
21493             f (long double x)
21494             {
21495                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21496                         + (x ? f (x) : 'c'));
21497             }
21498
21499 int
21500 main ()
21501 {
21502 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21503                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21504                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21505                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21506             && (int) LDBL_EPSILON == 0
21507           )];
21508 test_array [0] = 0
21509
21510   ;
21511   return 0;
21512 }
21513 _ACEOF
21514 if ac_fn_c_try_compile "$LINENO"; then :
21515   ac_cv_type_long_double_wider=yes
21516 else
21517   ac_cv_type_long_double_wider=no
21518 fi
21519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520 fi
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21522 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21523   if test $ac_cv_type_long_double_wider = yes; then
21524
21525 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21526
21527   fi
21528
21529
21530 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21531 # C compiler predefines it.
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21533 $as_echo_n "checking whether char is unsigned... " >&6; }
21534 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21535   $as_echo_n "(cached) " >&6
21536 else
21537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h.  */
21539 $ac_includes_default
21540 int
21541 main ()
21542 {
21543 static int test_array [1 - 2 * !(((char) -1) < 0)];
21544 test_array [0] = 0
21545
21546   ;
21547   return 0;
21548 }
21549 _ACEOF
21550 if ac_fn_c_try_compile "$LINENO"; then :
21551   ac_cv_c_char_unsigned=no
21552 else
21553   ac_cv_c_char_unsigned=yes
21554 fi
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 fi
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21558 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21559 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21560   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21561
21562 fi
21563
21564
21565 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21566 # The cast to long int works around a bug in the HP C Compiler
21567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21569 # This bug is HP SR number 8606223364.
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21571 $as_echo_n "checking size of signed short... " >&6; }
21572 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21576
21577 else
21578   if test "$ac_cv_type_signed_short" = yes; then
21579      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21581 as_fn_error 77 "cannot compute sizeof (signed short)
21582 See \`config.log' for more details" "$LINENO" 5; }
21583    else
21584      ac_cv_sizeof_signed_short=0
21585    fi
21586 fi
21587
21588 fi
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21590 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21591
21592
21593
21594 cat >>confdefs.h <<_ACEOF
21595 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21596 _ACEOF
21597
21598
21599
21600 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21601 # The cast to long int works around a bug in the HP C Compiler
21602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21604 # This bug is HP SR number 8606223364.
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21606 $as_echo_n "checking size of unsigned short... " >&6; }
21607 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21608   $as_echo_n "(cached) " >&6
21609 else
21610   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21611
21612 else
21613   if test "$ac_cv_type_unsigned_short" = yes; then
21614      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21616 as_fn_error 77 "cannot compute sizeof (unsigned short)
21617 See \`config.log' for more details" "$LINENO" 5; }
21618    else
21619      ac_cv_sizeof_unsigned_short=0
21620    fi
21621 fi
21622
21623 fi
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21625 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21626
21627
21628
21629 cat >>confdefs.h <<_ACEOF
21630 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21631 _ACEOF
21632
21633
21634
21635 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21636 # The cast to long int works around a bug in the HP C Compiler
21637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21639 # This bug is HP SR number 8606223364.
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21641 $as_echo_n "checking size of signed int... " >&6; }
21642 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21643   $as_echo_n "(cached) " >&6
21644 else
21645   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21646
21647 else
21648   if test "$ac_cv_type_signed_int" = yes; then
21649      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21651 as_fn_error 77 "cannot compute sizeof (signed int)
21652 See \`config.log' for more details" "$LINENO" 5; }
21653    else
21654      ac_cv_sizeof_signed_int=0
21655    fi
21656 fi
21657
21658 fi
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21660 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21661
21662
21663
21664 cat >>confdefs.h <<_ACEOF
21665 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21666 _ACEOF
21667
21668
21669
21670 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21671 # The cast to long int works around a bug in the HP C Compiler
21672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21674 # This bug is HP SR number 8606223364.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21676 $as_echo_n "checking size of unsigned int... " >&6; }
21677 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21678   $as_echo_n "(cached) " >&6
21679 else
21680   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21681
21682 else
21683   if test "$ac_cv_type_unsigned_int" = yes; then
21684      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21686 as_fn_error 77 "cannot compute sizeof (unsigned int)
21687 See \`config.log' for more details" "$LINENO" 5; }
21688    else
21689      ac_cv_sizeof_unsigned_int=0
21690    fi
21691 fi
21692
21693 fi
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21695 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21696
21697
21698
21699 cat >>confdefs.h <<_ACEOF
21700 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21701 _ACEOF
21702
21703
21704
21705 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21706 # The cast to long int works around a bug in the HP C Compiler
21707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21709 # This bug is HP SR number 8606223364.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21711 $as_echo_n "checking size of signed long... " >&6; }
21712 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21713   $as_echo_n "(cached) " >&6
21714 else
21715   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21716
21717 else
21718   if test "$ac_cv_type_signed_long" = yes; then
21719      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21721 as_fn_error 77 "cannot compute sizeof (signed long)
21722 See \`config.log' for more details" "$LINENO" 5; }
21723    else
21724      ac_cv_sizeof_signed_long=0
21725    fi
21726 fi
21727
21728 fi
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21730 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21731
21732
21733
21734 cat >>confdefs.h <<_ACEOF
21735 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21736 _ACEOF
21737
21738
21739
21740 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21741 # The cast to long int works around a bug in the HP C Compiler
21742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21744 # This bug is HP SR number 8606223364.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21746 $as_echo_n "checking size of unsigned long... " >&6; }
21747 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21748   $as_echo_n "(cached) " >&6
21749 else
21750   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21751
21752 else
21753   if test "$ac_cv_type_unsigned_long" = yes; then
21754      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21756 as_fn_error 77 "cannot compute sizeof (unsigned long)
21757 See \`config.log' for more details" "$LINENO" 5; }
21758    else
21759      ac_cv_sizeof_unsigned_long=0
21760    fi
21761 fi
21762
21763 fi
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21765 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21766
21767
21768
21769 cat >>confdefs.h <<_ACEOF
21770 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21771 _ACEOF
21772
21773
21774
21775 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21776 # 'signed long long' is not supported then the value defined is zero.
21777 # The cast to long int works around a bug in the HP C Compiler
21778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21780 # This bug is HP SR number 8606223364.
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21782 $as_echo_n "checking size of signed long long... " >&6; }
21783 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21784   $as_echo_n "(cached) " >&6
21785 else
21786   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21787
21788 else
21789   if test "$ac_cv_type_signed_long_long" = yes; then
21790      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21792 as_fn_error 77 "cannot compute sizeof (signed long long)
21793 See \`config.log' for more details" "$LINENO" 5; }
21794    else
21795      ac_cv_sizeof_signed_long_long=0
21796    fi
21797 fi
21798
21799 fi
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21801 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21802
21803
21804
21805 cat >>confdefs.h <<_ACEOF
21806 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21807 _ACEOF
21808
21809
21810
21811 # Obtain size of a 'unsigned long long' and define as
21812 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
21813 # supported then the value defined is zero.
21814 # The cast to long int works around a bug in the HP C Compiler
21815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817 # This bug is HP SR number 8606223364.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21819 $as_echo_n "checking size of unsigned long long... " >&6; }
21820 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21821   $as_echo_n "(cached) " >&6
21822 else
21823   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
21824
21825 else
21826   if test "$ac_cv_type_unsigned_long_long" = yes; then
21827      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21829 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21830 See \`config.log' for more details" "$LINENO" 5; }
21831    else
21832      ac_cv_sizeof_unsigned_long_long=0
21833    fi
21834 fi
21835
21836 fi
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21838 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21839
21840
21841
21842 cat >>confdefs.h <<_ACEOF
21843 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21844 _ACEOF
21845
21846
21847
21848 # Obtain size of off_t and define as SIZEOF_OFF_T
21849 # The cast to long int works around a bug in the HP C Compiler
21850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21852 # This bug is HP SR number 8606223364.
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21854 $as_echo_n "checking size of off_t... " >&6; }
21855 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21856   $as_echo_n "(cached) " >&6
21857 else
21858   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
21859
21860 else
21861   if test "$ac_cv_type_off_t" = yes; then
21862      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21864 as_fn_error 77 "cannot compute sizeof (off_t)
21865 See \`config.log' for more details" "$LINENO" 5; }
21866    else
21867      ac_cv_sizeof_off_t=0
21868    fi
21869 fi
21870
21871 fi
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21873 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21874
21875
21876
21877 cat >>confdefs.h <<_ACEOF
21878 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21879 _ACEOF
21880
21881
21882
21883 # Obtain size of size_t and define as SIZEOF_SIZE_T
21884 # The cast to long int works around a bug in the HP C Compiler
21885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21887 # This bug is HP SR number 8606223364.
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21889 $as_echo_n "checking size of size_t... " >&6; }
21890 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21891   $as_echo_n "(cached) " >&6
21892 else
21893   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21894
21895 else
21896   if test "$ac_cv_type_size_t" = yes; then
21897      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21899 as_fn_error 77 "cannot compute sizeof (size_t)
21900 See \`config.log' for more details" "$LINENO" 5; }
21901    else
21902      ac_cv_sizeof_size_t=0
21903    fi
21904 fi
21905
21906 fi
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21908 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21909
21910
21911
21912 cat >>confdefs.h <<_ACEOF
21913 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21914 _ACEOF
21915
21916
21917
21918 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21919 # The cast to long int works around a bug in the HP C Compiler
21920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21922 # This bug is HP SR number 8606223364.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21924 $as_echo_n "checking size of ssize_t... " >&6; }
21925 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21926   $as_echo_n "(cached) " >&6
21927 else
21928   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
21929
21930 else
21931   if test "$ac_cv_type_ssize_t" = yes; then
21932      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21934 as_fn_error 77 "cannot compute sizeof (ssize_t)
21935 See \`config.log' for more details" "$LINENO" 5; }
21936    else
21937      ac_cv_sizeof_ssize_t=0
21938    fi
21939 fi
21940
21941 fi
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21943 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21944
21945
21946
21947 cat >>confdefs.h <<_ACEOF
21948 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21949 _ACEOF
21950
21951
21952
21953 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21954 # The cast to long int works around a bug in the HP C Compiler
21955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21957 # This bug is HP SR number 8606223364.
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21959 $as_echo_n "checking size of unsigned int*... " >&6; }
21960 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21961   $as_echo_n "(cached) " >&6
21962 else
21963   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
21964
21965 else
21966   if test "$ac_cv_type_unsigned_intp" = yes; then
21967      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21969 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21970 See \`config.log' for more details" "$LINENO" 5; }
21971    else
21972      ac_cv_sizeof_unsigned_intp=0
21973    fi
21974 fi
21975
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21978 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21979
21980
21981
21982 cat >>confdefs.h <<_ACEOF
21983 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21984 _ACEOF
21985
21986
21987
21988 #
21989 # Compute sized types for current CPU and compiler options.
21990 #
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21993 $as_echo_n "checking for signed 8-bit type... " >&6; }
21994 INT8_T='signed char'
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21996 $as_echo "$INT8_T" >&6; }
21997
21998
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22000 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22001 UINT8_T='unsigned char'
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22003 $as_echo "$UINT8_T" >&6; }
22004
22005
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22007 $as_echo_n "checking for signed 16-bit type... " >&6; }
22008 INT16_T='signed short'
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22010 $as_echo "$INT16_T" >&6; }
22011
22012
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22014 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22015 UINT16_T='unsigned short'
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22017 $as_echo "$UINT16_T" >&6; }
22018
22019
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22021 $as_echo_n "checking for signed 32-bit type... " >&6; }
22022 INT32_T='none'
22023 if test $ac_cv_sizeof_signed_int -eq 4; then
22024   INT32_T='signed int'
22025 elif test $ac_cv_sizeof_signed_long -eq 4; then
22026   INT32_T='signed long'
22027 fi
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22029 $as_echo "$INT32_T" >&6; }
22030
22031
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22033 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22034 UINT32_T='none'
22035 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22036   UINT32_T='unsigned int'
22037 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22038   UINT32_T='unsigned long'
22039 fi
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22041 $as_echo "$UINT32_T" >&6; }
22042
22043
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22045 $as_echo_n "checking for signed 64-bit type... " >&6; }
22046 INT64_T='none'
22047 if test $ac_cv_sizeof_signed_long -eq 8; then
22048   INT64_T='signed long'
22049 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22050   INT64_T='signed long long'
22051 fi
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22053 $as_echo "$INT64_T" >&6; }
22054
22055
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22057 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22058 UINT64_T='none'
22059 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22060   UINT64_T='unsigned long'
22061 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22062   UINT64_T='unsigned long long'
22063 fi
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22065 $as_echo "$UINT64_T" >&6; }
22066
22067
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22069 $as_echo_n "checking for unsigned maximum type... " >&6; }
22070 UINTMAX_T='none'
22071 if test "$UINT64_T" != 'none'; then
22072   UINTMAX_T=$UINT64_T
22073 elif test "$UINT32_T" != 'none'; then
22074   UINTMAX_T=$UINT32_T
22075 fi
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22077 $as_echo "$UINTMAX_T" >&6; }
22078
22079
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22081 $as_echo_n "checking for pointer difference type... " >&6; }
22082 UINTPTR_T='none'
22083 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22084   UINTPTR_T='unsigned long'
22085 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22086   UINTPTR_T='unsigned long long'
22087 fi
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22089 $as_echo "$UINTPTR_T" >&6; }
22090
22091
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22093 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h.  */
22096
22097 int
22098 main ()
22099 {
22100 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 if ac_fn_c_try_compile "$LINENO"; then :
22106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22107 $as_echo "yes" >&6; }
22108 else
22109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22112 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h.  */
22115
22116 int
22117 main ()
22118 {
22119 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 if ac_fn_c_try_compile "$LINENO"; then :
22125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22126 $as_echo "yes" >&6; }
22127
22128 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22129
22130 else
22131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22132 $as_echo "no" >&6; }
22133
22134 $as_echo "#define __func__ __FILE__" >>confdefs.h
22135
22136 fi
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138 fi
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140
22141 ########
22142 #
22143 # Check for functions
22144 #
22145 ########
22146 for ac_header in stdlib.h unistd.h
22147 do :
22148   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22151   cat >>confdefs.h <<_ACEOF
22152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22153 _ACEOF
22154
22155 fi
22156
22157 done
22158
22159 for ac_func in getpagesize
22160 do :
22161   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22162 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22163   cat >>confdefs.h <<_ACEOF
22164 #define HAVE_GETPAGESIZE 1
22165 _ACEOF
22166
22167 fi
22168 done
22169
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22171 $as_echo_n "checking for working mmap file i/o... " >&6; }
22172 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22173   $as_echo_n "(cached) " >&6
22174 else
22175   if test "$cross_compiling" = yes; then :
22176   magick_cv_func_mmap_fileio=no
22177 else
22178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h.  */
22180 $ac_includes_default
22181 /* malloc might have been renamed as rpl_malloc. */
22182 #undef malloc
22183
22184 /*
22185    This test is derived from GNU Autoconf's similar macro.
22186    The purpose of this test is to verify that files may be memory
22187    mapped, and that memory mapping and file I/O are coherent.
22188
22189    The test creates a test file, memory maps the file, updates
22190    the file using the memory map, and then reads the file using
22191    file I/O to verify that the file contains the updates.
22192 */
22193
22194 #include <fcntl.h>
22195 #include <sys/mman.h>
22196
22197 #if !STDC_HEADERS && !HAVE_STDLIB_H
22198 char *malloc ();
22199 #endif
22200
22201 /* This mess was copied from the GNU getpagesize.h.  */
22202 #if !HAVE_GETPAGESIZE
22203 /* Assume that all systems that can run configure have sys/param.h.  */
22204 # if !HAVE_SYS_PARAM_H
22205 #  define HAVE_SYS_PARAM_H 1
22206 # endif
22207
22208 # ifdef _SC_PAGESIZE
22209 #  define getpagesize() sysconf(_SC_PAGESIZE)
22210 # else /* no _SC_PAGESIZE */
22211 #  if HAVE_SYS_PARAM_H
22212 #   include <sys/param.h>
22213 #   ifdef EXEC_PAGESIZE
22214 #    define getpagesize() EXEC_PAGESIZE
22215 #   else /* no EXEC_PAGESIZE */
22216 #    ifdef NBPG
22217 #     define getpagesize() NBPG * CLSIZE
22218 #     ifndef CLSIZE
22219 #      define CLSIZE 1
22220 #     endif /* no CLSIZE */
22221 #    else /* no NBPG */
22222 #     ifdef NBPC
22223 #      define getpagesize() NBPC
22224 #     else /* no NBPC */
22225 #      ifdef PAGESIZE
22226 #       define getpagesize() PAGESIZE
22227 #      endif /* PAGESIZE */
22228 #     endif /* no NBPC */
22229 #    endif /* no NBPG */
22230 #   endif /* no EXEC_PAGESIZE */
22231 #  else /* no HAVE_SYS_PARAM_H */
22232 #   define getpagesize() 8192   /* punt totally */
22233 #  endif /* no HAVE_SYS_PARAM_H */
22234 # endif /* no _SC_PAGESIZE */
22235
22236 #endif /* no HAVE_GETPAGESIZE */
22237
22238 int
22239 main ()
22240 {
22241   char *data, *data2, *data3;
22242   int i, pagesize;
22243   int fd;
22244
22245   pagesize = getpagesize ();
22246
22247   /* First, make a file with some known garbage in it. */
22248   data = (char *) malloc (pagesize);
22249   if (!data)
22250     exit (1);
22251   for (i = 0; i < pagesize; ++i)
22252     *(data + i) = rand ();
22253   umask (0);
22254   fd = creat ("conftest.mmap", 0600);
22255   if (fd < 0)
22256     exit (1);
22257   if (write (fd, data, pagesize) != pagesize)
22258     exit (1);
22259   close (fd);
22260
22261   /* Mmap the file as read/write/shared and verify that we see the
22262   same garbage. */
22263   fd = open ("conftest.mmap", O_RDWR);
22264   if (fd < 0)
22265     exit (1);
22266   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22267   if (data2 == 0)
22268     exit (1);
22269   for (i = 0; i < pagesize; ++i)
22270     if (*(data + i) != *(data2 + i))
22271       exit (1);
22272
22273   /* Finally, make sure that changes to the mapped area
22274      percolate back to the file as seen by read().  */
22275   for (i = 0; i < pagesize; ++i)
22276     *(data2 + i) = *(data2 + i) + 1;
22277   data3 = (char *) malloc (pagesize);
22278   if (!data3)
22279     exit (1);
22280   if (read (fd, data3, pagesize) != pagesize)
22281     exit (1);
22282   for (i = 0; i < pagesize; ++i)
22283     if (*(data2 + i) != *(data3 + i))
22284       exit (1);
22285   close (fd);
22286   exit (0);
22287 }
22288 _ACEOF
22289 if ac_fn_c_try_run "$LINENO"; then :
22290   magick_cv_func_mmap_fileio=yes
22291 else
22292   magick_cv_func_mmap_fileio=no
22293 fi
22294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22295   conftest.$ac_objext conftest.beam conftest.$ac_ext
22296 fi
22297
22298 fi
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22300 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22301 if test $magick_cv_func_mmap_fileio = yes; then
22302
22303 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22304
22305 fi
22306 rm -f conftest.mmap
22307
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22309 $as_echo_n "checking whether closedir returns void... " >&6; }
22310 if test "${ac_cv_func_closedir_void+set}" = set; then :
22311   $as_echo_n "(cached) " >&6
22312 else
22313   if test "$cross_compiling" = yes; then :
22314   ac_cv_func_closedir_void=yes
22315 else
22316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h.  */
22318 $ac_includes_default
22319 #include <$ac_header_dirent>
22320 #ifndef __cplusplus
22321 int closedir ();
22322 #endif
22323
22324 int
22325 main ()
22326 {
22327 return closedir (opendir (".")) != 0;
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 if ac_fn_c_try_run "$LINENO"; then :
22333   ac_cv_func_closedir_void=no
22334 else
22335   ac_cv_func_closedir_void=yes
22336 fi
22337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22338   conftest.$ac_objext conftest.beam conftest.$ac_ext
22339 fi
22340
22341 fi
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22343 $as_echo "$ac_cv_func_closedir_void" >&6; }
22344 if test $ac_cv_func_closedir_void = yes; then
22345
22346 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22347
22348 fi
22349
22350
22351
22352
22353   for ac_header in $ac_header_list
22354 do :
22355   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22357 "
22358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22359   cat >>confdefs.h <<_ACEOF
22360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22361 _ACEOF
22362
22363 fi
22364
22365 done
22366
22367
22368
22369
22370
22371
22372
22373
22374 for ac_func in getpagesize
22375 do :
22376   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22377 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22378   cat >>confdefs.h <<_ACEOF
22379 #define HAVE_GETPAGESIZE 1
22380 _ACEOF
22381
22382 fi
22383 done
22384
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22386 $as_echo_n "checking for working mmap... " >&6; }
22387 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22388   $as_echo_n "(cached) " >&6
22389 else
22390   if test "$cross_compiling" = yes; then :
22391   ac_cv_func_mmap_fixed_mapped=no
22392 else
22393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h.  */
22395 $ac_includes_default
22396 /* malloc might have been renamed as rpl_malloc. */
22397 #undef malloc
22398
22399 /* Thanks to Mike Haertel and Jim Avera for this test.
22400    Here is a matrix of mmap possibilities:
22401         mmap private not fixed
22402         mmap private fixed at somewhere currently unmapped
22403         mmap private fixed at somewhere already mapped
22404         mmap shared not fixed
22405         mmap shared fixed at somewhere currently unmapped
22406         mmap shared fixed at somewhere already mapped
22407    For private mappings, we should verify that changes cannot be read()
22408    back from the file, nor mmap's back from the file at a different
22409    address.  (There have been systems where private was not correctly
22410    implemented like the infamous i386 svr4.0, and systems where the
22411    VM page cache was not coherent with the file system buffer cache
22412    like early versions of FreeBSD and possibly contemporary NetBSD.)
22413    For shared mappings, we should conversely verify that changes get
22414    propagated back to all the places they're supposed to be.
22415
22416    Grep wants private fixed already mapped.
22417    The main things grep needs to know about mmap are:
22418    * does it exist and is it safe to write into the mmap'd area
22419    * how to use it (BSD variants)  */
22420
22421 #include <fcntl.h>
22422 #include <sys/mman.h>
22423
22424 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22425 char *malloc ();
22426 #endif
22427
22428 /* This mess was copied from the GNU getpagesize.h.  */
22429 #ifndef HAVE_GETPAGESIZE
22430 # ifdef _SC_PAGESIZE
22431 #  define getpagesize() sysconf(_SC_PAGESIZE)
22432 # else /* no _SC_PAGESIZE */
22433 #  ifdef HAVE_SYS_PARAM_H
22434 #   include <sys/param.h>
22435 #   ifdef EXEC_PAGESIZE
22436 #    define getpagesize() EXEC_PAGESIZE
22437 #   else /* no EXEC_PAGESIZE */
22438 #    ifdef NBPG
22439 #     define getpagesize() NBPG * CLSIZE
22440 #     ifndef CLSIZE
22441 #      define CLSIZE 1
22442 #     endif /* no CLSIZE */
22443 #    else /* no NBPG */
22444 #     ifdef NBPC
22445 #      define getpagesize() NBPC
22446 #     else /* no NBPC */
22447 #      ifdef PAGESIZE
22448 #       define getpagesize() PAGESIZE
22449 #      endif /* PAGESIZE */
22450 #     endif /* no NBPC */
22451 #    endif /* no NBPG */
22452 #   endif /* no EXEC_PAGESIZE */
22453 #  else /* no HAVE_SYS_PARAM_H */
22454 #   define getpagesize() 8192   /* punt totally */
22455 #  endif /* no HAVE_SYS_PARAM_H */
22456 # endif /* no _SC_PAGESIZE */
22457
22458 #endif /* no HAVE_GETPAGESIZE */
22459
22460 int
22461 main ()
22462 {
22463   char *data, *data2, *data3;
22464   const char *cdata2;
22465   int i, pagesize;
22466   int fd, fd2;
22467
22468   pagesize = getpagesize ();
22469
22470   /* First, make a file with some known garbage in it. */
22471   data = (char *) malloc (pagesize);
22472   if (!data)
22473     return 1;
22474   for (i = 0; i < pagesize; ++i)
22475     *(data + i) = rand ();
22476   umask (0);
22477   fd = creat ("conftest.mmap", 0600);
22478   if (fd < 0)
22479     return 2;
22480   if (write (fd, data, pagesize) != pagesize)
22481     return 3;
22482   close (fd);
22483
22484   /* Next, check that the tail of a page is zero-filled.  File must have
22485      non-zero length, otherwise we risk SIGBUS for entire page.  */
22486   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22487   if (fd2 < 0)
22488     return 4;
22489   cdata2 = "";
22490   if (write (fd2, cdata2, 1) != 1)
22491     return 5;
22492   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22493   if (data2 == MAP_FAILED)
22494     return 6;
22495   for (i = 0; i < pagesize; ++i)
22496     if (*(data2 + i))
22497       return 7;
22498   close (fd2);
22499   if (munmap (data2, pagesize))
22500     return 8;
22501
22502   /* Next, try to mmap the file at a fixed address which already has
22503      something else allocated at it.  If we can, also make sure that
22504      we see the same garbage.  */
22505   fd = open ("conftest.mmap", O_RDWR);
22506   if (fd < 0)
22507     return 9;
22508   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22509                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22510     return 10;
22511   for (i = 0; i < pagesize; ++i)
22512     if (*(data + i) != *(data2 + i))
22513       return 11;
22514
22515   /* Finally, make sure that changes to the mapped area do not
22516      percolate back to the file as seen by read().  (This is a bug on
22517      some variants of i386 svr4.0.)  */
22518   for (i = 0; i < pagesize; ++i)
22519     *(data2 + i) = *(data2 + i) + 1;
22520   data3 = (char *) malloc (pagesize);
22521   if (!data3)
22522     return 12;
22523   if (read (fd, data3, pagesize) != pagesize)
22524     return 13;
22525   for (i = 0; i < pagesize; ++i)
22526     if (*(data + i) != *(data3 + i))
22527       return 14;
22528   close (fd);
22529   return 0;
22530 }
22531 _ACEOF
22532 if ac_fn_c_try_run "$LINENO"; then :
22533   ac_cv_func_mmap_fixed_mapped=yes
22534 else
22535   ac_cv_func_mmap_fixed_mapped=no
22536 fi
22537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22538   conftest.$ac_objext conftest.beam conftest.$ac_ext
22539 fi
22540
22541 fi
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22543 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22545
22546 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22547
22548 fi
22549 rm -f conftest.mmap conftest.txt
22550
22551 for ac_header in vfork.h
22552 do :
22553   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22554 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22555   cat >>confdefs.h <<_ACEOF
22556 #define HAVE_VFORK_H 1
22557 _ACEOF
22558
22559 fi
22560
22561 done
22562
22563 for ac_func in fork vfork
22564 do :
22565   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22567 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22568   cat >>confdefs.h <<_ACEOF
22569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570 _ACEOF
22571
22572 fi
22573 done
22574
22575 if test "x$ac_cv_func_fork" = xyes; then
22576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22577 $as_echo_n "checking for working fork... " >&6; }
22578 if test "${ac_cv_func_fork_works+set}" = set; then :
22579   $as_echo_n "(cached) " >&6
22580 else
22581   if test "$cross_compiling" = yes; then :
22582   ac_cv_func_fork_works=cross
22583 else
22584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h.  */
22586 $ac_includes_default
22587 int
22588 main ()
22589 {
22590
22591           /* By Ruediger Kuhlmann. */
22592           return fork () < 0;
22593
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 if ac_fn_c_try_run "$LINENO"; then :
22599   ac_cv_func_fork_works=yes
22600 else
22601   ac_cv_func_fork_works=no
22602 fi
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22604   conftest.$ac_objext conftest.beam conftest.$ac_ext
22605 fi
22606
22607 fi
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22609 $as_echo "$ac_cv_func_fork_works" >&6; }
22610
22611 else
22612   ac_cv_func_fork_works=$ac_cv_func_fork
22613 fi
22614 if test "x$ac_cv_func_fork_works" = xcross; then
22615   case $host in
22616     *-*-amigaos* | *-*-msdosdjgpp*)
22617       # Override, as these systems have only a dummy fork() stub
22618       ac_cv_func_fork_works=no
22619       ;;
22620     *)
22621       ac_cv_func_fork_works=yes
22622       ;;
22623   esac
22624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22625 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22626 fi
22627 ac_cv_func_vfork_works=$ac_cv_func_vfork
22628 if test "x$ac_cv_func_vfork" = xyes; then
22629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22630 $as_echo_n "checking for working vfork... " >&6; }
22631 if test "${ac_cv_func_vfork_works+set}" = set; then :
22632   $as_echo_n "(cached) " >&6
22633 else
22634   if test "$cross_compiling" = yes; then :
22635   ac_cv_func_vfork_works=cross
22636 else
22637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h.  */
22639 /* Thanks to Paul Eggert for this test.  */
22640 $ac_includes_default
22641 #include <sys/wait.h>
22642 #ifdef HAVE_VFORK_H
22643 # include <vfork.h>
22644 #endif
22645 /* On some sparc systems, changes by the child to local and incoming
22646    argument registers are propagated back to the parent.  The compiler
22647    is told about this with #include <vfork.h>, but some compilers
22648    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22649    static variable whose address is put into a register that is
22650    clobbered by the vfork.  */
22651 static void
22652 #ifdef __cplusplus
22653 sparc_address_test (int arg)
22654 # else
22655 sparc_address_test (arg) int arg;
22656 #endif
22657 {
22658   static pid_t child;
22659   if (!child) {
22660     child = vfork ();
22661     if (child < 0) {
22662       perror ("vfork");
22663       _exit(2);
22664     }
22665     if (!child) {
22666       arg = getpid();
22667       write(-1, "", 0);
22668       _exit (arg);
22669     }
22670   }
22671 }
22672
22673 int
22674 main ()
22675 {
22676   pid_t parent = getpid ();
22677   pid_t child;
22678
22679   sparc_address_test (0);
22680
22681   child = vfork ();
22682
22683   if (child == 0) {
22684     /* Here is another test for sparc vfork register problems.  This
22685        test uses lots of local variables, at least as many local
22686        variables as main has allocated so far including compiler
22687        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22688        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22689        reuse the register of parent for one of the local variables,
22690        since it will think that parent can't possibly be used any more
22691        in this routine.  Assigning to the local variable will thus
22692        munge parent in the parent process.  */
22693     pid_t
22694       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22695       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22696     /* Convince the compiler that p..p7 are live; otherwise, it might
22697        use the same hardware register for all 8 local variables.  */
22698     if (p != p1 || p != p2 || p != p3 || p != p4
22699         || p != p5 || p != p6 || p != p7)
22700       _exit(1);
22701
22702     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22703        from child file descriptors.  If the child closes a descriptor
22704        before it execs or exits, this munges the parent's descriptor
22705        as well.  Test for this by closing stdout in the child.  */
22706     _exit(close(fileno(stdout)) != 0);
22707   } else {
22708     int status;
22709     struct stat st;
22710
22711     while (wait(&status) != child)
22712       ;
22713     return (
22714          /* Was there some problem with vforking?  */
22715          child < 0
22716
22717          /* Did the child fail?  (This shouldn't happen.)  */
22718          || status
22719
22720          /* Did the vfork/compiler bug occur?  */
22721          || parent != getpid()
22722
22723          /* Did the file descriptor bug occur?  */
22724          || fstat(fileno(stdout), &st) != 0
22725          );
22726   }
22727 }
22728 _ACEOF
22729 if ac_fn_c_try_run "$LINENO"; then :
22730   ac_cv_func_vfork_works=yes
22731 else
22732   ac_cv_func_vfork_works=no
22733 fi
22734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22735   conftest.$ac_objext conftest.beam conftest.$ac_ext
22736 fi
22737
22738 fi
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22740 $as_echo "$ac_cv_func_vfork_works" >&6; }
22741
22742 fi;
22743 if test "x$ac_cv_func_fork_works" = xcross; then
22744   ac_cv_func_vfork_works=$ac_cv_func_vfork
22745   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22746 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22747 fi
22748
22749 if test "x$ac_cv_func_vfork_works" = xyes; then
22750
22751 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22752
22753 else
22754
22755 $as_echo "#define vfork fork" >>confdefs.h
22756
22757 fi
22758 if test "x$ac_cv_func_fork_works" = xyes; then
22759
22760 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22761
22762 fi
22763
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22765 $as_echo_n "checking for working memcmp... " >&6; }
22766 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22767   $as_echo_n "(cached) " >&6
22768 else
22769   if test "$cross_compiling" = yes; then :
22770   ac_cv_func_memcmp_working=no
22771 else
22772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h.  */
22774 $ac_includes_default
22775 int
22776 main ()
22777 {
22778
22779   /* Some versions of memcmp are not 8-bit clean.  */
22780   char c0 = '\100', c1 = '\200', c2 = '\201';
22781   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22782     return 1;
22783
22784   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22785      or more and with at least one buffer not starting on a 4-byte boundary.
22786      William Lewis provided this test program.   */
22787   {
22788     char foo[21];
22789     char bar[21];
22790     int i;
22791     for (i = 0; i < 4; i++)
22792       {
22793         char *a = foo + i;
22794         char *b = bar + i;
22795         strcpy (a, "--------01111111");
22796         strcpy (b, "--------10000000");
22797         if (memcmp (a, b, 16) >= 0)
22798           return 1;
22799       }
22800     return 0;
22801   }
22802
22803   ;
22804   return 0;
22805 }
22806 _ACEOF
22807 if ac_fn_c_try_run "$LINENO"; then :
22808   ac_cv_func_memcmp_working=yes
22809 else
22810   ac_cv_func_memcmp_working=no
22811 fi
22812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22813   conftest.$ac_objext conftest.beam conftest.$ac_ext
22814 fi
22815
22816 fi
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22818 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22819 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22820   *" memcmp.$ac_objext "* ) ;;
22821   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22822  ;;
22823 esac
22824
22825
22826 for ac_header in sys/select.h sys/socket.h
22827 do :
22828   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22829 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22831   cat >>confdefs.h <<_ACEOF
22832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22833 _ACEOF
22834
22835 fi
22836
22837 done
22838
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22840 $as_echo_n "checking types of arguments for select... " >&6; }
22841 if test "${ac_cv_func_select_args+set}" = set; then :
22842   $as_echo_n "(cached) " >&6
22843 else
22844   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22845  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22846   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22847    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h.  */
22849 $ac_includes_default
22850 #ifdef HAVE_SYS_SELECT_H
22851 # include <sys/select.h>
22852 #endif
22853 #ifdef HAVE_SYS_SOCKET_H
22854 # include <sys/socket.h>
22855 #endif
22856
22857 int
22858 main ()
22859 {
22860 extern int select ($ac_arg1,
22861                                             $ac_arg234, $ac_arg234, $ac_arg234,
22862                                             $ac_arg5);
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 if ac_fn_c_try_compile "$LINENO"; then :
22868   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22869 fi
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871   done
22872  done
22873 done
22874 # Provide a safe default value.
22875 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22876
22877 fi
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22879 $as_echo "$ac_cv_func_select_args" >&6; }
22880 ac_save_IFS=$IFS; IFS=','
22881 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22882 IFS=$ac_save_IFS
22883 shift
22884
22885 cat >>confdefs.h <<_ACEOF
22886 #define SELECT_TYPE_ARG1 $1
22887 _ACEOF
22888
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define SELECT_TYPE_ARG234 ($2)
22892 _ACEOF
22893
22894
22895 cat >>confdefs.h <<_ACEOF
22896 #define SELECT_TYPE_ARG5 ($3)
22897 _ACEOF
22898
22899 rm -f conftest*
22900
22901 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22902   $as_echo_n "(cached) " >&6
22903 else
22904   ac_cv_func_setvbuf_reversed=no
22905 fi
22906
22907
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22909 $as_echo_n "checking return type of signal handlers... " >&6; }
22910 if test "${ac_cv_type_signal+set}" = set; then :
22911   $as_echo_n "(cached) " >&6
22912 else
22913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h.  */
22915 #include <sys/types.h>
22916 #include <signal.h>
22917
22918 int
22919 main ()
22920 {
22921 return *(signal (0, 0)) (0) == 1;
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 if ac_fn_c_try_compile "$LINENO"; then :
22927   ac_cv_type_signal=int
22928 else
22929   ac_cv_type_signal=void
22930 fi
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 fi
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22934 $as_echo "$ac_cv_type_signal" >&6; }
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define RETSIGTYPE $ac_cv_type_signal
22938 _ACEOF
22939
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22942 $as_echo_n "checking for working strtod... " >&6; }
22943 if test "${ac_cv_func_strtod+set}" = set; then :
22944   $as_echo_n "(cached) " >&6
22945 else
22946   if test "$cross_compiling" = yes; then :
22947   ac_cv_func_strtod=no
22948 else
22949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22950 /* end confdefs.h.  */
22951
22952 $ac_includes_default
22953 #ifndef strtod
22954 double strtod ();
22955 #endif
22956 int
22957 main()
22958 {
22959   {
22960     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22961     char *string = " +69";
22962     char *term;
22963     double value;
22964     value = strtod (string, &term);
22965     if (value != 69 || term != (string + 4))
22966       return 1;
22967   }
22968
22969   {
22970     /* Under Solaris 2.4, strtod returns the wrong value for the
22971        terminating character under some conditions.  */
22972     char *string = "NaN";
22973     char *term;
22974     strtod (string, &term);
22975     if (term != string && *(term - 1) == 0)
22976       return 1;
22977   }
22978   return 0;
22979 }
22980
22981 _ACEOF
22982 if ac_fn_c_try_run "$LINENO"; then :
22983   ac_cv_func_strtod=yes
22984 else
22985   ac_cv_func_strtod=no
22986 fi
22987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22988   conftest.$ac_objext conftest.beam conftest.$ac_ext
22989 fi
22990
22991 fi
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22993 $as_echo "$ac_cv_func_strtod" >&6; }
22994 if test $ac_cv_func_strtod = no; then
22995   case " $LIBOBJS " in
22996   *" strtod.$ac_objext "* ) ;;
22997   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22998  ;;
22999 esac
23000
23001 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23002 if test "x$ac_cv_func_pow" = x""yes; then :
23003
23004 fi
23005
23006 if test $ac_cv_func_pow = no; then
23007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23008 $as_echo_n "checking for pow in -lm... " >&6; }
23009 if test "${ac_cv_lib_m_pow+set}" = set; then :
23010   $as_echo_n "(cached) " >&6
23011 else
23012   ac_check_lib_save_LIBS=$LIBS
23013 LIBS="-lm  $LIBS"
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h.  */
23016
23017 /* Override any GCC internal prototype to avoid an error.
23018    Use char because int might match the return type of a GCC
23019    builtin and then its argument prototype would still apply.  */
23020 #ifdef __cplusplus
23021 extern "C"
23022 #endif
23023 char pow ();
23024 int
23025 main ()
23026 {
23027 return pow ();
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 if ac_fn_c_try_link "$LINENO"; then :
23033   ac_cv_lib_m_pow=yes
23034 else
23035   ac_cv_lib_m_pow=no
23036 fi
23037 rm -f core conftest.err conftest.$ac_objext \
23038     conftest$ac_exeext conftest.$ac_ext
23039 LIBS=$ac_check_lib_save_LIBS
23040 fi
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23042 $as_echo "$ac_cv_lib_m_pow" >&6; }
23043 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23044   POW_LIB=-lm
23045 else
23046   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23047 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23048 fi
23049
23050 fi
23051
23052 fi
23053
23054 for ac_func in vprintf
23055 do :
23056   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23057 if test "x$ac_cv_func_vprintf" = x""yes; then :
23058   cat >>confdefs.h <<_ACEOF
23059 #define HAVE_VPRINTF 1
23060 _ACEOF
23061
23062 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23063 if test "x$ac_cv_func__doprnt" = x""yes; then :
23064
23065 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23066
23067 fi
23068
23069 fi
23070 done
23071
23072
23073
23074 #
23075 # Find math library
23076 #
23077 MATH_LIBS=''
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23079 $as_echo_n "checking for sqrt in -lm... " >&6; }
23080 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23081   $as_echo_n "(cached) " >&6
23082 else
23083   ac_check_lib_save_LIBS=$LIBS
23084 LIBS="-lm  $LIBS"
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087
23088 /* Override any GCC internal prototype to avoid an error.
23089    Use char because int might match the return type of a GCC
23090    builtin and then its argument prototype would still apply.  */
23091 #ifdef __cplusplus
23092 extern "C"
23093 #endif
23094 char sqrt ();
23095 int
23096 main ()
23097 {
23098 return sqrt ();
23099   ;
23100   return 0;
23101 }
23102 _ACEOF
23103 if ac_fn_c_try_link "$LINENO"; then :
23104   ac_cv_lib_m_sqrt=yes
23105 else
23106   ac_cv_lib_m_sqrt=no
23107 fi
23108 rm -f core conftest.err conftest.$ac_objext \
23109     conftest$ac_exeext conftest.$ac_ext
23110 LIBS=$ac_check_lib_save_LIBS
23111 fi
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23113 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23114 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23115   MATH_LIBS="-lm"
23116 fi
23117
23118 LIBS="$MATH_LIBS $LIBS"
23119
23120
23121 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
23122 do :
23123   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23126   cat >>confdefs.h <<_ACEOF
23127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23128 _ACEOF
23129
23130 fi
23131 done
23132
23133
23134 #
23135 # Check for clock_gettime().
23136 #
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23138 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23139 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23140   $as_echo_n "(cached) " >&6
23141 else
23142   ac_func_search_save_LIBS=$LIBS
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h.  */
23145
23146 /* Override any GCC internal prototype to avoid an error.
23147    Use char because int might match the return type of a GCC
23148    builtin and then its argument prototype would still apply.  */
23149 #ifdef __cplusplus
23150 extern "C"
23151 #endif
23152 char clock_gettime ();
23153 int
23154 main ()
23155 {
23156 return clock_gettime ();
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 for ac_lib in '' rt; do
23162   if test -z "$ac_lib"; then
23163     ac_res="none required"
23164   else
23165     ac_res=-l$ac_lib
23166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23167   fi
23168   if ac_fn_c_try_link "$LINENO"; then :
23169   ac_cv_search_clock_gettime=$ac_res
23170 fi
23171 rm -f core conftest.err conftest.$ac_objext \
23172     conftest$ac_exeext
23173   if test "${ac_cv_search_clock_gettime+set}" = set; then :
23174   break
23175 fi
23176 done
23177 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23178
23179 else
23180   ac_cv_search_clock_gettime=no
23181 fi
23182 rm conftest.$ac_ext
23183 LIBS=$ac_func_search_save_LIBS
23184 fi
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23186 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23187 ac_res=$ac_cv_search_clock_gettime
23188 if test "$ac_res" != no; then :
23189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23190
23191
23192 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23193
23194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23195 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h.  */
23198 #include <time.h>
23199 int
23200 main ()
23201 {
23202 clockid_t clockType = CLOCK_REALTIME;
23203   ;
23204   return 0;
23205 }
23206 _ACEOF
23207 if ac_fn_c_try_compile "$LINENO"; then :
23208
23209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23210 $as_echo "yes" >&6; }
23211
23212 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23213
23214
23215 else
23216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23217 $as_echo "no" >&6; }
23218
23219 fi
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221
23222 else
23223
23224     for ac_func in gettimeofday ftime
23225 do :
23226   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23229   cat >>confdefs.h <<_ACEOF
23230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23231 _ACEOF
23232  break
23233 fi
23234 done
23235
23236
23237
23238 fi
23239
23240
23241 ########
23242 #
23243 # Check for function prototypes
23244 #
23245 ########
23246
23247 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23248 #include <unistd.h>
23249 "
23250 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23251   ac_have_decl=1
23252 else
23253   ac_have_decl=0
23254 fi
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_DECL_PREAD $ac_have_decl
23258 _ACEOF
23259 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23260 #include <unistd.h>
23261 "
23262 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23263   ac_have_decl=1
23264 else
23265   ac_have_decl=0
23266 fi
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_DECL_PWRITE $ac_have_decl
23270 _ACEOF
23271
23272
23273 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23274 #include <strings.h>
23275 "
23276 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23277   ac_have_decl=1
23278 else
23279   ac_have_decl=0
23280 fi
23281
23282 cat >>confdefs.h <<_ACEOF
23283 #define HAVE_DECL_STRLCPY $ac_have_decl
23284 _ACEOF
23285
23286
23287 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23288 #include <stdio.h>
23289 #include <stdarg.h>
23290 "
23291 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23292   ac_have_decl=1
23293 else
23294   ac_have_decl=0
23295 fi
23296
23297 cat >>confdefs.h <<_ACEOF
23298 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23299 _ACEOF
23300
23301
23302 ########
23303 #
23304 # C++ Support Tests (For Magick++)
23305 #
23306 ########
23307 have_magick_plus_plus='no'
23308 if test "$with_magick_plus_plus" = 'yes'; then
23309     OLIBS="$LIBS"
23310     LIBS=''
23311     ac_ext=cpp
23312 ac_cpp='$CXXCPP $CPPFLAGS'
23313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23316
23317
23318     # Full set of headers used...
23319     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23320     # functional iomanip iosfwd iostream iterator list string strstream utility
23321     ac_ext=cpp
23322 ac_cpp='$CXXCPP $CPPFLAGS'
23323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23326
23327     ac_ext=cpp
23328 ac_cpp='$CXXCPP $CPPFLAGS'
23329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23332 if test -z "$CXX"; then
23333   if test -n "$CCC"; then
23334     CXX=$CCC
23335   else
23336     if test -n "$ac_tool_prefix"; then
23337   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23338   do
23339     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23342 $as_echo_n "checking for $ac_word... " >&6; }
23343 if test "${ac_cv_prog_CXX+set}" = set; then :
23344   $as_echo_n "(cached) " >&6
23345 else
23346   if test -n "$CXX"; then
23347   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23348 else
23349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23350 for as_dir in $PATH
23351 do
23352   IFS=$as_save_IFS
23353   test -z "$as_dir" && as_dir=.
23354     for ac_exec_ext in '' $ac_executable_extensions; do
23355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23356     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23358     break 2
23359   fi
23360 done
23361   done
23362 IFS=$as_save_IFS
23363
23364 fi
23365 fi
23366 CXX=$ac_cv_prog_CXX
23367 if test -n "$CXX"; then
23368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23369 $as_echo "$CXX" >&6; }
23370 else
23371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23372 $as_echo "no" >&6; }
23373 fi
23374
23375
23376     test -n "$CXX" && break
23377   done
23378 fi
23379 if test -z "$CXX"; then
23380   ac_ct_CXX=$CXX
23381   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23382 do
23383   # Extract the first word of "$ac_prog", so it can be a program name with args.
23384 set dummy $ac_prog; ac_word=$2
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23386 $as_echo_n "checking for $ac_word... " >&6; }
23387 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23388   $as_echo_n "(cached) " >&6
23389 else
23390   if test -n "$ac_ct_CXX"; then
23391   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23392 else
23393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23394 for as_dir in $PATH
23395 do
23396   IFS=$as_save_IFS
23397   test -z "$as_dir" && as_dir=.
23398     for ac_exec_ext in '' $ac_executable_extensions; do
23399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23400     ac_cv_prog_ac_ct_CXX="$ac_prog"
23401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23402     break 2
23403   fi
23404 done
23405   done
23406 IFS=$as_save_IFS
23407
23408 fi
23409 fi
23410 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23411 if test -n "$ac_ct_CXX"; then
23412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23413 $as_echo "$ac_ct_CXX" >&6; }
23414 else
23415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23417 fi
23418
23419
23420   test -n "$ac_ct_CXX" && break
23421 done
23422
23423   if test "x$ac_ct_CXX" = x; then
23424     CXX="g++"
23425   else
23426     case $cross_compiling:$ac_tool_warned in
23427 yes:)
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23430 ac_tool_warned=yes ;;
23431 esac
23432     CXX=$ac_ct_CXX
23433   fi
23434 fi
23435
23436   fi
23437 fi
23438 # Provide some information about the compiler.
23439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23440 set X $ac_compile
23441 ac_compiler=$2
23442 for ac_option in --version -v -V -qversion; do
23443   { { ac_try="$ac_compiler $ac_option >&5"
23444 case "(($ac_try" in
23445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446   *) ac_try_echo=$ac_try;;
23447 esac
23448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23449 $as_echo "$ac_try_echo"; } >&5
23450   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23451   ac_status=$?
23452   if test -s conftest.err; then
23453     sed '10a\
23454 ... rest of stderr output deleted ...
23455          10q' conftest.err >conftest.er1
23456     cat conftest.er1 >&5
23457   fi
23458   rm -f conftest.er1 conftest.err
23459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460   test $ac_status = 0; }
23461 done
23462
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23464 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23466   $as_echo_n "(cached) " >&6
23467 else
23468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469 /* end confdefs.h.  */
23470
23471 int
23472 main ()
23473 {
23474 #ifndef __GNUC__
23475        choke me
23476 #endif
23477
23478   ;
23479   return 0;
23480 }
23481 _ACEOF
23482 if ac_fn_cxx_try_compile "$LINENO"; then :
23483   ac_compiler_gnu=yes
23484 else
23485   ac_compiler_gnu=no
23486 fi
23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23489
23490 fi
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23492 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23493 if test $ac_compiler_gnu = yes; then
23494   GXX=yes
23495 else
23496   GXX=
23497 fi
23498 ac_test_CXXFLAGS=${CXXFLAGS+set}
23499 ac_save_CXXFLAGS=$CXXFLAGS
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23501 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23502 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23503   $as_echo_n "(cached) " >&6
23504 else
23505   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23506    ac_cxx_werror_flag=yes
23507    ac_cv_prog_cxx_g=no
23508    CXXFLAGS="-g"
23509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23510 /* end confdefs.h.  */
23511
23512 int
23513 main ()
23514 {
23515
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 if ac_fn_cxx_try_compile "$LINENO"; then :
23521   ac_cv_prog_cxx_g=yes
23522 else
23523   CXXFLAGS=""
23524       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h.  */
23526
23527 int
23528 main ()
23529 {
23530
23531   ;
23532   return 0;
23533 }
23534 _ACEOF
23535 if ac_fn_cxx_try_compile "$LINENO"; then :
23536
23537 else
23538   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23539          CXXFLAGS="-g"
23540          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541 /* end confdefs.h.  */
23542
23543 int
23544 main ()
23545 {
23546
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 if ac_fn_cxx_try_compile "$LINENO"; then :
23552   ac_cv_prog_cxx_g=yes
23553 fi
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 fi
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 fi
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23560 fi
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23562 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23563 if test "$ac_test_CXXFLAGS" = set; then
23564   CXXFLAGS=$ac_save_CXXFLAGS
23565 elif test $ac_cv_prog_cxx_g = yes; then
23566   if test "$GXX" = yes; then
23567     CXXFLAGS="-g -O2"
23568   else
23569     CXXFLAGS="-g"
23570   fi
23571 else
23572   if test "$GXX" = yes; then
23573     CXXFLAGS="-O2"
23574   else
23575     CXXFLAGS=
23576   fi
23577 fi
23578 ac_ext=cpp
23579 ac_cpp='$CXXCPP $CPPFLAGS'
23580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23583
23584 depcc="$CXX"  am_compiler_list=
23585
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23587 $as_echo_n "checking dependency style of $depcc... " >&6; }
23588 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23589   $as_echo_n "(cached) " >&6
23590 else
23591   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23592   # We make a subdir and do the tests there.  Otherwise we can end up
23593   # making bogus files that we don't know about and never remove.  For
23594   # instance it was reported that on HP-UX the gcc test will end up
23595   # making a dummy file named `D' -- because `-MD' means `put the output
23596   # in D'.
23597   mkdir conftest.dir
23598   # Copy depcomp to subdir because otherwise we won't find it if we're
23599   # using a relative directory.
23600   cp "$am_depcomp" conftest.dir
23601   cd conftest.dir
23602   # We will build objects and dependencies in a subdirectory because
23603   # it helps to detect inapplicable dependency modes.  For instance
23604   # both Tru64's cc and ICC support -MD to output dependencies as a
23605   # side effect of compilation, but ICC will put the dependencies in
23606   # the current directory while Tru64 will put them in the object
23607   # directory.
23608   mkdir sub
23609
23610   am_cv_CXX_dependencies_compiler_type=none
23611   if test "$am_compiler_list" = ""; then
23612      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23613   fi
23614   am__universal=false
23615   case " $depcc " in #(
23616      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23617      esac
23618
23619   for depmode in $am_compiler_list; do
23620     # Setup a source with many dependencies, because some compilers
23621     # like to wrap large dependency lists on column 80 (with \), and
23622     # we should not choose a depcomp mode which is confused by this.
23623     #
23624     # We need to recreate these files for each test, as the compiler may
23625     # overwrite some of them when testing with obscure command lines.
23626     # This happens at least with the AIX C compiler.
23627     : > sub/conftest.c
23628     for i in 1 2 3 4 5 6; do
23629       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23630       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23631       # Solaris 8's {/usr,}/bin/sh.
23632       touch sub/conftst$i.h
23633     done
23634     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23635
23636     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23637     # mode.  It turns out that the SunPro C++ compiler does not properly
23638     # handle `-M -o', and we need to detect this.  Also, some Intel
23639     # versions had trouble with output in subdirs
23640     am__obj=sub/conftest.${OBJEXT-o}
23641     am__minus_obj="-o $am__obj"
23642     case $depmode in
23643     gcc)
23644       # This depmode causes a compiler race in universal mode.
23645       test "$am__universal" = false || continue
23646       ;;
23647     nosideeffect)
23648       # after this tag, mechanisms are not by side-effect, so they'll
23649       # only be used when explicitly requested
23650       if test "x$enable_dependency_tracking" = xyes; then
23651         continue
23652       else
23653         break
23654       fi
23655       ;;
23656     msvisualcpp | msvcmsys)
23657       # This compiler won't grok `-c -o', but also, the minuso test has
23658       # not run yet.  These depmodes are late enough in the game, and
23659       # so weak that their functioning should not be impacted.
23660       am__obj=conftest.${OBJEXT-o}
23661       am__minus_obj=
23662       ;;
23663     none) break ;;
23664     esac
23665     if depmode=$depmode \
23666        source=sub/conftest.c object=$am__obj \
23667        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23668        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23669          >/dev/null 2>conftest.err &&
23670        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23671        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23672        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23673        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23674       # icc doesn't choke on unknown options, it will just issue warnings
23675       # or remarks (even with -Werror).  So we grep stderr for any message
23676       # that says an option was ignored or not supported.
23677       # When given -MP, icc 7.0 and 7.1 complain thusly:
23678       #   icc: Command line warning: ignoring option '-M'; no argument required
23679       # The diagnosis changed in icc 8.0:
23680       #   icc: Command line remark: option '-MP' not supported
23681       if (grep 'ignoring option' conftest.err ||
23682           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23683         am_cv_CXX_dependencies_compiler_type=$depmode
23684         break
23685       fi
23686     fi
23687   done
23688
23689   cd ..
23690   rm -rf conftest.dir
23691 else
23692   am_cv_CXX_dependencies_compiler_type=none
23693 fi
23694
23695 fi
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23697 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23698 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23699
23700  if
23701   test "x$enable_dependency_tracking" != xno \
23702   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23703   am__fastdepCXX_TRUE=
23704   am__fastdepCXX_FALSE='#'
23705 else
23706   am__fastdepCXX_TRUE='#'
23707   am__fastdepCXX_FALSE=
23708 fi
23709
23710
23711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23712 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23713 if test "${ax_cv_cxx_bool+set}" = set; then :
23714   $as_echo_n "(cached) " >&6
23715 else
23716
23717  ac_ext=cpp
23718 ac_cpp='$CXXCPP $CPPFLAGS'
23719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23722
23723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h.  */
23725
23726 int f(int  x){return 1;}
23727 int f(char x){return 1;}
23728 int f(bool x){return 1;}
23729
23730 int
23731 main ()
23732 {
23733 bool b = true; return f(b);
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 if ac_fn_cxx_try_compile "$LINENO"; then :
23739   ax_cv_cxx_bool=yes
23740 else
23741   ax_cv_cxx_bool=no
23742 fi
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744  ac_ext=cpp
23745 ac_cpp='$CXXCPP $CPPFLAGS'
23746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23749
23750
23751 fi
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23753 $as_echo "$ax_cv_cxx_bool" >&6; }
23754 if test "$ax_cv_cxx_bool" = yes; then
23755
23756 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23757
23758 fi
23759
23760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23761 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23762 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23763   $as_echo_n "(cached) " >&6
23764 else
23765
23766  ac_ext=cpp
23767 ac_cpp='$CXXCPP $CPPFLAGS'
23768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23771
23772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23773 /* end confdefs.h.  */
23774 namespace Outer { namespace Inner { int i = 0; }}
23775 int
23776 main ()
23777 {
23778 using namespace Outer::Inner; return i;
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 if ac_fn_cxx_try_compile "$LINENO"; then :
23784   ax_cv_cxx_namespaces=yes
23785 else
23786   ax_cv_cxx_namespaces=no
23787 fi
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789  ac_ext=cpp
23790 ac_cpp='$CXXCPP $CPPFLAGS'
23791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23794
23795
23796 fi
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23798 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23799 if test "$ax_cv_cxx_namespaces" = yes; then
23800
23801 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23802
23803 fi
23804
23805
23806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23807 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23808 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23809   $as_echo_n "(cached) " >&6
23810 else
23811
23812   ac_ext=cpp
23813 ac_cpp='$CXXCPP $CPPFLAGS'
23814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23817
23818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h.  */
23820 #include <iostream>
23821                   std::istream& is = std::cin;
23822 int
23823 main ()
23824 {
23825
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 if ac_fn_cxx_try_compile "$LINENO"; then :
23831   ax_cv_cxx_have_std_namespace=yes
23832 else
23833   ax_cv_cxx_have_std_namespace=no
23834 fi
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836   ac_ext=cpp
23837 ac_cpp='$CXXCPP $CPPFLAGS'
23838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23841
23842
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23845 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23846   if test "$ax_cv_cxx_have_std_namespace" = yes; then
23847
23848 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23849
23850   fi
23851
23852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23853 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23854 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23855   $as_echo_n "(cached) " >&6
23856 else
23857
23858
23859  ac_ext=cpp
23860 ac_cpp='$CXXCPP $CPPFLAGS'
23861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23864
23865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h.  */
23867 #include <iostream>
23868 #include <map>
23869 #include <iomanip>
23870 #include <cmath>
23871 #ifdef HAVE_NAMESPACES
23872 using namespace std;
23873 #endif
23874 int
23875 main ()
23876 {
23877 return 0;
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 if ac_fn_cxx_try_compile "$LINENO"; then :
23883   ac_cv_cxx_have_std_libs=yes
23884 else
23885   ac_cv_cxx_have_std_libs=no
23886 fi
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888  ac_ext=cpp
23889 ac_cpp='$CXXCPP $CPPFLAGS'
23890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23893
23894
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23897 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23898 if test "$ac_cv_cxx_have_std_libs" = yes; then
23899
23900 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23901
23902 fi
23903
23904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23905 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23906 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23907   $as_echo_n "(cached) " >&6
23908 else
23909
23910  ac_ext=cpp
23911 ac_cpp='$CXXCPP $CPPFLAGS'
23912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23915
23916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h.  */
23918 const wchar_t* s=L"wide string";
23919 _ACEOF
23920 if ac_fn_cxx_try_compile "$LINENO"; then :
23921   ac_cv_cxx_have_lstring=yes
23922 else
23923   ac_cv_cxx_have_lstring=no
23924 fi
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23926  ac_ext=cpp
23927 ac_cpp='$CXXCPP $CPPFLAGS'
23928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23931
23932
23933 fi
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23935 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23936 if test "$ac_cv_cxx_have_lstring" = yes; then
23937
23938 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23939
23940 fi
23941
23942
23943   OPENMP_CXXFLAGS=
23944   # Check whether --enable-openmp was given.
23945 if test "${enable_openmp+set}" = set; then :
23946   enableval=$enable_openmp;
23947 fi
23948
23949   if test "$enable_openmp" != no; then
23950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23951 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23952 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23953   $as_echo_n "(cached) " >&6
23954 else
23955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h.  */
23957
23958 #ifndef _OPENMP
23959  choke me
23960 #endif
23961 #include <omp.h>
23962 int main () { return omp_get_num_threads (); }
23963
23964 _ACEOF
23965 if ac_fn_cxx_try_link "$LINENO"; then :
23966   ac_cv_prog_cxx_openmp='none needed'
23967 else
23968   ac_cv_prog_cxx_openmp='unsupported'
23969                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23970             ac_save_CXXFLAGS=$CXXFLAGS
23971             CXXFLAGS="$CXXFLAGS $ac_option"
23972             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h.  */
23974
23975 #ifndef _OPENMP
23976  choke me
23977 #endif
23978 #include <omp.h>
23979 int main () { return omp_get_num_threads (); }
23980
23981 _ACEOF
23982 if ac_fn_cxx_try_link "$LINENO"; then :
23983   ac_cv_prog_cxx_openmp=$ac_option
23984 fi
23985 rm -f core conftest.err conftest.$ac_objext \
23986     conftest$ac_exeext conftest.$ac_ext
23987             CXXFLAGS=$ac_save_CXXFLAGS
23988             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23989               break
23990             fi
23991           done
23992 fi
23993 rm -f core conftest.err conftest.$ac_objext \
23994     conftest$ac_exeext conftest.$ac_ext
23995 fi
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23997 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23998     case $ac_cv_prog_cxx_openmp in #(
23999       "none needed" | unsupported)
24000         ;; #(
24001       *)
24002         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24003     esac
24004   fi
24005
24006
24007     ac_ext=c
24008 ac_cpp='$CPP $CPPFLAGS'
24009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24012
24013
24014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24015 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24016     if \
24017         test $ax_cv_cxx_bool = 'yes' && \
24018         test $ac_cv_cxx_have_lstring = 'yes' && \
24019         test $ax_cv_cxx_namespaces = 'yes' && \
24020         test $ac_cv_cxx_have_std_libs = 'yes' && \
24021         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24022         have_magick_plus_plus='yes'
24023     else
24024         have_magick_plus_plus='no (failed tests)'
24025     fi
24026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24027 $as_echo "$have_magick_plus_plus" >&6; }
24028     LIBS="$OLIBS"
24029 fi
24030  if test "$have_magick_plus_plus" = 'yes'; then
24031   WITH_MAGICK_PLUS_PLUS_TRUE=
24032   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24033 else
24034   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24035   WITH_MAGICK_PLUS_PLUS_FALSE=
24036 fi
24037
24038
24039 # Only check for delegate libraries in subdirectories if requested.
24040 if test "$enable_delegate_build" != 'no'; then
24041     # Check for delegate sub-directories and add -I & -L options as required.
24042     # This presumes that delegates are installed as detailed in the ImageMagick
24043     # README. If delegates are installed in a standard location where the
24044     # compiler will automatically find them then these options should not be
24045     # required.
24046
24047     #
24048     # Most delegates have includes in the same directory as the library, but not all...
24049     #
24050     # Includes
24051     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
24052         if test -d "$builddir/$dir"; then
24053             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24054         else
24055             if test -d "$srcdirfull/$dir"; then
24056                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24057             fi
24058         fi
24059     done
24060
24061     # Libraries
24062     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
24063     if test -d "$builddir/$dir/.libs"; then
24064         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24065     else
24066         if test -d "$srcdirfull/$dir/.libs"; then
24067             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24068         fi
24069     fi
24070     if test -d "$builddir/$dir"; then
24071         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24072     else
24073         if test -d "$srcdirfull/$dir"; then
24074             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24075         fi
24076     fi
24077   done
24078 fi
24079
24080 # Assume that delegate headers reside under same directory as ImageMagick
24081 # installation prefix.
24082 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24083
24084 #
24085 # Find the X11 RGB database
24086 #
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24088 $as_echo_n "checking for X11 configure files... " >&6; }
24089 if test "${im_cv_x_configure+set}" = set; then :
24090   $as_echo_n "(cached) " >&6
24091 else
24092   # Look for the header file in a standard set of common directories.
24093 # Check X11 before X11Rn because it is often a symlink to the current release.
24094     for ac_dir in          \
24095     /lib/usr/lib/X11       \
24096     /usr/X11/lib           \
24097     /usr/X11R4/lib         \
24098     /usr/X11R5/lib         \
24099     /usr/X11R6/lib         \
24100     /usr/X11R7/lib         \
24101     /usr/X386/lib          \
24102     /usr/XFree86/lib/X11   \
24103     /usr/athena/lib        \
24104     /usr/lib               \
24105     /usr/lib/X11           \
24106     /usr/lib/X11R4         \
24107     /usr/lib/X11R5         \
24108     /usr/lib/X11R6         \
24109     /usr/lib/X11R7         \
24110     /usr/local/X11/lib     \
24111     /usr/local/X11R4/lib   \
24112     /usr/local/X11R5/lib   \
24113     /usr/local/X11R6/lib   \
24114     /usr/local/lib         \
24115     /usr/local/lib/X11     \
24116     /usr/local/lib/X11R4   \
24117     /usr/local/lib/X11R5   \
24118     /usr/local/lib/X11R6   \
24119     /usr/local/lib/X11R7   \
24120     /usr/local/x11r5/lib   \
24121     /usr/lpp/Xamples/lib   \
24122     /usr/openwin/lib       \
24123     /usr/openwin/share/lib \
24124     /usr/unsupported/lib   \
24125     /usr/x386/lib          \
24126     ; do
24127     if test -f "$ac_dir/X11/rgb.txt"; then
24128       im_cv_x_configure="$ac_dir/X11/"
24129       break
24130     elif test -f "$ac_dir/rgb.txt"; then
24131       im_cv_x_configure="$ac_dir/"
24132       break
24133     fi
24134
24135   done
24136 fi
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24138 $as_echo "$im_cv_x_configure" >&6; }
24139 X11_CONFIGURE_PATH="$im_cv_x_configure"
24140 case "${build_os}" in
24141   mingw* )
24142     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24143   ;;
24144 esac
24145
24146 cat >>confdefs.h <<_ACEOF
24147 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24148 _ACEOF
24149
24150
24151 #
24152 # Find OpenMP library
24153 #
24154 GOMP_LIBS=''
24155 if test "$enable_openmp" != 'no'; then
24156   if test "${GCC}" = "yes"; then
24157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24158 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24159 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24160   $as_echo_n "(cached) " >&6
24161 else
24162   ac_check_lib_save_LIBS=$LIBS
24163 LIBS="-lgomp  $LIBS"
24164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h.  */
24166
24167 /* Override any GCC internal prototype to avoid an error.
24168    Use char because int might match the return type of a GCC
24169    builtin and then its argument prototype would still apply.  */
24170 #ifdef __cplusplus
24171 extern "C"
24172 #endif
24173 char GOMP_parallel_start ();
24174 int
24175 main ()
24176 {
24177 return GOMP_parallel_start ();
24178   ;
24179   return 0;
24180 }
24181 _ACEOF
24182 if ac_fn_c_try_link "$LINENO"; then :
24183   ac_cv_lib_gomp_GOMP_parallel_start=yes
24184 else
24185   ac_cv_lib_gomp_GOMP_parallel_start=no
24186 fi
24187 rm -f core conftest.err conftest.$ac_objext \
24188     conftest$ac_exeext conftest.$ac_ext
24189 LIBS=$ac_check_lib_save_LIBS
24190 fi
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24192 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24193 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24194   GOMP_LIBS="-lgomp"
24195 fi
24196   # gcc
24197   else
24198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24199 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24200 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24201   $as_echo_n "(cached) " >&6
24202 else
24203   ac_check_lib_save_LIBS=$LIBS
24204 LIBS="-lmtsk  $LIBS"
24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h.  */
24207
24208 /* Override any GCC internal prototype to avoid an error.
24209    Use char because int might match the return type of a GCC
24210    builtin and then its argument prototype would still apply.  */
24211 #ifdef __cplusplus
24212 extern "C"
24213 #endif
24214 char sunw_mp_register_warn ();
24215 int
24216 main ()
24217 {
24218 return sunw_mp_register_warn ();
24219   ;
24220   return 0;
24221 }
24222 _ACEOF
24223 if ac_fn_c_try_link "$LINENO"; then :
24224   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24225 else
24226   ac_cv_lib_mtsk_sunw_mp_register_warn=no
24227 fi
24228 rm -f core conftest.err conftest.$ac_objext \
24229     conftest$ac_exeext conftest.$ac_ext
24230 LIBS=$ac_check_lib_save_LIBS
24231 fi
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24233 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24234 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24235   GOMP_LIBS="-lmtsk"
24236 fi
24237   # solaris cc
24238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24239 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24240 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24241   $as_echo_n "(cached) " >&6
24242 else
24243   ac_check_lib_save_LIBS=$LIBS
24244 LIBS="-lxlsmp  $LIBS"
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h.  */
24247
24248 /* Override any GCC internal prototype to avoid an error.
24249    Use char because int might match the return type of a GCC
24250    builtin and then its argument prototype would still apply.  */
24251 #ifdef __cplusplus
24252 extern "C"
24253 #endif
24254 char _xlsmpFlush ();
24255 int
24256 main ()
24257 {
24258 return _xlsmpFlush ();
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 if ac_fn_c_try_link "$LINENO"; then :
24264   ac_cv_lib_xlsmp__xlsmpFlush=yes
24265 else
24266   ac_cv_lib_xlsmp__xlsmpFlush=no
24267 fi
24268 rm -f core conftest.err conftest.$ac_objext \
24269     conftest$ac_exeext conftest.$ac_ext
24270 LIBS=$ac_check_lib_save_LIBS
24271 fi
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24273 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24274 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24275   GOMP_LIBS="-lxlsmp"
24276 fi
24277   # AIX xlc
24278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24279 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24280 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24281   $as_echo_n "(cached) " >&6
24282 else
24283   ac_check_lib_save_LIBS=$LIBS
24284 LIBS="-lmp  $LIBS"
24285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h.  */
24287
24288 /* Override any GCC internal prototype to avoid an error.
24289    Use char because int might match the return type of a GCC
24290    builtin and then its argument prototype would still apply.  */
24291 #ifdef __cplusplus
24292 extern "C"
24293 #endif
24294 char mp_destroy ();
24295 int
24296 main ()
24297 {
24298 return mp_destroy ();
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 if ac_fn_c_try_link "$LINENO"; then :
24304   ac_cv_lib_mp_mp_destroy=yes
24305 else
24306   ac_cv_lib_mp_mp_destroy=no
24307 fi
24308 rm -f core conftest.err conftest.$ac_objext \
24309     conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24311 fi
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24313 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24314 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24315   GOMP_LIBS="-lmp"
24316 fi
24317   # SGI IRIX 6.5 MIPSpro C/C++
24318   fi
24319   LIBS="$GOMP_LIBS $LIBS"
24320 fi
24321
24322
24323 #
24324 # Find Posix threads library
24325 #
24326 THREAD_LIBS=''
24327 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24328
24329     if test "x$PTHREAD_LIBS" = "x"; then
24330     case "${host_cpu}-${host_os}" in
24331       *-freebsd*)
24332
24333
24334
24335 ac_ext=c
24336 ac_cpp='$CPP $CPPFLAGS'
24337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24340
24341 magick_pthread_lib_ok=no
24342
24343 LIB=-lc_r
24344 save_LIBS="$LIBS"
24345 LIBS="$LIBS $LIB"
24346
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24348 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h.  */
24351 #include <pthread.h>
24352 int
24353 main ()
24354 {
24355   pthread_t th;
24356   pthread_join(th, 0);
24357   pthread_attr_init(0);
24358   pthread_cleanup_push(0, 0);
24359   pthread_create(0,0,0,0);
24360   pthread_cleanup_pop(0);
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 if ac_fn_c_try_link "$LINENO"; then :
24366   magick_pthread_lib_ok=yes
24367 fi
24368 rm -f core conftest.err conftest.$ac_objext \
24369     conftest$ac_exeext conftest.$ac_ext
24370
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24372 $as_echo "${magick_pthread_lib_ok}" >&6; }
24373 if test "$magick_pthread_lib_ok" = yes
24374 then
24375   PTHREAD_LIBS=-lc_r
24376   :
24377 else
24378
24379   :
24380 fi
24381
24382 LIBS="$save_LIBS"
24383
24384 ac_ext=c
24385 ac_cpp='$CPP $CPPFLAGS'
24386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24389
24390  ;;
24391     esac
24392     fi
24393
24394     for lib in pthread pthreads; do
24395         if test "x$PTHREAD_LIBS" = "x"; then
24396
24397
24398
24399 ac_ext=c
24400 ac_cpp='$CPP $CPPFLAGS'
24401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24404
24405 magick_pthread_lib_ok=no
24406
24407 LIB=-l$lib
24408 save_LIBS="$LIBS"
24409 LIBS="$LIBS $LIB"
24410
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24412 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24414 /* end confdefs.h.  */
24415 #include <pthread.h>
24416 int
24417 main ()
24418 {
24419   pthread_t th;
24420   pthread_join(th, 0);
24421   pthread_attr_init(0);
24422   pthread_cleanup_push(0, 0);
24423   pthread_create(0,0,0,0);
24424   pthread_cleanup_pop(0);
24425   ;
24426   return 0;
24427 }
24428 _ACEOF
24429 if ac_fn_c_try_link "$LINENO"; then :
24430   magick_pthread_lib_ok=yes
24431 fi
24432 rm -f core conftest.err conftest.$ac_objext \
24433     conftest$ac_exeext conftest.$ac_ext
24434
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24436 $as_echo "${magick_pthread_lib_ok}" >&6; }
24437 if test "$magick_pthread_lib_ok" = yes
24438 then
24439   PTHREAD_LIBS=-l$lib
24440   :
24441 else
24442
24443   :
24444 fi
24445
24446 LIBS="$save_LIBS"
24447
24448 ac_ext=c
24449 ac_cpp='$CPP $CPPFLAGS'
24450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24453
24454
24455         fi
24456     done
24457
24458     THREAD_LIBS="$PTHREAD_LIBS"
24459     LIBS="$LIBS $THREAD_LIBS"
24460 fi
24461
24462
24463 #
24464 # Check for umem.
24465 #
24466 have_umem='no'
24467 UMEM_LIBS=''
24468 if test "$with_umem" != 'no'; then
24469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24470 $as_echo_n "checking for UMEM support ... " >&6; }
24471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24472 $as_echo "" >&6; }
24473   failed=0
24474   passed=0
24475   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24476 if test "x$ac_cv_header_umem_h" = x""yes; then :
24477   passed=`expr $passed + 1`
24478 else
24479   failed=`expr $failed + 1`
24480 fi
24481
24482
24483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24484 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24485 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24486   $as_echo_n "(cached) " >&6
24487 else
24488   ac_check_lib_save_LIBS=$LIBS
24489 LIBS="-lumem  $LIBS"
24490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24491 /* end confdefs.h.  */
24492
24493 /* Override any GCC internal prototype to avoid an error.
24494    Use char because int might match the return type of a GCC
24495    builtin and then its argument prototype would still apply.  */
24496 #ifdef __cplusplus
24497 extern "C"
24498 #endif
24499 char umem_alloc ();
24500 int
24501 main ()
24502 {
24503 return umem_alloc ();
24504   ;
24505   return 0;
24506 }
24507 _ACEOF
24508 if ac_fn_c_try_link "$LINENO"; then :
24509   ac_cv_lib_umem_umem_alloc=yes
24510 else
24511   ac_cv_lib_umem_umem_alloc=no
24512 fi
24513 rm -f core conftest.err conftest.$ac_objext \
24514     conftest$ac_exeext conftest.$ac_ext
24515 LIBS=$ac_check_lib_save_LIBS
24516 fi
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24518 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24519 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24520   passed=`expr $passed + 1`
24521 else
24522   failed=`expr $failed + 1`
24523 fi
24524
24525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24526 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24527 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24528   $as_echo_n "(cached) " >&6
24529 else
24530   ac_check_lib_save_LIBS=$LIBS
24531 LIBS="-lumem  $LIBS"
24532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24533 /* end confdefs.h.  */
24534
24535 /* Override any GCC internal prototype to avoid an error.
24536    Use char because int might match the return type of a GCC
24537    builtin and then its argument prototype would still apply.  */
24538 #ifdef __cplusplus
24539 extern "C"
24540 #endif
24541 char umem_free ();
24542 int
24543 main ()
24544 {
24545 return umem_free ();
24546   ;
24547   return 0;
24548 }
24549 _ACEOF
24550 if ac_fn_c_try_link "$LINENO"; then :
24551   ac_cv_lib_umem_umem_free=yes
24552 else
24553   ac_cv_lib_umem_umem_free=no
24554 fi
24555 rm -f core conftest.err conftest.$ac_objext \
24556     conftest$ac_exeext conftest.$ac_ext
24557 LIBS=$ac_check_lib_save_LIBS
24558 fi
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24560 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24561 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24562   passed=`expr $passed + 1`
24563 else
24564   failed=`expr $failed + 1`
24565 fi
24566
24567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24568 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24569   if test $passed -gt 0; then
24570     if test $failed -gt 0; then
24571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24572 $as_echo "no -- some components failed test" >&6; }
24573       have_umem='no (failed tests)'
24574     else
24575       UMEM_LIBS='-lumem'
24576       LIBS="$UMEM_LIBS $LIBS"
24577
24578 $as_echo "#define HasUMEM 1" >>confdefs.h
24579
24580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24581 $as_echo "yes" >&6; }
24582       have_umem='yes'
24583     fi
24584   else
24585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24586 $as_echo "no" >&6; }
24587   fi
24588 fi
24589  if test "$have_umem" = 'yes'; then
24590   HasUMEM_TRUE=
24591   HasUMEM_FALSE='#'
24592 else
24593   HasUMEM_TRUE='#'
24594   HasUMEM_FALSE=
24595 fi
24596
24597
24598
24599 #
24600 # Add support for ccmalloc memory debugging library if requested
24601 #
24602 have_ccmalloc='no'
24603 CCMALLOC_LIBS=''
24604 if test "$enable_ccmalloc" = 'yes'; then
24605     # Extract the first word of "ccmalloc", so it can be a program name with args.
24606 set dummy ccmalloc; ac_word=$2
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24608 $as_echo_n "checking for $ac_word... " >&6; }
24609 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24610   $as_echo_n "(cached) " >&6
24611 else
24612   case $CCMALLOCDelegate in
24613   [\\/]* | ?:[\\/]*)
24614   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24615   ;;
24616   *)
24617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618 for as_dir in $PATH
24619 do
24620   IFS=$as_save_IFS
24621   test -z "$as_dir" && as_dir=.
24622     for ac_exec_ext in '' $ac_executable_extensions; do
24623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24624     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24626     break 2
24627   fi
24628 done
24629   done
24630 IFS=$as_save_IFS
24631
24632   ;;
24633 esac
24634 fi
24635 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24636 if test -n "$CCMALLOCDelegate"; then
24637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24638 $as_echo "$CCMALLOCDelegate" >&6; }
24639 else
24640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24641 $as_echo "no" >&6; }
24642 fi
24643
24644
24645     if test -n "$CCMALLOCDelegate"; then
24646         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24647         OLIBS="$LIBS"
24648         # Assume that gcc is used with ccmalloc.
24649         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24650        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24651 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24652 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24653   $as_echo_n "(cached) " >&6
24654 else
24655   ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-lccmalloc -ldl $LIBS"
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h.  */
24659
24660 /* Override any GCC internal prototype to avoid an error.
24661    Use char because int might match the return type of a GCC
24662    builtin and then its argument prototype would still apply.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 char ccmalloc_malloc ();
24667 int
24668 main ()
24669 {
24670 return ccmalloc_malloc ();
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 if ac_fn_c_try_link "$LINENO"; then :
24676   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24677 else
24678   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24679 fi
24680 rm -f core conftest.err conftest.$ac_objext \
24681     conftest$ac_exeext conftest.$ac_ext
24682 LIBS=$ac_check_lib_save_LIBS
24683 fi
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24685 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24686 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24687   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24688 fi
24689
24690         if test -n "$CCMALLOC_LIBS"; then
24691             LIBS="$OLIBS"
24692             LIBS="$LIBS $CCMALLOC_LIBS"
24693             have_ccmalloc='yes'
24694         else
24695             LIBS="$OLIBS"
24696         fi
24697     fi
24698 fi
24699
24700 #
24701 # Add support for efence memory debugging library if requested
24702 #
24703 if test "$enable_efence" = 'yes'; then
24704     EFENCE_LIBS='-lefence'
24705     LIBS="$EFENCE_LIBS $LIBS"
24706 fi
24707
24708
24709 #
24710 # Check for BZLIB
24711 #
24712
24713
24714 # Check whether --with-bzlib was given.
24715 if test "${with_bzlib+set}" = set; then :
24716   withval=$with_bzlib; with_bzlib=$withval
24717 else
24718   with_bzlib='yes'
24719 fi
24720
24721
24722 if test "$with_bzlib" != 'yes'; then
24723     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24724 fi
24725
24726 have_bzlib='no'
24727 if test "$with_bzlib" != 'no'; then
24728     BZLIB_LIBS=''
24729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24730 $as_echo "-------------------------------------------------------------" >&6; }
24731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24732 $as_echo_n "checking for BZLIB... " >&6; }
24733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24734 $as_echo "" >&6; }
24735     failed=0
24736     passed=0
24737     found_libbz=0
24738     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24739 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24740   passed=`expr $passed + 1`
24741 else
24742   failed=`expr $failed + 1`
24743 fi
24744
24745
24746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24747 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24748 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24749   $as_echo_n "(cached) " >&6
24750 else
24751   ac_check_lib_save_LIBS=$LIBS
24752 LIBS="-lbz2  $LIBS"
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754 /* end confdefs.h.  */
24755
24756 /* Override any GCC internal prototype to avoid an error.
24757    Use char because int might match the return type of a GCC
24758    builtin and then its argument prototype would still apply.  */
24759 #ifdef __cplusplus
24760 extern "C"
24761 #endif
24762 char BZ2_bzDecompress ();
24763 int
24764 main ()
24765 {
24766 return BZ2_bzDecompress ();
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 if ac_fn_c_try_link "$LINENO"; then :
24772   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24773 else
24774   ac_cv_lib_bz2_BZ2_bzDecompress=no
24775 fi
24776 rm -f core conftest.err conftest.$ac_objext \
24777     conftest$ac_exeext conftest.$ac_ext
24778 LIBS=$ac_check_lib_save_LIBS
24779 fi
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24781 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24782 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24783   found_libbz=`expr $found_libbz + 1`
24784 fi
24785
24786     if test "$native_win32_build" = 'yes'; then
24787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24788 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24789 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24790   $as_echo_n "(cached) " >&6
24791 else
24792   ac_check_lib_save_LIBS=$LIBS
24793 LIBS="-lbz2  $LIBS"
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h.  */
24796
24797 /* Override any GCC internal prototype to avoid an error.
24798    Use char because int might match the return type of a GCC
24799    builtin and then its argument prototype would still apply.  */
24800 #ifdef __cplusplus
24801 extern "C"
24802 #endif
24803 char _imp__BZ2_decompress ();
24804 int
24805 main ()
24806 {
24807 return _imp__BZ2_decompress ();
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 if ac_fn_c_try_link "$LINENO"; then :
24813   ac_cv_lib_bz2__imp__BZ2_decompress=yes
24814 else
24815   ac_cv_lib_bz2__imp__BZ2_decompress=no
24816 fi
24817 rm -f core conftest.err conftest.$ac_objext \
24818     conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24820 fi
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24822 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24823 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24824   found_libbz=`expr $found_libbz + 1`
24825 fi
24826
24827     fi
24828     if test $found_libbz -gt 0; then
24829       passed=`expr $passed + 1`
24830     else
24831       failed=`expr $failed + 1`
24832     fi
24833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24834 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24835     if test $passed -gt 0; then
24836       if test $failed -gt 0; then
24837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24838 $as_echo "no -- some components failed test" >&6; }
24839         have_bzlib='no (failed tests)'
24840       else
24841         BZLIB_LIBS='-lbz2'
24842         LIBS="$BZLIB_LIBS $LIBS"
24843
24844 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24845
24846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24847 $as_echo "yes" >&6; }
24848         have_bzlib='yes'
24849       fi
24850     else
24851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852 $as_echo "no" >&6; }
24853     fi
24854 fi
24855  if test "$have_bzlib" = 'yes'; then
24856   BZLIB_DELEGATE_TRUE=
24857   BZLIB_DELEGATE_FALSE='#'
24858 else
24859   BZLIB_DELEGATE_TRUE='#'
24860   BZLIB_DELEGATE_FALSE=
24861 fi
24862
24863
24864
24865 #
24866 # Find the X11 include and library directories.
24867 #
24868 IPC_LIBS=''
24869 X11_LIBS=''
24870 XEXT_LIBS=''
24871 XT_LIBS=''
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24873 $as_echo_n "checking for X... " >&6; }
24874
24875
24876 # Check whether --with-x was given.
24877 if test "${with_x+set}" = set; then :
24878   withval=$with_x;
24879 fi
24880
24881 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24882 if test "x$with_x" = xno; then
24883   # The user explicitly disabled X.
24884   have_x=disabled
24885 else
24886   case $x_includes,$x_libraries in #(
24887     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24888     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24889   $as_echo_n "(cached) " >&6
24890 else
24891   # One or both of the vars are not set, and there is no cached value.
24892 ac_x_includes=no ac_x_libraries=no
24893 rm -f -r conftest.dir
24894 if mkdir conftest.dir; then
24895   cd conftest.dir
24896   cat >Imakefile <<'_ACEOF'
24897 incroot:
24898         @echo incroot='${INCROOT}'
24899 usrlibdir:
24900         @echo usrlibdir='${USRLIBDIR}'
24901 libdir:
24902         @echo libdir='${LIBDIR}'
24903 _ACEOF
24904   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24905     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24906     for ac_var in incroot usrlibdir libdir; do
24907       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24908     done
24909     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24910     for ac_extension in a so sl dylib la dll; do
24911       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24912          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24913         ac_im_usrlibdir=$ac_im_libdir; break
24914       fi
24915     done
24916     # Screen out bogus values from the imake configuration.  They are
24917     # bogus both because they are the default anyway, and because
24918     # using them would break gcc on systems where it needs fixed includes.
24919     case $ac_im_incroot in
24920         /usr/include) ac_x_includes= ;;
24921         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24922     esac
24923     case $ac_im_usrlibdir in
24924         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24925         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24926     esac
24927   fi
24928   cd ..
24929   rm -f -r conftest.dir
24930 fi
24931
24932 # Standard set of common directories for X headers.
24933 # Check X11 before X11Rn because it is often a symlink to the current release.
24934 ac_x_header_dirs='
24935 /usr/X11/include
24936 /usr/X11R7/include
24937 /usr/X11R6/include
24938 /usr/X11R5/include
24939 /usr/X11R4/include
24940
24941 /usr/include/X11
24942 /usr/include/X11R7
24943 /usr/include/X11R6
24944 /usr/include/X11R5
24945 /usr/include/X11R4
24946
24947 /usr/local/X11/include
24948 /usr/local/X11R7/include
24949 /usr/local/X11R6/include
24950 /usr/local/X11R5/include
24951 /usr/local/X11R4/include
24952
24953 /usr/local/include/X11
24954 /usr/local/include/X11R7
24955 /usr/local/include/X11R6
24956 /usr/local/include/X11R5
24957 /usr/local/include/X11R4
24958
24959 /usr/X386/include
24960 /usr/x386/include
24961 /usr/XFree86/include/X11
24962
24963 /usr/include
24964 /usr/local/include
24965 /usr/unsupported/include
24966 /usr/athena/include
24967 /usr/local/x11r5/include
24968 /usr/lpp/Xamples/include
24969
24970 /usr/openwin/include
24971 /usr/openwin/share/include'
24972
24973 if test "$ac_x_includes" = no; then
24974   # Guess where to find include files, by looking for Xlib.h.
24975   # First, try using that file with no special directory specified.
24976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h.  */
24978 #include <X11/Xlib.h>
24979 _ACEOF
24980 if ac_fn_c_try_cpp "$LINENO"; then :
24981   # We can compile using X headers with no special include directory.
24982 ac_x_includes=
24983 else
24984   for ac_dir in $ac_x_header_dirs; do
24985   if test -r "$ac_dir/X11/Xlib.h"; then
24986     ac_x_includes=$ac_dir
24987     break
24988   fi
24989 done
24990 fi
24991 rm -f conftest.err conftest.$ac_ext
24992 fi # $ac_x_includes = no
24993
24994 if test "$ac_x_libraries" = no; then
24995   # Check for the libraries.
24996   # See if we find them without any special options.
24997   # Don't add to $LIBS permanently.
24998   ac_save_LIBS=$LIBS
24999   LIBS="-lX11 $LIBS"
25000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h.  */
25002 #include <X11/Xlib.h>
25003 int
25004 main ()
25005 {
25006 XrmInitialize ()
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 if ac_fn_c_try_link "$LINENO"; then :
25012   LIBS=$ac_save_LIBS
25013 # We can link X programs with no special library path.
25014 ac_x_libraries=
25015 else
25016   LIBS=$ac_save_LIBS
25017 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25018 do
25019   # Don't even attempt the hair of trying to link an X program!
25020   for ac_extension in a so sl dylib la dll; do
25021     if test -r "$ac_dir/libX11.$ac_extension"; then
25022       ac_x_libraries=$ac_dir
25023       break 2
25024     fi
25025   done
25026 done
25027 fi
25028 rm -f core conftest.err conftest.$ac_objext \
25029     conftest$ac_exeext conftest.$ac_ext
25030 fi # $ac_x_libraries = no
25031
25032 case $ac_x_includes,$ac_x_libraries in #(
25033   no,* | *,no | *\'*)
25034     # Didn't find X, or a directory has "'" in its name.
25035     ac_cv_have_x="have_x=no";; #(
25036   *)
25037     # Record where we found X for the cache.
25038     ac_cv_have_x="have_x=yes\
25039         ac_x_includes='$ac_x_includes'\
25040         ac_x_libraries='$ac_x_libraries'"
25041 esac
25042 fi
25043 ;; #(
25044     *) have_x=yes;;
25045   esac
25046   eval "$ac_cv_have_x"
25047 fi # $with_x != no
25048
25049 if test "$have_x" != yes; then
25050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25051 $as_echo "$have_x" >&6; }
25052   no_x=yes
25053 else
25054   # If each of the values was on the command line, it overrides each guess.
25055   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25056   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25057   # Update the cache value to reflect the command line values.
25058   ac_cv_have_x="have_x=yes\
25059         ac_x_includes='$x_includes'\
25060         ac_x_libraries='$x_libraries'"
25061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25062 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25063 fi
25064
25065 if test "$no_x" = yes; then
25066   # Not all programs may use this symbol, but it does not hurt to define it.
25067
25068 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25069
25070   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25071 else
25072   if test -n "$x_includes"; then
25073     X_CFLAGS="$X_CFLAGS -I$x_includes"
25074   fi
25075
25076   # It would also be nice to do this for all -L options, not just this one.
25077   if test -n "$x_libraries"; then
25078     X_LIBS="$X_LIBS -L$x_libraries"
25079     # For Solaris; some versions of Sun CC require a space after -R and
25080     # others require no space.  Words are not sufficient . . . .
25081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25082 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25083     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25084     ac_xsave_c_werror_flag=$ac_c_werror_flag
25085     ac_c_werror_flag=yes
25086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h.  */
25088
25089 int
25090 main ()
25091 {
25092
25093   ;
25094   return 0;
25095 }
25096 _ACEOF
25097 if ac_fn_c_try_link "$LINENO"; then :
25098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25099 $as_echo "no" >&6; }
25100        X_LIBS="$X_LIBS -R$x_libraries"
25101 else
25102   LIBS="$ac_xsave_LIBS -R $x_libraries"
25103        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25104 /* end confdefs.h.  */
25105
25106 int
25107 main ()
25108 {
25109
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 if ac_fn_c_try_link "$LINENO"; then :
25115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25116 $as_echo "yes" >&6; }
25117           X_LIBS="$X_LIBS -R $x_libraries"
25118 else
25119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25120 $as_echo "neither works" >&6; }
25121 fi
25122 rm -f core conftest.err conftest.$ac_objext \
25123     conftest$ac_exeext conftest.$ac_ext
25124 fi
25125 rm -f core conftest.err conftest.$ac_objext \
25126     conftest$ac_exeext conftest.$ac_ext
25127     ac_c_werror_flag=$ac_xsave_c_werror_flag
25128     LIBS=$ac_xsave_LIBS
25129   fi
25130
25131   # Check for system-dependent libraries X programs must link with.
25132   # Do this before checking for the system-independent R6 libraries
25133   # (-lICE), since we may need -lsocket or whatever for X linking.
25134
25135   if test "$ISC" = yes; then
25136     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25137   else
25138     # Martyn Johnson says this is needed for Ultrix, if the X
25139     # libraries were built with DECnet support.  And Karl Berry says
25140     # the Alpha needs dnet_stub (dnet does not exist).
25141     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h.  */
25144
25145 /* Override any GCC internal prototype to avoid an error.
25146    Use char because int might match the return type of a GCC
25147    builtin and then its argument prototype would still apply.  */
25148 #ifdef __cplusplus
25149 extern "C"
25150 #endif
25151 char XOpenDisplay ();
25152 int
25153 main ()
25154 {
25155 return XOpenDisplay ();
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 if ac_fn_c_try_link "$LINENO"; then :
25161
25162 else
25163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25164 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25166   $as_echo_n "(cached) " >&6
25167 else
25168   ac_check_lib_save_LIBS=$LIBS
25169 LIBS="-ldnet  $LIBS"
25170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h.  */
25172
25173 /* Override any GCC internal prototype to avoid an error.
25174    Use char because int might match the return type of a GCC
25175    builtin and then its argument prototype would still apply.  */
25176 #ifdef __cplusplus
25177 extern "C"
25178 #endif
25179 char dnet_ntoa ();
25180 int
25181 main ()
25182 {
25183 return dnet_ntoa ();
25184   ;
25185   return 0;
25186 }
25187 _ACEOF
25188 if ac_fn_c_try_link "$LINENO"; then :
25189   ac_cv_lib_dnet_dnet_ntoa=yes
25190 else
25191   ac_cv_lib_dnet_dnet_ntoa=no
25192 fi
25193 rm -f core conftest.err conftest.$ac_objext \
25194     conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25196 fi
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25198 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25199 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25200   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25201 fi
25202
25203     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25204       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25205 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25206 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25207   $as_echo_n "(cached) " >&6
25208 else
25209   ac_check_lib_save_LIBS=$LIBS
25210 LIBS="-ldnet_stub  $LIBS"
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h.  */
25213
25214 /* Override any GCC internal prototype to avoid an error.
25215    Use char because int might match the return type of a GCC
25216    builtin and then its argument prototype would still apply.  */
25217 #ifdef __cplusplus
25218 extern "C"
25219 #endif
25220 char dnet_ntoa ();
25221 int
25222 main ()
25223 {
25224 return dnet_ntoa ();
25225   ;
25226   return 0;
25227 }
25228 _ACEOF
25229 if ac_fn_c_try_link "$LINENO"; then :
25230   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25231 else
25232   ac_cv_lib_dnet_stub_dnet_ntoa=no
25233 fi
25234 rm -f core conftest.err conftest.$ac_objext \
25235     conftest$ac_exeext conftest.$ac_ext
25236 LIBS=$ac_check_lib_save_LIBS
25237 fi
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25239 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25240 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25241   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25242 fi
25243
25244     fi
25245 fi
25246 rm -f core conftest.err conftest.$ac_objext \
25247     conftest$ac_exeext conftest.$ac_ext
25248     LIBS="$ac_xsave_LIBS"
25249
25250     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25251     # to get the SysV transport functions.
25252     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25253     # needs -lnsl.
25254     # The nsl library prevents programs from opening the X display
25255     # on Irix 5.2, according to T.E. Dickey.
25256     # The functions gethostbyname, getservbyname, and inet_addr are
25257     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25258     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25259 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25260
25261 fi
25262
25263     if test $ac_cv_func_gethostbyname = no; then
25264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25265 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25266 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25267   $as_echo_n "(cached) " >&6
25268 else
25269   ac_check_lib_save_LIBS=$LIBS
25270 LIBS="-lnsl  $LIBS"
25271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h.  */
25273
25274 /* Override any GCC internal prototype to avoid an error.
25275    Use char because int might match the return type of a GCC
25276    builtin and then its argument prototype would still apply.  */
25277 #ifdef __cplusplus
25278 extern "C"
25279 #endif
25280 char gethostbyname ();
25281 int
25282 main ()
25283 {
25284 return gethostbyname ();
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 if ac_fn_c_try_link "$LINENO"; then :
25290   ac_cv_lib_nsl_gethostbyname=yes
25291 else
25292   ac_cv_lib_nsl_gethostbyname=no
25293 fi
25294 rm -f core conftest.err conftest.$ac_objext \
25295     conftest$ac_exeext conftest.$ac_ext
25296 LIBS=$ac_check_lib_save_LIBS
25297 fi
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25299 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25300 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25301   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25302 fi
25303
25304       if test $ac_cv_lib_nsl_gethostbyname = no; then
25305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25306 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25307 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25308   $as_echo_n "(cached) " >&6
25309 else
25310   ac_check_lib_save_LIBS=$LIBS
25311 LIBS="-lbsd  $LIBS"
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314
25315 /* Override any GCC internal prototype to avoid an error.
25316    Use char because int might match the return type of a GCC
25317    builtin and then its argument prototype would still apply.  */
25318 #ifdef __cplusplus
25319 extern "C"
25320 #endif
25321 char gethostbyname ();
25322 int
25323 main ()
25324 {
25325 return gethostbyname ();
25326   ;
25327   return 0;
25328 }
25329 _ACEOF
25330 if ac_fn_c_try_link "$LINENO"; then :
25331   ac_cv_lib_bsd_gethostbyname=yes
25332 else
25333   ac_cv_lib_bsd_gethostbyname=no
25334 fi
25335 rm -f core conftest.err conftest.$ac_objext \
25336     conftest$ac_exeext conftest.$ac_ext
25337 LIBS=$ac_check_lib_save_LIBS
25338 fi
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25340 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25341 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25342   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25343 fi
25344
25345       fi
25346     fi
25347
25348     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25349     # socket/setsockopt and other routines are undefined under SCO ODT
25350     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25351     # on later versions), says Simon Leinen: it contains gethostby*
25352     # variants that don't use the name server (or something).  -lsocket
25353     # must be given before -lnsl if both are needed.  We assume that
25354     # if connect needs -lnsl, so does gethostbyname.
25355     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25356 if test "x$ac_cv_func_connect" = x""yes; then :
25357
25358 fi
25359
25360     if test $ac_cv_func_connect = no; then
25361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25362 $as_echo_n "checking for connect in -lsocket... " >&6; }
25363 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25364   $as_echo_n "(cached) " >&6
25365 else
25366   ac_check_lib_save_LIBS=$LIBS
25367 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h.  */
25370
25371 /* Override any GCC internal prototype to avoid an error.
25372    Use char because int might match the return type of a GCC
25373    builtin and then its argument prototype would still apply.  */
25374 #ifdef __cplusplus
25375 extern "C"
25376 #endif
25377 char connect ();
25378 int
25379 main ()
25380 {
25381 return connect ();
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 if ac_fn_c_try_link "$LINENO"; then :
25387   ac_cv_lib_socket_connect=yes
25388 else
25389   ac_cv_lib_socket_connect=no
25390 fi
25391 rm -f core conftest.err conftest.$ac_objext \
25392     conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25396 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25397 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25398   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25399 fi
25400
25401     fi
25402
25403     # Guillermo Gomez says -lposix is necessary on A/UX.
25404     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25405 if test "x$ac_cv_func_remove" = x""yes; then :
25406
25407 fi
25408
25409     if test $ac_cv_func_remove = no; then
25410       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25411 $as_echo_n "checking for remove in -lposix... " >&6; }
25412 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25413   $as_echo_n "(cached) " >&6
25414 else
25415   ac_check_lib_save_LIBS=$LIBS
25416 LIBS="-lposix  $LIBS"
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h.  */
25419
25420 /* Override any GCC internal prototype to avoid an error.
25421    Use char because int might match the return type of a GCC
25422    builtin and then its argument prototype would still apply.  */
25423 #ifdef __cplusplus
25424 extern "C"
25425 #endif
25426 char remove ();
25427 int
25428 main ()
25429 {
25430 return remove ();
25431   ;
25432   return 0;
25433 }
25434 _ACEOF
25435 if ac_fn_c_try_link "$LINENO"; then :
25436   ac_cv_lib_posix_remove=yes
25437 else
25438   ac_cv_lib_posix_remove=no
25439 fi
25440 rm -f core conftest.err conftest.$ac_objext \
25441     conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25443 fi
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25445 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25446 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25447   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25448 fi
25449
25450     fi
25451
25452     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25453     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25454 if test "x$ac_cv_func_shmat" = x""yes; then :
25455
25456 fi
25457
25458     if test $ac_cv_func_shmat = no; then
25459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25460 $as_echo_n "checking for shmat in -lipc... " >&6; }
25461 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25462   $as_echo_n "(cached) " >&6
25463 else
25464   ac_check_lib_save_LIBS=$LIBS
25465 LIBS="-lipc  $LIBS"
25466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467 /* end confdefs.h.  */
25468
25469 /* Override any GCC internal prototype to avoid an error.
25470    Use char because int might match the return type of a GCC
25471    builtin and then its argument prototype would still apply.  */
25472 #ifdef __cplusplus
25473 extern "C"
25474 #endif
25475 char shmat ();
25476 int
25477 main ()
25478 {
25479 return shmat ();
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 if ac_fn_c_try_link "$LINENO"; then :
25485   ac_cv_lib_ipc_shmat=yes
25486 else
25487   ac_cv_lib_ipc_shmat=no
25488 fi
25489 rm -f core conftest.err conftest.$ac_objext \
25490     conftest$ac_exeext conftest.$ac_ext
25491 LIBS=$ac_check_lib_save_LIBS
25492 fi
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25494 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25495 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25496   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25497 fi
25498
25499     fi
25500   fi
25501
25502   # Check for libraries that X11R6 Xt/Xaw programs need.
25503   ac_save_LDFLAGS=$LDFLAGS
25504   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25505   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25506   # check for ICE first), but we must link in the order -lSM -lICE or
25507   # we get undefined symbols.  So assume we have SM if we have ICE.
25508   # These have to be linked with before -lX11, unlike the other
25509   # libraries we check for below, so use a different variable.
25510   # John Interrante, Karl Berry
25511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25512 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25513 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25514   $as_echo_n "(cached) " >&6
25515 else
25516   ac_check_lib_save_LIBS=$LIBS
25517 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h.  */
25520
25521 /* Override any GCC internal prototype to avoid an error.
25522    Use char because int might match the return type of a GCC
25523    builtin and then its argument prototype would still apply.  */
25524 #ifdef __cplusplus
25525 extern "C"
25526 #endif
25527 char IceConnectionNumber ();
25528 int
25529 main ()
25530 {
25531 return IceConnectionNumber ();
25532   ;
25533   return 0;
25534 }
25535 _ACEOF
25536 if ac_fn_c_try_link "$LINENO"; then :
25537   ac_cv_lib_ICE_IceConnectionNumber=yes
25538 else
25539   ac_cv_lib_ICE_IceConnectionNumber=no
25540 fi
25541 rm -f core conftest.err conftest.$ac_objext \
25542     conftest$ac_exeext conftest.$ac_ext
25543 LIBS=$ac_check_lib_save_LIBS
25544 fi
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25546 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25547 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25548   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25549 fi
25550
25551   LDFLAGS=$ac_save_LDFLAGS
25552
25553 fi
25554
25555 if test "$no_x" != 'yes'; then
25556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25557 $as_echo "-------------------------------------------------------------" >&6; }
25558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25559 $as_echo_n "checking for X11... " >&6; }
25560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25561 $as_echo "" >&6; }
25562     LDFLAGS="$LDFLAGS $X_LIBS"
25563     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25564     LIBS="$X11_LIBS $LIBS"
25565     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25566
25567
25568 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25569
25570     #
25571     # Check for X11 shared memory extension
25572     #
25573     # shmctl is required to support the shared memory extension
25574     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25575 if test "x$ac_cv_func_shmctl" = x""yes; then :
25576   have_shmctl='yes'
25577 fi
25578
25579     if test "$have_shmctl" != 'yes'; then
25580         PERSIST_LIBS=$LIBS
25581         LIBS="$LIBS -lcygipc"
25582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h.  */
25584
25585 /* Override any GCC internal prototype to avoid an error.
25586    Use char because int might match the return type of a GCC
25587    builtin and then its argument prototype would still apply.  */
25588 #ifdef __cplusplus
25589 extern "C"
25590 #endif
25591 char shmctl ();
25592 int
25593 main ()
25594 {
25595 return shmctl ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 if ac_fn_c_try_link "$LINENO"; then :
25601   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25602 fi
25603 rm -f core conftest.err conftest.$ac_objext \
25604     conftest$ac_exeext conftest.$ac_ext
25605         LIBS=$PERSIST_LIBS
25606     fi
25607
25608     if test "$have_shmctl" = 'yes'; then
25609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25610 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25611 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25612   $as_echo_n "(cached) " >&6
25613 else
25614   ac_check_lib_save_LIBS=$LIBS
25615 LIBS="-lXext  $LIBS"
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h.  */
25618
25619 /* Override any GCC internal prototype to avoid an error.
25620    Use char because int might match the return type of a GCC
25621    builtin and then its argument prototype would still apply.  */
25622 #ifdef __cplusplus
25623 extern "C"
25624 #endif
25625 char XShmAttach ();
25626 int
25627 main ()
25628 {
25629 return XShmAttach ();
25630   ;
25631   return 0;
25632 }
25633 _ACEOF
25634 if ac_fn_c_try_link "$LINENO"; then :
25635   ac_cv_lib_Xext_XShmAttach=yes
25636 else
25637   ac_cv_lib_Xext_XShmAttach=no
25638 fi
25639 rm -f core conftest.err conftest.$ac_objext \
25640     conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25642 fi
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25644 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25645 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25646   XEXT_LIBS='-lXext' ;
25647 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25648
25649 fi
25650
25651     fi
25652
25653     #
25654     # Check for X11 shape extension
25655     #
25656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25657 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25658 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25659   $as_echo_n "(cached) " >&6
25660 else
25661   ac_check_lib_save_LIBS=$LIBS
25662 LIBS="-lXext  $LIBS"
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h.  */
25665
25666 /* Override any GCC internal prototype to avoid an error.
25667    Use char because int might match the return type of a GCC
25668    builtin and then its argument prototype would still apply.  */
25669 #ifdef __cplusplus
25670 extern "C"
25671 #endif
25672 char XShapeCombineMask ();
25673 int
25674 main ()
25675 {
25676 return XShapeCombineMask ();
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 if ac_fn_c_try_link "$LINENO"; then :
25682   ac_cv_lib_Xext_XShapeCombineMask=yes
25683 else
25684   ac_cv_lib_Xext_XShapeCombineMask=no
25685 fi
25686 rm -f core conftest.err conftest.$ac_objext \
25687     conftest$ac_exeext conftest.$ac_ext
25688 LIBS=$ac_check_lib_save_LIBS
25689 fi
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25691 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25692 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25693   XEXT_LIBS='-lXext' ;
25694 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25695
25696 fi
25697
25698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25699 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25700 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25701   $as_echo_n "(cached) " >&6
25702 else
25703   ac_check_lib_save_LIBS=$LIBS
25704 LIBS="-lXt  $LIBS"
25705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25706 /* end confdefs.h.  */
25707
25708 /* Override any GCC internal prototype to avoid an error.
25709    Use char because int might match the return type of a GCC
25710    builtin and then its argument prototype would still apply.  */
25711 #ifdef __cplusplus
25712 extern "C"
25713 #endif
25714 char XtSetEventDispatcher ();
25715 int
25716 main ()
25717 {
25718 return XtSetEventDispatcher ();
25719   ;
25720   return 0;
25721 }
25722 _ACEOF
25723 if ac_fn_c_try_link "$LINENO"; then :
25724   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25725 else
25726   ac_cv_lib_Xt_XtSetEventDispatcher=no
25727 fi
25728 rm -f core conftest.err conftest.$ac_objext \
25729     conftest$ac_exeext conftest.$ac_ext
25730 LIBS=$ac_check_lib_save_LIBS
25731 fi
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25733 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25734 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25735   XT_LIBS='-lXt'
25736 fi
25737
25738     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25739 fi
25740 if test "$no_x" != 'yes'; then
25741   have_x='yes'
25742 else
25743   have_x='no'
25744 fi
25745  if test "$have_x" = 'yes'; then
25746   X11_DELEGATE_TRUE=
25747   X11_DELEGATE_FALSE='#'
25748 else
25749   X11_DELEGATE_TRUE='#'
25750   X11_DELEGATE_FALSE=
25751 fi
25752
25753
25754
25755
25756
25757 #
25758 # Check for ZLIB
25759 #
25760
25761 # Check whether --with-zlib was given.
25762 if test "${with_zlib+set}" = set; then :
25763   withval=$with_zlib; with_zlib=$withval
25764 else
25765   with_zlib='yes'
25766 fi
25767
25768
25769 if test "$with_zlib" != 'yes'; then
25770     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25771 fi
25772
25773 have_zlib='no'
25774 ZLIB_LIBS=''
25775 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25777 $as_echo "-------------------------------------------------------------" >&6; }
25778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25779 $as_echo_n "checking for ZLIB... " >&6; }
25780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25781 $as_echo "" >&6; }
25782     ZLIB_LIBS=''
25783     failed=0
25784     passed=0
25785     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25786 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25787   passed=`expr $passed + 1`
25788 else
25789   failed=`expr $failed + 1`
25790 fi
25791
25792
25793     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25794 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25795   passed=`expr $passed + 1`
25796 else
25797   failed=`expr $failed + 1`
25798 fi
25799
25800
25801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25802 $as_echo_n "checking for compress in -lz... " >&6; }
25803 if test "${ac_cv_lib_z_compress+set}" = set; then :
25804   $as_echo_n "(cached) " >&6
25805 else
25806   ac_check_lib_save_LIBS=$LIBS
25807 LIBS="-lz  $LIBS"
25808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809 /* end confdefs.h.  */
25810
25811 /* Override any GCC internal prototype to avoid an error.
25812    Use char because int might match the return type of a GCC
25813    builtin and then its argument prototype would still apply.  */
25814 #ifdef __cplusplus
25815 extern "C"
25816 #endif
25817 char compress ();
25818 int
25819 main ()
25820 {
25821 return compress ();
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 if ac_fn_c_try_link "$LINENO"; then :
25827   ac_cv_lib_z_compress=yes
25828 else
25829   ac_cv_lib_z_compress=no
25830 fi
25831 rm -f core conftest.err conftest.$ac_objext \
25832     conftest$ac_exeext conftest.$ac_ext
25833 LIBS=$ac_check_lib_save_LIBS
25834 fi
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25836 $as_echo "$ac_cv_lib_z_compress" >&6; }
25837 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25838   passed=`expr $passed + 1`
25839 else
25840   failed=`expr $failed + 1`
25841 fi
25842
25843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25844 $as_echo_n "checking for uncompress in -lz... " >&6; }
25845 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25846   $as_echo_n "(cached) " >&6
25847 else
25848   ac_check_lib_save_LIBS=$LIBS
25849 LIBS="-lz  $LIBS"
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852
25853 /* Override any GCC internal prototype to avoid an error.
25854    Use char because int might match the return type of a GCC
25855    builtin and then its argument prototype would still apply.  */
25856 #ifdef __cplusplus
25857 extern "C"
25858 #endif
25859 char uncompress ();
25860 int
25861 main ()
25862 {
25863 return uncompress ();
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 if ac_fn_c_try_link "$LINENO"; then :
25869   ac_cv_lib_z_uncompress=yes
25870 else
25871   ac_cv_lib_z_uncompress=no
25872 fi
25873 rm -f core conftest.err conftest.$ac_objext \
25874     conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25876 fi
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25878 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25879 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25880   passed=`expr $passed + 1`
25881 else
25882   failed=`expr $failed + 1`
25883 fi
25884
25885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25886 $as_echo_n "checking for deflate in -lz... " >&6; }
25887 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25888   $as_echo_n "(cached) " >&6
25889 else
25890   ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lz  $LIBS"
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h.  */
25894
25895 /* Override any GCC internal prototype to avoid an error.
25896    Use char because int might match the return type of a GCC
25897    builtin and then its argument prototype would still apply.  */
25898 #ifdef __cplusplus
25899 extern "C"
25900 #endif
25901 char deflate ();
25902 int
25903 main ()
25904 {
25905 return deflate ();
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 if ac_fn_c_try_link "$LINENO"; then :
25911   ac_cv_lib_z_deflate=yes
25912 else
25913   ac_cv_lib_z_deflate=no
25914 fi
25915 rm -f core conftest.err conftest.$ac_objext \
25916     conftest$ac_exeext conftest.$ac_ext
25917 LIBS=$ac_check_lib_save_LIBS
25918 fi
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25920 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25921 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25922   passed=`expr $passed + 1`
25923 else
25924   failed=`expr $failed + 1`
25925 fi
25926
25927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25928 $as_echo_n "checking for inflate in -lz... " >&6; }
25929 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25930   $as_echo_n "(cached) " >&6
25931 else
25932   ac_check_lib_save_LIBS=$LIBS
25933 LIBS="-lz  $LIBS"
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h.  */
25936
25937 /* Override any GCC internal prototype to avoid an error.
25938    Use char because int might match the return type of a GCC
25939    builtin and then its argument prototype would still apply.  */
25940 #ifdef __cplusplus
25941 extern "C"
25942 #endif
25943 char inflate ();
25944 int
25945 main ()
25946 {
25947 return inflate ();
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 if ac_fn_c_try_link "$LINENO"; then :
25953   ac_cv_lib_z_inflate=yes
25954 else
25955   ac_cv_lib_z_inflate=no
25956 fi
25957 rm -f core conftest.err conftest.$ac_objext \
25958     conftest$ac_exeext conftest.$ac_ext
25959 LIBS=$ac_check_lib_save_LIBS
25960 fi
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25962 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25963 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25964   passed=`expr $passed + 1`
25965 else
25966   failed=`expr $failed + 1`
25967 fi
25968
25969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25970 $as_echo_n "checking for gzseek in -lz... " >&6; }
25971 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25972   $as_echo_n "(cached) " >&6
25973 else
25974   ac_check_lib_save_LIBS=$LIBS
25975 LIBS="-lz  $LIBS"
25976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25977 /* end confdefs.h.  */
25978
25979 /* Override any GCC internal prototype to avoid an error.
25980    Use char because int might match the return type of a GCC
25981    builtin and then its argument prototype would still apply.  */
25982 #ifdef __cplusplus
25983 extern "C"
25984 #endif
25985 char gzseek ();
25986 int
25987 main ()
25988 {
25989 return gzseek ();
25990   ;
25991   return 0;
25992 }
25993 _ACEOF
25994 if ac_fn_c_try_link "$LINENO"; then :
25995   ac_cv_lib_z_gzseek=yes
25996 else
25997   ac_cv_lib_z_gzseek=no
25998 fi
25999 rm -f core conftest.err conftest.$ac_objext \
26000     conftest$ac_exeext conftest.$ac_ext
26001 LIBS=$ac_check_lib_save_LIBS
26002 fi
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26004 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26005 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26006   passed=`expr $passed + 1`
26007 else
26008   failed=`expr $failed + 1`
26009 fi
26010
26011     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26012 $as_echo_n "checking for gztell in -lz... " >&6; }
26013 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26014   $as_echo_n "(cached) " >&6
26015 else
26016   ac_check_lib_save_LIBS=$LIBS
26017 LIBS="-lz  $LIBS"
26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26019 /* end confdefs.h.  */
26020
26021 /* Override any GCC internal prototype to avoid an error.
26022    Use char because int might match the return type of a GCC
26023    builtin and then its argument prototype would still apply.  */
26024 #ifdef __cplusplus
26025 extern "C"
26026 #endif
26027 char gztell ();
26028 int
26029 main ()
26030 {
26031 return gztell ();
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 if ac_fn_c_try_link "$LINENO"; then :
26037   ac_cv_lib_z_gztell=yes
26038 else
26039   ac_cv_lib_z_gztell=no
26040 fi
26041 rm -f core conftest.err conftest.$ac_objext \
26042     conftest$ac_exeext conftest.$ac_ext
26043 LIBS=$ac_check_lib_save_LIBS
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26046 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26047 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26048   passed=`expr $passed + 1`
26049 else
26050   failed=`expr $failed + 1`
26051 fi
26052
26053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26054 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26055     if test $passed -gt 0; then
26056         if test $failed -gt 0; then
26057             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26058 $as_echo "no -- some components failed test" >&6; }
26059             have_zlib='no (failed tests)'
26060         else
26061             ZLIB_LIBS='-lz'
26062             LIBS="$ZLIB_LIBS $LIBS"
26063
26064 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26065
26066             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26067 $as_echo "yes" >&6; }
26068             have_zlib='yes'
26069         fi
26070     else
26071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072 $as_echo "no" >&6; }
26073     fi
26074 fi
26075  if test "$have_zlib" = 'yes'; then
26076   ZLIB_DELEGATE_TRUE=
26077   ZLIB_DELEGATE_FALSE='#'
26078 else
26079   ZLIB_DELEGATE_TRUE='#'
26080   ZLIB_DELEGATE_FALSE=
26081 fi
26082
26083
26084
26085 #
26086 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26087 #
26088 LIB_DL=''
26089 if test "$enable_profiling" = 'yes'; then
26090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26091 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-ldl  $LIBS"
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h.  */
26099
26100 /* Override any GCC internal prototype to avoid an error.
26101    Use char because int might match the return type of a GCC
26102    builtin and then its argument prototype would still apply.  */
26103 #ifdef __cplusplus
26104 extern "C"
26105 #endif
26106 char dlopen ();
26107 int
26108 main ()
26109 {
26110 return dlopen ();
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 if ac_fn_c_try_link "$LINENO"; then :
26116   ac_cv_lib_dl_dlopen=yes
26117 else
26118   ac_cv_lib_dl_dlopen=no
26119 fi
26120 rm -f core conftest.err conftest.$ac_objext \
26121     conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26123 fi
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26125 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26126 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26127   LIB_DL='-ldl'
26128 fi
26129
26130     LIBS="$LIB_DL $LIBS"
26131 fi
26132
26133
26134
26135 #
26136 # Check for Autotrace delegate library.
26137 #
26138
26139 # Check whether --with-autotrace was given.
26140 if test "${with_autotrace+set}" = set; then :
26141   withval=$with_autotrace; with_autotrace=$withval
26142 else
26143   with_autotrace='no'
26144 fi
26145
26146
26147 if test "$with_autotrace" != 'yes'; then
26148     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26149 fi
26150
26151 have_autotrace='no'
26152 AUTOTRACE_CFLAGS=""
26153 AUTOTRACE_LIBS=""
26154 AUTOTRACE_PKG=""
26155 if test "x$with_autotrace" = "xyes"; then
26156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26157 $as_echo "-------------------------------------------------------------" >&6; }
26158
26159 pkg_failed=no
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26161 $as_echo_n "checking for AUTOTRACE... " >&6; }
26162
26163 if test -n "$AUTOTRACE_CFLAGS"; then
26164     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26165  elif test -n "$PKG_CONFIG"; then
26166     if test -n "$PKG_CONFIG" && \
26167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26168   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26169   ac_status=$?
26170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171   test $ac_status = 0; }; then
26172   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26173 else
26174   pkg_failed=yes
26175 fi
26176  else
26177     pkg_failed=untried
26178 fi
26179 if test -n "$AUTOTRACE_LIBS"; then
26180     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26181  elif test -n "$PKG_CONFIG"; then
26182     if test -n "$PKG_CONFIG" && \
26183     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26184   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26185   ac_status=$?
26186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187   test $ac_status = 0; }; then
26188   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26189 else
26190   pkg_failed=yes
26191 fi
26192  else
26193     pkg_failed=untried
26194 fi
26195
26196
26197
26198 if test $pkg_failed = yes; then
26199
26200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26201         _pkg_short_errors_supported=yes
26202 else
26203         _pkg_short_errors_supported=no
26204 fi
26205         if test $_pkg_short_errors_supported = yes; then
26206                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26207         else
26208                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26209         fi
26210         # Put the nasty error message in config.log where it belongs
26211         echo "$AUTOTRACE_PKG_ERRORS" >&5
26212
26213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26214 $as_echo "no" >&6; }
26215                 have_autotrace=no
26216 elif test $pkg_failed = untried; then
26217         have_autotrace=no
26218 else
26219         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26220         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 $as_echo "yes" >&6; }
26223         have_autotrace=yes
26224 fi
26225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26226 $as_echo "" >&6; }
26227 fi
26228
26229 if test "$have_autotrace" = 'yes'; then
26230     failed=0
26231
26232 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26233
26234     if test "$with_modules" = 'no'; then
26235     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26236     fi
26237 fi
26238
26239  if test "$have_autotrace" = 'yes'; then
26240   AUTOTRACE_DELEGATE_TRUE=
26241   AUTOTRACE_DELEGATE_FALSE='#'
26242 else
26243   AUTOTRACE_DELEGATE_TRUE='#'
26244   AUTOTRACE_DELEGATE_FALSE=
26245 fi
26246
26247
26248
26249
26250
26251 #
26252 # Check for Display Postscript delegate library.
26253 #
26254
26255 # Check whether --with-dps was given.
26256 if test "${with_dps+set}" = set; then :
26257   withval=$with_dps; with_dps=$withval
26258 else
26259   with_dps='yes'
26260 fi
26261
26262
26263 if test "$with_dps" != 'yes'; then
26264     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26265 fi
26266
26267 have_dps='no'
26268 DPS_LIBS=''
26269 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26271 $as_echo "-------------------------------------------------------------" >&6; }
26272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26273 $as_echo_n "checking for DPS... " >&6; }
26274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26275 $as_echo "" >&6; }
26276     failed=0
26277     passed=0
26278     PERSIST_CPPFLAGS="$CPPFLAGS"
26279     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26280     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26281 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26282   passed=`expr $passed + 1`
26283 else
26284   failed=`expr $failed + 1`
26285 fi
26286
26287
26288     # DPS issues:
26289     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26290     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26291     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26292     # ImageMagick itself doesn't use -lXt.
26293     have_libdps='no'
26294     LIBDPS_XT=''
26295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26296 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26297 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26298   $as_echo_n "(cached) " >&6
26299 else
26300   ac_check_lib_save_LIBS=$LIBS
26301 LIBS="-ldps  $LIBS"
26302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h.  */
26304
26305 /* Override any GCC internal prototype to avoid an error.
26306    Use char because int might match the return type of a GCC
26307    builtin and then its argument prototype would still apply.  */
26308 #ifdef __cplusplus
26309 extern "C"
26310 #endif
26311 char DPSInitialize ();
26312 int
26313 main ()
26314 {
26315 return DPSInitialize ();
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 if ac_fn_c_try_link "$LINENO"; then :
26321   ac_cv_lib_dps_DPSInitialize=yes
26322 else
26323   ac_cv_lib_dps_DPSInitialize=no
26324 fi
26325 rm -f core conftest.err conftest.$ac_objext \
26326     conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26328 fi
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26330 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26331 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26332   have_libdps='yes'
26333 else
26334   have_libdps='no'
26335 fi
26336
26337     if test "$have_libdps" != 'yes'; then
26338         # Unset cache variable so we can try again.
26339         unset ac_cv_lib_dps_DPSInitialize
26340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26341 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26342 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26343   $as_echo_n "(cached) " >&6
26344 else
26345   ac_check_lib_save_LIBS=$LIBS
26346 LIBS="-ldps -lXt $LIBS"
26347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h.  */
26349
26350 /* Override any GCC internal prototype to avoid an error.
26351    Use char because int might match the return type of a GCC
26352    builtin and then its argument prototype would still apply.  */
26353 #ifdef __cplusplus
26354 extern "C"
26355 #endif
26356 char DPSInitialize ();
26357 int
26358 main ()
26359 {
26360 return DPSInitialize ();
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 if ac_fn_c_try_link "$LINENO"; then :
26366   ac_cv_lib_dps_DPSInitialize=yes
26367 else
26368   ac_cv_lib_dps_DPSInitialize=no
26369 fi
26370 rm -f core conftest.err conftest.$ac_objext \
26371     conftest$ac_exeext conftest.$ac_ext
26372 LIBS=$ac_check_lib_save_LIBS
26373 fi
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26375 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26376 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26377   have_libdps='yes'
26378 else
26379   have_libdps='no'
26380 fi
26381
26382         if test "$have_libdps" = 'yes'; then
26383             LIBDPS_XT='-lXt'
26384         fi
26385     fi
26386     if test "$have_libdps" = 'yes'; then
26387         passed=`expr $passed + 1`
26388     else
26389         failed=`expr $failed + 1`
26390     fi
26391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26392 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26393 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26394   $as_echo_n "(cached) " >&6
26395 else
26396   ac_check_lib_save_LIBS=$LIBS
26397 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26399 /* end confdefs.h.  */
26400
26401 /* Override any GCC internal prototype to avoid an error.
26402    Use char because int might match the return type of a GCC
26403    builtin and then its argument prototype would still apply.  */
26404 #ifdef __cplusplus
26405 extern "C"
26406 #endif
26407 char XDPSPixelsPerPoint ();
26408 int
26409 main ()
26410 {
26411 return XDPSPixelsPerPoint ();
26412   ;
26413   return 0;
26414 }
26415 _ACEOF
26416 if ac_fn_c_try_link "$LINENO"; then :
26417   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26418 else
26419   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26420 fi
26421 rm -f core conftest.err conftest.$ac_objext \
26422     conftest$ac_exeext conftest.$ac_ext
26423 LIBS=$ac_check_lib_save_LIBS
26424 fi
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26426 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26427 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26428   passed=`expr $passed + 1`
26429 else
26430   failed=`expr $failed + 1`
26431 fi
26432
26433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26434 $as_echo_n "checking if DPS package is complete... " >&6; }
26435     if test $passed -gt 0; then
26436         if test $failed -gt 0; then
26437             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26438 $as_echo "no -- some components failed test" >&6; }
26439             have_dps='no (failed tests)'
26440             CPPFLAGS="$PERSIST_CPPFLAGS"
26441         else
26442             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26443             LIBS="$DPS_LIBS $LIBS"
26444
26445 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26446
26447             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26448 $as_echo "yes" >&6; }
26449             have_dps='yes'
26450         fi
26451     else
26452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26453 $as_echo "no" >&6; }
26454         CPPFLAGS=$PERSIST_CPPFLAGS
26455     fi
26456 fi
26457  if test "$have_dps" = 'yes'; then
26458   DPS_DELEGATE_TRUE=
26459   DPS_DELEGATE_FALSE='#'
26460 else
26461   DPS_DELEGATE_TRUE='#'
26462   DPS_DELEGATE_FALSE=
26463 fi
26464
26465
26466
26467
26468 #
26469 # Check for DJVU delegate library.
26470 #
26471
26472 # Check whether --with-djvu was given.
26473 if test "${with_djvu+set}" = set; then :
26474   withval=$with_djvu; with_djvu=$withval
26475 else
26476   with_djvu='yes'
26477 fi
26478
26479
26480 if test "$with_djvu" != 'yes'; then
26481     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26482 fi
26483
26484 have_djvu='no'
26485 DJVU_LIBS=''
26486 if test "$with_djvu" != 'no'; then
26487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26488 $as_echo "-------------------------------------------------------------" >&6; }
26489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26490 $as_echo_n "checking for DJVU... " >&6; }
26491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26492 $as_echo "" >&6; }
26493     failed=0
26494     passed=0
26495     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26496 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26497   passed=`expr $passed + 1`
26498 else
26499   failed=`expr $failed + 1`
26500 fi
26501
26502
26503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26504 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26505 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26506   $as_echo_n "(cached) " >&6
26507 else
26508   ac_check_lib_save_LIBS=$LIBS
26509 LIBS="-ldjvulibre  $LIBS"
26510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511 /* end confdefs.h.  */
26512
26513 /* Override any GCC internal prototype to avoid an error.
26514    Use char because int might match the return type of a GCC
26515    builtin and then its argument prototype would still apply.  */
26516 #ifdef __cplusplus
26517 extern "C"
26518 #endif
26519 char ddjvu_context_create ();
26520 int
26521 main ()
26522 {
26523 return ddjvu_context_create ();
26524   ;
26525   return 0;
26526 }
26527 _ACEOF
26528 if ac_fn_c_try_link "$LINENO"; then :
26529   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26530 else
26531   ac_cv_lib_djvulibre_ddjvu_context_create=no
26532 fi
26533 rm -f core conftest.err conftest.$ac_objext \
26534     conftest$ac_exeext conftest.$ac_ext
26535 LIBS=$ac_check_lib_save_LIBS
26536 fi
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26538 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26539 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26540   passed=`expr $passed + 1`
26541 else
26542   failed=`expr $failed + 1`
26543 fi
26544
26545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26546 $as_echo_n "checking if DJVU package is complete... " >&6; }
26547     if test $passed -gt 0; then
26548         if test $failed -gt 0; then
26549             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26550 $as_echo "no -- some components failed test" >&6; }
26551             have_djvu='no (failed tests)'
26552         else
26553             DJVU_LIBS='-ldjvulibre'
26554             LIBS="$DJVU_LIBS $LIBS"
26555
26556 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26557
26558             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26559 $as_echo "yes" >&6; }
26560             have_djvu='yes'
26561         fi
26562     else
26563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26564 $as_echo "no" >&6; }
26565     fi
26566 fi
26567  if test "$have_djvu" = 'yes'; then
26568   DJVU_DELEGATE_TRUE=
26569   DJVU_DELEGATE_FALSE='#'
26570 else
26571   DJVU_DELEGATE_TRUE='#'
26572   DJVU_DELEGATE_FALSE=
26573 fi
26574
26575
26576
26577
26578 #
26579 # Set DejaVu font directory.
26580 #
26581
26582 # Check whether --with-dejavu-font-dir was given.
26583 if test "${with_dejavu_font_dir+set}" = set; then :
26584   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26585 else
26586   with_dejavu_font_dir='default'
26587 fi
26588
26589
26590 if test "$with_dejavu_font_dir" != 'default'; then
26591     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26592 fi
26593
26594
26595 #
26596 # Check for FFTW delegate library.
26597 #
26598
26599 # Check whether --with-fftw was given.
26600 if test "${with_fftw+set}" = set; then :
26601   withval=$with_fftw; with_fftw=$withval
26602 else
26603   with_fftw='yes'
26604 fi
26605
26606
26607 if test "$with_fftw" != 'yes'; then
26608     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26609 fi
26610
26611 have_fftw='no'
26612 FFTW_LIBS=''
26613 if test "$with_fftw" != 'no'; then
26614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26615 $as_echo "-------------------------------------------------------------" >&6; }
26616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26617 $as_echo_n "checking for FFTW... " >&6; }
26618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26619 $as_echo "" >&6; }
26620     failed=0
26621     passed=0
26622     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26623 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26624   passed=`expr $passed + 1`
26625 else
26626   failed=`expr $failed + 1`
26627 fi
26628
26629
26630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26631 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26632 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26633   $as_echo_n "(cached) " >&6
26634 else
26635   ac_check_lib_save_LIBS=$LIBS
26636 LIBS="-lfftw3  $LIBS"
26637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638 /* end confdefs.h.  */
26639
26640 /* Override any GCC internal prototype to avoid an error.
26641    Use char because int might match the return type of a GCC
26642    builtin and then its argument prototype would still apply.  */
26643 #ifdef __cplusplus
26644 extern "C"
26645 #endif
26646 char fftw_execute ();
26647 int
26648 main ()
26649 {
26650 return fftw_execute ();
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 if ac_fn_c_try_link "$LINENO"; then :
26656   ac_cv_lib_fftw3_fftw_execute=yes
26657 else
26658   ac_cv_lib_fftw3_fftw_execute=no
26659 fi
26660 rm -f core conftest.err conftest.$ac_objext \
26661     conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26663 fi
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26665 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26666 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26667   passed=`expr $passed + 1`
26668 else
26669   failed=`expr $failed + 1`
26670 fi
26671
26672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26673 $as_echo_n "checking if FFTW package is complete... " >&6; }
26674     if test $passed -gt 0; then
26675         if test $failed -gt 0; then
26676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26677 $as_echo "no -- some components failed test" >&6; }
26678             have_fftw='no (failed tests)'
26679         else
26680             FFTW_LIBS='-lfftw3'
26681             LIBS="$FFTW_LIBS $LIBS"
26682
26683 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26684
26685             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26686 $as_echo "yes" >&6; }
26687             have_fftw='yes'
26688         fi
26689     else
26690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26691 $as_echo "no" >&6; }
26692     fi
26693 fi
26694  if test "$have_fftw" = 'yes'; then
26695   FFTW_DELEGATE_TRUE=
26696   FFTW_DELEGATE_FALSE='#'
26697 else
26698   FFTW_DELEGATE_TRUE='#'
26699   FFTW_DELEGATE_FALSE=
26700 fi
26701
26702
26703
26704
26705 #
26706 # Check for FlashPIX delegate library.
26707 #
26708
26709 # Check whether --with-fpx was given.
26710 if test "${with_fpx+set}" = set; then :
26711   withval=$with_fpx; with_fpx=$withval
26712 else
26713   with_fpx='yes'
26714 fi
26715
26716
26717 if test "$with_fpx" != 'yes'; then
26718     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26719 fi
26720
26721 have_fpx='no'
26722 FPX_LIBS=''
26723 if test "$with_fpx" != 'no'; then
26724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26725 $as_echo "-------------------------------------------------------------" >&6; }
26726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26727 $as_echo_n "checking for FlashPIX... " >&6; }
26728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26729 $as_echo "" >&6; }
26730     failed=0
26731     passed=0
26732     ac_ext=cpp
26733 ac_cpp='$CXXCPP $CPPFLAGS'
26734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26737
26738
26739 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26740 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26741   passed=`expr $passed + 1`
26742 else
26743   failed=`expr $failed + 1`
26744 fi
26745
26746
26747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26748 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26749 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26750   $as_echo_n "(cached) " >&6
26751 else
26752   ac_check_lib_save_LIBS=$LIBS
26753 LIBS="-lfpx  $LIBS"
26754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26755 /* end confdefs.h.  */
26756
26757 /* Override any GCC internal prototype to avoid an error.
26758    Use char because int might match the return type of a GCC
26759    builtin and then its argument prototype would still apply.  */
26760 #ifdef __cplusplus
26761 extern "C"
26762 #endif
26763 char FPX_OpenImageByFilename ();
26764 int
26765 main ()
26766 {
26767 return FPX_OpenImageByFilename ();
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 if ac_fn_cxx_try_link "$LINENO"; then :
26773   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26774 else
26775   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26776 fi
26777 rm -f core conftest.err conftest.$ac_objext \
26778     conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26782 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26783 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26784   passed=`expr $passed + 1`
26785 else
26786   failed=`expr $failed + 1`
26787 fi
26788
26789     ac_ext=c
26790 ac_cpp='$CPP $CPPFLAGS'
26791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26794
26795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26796 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26797     if test $passed -gt 0; then
26798         if test $failed -gt 0; then
26799             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26800 $as_echo "no -- some components failed test" >&6; }
26801             have_fpx='no (failed tests)'
26802         else
26803             FPX_LIBS='-lfpx'
26804
26805 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26806
26807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26808 $as_echo "yes" >&6; }
26809             have_fpx='yes'
26810             PERLMAINCC="$CXX"
26811         fi
26812     else
26813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814 $as_echo "no" >&6; }
26815     fi
26816 fi
26817  if test "$have_fpx" = 'yes'; then
26818   FPX_DELEGATE_TRUE=
26819   FPX_DELEGATE_FALSE='#'
26820 else
26821   FPX_DELEGATE_TRUE='#'
26822   FPX_DELEGATE_FALSE=
26823 fi
26824
26825
26826
26827
26828 #
26829 # Check for fontconfig delegate library.
26830 #
26831
26832 # Check whether --with-fontconfig was given.
26833 if test "${with_fontconfig+set}" = set; then :
26834   withval=$with_fontconfig; with_fontconfig=$withval
26835 else
26836   with_fontconfig=$have_x
26837 fi
26838
26839
26840 if test "$with_fontconfig" != 'yes'; then
26841     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26842 fi
26843
26844 have_fontconfig='no'
26845 FONTCONFIG_CFLAGS=""
26846 FONTCONFIG_LIBS=""
26847 FONTCONFIG_PKG=""
26848 if test "x$with_fontconfig" = "xyes"; then
26849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26850 $as_echo "-------------------------------------------------------------" >&6; }
26851
26852 pkg_failed=no
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26854 $as_echo_n "checking for FONTCONFIG... " >&6; }
26855
26856 if test -n "$FONTCONFIG_CFLAGS"; then
26857     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26858  elif test -n "$PKG_CONFIG"; then
26859     if test -n "$PKG_CONFIG" && \
26860     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26861   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26862   ac_status=$?
26863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864   test $ac_status = 0; }; then
26865   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26866 else
26867   pkg_failed=yes
26868 fi
26869  else
26870     pkg_failed=untried
26871 fi
26872 if test -n "$FONTCONFIG_LIBS"; then
26873     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26874  elif test -n "$PKG_CONFIG"; then
26875     if test -n "$PKG_CONFIG" && \
26876     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26877   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26878   ac_status=$?
26879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880   test $ac_status = 0; }; then
26881   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26882 else
26883   pkg_failed=yes
26884 fi
26885  else
26886     pkg_failed=untried
26887 fi
26888
26889
26890
26891 if test $pkg_failed = yes; then
26892
26893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26894         _pkg_short_errors_supported=yes
26895 else
26896         _pkg_short_errors_supported=no
26897 fi
26898         if test $_pkg_short_errors_supported = yes; then
26899                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26900         else
26901                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26902         fi
26903         # Put the nasty error message in config.log where it belongs
26904         echo "$FONTCONFIG_PKG_ERRORS" >&5
26905
26906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26907 $as_echo "no" >&6; }
26908                 have_fontconfig=no
26909 elif test $pkg_failed = untried; then
26910         have_fontconfig=no
26911 else
26912         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26913         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26915 $as_echo "yes" >&6; }
26916         have_fontconfig=yes
26917 fi
26918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26919 $as_echo "" >&6; }
26920 fi
26921
26922 if test "$have_fontconfig" = 'yes'; then
26923
26924 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26925
26926   if test "$with_modules" = 'no'; then
26927     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26928   fi
26929 fi
26930
26931  if test "$have_fontconfig" = 'yes'; then
26932   FONTCONFIG_DELEGATE_TRUE=
26933   FONTCONFIG_DELEGATE_FALSE='#'
26934 else
26935   FONTCONFIG_DELEGATE_TRUE='#'
26936   FONTCONFIG_DELEGATE_FALSE=
26937 fi
26938
26939
26940
26941
26942
26943 #
26944 # Check for freetype delegate library.
26945 #
26946
26947 # Check whether --with-freetype was given.
26948 if test "${with_freetype+set}" = set; then :
26949   withval=$with_freetype; with_freetype=$withval
26950 else
26951   with_freetype='yes'
26952 fi
26953
26954
26955
26956 if test "$with_freetype" != 'yes'; then
26957     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26958 fi
26959
26960 have_freetype='no'
26961 FREETYPE_LIBS=''
26962 if test "$with_freetype" != 'no'; then
26963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26964 $as_echo "-------------------------------------------------------------" >&6; }
26965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26966 $as_echo_n "checking for FreeType 2.0... " >&6; }
26967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26968 $as_echo "" >&6; }
26969     failed=0
26970     passed=0
26971     PERSIST_LIBS="$LIBS"
26972     PERSIST_CPPFLAGS="$CPPFLAGS"
26973     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26974         :
26975     else
26976         freetype_config=''
26977         for ac_prog in freetype-config
26978 do
26979   # Extract the first word of "$ac_prog", so it can be a program name with args.
26980 set dummy $ac_prog; ac_word=$2
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26982 $as_echo_n "checking for $ac_word... " >&6; }
26983 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26984   $as_echo_n "(cached) " >&6
26985 else
26986   if test -n "$freetype_config"; then
26987   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26988 else
26989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26990 for as_dir in $PATH
26991 do
26992   IFS=$as_save_IFS
26993   test -z "$as_dir" && as_dir=.
26994     for ac_exec_ext in '' $ac_executable_extensions; do
26995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26996     ac_cv_prog_freetype_config="$ac_prog"
26997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26998     break 2
26999   fi
27000 done
27001   done
27002 IFS=$as_save_IFS
27003
27004 fi
27005 fi
27006 freetype_config=$ac_cv_prog_freetype_config
27007 if test -n "$freetype_config"; then
27008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27009 $as_echo "$freetype_config" >&6; }
27010 else
27011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27012 $as_echo "no" >&6; }
27013 fi
27014
27015
27016   test -n "$freetype_config" && break
27017 done
27018         if test -n "$freetype_config"; then
27019             freetype_cflags=`$freetype_config --cflags`
27020             freetype_libs=`$freetype_config --libs`
27021             LIBS="$LIBS $freetype_libs"
27022             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27023         fi
27024     fi
27025
27026     if test "$FREETYPE_LIBS" = ''; then
27027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27028 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27029 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27030   $as_echo_n "(cached) " >&6
27031 else
27032   ac_check_lib_save_LIBS=$LIBS
27033 LIBS="-lfreetype  $LIBS"
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h.  */
27036
27037 /* Override any GCC internal prototype to avoid an error.
27038    Use char because int might match the return type of a GCC
27039    builtin and then its argument prototype would still apply.  */
27040 #ifdef __cplusplus
27041 extern "C"
27042 #endif
27043 char FT_Init_FreeType ();
27044 int
27045 main ()
27046 {
27047 return FT_Init_FreeType ();
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 if ac_fn_c_try_link "$LINENO"; then :
27053   ac_cv_lib_freetype_FT_Init_FreeType=yes
27054 else
27055   ac_cv_lib_freetype_FT_Init_FreeType=no
27056 fi
27057 rm -f core conftest.err conftest.$ac_objext \
27058     conftest$ac_exeext conftest.$ac_ext
27059 LIBS=$ac_check_lib_save_LIBS
27060 fi
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27062 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27063 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27064   FREETYPE_LIBS='-lfreetype'
27065 fi
27066
27067         if test "$FREETYPE_LIBS" != ''; then
27068             passed=`expr $passed + 1`
27069         else
27070             failed=`expr $failed + 1`
27071             LIBS="$PERSIST_LIBS"
27072         fi
27073     fi
27074
27075     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27076 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27077   FT2BUILD_H='#include <ft2build.h>'
27078 else
27079   ft2build=''
27080 fi
27081
27082
27083     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27084 "
27085 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27086   have_freetype_h='yes'
27087 else
27088   have_freetype_h='no'
27089 fi
27090
27091
27092     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27093         passed=`expr $passed + 1`
27094     else
27095         failed=`expr $failed + 1`
27096         CPPFLAGS="$PERSIST_CPPFLAGS"
27097     fi
27098
27099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27100 $as_echo_n "checking if FreeType package is complete... " >&6; }
27101     if test $passed -gt 0; then
27102         if test $failed -gt 0; then
27103             FREETYPE_LIBS=''
27104             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27105 $as_echo "no -- some components failed test" >&6; }
27106             have_freetype='no (failed tests)'
27107         else
27108             LIBS="$FREETYPE_LIBS $LIBS"
27109
27110 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27111
27112             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27113
27114 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27115
27116             fi
27117             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27118 $as_echo "yes" >&6; }
27119             have_freetype='yes'
27120         fi
27121     else
27122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123 $as_echo "no" >&6; }
27124     fi
27125 fi
27126  if test "$have_freetype" = 'yes'; then
27127   FREETYPE_DELEGATE_TRUE=
27128   FREETYPE_DELEGATE_FALSE='#'
27129 else
27130   FREETYPE_DELEGATE_TRUE='#'
27131   FREETYPE_DELEGATE_FALSE=
27132 fi
27133
27134
27135
27136
27137
27138 #
27139 # Check for Ghostscript library or framework.
27140 #
27141 # Test for iapi.h & test for gsapi_new_instance in -lgs
27142 # or -framework Ghostscript
27143
27144
27145 # Check whether --with-gslib was given.
27146 if test "${with_gslib+set}" = set; then :
27147   withval=$with_gslib; with_gslib=$withval
27148 else
27149   with_gslib='no'
27150 fi
27151
27152
27153 gslib_framework='no'
27154 if test "$with_gslib" != 'yes'; then
27155     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27156 fi
27157
27158 have_gslib='no'
27159 GS_LIBS=''
27160 if test "$with_gslib" != 'no'; then
27161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27162 $as_echo "-------------------------------------------------------------" >&6; }
27163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27164 $as_echo_n "checking for Ghostscript... " >&6; }
27165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27166 $as_echo "" >&6; }
27167     framework=0
27168     failed=0
27169     passed=0
27170     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27171 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27172   passed=`expr $passed + 1`
27173 else
27174   failed=`expr $failed + 1`
27175 fi
27176
27177
27178     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27179 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27180   passed=`expr $passed + 1`
27181 else
27182   failed=`expr $failed + 1`
27183 fi
27184
27185
27186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27187 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27188 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27189   $as_echo_n "(cached) " >&6
27190 else
27191   ac_check_framework_save_LIBS=$LIBS
27192 LIBS="-framework Ghostscript  $LIBS"
27193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27194 /* end confdefs.h.  */
27195
27196 /* Override any GCC internal prototype to avoid an error.
27197    Use char because int might match the return type of a GCC
27198    builtin and then its argument prototype would still apply.  */
27199 #ifdef __cplusplus
27200 extern "C"
27201 #endif
27202 char gsapi_new_instance ();
27203 int
27204 main ()
27205 {
27206 return gsapi_new_instance ();
27207   ;
27208   return 0;
27209 }
27210 _ACEOF
27211 if ac_fn_c_try_link "$LINENO"; then :
27212   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27213 else
27214   ac_cv_framework_Ghostscript_gsapi_new_instance=no
27215 fi
27216 rm -f core conftest.err conftest.$ac_objext \
27217     conftest$ac_exeext conftest.$ac_ext
27218 LIBS=$ac_check_framework_save_LIBS
27219 fi
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27221 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27222 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27223   framework=`expr $framework + 1`
27224 else
27225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27226 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27227 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27228   $as_echo_n "(cached) " >&6
27229 else
27230   ac_check_lib_save_LIBS=$LIBS
27231 LIBS="-lgs  $LIBS"
27232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h.  */
27234
27235 /* Override any GCC internal prototype to avoid an error.
27236    Use char because int might match the return type of a GCC
27237    builtin and then its argument prototype would still apply.  */
27238 #ifdef __cplusplus
27239 extern "C"
27240 #endif
27241 char gsapi_new_instance ();
27242 int
27243 main ()
27244 {
27245 return gsapi_new_instance ();
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 if ac_fn_c_try_link "$LINENO"; then :
27251   ac_cv_lib_gs_gsapi_new_instance=yes
27252 else
27253   ac_cv_lib_gs_gsapi_new_instance=no
27254 fi
27255 rm -f core conftest.err conftest.$ac_objext \
27256     conftest$ac_exeext conftest.$ac_ext
27257 LIBS=$ac_check_lib_save_LIBS
27258 fi
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27260 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27261 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27262   passed=`expr $passed + 1`
27263 else
27264   failed=`expr $failed + 1`
27265 fi
27266
27267 fi
27268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27269 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27270     if test $passed -gt 0; then
27271         if test $failed -gt 0; then
27272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27273 $as_echo "no -- some components failed test" >&6; }
27274             have_gslib='no (failed tests)'
27275         else
27276             if test $framework -gt 0; then
27277                 GS_LIBS='-framework Ghostscript'
27278                 gslib_framework='yes'
27279                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27280 $as_echo "yes, using framework." >&6; }
27281             else
27282                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27283 $as_echo "yes, using library." >&6; }
27284                 GS_LIBS='-lgs'
27285             fi
27286             LIBS="$GS_LIBS $LIBS"
27287
27288 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27289
27290             have_gslib='yes'
27291         fi
27292     else
27293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27294 $as_echo "no" >&6; }
27295     fi
27296 fi
27297  if test "$have_gslib" = 'yes'; then
27298   GS_DELEGATE_TRUE=
27299   GS_DELEGATE_FALSE='#'
27300 else
27301   GS_DELEGATE_TRUE='#'
27302   GS_DELEGATE_FALSE=
27303 fi
27304
27305
27306
27307 # Set default font search path
27308
27309 # Check whether --with-fontpath was given.
27310 if test "${with_fontpath+set}" = set; then :
27311   withval=$with_fontpath; with_fontpath=$withval
27312 else
27313   with_fontpath=''
27314 fi
27315
27316
27317 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27318     with_fontpath=''
27319 else
27320
27321 cat >>confdefs.h <<_ACEOF
27322 #define MAGICK_FONT_PATH "$with_fontpath"
27323 _ACEOF
27324
27325 fi
27326 if test "$with_fontpath=" != ''; then
27327     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27328 fi
27329
27330 # Set Ghostscript font directory
27331
27332 # Check whether --with-gs-font-dir was given.
27333 if test "${with_gs_font_dir+set}" = set; then :
27334   withval=$with_gs_font_dir; with_gs_font_dir=$withval
27335 else
27336   with_gs_font_dir='default'
27337 fi
27338
27339
27340 if test "$with_gs_font_dir" != 'default'; then
27341     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27342 fi
27343
27344
27345 #
27346 # Check for GVC delegate library.
27347 #
27348
27349 # Check whether --with-gvc was given.
27350 if test "${with_gvc+set}" = set; then :
27351   withval=$with_gvc; with_gvc=$withval
27352 else
27353   with_gvc='yes'
27354 fi
27355
27356
27357 if test "$with_gvc" != 'yes'; then
27358     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27359 fi
27360
27361 GVC_PKG=""
27362 if test "x$with_gvc" = "xyes"; then
27363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27364 $as_echo "-------------------------------------------------------------" >&6; }
27365
27366 pkg_failed=no
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27368 $as_echo_n "checking for GVC... " >&6; }
27369
27370 if test -n "$GVC_CFLAGS"; then
27371     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27372  elif test -n "$PKG_CONFIG"; then
27373     if test -n "$PKG_CONFIG" && \
27374     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27375   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27376   ac_status=$?
27377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378   test $ac_status = 0; }; then
27379   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27380 else
27381   pkg_failed=yes
27382 fi
27383  else
27384     pkg_failed=untried
27385 fi
27386 if test -n "$GVC_LIBS"; then
27387     pkg_cv_GVC_LIBS="$GVC_LIBS"
27388  elif test -n "$PKG_CONFIG"; then
27389     if test -n "$PKG_CONFIG" && \
27390     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27391   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27392   ac_status=$?
27393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394   test $ac_status = 0; }; then
27395   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27396 else
27397   pkg_failed=yes
27398 fi
27399  else
27400     pkg_failed=untried
27401 fi
27402
27403
27404
27405 if test $pkg_failed = yes; then
27406
27407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27408         _pkg_short_errors_supported=yes
27409 else
27410         _pkg_short_errors_supported=no
27411 fi
27412         if test $_pkg_short_errors_supported = yes; then
27413                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27414         else
27415                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27416         fi
27417         # Put the nasty error message in config.log where it belongs
27418         echo "$GVC_PKG_ERRORS" >&5
27419
27420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27421 $as_echo "no" >&6; }
27422                 have_gvc=no
27423 elif test $pkg_failed = untried; then
27424         have_gvc=no
27425 else
27426         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27427         GVC_LIBS=$pkg_cv_GVC_LIBS
27428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27429 $as_echo "yes" >&6; }
27430         have_gvc=yes
27431 fi
27432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27433 $as_echo "" >&6; }
27434 fi
27435
27436 if test "$have_gvc" = 'yes'; then
27437
27438 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27439
27440     if test "$with_modules" = 'no'; then
27441         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27442     fi
27443 fi
27444
27445  if test "$have_gvc" = 'yes'; then
27446   GVC_DELEGATE_TRUE=
27447   GVC_DELEGATE_FALSE='#'
27448 else
27449   GVC_DELEGATE_TRUE='#'
27450   GVC_DELEGATE_FALSE=
27451 fi
27452
27453
27454
27455
27456
27457 #
27458 # Check for JBIG delegate library.
27459 #
27460
27461
27462 # Check whether --with-jbig was given.
27463 if test "${with_jbig+set}" = set; then :
27464   withval=$with_jbig; with_jbig=$withval
27465 else
27466   with_jbig='yes'
27467 fi
27468
27469
27470 have_jbig='no'
27471 JBIG_LIBS=''
27472 if test "$with_jbig" != 'no'; then
27473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27474 $as_echo "-------------------------------------------------------------" >&6; }
27475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27476 $as_echo_n "checking for JBIG... " >&6; }
27477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27478 $as_echo "" >&6; }
27479     failed=0
27480     passed=0
27481     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27482 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27483   passed=`expr $passed + 1`
27484 else
27485   failed=`expr $failed + 1`
27486 fi
27487
27488
27489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27490 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27491 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27492   $as_echo_n "(cached) " >&6
27493 else
27494   ac_check_lib_save_LIBS=$LIBS
27495 LIBS="-ljbig  $LIBS"
27496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h.  */
27498
27499 /* Override any GCC internal prototype to avoid an error.
27500    Use char because int might match the return type of a GCC
27501    builtin and then its argument prototype would still apply.  */
27502 #ifdef __cplusplus
27503 extern "C"
27504 #endif
27505 char jbg_dec_init ();
27506 int
27507 main ()
27508 {
27509 return jbg_dec_init ();
27510   ;
27511   return 0;
27512 }
27513 _ACEOF
27514 if ac_fn_c_try_link "$LINENO"; then :
27515   ac_cv_lib_jbig_jbg_dec_init=yes
27516 else
27517   ac_cv_lib_jbig_jbg_dec_init=no
27518 fi
27519 rm -f core conftest.err conftest.$ac_objext \
27520     conftest$ac_exeext conftest.$ac_ext
27521 LIBS=$ac_check_lib_save_LIBS
27522 fi
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27524 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27525 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27526   passed=`expr $passed + 1`
27527 else
27528   failed=`expr $failed + 1`
27529 fi
27530
27531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27532 $as_echo_n "checking if JBIG package is complete... " >&6; }
27533     if test $passed -gt 0; then
27534         if test $failed -gt 0; then
27535             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27536 $as_echo "no -- some components failed test" >&6; }
27537             have_jbig='no (failed tests)'
27538         else
27539             JBIG_LIBS='-ljbig'
27540             LIBS="$JBIG_LIBS $LIBS"
27541
27542 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27543
27544             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27545 $as_echo "yes" >&6; }
27546             have_jbig='yes'
27547         fi
27548     else
27549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27550 $as_echo "no" >&6; }
27551     fi
27552 fi
27553  if test "$have_jbig" = 'yes'; then
27554   JBIG_DELEGATE_TRUE=
27555   JBIG_DELEGATE_FALSE='#'
27556 else
27557   JBIG_DELEGATE_TRUE='#'
27558   JBIG_DELEGATE_FALSE=
27559 fi
27560
27561
27562
27563
27564 #
27565 # Check for JPEG delegate library.
27566 #
27567
27568 # Check whether --with-jpeg was given.
27569 if test "${with_jpeg+set}" = set; then :
27570   withval=$with_jpeg; with_jpeg=$withval
27571 else
27572   with_jpeg='yes'
27573 fi
27574
27575
27576 if test "$with_jpeg" != 'yes'; then
27577     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27578 fi
27579
27580 have_jpeg='no'
27581 JPEG_LIBS=''
27582 if test "$with_jpeg" != 'no'; then
27583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27584 $as_echo "-------------------------------------------------------------" >&6; }
27585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27586 $as_echo_n "checking for JPEG... " >&6; }
27587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27588 $as_echo "" >&6; }
27589     failed=0
27590     passed=0
27591     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27592 if test "x$ac_cv_header_jconfig_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" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27600 if test "x$ac_cv_header_jerror_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" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27608 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27609   passed=`expr $passed + 1`
27610 else
27611   failed=`expr $failed + 1`
27612 fi
27613
27614
27615     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27616 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27617   passed=`expr $passed + 1`
27618 else
27619   failed=`expr $failed + 1`
27620 fi
27621
27622
27623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27624 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27625 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27626   $as_echo_n "(cached) " >&6
27627 else
27628   ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-ljpeg  $LIBS"
27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27631 /* end confdefs.h.  */
27632
27633 /* Override any GCC internal prototype to avoid an error.
27634    Use char because int might match the return type of a GCC
27635    builtin and then its argument prototype would still apply.  */
27636 #ifdef __cplusplus
27637 extern "C"
27638 #endif
27639 char jpeg_read_header ();
27640 int
27641 main ()
27642 {
27643 return jpeg_read_header ();
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 if ac_fn_c_try_link "$LINENO"; then :
27649   ac_cv_lib_jpeg_jpeg_read_header=yes
27650 else
27651   ac_cv_lib_jpeg_jpeg_read_header=no
27652 fi
27653 rm -f core conftest.err conftest.$ac_objext \
27654     conftest$ac_exeext conftest.$ac_ext
27655 LIBS=$ac_check_lib_save_LIBS
27656 fi
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27658 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27659 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27660   passed=`expr $passed + 1`
27661 else
27662   failed=`expr $failed + 1`
27663 fi
27664
27665
27666 # Test for compatible JPEG library
27667 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27669 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27670 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27671   $as_echo_n "(cached) " >&6
27672 else
27673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27674 /* end confdefs.h.  */
27675 #include <stdio.h>
27676 #include <stdlib.h>
27677 #include <jpeglib.h>
27678
27679 int
27680 main ()
27681 {
27682
27683 #if JPEG_LIB_VERSION < 62
27684 #error IJG JPEG library must be version 6b or newer!
27685 #endif
27686 return 0;
27687
27688   ;
27689   return 0;
27690 }
27691 _ACEOF
27692 if ac_fn_c_try_compile "$LINENO"; then :
27693   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27694 else
27695   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27696 fi
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27698 fi
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27700 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27701 fi
27702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27703 $as_echo_n "checking if JPEG package is complete... " >&6; }
27704     if test $passed -gt 0; then
27705         if test $failed -gt 0; then
27706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27707 $as_echo "no -- some components failed test" >&6; }
27708             have_jpeg='no (failed tests)'
27709         else
27710             JPEG_LIBS='-ljpeg'
27711             LIBS="$JPEG_LIBS $LIBS"
27712
27713 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27714
27715             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27716 $as_echo "yes" >&6; }
27717             have_jpeg='yes'
27718         fi
27719     else
27720         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27721 $as_echo "no" >&6; }
27722     fi
27723 fi
27724  if test "$have_jpeg" = 'yes'; then
27725   JPEG_DELEGATE_TRUE=
27726   JPEG_DELEGATE_FALSE='#'
27727 else
27728   JPEG_DELEGATE_TRUE='#'
27729   JPEG_DELEGATE_FALSE=
27730 fi
27731
27732
27733
27734
27735 #
27736 # Check for JPEG Version 2 delegate library.
27737 #
27738
27739 # Check whether --with-jp2 was given.
27740 if test "${with_jp2+set}" = set; then :
27741   withval=$with_jp2; with_jp2=$withval
27742 else
27743   with_jp2='yes'
27744 fi
27745
27746
27747 if test "$with_jp2" != 'yes'; then
27748     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27749 fi
27750
27751 have_jp2='no'
27752 JP2_LIBS=''
27753 if test "$with_jp2" != 'no'; then
27754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27755 $as_echo "-------------------------------------------------------------" >&6; }
27756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27757 $as_echo_n "checking for JPEG Version 2... " >&6; }
27758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27759 $as_echo "" >&6; }
27760     failed=0
27761     passed=0
27762     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27763 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27764   passed=`expr $passed + 1`
27765 else
27766   failed=`expr $failed + 1`
27767 fi
27768
27769
27770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27771 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27772 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27773   $as_echo_n "(cached) " >&6
27774 else
27775   ac_check_lib_save_LIBS=$LIBS
27776 LIBS="-ljasper  $LIBS"
27777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27778 /* end confdefs.h.  */
27779
27780 /* Override any GCC internal prototype to avoid an error.
27781    Use char because int might match the return type of a GCC
27782    builtin and then its argument prototype would still apply.  */
27783 #ifdef __cplusplus
27784 extern "C"
27785 #endif
27786 char jas_stream_fopen ();
27787 int
27788 main ()
27789 {
27790 return jas_stream_fopen ();
27791   ;
27792   return 0;
27793 }
27794 _ACEOF
27795 if ac_fn_c_try_link "$LINENO"; then :
27796   ac_cv_lib_jasper_jas_stream_fopen=yes
27797 else
27798   ac_cv_lib_jasper_jas_stream_fopen=no
27799 fi
27800 rm -f core conftest.err conftest.$ac_objext \
27801     conftest$ac_exeext conftest.$ac_ext
27802 LIBS=$ac_check_lib_save_LIBS
27803 fi
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27805 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27806 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27807   passed=`expr $passed + 1`
27808 else
27809   failed=`expr $failed + 1`
27810 fi
27811
27812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27813 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27814     if test $passed -gt 0; then
27815         if test $failed -gt 0; then
27816             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27817 $as_echo "no -- some components failed test" >&6; }
27818             have_jp2='no (failed tests)'
27819         else
27820             JP2_LIBS='-ljasper'
27821             LIBS="$JP2_LIBS $LIBS"
27822
27823 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27824
27825             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27826 $as_echo "yes" >&6; }
27827             have_jp2='yes'
27828         fi
27829     else
27830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27831 $as_echo "no" >&6; }
27832     fi
27833 fi
27834  if test "$have_jp2" = 'yes'; then
27835   JP2_DELEGATE_TRUE=
27836   JP2_DELEGATE_FALSE='#'
27837 else
27838   JP2_DELEGATE_TRUE='#'
27839   JP2_DELEGATE_FALSE=
27840 fi
27841
27842
27843
27844
27845 #
27846 # Check for LCMS delegate library.
27847 #
27848 # Disable LCMS.
27849
27850 # Check whether --with-lcms was given.
27851 if test "${with_lcms+set}" = set; then :
27852   withval=$with_lcms; with_lcms=$withval
27853 else
27854   with_lcms='yes'
27855 fi
27856
27857 if test "$with_lcms" != 'yes' ; then
27858     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27859 fi
27860
27861 # Disable LCMS2.
27862
27863 # Check whether --with-lcms2 was given.
27864 if test "${with_lcms2+set}" = set; then :
27865   withval=$with_lcms2; with_lcms2=$withval
27866 else
27867   with_lcms2='yes'
27868 fi
27869
27870 if test "$with_lcms2" != 'yes' ; then
27871     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27872 fi
27873
27874 have_lcms2='no'
27875 LCMS_LIBS=''
27876 if test "$with_lcms2" != 'no'; then
27877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27878 $as_echo "-------------------------------------------------------------" >&6; }
27879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27880 $as_echo_n "checking for LCMS v2... " >&6; }
27881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27882 $as_echo "" >&6; }
27883     failed=0
27884     passed=0
27885     have_lcms_header='no'
27886
27887     # Check for <lcms2.h>
27888     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27889 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27890   have_lcms_header='yes'
27891 fi
27892
27893
27894     if test "$have_lcms_header" = 'yes'; then
27895
27896 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27897
27898        passed=`expr $passed + 1`
27899     fi
27900
27901     # Check for <lcms2/lcms2.h)
27902     if test "$have_lcms_header" != 'yes'; then
27903       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27904 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27905   have_lcms_header='yes'
27906 fi
27907
27908
27909       if test "$have_lcms_header" = 'yes'; then
27910         passed=`expr $passed + 1`
27911
27912 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27913
27914       fi
27915     fi
27916
27917     # Failed to find lcms header?
27918     if test "$have_lcms_header" != 'yes'; then
27919       failed=`expr $failed + 1`
27920     fi
27921
27922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27923 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27924 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27925   $as_echo_n "(cached) " >&6
27926 else
27927   ac_check_lib_save_LIBS=$LIBS
27928 LIBS="-llcms2  $LIBS"
27929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h.  */
27931
27932 /* Override any GCC internal prototype to avoid an error.
27933    Use char because int might match the return type of a GCC
27934    builtin and then its argument prototype would still apply.  */
27935 #ifdef __cplusplus
27936 extern "C"
27937 #endif
27938 char cmsSetLogErrorHandler ();
27939 int
27940 main ()
27941 {
27942 return cmsSetLogErrorHandler ();
27943   ;
27944   return 0;
27945 }
27946 _ACEOF
27947 if ac_fn_c_try_link "$LINENO"; then :
27948   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27949 else
27950   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27951 fi
27952 rm -f core conftest.err conftest.$ac_objext \
27953     conftest$ac_exeext conftest.$ac_ext
27954 LIBS=$ac_check_lib_save_LIBS
27955 fi
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27957 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27958 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27959   passed=`expr $passed + 1`
27960 else
27961   failed=`expr $failed + 1`
27962 fi
27963
27964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27965 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27966     if test $passed -gt 0; then
27967       if test $failed -gt 0; then
27968         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27969 $as_echo "no -- some components failed test" >&6; }
27970         have_lcms2='no (failed tests)'
27971       else
27972         LCMS_LIBS='-llcms2'
27973         LIBS="$LCMS_LIBS $LIBS"
27974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }
27976         have_lcms2='yes'
27977       fi
27978     else
27979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27980 $as_echo "no" >&6; }
27981     fi
27982 fi
27983
27984 #
27985 # Check for LCMS v1 (1.11 or later)
27986 #
27987 if test $have_lcms2 = 'yes'; then
27988   with_lcms='no'
27989 fi
27990
27991 have_lcms='no'
27992 if test "$with_lcms" != 'no'; then
27993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27994 $as_echo "-------------------------------------------------------------" >&6; }
27995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27996 $as_echo_n "checking for LCMS v1.1X... " >&6; }
27997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27998 $as_echo "" >&6; }
27999     failed=0
28000     passed=0
28001     have_lcms_header='no'
28002
28003     # Check for <lcms.h>
28004     if test "$have_lcms_header" != 'yes'; then
28005       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28006 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28007   have_lcms_header='yes'
28008 fi
28009
28010
28011       if test "$have_lcms_header" = 'yes'; then
28012         passed=`expr $passed + 1`
28013
28014 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28015
28016       fi
28017     fi
28018
28019     # Check for <lcms/lcms.h>
28020     if test "$have_lcms_header" != 'yes'; then
28021       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28022 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28023   have_lcms_header='yes'
28024 fi
28025
28026
28027       if test "$have_lcms_header" = 'yes'; then
28028         passed=`expr $passed + 1`
28029
28030 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28031
28032       fi
28033     fi
28034
28035     # Failed to find lcms header?
28036     if test "$have_lcms_header" != 'yes'; then
28037       failed=`expr $failed + 1`
28038     fi
28039
28040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28041 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28042 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28043   $as_echo_n "(cached) " >&6
28044 else
28045   ac_check_lib_save_LIBS=$LIBS
28046 LIBS="-llcms  $LIBS"
28047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28048 /* end confdefs.h.  */
28049
28050 /* Override any GCC internal prototype to avoid an error.
28051    Use char because int might match the return type of a GCC
28052    builtin and then its argument prototype would still apply.  */
28053 #ifdef __cplusplus
28054 extern "C"
28055 #endif
28056 char cmsSetErrorHandler ();
28057 int
28058 main ()
28059 {
28060 return cmsSetErrorHandler ();
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 if ac_fn_c_try_link "$LINENO"; then :
28066   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28067 else
28068   ac_cv_lib_lcms_cmsSetErrorHandler=no
28069 fi
28070 rm -f core conftest.err conftest.$ac_objext \
28071     conftest$ac_exeext conftest.$ac_ext
28072 LIBS=$ac_check_lib_save_LIBS
28073 fi
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28075 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28076 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28077   passed=`expr $passed + 1`
28078 else
28079   failed=`expr $failed + 1`
28080 fi
28081
28082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28083 $as_echo_n "checking if LCMS package is complete... " >&6; }
28084     if test $passed -gt 0; then
28085       if test $failed -gt 0; then
28086         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28087 $as_echo "no -- some components failed test" >&6; }
28088         have_lcms='no (failed tests)'
28089       else
28090         LCMS_LIBS='-llcms'
28091         LIBS="$LCMS_LIBS $LIBS"
28092         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28093 $as_echo "yes" >&6; }
28094         have_lcms='yes'
28095       fi
28096     else
28097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28098 $as_echo "no" >&6; }
28099     fi
28100 fi
28101
28102  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28103   LCMS_DELEGATE_TRUE=
28104   LCMS_DELEGATE_FALSE='#'
28105 else
28106   LCMS_DELEGATE_TRUE='#'
28107   LCMS_DELEGATE_FALSE=
28108 fi
28109
28110 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28111
28112 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28113
28114 fi
28115
28116
28117
28118
28119 #
28120 # Check for the LQR (Liquid Rescale) delegate library.
28121 #
28122
28123 # Check whether --with-lqr was given.
28124 if test "${with_lqr+set}" = set; then :
28125   withval=$with_lqr; with_lqr=$withval
28126 else
28127   with_lqr='yes'
28128 fi
28129
28130
28131 if test "$with_lqr" != 'yes'; then
28132     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28133 fi
28134
28135 have_lqr='no'
28136 LQR_CFLAGS=""
28137 LQR_LIBS=""
28138 LQR_PKG=""
28139 if test "x$with_lqr" = "xyes"; then
28140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28141 $as_echo "-------------------------------------------------------------" >&6; }
28142
28143 pkg_failed=no
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28145 $as_echo_n "checking for LQR... " >&6; }
28146
28147 if test -n "$LQR_CFLAGS"; then
28148     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28149  elif test -n "$PKG_CONFIG"; then
28150     if test -n "$PKG_CONFIG" && \
28151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28152   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28153   ac_status=$?
28154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155   test $ac_status = 0; }; then
28156   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28157 else
28158   pkg_failed=yes
28159 fi
28160  else
28161     pkg_failed=untried
28162 fi
28163 if test -n "$LQR_LIBS"; then
28164     pkg_cv_LQR_LIBS="$LQR_LIBS"
28165  elif test -n "$PKG_CONFIG"; then
28166     if test -n "$PKG_CONFIG" && \
28167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28168   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28169   ac_status=$?
28170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171   test $ac_status = 0; }; then
28172   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28173 else
28174   pkg_failed=yes
28175 fi
28176  else
28177     pkg_failed=untried
28178 fi
28179
28180
28181
28182 if test $pkg_failed = yes; then
28183
28184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28185         _pkg_short_errors_supported=yes
28186 else
28187         _pkg_short_errors_supported=no
28188 fi
28189         if test $_pkg_short_errors_supported = yes; then
28190                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28191         else
28192                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28193         fi
28194         # Put the nasty error message in config.log where it belongs
28195         echo "$LQR_PKG_ERRORS" >&5
28196
28197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28198 $as_echo "no" >&6; }
28199                 have_lqr=no
28200 elif test $pkg_failed = untried; then
28201         have_lqr=no
28202 else
28203         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28204         LQR_LIBS=$pkg_cv_LQR_LIBS
28205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28206 $as_echo "yes" >&6; }
28207         have_lqr=yes
28208 fi
28209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28210 $as_echo "" >&6; }
28211 fi
28212
28213 if test "$have_lqr" = 'yes'; then
28214
28215 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28216
28217     CFLAGS="$LQR_CFLAGS $CFLAGS"
28218 fi
28219
28220  if test "$have_lqr" = 'yes'; then
28221   LQR_DELEGATE_TRUE=
28222   LQR_DELEGATE_FALSE='#'
28223 else
28224   LQR_DELEGATE_TRUE='#'
28225   LQR_DELEGATE_FALSE=
28226 fi
28227
28228
28229
28230
28231
28232 #
28233 # Check for the OpenEXR delegate library.
28234 #
28235
28236 # Check whether --with-openexr was given.
28237 if test "${with_openexr+set}" = set; then :
28238   withval=$with_openexr; with_openexr=$withval
28239 else
28240   with_openexr='yes'
28241 fi
28242
28243
28244 if test "$with_openexr" != 'yes'; then
28245     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28246 fi
28247
28248 have_openexr='no'
28249 OPENEXR_CFLAGS=""
28250 OPENEXR_LIBS=""
28251 OPENEXR_PKG=""
28252 if test "x$with_openexr" = "xyes"; then
28253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28254 $as_echo "-------------------------------------------------------------" >&6; }
28255
28256 pkg_failed=no
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28258 $as_echo_n "checking for OPENEXR... " >&6; }
28259
28260 if test -n "$OPENEXR_CFLAGS"; then
28261     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28262  elif test -n "$PKG_CONFIG"; then
28263     if test -n "$PKG_CONFIG" && \
28264     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28265   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28266   ac_status=$?
28267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28268   test $ac_status = 0; }; then
28269   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28270 else
28271   pkg_failed=yes
28272 fi
28273  else
28274     pkg_failed=untried
28275 fi
28276 if test -n "$OPENEXR_LIBS"; then
28277     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28278  elif test -n "$PKG_CONFIG"; then
28279     if test -n "$PKG_CONFIG" && \
28280     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28281   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28282   ac_status=$?
28283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284   test $ac_status = 0; }; then
28285   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28286 else
28287   pkg_failed=yes
28288 fi
28289  else
28290     pkg_failed=untried
28291 fi
28292
28293
28294
28295 if test $pkg_failed = yes; then
28296
28297 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28298         _pkg_short_errors_supported=yes
28299 else
28300         _pkg_short_errors_supported=no
28301 fi
28302         if test $_pkg_short_errors_supported = yes; then
28303                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28304         else
28305                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28306         fi
28307         # Put the nasty error message in config.log where it belongs
28308         echo "$OPENEXR_PKG_ERRORS" >&5
28309
28310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311 $as_echo "no" >&6; }
28312                 have_openexr=no
28313 elif test $pkg_failed = untried; then
28314         have_openexr=no
28315 else
28316         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28317         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28319 $as_echo "yes" >&6; }
28320         have_openexr=yes
28321 fi
28322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28323 $as_echo "" >&6; }
28324 fi
28325
28326 if test "$have_openexr" = 'yes'; then
28327
28328 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28329
28330     if test "$with_modules" = 'no'; then
28331         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28332     fi
28333 fi
28334
28335  if test "$have_openexr" = 'yes'; then
28336   OPENEXR_DELEGATE_TRUE=
28337   OPENEXR_DELEGATE_FALSE='#'
28338 else
28339   OPENEXR_DELEGATE_TRUE='#'
28340   OPENEXR_DELEGATE_FALSE=
28341 fi
28342
28343
28344
28345
28346
28347 #
28348 # Check for PNG delegate library.
28349 #
28350
28351 # Check whether --with-png was given.
28352 if test "${with_png+set}" = set; then :
28353   withval=$with_png; with_png=$withval
28354 else
28355   with_png='yes'
28356 fi
28357
28358
28359 if test "$with_png" != 'yes'; then
28360     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28361 fi
28362
28363 have_png='no'
28364 PNG_LIBS=''
28365 if test "$with_png" != 'no'; then
28366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28367 $as_echo "-------------------------------------------------------------" >&6; }
28368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28369 $as_echo_n "checking for PNG... " >&6; }
28370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28371 $as_echo "" >&6; }
28372     failed=0
28373     passed=0
28374     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28375 if test "x$ac_cv_header_png_h" = x""yes; then :
28376   passed=`expr $passed + 1`
28377 else
28378   failed=`expr $failed + 1`
28379 fi
28380
28381
28382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28383 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28384 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28385   $as_echo_n "(cached) " >&6
28386 else
28387   ac_check_lib_save_LIBS=$LIBS
28388 LIBS="-lpng  $LIBS"
28389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h.  */
28391
28392 /* Override any GCC internal prototype to avoid an error.
28393    Use char because int might match the return type of a GCC
28394    builtin and then its argument prototype would still apply.  */
28395 #ifdef __cplusplus
28396 extern "C"
28397 #endif
28398 char png_get_io_ptr ();
28399 int
28400 main ()
28401 {
28402 return png_get_io_ptr ();
28403   ;
28404   return 0;
28405 }
28406 _ACEOF
28407 if ac_fn_c_try_link "$LINENO"; then :
28408   ac_cv_lib_png_png_get_io_ptr=yes
28409 else
28410   ac_cv_lib_png_png_get_io_ptr=no
28411 fi
28412 rm -f core conftest.err conftest.$ac_objext \
28413     conftest$ac_exeext conftest.$ac_ext
28414 LIBS=$ac_check_lib_save_LIBS
28415 fi
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28417 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28418 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28419   passed=`expr $passed + 1`
28420 else
28421   failed=`expr $failed + 1`
28422 fi
28423
28424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28425 $as_echo_n "checking if PNG package is complete... " >&6; }
28426     if test $passed -gt 0; then
28427         if test $failed -gt 0; then
28428             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28429 $as_echo "no -- some components failed test" >&6; }
28430             have_png='no (failed tests)'
28431         else
28432             PNG_LIBS='-lpng'
28433             LIBS="$PNG_LIBS $LIBS"
28434
28435 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28436
28437             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28438 $as_echo "yes" >&6; }
28439             have_png='yes'
28440         fi
28441     else
28442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443 $as_echo "no" >&6; }
28444     fi
28445 fi
28446  if test "$have_png" = 'yes'; then
28447   PNG_DELEGATE_TRUE=
28448   PNG_DELEGATE_FALSE='#'
28449 else
28450   PNG_DELEGATE_TRUE='#'
28451   PNG_DELEGATE_FALSE=
28452 fi
28453
28454
28455
28456
28457 #
28458 # Check for RSVG delegate library.
28459 #
28460
28461 # Check whether --with-rsvg was given.
28462 if test "${with_rsvg+set}" = set; then :
28463   withval=$with_rsvg; with_rsvg=$withval
28464 else
28465   with_rsvg=$have_x
28466 fi
28467
28468
28469 if test "$with_rsvg" != 'yes'; then
28470     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28471 fi
28472
28473 have_rsvg='no'
28474 have_cairo='no'
28475 RSVG_CFLAGS=""
28476 RSVG_LIBS=""
28477 RSVG_PKG=""
28478 if test "x$with_rsvg" = "xyes"; then
28479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28480 $as_echo "-------------------------------------------------------------" >&6; }
28481
28482 pkg_failed=no
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28484 $as_echo_n "checking for RSVG... " >&6; }
28485
28486 if test -n "$RSVG_CFLAGS"; then
28487     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28488  elif test -n "$PKG_CONFIG"; then
28489     if test -n "$PKG_CONFIG" && \
28490     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28491   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28492   ac_status=$?
28493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28494   test $ac_status = 0; }; then
28495   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28496 else
28497   pkg_failed=yes
28498 fi
28499  else
28500     pkg_failed=untried
28501 fi
28502 if test -n "$RSVG_LIBS"; then
28503     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28504  elif test -n "$PKG_CONFIG"; then
28505     if test -n "$PKG_CONFIG" && \
28506     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28507   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28508   ac_status=$?
28509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28510   test $ac_status = 0; }; then
28511   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28512 else
28513   pkg_failed=yes
28514 fi
28515  else
28516     pkg_failed=untried
28517 fi
28518
28519
28520
28521 if test $pkg_failed = yes; then
28522
28523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28524         _pkg_short_errors_supported=yes
28525 else
28526         _pkg_short_errors_supported=no
28527 fi
28528         if test $_pkg_short_errors_supported = yes; then
28529                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28530         else
28531                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28532         fi
28533         # Put the nasty error message in config.log where it belongs
28534         echo "$RSVG_PKG_ERRORS" >&5
28535
28536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28537 $as_echo "no" >&6; }
28538                 have_rsvg=no
28539 elif test $pkg_failed = untried; then
28540         have_rsvg=no
28541 else
28542         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28543         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28544         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28545 $as_echo "yes" >&6; }
28546         have_rsvg=yes
28547 fi
28548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28549 $as_echo "" >&6; }
28550
28551 pkg_failed=no
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28553 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28554
28555 if test -n "$CAIRO_SVG_CFLAGS"; then
28556     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28557  elif test -n "$PKG_CONFIG"; then
28558     if test -n "$PKG_CONFIG" && \
28559     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28560   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28561   ac_status=$?
28562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563   test $ac_status = 0; }; then
28564   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28565 else
28566   pkg_failed=yes
28567 fi
28568  else
28569     pkg_failed=untried
28570 fi
28571 if test -n "$CAIRO_SVG_LIBS"; then
28572     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28573  elif test -n "$PKG_CONFIG"; then
28574     if test -n "$PKG_CONFIG" && \
28575     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28576   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28577   ac_status=$?
28578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28579   test $ac_status = 0; }; then
28580   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28581 else
28582   pkg_failed=yes
28583 fi
28584  else
28585     pkg_failed=untried
28586 fi
28587
28588
28589
28590 if test $pkg_failed = yes; then
28591
28592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28593         _pkg_short_errors_supported=yes
28594 else
28595         _pkg_short_errors_supported=no
28596 fi
28597         if test $_pkg_short_errors_supported = yes; then
28598                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28599         else
28600                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28601         fi
28602         # Put the nasty error message in config.log where it belongs
28603         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28604
28605         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606 $as_echo "no" >&6; }
28607                 have_cairo=no
28608 elif test $pkg_failed = untried; then
28609         have_cairo=no
28610 else
28611         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28612         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28614 $as_echo "yes" >&6; }
28615         have_cairo=yes
28616 fi
28617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28618 $as_echo "" >&6; }
28619 fi
28620
28621 if test "$have_rsvg" = 'yes'; then
28622
28623 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28624
28625     if test "$with_modules" = 'no'; then
28626         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28627     fi
28628 fi
28629
28630 if test "$have_cairo" = 'yes'; then
28631
28632 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28633
28634     if test "$with_modules" = 'no'; then
28635         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28636     fi
28637 fi
28638
28639  if test "$have_rsvg" = 'yes'; then
28640   RSVG_DELEGATE_TRUE=
28641   RSVG_DELEGATE_FALSE='#'
28642 else
28643   RSVG_DELEGATE_TRUE='#'
28644   RSVG_DELEGATE_FALSE=
28645 fi
28646
28647  if test "$have_cairo" = 'yes'; then
28648   CAIRO_DELEGATE_TRUE=
28649   CAIRO_DELEGATE_FALSE='#'
28650 else
28651   CAIRO_DELEGATE_TRUE='#'
28652   CAIRO_DELEGATE_FALSE=
28653 fi
28654
28655
28656
28657
28658
28659 #
28660 # Check for TIFF delegate library.
28661 #
28662
28663 # Check whether --with-tiff was given.
28664 if test "${with_tiff+set}" = set; then :
28665   withval=$with_tiff; with_tiff=$withval
28666 else
28667   with_tiff='yes'
28668 fi
28669
28670
28671 if test "$with_tiff" != 'yes'; then
28672     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28673 fi
28674
28675 have_tiff='no'
28676 TIFF_LIBS=''
28677 if test "$with_tiff" != 'no'; then
28678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28679 $as_echo "-------------------------------------------------------------" >&6; }
28680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28681 $as_echo_n "checking for TIFF... " >&6; }
28682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28683 $as_echo "" >&6; }
28684     failed=0
28685     passed=0
28686     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28687 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28688   passed=`expr $passed + 1`
28689 else
28690   failed=`expr $failed + 1`
28691 fi
28692
28693
28694     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28695 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28696   passed=`expr $passed + 1`
28697 else
28698   failed=`expr $failed + 1`
28699 fi
28700
28701
28702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28703 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28704 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28705   $as_echo_n "(cached) " >&6
28706 else
28707   ac_check_lib_save_LIBS=$LIBS
28708 LIBS="-ltiff  $LIBS"
28709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28710 /* end confdefs.h.  */
28711
28712 /* Override any GCC internal prototype to avoid an error.
28713    Use char because int might match the return type of a GCC
28714    builtin and then its argument prototype would still apply.  */
28715 #ifdef __cplusplus
28716 extern "C"
28717 #endif
28718 char TIFFOpen ();
28719 int
28720 main ()
28721 {
28722 return TIFFOpen ();
28723   ;
28724   return 0;
28725 }
28726 _ACEOF
28727 if ac_fn_c_try_link "$LINENO"; then :
28728   ac_cv_lib_tiff_TIFFOpen=yes
28729 else
28730   ac_cv_lib_tiff_TIFFOpen=no
28731 fi
28732 rm -f core conftest.err conftest.$ac_objext \
28733     conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28735 fi
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28737 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28738 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28739   passed=`expr $passed + 1`
28740 else
28741   failed=`expr $failed + 1`
28742 fi
28743
28744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28745 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28746 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28747   $as_echo_n "(cached) " >&6
28748 else
28749   ac_check_lib_save_LIBS=$LIBS
28750 LIBS="-ltiff  $LIBS"
28751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28752 /* end confdefs.h.  */
28753
28754 /* Override any GCC internal prototype to avoid an error.
28755    Use char because int might match the return type of a GCC
28756    builtin and then its argument prototype would still apply.  */
28757 #ifdef __cplusplus
28758 extern "C"
28759 #endif
28760 char TIFFClientOpen ();
28761 int
28762 main ()
28763 {
28764 return TIFFClientOpen ();
28765   ;
28766   return 0;
28767 }
28768 _ACEOF
28769 if ac_fn_c_try_link "$LINENO"; then :
28770   ac_cv_lib_tiff_TIFFClientOpen=yes
28771 else
28772   ac_cv_lib_tiff_TIFFClientOpen=no
28773 fi
28774 rm -f core conftest.err conftest.$ac_objext \
28775     conftest$ac_exeext conftest.$ac_ext
28776 LIBS=$ac_check_lib_save_LIBS
28777 fi
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28779 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28780 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28781   passed=`expr $passed + 1`
28782 else
28783   failed=`expr $failed + 1`
28784 fi
28785
28786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28787 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28788 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28789   $as_echo_n "(cached) " >&6
28790 else
28791   ac_check_lib_save_LIBS=$LIBS
28792 LIBS="-ltiff  $LIBS"
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h.  */
28795
28796 /* Override any GCC internal prototype to avoid an error.
28797    Use char because int might match the return type of a GCC
28798    builtin and then its argument prototype would still apply.  */
28799 #ifdef __cplusplus
28800 extern "C"
28801 #endif
28802 char TIFFIsBigEndian ();
28803 int
28804 main ()
28805 {
28806 return TIFFIsBigEndian ();
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 if ac_fn_c_try_link "$LINENO"; then :
28812   ac_cv_lib_tiff_TIFFIsBigEndian=yes
28813 else
28814   ac_cv_lib_tiff_TIFFIsBigEndian=no
28815 fi
28816 rm -f core conftest.err conftest.$ac_objext \
28817     conftest$ac_exeext conftest.$ac_ext
28818 LIBS=$ac_check_lib_save_LIBS
28819 fi
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28821 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28822 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28823   passed=`expr $passed + 1`
28824 else
28825   failed=`expr $failed + 1`
28826 fi
28827
28828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28829 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28830 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28831   $as_echo_n "(cached) " >&6
28832 else
28833   ac_check_lib_save_LIBS=$LIBS
28834 LIBS="-ltiff  $LIBS"
28835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28836 /* end confdefs.h.  */
28837
28838 /* Override any GCC internal prototype to avoid an error.
28839    Use char because int might match the return type of a GCC
28840    builtin and then its argument prototype would still apply.  */
28841 #ifdef __cplusplus
28842 extern "C"
28843 #endif
28844 char TIFFIsByteSwapped ();
28845 int
28846 main ()
28847 {
28848 return TIFFIsByteSwapped ();
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 if ac_fn_c_try_link "$LINENO"; then :
28854   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28855 else
28856   ac_cv_lib_tiff_TIFFIsByteSwapped=no
28857 fi
28858 rm -f core conftest.err conftest.$ac_objext \
28859     conftest$ac_exeext conftest.$ac_ext
28860 LIBS=$ac_check_lib_save_LIBS
28861 fi
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28863 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28864 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28865   passed=`expr $passed + 1`
28866 else
28867   failed=`expr $failed + 1`
28868 fi
28869
28870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28871 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28872 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28873   $as_echo_n "(cached) " >&6
28874 else
28875   ac_check_lib_save_LIBS=$LIBS
28876 LIBS="-ltiff  $LIBS"
28877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28878 /* end confdefs.h.  */
28879
28880 /* Override any GCC internal prototype to avoid an error.
28881    Use char because int might match the return type of a GCC
28882    builtin and then its argument prototype would still apply.  */
28883 #ifdef __cplusplus
28884 extern "C"
28885 #endif
28886 char TIFFReadRGBATile ();
28887 int
28888 main ()
28889 {
28890 return TIFFReadRGBATile ();
28891   ;
28892   return 0;
28893 }
28894 _ACEOF
28895 if ac_fn_c_try_link "$LINENO"; then :
28896   ac_cv_lib_tiff_TIFFReadRGBATile=yes
28897 else
28898   ac_cv_lib_tiff_TIFFReadRGBATile=no
28899 fi
28900 rm -f core conftest.err conftest.$ac_objext \
28901     conftest$ac_exeext conftest.$ac_ext
28902 LIBS=$ac_check_lib_save_LIBS
28903 fi
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28905 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28906 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28907   passed=`expr $passed + 1`
28908 else
28909   failed=`expr $failed + 1`
28910 fi
28911
28912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28913 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28914 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28915   $as_echo_n "(cached) " >&6
28916 else
28917   ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-ltiff  $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h.  */
28921
28922 /* Override any GCC internal prototype to avoid an error.
28923    Use char because int might match the return type of a GCC
28924    builtin and then its argument prototype would still apply.  */
28925 #ifdef __cplusplus
28926 extern "C"
28927 #endif
28928 char TIFFReadRGBAStrip ();
28929 int
28930 main ()
28931 {
28932 return TIFFReadRGBAStrip ();
28933   ;
28934   return 0;
28935 }
28936 _ACEOF
28937 if ac_fn_c_try_link "$LINENO"; then :
28938   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28939 else
28940   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28941 fi
28942 rm -f core conftest.err conftest.$ac_objext \
28943     conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28945 fi
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28947 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28948 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28949   passed=`expr $passed + 1`
28950 else
28951   failed=`expr $failed + 1`
28952 fi
28953
28954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28955 $as_echo_n "checking if TIFF package is complete... " >&6; }
28956     if test $passed -gt 0; then
28957         if test $failed -gt 0; then
28958             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28959 $as_echo "no -- some components failed test" >&6; }
28960             have_tiff='no (failed tests)'
28961         else
28962             TIFF_LIBS='-ltiff'
28963             LIBS="$TIFF_LIBS $LIBS"
28964
28965 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28966
28967             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28968 $as_echo "yes" >&6; }
28969             have_tiff='yes'
28970             for ac_header in tiffconf.h
28971 do :
28972   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28973 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28974   cat >>confdefs.h <<_ACEOF
28975 #define HAVE_TIFFCONF_H 1
28976 _ACEOF
28977
28978 fi
28979
28980 done
28981
28982             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28983               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28984               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28985 do :
28986   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28989   cat >>confdefs.h <<_ACEOF
28990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28991 _ACEOF
28992
28993 fi
28994 done
28995
28996         fi
28997     else
28998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29000     fi
29001 fi
29002  if test "$have_tiff" = 'yes'; then
29003   TIFF_DELEGATE_TRUE=
29004   TIFF_DELEGATE_FALSE='#'
29005 else
29006   TIFF_DELEGATE_TRUE='#'
29007   TIFF_DELEGATE_FALSE=
29008 fi
29009
29010
29011
29012
29013 #
29014 # Set Windows font directory.
29015 #
29016
29017 # Check whether --with-windows-font-dir was given.
29018 if test "${with_windows_font_dir+set}" = set; then :
29019   withval=$with_windows_font_dir; with_windows_font_dir=$withval
29020 else
29021   with_windows_font_dir=''
29022 fi
29023
29024 if test "$with_windows_font_dir" != '' ; then
29025     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29026 fi
29027
29028
29029 #
29030 # Check for WMF delegate library.
29031 #
29032
29033 # Check whether --with-wmf was given.
29034 if test "${with_wmf+set}" = set; then :
29035   withval=$with_wmf; with_wmf=$withval
29036 else
29037   with_wmf='yes'
29038 fi
29039
29040
29041 if test "$with_wmf" != 'yes'; then
29042     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29043 fi
29044
29045 have_wmf='no'
29046 WMF_LIBS=''
29047 if test "$with_wmf" != 'no'; then
29048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29049 $as_echo "-------------------------------------------------------------" >&6; }
29050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29051 $as_echo_n "checking for WMF... " >&6; }
29052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29053 $as_echo "" >&6; }
29054     failed=0
29055     passed=0
29056     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29057 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29058   passed=`expr $passed + 1`
29059 else
29060   failed=`expr $failed + 1`
29061 fi
29062
29063
29064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29065 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29066 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29067   $as_echo_n "(cached) " >&6
29068 else
29069   ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-lwmf "-lwmflite" $LIBS"
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h.  */
29073
29074 /* Override any GCC internal prototype to avoid an error.
29075    Use char because int might match the return type of a GCC
29076    builtin and then its argument prototype would still apply.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 char wmf_eps_function ();
29081 int
29082 main ()
29083 {
29084 return wmf_eps_function ();
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 if ac_fn_c_try_link "$LINENO"; then :
29090   ac_cv_lib_wmf_wmf_eps_function=yes
29091 else
29092   ac_cv_lib_wmf_wmf_eps_function=no
29093 fi
29094 rm -f core conftest.err conftest.$ac_objext \
29095     conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29097 fi
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29099 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29100 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29101   passed=`expr $passed + 1`
29102 else
29103   failed=`expr $failed + 1`
29104 fi
29105
29106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29107 $as_echo_n "checking if WMF package is complete... " >&6; }
29108     if test $passed -gt 0; then
29109         if test $failed -gt 0; then
29110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29111 $as_echo "no -- some components failed test" >&6; }
29112             have_wmf='no (failed tests)'
29113         else
29114             WMF_LIBS='-lwmf -lwmflite'
29115             LIBS="$WMF_LIBS $LIBS"
29116
29117 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29118
29119             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29121             have_wmf='yes'
29122         fi
29123     else
29124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29125 $as_echo "no" >&6; }
29126     fi
29127 fi
29128  if test "$have_wmf" = 'yes'; then
29129   WMF_DELEGATE_TRUE=
29130   WMF_DELEGATE_FALSE='#'
29131 else
29132   WMF_DELEGATE_TRUE='#'
29133   WMF_DELEGATE_FALSE=
29134 fi
29135
29136
29137
29138
29139
29140
29141 #
29142 # Check for XML delegate library.
29143 #
29144
29145 # Check whether --with-xml was given.
29146 if test "${with_xml+set}" = set; then :
29147   withval=$with_xml; with_xml=$withval
29148 else
29149   with_xml=$have_x
29150 fi
29151
29152
29153 if test "$with_xml" != 'yes' ; then
29154     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29155 fi
29156
29157 have_xml='no'
29158 XML_LIBS=''
29159 if test "$with_xml" != 'no'; then
29160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29161 $as_echo "-------------------------------------------------------------" >&6; }
29162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29163 $as_echo_n "checking for XML... " >&6; }
29164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29165 $as_echo "" >&6; }
29166     PERSIST_LDFLAGS=$LDFLAGS
29167     PERSIST_CPPFLAGS=$CPPFLAGS
29168     xml2_config=''
29169     for ac_prog in xml2-config
29170 do
29171   # Extract the first word of "$ac_prog", so it can be a program name with args.
29172 set dummy $ac_prog; ac_word=$2
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29174 $as_echo_n "checking for $ac_word... " >&6; }
29175 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29176   $as_echo_n "(cached) " >&6
29177 else
29178   if test -n "$xml2_config"; then
29179   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29180 else
29181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182 for as_dir in $PATH
29183 do
29184   IFS=$as_save_IFS
29185   test -z "$as_dir" && as_dir=.
29186     for ac_exec_ext in '' $ac_executable_extensions; do
29187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188     ac_cv_prog_xml2_config="$ac_prog"
29189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29190     break 2
29191   fi
29192 done
29193   done
29194 IFS=$as_save_IFS
29195
29196 fi
29197 fi
29198 xml2_config=$ac_cv_prog_xml2_config
29199 if test -n "$xml2_config"; then
29200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29201 $as_echo "$xml2_config" >&6; }
29202 else
29203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29204 $as_echo "no" >&6; }
29205 fi
29206
29207
29208   test -n "$xml2_config" && break
29209 done
29210     if test -n "$xml2_config"; then
29211         # Debian installs libxml headers under /usr/include/libxml2/libxml with
29212         # the shared library installed under /usr/lib, whereas the package
29213         # installs itself under $prefix/libxml and $prefix/lib.
29214         xml2_prefix=`xml2-config --prefix`
29215         if test -d "${xml2_prefix}/include/libxml2"; then
29216             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29217         fi
29218         if test "${xml2_prefix}" != '/usr'; then
29219             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29220         fi
29221     fi
29222     failed=0
29223     passed=0
29224     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29225 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29226   passed=`expr $passed + 1`
29227 else
29228   failed=`expr $failed + 1`
29229 fi
29230
29231
29232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29233 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29234 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29235   $as_echo_n "(cached) " >&6
29236 else
29237   ac_check_lib_save_LIBS=$LIBS
29238 LIBS="-lxml2  $LIBS"
29239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h.  */
29241
29242 /* Override any GCC internal prototype to avoid an error.
29243    Use char because int might match the return type of a GCC
29244    builtin and then its argument prototype would still apply.  */
29245 #ifdef __cplusplus
29246 extern "C"
29247 #endif
29248 char xmlParseExternalEntity ();
29249 int
29250 main ()
29251 {
29252 return xmlParseExternalEntity ();
29253   ;
29254   return 0;
29255 }
29256 _ACEOF
29257 if ac_fn_c_try_link "$LINENO"; then :
29258   ac_cv_lib_xml2_xmlParseExternalEntity=yes
29259 else
29260   ac_cv_lib_xml2_xmlParseExternalEntity=no
29261 fi
29262 rm -f core conftest.err conftest.$ac_objext \
29263     conftest$ac_exeext conftest.$ac_ext
29264 LIBS=$ac_check_lib_save_LIBS
29265 fi
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29267 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29268 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29269   passed=`expr $passed + 1`
29270 else
29271   failed=`expr $failed + 1`
29272 fi
29273
29274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29275 $as_echo_n "checking if XML package is complete... " >&6; }
29276     if test $passed -gt 0; then
29277         if test $failed -gt 0; then
29278             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29279 $as_echo "no -- some components failed test" >&6; }
29280             have_xml='no (failed tests)'
29281             LDFLAGS="$PERSIST_LDFLAGS"
29282             CPPFLAGS="$PERSIST_CPPFLAGS"
29283         else
29284             XML_LIBS='-lxml2'
29285             LIBS="$XML_LIBS $LIBS"
29286
29287 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29288
29289             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29290 $as_echo "yes" >&6; }
29291             have_xml='yes'
29292         fi
29293     else
29294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29295 $as_echo "no" >&6; }
29296     fi
29297 fi
29298  if test "$have_xml" = 'yes'; then
29299   XML_DELEGATE_TRUE=
29300   XML_DELEGATE_FALSE='#'
29301 else
29302   XML_DELEGATE_TRUE='#'
29303   XML_DELEGATE_FALSE=
29304 fi
29305
29306
29307
29308
29309 # Substitute compiler name to build/link PerlMagick
29310 #
29311
29312
29313 #
29314 # Configure install Paths
29315 #
29316
29317 # Subdirectory under lib to place ImageMagick lib files
29318 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29319
29320 cat >>confdefs.h <<_ACEOF
29321 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29322 _ACEOF
29323
29324
29325 # Path to ImageMagick bin directory
29326 EXECUTABLE_PATH="${BIN_DIR}"
29327 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29328 case "${build_os}" in
29329   mingw* )
29330     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29331     ;;
29332 esac
29333
29334 cat >>confdefs.h <<_ACEOF
29335 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29336 _ACEOF
29337
29338
29339
29340 # Path to ImageMagick lib
29341 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29342 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29343 case "${build_os}" in
29344   mingw* )
29345     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29346     ;;
29347 esac
29348
29349 cat >>confdefs.h <<_ACEOF
29350 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29351 _ACEOF
29352
29353
29354
29355 # Subdirectory under lib to place ImageMagick configuration files
29356 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29357
29358 cat >>confdefs.h <<_ACEOF
29359 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29360 _ACEOF
29361
29362 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29363 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29364 case "${build_os}" in
29365   mingw* )
29366     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29367     ;;
29368 esac
29369
29370 cat >>confdefs.h <<_ACEOF
29371 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29372 _ACEOF
29373
29374
29375
29376 #
29377 # Subdirectory under lib to place ImageMagick coder module files
29378 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29379
29380 cat >>confdefs.h <<_ACEOF
29381 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29382 _ACEOF
29383
29384 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29385 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29386 case "${build_os}" in
29387   mingw* )
29388     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29389     ;;
29390 esac
29391
29392 cat >>confdefs.h <<_ACEOF
29393 #define CODER_PATH "$DEFINE_CODER_PATH"
29394 _ACEOF
29395
29396
29397
29398 #
29399 # Subdirectory under lib to place ImageMagick filter module files
29400 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29401
29402 cat >>confdefs.h <<_ACEOF
29403 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29404 _ACEOF
29405
29406 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29407 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29408 case "${build_os}" in
29409   mingw* )
29410     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29411     ;;
29412 esac
29413
29414 cat >>confdefs.h <<_ACEOF
29415 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29416 _ACEOF
29417
29418
29419
29420 #
29421 # Path to ImageMagick documentation files
29422 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29423 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29424 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29425 case "${build_os}" in
29426   mingw* )
29427     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29428     ;;
29429 esac
29430
29431 cat >>confdefs.h <<_ACEOF
29432 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29433 _ACEOF
29434
29435
29436
29437 #
29438 # Path to ImageMagick share files
29439 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29440 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29441 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29442 case "${build_os}" in
29443   mingw* )
29444     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29445     ;;
29446 esac
29447
29448 cat >>confdefs.h <<_ACEOF
29449 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29450 _ACEOF
29451
29452
29453
29454 # Subdirectory under share to place ImageMagick configuration files
29455 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29456
29457 cat >>confdefs.h <<_ACEOF
29458 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29459 _ACEOF
29460
29461 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29462 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29463 case "${build_os}" in
29464   mingw* )
29465     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29466     ;;
29467 esac
29468
29469 cat >>confdefs.h <<_ACEOF
29470 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29471 _ACEOF
29472
29473
29474
29475 #
29476 # program_transform_name is formed for use in a Makefile, so create a
29477 # modified version for use in a shell script.
29478 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29479
29480 # Default delegate definitions
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29482 $as_echo "-------------------------------------------------------------" >&6; }
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29484 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29486 $as_echo "" >&6; }
29487 AutotraceDecodeDelegateDefault='autotrace'
29488 AVIDecodeDelegateDefault='mplayer'
29489 BlenderDecodeDelegateDefault='blender'
29490 BZIPDelegateDefault='bzip2'
29491 BrowseDelegateDefault='xdg-open'
29492 CGMDecodeDelegateDefault='ralcgm'
29493 CatDelegateDefault='cat'
29494 DNGDecodeDelegateDefault='ufraw-batch'
29495 GVCDecodeDelegateDefault='dot'
29496 DVIDecodeDelegateDefault='dvips'
29497 EchoDelegateDefault='echo'
29498 EditorDelegateDefault='xterm'
29499 FIGDecodeDelegateDefault='fig2dev'
29500 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29501 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29502 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29503 GnuplotDecodeDelegateDefault='gnuplot'
29504 HDRDecodeDelegateDefault='ra_pfm'
29505 HPGLDecodeDelegateDefault='hp2xx'
29506 HTMLDecodeDelegateDefault='html2ps'
29507 ILBMDecodeDelegateDefault='ilbmtoppm'
29508 ILBMEncodeDelegateDefault='ppmtoilbm'
29509 LPDelegateDefault='lp'
29510 LPRDelegateDefault='lpr'
29511 LZWDecodeDelegateDefault='uncompress'
29512 LZWEncodeDelegateDefault='compress'
29513 LaunchDelegateDefault='gimp'
29514 MANDelegateDefault='groff'
29515 MPEGDecodeDelegateDefault='ffmpeg'
29516 MPEGEncodeDelegateDefault='ffmpeg'
29517 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29518 MVDelegateDefault='mv'
29519 PCLDelegateDefault='pcl6'
29520 PGPDecodeDelegateDefault='pgpv'
29521 POVDelegateDefault='povray'
29522 if test "$native_win32_build" = 'yes'; then
29523     PSDelegateDefault='gswin32c'
29524 elif test "$gslib_framework" = 'yes'; then
29525     PSDelegateDefault='gsc'
29526 else
29527     PSDelegateDefault='gs'
29528 fi
29529 RLEEncodeDelegateDefault='rawtorle'
29530 RMDelegateDefault='rm'
29531 RSVGDecodeDelegateDefault='rsvg'
29532 SCANDecodeDelegateDefault='scanimage'
29533 TXTDelegateDefault='enscript'
29534 UniconvertorDelegateDefault='uniconvertor'
29535 WEBPDelegateDefault='webpconv'
29536 WMFDecodeDelegateDefault='wmf2eps'
29537 WWWDecodeDelegateDefault='curl'
29538 XPSDelegateDefault='gxps'
29539 ZipDelegateDefault='gzip'
29540
29541 # Search for delegates
29542 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29543 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29545 $as_echo_n "checking for $ac_word... " >&6; }
29546 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29547   $as_echo_n "(cached) " >&6
29548 else
29549   case $AutotraceDecodeDelegate in
29550   [\\/]* | ?:[\\/]*)
29551   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29552   ;;
29553   *)
29554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29555 for as_dir in $PATH
29556 do
29557   IFS=$as_save_IFS
29558   test -z "$as_dir" && as_dir=.
29559     for ac_exec_ext in '' $ac_executable_extensions; do
29560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29561     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29563     break 2
29564   fi
29565 done
29566   done
29567 IFS=$as_save_IFS
29568
29569   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29570   ;;
29571 esac
29572 fi
29573 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29574 if test -n "$AutotraceDecodeDelegate"; then
29575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29576 $as_echo "$AutotraceDecodeDelegate" >&6; }
29577 else
29578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29579 $as_echo "no" >&6; }
29580 fi
29581
29582
29583 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29584 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29586 $as_echo_n "checking for $ac_word... " >&6; }
29587 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29588   $as_echo_n "(cached) " >&6
29589 else
29590   case $AVIDecodeDelegate in
29591   [\\/]* | ?:[\\/]*)
29592   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29593   ;;
29594   *)
29595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29596 for as_dir in $PATH
29597 do
29598   IFS=$as_save_IFS
29599   test -z "$as_dir" && as_dir=.
29600     for ac_exec_ext in '' $ac_executable_extensions; do
29601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29602     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29604     break 2
29605   fi
29606 done
29607   done
29608 IFS=$as_save_IFS
29609
29610   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29611   ;;
29612 esac
29613 fi
29614 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29615 if test -n "$AVIDecodeDelegate"; then
29616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29617 $as_echo "$AVIDecodeDelegate" >&6; }
29618 else
29619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29620 $as_echo "no" >&6; }
29621 fi
29622
29623
29624 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29625 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29627 $as_echo_n "checking for $ac_word... " >&6; }
29628 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29629   $as_echo_n "(cached) " >&6
29630 else
29631   case $BlenderDecodeDelegate in
29632   [\\/]* | ?:[\\/]*)
29633   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29634   ;;
29635   *)
29636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637 for as_dir in $PATH
29638 do
29639   IFS=$as_save_IFS
29640   test -z "$as_dir" && as_dir=.
29641     for ac_exec_ext in '' $ac_executable_extensions; do
29642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29643     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29645     break 2
29646   fi
29647 done
29648   done
29649 IFS=$as_save_IFS
29650
29651   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29652   ;;
29653 esac
29654 fi
29655 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29656 if test -n "$BlenderDecodeDelegate"; then
29657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29658 $as_echo "$BlenderDecodeDelegate" >&6; }
29659 else
29660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29661 $as_echo "no" >&6; }
29662 fi
29663
29664
29665 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29666 set dummy "$BZIPDelegateDefault"; ac_word=$2
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29668 $as_echo_n "checking for $ac_word... " >&6; }
29669 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29670   $as_echo_n "(cached) " >&6
29671 else
29672   case $BZIPDelegate in
29673   [\\/]* | ?:[\\/]*)
29674   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29675   ;;
29676   *)
29677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29678 for as_dir in $PATH
29679 do
29680   IFS=$as_save_IFS
29681   test -z "$as_dir" && as_dir=.
29682     for ac_exec_ext in '' $ac_executable_extensions; do
29683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29684     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29686     break 2
29687   fi
29688 done
29689   done
29690 IFS=$as_save_IFS
29691
29692   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29693   ;;
29694 esac
29695 fi
29696 BZIPDelegate=$ac_cv_path_BZIPDelegate
29697 if test -n "$BZIPDelegate"; then
29698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29699 $as_echo "$BZIPDelegate" >&6; }
29700 else
29701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29702 $as_echo "no" >&6; }
29703 fi
29704
29705
29706 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29707 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29709 $as_echo_n "checking for $ac_word... " >&6; }
29710 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29711   $as_echo_n "(cached) " >&6
29712 else
29713   case $BrowseDelegate in
29714   [\\/]* | ?:[\\/]*)
29715   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29716   ;;
29717   *)
29718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29719 for as_dir in $PATH
29720 do
29721   IFS=$as_save_IFS
29722   test -z "$as_dir" && as_dir=.
29723     for ac_exec_ext in '' $ac_executable_extensions; do
29724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29725     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29727     break 2
29728   fi
29729 done
29730   done
29731 IFS=$as_save_IFS
29732
29733   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29734   ;;
29735 esac
29736 fi
29737 BrowseDelegate=$ac_cv_path_BrowseDelegate
29738 if test -n "$BrowseDelegate"; then
29739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29740 $as_echo "$BrowseDelegate" >&6; }
29741 else
29742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29743 $as_echo "no" >&6; }
29744 fi
29745
29746
29747 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29748 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29750 $as_echo_n "checking for $ac_word... " >&6; }
29751 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29752   $as_echo_n "(cached) " >&6
29753 else
29754   case $CGMDecodeDelegate in
29755   [\\/]* | ?:[\\/]*)
29756   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29757   ;;
29758   *)
29759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29760 for as_dir in $PATH
29761 do
29762   IFS=$as_save_IFS
29763   test -z "$as_dir" && as_dir=.
29764     for ac_exec_ext in '' $ac_executable_extensions; do
29765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29766     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29768     break 2
29769   fi
29770 done
29771   done
29772 IFS=$as_save_IFS
29773
29774   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29775   ;;
29776 esac
29777 fi
29778 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29779 if test -n "$CGMDecodeDelegate"; then
29780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29781 $as_echo "$CGMDecodeDelegate" >&6; }
29782 else
29783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784 $as_echo "no" >&6; }
29785 fi
29786
29787
29788 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29789 set dummy "$CatDelegateDefault"; ac_word=$2
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29791 $as_echo_n "checking for $ac_word... " >&6; }
29792 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29793   $as_echo_n "(cached) " >&6
29794 else
29795   case $CatDelegate in
29796   [\\/]* | ?:[\\/]*)
29797   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29798   ;;
29799   *)
29800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29801 for as_dir in $PATH
29802 do
29803   IFS=$as_save_IFS
29804   test -z "$as_dir" && as_dir=.
29805     for ac_exec_ext in '' $ac_executable_extensions; do
29806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29807     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29809     break 2
29810   fi
29811 done
29812   done
29813 IFS=$as_save_IFS
29814
29815   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29816   ;;
29817 esac
29818 fi
29819 CatDelegate=$ac_cv_path_CatDelegate
29820 if test -n "$CatDelegate"; then
29821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29822 $as_echo "$CatDelegate" >&6; }
29823 else
29824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29825 $as_echo "no" >&6; }
29826 fi
29827
29828
29829 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29830 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29832 $as_echo_n "checking for $ac_word... " >&6; }
29833 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29834   $as_echo_n "(cached) " >&6
29835 else
29836   case $DNGDecodeDelegate in
29837   [\\/]* | ?:[\\/]*)
29838   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29839   ;;
29840   *)
29841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29842 for as_dir in $PATH
29843 do
29844   IFS=$as_save_IFS
29845   test -z "$as_dir" && as_dir=.
29846     for ac_exec_ext in '' $ac_executable_extensions; do
29847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29848     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29850     break 2
29851   fi
29852 done
29853   done
29854 IFS=$as_save_IFS
29855
29856   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29857   ;;
29858 esac
29859 fi
29860 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29861 if test -n "$DNGDecodeDelegate"; then
29862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29863 $as_echo "$DNGDecodeDelegate" >&6; }
29864 else
29865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29866 $as_echo "no" >&6; }
29867 fi
29868
29869
29870 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29871 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29873 $as_echo_n "checking for $ac_word... " >&6; }
29874 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29875   $as_echo_n "(cached) " >&6
29876 else
29877   case $GVCDecodeDelegate in
29878   [\\/]* | ?:[\\/]*)
29879   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29880   ;;
29881   *)
29882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29883 for as_dir in $PATH
29884 do
29885   IFS=$as_save_IFS
29886   test -z "$as_dir" && as_dir=.
29887     for ac_exec_ext in '' $ac_executable_extensions; do
29888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29889     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29891     break 2
29892   fi
29893 done
29894   done
29895 IFS=$as_save_IFS
29896
29897   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29898   ;;
29899 esac
29900 fi
29901 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29902 if test -n "$GVCDecodeDelegate"; then
29903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29904 $as_echo "$GVCDecodeDelegate" >&6; }
29905 else
29906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29907 $as_echo "no" >&6; }
29908 fi
29909
29910
29911 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29912 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29914 $as_echo_n "checking for $ac_word... " >&6; }
29915 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29916   $as_echo_n "(cached) " >&6
29917 else
29918   case $DVIDecodeDelegate in
29919   [\\/]* | ?:[\\/]*)
29920   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29921   ;;
29922   *)
29923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924 for as_dir in $PATH
29925 do
29926   IFS=$as_save_IFS
29927   test -z "$as_dir" && as_dir=.
29928     for ac_exec_ext in '' $ac_executable_extensions; do
29929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29930     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29932     break 2
29933   fi
29934 done
29935   done
29936 IFS=$as_save_IFS
29937
29938   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29939   ;;
29940 esac
29941 fi
29942 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29943 if test -n "$DVIDecodeDelegate"; then
29944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29945 $as_echo "$DVIDecodeDelegate" >&6; }
29946 else
29947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29948 $as_echo "no" >&6; }
29949 fi
29950
29951
29952 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29953 set dummy "$EchoDelegateDefault"; ac_word=$2
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29955 $as_echo_n "checking for $ac_word... " >&6; }
29956 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29957   $as_echo_n "(cached) " >&6
29958 else
29959   case $EchoDelegate in
29960   [\\/]* | ?:[\\/]*)
29961   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29962   ;;
29963   *)
29964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29965 for as_dir in $PATH
29966 do
29967   IFS=$as_save_IFS
29968   test -z "$as_dir" && as_dir=.
29969     for ac_exec_ext in '' $ac_executable_extensions; do
29970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29971     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29973     break 2
29974   fi
29975 done
29976   done
29977 IFS=$as_save_IFS
29978
29979   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29980   ;;
29981 esac
29982 fi
29983 EchoDelegate=$ac_cv_path_EchoDelegate
29984 if test -n "$EchoDelegate"; then
29985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29986 $as_echo "$EchoDelegate" >&6; }
29987 else
29988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29989 $as_echo "no" >&6; }
29990 fi
29991
29992
29993 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29994 set dummy "$EditorDelegateDefault"; ac_word=$2
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29996 $as_echo_n "checking for $ac_word... " >&6; }
29997 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29998   $as_echo_n "(cached) " >&6
29999 else
30000   case $EditorDelegate in
30001   [\\/]* | ?:[\\/]*)
30002   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30003   ;;
30004   *)
30005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006 for as_dir in $PATH
30007 do
30008   IFS=$as_save_IFS
30009   test -z "$as_dir" && as_dir=.
30010     for ac_exec_ext in '' $ac_executable_extensions; do
30011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30012     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30014     break 2
30015   fi
30016 done
30017   done
30018 IFS=$as_save_IFS
30019
30020   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30021   ;;
30022 esac
30023 fi
30024 EditorDelegate=$ac_cv_path_EditorDelegate
30025 if test -n "$EditorDelegate"; then
30026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30027 $as_echo "$EditorDelegate" >&6; }
30028 else
30029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30031 fi
30032
30033
30034 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30035 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30037 $as_echo_n "checking for $ac_word... " >&6; }
30038 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30039   $as_echo_n "(cached) " >&6
30040 else
30041   case $FIGDecodeDelegate in
30042   [\\/]* | ?:[\\/]*)
30043   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30044   ;;
30045   *)
30046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30047 for as_dir in $PATH
30048 do
30049   IFS=$as_save_IFS
30050   test -z "$as_dir" && as_dir=.
30051     for ac_exec_ext in '' $ac_executable_extensions; do
30052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30053     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30055     break 2
30056   fi
30057 done
30058   done
30059 IFS=$as_save_IFS
30060
30061   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30062   ;;
30063 esac
30064 fi
30065 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30066 if test -n "$FIGDecodeDelegate"; then
30067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30068 $as_echo "$FIGDecodeDelegate" >&6; }
30069 else
30070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30071 $as_echo "no" >&6; }
30072 fi
30073
30074
30075 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30076 set dummy "$ConvertDelegateDefault"; ac_word=$2
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30078 $as_echo_n "checking for $ac_word... " >&6; }
30079 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30080   $as_echo_n "(cached) " >&6
30081 else
30082   case $ConvertDelegate in
30083   [\\/]* | ?:[\\/]*)
30084   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30085   ;;
30086   *)
30087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30088 for as_dir in $PATH
30089 do
30090   IFS=$as_save_IFS
30091   test -z "$as_dir" && as_dir=.
30092     for ac_exec_ext in '' $ac_executable_extensions; do
30093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30094     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30096     break 2
30097   fi
30098 done
30099   done
30100 IFS=$as_save_IFS
30101
30102   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30103   ;;
30104 esac
30105 fi
30106 ConvertDelegate=$ac_cv_path_ConvertDelegate
30107 if test -n "$ConvertDelegate"; then
30108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30109 $as_echo "$ConvertDelegate" >&6; }
30110 else
30111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30112 $as_echo "no" >&6; }
30113 fi
30114
30115
30116 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30117 set dummy "$DisplayDelegateDefault"; ac_word=$2
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30119 $as_echo_n "checking for $ac_word... " >&6; }
30120 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30121   $as_echo_n "(cached) " >&6
30122 else
30123   case $DisplayDelegate in
30124   [\\/]* | ?:[\\/]*)
30125   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30126   ;;
30127   *)
30128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129 for as_dir in $PATH
30130 do
30131   IFS=$as_save_IFS
30132   test -z "$as_dir" && as_dir=.
30133     for ac_exec_ext in '' $ac_executable_extensions; do
30134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30135     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30137     break 2
30138   fi
30139 done
30140   done
30141 IFS=$as_save_IFS
30142
30143   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30144   ;;
30145 esac
30146 fi
30147 DisplayDelegate=$ac_cv_path_DisplayDelegate
30148 if test -n "$DisplayDelegate"; then
30149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30150 $as_echo "$DisplayDelegate" >&6; }
30151 else
30152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30153 $as_echo "no" >&6; }
30154 fi
30155
30156
30157 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30158 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30160 $as_echo_n "checking for $ac_word... " >&6; }
30161 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30162   $as_echo_n "(cached) " >&6
30163 else
30164   case $MogrifyDelegate in
30165   [\\/]* | ?:[\\/]*)
30166   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30167   ;;
30168   *)
30169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170 for as_dir in $PATH
30171 do
30172   IFS=$as_save_IFS
30173   test -z "$as_dir" && as_dir=.
30174     for ac_exec_ext in '' $ac_executable_extensions; do
30175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30178     break 2
30179   fi
30180 done
30181   done
30182 IFS=$as_save_IFS
30183
30184   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30185   ;;
30186 esac
30187 fi
30188 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30189 if test -n "$MogrifyDelegate"; then
30190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30191 $as_echo "$MogrifyDelegate" >&6; }
30192 else
30193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30194 $as_echo "no" >&6; }
30195 fi
30196
30197
30198 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30199 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30201 $as_echo_n "checking for $ac_word... " >&6; }
30202 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30203   $as_echo_n "(cached) " >&6
30204 else
30205   case $GnuplotDecodeDelegate in
30206   [\\/]* | ?:[\\/]*)
30207   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30208   ;;
30209   *)
30210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211 for as_dir in $PATH
30212 do
30213   IFS=$as_save_IFS
30214   test -z "$as_dir" && as_dir=.
30215     for ac_exec_ext in '' $ac_executable_extensions; do
30216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30217     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30219     break 2
30220   fi
30221 done
30222   done
30223 IFS=$as_save_IFS
30224
30225   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30226   ;;
30227 esac
30228 fi
30229 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30230 if test -n "$GnuplotDecodeDelegate"; then
30231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30232 $as_echo "$GnuplotDecodeDelegate" >&6; }
30233 else
30234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30236 fi
30237
30238
30239 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30240 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30242 $as_echo_n "checking for $ac_word... " >&6; }
30243 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30244   $as_echo_n "(cached) " >&6
30245 else
30246   case $HDRDecodeDelegate in
30247   [\\/]* | ?:[\\/]*)
30248   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30249   ;;
30250   *)
30251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30252 for as_dir in $PATH
30253 do
30254   IFS=$as_save_IFS
30255   test -z "$as_dir" && as_dir=.
30256     for ac_exec_ext in '' $ac_executable_extensions; do
30257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30258     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30260     break 2
30261   fi
30262 done
30263   done
30264 IFS=$as_save_IFS
30265
30266   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30267   ;;
30268 esac
30269 fi
30270 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30271 if test -n "$HDRDecodeDelegate"; then
30272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30273 $as_echo "$HDRDecodeDelegate" >&6; }
30274 else
30275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30276 $as_echo "no" >&6; }
30277 fi
30278
30279
30280 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30281 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30283 $as_echo_n "checking for $ac_word... " >&6; }
30284 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30285   $as_echo_n "(cached) " >&6
30286 else
30287   case $HPGLDecodeDelegate in
30288   [\\/]* | ?:[\\/]*)
30289   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30290   ;;
30291   *)
30292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30293 for as_dir in $PATH
30294 do
30295   IFS=$as_save_IFS
30296   test -z "$as_dir" && as_dir=.
30297     for ac_exec_ext in '' $ac_executable_extensions; do
30298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30299     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30301     break 2
30302   fi
30303 done
30304   done
30305 IFS=$as_save_IFS
30306
30307   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30308   ;;
30309 esac
30310 fi
30311 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30312 if test -n "$HPGLDecodeDelegate"; then
30313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30314 $as_echo "$HPGLDecodeDelegate" >&6; }
30315 else
30316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30317 $as_echo "no" >&6; }
30318 fi
30319
30320
30321 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30322 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30324 $as_echo_n "checking for $ac_word... " >&6; }
30325 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30326   $as_echo_n "(cached) " >&6
30327 else
30328   case $HTMLDecodeDelegate in
30329   [\\/]* | ?:[\\/]*)
30330   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30331   ;;
30332   *)
30333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30334 for as_dir in $PATH
30335 do
30336   IFS=$as_save_IFS
30337   test -z "$as_dir" && as_dir=.
30338     for ac_exec_ext in '' $ac_executable_extensions; do
30339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30340     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30342     break 2
30343   fi
30344 done
30345   done
30346 IFS=$as_save_IFS
30347
30348   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30349   ;;
30350 esac
30351 fi
30352 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30353 if test -n "$HTMLDecodeDelegate"; then
30354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30355 $as_echo "$HTMLDecodeDelegate" >&6; }
30356 else
30357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30358 $as_echo "no" >&6; }
30359 fi
30360
30361
30362 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30363 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30365 $as_echo_n "checking for $ac_word... " >&6; }
30366 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30367   $as_echo_n "(cached) " >&6
30368 else
30369   case $ILBMDecodeDelegate in
30370   [\\/]* | ?:[\\/]*)
30371   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30372   ;;
30373   *)
30374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375 for as_dir in $PATH
30376 do
30377   IFS=$as_save_IFS
30378   test -z "$as_dir" && as_dir=.
30379     for ac_exec_ext in '' $ac_executable_extensions; do
30380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30383     break 2
30384   fi
30385 done
30386   done
30387 IFS=$as_save_IFS
30388
30389   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30390   ;;
30391 esac
30392 fi
30393 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30394 if test -n "$ILBMDecodeDelegate"; then
30395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30396 $as_echo "$ILBMDecodeDelegate" >&6; }
30397 else
30398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30399 $as_echo "no" >&6; }
30400 fi
30401
30402
30403 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30404 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30406 $as_echo_n "checking for $ac_word... " >&6; }
30407 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30408   $as_echo_n "(cached) " >&6
30409 else
30410   case $ILBMEncodeDelegate in
30411   [\\/]* | ?:[\\/]*)
30412   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30413   ;;
30414   *)
30415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30416 for as_dir in $PATH
30417 do
30418   IFS=$as_save_IFS
30419   test -z "$as_dir" && as_dir=.
30420     for ac_exec_ext in '' $ac_executable_extensions; do
30421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30422     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30424     break 2
30425   fi
30426 done
30427   done
30428 IFS=$as_save_IFS
30429
30430   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30431   ;;
30432 esac
30433 fi
30434 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30435 if test -n "$ILBMEncodeDelegate"; then
30436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30437 $as_echo "$ILBMEncodeDelegate" >&6; }
30438 else
30439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30441 fi
30442
30443
30444 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30445 set dummy "$LPDelegateDefault"; ac_word=$2
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30447 $as_echo_n "checking for $ac_word... " >&6; }
30448 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30449   $as_echo_n "(cached) " >&6
30450 else
30451   case $LPDelegate in
30452   [\\/]* | ?:[\\/]*)
30453   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30454   ;;
30455   *)
30456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30458 do
30459   IFS=$as_save_IFS
30460   test -z "$as_dir" && as_dir=.
30461     for ac_exec_ext in '' $ac_executable_extensions; do
30462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30463     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30465     break 2
30466   fi
30467 done
30468   done
30469 IFS=$as_save_IFS
30470
30471   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30472   ;;
30473 esac
30474 fi
30475 LPDelegate=$ac_cv_path_LPDelegate
30476 if test -n "$LPDelegate"; then
30477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30478 $as_echo "$LPDelegate" >&6; }
30479 else
30480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482 fi
30483
30484
30485 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30486 set dummy "$LPRDelegateDefault"; ac_word=$2
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30488 $as_echo_n "checking for $ac_word... " >&6; }
30489 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30490   $as_echo_n "(cached) " >&6
30491 else
30492   case $LPRDelegate in
30493   [\\/]* | ?:[\\/]*)
30494   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30495   ;;
30496   *)
30497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498 for as_dir in $PATH
30499 do
30500   IFS=$as_save_IFS
30501   test -z "$as_dir" && as_dir=.
30502     for ac_exec_ext in '' $ac_executable_extensions; do
30503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30506     break 2
30507   fi
30508 done
30509   done
30510 IFS=$as_save_IFS
30511
30512   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30513   ;;
30514 esac
30515 fi
30516 LPRDelegate=$ac_cv_path_LPRDelegate
30517 if test -n "$LPRDelegate"; then
30518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30519 $as_echo "$LPRDelegate" >&6; }
30520 else
30521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522 $as_echo "no" >&6; }
30523 fi
30524
30525
30526 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30527 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30529 $as_echo_n "checking for $ac_word... " >&6; }
30530 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30531   $as_echo_n "(cached) " >&6
30532 else
30533   case $LZWDecodeDelegate in
30534   [\\/]* | ?:[\\/]*)
30535   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30536   ;;
30537   *)
30538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539 for as_dir in $PATH
30540 do
30541   IFS=$as_save_IFS
30542   test -z "$as_dir" && as_dir=.
30543     for ac_exec_ext in '' $ac_executable_extensions; do
30544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30547     break 2
30548   fi
30549 done
30550   done
30551 IFS=$as_save_IFS
30552
30553   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30554   ;;
30555 esac
30556 fi
30557 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30558 if test -n "$LZWDecodeDelegate"; then
30559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30560 $as_echo "$LZWDecodeDelegate" >&6; }
30561 else
30562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30563 $as_echo "no" >&6; }
30564 fi
30565
30566
30567 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30568 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30570 $as_echo_n "checking for $ac_word... " >&6; }
30571 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30572   $as_echo_n "(cached) " >&6
30573 else
30574   case $LZWEncodeDelegate in
30575   [\\/]* | ?:[\\/]*)
30576   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30577   ;;
30578   *)
30579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30581 do
30582   IFS=$as_save_IFS
30583   test -z "$as_dir" && as_dir=.
30584     for ac_exec_ext in '' $ac_executable_extensions; do
30585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30588     break 2
30589   fi
30590 done
30591   done
30592 IFS=$as_save_IFS
30593
30594   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30595   ;;
30596 esac
30597 fi
30598 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30599 if test -n "$LZWEncodeDelegate"; then
30600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30601 $as_echo "$LZWEncodeDelegate" >&6; }
30602 else
30603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604 $as_echo "no" >&6; }
30605 fi
30606
30607
30608 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30609 set dummy "$LaunchDelegateDefault"; ac_word=$2
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30611 $as_echo_n "checking for $ac_word... " >&6; }
30612 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30613   $as_echo_n "(cached) " >&6
30614 else
30615   case $LaunchDelegate in
30616   [\\/]* | ?:[\\/]*)
30617   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30618   ;;
30619   *)
30620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621 for as_dir in $PATH
30622 do
30623   IFS=$as_save_IFS
30624   test -z "$as_dir" && as_dir=.
30625     for ac_exec_ext in '' $ac_executable_extensions; do
30626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30629     break 2
30630   fi
30631 done
30632   done
30633 IFS=$as_save_IFS
30634
30635   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30636   ;;
30637 esac
30638 fi
30639 LaunchDelegate=$ac_cv_path_LaunchDelegate
30640 if test -n "$LaunchDelegate"; then
30641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30642 $as_echo "$LaunchDelegate" >&6; }
30643 else
30644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30646 fi
30647
30648
30649 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30650 set dummy "$MANDelegateDefault"; ac_word=$2
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30652 $as_echo_n "checking for $ac_word... " >&6; }
30653 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30654   $as_echo_n "(cached) " >&6
30655 else
30656   case $MANDelegate in
30657   [\\/]* | ?:[\\/]*)
30658   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30659   ;;
30660   *)
30661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662 for as_dir in $PATH
30663 do
30664   IFS=$as_save_IFS
30665   test -z "$as_dir" && as_dir=.
30666     for ac_exec_ext in '' $ac_executable_extensions; do
30667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30670     break 2
30671   fi
30672 done
30673   done
30674 IFS=$as_save_IFS
30675
30676   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30677   ;;
30678 esac
30679 fi
30680 MANDelegate=$ac_cv_path_MANDelegate
30681 if test -n "$MANDelegate"; then
30682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30683 $as_echo "$MANDelegate" >&6; }
30684 else
30685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30687 fi
30688
30689
30690 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30691 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30693 $as_echo_n "checking for $ac_word... " >&6; }
30694 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30695   $as_echo_n "(cached) " >&6
30696 else
30697   case $MPEGDecodeDelegate in
30698   [\\/]* | ?:[\\/]*)
30699   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30700   ;;
30701   *)
30702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703 for as_dir in $PATH
30704 do
30705   IFS=$as_save_IFS
30706   test -z "$as_dir" && as_dir=.
30707     for ac_exec_ext in '' $ac_executable_extensions; do
30708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30711     break 2
30712   fi
30713 done
30714   done
30715 IFS=$as_save_IFS
30716
30717   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30718   ;;
30719 esac
30720 fi
30721 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30722 if test -n "$MPEGDecodeDelegate"; then
30723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30724 $as_echo "$MPEGDecodeDelegate" >&6; }
30725 else
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727 $as_echo "no" >&6; }
30728 fi
30729
30730
30731 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30732 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30734 $as_echo_n "checking for $ac_word... " >&6; }
30735 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30736   $as_echo_n "(cached) " >&6
30737 else
30738   case $MPEGEncodeDelegate in
30739   [\\/]* | ?:[\\/]*)
30740   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30741   ;;
30742   *)
30743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30745 do
30746   IFS=$as_save_IFS
30747   test -z "$as_dir" && as_dir=.
30748     for ac_exec_ext in '' $ac_executable_extensions; do
30749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30752     break 2
30753   fi
30754 done
30755   done
30756 IFS=$as_save_IFS
30757
30758   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30759   ;;
30760 esac
30761 fi
30762 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30763 if test -n "$MPEGEncodeDelegate"; then
30764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30765 $as_echo "$MPEGEncodeDelegate" >&6; }
30766 else
30767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30768 $as_echo "no" >&6; }
30769 fi
30770
30771
30772 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30773 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775 $as_echo_n "checking for $ac_word... " >&6; }
30776 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30777   $as_echo_n "(cached) " >&6
30778 else
30779   case $MrSIDDecodeDelegate in
30780   [\\/]* | ?:[\\/]*)
30781   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30782   ;;
30783   *)
30784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785 for as_dir in $PATH
30786 do
30787   IFS=$as_save_IFS
30788   test -z "$as_dir" && as_dir=.
30789     for ac_exec_ext in '' $ac_executable_extensions; do
30790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30793     break 2
30794   fi
30795 done
30796   done
30797 IFS=$as_save_IFS
30798
30799   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30800   ;;
30801 esac
30802 fi
30803 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30804 if test -n "$MrSIDDecodeDelegate"; then
30805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30806 $as_echo "$MrSIDDecodeDelegate" >&6; }
30807 else
30808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809 $as_echo "no" >&6; }
30810 fi
30811
30812
30813 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30814 set dummy "$MVDelegateDefault"; ac_word=$2
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30816 $as_echo_n "checking for $ac_word... " >&6; }
30817 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30818   $as_echo_n "(cached) " >&6
30819 else
30820   case $MVDelegate in
30821   [\\/]* | ?:[\\/]*)
30822   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30823   ;;
30824   *)
30825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826 for as_dir in $PATH
30827 do
30828   IFS=$as_save_IFS
30829   test -z "$as_dir" && as_dir=.
30830     for ac_exec_ext in '' $ac_executable_extensions; do
30831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30834     break 2
30835   fi
30836 done
30837   done
30838 IFS=$as_save_IFS
30839
30840   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30841   ;;
30842 esac
30843 fi
30844 MVDelegate=$ac_cv_path_MVDelegate
30845 if test -n "$MVDelegate"; then
30846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30847 $as_echo "$MVDelegate" >&6; }
30848 else
30849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30851 fi
30852
30853
30854 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30855 set dummy "$PCLDelegateDefault"; ac_word=$2
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30857 $as_echo_n "checking for $ac_word... " >&6; }
30858 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30859   $as_echo_n "(cached) " >&6
30860 else
30861   case $PCLDelegate in
30862   [\\/]* | ?:[\\/]*)
30863   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30864   ;;
30865   *)
30866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867 for as_dir in $PATH
30868 do
30869   IFS=$as_save_IFS
30870   test -z "$as_dir" && as_dir=.
30871     for ac_exec_ext in '' $ac_executable_extensions; do
30872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30875     break 2
30876   fi
30877 done
30878   done
30879 IFS=$as_save_IFS
30880
30881   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30882   ;;
30883 esac
30884 fi
30885 PCLDelegate=$ac_cv_path_PCLDelegate
30886 if test -n "$PCLDelegate"; then
30887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30888 $as_echo "$PCLDelegate" >&6; }
30889 else
30890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 $as_echo "no" >&6; }
30892 fi
30893
30894
30895 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30896 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30898 $as_echo_n "checking for $ac_word... " >&6; }
30899 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30900   $as_echo_n "(cached) " >&6
30901 else
30902   case $PGPDecodeDelegate in
30903   [\\/]* | ?:[\\/]*)
30904   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30905   ;;
30906   *)
30907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908 for as_dir in $PATH
30909 do
30910   IFS=$as_save_IFS
30911   test -z "$as_dir" && as_dir=.
30912     for ac_exec_ext in '' $ac_executable_extensions; do
30913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30916     break 2
30917   fi
30918 done
30919   done
30920 IFS=$as_save_IFS
30921
30922   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30923   ;;
30924 esac
30925 fi
30926 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30927 if test -n "$PGPDecodeDelegate"; then
30928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30929 $as_echo "$PGPDecodeDelegate" >&6; }
30930 else
30931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933 fi
30934
30935
30936 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30937 set dummy "$POVDelegateDefault"; ac_word=$2
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30939 $as_echo_n "checking for $ac_word... " >&6; }
30940 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30941   $as_echo_n "(cached) " >&6
30942 else
30943   case $POVDelegate in
30944   [\\/]* | ?:[\\/]*)
30945   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30946   ;;
30947   *)
30948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949 for as_dir in $PATH
30950 do
30951   IFS=$as_save_IFS
30952   test -z "$as_dir" && as_dir=.
30953     for ac_exec_ext in '' $ac_executable_extensions; do
30954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30957     break 2
30958   fi
30959 done
30960   done
30961 IFS=$as_save_IFS
30962
30963   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30964   ;;
30965 esac
30966 fi
30967 POVDelegate=$ac_cv_path_POVDelegate
30968 if test -n "$POVDelegate"; then
30969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30970 $as_echo "$POVDelegate" >&6; }
30971 else
30972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30973 $as_echo "no" >&6; }
30974 fi
30975
30976
30977 for ac_prog in gsx gsc "$PSDelegateDefault"
30978 do
30979   # Extract the first word of "$ac_prog", so it can be a program name with args.
30980 set dummy $ac_prog; ac_word=$2
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30982 $as_echo_n "checking for $ac_word... " >&6; }
30983 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30984   $as_echo_n "(cached) " >&6
30985 else
30986   case $PSDelegate in
30987   [\\/]* | ?:[\\/]*)
30988   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30989   ;;
30990   *)
30991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992 for as_dir in $PATH
30993 do
30994   IFS=$as_save_IFS
30995   test -z "$as_dir" && as_dir=.
30996     for ac_exec_ext in '' $ac_executable_extensions; do
30997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31000     break 2
31001   fi
31002 done
31003   done
31004 IFS=$as_save_IFS
31005
31006   ;;
31007 esac
31008 fi
31009 PSDelegate=$ac_cv_path_PSDelegate
31010 if test -n "$PSDelegate"; then
31011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31012 $as_echo "$PSDelegate" >&6; }
31013 else
31014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31015 $as_echo "no" >&6; }
31016 fi
31017
31018
31019   test -n "$PSDelegate" && break
31020 done
31021 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31022
31023 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31024 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31026 $as_echo_n "checking for $ac_word... " >&6; }
31027 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31028   $as_echo_n "(cached) " >&6
31029 else
31030   case $RLEEncodeDelegate in
31031   [\\/]* | ?:[\\/]*)
31032   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31033   ;;
31034   *)
31035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036 for as_dir in $PATH
31037 do
31038   IFS=$as_save_IFS
31039   test -z "$as_dir" && as_dir=.
31040     for ac_exec_ext in '' $ac_executable_extensions; do
31041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31044     break 2
31045   fi
31046 done
31047   done
31048 IFS=$as_save_IFS
31049
31050   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31051   ;;
31052 esac
31053 fi
31054 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31055 if test -n "$RLEEncodeDelegate"; then
31056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31057 $as_echo "$RLEEncodeDelegate" >&6; }
31058 else
31059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31060 $as_echo "no" >&6; }
31061 fi
31062
31063
31064 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31065 set dummy "$RMDelegateDefault"; ac_word=$2
31066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31067 $as_echo_n "checking for $ac_word... " >&6; }
31068 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31069   $as_echo_n "(cached) " >&6
31070 else
31071   case $RMDelegate in
31072   [\\/]* | ?:[\\/]*)
31073   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31074   ;;
31075   *)
31076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077 for as_dir in $PATH
31078 do
31079   IFS=$as_save_IFS
31080   test -z "$as_dir" && as_dir=.
31081     for ac_exec_ext in '' $ac_executable_extensions; do
31082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31085     break 2
31086   fi
31087 done
31088   done
31089 IFS=$as_save_IFS
31090
31091   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31092   ;;
31093 esac
31094 fi
31095 RMDelegate=$ac_cv_path_RMDelegate
31096 if test -n "$RMDelegate"; then
31097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31098 $as_echo "$RMDelegate" >&6; }
31099 else
31100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31101 $as_echo "no" >&6; }
31102 fi
31103
31104
31105 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31106 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31108 $as_echo_n "checking for $ac_word... " >&6; }
31109 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31110   $as_echo_n "(cached) " >&6
31111 else
31112   case $RSVGDecodeDelegate in
31113   [\\/]* | ?:[\\/]*)
31114   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31115   ;;
31116   *)
31117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118 for as_dir in $PATH
31119 do
31120   IFS=$as_save_IFS
31121   test -z "$as_dir" && as_dir=.
31122     for ac_exec_ext in '' $ac_executable_extensions; do
31123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31124     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31126     break 2
31127   fi
31128 done
31129   done
31130 IFS=$as_save_IFS
31131
31132   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31133   ;;
31134 esac
31135 fi
31136 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31137 if test -n "$RSVGDecodeDelegate"; then
31138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31139 $as_echo "$RSVGDecodeDelegate" >&6; }
31140 else
31141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142 $as_echo "no" >&6; }
31143 fi
31144
31145
31146 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31147 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31149 $as_echo_n "checking for $ac_word... " >&6; }
31150 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31151   $as_echo_n "(cached) " >&6
31152 else
31153   case $SCANDecodeDelegate in
31154   [\\/]* | ?:[\\/]*)
31155   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31156   ;;
31157   *)
31158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31159 for as_dir in $PATH
31160 do
31161   IFS=$as_save_IFS
31162   test -z "$as_dir" && as_dir=.
31163     for ac_exec_ext in '' $ac_executable_extensions; do
31164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31165     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31167     break 2
31168   fi
31169 done
31170   done
31171 IFS=$as_save_IFS
31172
31173   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31174   ;;
31175 esac
31176 fi
31177 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31178 if test -n "$SCANDecodeDelegate"; then
31179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31180 $as_echo "$SCANDecodeDelegate" >&6; }
31181 else
31182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31183 $as_echo "no" >&6; }
31184 fi
31185
31186
31187 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31188 set dummy "$TXTDelegateDefault"; ac_word=$2
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31190 $as_echo_n "checking for $ac_word... " >&6; }
31191 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31192   $as_echo_n "(cached) " >&6
31193 else
31194   case $TXTDelegate in
31195   [\\/]* | ?:[\\/]*)
31196   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31197   ;;
31198   *)
31199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31200 for as_dir in $PATH
31201 do
31202   IFS=$as_save_IFS
31203   test -z "$as_dir" && as_dir=.
31204     for ac_exec_ext in '' $ac_executable_extensions; do
31205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31206     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31208     break 2
31209   fi
31210 done
31211   done
31212 IFS=$as_save_IFS
31213
31214   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31215   ;;
31216 esac
31217 fi
31218 TXTDelegate=$ac_cv_path_TXTDelegate
31219 if test -n "$TXTDelegate"; then
31220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31221 $as_echo "$TXTDelegate" >&6; }
31222 else
31223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31224 $as_echo "no" >&6; }
31225 fi
31226
31227
31228 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31229 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31231 $as_echo_n "checking for $ac_word... " >&6; }
31232 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31233   $as_echo_n "(cached) " >&6
31234 else
31235   case $UniconvertorDelegate in
31236   [\\/]* | ?:[\\/]*)
31237   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31238   ;;
31239   *)
31240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241 for as_dir in $PATH
31242 do
31243   IFS=$as_save_IFS
31244   test -z "$as_dir" && as_dir=.
31245     for ac_exec_ext in '' $ac_executable_extensions; do
31246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31249     break 2
31250   fi
31251 done
31252   done
31253 IFS=$as_save_IFS
31254
31255   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31256   ;;
31257 esac
31258 fi
31259 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31260 if test -n "$UniconvertorDelegate"; then
31261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31262 $as_echo "$UniconvertorDelegate" >&6; }
31263 else
31264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265 $as_echo "no" >&6; }
31266 fi
31267
31268
31269 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31270 set dummy "$WEBPDelegateDefault"; ac_word=$2
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31272 $as_echo_n "checking for $ac_word... " >&6; }
31273 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31274   $as_echo_n "(cached) " >&6
31275 else
31276   case $WEBPDelegate in
31277   [\\/]* | ?:[\\/]*)
31278   ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31279   ;;
31280   *)
31281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31282 for as_dir in $PATH
31283 do
31284   IFS=$as_save_IFS
31285   test -z "$as_dir" && as_dir=.
31286     for ac_exec_ext in '' $ac_executable_extensions; do
31287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31288     ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31290     break 2
31291   fi
31292 done
31293   done
31294 IFS=$as_save_IFS
31295
31296   test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31297   ;;
31298 esac
31299 fi
31300 WEBPDelegate=$ac_cv_path_WEBPDelegate
31301 if test -n "$WEBPDelegate"; then
31302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31303 $as_echo "$WEBPDelegate" >&6; }
31304 else
31305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31306 $as_echo "no" >&6; }
31307 fi
31308
31309
31310 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31311 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31313 $as_echo_n "checking for $ac_word... " >&6; }
31314 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31315   $as_echo_n "(cached) " >&6
31316 else
31317   case $WMFDecodeDelegate in
31318   [\\/]* | ?:[\\/]*)
31319   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31320   ;;
31321   *)
31322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323 for as_dir in $PATH
31324 do
31325   IFS=$as_save_IFS
31326   test -z "$as_dir" && as_dir=.
31327     for ac_exec_ext in '' $ac_executable_extensions; do
31328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31331     break 2
31332   fi
31333 done
31334   done
31335 IFS=$as_save_IFS
31336
31337   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31338   ;;
31339 esac
31340 fi
31341 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31342 if test -n "$WMFDecodeDelegate"; then
31343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31344 $as_echo "$WMFDecodeDelegate" >&6; }
31345 else
31346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31347 $as_echo "no" >&6; }
31348 fi
31349
31350
31351 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31352 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31354 $as_echo_n "checking for $ac_word... " >&6; }
31355 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31356   $as_echo_n "(cached) " >&6
31357 else
31358   case $WWWDecodeDelegate in
31359   [\\/]* | ?:[\\/]*)
31360   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31361   ;;
31362   *)
31363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364 for as_dir in $PATH
31365 do
31366   IFS=$as_save_IFS
31367   test -z "$as_dir" && as_dir=.
31368     for ac_exec_ext in '' $ac_executable_extensions; do
31369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31372     break 2
31373   fi
31374 done
31375   done
31376 IFS=$as_save_IFS
31377
31378   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31379   ;;
31380 esac
31381 fi
31382 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31383 if test -n "$WWWDecodeDelegate"; then
31384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31385 $as_echo "$WWWDecodeDelegate" >&6; }
31386 else
31387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31388 $as_echo "no" >&6; }
31389 fi
31390
31391
31392 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31393 set dummy "$XPSDelegateDefault"; ac_word=$2
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31395 $as_echo_n "checking for $ac_word... " >&6; }
31396 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31397   $as_echo_n "(cached) " >&6
31398 else
31399   case $XPSDelegate in
31400   [\\/]* | ?:[\\/]*)
31401   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31402   ;;
31403   *)
31404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405 for as_dir in $PATH
31406 do
31407   IFS=$as_save_IFS
31408   test -z "$as_dir" && as_dir=.
31409     for ac_exec_ext in '' $ac_executable_extensions; do
31410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31413     break 2
31414   fi
31415 done
31416   done
31417 IFS=$as_save_IFS
31418
31419   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31420   ;;
31421 esac
31422 fi
31423 XPSDelegate=$ac_cv_path_XPSDelegate
31424 if test -n "$XPSDelegate"; then
31425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31426 $as_echo "$XPSDelegate" >&6; }
31427 else
31428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31429 $as_echo "no" >&6; }
31430 fi
31431
31432
31433 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31434 set dummy "$ZipDelegateDefault"; ac_word=$2
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31436 $as_echo_n "checking for $ac_word... " >&6; }
31437 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31438   $as_echo_n "(cached) " >&6
31439 else
31440   case $ZipDelegate in
31441   [\\/]* | ?:[\\/]*)
31442   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31443   ;;
31444   *)
31445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31446 for as_dir in $PATH
31447 do
31448   IFS=$as_save_IFS
31449   test -z "$as_dir" && as_dir=.
31450     for ac_exec_ext in '' $ac_executable_extensions; do
31451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31452     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31454     break 2
31455   fi
31456 done
31457   done
31458 IFS=$as_save_IFS
31459
31460   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31461   ;;
31462 esac
31463 fi
31464 ZipDelegate=$ac_cv_path_ZipDelegate
31465 if test -n "$ZipDelegate"; then
31466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31467 $as_echo "$ZipDelegate" >&6; }
31468 else
31469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31470 $as_echo "no" >&6; }
31471 fi
31472
31473
31474
31475 # Prefer lpr to lp; lp needs options tacked on.
31476 if test "$LPRDelegate" != no; then
31477     PrintDelegate="$LPRDelegate"
31478 else
31479     PrintDelegate="$LPDelegate -c -s"
31480 fi
31481
31482
31483 # Installed ImageMagick utiltity paths
31484 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31485 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31486 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31487
31488 # Set delegate booleans
31489 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31490 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31491 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31492 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31493 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31494 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31495 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31496 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31497 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31498 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31499 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31500 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31501
31502 #
31503 # Test for font directories
31504 #
31505 type_include_files=''
31506
31507 # Dejavu fonts.
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31509 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31510 dejavu_font_dir=''
31511 if test "${with_dejavu_font_dir}" != 'default'; then
31512   dejavu_font_dir="${with_dejavu_font_dir}/"
31513 else
31514   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31515     if test -f "${font_dir}DejaVuSerif.ttf"; then
31516       dejavu_font_dir="${font_dir}"
31517       break 1
31518     fi
31519   done
31520 fi
31521 if test "${dejavu_font_dir}x" != 'x'; then
31522   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31524 $as_echo "$dejavu_font_dir" >&6; }
31525 else
31526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31527 $as_echo "not found!" >&6; };
31528 fi
31529
31530
31531 # Windows
31532 windows_font_dir=''
31533 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31534    windows_font_dir="${with_windows_font_dir}/"
31535 fi
31536 if test "${windows_font_dir}x" != 'x'; then
31537     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31538       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31539     fi
31540     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31541       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31542     fi
31543     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31544       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31545     fi
31546 fi
31547 if test "${windows_font_dir}x" != 'x'; then
31548   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31549 fi
31550
31551
31552 # Ghostscript
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31554 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31555 ghostscript_font_dir=''
31556 if test "${with_gs_font_dir}" != 'default'; then
31557   ghostscript_font_dir="${with_gs_font_dir}/"
31558 else
31559   if test "${native_win32_build}" = 'yes'; then
31560     # Native Windows Build
31561     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31562       if test -f "${font_dir}a010013l.pfb"; then
31563         ghostscript_font_dir="$font_dir"
31564         break 1
31565       fi
31566     done
31567     if test "${PSDelegate}" != 'gswin32c'; then
31568       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31569     fi
31570   else
31571     # Linux / Mac OS X / Unix Build
31572     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
31573       if test -f "${font_dir}a010013l.pfb"; then
31574         ghostscript_font_dir="${font_dir}"
31575         break 1
31576       fi
31577     done
31578     if test "${ghostscript_font_dir}x" = 'x'; then
31579       if test "$PSDelegate" != 'gs'; then
31580         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31581       fi
31582     fi
31583   fi
31584 fi
31585 if test "${ghostscript_font_dir}x" != 'x'; then
31586   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31588 $as_echo "$ghostscript_font_dir" >&6; }
31589 else
31590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31591 $as_echo "not found!" >&6; };
31592 fi
31593
31594 case "${build_os}" in
31595   mingw* )
31596     PSDelegate=`$WinPathScript "$PSDelegate" 1`
31597     ;;
31598 esac
31599
31600
31601
31602 #
31603 # Handle case where user doesn't want frozen paths
31604 #
31605 if test "$with_frozenpaths" != 'yes'; then
31606   # Re-set delegate definitions to default (no paths)
31607   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31608   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31609   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31610   BZIPDelegate="$BZIPDelegateDefault"
31611   BrowseDelegate="$BrowseDelegateDefault"
31612   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31613   CatDelegate="$CatDelegateDefault"
31614   ConvertDelegate="$ConvertDelegateDefault"
31615   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31616   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31617   EchoDelegate="$EchoDelegateDefault"
31618   EditorDelegate="$EditorDelegateDefault"
31619   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31620   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31621   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31622   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31623   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31624   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31625   LPDelegate="$LPDelegateDefault"
31626   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31627   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31628   LaunchDelegate="$LaunchDelegateDefault"
31629   MANDelegate="$MANDelegateDefault"
31630   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31631   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31632   MogrifyDelegate="$MogrifyDelegateDefault"
31633   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31634   MVDelegate="$MVDelegateDefault"
31635   PCLDelegate="$PCLDelegateDefault"
31636   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31637   POVDelegate="$POVDelegateDefault"
31638   PSDelegate="$PSDelegateDefault"
31639   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31640   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31641   RMDelegate="$RMDelegateDefault"
31642   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31643   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31644   ShowImageDelegate="$ShowImageDelegateDefault"
31645   TXTDelegate="$TXTDelegateDefault"
31646   UniconvertorDelegate="$UniconvertorDelegateDefault"
31647   WEBPDelegate="$WEBPDelegateDefault"
31648   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31649   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31650   XPSDelegate="$XPSDelegateDefault"
31651   ZipDelegate="$ZipDelegateDefault"
31652 fi
31653
31654 # Delegate substitutions
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700 #
31701 # RPM support.
31702 #
31703 RPM=''
31704 for ac_prog in gnutar gtar tar
31705 do
31706   # Extract the first word of "$ac_prog", so it can be a program name with args.
31707 set dummy $ac_prog; ac_word=$2
31708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31709 $as_echo_n "checking for $ac_word... " >&6; }
31710 if test "${ac_cv_prog_TAR+set}" = set; then :
31711   $as_echo_n "(cached) " >&6
31712 else
31713   if test -n "$TAR"; then
31714   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31715 else
31716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31717 for as_dir in $PATH
31718 do
31719   IFS=$as_save_IFS
31720   test -z "$as_dir" && as_dir=.
31721     for ac_exec_ext in '' $ac_executable_extensions; do
31722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31723     ac_cv_prog_TAR="$ac_prog"
31724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31725     break 2
31726   fi
31727 done
31728   done
31729 IFS=$as_save_IFS
31730
31731 fi
31732 fi
31733 TAR=$ac_cv_prog_TAR
31734 if test -n "$TAR"; then
31735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31736 $as_echo "$TAR" >&6; }
31737 else
31738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739 $as_echo "no" >&6; }
31740 fi
31741
31742
31743   test -n "$TAR" && break
31744 done
31745
31746 for ac_prog in perl
31747 do
31748   # Extract the first word of "$ac_prog", so it can be a program name with args.
31749 set dummy $ac_prog; ac_word=$2
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31751 $as_echo_n "checking for $ac_word... " >&6; }
31752 if test "${ac_cv_prog_PERL+set}" = set; then :
31753   $as_echo_n "(cached) " >&6
31754 else
31755   if test -n "$PERL"; then
31756   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31757 else
31758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31759 for as_dir in $PATH
31760 do
31761   IFS=$as_save_IFS
31762   test -z "$as_dir" && as_dir=.
31763     for ac_exec_ext in '' $ac_executable_extensions; do
31764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31765     ac_cv_prog_PERL="$ac_prog"
31766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31767     break 2
31768   fi
31769 done
31770   done
31771 IFS=$as_save_IFS
31772
31773 fi
31774 fi
31775 PERL=$ac_cv_prog_PERL
31776 if test -n "$PERL"; then
31777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31778 $as_echo "$PERL" >&6; }
31779 else
31780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31781 $as_echo "no" >&6; }
31782 fi
31783
31784
31785   test -n "$PERL" && break
31786 done
31787
31788 for ac_prog in rpmbuild rpm
31789 do
31790   # Extract the first word of "$ac_prog", so it can be a program name with args.
31791 set dummy $ac_prog; ac_word=$2
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31793 $as_echo_n "checking for $ac_word... " >&6; }
31794 if test "${ac_cv_prog_RPM+set}" = set; then :
31795   $as_echo_n "(cached) " >&6
31796 else
31797   if test -n "$RPM"; then
31798   ac_cv_prog_RPM="$RPM" # Let the user override the test.
31799 else
31800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31801 for as_dir in $PATH
31802 do
31803   IFS=$as_save_IFS
31804   test -z "$as_dir" && as_dir=.
31805     for ac_exec_ext in '' $ac_executable_extensions; do
31806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31807     ac_cv_prog_RPM="$ac_prog"
31808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31809     break 2
31810   fi
31811 done
31812   done
31813 IFS=$as_save_IFS
31814
31815 fi
31816 fi
31817 RPM=$ac_cv_prog_RPM
31818 if test -n "$RPM"; then
31819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31820 $as_echo "$RPM" >&6; }
31821 else
31822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31823 $as_echo "no" >&6; }
31824 fi
31825
31826
31827   test -n "$RPM" && break
31828 done
31829
31830
31831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31832
31833
31834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31835
31836
31837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31838
31839
31840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31841
31842
31843  if test "x$RPM" != "x" ; then
31844   RPM_DELEGATE_TRUE=
31845   RPM_DELEGATE_FALSE='#'
31846 else
31847   RPM_DELEGATE_TRUE='#'
31848   RPM_DELEGATE_FALSE=
31849 fi
31850
31851
31852 #
31853 # 7ZIP support (http://p7zip.sourceforge.net/)
31854 #
31855 P7ZIP=''
31856 for ac_prog in 7za
31857 do
31858   # Extract the first word of "$ac_prog", so it can be a program name with args.
31859 set dummy $ac_prog; ac_word=$2
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31861 $as_echo_n "checking for $ac_word... " >&6; }
31862 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31863   $as_echo_n "(cached) " >&6
31864 else
31865   if test -n "$P7ZIP"; then
31866   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31867 else
31868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31869 for as_dir in $PATH
31870 do
31871   IFS=$as_save_IFS
31872   test -z "$as_dir" && as_dir=.
31873     for ac_exec_ext in '' $ac_executable_extensions; do
31874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31875     ac_cv_prog_P7ZIP="$ac_prog"
31876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31877     break 2
31878   fi
31879 done
31880   done
31881 IFS=$as_save_IFS
31882
31883 fi
31884 fi
31885 P7ZIP=$ac_cv_prog_P7ZIP
31886 if test -n "$P7ZIP"; then
31887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31888 $as_echo "$P7ZIP" >&6; }
31889 else
31890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31891 $as_echo "no" >&6; }
31892 fi
31893
31894
31895   test -n "$P7ZIP" && break
31896 done
31897
31898
31899  if test "x$P7ZIP" != "x" ; then
31900   P7ZIP_DELEGATE_TRUE=
31901   P7ZIP_DELEGATE_FALSE='#'
31902 else
31903   P7ZIP_DELEGATE_TRUE='#'
31904   P7ZIP_DELEGATE_FALSE=
31905 fi
31906
31907
31908 #
31909 # ZIP support (http://www.info-zip.org/Zip.html)
31910 #
31911 ZIP=''
31912 for ac_prog in zip
31913 do
31914   # Extract the first word of "$ac_prog", so it can be a program name with args.
31915 set dummy $ac_prog; ac_word=$2
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31917 $as_echo_n "checking for $ac_word... " >&6; }
31918 if test "${ac_cv_prog_ZIP+set}" = set; then :
31919   $as_echo_n "(cached) " >&6
31920 else
31921   if test -n "$ZIP"; then
31922   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31923 else
31924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31925 for as_dir in $PATH
31926 do
31927   IFS=$as_save_IFS
31928   test -z "$as_dir" && as_dir=.
31929     for ac_exec_ext in '' $ac_executable_extensions; do
31930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31931     ac_cv_prog_ZIP="$ac_prog"
31932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31933     break 2
31934   fi
31935 done
31936   done
31937 IFS=$as_save_IFS
31938
31939 fi
31940 fi
31941 ZIP=$ac_cv_prog_ZIP
31942 if test -n "$ZIP"; then
31943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31944 $as_echo "$ZIP" >&6; }
31945 else
31946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31947 $as_echo "no" >&6; }
31948 fi
31949
31950
31951   test -n "$ZIP" && break
31952 done
31953
31954
31955  if test "x$ZIP" != "x" ; then
31956   ZIP_DELEGATE_TRUE=
31957   ZIP_DELEGATE_FALSE='#'
31958 else
31959   ZIP_DELEGATE_TRUE='#'
31960   ZIP_DELEGATE_FALSE=
31961 fi
31962
31963
31964 #
31965 # GhostPCL related configuration.
31966 #
31967 PCLColorDevice=ppmraw
31968 PCLCMYKDevice=bmpsep8
31969 PCLMonoDevice=pbmraw
31970 if test -z "$PCLVersion"; then
31971     PCLVersion='unknown'
31972 fi
31973 if test $have_pcl = 'yes'; then
31974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31975 $as_echo "-------------------------------------------------------------" >&6; }
31976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31977 $as_echo_n "checking for PCL... " >&6; }
31978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31979 $as_echo "" >&6; }
31980     # PCLColorDevice
31981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31982 $as_echo_n "checking for pcl color device... " >&6; }
31983     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31984         :
31985     else
31986         PCLColorDevice=ppmraw
31987     fi
31988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31989 $as_echo "$PCLColorDevice" >&6; }
31990
31991     # PCLCMYKDevice
31992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31993 $as_echo_n "checking for pcl CMYK device... " >&6; }
31994     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31995         :
31996     else
31997         PCLCMYKDevice=$PCLColorDevice
31998     fi
31999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32000 $as_echo "$PCLCMYKDevice" >&6; }
32001
32002     # PCLMonoDevice
32003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32004 $as_echo_n "checking for pcl mono device... " >&6; }
32005     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32006         :
32007     else
32008         PCLMonoDevice=$PCLColorDevice
32009     fi
32010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32011 $as_echo "$PCLMonoDevice" >&6; }
32012 fi
32013
32014
32015
32016
32017
32018
32019 #
32020 # GhostXPS related configuration.
32021 #
32022 XPSColorDevice=ppmraw
32023 XPSCMYKDevice=bmpsep8
32024 XPSMonoDevice=pbmraw
32025 if test -z "$XPSVersion"; then
32026     XPSVersion='unknown'
32027 fi
32028 if test $have_xps = 'yes'; then
32029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32030 $as_echo "-------------------------------------------------------------" >&6; }
32031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32032 $as_echo_n "checking for XPS... " >&6; }
32033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32034 $as_echo "" >&6; }
32035     # XPSColorDevice
32036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32037 $as_echo_n "checking for xps color device... " >&6; }
32038     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32039         :
32040     else
32041         XPSColorDevice=ppmraw
32042     fi
32043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32044 $as_echo "$XPSColorDevice" >&6; }
32045
32046     # XPSCMYKDevice
32047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32048 $as_echo_n "checking for xps CMYK device... " >&6; }
32049     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32050         :
32051     else
32052         XPSCMYKDevice=$XPSColorDevice
32053     fi
32054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32055 $as_echo "$XPSCMYKDevice" >&6; }
32056
32057     # XPSMonoDevice
32058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32059 $as_echo_n "checking for xps mono device... " >&6; }
32060     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32061         :
32062     else
32063         XPSMonoDevice=$XPSColorDevice
32064     fi
32065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32066 $as_echo "$XPSMonoDevice" >&6; }
32067 fi
32068
32069
32070
32071
32072
32073
32074 #
32075 # Ghostscript related configuration.
32076 #
32077 if test "$have_png" = 'yes'; then
32078     GSAlphaDevice=pngalpha
32079 else
32080     GSAlphaDevice=pnmraw
32081 fi
32082 GSColorDevice=pnmraw
32083 GSCMYKDevice=pam
32084 GSMonoDevice=pbmraw
32085 GSPDFDevice=pdfwrite
32086 GSPSDevice=pswrite
32087 GSEPSDevice=epswrite
32088 GSVersion='unknown'
32089 if test $have_gs = 'yes'; then
32090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32091 $as_echo "-------------------------------------------------------------" >&6; }
32092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32093 $as_echo_n "checking for Ghostscript... " >&6; }
32094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32095 $as_echo "" >&6; }
32096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32097 $as_echo_n "checking for Ghostscript version... " >&6; }
32098     if GSVersion=`$PSDelegate --version`; then
32099         :
32100     else
32101         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32102     fi
32103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32104 $as_echo "$GSVersion" >&6; }
32105
32106     # GSAlphaDevice
32107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32108 $as_echo_n "checking for gs alpha device... " >&6; }
32109     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32110         :
32111     else
32112         GSAlphaDevice=pnmraw
32113     fi
32114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32115 $as_echo "$GSAlphaDevice" >&6; }
32116
32117     # GSColorDevice
32118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32119 $as_echo_n "checking for gs color device... " >&6; }
32120     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32121         :
32122     else
32123         GSColorDevice=pnmraw
32124     fi
32125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32126 $as_echo "$GSColorDevice" >&6; }
32127
32128     # GSCMYKDevice
32129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32130 $as_echo_n "checking for gs CMYK device... " >&6; }
32131     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32132         :
32133     else
32134         GSCMYKDevice=bmpsep8
32135     fi
32136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32137 $as_echo "$GSCMYKDevice" >&6; }
32138
32139     # GSMonoDevice
32140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32141 $as_echo_n "checking for gs mono device... " >&6; }
32142     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32143         :
32144     else
32145         GSMonoDevice=$GSColorDevice
32146     fi
32147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32148 $as_echo "$GSMonoDevice" >&6; }
32149
32150     # GSPDFDevice
32151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32152 $as_echo_n "checking for gs PDF writing device... " >&6; }
32153     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32154         :
32155     else
32156         GSPDFDevice=nodevice
32157     fi
32158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32159 $as_echo "$GSPDFDevice" >&6; }
32160
32161     # GSPSDevice
32162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32163 $as_echo_n "checking for gs PS writing device... " >&6; }
32164     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32165         :
32166     else
32167         GSPSDevice=nodevice
32168     fi
32169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32170 $as_echo "$GSPSDevice" >&6; }
32171
32172     # GSEPSDevice
32173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32174 $as_echo_n "checking for gs EPS writing device... " >&6; }
32175     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32176         :
32177     else
32178         GSEPSDevice=nodevice
32179     fi
32180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32181 $as_echo "$GSEPSDevice" >&6; }
32182 fi
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193 #
32194 # PerlMagick-related configuration
32195 #
32196
32197 # Look for PERL if PerlMagick requested
32198 # If name/path of desired PERL interpreter is specified, look for that one first
32199 have_perl='no'
32200 if test "$with_perl" != 'no'; then
32201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32202 $as_echo "-------------------------------------------------------------" >&6; }
32203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32204 $as_echo_n "checking for Perl... " >&6; }
32205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32206 $as_echo "" >&6; }
32207     if test "$with_perl" != 'yes'; then
32208         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32209 $as_echo_n "checking for perl... " >&6; }
32210 if test "${ac_cv_path_PERL+set}" = set; then :
32211   $as_echo_n "(cached) " >&6
32212 else
32213   ac_cv_path_PERL="$with_perl"
32214 fi
32215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32216 $as_echo "$ac_cv_path_PERL" >&6; };
32217         PERL=$ac_cv_path_PERL
32218                 have_perl="$ac_cv_path_PERL"
32219     else
32220         for ac_prog in perl perl5
32221 do
32222   # Extract the first word of "$ac_prog", so it can be a program name with args.
32223 set dummy $ac_prog; ac_word=$2
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32225 $as_echo_n "checking for $ac_word... " >&6; }
32226 if test "${ac_cv_path_PERL+set}" = set; then :
32227   $as_echo_n "(cached) " >&6
32228 else
32229   case $PERL in
32230   [\\/]* | ?:[\\/]*)
32231   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32232   ;;
32233   *)
32234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32235 for as_dir in $PATH
32236 do
32237   IFS=$as_save_IFS
32238   test -z "$as_dir" && as_dir=.
32239     for ac_exec_ext in '' $ac_executable_extensions; do
32240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32241     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32243     break 2
32244   fi
32245 done
32246   done
32247 IFS=$as_save_IFS
32248
32249   ;;
32250 esac
32251 fi
32252 PERL=$ac_cv_path_PERL
32253 if test -n "$PERL"; then
32254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32255 $as_echo "$PERL" >&6; }
32256 else
32257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32258 $as_echo "no" >&6; }
32259 fi
32260
32261
32262   test -n "$PERL" && break
32263 done
32264         if test "$ac_cv_path_PERL"; then
32265             have_perl="$ac_cv_path_PERL"
32266         fi
32267     fi
32268 fi
32269
32270 if test "$with_perl" != 'yes' ; then
32271     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32272 fi
32273
32274 PERL_SUPPORTS_DESTDIR='no'
32275
32276 with_perl_static='no'
32277 with_perl_dynamic='no'
32278 if test "$have_perl" != 'no'; then
32279     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32280         with_perl_static='yes'
32281     fi
32282     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32283         with_perl_dynamic='yes'
32284     fi
32285     # Is PERL's MakeMaker new enough to support DESTDIR?
32286
32287
32288
32289
32290     if test -n "$PERL"; then :
32291
32292         ax_perl_version="5.8.1"
32293
32294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32295 $as_echo_n "checking for perl version... " >&6; }
32296
32297         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32298
32299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32300 $as_echo "$perl_version" >&6; }
32301
32302         PERL_VERSION=$perl_version
32303
32304
32305
32306
32307
32308   # Used to indicate true or false condition
32309   ax_compare_version=false
32310
32311   # Convert the two version strings to be compared into a format that
32312   # allows a simple string comparison.  The end result is that a version
32313   # string of the form 1.12.5-r617 will be converted to the form
32314   # 0001001200050617.  In other words, each number is zero padded to four
32315   # digits, and non digits are removed.
32316
32317   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32318                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32319                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32320                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32321                      -e 's/[^0-9]//g'`
32322
32323
32324   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32325                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32326                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32327                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32328                      -e 's/[^0-9]//g'`
32329
32330
32331     ax_compare_version=`echo "x$ax_compare_version_A
32332 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32333
32334
32335
32336     if test "$ax_compare_version" = "true" ; then
32337
32338             :
32339             PERL_SUPPORTS_DESTDIR='yes'
32340
32341     else
32342             :
32343             PERL_SUPPORTS_DESTDIR='no'
32344
32345   fi
32346
32347
32348 else
32349
32350         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32351 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32352         PERL_SUPPORTS_DESTDIR='no'
32353
32354 fi
32355
32356 fi
32357  if test "$have_perl" != 'no'; then
32358   WITH_PERL_TRUE=
32359   WITH_PERL_FALSE='#'
32360 else
32361   WITH_PERL_TRUE='#'
32362   WITH_PERL_FALSE=
32363 fi
32364
32365  if test $with_perl_static = 'yes'; then
32366   WITH_PERL_STATIC_TRUE=
32367   WITH_PERL_STATIC_FALSE='#'
32368 else
32369   WITH_PERL_STATIC_TRUE='#'
32370   WITH_PERL_STATIC_FALSE=
32371 fi
32372
32373  if test $with_perl_dynamic = 'yes'; then
32374   WITH_PERL_DYNAMIC_TRUE=
32375   WITH_PERL_DYNAMIC_FALSE='#'
32376 else
32377   WITH_PERL_DYNAMIC_TRUE='#'
32378   WITH_PERL_DYNAMIC_FALSE=
32379 fi
32380
32381
32382
32383 # Determine path to pick up MagickCore library from for use with building PerlMagick
32384 MAGICKCORE_PATH="${LIB_DIR}"
32385 if test $with_perl_static = 'yes'; then
32386     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32387     libtool_objdir=$objdir
32388
32389     # Linker search path to library, followed by -lMagickCore
32390     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32391 fi
32392
32393
32394 # Create a simple string containing format names for all delegate libraries
32395 DELEGATES=''
32396 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32397 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32398 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32399 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32400 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32401 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32402 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32403 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32404 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32405 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32406 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32407 if test "$have_jpeg"       = 'yes'; then
32408   DELEGATES="$DELEGATES jpeg";
32409   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32410 fi
32411 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32412 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32413 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32414 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32415 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32416 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32417 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
32418 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32419 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32420 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32421 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32422 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32423 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32424
32425
32426
32427 #
32428 # Handle special compiler flags
32429 #
32430
32431 # Add '-p' if prof source profiling support enabled
32432 if test "$enable_prof" = 'yes'; then
32433     CFLAGS="-p $CFLAGS"
32434     CXXFLAGS="-p $CXXFLAGS"
32435     LDFLAGS="-p $LDFLAGS"
32436 fi
32437
32438 # Add '-pg' if gprof source profiling support enabled
32439 if test "$enable_gprof" = 'yes'; then
32440     CFLAGS="-pg $CFLAGS"
32441     CXXFLAGS="-pg $CXXFLAGS"
32442     LDFLAGS="-pg $LDFLAGS"
32443 fi
32444
32445 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32446 # This is a gcc-specific feature
32447 if test "$enable_gcov" = 'yes'; then
32448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32449 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32450 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32451   $as_echo_n "(cached) " >&6
32452 else
32453   ac_check_lib_save_LIBS=$LIBS
32454 LIBS="-lgcov  $LIBS"
32455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32456 /* end confdefs.h.  */
32457
32458 /* Override any GCC internal prototype to avoid an error.
32459    Use char because int might match the return type of a GCC
32460    builtin and then its argument prototype would still apply.  */
32461 #ifdef __cplusplus
32462 extern "C"
32463 #endif
32464 char _gcov_init ();
32465 int
32466 main ()
32467 {
32468 return _gcov_init ();
32469   ;
32470   return 0;
32471 }
32472 _ACEOF
32473 if ac_fn_c_try_link "$LINENO"; then :
32474   ac_cv_lib_gcov__gcov_init=yes
32475 else
32476   ac_cv_lib_gcov__gcov_init=no
32477 fi
32478 rm -f core conftest.err conftest.$ac_objext \
32479     conftest$ac_exeext conftest.$ac_ext
32480 LIBS=$ac_check_lib_save_LIBS
32481 fi
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32483 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32484 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32485   cat >>confdefs.h <<_ACEOF
32486 #define HAVE_LIBGCOV 1
32487 _ACEOF
32488
32489   LIBS="-lgcov $LIBS"
32490
32491 fi
32492
32493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32494 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32495 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32496   $as_echo_n "(cached) " >&6
32497 else
32498   ac_check_lib_save_LIBS=$LIBS
32499 LIBS="-lgcov  $LIBS"
32500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32501 /* end confdefs.h.  */
32502
32503 /* Override any GCC internal prototype to avoid an error.
32504    Use char because int might match the return type of a GCC
32505    builtin and then its argument prototype would still apply.  */
32506 #ifdef __cplusplus
32507 extern "C"
32508 #endif
32509 char __gcov_init ();
32510 int
32511 main ()
32512 {
32513 return __gcov_init ();
32514   ;
32515   return 0;
32516 }
32517 _ACEOF
32518 if ac_fn_c_try_link "$LINENO"; then :
32519   ac_cv_lib_gcov___gcov_init=yes
32520 else
32521   ac_cv_lib_gcov___gcov_init=no
32522 fi
32523 rm -f core conftest.err conftest.$ac_objext \
32524     conftest$ac_exeext conftest.$ac_ext
32525 LIBS=$ac_check_lib_save_LIBS
32526 fi
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32528 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32529 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32530   cat >>confdefs.h <<_ACEOF
32531 #define HAVE_LIBGCOV 1
32532 _ACEOF
32533
32534   LIBS="-lgcov $LIBS"
32535
32536 fi
32537
32538     case "$target_os" in
32539         darwin*)
32540             OSX_GCOV_LDFLAG="-Wl,-single_module"
32541         ;;
32542         *)
32543             OSX_GCOV_LDFLAG=""
32544         ;;
32545     esac
32546
32547     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
32548     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
32549     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32550 fi
32551
32552 #
32553 # Build library dependency list for libMagickCore
32554 #
32555
32556 MAGICK_LIBLTDL='' # Libltdl for build
32557 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
32558 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
32559 if test "$with_ltdl" != 'no'
32560 then
32561   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32562     MAGICK_API_LIBLTDL='-lltdl'
32563   fi
32564   MAGICK_LIBLTDL=${LIBLTDL}
32565   MAGICK_LTDLDEPS=${LTDLDEPS}
32566 fi
32567
32568
32569
32570 if test "$with_modules" != 'no'; then
32571     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"
32572 else
32573     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"
32574 fi
32575
32576
32577 #
32578 # Remove extraneous spaces from output variables (asthetic)
32579 #
32580 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
32581 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
32582 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
32583 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
32584
32585 CC=`echo $CC | sed -e 's/  */ /g'`
32586 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
32587 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
32588 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
32589 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32590 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
32591 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
32592 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32593 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
32594 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32595
32596 # Pass only user-provided LIBS as "global" libraries
32597 LIBS=$USER_LIBS
32598
32599 #AC_SUBST(CPPFLAGS)
32600
32601 #AC_SUBST(LDFLAGS)
32602 #AC_SUBST(X_PRE_LIBS)
32603 #AC_SUBST(X_LIBS)
32604 #AC_SUBST(X_EXTRA_LIBS)
32605
32606 MAGICK_CFLAGS=$CFLAGS
32607 MAGICK_CXXFLAGS="$CXXFLAGS"
32608 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
32609 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
32610 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32611 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621 # Set configured scripts to executable.
32622 ac_config_commands="$ac_config_commands default"
32623
32624 ac_config_commands="$ac_config_commands MagickCore-config.in"
32625
32626 ac_config_commands="$ac_config_commands Magick-config.in"
32627
32628 ac_config_commands="$ac_config_commands MagickWand-config.in"
32629
32630 ac_config_commands="$ac_config_commands Wand-config.in"
32631
32632 ac_config_commands="$ac_config_commands Magick++-config.in"
32633
32634 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32635
32636
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32638 $as_echo "-------------------------------------------------------------" >&6; }
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32640 $as_echo "Update ImageMagick configuration" >&6; }
32641 cat >confcache <<\_ACEOF
32642 # This file is a shell script that caches the results of configure
32643 # tests run on this system so they can be shared between configure
32644 # scripts and configure runs, see configure's option --config-cache.
32645 # It is not useful on other systems.  If it contains results you don't
32646 # want to keep, you may remove or edit it.
32647 #
32648 # config.status only pays attention to the cache file if you give it
32649 # the --recheck option to rerun configure.
32650 #
32651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32653 # following values.
32654
32655 _ACEOF
32656
32657 # The following way of writing the cache mishandles newlines in values,
32658 # but we know of no workaround that is simple, portable, and efficient.
32659 # So, we kill variables containing newlines.
32660 # Ultrix sh set writes to stderr and can't be redirected directly,
32661 # and sets the high bit in the cache file unless we assign to the vars.
32662 (
32663   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32664     eval ac_val=\$$ac_var
32665     case $ac_val in #(
32666     *${as_nl}*)
32667       case $ac_var in #(
32668       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32670       esac
32671       case $ac_var in #(
32672       _ | IFS | as_nl) ;; #(
32673       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32674       *) { eval $ac_var=; unset $ac_var;} ;;
32675       esac ;;
32676     esac
32677   done
32678
32679   (set) 2>&1 |
32680     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32681     *${as_nl}ac_space=\ *)
32682       # `set' does not quote correctly, so add quotes: double-quote
32683       # substitution turns \\\\ into \\, and sed turns \\ into \.
32684       sed -n \
32685         "s/'/'\\\\''/g;
32686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32687       ;; #(
32688     *)
32689       # `set' quotes correctly as required by POSIX, so do not add quotes.
32690       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32691       ;;
32692     esac |
32693     sort
32694 ) |
32695   sed '
32696      /^ac_cv_env_/b end
32697      t clear
32698      :clear
32699      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32700      t end
32701      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32702      :end' >>confcache
32703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32704   if test -w "$cache_file"; then
32705     test "x$cache_file" != "x/dev/null" &&
32706       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32707 $as_echo "$as_me: updating cache $cache_file" >&6;}
32708     cat confcache >$cache_file
32709   else
32710     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32712   fi
32713 fi
32714 rm -f confcache
32715
32716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32717 # Let make expand exec_prefix.
32718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32719
32720 DEFS=-DHAVE_CONFIG_H
32721
32722 ac_libobjs=
32723 ac_ltlibobjs=
32724 U=
32725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32726   # 1. Remove the extension, and $U if already installed.
32727   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32728   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32729   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32730   #    will be set to the directory where LIBOBJS objects are built.
32731   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32732   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32733 done
32734 LIBOBJS=$ac_libobjs
32735
32736 LTLIBOBJS=$ac_ltlibobjs
32737
32738
32739  if test -n "$EXEEXT"; then
32740   am__EXEEXT_TRUE=
32741   am__EXEEXT_FALSE='#'
32742 else
32743   am__EXEEXT_TRUE='#'
32744   am__EXEEXT_FALSE=
32745 fi
32746
32747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32748   as_fn_error $? "conditional \"AMDEP\" was never defined.
32749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32750 fi
32751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32752   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32754 fi
32755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32756   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32758 fi
32759 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32760   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32762 fi
32763 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32764   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32766 fi
32767 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32768   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32770 fi
32771 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32772   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32774 fi
32775 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32776   as_fn_error $? "conditional \"USING_CL\" was never defined.
32777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32778 fi
32779 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32780   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32782 fi
32783 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32784   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32786 fi
32787 LT_CONFIG_H=config/config.h
32788
32789     _ltdl_libobjs=
32790     _ltdl_ltlibobjs=
32791     if test -n "$_LT_LIBOBJS"; then
32792       # Remove the extension.
32793       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32794       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32795         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32796         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32797       done
32798     fi
32799     ltdl_LIBOBJS=$_ltdl_libobjs
32800
32801     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32802
32803
32804 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32805   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32807 fi
32808 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32809   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32811 fi
32812 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32813   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32815 fi
32816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32817   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32819 fi
32820
32821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32822   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32824 fi
32825 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32826   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32828 fi
32829 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32830   as_fn_error $? "conditional \"HasUMEM\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832 fi
32833 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32834   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836 fi
32837 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32838   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840 fi
32841 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32842   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844 fi
32845 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32846   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32848 fi
32849 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32850   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32852 fi
32853 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32854   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32856 fi
32857 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32858   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32860 fi
32861 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32862   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32864 fi
32865 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32866   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32868 fi
32869 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32870   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32872 fi
32873 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32874   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32876 fi
32877 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32878   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32880 fi
32881 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32882   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32884 fi
32885 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32886   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32888 fi
32889 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32890   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32892 fi
32893 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32894   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32896 fi
32897 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32898   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32900 fi
32901 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32902   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32904 fi
32905 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32906   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32908 fi
32909 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32910   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32912 fi
32913 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32914   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32916 fi
32917 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32918   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32920 fi
32921 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32922   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32924 fi
32925 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32926   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
32927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32928 fi
32929 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32930   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
32931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32932 fi
32933 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32934   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
32935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32936 fi
32937 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32938   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
32939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32940 fi
32941 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32942   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
32943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32944 fi
32945 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32946   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
32947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32948 fi
32949 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32950   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32952 fi
32953
32954 : ${CONFIG_STATUS=./config.status}
32955 ac_write_fail=0
32956 ac_clean_files_save=$ac_clean_files
32957 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32959 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32960 as_write_fail=0
32961 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32962 #! $SHELL
32963 # Generated by $as_me.
32964 # Run this file to recreate the current configuration.
32965 # Compiler output produced by configure, useful for debugging
32966 # configure, is in config.log if it exists.
32967
32968 debug=false
32969 ac_cs_recheck=false
32970 ac_cs_silent=false
32971
32972 SHELL=\${CONFIG_SHELL-$SHELL}
32973 export SHELL
32974 _ASEOF
32975 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32976 ## -------------------- ##
32977 ## M4sh Initialization. ##
32978 ## -------------------- ##
32979
32980 # Be more Bourne compatible
32981 DUALCASE=1; export DUALCASE # for MKS sh
32982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32983   emulate sh
32984   NULLCMD=:
32985   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32986   # is contrary to our usage.  Disable this feature.
32987   alias -g '${1+"$@"}'='"$@"'
32988   setopt NO_GLOB_SUBST
32989 else
32990   case `(set -o) 2>/dev/null` in #(
32991   *posix*) :
32992     set -o posix ;; #(
32993   *) :
32994      ;;
32995 esac
32996 fi
32997
32998
32999 as_nl='
33000 '
33001 export as_nl
33002 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33003 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33006 # Prefer a ksh shell builtin over an external printf program on Solaris,
33007 # but without wasting forks for bash or zsh.
33008 if test -z "$BASH_VERSION$ZSH_VERSION" \
33009     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33010   as_echo='print -r --'
33011   as_echo_n='print -rn --'
33012 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33013   as_echo='printf %s\n'
33014   as_echo_n='printf %s'
33015 else
33016   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33017     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33018     as_echo_n='/usr/ucb/echo -n'
33019   else
33020     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33021     as_echo_n_body='eval
33022       arg=$1;
33023       case $arg in #(
33024       *"$as_nl"*)
33025         expr "X$arg" : "X\\(.*\\)$as_nl";
33026         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33027       esac;
33028       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33029     '
33030     export as_echo_n_body
33031     as_echo_n='sh -c $as_echo_n_body as_echo'
33032   fi
33033   export as_echo_body
33034   as_echo='sh -c $as_echo_body as_echo'
33035 fi
33036
33037 # The user is always right.
33038 if test "${PATH_SEPARATOR+set}" != set; then
33039   PATH_SEPARATOR=:
33040   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33041     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33042       PATH_SEPARATOR=';'
33043   }
33044 fi
33045
33046
33047 # IFS
33048 # We need space, tab and new line, in precisely that order.  Quoting is
33049 # there to prevent editors from complaining about space-tab.
33050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33051 # splitting by setting IFS to empty value.)
33052 IFS=" ""        $as_nl"
33053
33054 # Find who we are.  Look in the path if we contain no directory separator.
33055 case $0 in #((
33056   *[\\/]* ) as_myself=$0 ;;
33057   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058 for as_dir in $PATH
33059 do
33060   IFS=$as_save_IFS
33061   test -z "$as_dir" && as_dir=.
33062     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33063   done
33064 IFS=$as_save_IFS
33065
33066      ;;
33067 esac
33068 # We did not find ourselves, most probably we were run as `sh COMMAND'
33069 # in which case we are not to be found in the path.
33070 if test "x$as_myself" = x; then
33071   as_myself=$0
33072 fi
33073 if test ! -f "$as_myself"; then
33074   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33075   exit 1
33076 fi
33077
33078 # Unset variables that we do not need and which cause bugs (e.g. in
33079 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33080 # suppresses any "Segmentation fault" message there.  '((' could
33081 # trigger a bug in pdksh 5.2.14.
33082 for as_var in BASH_ENV ENV MAIL MAILPATH
33083 do eval test x\${$as_var+set} = xset \
33084   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33085 done
33086 PS1='$ '
33087 PS2='> '
33088 PS4='+ '
33089
33090 # NLS nuisances.
33091 LC_ALL=C
33092 export LC_ALL
33093 LANGUAGE=C
33094 export LANGUAGE
33095
33096 # CDPATH.
33097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33098
33099
33100 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33101 # ----------------------------------------
33102 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33103 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33104 # script with STATUS, using 1 if that was 0.
33105 as_fn_error ()
33106 {
33107   as_status=$1; test $as_status -eq 0 && as_status=1
33108   if test "$4"; then
33109     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33110     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33111   fi
33112   $as_echo "$as_me: error: $2" >&2
33113   as_fn_exit $as_status
33114 } # as_fn_error
33115
33116
33117 # as_fn_set_status STATUS
33118 # -----------------------
33119 # Set $? to STATUS, without forking.
33120 as_fn_set_status ()
33121 {
33122   return $1
33123 } # as_fn_set_status
33124
33125 # as_fn_exit STATUS
33126 # -----------------
33127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33128 as_fn_exit ()
33129 {
33130   set +e
33131   as_fn_set_status $1
33132   exit $1
33133 } # as_fn_exit
33134
33135 # as_fn_unset VAR
33136 # ---------------
33137 # Portably unset VAR.
33138 as_fn_unset ()
33139 {
33140   { eval $1=; unset $1;}
33141 }
33142 as_unset=as_fn_unset
33143 # as_fn_append VAR VALUE
33144 # ----------------------
33145 # Append the text in VALUE to the end of the definition contained in VAR. Take
33146 # advantage of any shell optimizations that allow amortized linear growth over
33147 # repeated appends, instead of the typical quadratic growth present in naive
33148 # implementations.
33149 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33150   eval 'as_fn_append ()
33151   {
33152     eval $1+=\$2
33153   }'
33154 else
33155   as_fn_append ()
33156   {
33157     eval $1=\$$1\$2
33158   }
33159 fi # as_fn_append
33160
33161 # as_fn_arith ARG...
33162 # ------------------
33163 # Perform arithmetic evaluation on the ARGs, and store the result in the
33164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33165 # must be portable across $(()) and expr.
33166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33167   eval 'as_fn_arith ()
33168   {
33169     as_val=$(( $* ))
33170   }'
33171 else
33172   as_fn_arith ()
33173   {
33174     as_val=`expr "$@" || test $? -eq 1`
33175   }
33176 fi # as_fn_arith
33177
33178
33179 if expr a : '\(a\)' >/dev/null 2>&1 &&
33180    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33181   as_expr=expr
33182 else
33183   as_expr=false
33184 fi
33185
33186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33187   as_basename=basename
33188 else
33189   as_basename=false
33190 fi
33191
33192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33193   as_dirname=dirname
33194 else
33195   as_dirname=false
33196 fi
33197
33198 as_me=`$as_basename -- "$0" ||
33199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33200          X"$0" : 'X\(//\)$' \| \
33201          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33202 $as_echo X/"$0" |
33203     sed '/^.*\/\([^/][^/]*\)\/*$/{
33204             s//\1/
33205             q
33206           }
33207           /^X\/\(\/\/\)$/{
33208             s//\1/
33209             q
33210           }
33211           /^X\/\(\/\).*/{
33212             s//\1/
33213             q
33214           }
33215           s/.*/./; q'`
33216
33217 # Avoid depending upon Character Ranges.
33218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33221 as_cr_digits='0123456789'
33222 as_cr_alnum=$as_cr_Letters$as_cr_digits
33223
33224 ECHO_C= ECHO_N= ECHO_T=
33225 case `echo -n x` in #(((((
33226 -n*)
33227   case `echo 'xy\c'` in
33228   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33229   xy)  ECHO_C='\c';;
33230   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33231        ECHO_T=' ';;
33232   esac;;
33233 *)
33234   ECHO_N='-n';;
33235 esac
33236
33237 rm -f conf$$ conf$$.exe conf$$.file
33238 if test -d conf$$.dir; then
33239   rm -f conf$$.dir/conf$$.file
33240 else
33241   rm -f conf$$.dir
33242   mkdir conf$$.dir 2>/dev/null
33243 fi
33244 if (echo >conf$$.file) 2>/dev/null; then
33245   if ln -s conf$$.file conf$$ 2>/dev/null; then
33246     as_ln_s='ln -s'
33247     # ... but there are two gotchas:
33248     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33249     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33250     # In both cases, we have to default to `cp -p'.
33251     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33252       as_ln_s='cp -p'
33253   elif ln conf$$.file conf$$ 2>/dev/null; then
33254     as_ln_s=ln
33255   else
33256     as_ln_s='cp -p'
33257   fi
33258 else
33259   as_ln_s='cp -p'
33260 fi
33261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33262 rmdir conf$$.dir 2>/dev/null
33263
33264
33265 # as_fn_mkdir_p
33266 # -------------
33267 # Create "$as_dir" as a directory, including parents if necessary.
33268 as_fn_mkdir_p ()
33269 {
33270
33271   case $as_dir in #(
33272   -*) as_dir=./$as_dir;;
33273   esac
33274   test -d "$as_dir" || eval $as_mkdir_p || {
33275     as_dirs=
33276     while :; do
33277       case $as_dir in #(
33278       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33279       *) as_qdir=$as_dir;;
33280       esac
33281       as_dirs="'$as_qdir' $as_dirs"
33282       as_dir=`$as_dirname -- "$as_dir" ||
33283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33284          X"$as_dir" : 'X\(//\)[^/]' \| \
33285          X"$as_dir" : 'X\(//\)$' \| \
33286          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33287 $as_echo X"$as_dir" |
33288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33289             s//\1/
33290             q
33291           }
33292           /^X\(\/\/\)[^/].*/{
33293             s//\1/
33294             q
33295           }
33296           /^X\(\/\/\)$/{
33297             s//\1/
33298             q
33299           }
33300           /^X\(\/\).*/{
33301             s//\1/
33302             q
33303           }
33304           s/.*/./; q'`
33305       test -d "$as_dir" && break
33306     done
33307     test -z "$as_dirs" || eval "mkdir $as_dirs"
33308   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33309
33310
33311 } # as_fn_mkdir_p
33312 if mkdir -p . 2>/dev/null; then
33313   as_mkdir_p='mkdir -p "$as_dir"'
33314 else
33315   test -d ./-p && rmdir ./-p
33316   as_mkdir_p=false
33317 fi
33318
33319 if test -x / >/dev/null 2>&1; then
33320   as_test_x='test -x'
33321 else
33322   if ls -dL / >/dev/null 2>&1; then
33323     as_ls_L_option=L
33324   else
33325     as_ls_L_option=
33326   fi
33327   as_test_x='
33328     eval sh -c '\''
33329       if test -d "$1"; then
33330         test -d "$1/.";
33331       else
33332         case $1 in #(
33333         -*)set "./$1";;
33334         esac;
33335         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33336         ???[sx]*):;;*)false;;esac;fi
33337     '\'' sh
33338   '
33339 fi
33340 as_executable_p=$as_test_x
33341
33342 # Sed expression to map a string onto a valid CPP name.
33343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33344
33345 # Sed expression to map a string onto a valid variable name.
33346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33347
33348
33349 exec 6>&1
33350 ## ----------------------------------- ##
33351 ## Main body of $CONFIG_STATUS script. ##
33352 ## ----------------------------------- ##
33353 _ASEOF
33354 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33355
33356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33357 # Save the log message, to keep $0 and so on meaningful, and to
33358 # report actual input values of CONFIG_FILES etc. instead of their
33359 # values after options handling.
33360 ac_log="
33361 This file was extended by ImageMagick $as_me 6.6.4, which was
33362 generated by GNU Autoconf 2.66.  Invocation command line was
33363
33364   CONFIG_FILES    = $CONFIG_FILES
33365   CONFIG_HEADERS  = $CONFIG_HEADERS
33366   CONFIG_LINKS    = $CONFIG_LINKS
33367   CONFIG_COMMANDS = $CONFIG_COMMANDS
33368   $ $0 $@
33369
33370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33371 "
33372
33373 _ACEOF
33374
33375 case $ac_config_files in *"
33376 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33377 esac
33378
33379 case $ac_config_headers in *"
33380 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33381 esac
33382
33383
33384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33385 # Files that config.status was made for.
33386 config_files="$ac_config_files"
33387 config_headers="$ac_config_headers"
33388 config_commands="$ac_config_commands"
33389
33390 _ACEOF
33391
33392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33393 ac_cs_usage="\
33394 \`$as_me' instantiates files and other configuration actions
33395 from templates according to the current configuration.  Unless the files
33396 and actions are specified as TAGs, all are instantiated by default.
33397
33398 Usage: $0 [OPTION]... [TAG]...
33399
33400   -h, --help       print this help, then exit
33401   -V, --version    print version number and configuration settings, then exit
33402       --config     print configuration, then exit
33403   -q, --quiet, --silent
33404                    do not print progress messages
33405   -d, --debug      don't remove temporary files
33406       --recheck    update $as_me by reconfiguring in the same conditions
33407       --file=FILE[:TEMPLATE]
33408                    instantiate the configuration file FILE
33409       --header=FILE[:TEMPLATE]
33410                    instantiate the configuration header FILE
33411
33412 Configuration files:
33413 $config_files
33414
33415 Configuration headers:
33416 $config_headers
33417
33418 Configuration commands:
33419 $config_commands
33420
33421 Report bugs to <http://www.imagemagick.org>."
33422
33423 _ACEOF
33424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33425 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33426 ac_cs_version="\\
33427 ImageMagick config.status 6.6.4
33428 configured by $0, generated by GNU Autoconf 2.66,
33429   with options \\"\$ac_cs_config\\"
33430
33431 Copyright (C) 2010 Free Software Foundation, Inc.
33432 This config.status script is free software; the Free Software Foundation
33433 gives unlimited permission to copy, distribute and modify it."
33434
33435 ac_pwd='$ac_pwd'
33436 srcdir='$srcdir'
33437 INSTALL='$INSTALL'
33438 MKDIR_P='$MKDIR_P'
33439 AWK='$AWK'
33440 test -n "\$AWK" || AWK=awk
33441 _ACEOF
33442
33443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33444 # The default lists apply if the user does not specify any file.
33445 ac_need_defaults=:
33446 while test $# != 0
33447 do
33448   case $1 in
33449   --*=*)
33450     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33451     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33452     ac_shift=:
33453     ;;
33454   *)
33455     ac_option=$1
33456     ac_optarg=$2
33457     ac_shift=shift
33458     ;;
33459   esac
33460
33461   case $ac_option in
33462   # Handling of the options.
33463   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33464     ac_cs_recheck=: ;;
33465   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33466     $as_echo "$ac_cs_version"; exit ;;
33467   --config | --confi | --conf | --con | --co | --c )
33468     $as_echo "$ac_cs_config"; exit ;;
33469   --debug | --debu | --deb | --de | --d | -d )
33470     debug=: ;;
33471   --file | --fil | --fi | --f )
33472     $ac_shift
33473     case $ac_optarg in
33474     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33475     esac
33476     as_fn_append CONFIG_FILES " '$ac_optarg'"
33477     ac_need_defaults=false;;
33478   --header | --heade | --head | --hea )
33479     $ac_shift
33480     case $ac_optarg in
33481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33482     esac
33483     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33484     ac_need_defaults=false;;
33485   --he | --h)
33486     # Conflict between --help and --header
33487     as_fn_error $? "ambiguous option: \`$1'
33488 Try \`$0 --help' for more information.";;
33489   --help | --hel | -h )
33490     $as_echo "$ac_cs_usage"; exit ;;
33491   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33492   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33493     ac_cs_silent=: ;;
33494
33495   # This is an error.
33496   -*) as_fn_error $? "unrecognized option: \`$1'
33497 Try \`$0 --help' for more information." ;;
33498
33499   *) as_fn_append ac_config_targets " $1"
33500      ac_need_defaults=false ;;
33501
33502   esac
33503   shift
33504 done
33505
33506 ac_configure_extra_args=
33507
33508 if $ac_cs_silent; then
33509   exec 6>/dev/null
33510   ac_configure_extra_args="$ac_configure_extra_args --silent"
33511 fi
33512
33513 _ACEOF
33514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33515 if \$ac_cs_recheck; then
33516   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33517   shift
33518   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33519   CONFIG_SHELL='$SHELL'
33520   export CONFIG_SHELL
33521   exec "\$@"
33522 fi
33523
33524 _ACEOF
33525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33526 exec 5>>config.log
33527 {
33528   echo
33529   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33530 ## Running $as_me. ##
33531 _ASBOX
33532   $as_echo "$ac_log"
33533 } >&5
33534
33535 _ACEOF
33536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33537 #
33538 # INIT-COMMANDS
33539 #
33540 PACKAGE="$PACKAGE"
33541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33542
33543
33544 # The HP-UX ksh and POSIX shell print the target directory to stdout
33545 # if CDPATH is set.
33546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33547
33548 sed_quote_subst='$sed_quote_subst'
33549 double_quote_subst='$double_quote_subst'
33550 delay_variable_subst='$delay_variable_subst'
33551 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33552 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33553 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33554 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33555 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33556 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33557 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33558 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33561 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33563 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33568 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33569 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33570 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33571 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33572 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33573 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33574 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33575 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33576 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33577 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33578 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33579 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33580 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33581 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33586 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33587 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33588 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33589 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33590 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33591 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33592 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33593 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33594 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33595 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33596 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33597 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33598 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33599 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33600 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33601 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"`'
33602 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33603 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33604 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33605 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33606 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33607 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33608 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33609 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33610 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33611 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33612 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33613 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33614 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33615 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33616 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33617 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33618 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33619 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33620 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33621 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33622 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33623 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33624 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33625 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33626 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33627 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33628 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33629 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33630 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33631 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33632 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33633 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33634 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33635 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33636 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33637 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33638 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33639 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33640 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33641 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33642 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33643 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33644 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33645 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33646 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33647 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33648 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33649 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33650 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33651 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33652 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33653 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33654 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33655 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33656 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33657 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33658 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33659 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33660 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33661 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33662 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33663 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33664 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33665 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33666 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33667 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33668 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33669 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33670 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33671 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33672 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33673 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33674 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33675 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33676 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33677 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33678 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33679 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33680 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33681 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33682 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33683 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33684 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33685 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33686 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33687 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33688 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33689 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33690 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33691 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33692 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33693 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33694 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33695 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33696 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33697 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33698 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33699 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33700 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33701 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33702 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33703 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33704 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33705 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33706 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33707 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33708 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33709 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33710 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33711 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33712 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33713 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33714 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33715 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33716 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33717 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33718 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33719 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33720 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33721 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33722 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33723 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33724 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33725 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33726 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33727 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33728
33729 LTCC='$LTCC'
33730 LTCFLAGS='$LTCFLAGS'
33731 compiler='$compiler_DEFAULT'
33732
33733 # A function that is used when there is no print builtin or printf.
33734 func_fallback_echo ()
33735 {
33736   eval 'cat <<_LTECHO_EOF
33737 \$1
33738 _LTECHO_EOF'
33739 }
33740
33741 # Quote evaled strings.
33742 for var in SED \
33743 GREP \
33744 EGREP \
33745 FGREP \
33746 SHELL \
33747 ECHO \
33748 LD \
33749 AS \
33750 DLLTOOL \
33751 OBJDUMP \
33752 NM \
33753 LN_S \
33754 lt_SP2NL \
33755 lt_NL2SP \
33756 reload_flag \
33757 deplibs_check_method \
33758 file_magic_cmd \
33759 AR \
33760 AR_FLAGS \
33761 STRIP \
33762 RANLIB \
33763 CC \
33764 CFLAGS \
33765 compiler \
33766 lt_cv_sys_global_symbol_pipe \
33767 lt_cv_sys_global_symbol_to_cdecl \
33768 lt_cv_sys_global_symbol_to_c_name_address \
33769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33770 lt_prog_compiler_no_builtin_flag \
33771 lt_prog_compiler_wl \
33772 lt_prog_compiler_pic \
33773 lt_prog_compiler_static \
33774 lt_cv_prog_compiler_c_o \
33775 need_locks \
33776 DSYMUTIL \
33777 NMEDIT \
33778 LIPO \
33779 OTOOL \
33780 OTOOL64 \
33781 shrext_cmds \
33782 export_dynamic_flag_spec \
33783 whole_archive_flag_spec \
33784 compiler_needs_object \
33785 with_gnu_ld \
33786 allow_undefined_flag \
33787 no_undefined_flag \
33788 hardcode_libdir_flag_spec \
33789 hardcode_libdir_flag_spec_ld \
33790 hardcode_libdir_separator \
33791 fix_srcfile_path \
33792 exclude_expsyms \
33793 include_expsyms \
33794 file_list_spec \
33795 variables_saved_for_relink \
33796 libname_spec \
33797 library_names_spec \
33798 soname_spec \
33799 install_override_mode \
33800 finish_eval \
33801 old_striplib \
33802 striplib \
33803 compiler_lib_search_dirs \
33804 predep_objects \
33805 postdep_objects \
33806 predeps \
33807 postdeps \
33808 compiler_lib_search_path \
33809 LD_CXX \
33810 reload_flag_CXX \
33811 compiler_CXX \
33812 lt_prog_compiler_no_builtin_flag_CXX \
33813 lt_prog_compiler_wl_CXX \
33814 lt_prog_compiler_pic_CXX \
33815 lt_prog_compiler_static_CXX \
33816 lt_cv_prog_compiler_c_o_CXX \
33817 export_dynamic_flag_spec_CXX \
33818 whole_archive_flag_spec_CXX \
33819 compiler_needs_object_CXX \
33820 with_gnu_ld_CXX \
33821 allow_undefined_flag_CXX \
33822 no_undefined_flag_CXX \
33823 hardcode_libdir_flag_spec_CXX \
33824 hardcode_libdir_flag_spec_ld_CXX \
33825 hardcode_libdir_separator_CXX \
33826 fix_srcfile_path_CXX \
33827 exclude_expsyms_CXX \
33828 include_expsyms_CXX \
33829 file_list_spec_CXX \
33830 compiler_lib_search_dirs_CXX \
33831 predep_objects_CXX \
33832 postdep_objects_CXX \
33833 predeps_CXX \
33834 postdeps_CXX \
33835 compiler_lib_search_path_CXX; do
33836     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33837     *[\\\\\\\`\\"\\\$]*)
33838       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33839       ;;
33840     *)
33841       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33842       ;;
33843     esac
33844 done
33845
33846 # Double-quote double-evaled strings.
33847 for var in reload_cmds \
33848 old_postinstall_cmds \
33849 old_postuninstall_cmds \
33850 old_archive_cmds \
33851 extract_expsyms_cmds \
33852 old_archive_from_new_cmds \
33853 old_archive_from_expsyms_cmds \
33854 archive_cmds \
33855 archive_expsym_cmds \
33856 module_cmds \
33857 module_expsym_cmds \
33858 export_symbols_cmds \
33859 prelink_cmds \
33860 postinstall_cmds \
33861 postuninstall_cmds \
33862 finish_cmds \
33863 sys_lib_search_path_spec \
33864 sys_lib_dlsearch_path_spec \
33865 reload_cmds_CXX \
33866 old_archive_cmds_CXX \
33867 old_archive_from_new_cmds_CXX \
33868 old_archive_from_expsyms_cmds_CXX \
33869 archive_cmds_CXX \
33870 archive_expsym_cmds_CXX \
33871 module_cmds_CXX \
33872 module_expsym_cmds_CXX \
33873 export_symbols_cmds_CXX \
33874 prelink_cmds_CXX; do
33875     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33876     *[\\\\\\\`\\"\\\$]*)
33877       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33878       ;;
33879     *)
33880       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33881       ;;
33882     esac
33883 done
33884
33885 ac_aux_dir='$ac_aux_dir'
33886 xsi_shell='$xsi_shell'
33887 lt_shell_append='$lt_shell_append'
33888
33889 # See if we are running on zsh, and set the options which allow our
33890 # commands through without removal of \ escapes INIT.
33891 if test -n "\${ZSH_VERSION+set}" ; then
33892    setopt NO_GLOB_SUBST
33893 fi
33894
33895
33896     PACKAGE='$PACKAGE'
33897     VERSION='$VERSION'
33898     TIMESTAMP='$TIMESTAMP'
33899     RM='$RM'
33900     ofile='$ofile'
33901
33902
33903
33904
33905
33906
33907 _ACEOF
33908
33909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33910
33911 # Handling of arguments.
33912 for ac_config_target in $ac_config_targets
33913 do
33914   case $ac_config_target in
33915     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33916     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33917     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33918     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33919     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33920     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33921     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33922     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33923     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33924     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33925     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33926     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33927     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33928     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33929     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33930     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33931     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33932     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33933     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33934     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33935     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33936     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33937     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33938     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33939     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33940     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33941     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33942     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33943     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33944     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33945     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33946     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33947     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33948     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33949     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33950     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33951     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33952     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33953     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33954     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33955     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33956     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33957     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33958     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33959     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33960     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33961     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33962     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33963     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33964     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33965
33966   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33967   esac
33968 done
33969
33970
33971 # If the user did not use the arguments to specify the items to instantiate,
33972 # then the envvar interface is used.  Set only those that are not.
33973 # We use the long form for the default assignment because of an extremely
33974 # bizarre bug on SunOS 4.1.3.
33975 if $ac_need_defaults; then
33976   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33977   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33978   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33979 fi
33980
33981 # Have a temporary directory for convenience.  Make it in the build tree
33982 # simply because there is no reason against having it here, and in addition,
33983 # creating and moving files from /tmp can sometimes cause problems.
33984 # Hook for its removal unless debugging.
33985 # Note that there is a small window in which the directory will not be cleaned:
33986 # after its creation but before its name has been assigned to `$tmp'.
33987 $debug ||
33988 {
33989   tmp=
33990   trap 'exit_status=$?
33991   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33992 ' 0
33993   trap 'as_fn_exit 1' 1 2 13 15
33994 }
33995 # Create a (secure) tmp directory for tmp files.
33996
33997 {
33998   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33999   test -n "$tmp" && test -d "$tmp"
34000 }  ||
34001 {
34002   tmp=./conf$$-$RANDOM
34003   (umask 077 && mkdir "$tmp")
34004 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34005
34006 # Set up the scripts for CONFIG_FILES section.
34007 # No need to generate them if there are no CONFIG_FILES.
34008 # This happens for instance with `./config.status config.h'.
34009 if test -n "$CONFIG_FILES"; then
34010
34011
34012 ac_cr=`echo X | tr X '\015'`
34013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34014 # But we know of no other shell where ac_cr would be empty at this
34015 # point, so we can use a bashism as a fallback.
34016 if test "x$ac_cr" = x; then
34017   eval ac_cr=\$\'\\r\'
34018 fi
34019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34021   ac_cs_awk_cr='\\r'
34022 else
34023   ac_cs_awk_cr=$ac_cr
34024 fi
34025
34026 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34027 _ACEOF
34028
34029
34030 {
34031   echo "cat >conf$$subs.awk <<_ACEOF" &&
34032   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34033   echo "_ACEOF"
34034 } >conf$$subs.sh ||
34035   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34037 ac_delim='%!_!# '
34038 for ac_last_try in false false false false false :; do
34039   . ./conf$$subs.sh ||
34040     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34041
34042   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34043   if test $ac_delim_n = $ac_delim_num; then
34044     break
34045   elif $ac_last_try; then
34046     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34047   else
34048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34049   fi
34050 done
34051 rm -f conf$$subs.sh
34052
34053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34054 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34055 _ACEOF
34056 sed -n '
34057 h
34058 s/^/S["/; s/!.*/"]=/
34059 p
34060 g
34061 s/^[^!]*!//
34062 :repl
34063 t repl
34064 s/'"$ac_delim"'$//
34065 t delim
34066 :nl
34067 h
34068 s/\(.\{148\}\)..*/\1/
34069 t more1
34070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34071 p
34072 n
34073 b repl
34074 :more1
34075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34076 p
34077 g
34078 s/.\{148\}//
34079 t nl
34080 :delim
34081 h
34082 s/\(.\{148\}\)..*/\1/
34083 t more2
34084 s/["\\]/\\&/g; s/^/"/; s/$/"/
34085 p
34086 b
34087 :more2
34088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34089 p
34090 g
34091 s/.\{148\}//
34092 t delim
34093 ' <conf$$subs.awk | sed '
34094 /^[^""]/{
34095   N
34096   s/\n//
34097 }
34098 ' >>$CONFIG_STATUS || ac_write_fail=1
34099 rm -f conf$$subs.awk
34100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34101 _ACAWK
34102 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34103   for (key in S) S_is_set[key] = 1
34104   FS = "\a"
34105
34106 }
34107 {
34108   line = $ 0
34109   nfields = split(line, field, "@")
34110   substed = 0
34111   len = length(field[1])
34112   for (i = 2; i < nfields; i++) {
34113     key = field[i]
34114     keylen = length(key)
34115     if (S_is_set[key]) {
34116       value = S[key]
34117       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34118       len += length(value) + length(field[++i])
34119       substed = 1
34120     } else
34121       len += 1 + keylen
34122   }
34123
34124   print line
34125 }
34126
34127 _ACAWK
34128 _ACEOF
34129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34130 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34131   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34132 else
34133   cat
34134 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34135   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34136 _ACEOF
34137
34138 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34139 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34140 # trailing colons and then remove the whole line if VPATH becomes empty
34141 # (actually we leave an empty line to preserve line numbers).
34142 if test "x$srcdir" = x.; then
34143   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34144 h
34145 s///
34146 s/^/:/
34147 s/[      ]*$/:/
34148 s/:\$(srcdir):/:/g
34149 s/:\${srcdir}:/:/g
34150 s/:@srcdir@:/:/g
34151 s/^:*//
34152 s/:*$//
34153 x
34154 s/\(=[   ]*\).*/\1/
34155 G
34156 s/\n//
34157 s/^[^=]*=[       ]*$//
34158 }'
34159 fi
34160
34161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34162 fi # test -n "$CONFIG_FILES"
34163
34164 # Set up the scripts for CONFIG_HEADERS section.
34165 # No need to generate them if there are no CONFIG_HEADERS.
34166 # This happens for instance with `./config.status Makefile'.
34167 if test -n "$CONFIG_HEADERS"; then
34168 cat >"$tmp/defines.awk" <<\_ACAWK ||
34169 BEGIN {
34170 _ACEOF
34171
34172 # Transform confdefs.h into an awk script `defines.awk', embedded as
34173 # here-document in config.status, that substitutes the proper values into
34174 # config.h.in to produce config.h.
34175
34176 # Create a delimiter string that does not exist in confdefs.h, to ease
34177 # handling of long lines.
34178 ac_delim='%!_!# '
34179 for ac_last_try in false false :; do
34180   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34181   if test -z "$ac_t"; then
34182     break
34183   elif $ac_last_try; then
34184     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34185   else
34186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34187   fi
34188 done
34189
34190 # For the awk script, D is an array of macro values keyed by name,
34191 # likewise P contains macro parameters if any.  Preserve backslash
34192 # newline sequences.
34193
34194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34195 sed -n '
34196 s/.\{148\}/&'"$ac_delim"'/g
34197 t rset
34198 :rset
34199 s/^[     ]*#[    ]*define[       ][      ]*/ /
34200 t def
34201 d
34202 :def
34203 s/\\$//
34204 t bsnl
34205 s/["\\]/\\&/g
34206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34207 D["\1"]=" \3"/p
34208 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34209 d
34210 :bsnl
34211 s/["\\]/\\&/g
34212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34213 D["\1"]=" \3\\\\\\n"\\/p
34214 t cont
34215 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34216 t cont
34217 d
34218 :cont
34219 n
34220 s/.\{148\}/&'"$ac_delim"'/g
34221 t clear
34222 :clear
34223 s/\\$//
34224 t bsnlc
34225 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34226 d
34227 :bsnlc
34228 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34229 b cont
34230 ' <confdefs.h | sed '
34231 s/'"$ac_delim"'/"\\\
34232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34233
34234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34235   for (key in D) D_is_set[key] = 1
34236   FS = "\a"
34237 }
34238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34239   line = \$ 0
34240   split(line, arg, " ")
34241   if (arg[1] == "#") {
34242     defundef = arg[2]
34243     mac1 = arg[3]
34244   } else {
34245     defundef = substr(arg[1], 2)
34246     mac1 = arg[2]
34247   }
34248   split(mac1, mac2, "(") #)
34249   macro = mac2[1]
34250   prefix = substr(line, 1, index(line, defundef) - 1)
34251   if (D_is_set[macro]) {
34252     # Preserve the white space surrounding the "#".
34253     print prefix "define", macro P[macro] D[macro]
34254     next
34255   } else {
34256     # Replace #undef with comments.  This is necessary, for example,
34257     # in the case of _POSIX_SOURCE, which is predefined and required
34258     # on some systems where configure will not decide to define it.
34259     if (defundef == "undef") {
34260       print "/*", prefix defundef, macro, "*/"
34261       next
34262     }
34263   }
34264 }
34265 { print }
34266 _ACAWK
34267 _ACEOF
34268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34269   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34270 fi # test -n "$CONFIG_HEADERS"
34271
34272
34273 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34274 shift
34275 for ac_tag
34276 do
34277   case $ac_tag in
34278   :[FHLC]) ac_mode=$ac_tag; continue;;
34279   esac
34280   case $ac_mode$ac_tag in
34281   :[FHL]*:*);;
34282   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34283   :[FH]-) ac_tag=-:-;;
34284   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34285   esac
34286   ac_save_IFS=$IFS
34287   IFS=:
34288   set x $ac_tag
34289   IFS=$ac_save_IFS
34290   shift
34291   ac_file=$1
34292   shift
34293
34294   case $ac_mode in
34295   :L) ac_source=$1;;
34296   :[FH])
34297     ac_file_inputs=
34298     for ac_f
34299     do
34300       case $ac_f in
34301       -) ac_f="$tmp/stdin";;
34302       *) # Look for the file first in the build tree, then in the source tree
34303          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34304          # because $ac_f cannot contain `:'.
34305          test -f "$ac_f" ||
34306            case $ac_f in
34307            [\\/$]*) false;;
34308            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34309            esac ||
34310            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34311       esac
34312       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34313       as_fn_append ac_file_inputs " '$ac_f'"
34314     done
34315
34316     # Let's still pretend it is `configure' which instantiates (i.e., don't
34317     # use $as_me), people would be surprised to read:
34318     #    /* config.h.  Generated by config.status.  */
34319     configure_input='Generated from '`
34320           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34321         `' by configure.'
34322     if test x"$ac_file" != x-; then
34323       configure_input="$ac_file.  $configure_input"
34324       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34325 $as_echo "$as_me: creating $ac_file" >&6;}
34326     fi
34327     # Neutralize special characters interpreted by sed in replacement strings.
34328     case $configure_input in #(
34329     *\&* | *\|* | *\\* )
34330        ac_sed_conf_input=`$as_echo "$configure_input" |
34331        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34332     *) ac_sed_conf_input=$configure_input;;
34333     esac
34334
34335     case $ac_tag in
34336     *:-:* | *:-) cat >"$tmp/stdin" \
34337       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34338     esac
34339     ;;
34340   esac
34341
34342   ac_dir=`$as_dirname -- "$ac_file" ||
34343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34344          X"$ac_file" : 'X\(//\)[^/]' \| \
34345          X"$ac_file" : 'X\(//\)$' \| \
34346          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34347 $as_echo X"$ac_file" |
34348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34349             s//\1/
34350             q
34351           }
34352           /^X\(\/\/\)[^/].*/{
34353             s//\1/
34354             q
34355           }
34356           /^X\(\/\/\)$/{
34357             s//\1/
34358             q
34359           }
34360           /^X\(\/\).*/{
34361             s//\1/
34362             q
34363           }
34364           s/.*/./; q'`
34365   as_dir="$ac_dir"; as_fn_mkdir_p
34366   ac_builddir=.
34367
34368 case "$ac_dir" in
34369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34370 *)
34371   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34372   # A ".." for each directory in $ac_dir_suffix.
34373   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34374   case $ac_top_builddir_sub in
34375   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34376   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34377   esac ;;
34378 esac
34379 ac_abs_top_builddir=$ac_pwd
34380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34381 # for backward compatibility:
34382 ac_top_builddir=$ac_top_build_prefix
34383
34384 case $srcdir in
34385   .)  # We are building in place.
34386     ac_srcdir=.
34387     ac_top_srcdir=$ac_top_builddir_sub
34388     ac_abs_top_srcdir=$ac_pwd ;;
34389   [\\/]* | ?:[\\/]* )  # Absolute name.
34390     ac_srcdir=$srcdir$ac_dir_suffix;
34391     ac_top_srcdir=$srcdir
34392     ac_abs_top_srcdir=$srcdir ;;
34393   *) # Relative name.
34394     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34395     ac_top_srcdir=$ac_top_build_prefix$srcdir
34396     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34397 esac
34398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34399
34400
34401   case $ac_mode in
34402   :F)
34403   #
34404   # CONFIG_FILE
34405   #
34406
34407   case $INSTALL in
34408   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34409   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34410   esac
34411   ac_MKDIR_P=$MKDIR_P
34412   case $MKDIR_P in
34413   [\\/$]* | ?:[\\/]* ) ;;
34414   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34415   esac
34416 _ACEOF
34417
34418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34419 # If the template does not know about datarootdir, expand it.
34420 # FIXME: This hack should be removed a few years after 2.60.
34421 ac_datarootdir_hack=; ac_datarootdir_seen=
34422 ac_sed_dataroot='
34423 /datarootdir/ {
34424   p
34425   q
34426 }
34427 /@datadir@/p
34428 /@docdir@/p
34429 /@infodir@/p
34430 /@localedir@/p
34431 /@mandir@/p'
34432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34433 *datarootdir*) ac_datarootdir_seen=yes;;
34434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34435   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34437 _ACEOF
34438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34439   ac_datarootdir_hack='
34440   s&@datadir@&$datadir&g
34441   s&@docdir@&$docdir&g
34442   s&@infodir@&$infodir&g
34443   s&@localedir@&$localedir&g
34444   s&@mandir@&$mandir&g
34445   s&\\\${datarootdir}&$datarootdir&g' ;;
34446 esac
34447 _ACEOF
34448
34449 # Neutralize VPATH when `$srcdir' = `.'.
34450 # Shell code in configure.ac might set extrasub.
34451 # FIXME: do we really want to maintain this feature?
34452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34453 ac_sed_extra="$ac_vpsub
34454 $extrasub
34455 _ACEOF
34456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34457 :t
34458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34459 s|@configure_input@|$ac_sed_conf_input|;t t
34460 s&@top_builddir@&$ac_top_builddir_sub&;t t
34461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34462 s&@srcdir@&$ac_srcdir&;t t
34463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34464 s&@top_srcdir@&$ac_top_srcdir&;t t
34465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34466 s&@builddir@&$ac_builddir&;t t
34467 s&@abs_builddir@&$ac_abs_builddir&;t t
34468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34469 s&@INSTALL@&$ac_INSTALL&;t t
34470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34471 $ac_datarootdir_hack
34472 "
34473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34474   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34475
34476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34477   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34478   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34480 which seems to be undefined.  Please make sure it is defined" >&5
34481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34482 which seems to be undefined.  Please make sure it is defined" >&2;}
34483
34484   rm -f "$tmp/stdin"
34485   case $ac_file in
34486   -) cat "$tmp/out" && rm -f "$tmp/out";;
34487   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34488   esac \
34489   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34490  ;;
34491   :H)
34492   #
34493   # CONFIG_HEADER
34494   #
34495   if test x"$ac_file" != x-; then
34496     {
34497       $as_echo "/* $configure_input  */" \
34498       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34499     } >"$tmp/config.h" \
34500       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34501     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34502       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34504     else
34505       rm -f "$ac_file"
34506       mv "$tmp/config.h" "$ac_file" \
34507         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34508     fi
34509   else
34510     $as_echo "/* $configure_input  */" \
34511       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34512       || as_fn_error $? "could not create -" "$LINENO" 5
34513   fi
34514 # Compute "$ac_file"'s index in $config_headers.
34515 _am_arg="$ac_file"
34516 _am_stamp_count=1
34517 for _am_header in $config_headers :; do
34518   case $_am_header in
34519     $_am_arg | $_am_arg:* )
34520       break ;;
34521     * )
34522       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34523   esac
34524 done
34525 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34526 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34527          X"$_am_arg" : 'X\(//\)[^/]' \| \
34528          X"$_am_arg" : 'X\(//\)$' \| \
34529          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34530 $as_echo X"$_am_arg" |
34531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34532             s//\1/
34533             q
34534           }
34535           /^X\(\/\/\)[^/].*/{
34536             s//\1/
34537             q
34538           }
34539           /^X\(\/\/\)$/{
34540             s//\1/
34541             q
34542           }
34543           /^X\(\/\).*/{
34544             s//\1/
34545             q
34546           }
34547           s/.*/./; q'`/stamp-h$_am_stamp_count
34548  ;;
34549
34550   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34551 $as_echo "$as_me: executing $ac_file commands" >&6;}
34552  ;;
34553   esac
34554
34555
34556   case $ac_file$ac_mode in
34557     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34558 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34559 ac_prefix_conf_PKG=`echo MagickCore`
34560 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34561 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
34562 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34563 if test ".$ac_prefix_conf_INP" = "."; then
34564    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34565      case "$ac_file" in
34566         *.h) ac_prefix_conf_INP=$ac_file ;;
34567         *)
34568      esac
34569      test ".$ac_prefix_conf_INP" != "." && break
34570    done
34571 fi
34572 if test ".$ac_prefix_conf_INP" = "."; then
34573    case "$ac_prefix_conf_OUT" in
34574       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34575       ;;
34576       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34577       ;;
34578       *) ac_prefix_conf_INP=config.h
34579       ;;
34580    esac
34581 fi
34582 if test -z "$ac_prefix_conf_PKG" ; then
34583    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34584 else
34585   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34586      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34587   fi fi
34588   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34589 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34590   if test -f $ac_prefix_conf_INP ; then
34591     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34592     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34593     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34594     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34595     $as_echo "#endif/" >> conftest.prefix
34596     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34597     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34598     $as_echo "#endif/" >> conftest.prefix
34599     # now executing _script on _DEF input to create _OUT output file
34600     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
34601     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34602     echo ' ' >>$tmp/pconfig.h
34603     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34604
34605     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34606     echo ' ' >>$tmp/pconfig.h
34607     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34608     echo "#endif" >>$tmp/pconfig.h
34609     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34610       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34611 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34612     else
34613       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34614 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34615          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34616          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34617          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34618 $as_echo X"$ac_prefix_conf_OUT" |
34619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34620             s//\1/
34621             q
34622           }
34623           /^X\(\/\/\)[^/].*/{
34624             s//\1/
34625             q
34626           }
34627           /^X\(\/\/\)$/{
34628             s//\1/
34629             q
34630           }
34631           /^X\(\/\).*/{
34632             s//\1/
34633             q
34634           }
34635           s/.*/./; q'`
34636       as_dir="$ac_dir"; as_fn_mkdir_p
34637       rm -f "$ac_prefix_conf_OUT"
34638       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34639     fi
34640     cp conftest.prefix _configs.sed
34641   else
34642     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34643   fi
34644   rm -f conftest.*
34645 fi
34646  ;;
34647     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34648   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34649   # are listed without --file.  Let's play safe and only enable the eval
34650   # if we detect the quoting.
34651   case $CONFIG_FILES in
34652   *\'*) eval set x "$CONFIG_FILES" ;;
34653   *)   set x $CONFIG_FILES ;;
34654   esac
34655   shift
34656   for mf
34657   do
34658     # Strip MF so we end up with the name of the file.
34659     mf=`echo "$mf" | sed -e 's/:.*$//'`
34660     # Check whether this is an Automake generated Makefile or not.
34661     # We used to match only the files named `Makefile.in', but
34662     # some people rename them; so instead we look at the file content.
34663     # Grep'ing the first line is not enough: some people post-process
34664     # each Makefile.in and add a new line on top of each file to say so.
34665     # Grep'ing the whole file is not good either: AIX grep has a line
34666     # limit of 2048, but all sed's we know have understand at least 4000.
34667     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34668       dirpart=`$as_dirname -- "$mf" ||
34669 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34670          X"$mf" : 'X\(//\)[^/]' \| \
34671          X"$mf" : 'X\(//\)$' \| \
34672          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34673 $as_echo X"$mf" |
34674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34675             s//\1/
34676             q
34677           }
34678           /^X\(\/\/\)[^/].*/{
34679             s//\1/
34680             q
34681           }
34682           /^X\(\/\/\)$/{
34683             s//\1/
34684             q
34685           }
34686           /^X\(\/\).*/{
34687             s//\1/
34688             q
34689           }
34690           s/.*/./; q'`
34691     else
34692       continue
34693     fi
34694     # Extract the definition of DEPDIR, am__include, and am__quote
34695     # from the Makefile without running `make'.
34696     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34697     test -z "$DEPDIR" && continue
34698     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34699     test -z "am__include" && continue
34700     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34701     # When using ansi2knr, U may be empty or an underscore; expand it
34702     U=`sed -n 's/^U = //p' < "$mf"`
34703     # Find all dependency output files, they are included files with
34704     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34705     # simplest approach to changing $(DEPDIR) to its actual value in the
34706     # expansion.
34707     for file in `sed -n "
34708       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34709          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34710       # Make sure the directory exists.
34711       test -f "$dirpart/$file" && continue
34712       fdir=`$as_dirname -- "$file" ||
34713 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34714          X"$file" : 'X\(//\)[^/]' \| \
34715          X"$file" : 'X\(//\)$' \| \
34716          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34717 $as_echo X"$file" |
34718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34719             s//\1/
34720             q
34721           }
34722           /^X\(\/\/\)[^/].*/{
34723             s//\1/
34724             q
34725           }
34726           /^X\(\/\/\)$/{
34727             s//\1/
34728             q
34729           }
34730           /^X\(\/\).*/{
34731             s//\1/
34732             q
34733           }
34734           s/.*/./; q'`
34735       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34736       # echo "creating $dirpart/$file"
34737       echo '# dummy' > "$dirpart/$file"
34738     done
34739   done
34740 }
34741  ;;
34742     "libtool":C)
34743
34744     # See if we are running on zsh, and set the options which allow our
34745     # commands through without removal of \ escapes.
34746     if test -n "${ZSH_VERSION+set}" ; then
34747       setopt NO_GLOB_SUBST
34748     fi
34749
34750     cfgfile="${ofile}T"
34751     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34752     $RM "$cfgfile"
34753
34754     cat <<_LT_EOF >> "$cfgfile"
34755 #! $SHELL
34756
34757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34758 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34761 #
34762 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34763 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34764 #                 Inc.
34765 #   Written by Gordon Matzigkeit, 1996
34766 #
34767 #   This file is part of GNU Libtool.
34768 #
34769 # GNU Libtool is free software; you can redistribute it and/or
34770 # modify it under the terms of the GNU General Public License as
34771 # published by the Free Software Foundation; either version 2 of
34772 # the License, or (at your option) any later version.
34773 #
34774 # As a special exception to the GNU General Public License,
34775 # if you distribute this file as part of a program or library that
34776 # is built using GNU Libtool, you may include this file under the
34777 # same distribution terms that you use for the rest of that program.
34778 #
34779 # GNU Libtool is distributed in the hope that it will be useful,
34780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34782 # GNU General Public License for more details.
34783 #
34784 # You should have received a copy of the GNU General Public License
34785 # along with GNU Libtool; see the file COPYING.  If not, a copy
34786 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34787 # obtained by writing to the Free Software Foundation, Inc.,
34788 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34789
34790
34791 # The names of the tagged configurations supported by this script.
34792 available_tags="CXX "
34793
34794 # ### BEGIN LIBTOOL CONFIG
34795
34796 # A sed program that does not truncate output.
34797 SED=$lt_SED
34798
34799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34800 Xsed="\$SED -e 1s/^X//"
34801
34802 # A grep program that handles long lines.
34803 GREP=$lt_GREP
34804
34805 # An ERE matcher.
34806 EGREP=$lt_EGREP
34807
34808 # A literal string matcher.
34809 FGREP=$lt_FGREP
34810
34811 # Shell to use when invoking shell scripts.
34812 SHELL=$lt_SHELL
34813
34814 # An echo program that protects backslashes.
34815 ECHO=$lt_ECHO
34816
34817 # Which release of libtool.m4 was used?
34818 macro_version=$macro_version
34819 macro_revision=$macro_revision
34820
34821 # Assembler program.
34822 AS=$lt_AS
34823
34824 # DLL creation program.
34825 DLLTOOL=$lt_DLLTOOL
34826
34827 # Object dumper program.
34828 OBJDUMP=$lt_OBJDUMP
34829
34830 # Whether or not to build shared libraries.
34831 build_libtool_libs=$enable_shared
34832
34833 # Whether or not to build static libraries.
34834 build_old_libs=$enable_static
34835
34836 # What type of objects to build.
34837 pic_mode=$pic_mode
34838
34839 # Whether or not to optimize for fast installation.
34840 fast_install=$enable_fast_install
34841
34842 # The host system.
34843 host_alias=$host_alias
34844 host=$host
34845 host_os=$host_os
34846
34847 # The build system.
34848 build_alias=$build_alias
34849 build=$build
34850 build_os=$build_os
34851
34852 # A BSD- or MS-compatible name lister.
34853 NM=$lt_NM
34854
34855 # Whether we need soft or hard links.
34856 LN_S=$lt_LN_S
34857
34858 # What is the maximum length of a command?
34859 max_cmd_len=$max_cmd_len
34860
34861 # Object file suffix (normally "o").
34862 objext=$ac_objext
34863
34864 # Executable file suffix (normally "").
34865 exeext=$exeext
34866
34867 # whether the shell understands "unset".
34868 lt_unset=$lt_unset
34869
34870 # turn spaces into newlines.
34871 SP2NL=$lt_lt_SP2NL
34872
34873 # turn newlines into spaces.
34874 NL2SP=$lt_lt_NL2SP
34875
34876 # Method to check whether dependent libraries are shared objects.
34877 deplibs_check_method=$lt_deplibs_check_method
34878
34879 # Command to use when deplibs_check_method == "file_magic".
34880 file_magic_cmd=$lt_file_magic_cmd
34881
34882 # The archiver.
34883 AR=$lt_AR
34884 AR_FLAGS=$lt_AR_FLAGS
34885
34886 # A symbol stripping program.
34887 STRIP=$lt_STRIP
34888
34889 # Commands used to install an old-style archive.
34890 RANLIB=$lt_RANLIB
34891 old_postinstall_cmds=$lt_old_postinstall_cmds
34892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34893
34894 # Whether to use a lock for old archive extraction.
34895 lock_old_archive_extraction=$lock_old_archive_extraction
34896
34897 # A C compiler.
34898 LTCC=$lt_CC
34899
34900 # LTCC compiler flags.
34901 LTCFLAGS=$lt_CFLAGS
34902
34903 # Take the output of nm and produce a listing of raw symbols and C names.
34904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34905
34906 # Transform the output of nm in a proper C declaration.
34907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34908
34909 # Transform the output of nm in a C name address pair.
34910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34911
34912 # Transform the output of nm in a C name address pair when lib prefix is needed.
34913 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34914
34915 # The name of the directory that contains temporary libtool files.
34916 objdir=$objdir
34917
34918 # Used to examine libraries when file_magic_cmd begins with "file".
34919 MAGIC_CMD=$MAGIC_CMD
34920
34921 # Must we lock files when doing compilation?
34922 need_locks=$lt_need_locks
34923
34924 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34925 DSYMUTIL=$lt_DSYMUTIL
34926
34927 # Tool to change global to local symbols on Mac OS X.
34928 NMEDIT=$lt_NMEDIT
34929
34930 # Tool to manipulate fat objects and archives on Mac OS X.
34931 LIPO=$lt_LIPO
34932
34933 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34934 OTOOL=$lt_OTOOL
34935
34936 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34937 OTOOL64=$lt_OTOOL64
34938
34939 # Old archive suffix (normally "a").
34940 libext=$libext
34941
34942 # Shared library suffix (normally ".so").
34943 shrext_cmds=$lt_shrext_cmds
34944
34945 # The commands to extract the exported symbol list from a shared archive.
34946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34947
34948 # Variables whose values should be saved in libtool wrapper scripts and
34949 # restored at link time.
34950 variables_saved_for_relink=$lt_variables_saved_for_relink
34951
34952 # Do we need the "lib" prefix for modules?
34953 need_lib_prefix=$need_lib_prefix
34954
34955 # Do we need a version for libraries?
34956 need_version=$need_version
34957
34958 # Library versioning type.
34959 version_type=$version_type
34960
34961 # Shared library runtime path variable.
34962 runpath_var=$runpath_var
34963
34964 # Shared library path variable.
34965 shlibpath_var=$shlibpath_var
34966
34967 # Is shlibpath searched before the hard-coded library search path?
34968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34969
34970 # Format of library name prefix.
34971 libname_spec=$lt_libname_spec
34972
34973 # List of archive names.  First name is the real one, the rest are links.
34974 # The last name is the one that the linker finds with -lNAME
34975 library_names_spec=$lt_library_names_spec
34976
34977 # The coded name of the library, if different from the real name.
34978 soname_spec=$lt_soname_spec
34979
34980 # Permission mode override for installation of shared libraries.
34981 install_override_mode=$lt_install_override_mode
34982
34983 # Command to use after installation of a shared archive.
34984 postinstall_cmds=$lt_postinstall_cmds
34985
34986 # Command to use after uninstallation of a shared archive.
34987 postuninstall_cmds=$lt_postuninstall_cmds
34988
34989 # Commands used to finish a libtool library installation in a directory.
34990 finish_cmds=$lt_finish_cmds
34991
34992 # As "finish_cmds", except a single script fragment to be evaled but
34993 # not shown.
34994 finish_eval=$lt_finish_eval
34995
34996 # Whether we should hardcode library paths into libraries.
34997 hardcode_into_libs=$hardcode_into_libs
34998
34999 # Compile-time system search path for libraries.
35000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35001
35002 # Run-time system search path for libraries.
35003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35004
35005 # Whether dlopen is supported.
35006 dlopen_support=$enable_dlopen
35007
35008 # Whether dlopen of programs is supported.
35009 dlopen_self=$enable_dlopen_self
35010
35011 # Whether dlopen of statically linked programs is supported.
35012 dlopen_self_static=$enable_dlopen_self_static
35013
35014 # Commands to strip libraries.
35015 old_striplib=$lt_old_striplib
35016 striplib=$lt_striplib
35017
35018
35019 # The linker used to build libraries.
35020 LD=$lt_LD
35021
35022 # How to create reloadable object files.
35023 reload_flag=$lt_reload_flag
35024 reload_cmds=$lt_reload_cmds
35025
35026 # Commands used to build an old-style archive.
35027 old_archive_cmds=$lt_old_archive_cmds
35028
35029 # A language specific compiler.
35030 CC=$lt_compiler
35031
35032 # Is the compiler the GNU compiler?
35033 with_gcc=$GCC
35034
35035 # Compiler flag to turn off builtin functions.
35036 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35037
35038 # How to pass a linker flag through the compiler.
35039 wl=$lt_lt_prog_compiler_wl
35040
35041 # Additional compiler flags for building library objects.
35042 pic_flag=$lt_lt_prog_compiler_pic
35043
35044 # Compiler flag to prevent dynamic linking.
35045 link_static_flag=$lt_lt_prog_compiler_static
35046
35047 # Does compiler simultaneously support -c and -o options?
35048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35049
35050 # Whether or not to add -lc for building shared libraries.
35051 build_libtool_need_lc=$archive_cmds_need_lc
35052
35053 # Whether or not to disallow shared libs when runtime libs are static.
35054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35055
35056 # Compiler flag to allow reflexive dlopens.
35057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35058
35059 # Compiler flag to generate shared objects directly from archives.
35060 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35061
35062 # Whether the compiler copes with passing no objects directly.
35063 compiler_needs_object=$lt_compiler_needs_object
35064
35065 # Create an old-style archive from a shared archive.
35066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35067
35068 # Create a temporary old-style archive to link instead of a shared archive.
35069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35070
35071 # Commands used to build a shared archive.
35072 archive_cmds=$lt_archive_cmds
35073 archive_expsym_cmds=$lt_archive_expsym_cmds
35074
35075 # Commands used to build a loadable module if different from building
35076 # a shared archive.
35077 module_cmds=$lt_module_cmds
35078 module_expsym_cmds=$lt_module_expsym_cmds
35079
35080 # Whether we are building with GNU ld or not.
35081 with_gnu_ld=$lt_with_gnu_ld
35082
35083 # Flag that allows shared libraries with undefined symbols to be built.
35084 allow_undefined_flag=$lt_allow_undefined_flag
35085
35086 # Flag that enforces no undefined symbols.
35087 no_undefined_flag=$lt_no_undefined_flag
35088
35089 # Flag to hardcode \$libdir into a binary during linking.
35090 # This must work even if \$libdir does not exist
35091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35092
35093 # If ld is used when linking, flag to hardcode \$libdir into a binary
35094 # during linking.  This must work even if \$libdir does not exist.
35095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35096
35097 # Whether we need a single "-rpath" flag with a separated argument.
35098 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35099
35100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35101 # DIR into the resulting binary.
35102 hardcode_direct=$hardcode_direct
35103
35104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35105 # DIR into the resulting binary and the resulting library dependency is
35106 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35107 # library is relocated.
35108 hardcode_direct_absolute=$hardcode_direct_absolute
35109
35110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35111 # into the resulting binary.
35112 hardcode_minus_L=$hardcode_minus_L
35113
35114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35115 # into the resulting binary.
35116 hardcode_shlibpath_var=$hardcode_shlibpath_var
35117
35118 # Set to "yes" if building a shared library automatically hardcodes DIR
35119 # into the library and all subsequent libraries and executables linked
35120 # against it.
35121 hardcode_automatic=$hardcode_automatic
35122
35123 # Set to yes if linker adds runtime paths of dependent libraries
35124 # to runtime path list.
35125 inherit_rpath=$inherit_rpath
35126
35127 # Whether libtool must link a program against all its dependency libraries.
35128 link_all_deplibs=$link_all_deplibs
35129
35130 # Fix the shell variable \$srcfile for the compiler.
35131 fix_srcfile_path=$lt_fix_srcfile_path
35132
35133 # Set to "yes" if exported symbols are required.
35134 always_export_symbols=$always_export_symbols
35135
35136 # The commands to list exported symbols.
35137 export_symbols_cmds=$lt_export_symbols_cmds
35138
35139 # Symbols that should not be listed in the preloaded symbols.
35140 exclude_expsyms=$lt_exclude_expsyms
35141
35142 # Symbols that must always be exported.
35143 include_expsyms=$lt_include_expsyms
35144
35145 # Commands necessary for linking programs (against libraries) with templates.
35146 prelink_cmds=$lt_prelink_cmds
35147
35148 # Specify filename containing input files.
35149 file_list_spec=$lt_file_list_spec
35150
35151 # How to hardcode a shared library path into an executable.
35152 hardcode_action=$hardcode_action
35153
35154 # The directories searched by this compiler when creating a shared library.
35155 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35156
35157 # Dependencies to place before and after the objects being linked to
35158 # create a shared library.
35159 predep_objects=$lt_predep_objects
35160 postdep_objects=$lt_postdep_objects
35161 predeps=$lt_predeps
35162 postdeps=$lt_postdeps
35163
35164 # The library search path used internally by the compiler when linking
35165 # a shared library.
35166 compiler_lib_search_path=$lt_compiler_lib_search_path
35167
35168 # ### END LIBTOOL CONFIG
35169
35170 _LT_EOF
35171
35172   case $host_os in
35173   aix3*)
35174     cat <<\_LT_EOF >> "$cfgfile"
35175 # AIX sometimes has problems with the GCC collect2 program.  For some
35176 # reason, if we set the COLLECT_NAMES environment variable, the problems
35177 # vanish in a puff of smoke.
35178 if test "X${COLLECT_NAMES+set}" != Xset; then
35179   COLLECT_NAMES=
35180   export COLLECT_NAMES
35181 fi
35182 _LT_EOF
35183     ;;
35184   esac
35185
35186
35187 ltmain="$ac_aux_dir/ltmain.sh"
35188
35189
35190   # We use sed instead of cat because bash on DJGPP gets confused if
35191   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35192   # text mode, it properly converts lines to CR/LF.  This bash problem
35193   # is reportedly fixed, but why not run on old versions too?
35194   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35195     || (rm -f "$cfgfile"; exit 1)
35196
35197   case $xsi_shell in
35198   yes)
35199     cat << \_LT_EOF >> "$cfgfile"
35200
35201 # func_dirname file append nondir_replacement
35202 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35203 # otherwise set result to NONDIR_REPLACEMENT.
35204 func_dirname ()
35205 {
35206   case ${1} in
35207     */*) func_dirname_result="${1%/*}${2}" ;;
35208     *  ) func_dirname_result="${3}" ;;
35209   esac
35210 }
35211
35212 # func_basename file
35213 func_basename ()
35214 {
35215   func_basename_result="${1##*/}"
35216 }
35217
35218 # func_dirname_and_basename file append nondir_replacement
35219 # perform func_basename and func_dirname in a single function
35220 # call:
35221 #   dirname:  Compute the dirname of FILE.  If nonempty,
35222 #             add APPEND to the result, otherwise set result
35223 #             to NONDIR_REPLACEMENT.
35224 #             value returned in "$func_dirname_result"
35225 #   basename: Compute filename of FILE.
35226 #             value retuned in "$func_basename_result"
35227 # Implementation must be kept synchronized with func_dirname
35228 # and func_basename. For efficiency, we do not delegate to
35229 # those functions but instead duplicate the functionality here.
35230 func_dirname_and_basename ()
35231 {
35232   case ${1} in
35233     */*) func_dirname_result="${1%/*}${2}" ;;
35234     *  ) func_dirname_result="${3}" ;;
35235   esac
35236   func_basename_result="${1##*/}"
35237 }
35238
35239 # func_stripname prefix suffix name
35240 # strip PREFIX and SUFFIX off of NAME.
35241 # PREFIX and SUFFIX must not contain globbing or regex special
35242 # characters, hashes, percent signs, but SUFFIX may contain a leading
35243 # dot (in which case that matches only a dot).
35244 func_stripname ()
35245 {
35246   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35247   # positional parameters, so assign one to ordinary parameter first.
35248   func_stripname_result=${3}
35249   func_stripname_result=${func_stripname_result#"${1}"}
35250   func_stripname_result=${func_stripname_result%"${2}"}
35251 }
35252
35253 # func_opt_split
35254 func_opt_split ()
35255 {
35256   func_opt_split_opt=${1%%=*}
35257   func_opt_split_arg=${1#*=}
35258 }
35259
35260 # func_lo2o object
35261 func_lo2o ()
35262 {
35263   case ${1} in
35264     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35265     *)    func_lo2o_result=${1} ;;
35266   esac
35267 }
35268
35269 # func_xform libobj-or-source
35270 func_xform ()
35271 {
35272   func_xform_result=${1%.*}.lo
35273 }
35274
35275 # func_arith arithmetic-term...
35276 func_arith ()
35277 {
35278   func_arith_result=$(( $* ))
35279 }
35280
35281 # func_len string
35282 # STRING may not start with a hyphen.
35283 func_len ()
35284 {
35285   func_len_result=${#1}
35286 }
35287
35288 _LT_EOF
35289     ;;
35290   *) # Bourne compatible functions.
35291     cat << \_LT_EOF >> "$cfgfile"
35292
35293 # func_dirname file append nondir_replacement
35294 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35295 # otherwise set result to NONDIR_REPLACEMENT.
35296 func_dirname ()
35297 {
35298   # Extract subdirectory from the argument.
35299   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35300   if test "X$func_dirname_result" = "X${1}"; then
35301     func_dirname_result="${3}"
35302   else
35303     func_dirname_result="$func_dirname_result${2}"
35304   fi
35305 }
35306
35307 # func_basename file
35308 func_basename ()
35309 {
35310   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35311 }
35312
35313
35314 # func_stripname prefix suffix name
35315 # strip PREFIX and SUFFIX off of NAME.
35316 # PREFIX and SUFFIX must not contain globbing or regex special
35317 # characters, hashes, percent signs, but SUFFIX may contain a leading
35318 # dot (in which case that matches only a dot).
35319 # func_strip_suffix prefix name
35320 func_stripname ()
35321 {
35322   case ${2} in
35323     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35324     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35325   esac
35326 }
35327
35328 # sed scripts:
35329 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35330 my_sed_long_arg='1s/^-[^=]*=//'
35331
35332 # func_opt_split
35333 func_opt_split ()
35334 {
35335   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35336   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35337 }
35338
35339 # func_lo2o object
35340 func_lo2o ()
35341 {
35342   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35343 }
35344
35345 # func_xform libobj-or-source
35346 func_xform ()
35347 {
35348   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35349 }
35350
35351 # func_arith arithmetic-term...
35352 func_arith ()
35353 {
35354   func_arith_result=`expr "$@"`
35355 }
35356
35357 # func_len string
35358 # STRING may not start with a hyphen.
35359 func_len ()
35360 {
35361   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35362 }
35363
35364 _LT_EOF
35365 esac
35366
35367 case $lt_shell_append in
35368   yes)
35369     cat << \_LT_EOF >> "$cfgfile"
35370
35371 # func_append var value
35372 # Append VALUE to the end of shell variable VAR.
35373 func_append ()
35374 {
35375   eval "$1+=\$2"
35376 }
35377 _LT_EOF
35378     ;;
35379   *)
35380     cat << \_LT_EOF >> "$cfgfile"
35381
35382 # func_append var value
35383 # Append VALUE to the end of shell variable VAR.
35384 func_append ()
35385 {
35386   eval "$1=\$$1\$2"
35387 }
35388
35389 _LT_EOF
35390     ;;
35391   esac
35392
35393
35394   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35395     || (rm -f "$cfgfile"; exit 1)
35396
35397   mv -f "$cfgfile" "$ofile" ||
35398     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35399   chmod +x "$ofile"
35400
35401
35402     cat <<_LT_EOF >> "$ofile"
35403
35404 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35405
35406 # The linker used to build libraries.
35407 LD=$lt_LD_CXX
35408
35409 # How to create reloadable object files.
35410 reload_flag=$lt_reload_flag_CXX
35411 reload_cmds=$lt_reload_cmds_CXX
35412
35413 # Commands used to build an old-style archive.
35414 old_archive_cmds=$lt_old_archive_cmds_CXX
35415
35416 # A language specific compiler.
35417 CC=$lt_compiler_CXX
35418
35419 # Is the compiler the GNU compiler?
35420 with_gcc=$GCC_CXX
35421
35422 # Compiler flag to turn off builtin functions.
35423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35424
35425 # How to pass a linker flag through the compiler.
35426 wl=$lt_lt_prog_compiler_wl_CXX
35427
35428 # Additional compiler flags for building library objects.
35429 pic_flag=$lt_lt_prog_compiler_pic_CXX
35430
35431 # Compiler flag to prevent dynamic linking.
35432 link_static_flag=$lt_lt_prog_compiler_static_CXX
35433
35434 # Does compiler simultaneously support -c and -o options?
35435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35436
35437 # Whether or not to add -lc for building shared libraries.
35438 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35439
35440 # Whether or not to disallow shared libs when runtime libs are static.
35441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35442
35443 # Compiler flag to allow reflexive dlopens.
35444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35445
35446 # Compiler flag to generate shared objects directly from archives.
35447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35448
35449 # Whether the compiler copes with passing no objects directly.
35450 compiler_needs_object=$lt_compiler_needs_object_CXX
35451
35452 # Create an old-style archive from a shared archive.
35453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35454
35455 # Create a temporary old-style archive to link instead of a shared archive.
35456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35457
35458 # Commands used to build a shared archive.
35459 archive_cmds=$lt_archive_cmds_CXX
35460 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35461
35462 # Commands used to build a loadable module if different from building
35463 # a shared archive.
35464 module_cmds=$lt_module_cmds_CXX
35465 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35466
35467 # Whether we are building with GNU ld or not.
35468 with_gnu_ld=$lt_with_gnu_ld_CXX
35469
35470 # Flag that allows shared libraries with undefined symbols to be built.
35471 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35472
35473 # Flag that enforces no undefined symbols.
35474 no_undefined_flag=$lt_no_undefined_flag_CXX
35475
35476 # Flag to hardcode \$libdir into a binary during linking.
35477 # This must work even if \$libdir does not exist
35478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35479
35480 # If ld is used when linking, flag to hardcode \$libdir into a binary
35481 # during linking.  This must work even if \$libdir does not exist.
35482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35483
35484 # Whether we need a single "-rpath" flag with a separated argument.
35485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35486
35487 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35488 # DIR into the resulting binary.
35489 hardcode_direct=$hardcode_direct_CXX
35490
35491 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35492 # DIR into the resulting binary and the resulting library dependency is
35493 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35494 # library is relocated.
35495 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35496
35497 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35498 # into the resulting binary.
35499 hardcode_minus_L=$hardcode_minus_L_CXX
35500
35501 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35502 # into the resulting binary.
35503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35504
35505 # Set to "yes" if building a shared library automatically hardcodes DIR
35506 # into the library and all subsequent libraries and executables linked
35507 # against it.
35508 hardcode_automatic=$hardcode_automatic_CXX
35509
35510 # Set to yes if linker adds runtime paths of dependent libraries
35511 # to runtime path list.
35512 inherit_rpath=$inherit_rpath_CXX
35513
35514 # Whether libtool must link a program against all its dependency libraries.
35515 link_all_deplibs=$link_all_deplibs_CXX
35516
35517 # Fix the shell variable \$srcfile for the compiler.
35518 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35519
35520 # Set to "yes" if exported symbols are required.
35521 always_export_symbols=$always_export_symbols_CXX
35522
35523 # The commands to list exported symbols.
35524 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35525
35526 # Symbols that should not be listed in the preloaded symbols.
35527 exclude_expsyms=$lt_exclude_expsyms_CXX
35528
35529 # Symbols that must always be exported.
35530 include_expsyms=$lt_include_expsyms_CXX
35531
35532 # Commands necessary for linking programs (against libraries) with templates.
35533 prelink_cmds=$lt_prelink_cmds_CXX
35534
35535 # Specify filename containing input files.
35536 file_list_spec=$lt_file_list_spec_CXX
35537
35538 # How to hardcode a shared library path into an executable.
35539 hardcode_action=$hardcode_action_CXX
35540
35541 # The directories searched by this compiler when creating a shared library.
35542 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35543
35544 # Dependencies to place before and after the objects being linked to
35545 # create a shared library.
35546 predep_objects=$lt_predep_objects_CXX
35547 postdep_objects=$lt_postdep_objects_CXX
35548 predeps=$lt_predeps_CXX
35549 postdeps=$lt_postdeps_CXX
35550
35551 # The library search path used internally by the compiler when linking
35552 # a shared library.
35553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35554
35555 # ### END LIBTOOL TAG CONFIG: CXX
35556 _LT_EOF
35557
35558  ;;
35559     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35560     "Magick-config.in":C) chmod +x magick/Magick-config ;;
35561     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35562     "Wand-config.in":C) chmod +x wand/Wand-config ;;
35563     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35564     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35565
35566   esac
35567 done # for ac_tag
35568
35569
35570 as_fn_exit 0
35571 _ACEOF
35572 ac_clean_files=$ac_clean_files_save
35573
35574 test $ac_write_fail = 0 ||
35575   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35576
35577
35578 # configure is writing to config.log, and then calls config.status.
35579 # config.status does its own redirection, appending to config.log.
35580 # Unfortunately, on DOS this fails, as config.log is still kept open
35581 # by configure, so config.status won't be able to write to it; its
35582 # output is simply discarded.  So we exec the FD to /dev/null,
35583 # effectively closing config.log, so it can be properly (re)opened and
35584 # appended to by config.status.  When coming back to configure, we
35585 # need to make the FD available again.
35586 if test "$no_create" != yes; then
35587   ac_cs_success=:
35588   ac_config_status_args=
35589   test "$silent" = yes &&
35590     ac_config_status_args="$ac_config_status_args --quiet"
35591   exec 5>/dev/null
35592   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35593   exec 5>>config.log
35594   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35595   # would make configure fail if this is the last instruction.
35596   $ac_cs_success || as_fn_exit 1
35597 fi
35598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35599   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35601 fi
35602
35603
35604 rm -f magick-version
35605
35606 result_dejavu_font_dir='none'
35607 if test "${dejavu_font_dir}x" != 'x'; then
35608     result_dejavu_font_dir=$dejavu_font_dir
35609 fi
35610
35611 result_ghostscript_font_dir='none'
35612 if test "${ghostscript_font_dir}x" != 'x'; then
35613     result_ghostscript_font_dir=$ghostscript_font_dir
35614 fi
35615
35616 result_windows_font_dir='none'
35617 if test "${windows_font_dir}x" != 'x'; then
35618     result_windows_font_dir=${windows_font_dir}
35619 fi
35620
35621 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35622 ImageMagick is configured as follows. Please verify that this configuration
35623 matches your expectations.
35624
35625 Host system type: $host
35626 Build system type: $build
35627
35628                   Option                        Value
35629 -------------------------------------------------------------------------------
35630 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35631 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35632 Module support    --with-modules=$with_modules          $with_modules
35633 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35634 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35635 High Dynamic Range Imagery
35636                   --enable-hdri=$enable_hdri            $enable_hdri
35637
35638 Delegate Configuration:
35639 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35640 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35641 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35642 DJVU              --with-djvu=$with_djvu                $have_djvu
35643 DPS               --with-dps=$with_dps          $have_dps
35644 FFTW              --with-fftw=$with_fftw                $have_fftw
35645 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35646 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35647 FreeType          --with-freetype=$with_freetype                $have_freetype
35648 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35649 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35650 Ghostscript       None                          $PSDelegate ($GSVersion)
35651 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35652 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35653 Graphviz          --with-gvc=$with_gvc          $have_gvc
35654 JBIG              --with-jbig=$with_jbig                $have_jbig
35655 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35656 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35657 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35658 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35659 LQR               --with-lqr=$with_lqr          $have_lqr
35660 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35661 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35662 PERL              --with-perl=$with_perl                $have_perl
35663 PNG               --with-png=$with_png          $have_png
35664 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35665 TIFF              --with-tiff=$with_tiff                $have_tiff
35666 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35667 WMF               --with-wmf=$with_wmf          $have_wmf
35668 X11               --with-x=$with_x                      $have_x
35669 XML               --with-xml=$with_xml          $have_xml
35670 ZLIB              --with-zlib=$with_zlib                $have_zlib
35671
35672 X11 Configuration:
35673       X_CFLAGS        = $X_CFLAGS
35674       X_PRE_LIBS      = $X_PRE_LIBS
35675       X_LIBS          = $X_LIBS
35676       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35677
35678 Options used to compile and link:
35679   PREFIX          = $PREFIX_DIR
35680   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35681   VERSION         = $PACKAGE_VERSION
35682   CC              = $CC
35683   CFLAGS          = $CFLAGS
35684   CPPFLAGS        = $MAGICK_CPPFLAGS
35685   PCFLAGS         = $MAGICK_PCFLAGS
35686   DEFS            = $DEFS
35687   LDFLAGS         = $LDFLAGS
35688   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35689   LIBS            = $MAGICK_LIBS
35690   CXX             = $CXX
35691   CXXFLAGS        = $CXXFLAGS
35692   FEATURES        = $MAGICK_FEATURES
35693 " >&5
35694 $as_echo "
35695 ImageMagick is configured as follows. Please verify that this configuration
35696 matches your expectations.
35697
35698 Host system type: $host
35699 Build system type: $build
35700
35701                   Option                        Value
35702 -------------------------------------------------------------------------------
35703 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35704 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35705 Module support    --with-modules=$with_modules          $with_modules
35706 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35707 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35708 High Dynamic Range Imagery
35709                   --enable-hdri=$enable_hdri            $enable_hdri
35710
35711 Delegate Configuration:
35712 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35713 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35714 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35715 DJVU              --with-djvu=$with_djvu                $have_djvu
35716 DPS               --with-dps=$with_dps          $have_dps
35717 FFTW              --with-fftw=$with_fftw                $have_fftw
35718 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35719 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35720 FreeType          --with-freetype=$with_freetype                $have_freetype
35721 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35722 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35723 Ghostscript       None                          $PSDelegate ($GSVersion)
35724 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35725 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35726 Graphviz          --with-gvc=$with_gvc          $have_gvc
35727 JBIG              --with-jbig=$with_jbig                $have_jbig
35728 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35729 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35730 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35731 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35732 LQR               --with-lqr=$with_lqr          $have_lqr
35733 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35734 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35735 PERL              --with-perl=$with_perl                $have_perl
35736 PNG               --with-png=$with_png          $have_png
35737 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35738 TIFF              --with-tiff=$with_tiff                $have_tiff
35739 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35740 WMF               --with-wmf=$with_wmf          $have_wmf
35741 X11               --with-x=$with_x                      $have_x
35742 XML               --with-xml=$with_xml          $have_xml
35743 ZLIB              --with-zlib=$with_zlib                $have_zlib
35744
35745 X11 Configuration:
35746       X_CFLAGS        = $X_CFLAGS
35747       X_PRE_LIBS      = $X_PRE_LIBS
35748       X_LIBS          = $X_LIBS
35749       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35750
35751 Options used to compile and link:
35752   PREFIX          = $PREFIX_DIR
35753   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35754   VERSION         = $PACKAGE_VERSION
35755   CC              = $CC
35756   CFLAGS          = $CFLAGS
35757   CPPFLAGS        = $MAGICK_CPPFLAGS
35758   PCFLAGS         = $MAGICK_PCFLAGS
35759   DEFS            = $DEFS
35760   LDFLAGS         = $LDFLAGS
35761   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35762   LIBS            = $MAGICK_LIBS
35763   CXX             = $CXX
35764   CXXFLAGS        = $CXXFLAGS
35765   FEATURES        = $MAGICK_FEATURES
35766 " >&6; }