]> 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.6.
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.6'
570 PACKAGE_STRING='ImageMagick 6.6.6'
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 AutotraceDecodeDelegate
718 SHARE_CONFIGURE_PATH
719 SHARE_PATH
720 DOCUMENTATION_PATH
721 FILTER_PATH
722 CODER_PATH
723 CONFIGURE_PATH
724 LIBRARY_PATH
725 EXECUTABLE_PATH
726 PERLMAINCC
727 XML_LIBS
728 XML_DELEGATE_FALSE
729 XML_DELEGATE_TRUE
730 xml2_config
731 WMF_LIBS
732 WMF_DELEGATE_FALSE
733 WMF_DELEGATE_TRUE
734 TIFF_LIBS
735 TIFF_DELEGATE_FALSE
736 TIFF_DELEGATE_TRUE
737 CAIRO_DELEGATE_FALSE
738 CAIRO_DELEGATE_TRUE
739 RSVG_DELEGATE_FALSE
740 RSVG_DELEGATE_TRUE
741 CAIRO_SVG_LIBS
742 CAIRO_SVG_CFLAGS
743 RSVG_LIBS
744 RSVG_CFLAGS
745 PNG_LIBS
746 PNG_DELEGATE_FALSE
747 PNG_DELEGATE_TRUE
748 OPENEXR_DELEGATE_FALSE
749 OPENEXR_DELEGATE_TRUE
750 OPENEXR_LIBS
751 OPENEXR_CFLAGS
752 LZMA_LIBS
753 LZMA_DELEGATE_FALSE
754 LZMA_DELEGATE_TRUE
755 LQR_DELEGATE_FALSE
756 LQR_DELEGATE_TRUE
757 LQR_LIBS
758 LQR_CFLAGS
759 LCMS_LIBS
760 LCMS_DELEGATE_FALSE
761 LCMS_DELEGATE_TRUE
762 JP2_LIBS
763 JP2_DELEGATE_FALSE
764 JP2_DELEGATE_TRUE
765 JPEG_LIBS
766 JPEG_DELEGATE_FALSE
767 JPEG_DELEGATE_TRUE
768 JBIG_LIBS
769 JBIG_DELEGATE_FALSE
770 JBIG_DELEGATE_TRUE
771 GVC_DELEGATE_FALSE
772 GVC_DELEGATE_TRUE
773 GVC_LIBS
774 GVC_CFLAGS
775 GS_LIBS
776 GS_DELEGATE_FALSE
777 GS_DELEGATE_TRUE
778 FREETYPE_LIBS
779 FREETYPE_DELEGATE_FALSE
780 FREETYPE_DELEGATE_TRUE
781 freetype_config
782 FONTCONFIG_DELEGATE_FALSE
783 FONTCONFIG_DELEGATE_TRUE
784 FONTCONFIG_LIBS
785 FONTCONFIG_CFLAGS
786 FPX_LIBS
787 FPX_DELEGATE_FALSE
788 FPX_DELEGATE_TRUE
789 FFTW_LIBS
790 FFTW_DELEGATE_FALSE
791 FFTW_DELEGATE_TRUE
792 DJVU_LIBS
793 DJVU_DELEGATE_FALSE
794 DJVU_DELEGATE_TRUE
795 DPS_LIBS
796 DPS_DELEGATE_FALSE
797 DPS_DELEGATE_TRUE
798 AUTOTRACE_DELEGATE_FALSE
799 AUTOTRACE_DELEGATE_TRUE
800 AUTOTRACE_LIBS
801 AUTOTRACE_CFLAGS
802 LIB_DL
803 ZLIB_LIBS
804 ZLIB_DELEGATE_FALSE
805 ZLIB_DELEGATE_TRUE
806 XEXT_LIBS
807 X11_LIBS
808 X11_DELEGATE_FALSE
809 X11_DELEGATE_TRUE
810 X_EXTRA_LIBS
811 X_LIBS
812 X_PRE_LIBS
813 X_CFLAGS
814 XMKMF
815 BZLIB_LIBS
816 BZLIB_DELEGATE_FALSE
817 BZLIB_DELEGATE_TRUE
818 CCMALLOCDelegate
819 UMEM_LIBS
820 HasUMEM_FALSE
821 HasUMEM_TRUE
822 THREAD_LIBS
823 GOMP_LIBS
824 WITH_MAGICK_PLUS_PLUS_FALSE
825 WITH_MAGICK_PLUS_PLUS_TRUE
826 OPENMP_CXXFLAGS
827 MATH_LIBS
828 POW_LIB
829 LIBOBJS
830 UINTPTR_T
831 UINTMAX_T
832 UINT64_T
833 INT64_T
834 UINT32_T
835 INT32_T
836 UINT16_T
837 INT16_T
838 UINT8_T
839 INT8_T
840 LIBRARY_EXTRA_CPPFLAGS
841 MODULE_EXTRA_CPPFLAGS
842 LIBSTDCLDFLAGS
843 PERL_MAKE_OPTIONS
844 QUANTUM_DEPTH
845 MAINT
846 MAINTAINER_MODE_FALSE
847 MAINTAINER_MODE_TRUE
848 MAGICK_HDRI
849 DLLDFLAGS
850 WITH_LTDL_FALSE
851 WITH_LTDL_TRUE
852 WITH_MODULES_FALSE
853 WITH_MODULES_TRUE
854 WITH_SHARED_LIBS_FALSE
855 WITH_SHARED_LIBS_TRUE
856 LTDLOPEN
857 LT_CONFIG_H
858 CONVENIENCE_LTDL_FALSE
859 CONVENIENCE_LTDL_TRUE
860 INSTALL_LTDL_FALSE
861 INSTALL_LTDL_TRUE
862 ARGZ_H
863 sys_symbol_underscore
864 LIBADD_DL
865 LT_DLPREOPEN
866 LIBADD_DLD_LINK
867 LIBADD_SHL_LOAD
868 LIBADD_DLOPEN
869 LT_DLLOADERS
870 INCLTDL
871 LTDLINCL
872 LTDLDEPS
873 LIBLTDL
874 LIBTOOL_DEPS
875 CXXCPP
876 OTOOL64
877 OTOOL
878 LIPO
879 NMEDIT
880 DSYMUTIL
881 RANLIB
882 AR
883 NM
884 ac_ct_DUMPBIN
885 DUMPBIN
886 LIBTOOL
887 OBJDUMP
888 DLLTOOL
889 AS
890 LFS_CPPFLAGS
891 CL_LIBS
892 CL_CFLAGS
893 OPENMP_CFLAGS
894 PTHREAD_CFLAGS
895 PTHREAD_LIBS
896 PTHREAD_CC
897 ax_pthread_config
898 WinPathScript
899 USING_CL_FALSE
900 USING_CL_TRUE
901 CYGWIN_BUILD_FALSE
902 CYGWIN_BUILD_TRUE
903 WIN32_NATIVE_BUILD_FALSE
904 WIN32_NATIVE_BUILD_TRUE
905 WINGDI32_DELEGATE_FALSE
906 WINGDI32_DELEGATE_TRUE
907 GDI32_LIBS
908 PKG_CONFIG
909 LN_S
910 LD
911 FGREP
912 SED
913 am__fastdepCXX_FALSE
914 am__fastdepCXX_TRUE
915 CXXDEPMODE
916 ac_ct_CXX
917 CXXFLAGS
918 CXX
919 EGREP
920 GREP
921 CPP
922 am__fastdepCC_FALSE
923 am__fastdepCC_TRUE
924 CCDEPMODE
925 AMDEPBACKSLASH
926 AMDEP_FALSE
927 AMDEP_TRUE
928 am__quote
929 am__include
930 DEPDIR
931 OBJEXT
932 EXEEXT
933 ac_ct_CC
934 CPPFLAGS
935 LDFLAGS
936 CFLAGS
937 CC
938 DIRSEP
939 MAGICK_FILTER_MODULE_PATH
940 MAGICK_CONFIGURE_BUILD_PATH
941 MAGICK_CONFIGURE_SRC_PATH
942 MAGICK_CODER_MODULE_PATH
943 MAN_DIR
944 INFO_DIR
945 PERSISTINCLUDE_DIR
946 INCLUDE_DIR
947 LIB_DIR
948 LOCALSTATE_DIR
949 SHAREDSTATE_DIR
950 SYSCONF_DIR
951 DATA_DIR
952 LIBEXEC_DIR
953 SBIN_DIR
954 BIN_DIR
955 EXEC_PREFIX_DIR
956 PREFIX_DIR
957 CONFIG_STATUS_DEPENDENCIES
958 MAGICK_LIB_VERSION_NUMBER
959 MAGICK_LIB_VERSION_TEXT
960 MAGICK_LIB_VERSION
961 AM_BACKSLASH
962 AM_DEFAULT_VERBOSITY
963 am__untar
964 am__tar
965 AMTAR
966 am__leading_dot
967 SET_MAKE
968 AWK
969 mkdir_p
970 MKDIR_P
971 INSTALL_STRIP_PROGRAM
972 STRIP
973 install_sh
974 MAKEINFO
975 AUTOHEADER
976 AUTOMAKE
977 AUTOCONF
978 ACLOCAL
979 VERSION
980 PACKAGE
981 CYGPATH_W
982 am__isrc
983 INSTALL_DATA
984 INSTALL_SCRIPT
985 INSTALL_PROGRAM
986 PACKAGE_VERSION_ADDENDUM
987 PACKAGE_RELEASE_DATE
988 PACKAGE_LIB_VERSION_NUMBER
989 PACKAGE_LIB_VERSION
990 PACKAGE_CHANGE_DATE
991 PACKAGE_RELEASE
992 MAGICK_LIBRARY_VERSION_INFO
993 MAGICK_LIBRARY_CURRENT_MIN
994 MAGICK_LIBRARY_AGE
995 MAGICK_LIBRARY_REVISION
996 MAGICK_LIBRARY_CURRENT
997 MAGICK_TARGET_OS
998 MAGICK_TARGET_VENDOR
999 MAGICK_TARGET_CPU
1000 target_os
1001 target_vendor
1002 target_cpu
1003 target
1004 host_os
1005 host_vendor
1006 host_cpu
1007 host
1008 build_os
1009 build_vendor
1010 build_cpu
1011 build
1012 CONFIGURE_ARGS
1013 DISTCHECK_CONFIG_FLAGS
1014 target_alias
1015 host_alias
1016 build_alias
1017 LIBS
1018 ECHO_T
1019 ECHO_N
1020 ECHO_C
1021 DEFS
1022 mandir
1023 localedir
1024 libdir
1025 psdir
1026 pdfdir
1027 dvidir
1028 htmldir
1029 infodir
1030 docdir
1031 oldincludedir
1032 includedir
1033 localstatedir
1034 sharedstatedir
1035 sysconfdir
1036 datadir
1037 datarootdir
1038 libexecdir
1039 sbindir
1040 bindir
1041 program_transform_name
1042 prefix
1043 exec_prefix
1044 PACKAGE_URL
1045 PACKAGE_BUGREPORT
1046 PACKAGE_STRING
1047 PACKAGE_VERSION
1048 PACKAGE_TARNAME
1049 PACKAGE_NAME
1050 PATH_SEPARATOR
1051 SHELL'
1052 ac_subst_files=''
1053 ac_user_opts='
1054 enable_option_checking
1055 enable_silent_rules
1056 enable_dependency_tracking
1057 with_gnu_ld
1058 with_dmalloc
1059 enable_bounds_checking
1060 enable_osx_universal_binary
1061 with_threads
1062 enable_openmp
1063 enable_opencl
1064 enable_largefile
1065 enable_shared
1066 enable_static
1067 with_pic
1068 enable_fast_install
1069 enable_libtool_lock
1070 with_included_ltdl
1071 with_ltdl_include
1072 with_ltdl_lib
1073 enable_ltdl_install
1074 with_modules
1075 enable_delegate_build
1076 enable_deprecated
1077 enable_installed
1078 enable_cipher
1079 enable_embeddable
1080 enable_hdri
1081 enable_assert
1082 enable_maintainer_mode
1083 enable_ccmalloc
1084 enable_efence
1085 enable_prof
1086 enable_gprof
1087 enable_gcov
1088 with_method_prefix
1089 with_quantum_depth
1090 with_cache
1091 with_frozenpaths
1092 with_magick_plus_plus
1093 with_perl
1094 with_perl_options
1095 with_umem
1096 with_libstdc
1097 with_bzlib
1098 with_x
1099 with_zlib
1100 with_autotrace
1101 with_dps
1102 with_djvu
1103 with_dejavu_font_dir
1104 with_fftw
1105 with_fpx
1106 with_fontconfig
1107 with_freetype
1108 with_gslib
1109 with_fontpath
1110 with_gs_font_dir
1111 with_gvc
1112 with_jbig
1113 with_jpeg
1114 with_jp2
1115 with_lcms
1116 with_lcms2
1117 with_lqr
1118 with_lzma
1119 with_openexr
1120 with_png
1121 with_rsvg
1122 with_tiff
1123 with_windows_font_dir
1124 with_wmf
1125 with_xml
1126 '
1127       ac_precious_vars='build_alias
1128 host_alias
1129 target_alias
1130 CC
1131 CFLAGS
1132 LDFLAGS
1133 LIBS
1134 CPPFLAGS
1135 CPP
1136 CXX
1137 CXXFLAGS
1138 CCC
1139 PKG_CONFIG
1140 CXXCPP
1141 XMKMF
1142 AUTOTRACE_CFLAGS
1143 AUTOTRACE_LIBS
1144 FONTCONFIG_CFLAGS
1145 FONTCONFIG_LIBS
1146 GVC_CFLAGS
1147 GVC_LIBS
1148 LQR_CFLAGS
1149 LQR_LIBS
1150 OPENEXR_CFLAGS
1151 OPENEXR_LIBS
1152 RSVG_CFLAGS
1153 RSVG_LIBS
1154 CAIRO_SVG_CFLAGS
1155 CAIRO_SVG_LIBS'
1156
1157
1158 # Initialize some variables set by options.
1159 ac_init_help=
1160 ac_init_version=false
1161 ac_unrecognized_opts=
1162 ac_unrecognized_sep=
1163 # The variables have the same names as the options, with
1164 # dashes changed to underlines.
1165 cache_file=/dev/null
1166 exec_prefix=NONE
1167 no_create=
1168 no_recursion=
1169 prefix=NONE
1170 program_prefix=NONE
1171 program_suffix=NONE
1172 program_transform_name=s,x,x,
1173 silent=
1174 site=
1175 srcdir=
1176 verbose=
1177 x_includes=NONE
1178 x_libraries=NONE
1179
1180 # Installation directory options.
1181 # These are left unexpanded so users can "make install exec_prefix=/foo"
1182 # and all the variables that are supposed to be based on exec_prefix
1183 # by default will actually change.
1184 # Use braces instead of parens because sh, perl, etc. also accept them.
1185 # (The list follows the same order as the GNU Coding Standards.)
1186 bindir='${exec_prefix}/bin'
1187 sbindir='${exec_prefix}/sbin'
1188 libexecdir='${exec_prefix}/libexec'
1189 datarootdir='${prefix}/share'
1190 datadir='${datarootdir}'
1191 sysconfdir='${prefix}/etc'
1192 sharedstatedir='${prefix}/com'
1193 localstatedir='${prefix}/var'
1194 includedir='${prefix}/include'
1195 oldincludedir='/usr/include'
1196 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1197 infodir='${datarootdir}/info'
1198 htmldir='${docdir}'
1199 dvidir='${docdir}'
1200 pdfdir='${docdir}'
1201 psdir='${docdir}'
1202 libdir='${exec_prefix}/lib'
1203 localedir='${datarootdir}/locale'
1204 mandir='${datarootdir}/man'
1205
1206 ac_prev=
1207 ac_dashdash=
1208 for ac_option
1209 do
1210   # If the previous option needs an argument, assign it.
1211   if test -n "$ac_prev"; then
1212     eval $ac_prev=\$ac_option
1213     ac_prev=
1214     continue
1215   fi
1216
1217   case $ac_option in
1218   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1219   *)    ac_optarg=yes ;;
1220   esac
1221
1222   # Accept the important Cygnus configure options, so we can diagnose typos.
1223
1224   case $ac_dashdash$ac_option in
1225   --)
1226     ac_dashdash=yes ;;
1227
1228   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1229     ac_prev=bindir ;;
1230   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1231     bindir=$ac_optarg ;;
1232
1233   -build | --build | --buil | --bui | --bu)
1234     ac_prev=build_alias ;;
1235   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1236     build_alias=$ac_optarg ;;
1237
1238   -cache-file | --cache-file | --cache-fil | --cache-fi \
1239   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1240     ac_prev=cache_file ;;
1241   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1242   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1243     cache_file=$ac_optarg ;;
1244
1245   --config-cache | -C)
1246     cache_file=config.cache ;;
1247
1248   -datadir | --datadir | --datadi | --datad)
1249     ac_prev=datadir ;;
1250   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1251     datadir=$ac_optarg ;;
1252
1253   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1254   | --dataroo | --dataro | --datar)
1255     ac_prev=datarootdir ;;
1256   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1257   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1258     datarootdir=$ac_optarg ;;
1259
1260   -disable-* | --disable-*)
1261     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1262     # Reject names that are not valid shell variable names.
1263     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264       as_fn_error $? "invalid feature name: $ac_useropt"
1265     ac_useropt_orig=$ac_useropt
1266     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267     case $ac_user_opts in
1268       *"
1269 "enable_$ac_useropt"
1270 "*) ;;
1271       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1272          ac_unrecognized_sep=', ';;
1273     esac
1274     eval enable_$ac_useropt=no ;;
1275
1276   -docdir | --docdir | --docdi | --doc | --do)
1277     ac_prev=docdir ;;
1278   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1279     docdir=$ac_optarg ;;
1280
1281   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1282     ac_prev=dvidir ;;
1283   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1284     dvidir=$ac_optarg ;;
1285
1286   -enable-* | --enable-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error $? "invalid feature name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "enable_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval enable_$ac_useropt=\$ac_optarg ;;
1301
1302   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1303   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1304   | --exec | --exe | --ex)
1305     ac_prev=exec_prefix ;;
1306   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1307   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1308   | --exec=* | --exe=* | --ex=*)
1309     exec_prefix=$ac_optarg ;;
1310
1311   -gas | --gas | --ga | --g)
1312     # Obsolete; use --with-gas.
1313     with_gas=yes ;;
1314
1315   -help | --help | --hel | --he | -h)
1316     ac_init_help=long ;;
1317   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1318     ac_init_help=recursive ;;
1319   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1320     ac_init_help=short ;;
1321
1322   -host | --host | --hos | --ho)
1323     ac_prev=host_alias ;;
1324   -host=* | --host=* | --hos=* | --ho=*)
1325     host_alias=$ac_optarg ;;
1326
1327   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1328     ac_prev=htmldir ;;
1329   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1330   | --ht=*)
1331     htmldir=$ac_optarg ;;
1332
1333   -includedir | --includedir | --includedi | --included | --include \
1334   | --includ | --inclu | --incl | --inc)
1335     ac_prev=includedir ;;
1336   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1337   | --includ=* | --inclu=* | --incl=* | --inc=*)
1338     includedir=$ac_optarg ;;
1339
1340   -infodir | --infodir | --infodi | --infod | --info | --inf)
1341     ac_prev=infodir ;;
1342   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1343     infodir=$ac_optarg ;;
1344
1345   -libdir | --libdir | --libdi | --libd)
1346     ac_prev=libdir ;;
1347   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1348     libdir=$ac_optarg ;;
1349
1350   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1351   | --libexe | --libex | --libe)
1352     ac_prev=libexecdir ;;
1353   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1354   | --libexe=* | --libex=* | --libe=*)
1355     libexecdir=$ac_optarg ;;
1356
1357   -localedir | --localedir | --localedi | --localed | --locale)
1358     ac_prev=localedir ;;
1359   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1360     localedir=$ac_optarg ;;
1361
1362   -localstatedir | --localstatedir | --localstatedi | --localstated \
1363   | --localstate | --localstat | --localsta | --localst | --locals)
1364     ac_prev=localstatedir ;;
1365   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1366   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1367     localstatedir=$ac_optarg ;;
1368
1369   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1370     ac_prev=mandir ;;
1371   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1372     mandir=$ac_optarg ;;
1373
1374   -nfp | --nfp | --nf)
1375     # Obsolete; use --without-fp.
1376     with_fp=no ;;
1377
1378   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1379   | --no-cr | --no-c | -n)
1380     no_create=yes ;;
1381
1382   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1383   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1384     no_recursion=yes ;;
1385
1386   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1387   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1388   | --oldin | --oldi | --old | --ol | --o)
1389     ac_prev=oldincludedir ;;
1390   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1391   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1392   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1393     oldincludedir=$ac_optarg ;;
1394
1395   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1396     ac_prev=prefix ;;
1397   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1398     prefix=$ac_optarg ;;
1399
1400   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1401   | --program-pre | --program-pr | --program-p)
1402     ac_prev=program_prefix ;;
1403   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1404   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1405     program_prefix=$ac_optarg ;;
1406
1407   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1408   | --program-suf | --program-su | --program-s)
1409     ac_prev=program_suffix ;;
1410   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1411   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1412     program_suffix=$ac_optarg ;;
1413
1414   -program-transform-name | --program-transform-name \
1415   | --program-transform-nam | --program-transform-na \
1416   | --program-transform-n | --program-transform- \
1417   | --program-transform | --program-transfor \
1418   | --program-transfo | --program-transf \
1419   | --program-trans | --program-tran \
1420   | --progr-tra | --program-tr | --program-t)
1421     ac_prev=program_transform_name ;;
1422   -program-transform-name=* | --program-transform-name=* \
1423   | --program-transform-nam=* | --program-transform-na=* \
1424   | --program-transform-n=* | --program-transform-=* \
1425   | --program-transform=* | --program-transfor=* \
1426   | --program-transfo=* | --program-transf=* \
1427   | --program-trans=* | --program-tran=* \
1428   | --progr-tra=* | --program-tr=* | --program-t=*)
1429     program_transform_name=$ac_optarg ;;
1430
1431   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1432     ac_prev=pdfdir ;;
1433   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1434     pdfdir=$ac_optarg ;;
1435
1436   -psdir | --psdir | --psdi | --psd | --ps)
1437     ac_prev=psdir ;;
1438   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1439     psdir=$ac_optarg ;;
1440
1441   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442   | -silent | --silent | --silen | --sile | --sil)
1443     silent=yes ;;
1444
1445   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1446     ac_prev=sbindir ;;
1447   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1448   | --sbi=* | --sb=*)
1449     sbindir=$ac_optarg ;;
1450
1451   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1452   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1453   | --sharedst | --shareds | --shared | --share | --shar \
1454   | --sha | --sh)
1455     ac_prev=sharedstatedir ;;
1456   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1457   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1458   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1459   | --sha=* | --sh=*)
1460     sharedstatedir=$ac_optarg ;;
1461
1462   -site | --site | --sit)
1463     ac_prev=site ;;
1464   -site=* | --site=* | --sit=*)
1465     site=$ac_optarg ;;
1466
1467   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1468     ac_prev=srcdir ;;
1469   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1470     srcdir=$ac_optarg ;;
1471
1472   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1473   | --syscon | --sysco | --sysc | --sys | --sy)
1474     ac_prev=sysconfdir ;;
1475   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1476   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1477     sysconfdir=$ac_optarg ;;
1478
1479   -target | --target | --targe | --targ | --tar | --ta | --t)
1480     ac_prev=target_alias ;;
1481   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1482     target_alias=$ac_optarg ;;
1483
1484   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1485     verbose=yes ;;
1486
1487   -version | --version | --versio | --versi | --vers | -V)
1488     ac_init_version=: ;;
1489
1490   -with-* | --with-*)
1491     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1492     # Reject names that are not valid shell variable names.
1493     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1494       as_fn_error $? "invalid package name: $ac_useropt"
1495     ac_useropt_orig=$ac_useropt
1496     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497     case $ac_user_opts in
1498       *"
1499 "with_$ac_useropt"
1500 "*) ;;
1501       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1502          ac_unrecognized_sep=', ';;
1503     esac
1504     eval with_$ac_useropt=\$ac_optarg ;;
1505
1506   -without-* | --without-*)
1507     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1508     # Reject names that are not valid shell variable names.
1509     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510       as_fn_error $? "invalid package name: $ac_useropt"
1511     ac_useropt_orig=$ac_useropt
1512     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513     case $ac_user_opts in
1514       *"
1515 "with_$ac_useropt"
1516 "*) ;;
1517       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1518          ac_unrecognized_sep=', ';;
1519     esac
1520     eval with_$ac_useropt=no ;;
1521
1522   --x)
1523     # Obsolete; use --with-x.
1524     with_x=yes ;;
1525
1526   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1527   | --x-incl | --x-inc | --x-in | --x-i)
1528     ac_prev=x_includes ;;
1529   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1530   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1531     x_includes=$ac_optarg ;;
1532
1533   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1534   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1535     ac_prev=x_libraries ;;
1536   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1537   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1538     x_libraries=$ac_optarg ;;
1539
1540   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1541 Try \`$0 --help' for more information"
1542     ;;
1543
1544   *=*)
1545     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1546     # Reject names that are not valid shell variable names.
1547     case $ac_envvar in #(
1548       '' | [0-9]* | *[!_$as_cr_alnum]* )
1549       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1550     esac
1551     eval $ac_envvar=\$ac_optarg
1552     export $ac_envvar ;;
1553
1554   *)
1555     # FIXME: should be removed in autoconf 3.0.
1556     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1557     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1558       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1559     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1560     ;;
1561
1562   esac
1563 done
1564
1565 if test -n "$ac_prev"; then
1566   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1567   as_fn_error $? "missing argument to $ac_option"
1568 fi
1569
1570 if test -n "$ac_unrecognized_opts"; then
1571   case $enable_option_checking in
1572     no) ;;
1573     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1574     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1575   esac
1576 fi
1577
1578 # Check all directory arguments for consistency.
1579 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1580                 datadir sysconfdir sharedstatedir localstatedir includedir \
1581                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1582                 libdir localedir mandir
1583 do
1584   eval ac_val=\$$ac_var
1585   # Remove trailing slashes.
1586   case $ac_val in
1587     */ )
1588       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1589       eval $ac_var=\$ac_val;;
1590   esac
1591   # Be sure to have absolute directory names.
1592   case $ac_val in
1593     [\\/$]* | ?:[\\/]* )  continue;;
1594     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1595   esac
1596   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1597 done
1598
1599 # There might be people who depend on the old broken behavior: `$host'
1600 # used to hold the argument of --host etc.
1601 # FIXME: To remove some day.
1602 build=$build_alias
1603 host=$host_alias
1604 target=$target_alias
1605
1606 # FIXME: To remove some day.
1607 if test "x$host_alias" != x; then
1608   if test "x$build_alias" = x; then
1609     cross_compiling=maybe
1610     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1611     If a cross compiler is detected then cross compile mode will be used" >&2
1612   elif test "x$build_alias" != "x$host_alias"; then
1613     cross_compiling=yes
1614   fi
1615 fi
1616
1617 ac_tool_prefix=
1618 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1619
1620 test "$silent" = yes && exec 6>/dev/null
1621
1622
1623 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1624 ac_ls_di=`ls -di .` &&
1625 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1626   as_fn_error $? "working directory cannot be determined"
1627 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1628   as_fn_error $? "pwd does not report name of working directory"
1629
1630
1631 # Find the source files, if location was not specified.
1632 if test -z "$srcdir"; then
1633   ac_srcdir_defaulted=yes
1634   # Try the directory containing this script, then the parent directory.
1635   ac_confdir=`$as_dirname -- "$as_myself" ||
1636 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637          X"$as_myself" : 'X\(//\)[^/]' \| \
1638          X"$as_myself" : 'X\(//\)$' \| \
1639          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640 $as_echo X"$as_myself" |
1641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1642             s//\1/
1643             q
1644           }
1645           /^X\(\/\/\)[^/].*/{
1646             s//\1/
1647             q
1648           }
1649           /^X\(\/\/\)$/{
1650             s//\1/
1651             q
1652           }
1653           /^X\(\/\).*/{
1654             s//\1/
1655             q
1656           }
1657           s/.*/./; q'`
1658   srcdir=$ac_confdir
1659   if test ! -r "$srcdir/$ac_unique_file"; then
1660     srcdir=..
1661   fi
1662 else
1663   ac_srcdir_defaulted=no
1664 fi
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1667   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1668 fi
1669 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1670 ac_abs_confdir=`(
1671         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1672         pwd)`
1673 # When building in place, set srcdir=.
1674 if test "$ac_abs_confdir" = "$ac_pwd"; then
1675   srcdir=.
1676 fi
1677 # Remove unnecessary trailing slashes from srcdir.
1678 # Double slashes in file names in object file debugging info
1679 # mess up M-x gdb in Emacs.
1680 case $srcdir in
1681 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1682 esac
1683 for ac_var in $ac_precious_vars; do
1684   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1685   eval ac_env_${ac_var}_value=\$${ac_var}
1686   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1687   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1688 done
1689
1690 #
1691 # Report the --help message.
1692 #
1693 if test "$ac_init_help" = "long"; then
1694   # Omit some internal or obsolete options to make the list less imposing.
1695   # This message is too long to be a string in the A/UX 3.1 sh.
1696   cat <<_ACEOF
1697 \`configure' configures ImageMagick 6.6.6 to adapt to many kinds of systems.
1698
1699 Usage: $0 [OPTION]... [VAR=VALUE]...
1700
1701 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1702 VAR=VALUE.  See below for descriptions of some of the useful variables.
1703
1704 Defaults for the options are specified in brackets.
1705
1706 Configuration:
1707   -h, --help              display this help and exit
1708       --help=short        display options specific to this package
1709       --help=recursive    display the short help of all the included packages
1710   -V, --version           display version information and exit
1711   -q, --quiet, --silent   do not print \`checking ...' messages
1712       --cache-file=FILE   cache test results in FILE [disabled]
1713   -C, --config-cache      alias for \`--cache-file=config.cache'
1714   -n, --no-create         do not create output files
1715       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1716
1717 Installation directories:
1718   --prefix=PREFIX         install architecture-independent files in PREFIX
1719                           [$ac_default_prefix]
1720   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1721                           [PREFIX]
1722
1723 By default, \`make install' will install all the files in
1724 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1725 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1726 for instance \`--prefix=\$HOME'.
1727
1728 For better control, use the options below.
1729
1730 Fine tuning of the installation directories:
1731   --bindir=DIR            user executables [EPREFIX/bin]
1732   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1733   --libexecdir=DIR        program executables [EPREFIX/libexec]
1734   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1735   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1736   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1737   --libdir=DIR            object code libraries [EPREFIX/lib]
1738   --includedir=DIR        C header files [PREFIX/include]
1739   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1740   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1741   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1742   --infodir=DIR           info documentation [DATAROOTDIR/info]
1743   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1744   --mandir=DIR            man documentation [DATAROOTDIR/man]
1745   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1746   --htmldir=DIR           html documentation [DOCDIR]
1747   --dvidir=DIR            dvi documentation [DOCDIR]
1748   --pdfdir=DIR            pdf documentation [DOCDIR]
1749   --psdir=DIR             ps documentation [DOCDIR]
1750 _ACEOF
1751
1752   cat <<\_ACEOF
1753
1754 Program names:
1755   --program-prefix=PREFIX            prepend PREFIX to installed program names
1756   --program-suffix=SUFFIX            append SUFFIX to installed program names
1757   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1758
1759 X features:
1760   --x-includes=DIR    X include files are in DIR
1761   --x-libraries=DIR   X library files are in DIR
1762
1763 System types:
1764   --build=BUILD     configure for building on BUILD [guessed]
1765   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1766   --target=TARGET   configure for building compilers for TARGET [HOST]
1767 _ACEOF
1768 fi
1769
1770 if test -n "$ac_init_help"; then
1771   case $ac_init_help in
1772      short | recursive ) echo "Configuration of ImageMagick 6.6.6:";;
1773    esac
1774   cat <<\_ACEOF
1775
1776 Optional Features:
1777   --disable-option-checking  ignore unrecognized --enable/--with options
1778   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1779   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1780   --enable-silent-rules          less verbose build output (undo: `make V=1')
1781   --disable-silent-rules         verbose build output (undo: `make V=0')
1782   --disable-dependency-tracking  speeds up one-time build
1783   --enable-dependency-tracking   do not reject slow dependency extractors
1784   --bounds-checking       enable run-time bounds-checking
1785   --enable-osx-universal-binary
1786                           build universal binary on OS X [[default=no]]
1787   --disable-openmp        do not use OpenMP
1788   --disable-opencl        do not use OpenCL
1789   --disable-largefile     omit support for large files
1790   --enable-shared[=PKGS]  build shared libraries [default=yes]
1791   --enable-static[=PKGS]  build static libraries [default=yes]
1792   --enable-fast-install[=PKGS]
1793                           optimize for fast installation [default=yes]
1794   --disable-libtool-lock  avoid locking (might break parallel builds)
1795   --enable-ltdl-install   install libltdl
1796   --enable-delegate-build look for delegate libraries in build directory
1797   --disable-deprecated    exclude deprecated methods in MagickCore and
1798                           MagickWand API's
1799   --disable-installed     Formally install ImageMagick under PREFIX
1800   --disable-cipher        disable enciphering and deciphering image pixels
1801   --enable-embeddable     enable self-contained, embeddable,
1802                           zero-configuration ImageMagick
1803   --enable-hdri           accurately represent the wide range of intensity
1804                           levels found in real scenes
1805   --disable-assert        disable assert() statements in build
1806   --enable-maintainer-mode  enable make rules and dependencies not useful
1807                           (and sometimes confusing) to the casual installer
1808   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1809   --enable-efence         enable 'efence' memory debug support
1810   --enable-prof           enable 'prof' profiling support
1811   --enable-gprof          enable 'gprof' profiling support
1812   --enable-gcov           enable 'gcov' profiling support
1813   --disable-assert        turn off assertions
1814
1815 Optional Packages:
1816   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1817   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1818   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1819   --with-dmalloc          use dmalloc, as in
1820                           http://www.dmalloc.com/dmalloc.tar.gz
1821   --without-threads       disable threads support
1822   --with-pic              try to use only PIC/non-PIC objects [default=use
1823                           both]
1824   --with-included-ltdl    use the GNU ltdl sources included here
1825   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1826   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1827   --with-modules          enable building dynamically loadable modules
1828   --with-method-prefix=PREFIX
1829                           prefix MagickCore API methods
1830   --with-quantum-depth=DEPTH
1831                           number of bits in a pixel quantum (default 16)
1832   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1833                           memory)
1834   --with-frozenpaths      freeze delegate paths
1835   --without-magick-plus-plus
1836                           disable build/install of Magick++
1837   --with-perl             enable build/install of PerlMagick
1838   --with-perl-options=OPTIONS
1839                           options to pass on command-line when generating
1840                           PerlMagick's build file
1841   --with-umem             enable umem memory allocation library support
1842   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1843   --without-bzlib         disable BZLIB support
1844   --with-x                use the X Window System
1845   --without-zlib          disable ZLIB support
1846   --with-autotrace        enable autotrace support
1847   --without-dps           disable Display Postscript support
1848   --without-djvu          disable DjVu support
1849   --with-dejavu-font-dir=DIR
1850                           DejaVu font directory
1851   --without-fftw          disable FFTW support
1852   --without-fpx           disable FlashPIX support
1853   --without-fontconfig    disable fontconfig support
1854   --without-freetype      disable Freetype support
1855   --without-gslib         enable Ghostscript library support
1856   --with-fontpath=DIR     prepend to default font search path
1857   --with-gs-font-dir=DIR  Ghostscript font directory
1858   --without-gvc           disable GVC support
1859   --without-jbig          disable JBIG support
1860   --without-jpeg          disable JPEG support
1861   --without-jp2           disable JPEG-2000 support
1862   --without-lcms          disable lcms (v1.1X) support
1863   --without-lcms2         disable lcms (v2.X) support
1864   --without-lqr           disable Liquid Rescale support
1865   --without-lzma          disable LZMA support
1866   --without-openexr       disable OpenEXR support
1867   --without-png           disable PNG support
1868   --without-rsvg          disable RSVG support
1869   --without-tiff          disable TIFF support
1870   --with-windows-font-dir=DIR
1871                           directory containing MS-Windows fonts
1872   --without-wmf           disable WMF support
1873   --without-xml           disable XML support
1874
1875 Some influential environment variables:
1876   CC          C compiler command
1877   CFLAGS      C compiler flags
1878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1879               nonstandard directory <lib dir>
1880   LIBS        libraries to pass to the linker, e.g. -l<library>
1881   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1882               you have headers in a nonstandard directory <include dir>
1883   CPP         C preprocessor
1884   CXX         C++ compiler command
1885   CXXFLAGS    C++ compiler flags
1886   PKG_CONFIG  path to pkg-config utility
1887   CXXCPP      C++ preprocessor
1888   XMKMF       Path to xmkmf, Makefile generator for X Window System
1889   AUTOTRACE_CFLAGS
1890               C compiler flags for AUTOTRACE, overriding pkg-config
1891   AUTOTRACE_LIBS
1892               linker flags for AUTOTRACE, overriding pkg-config
1893   FONTCONFIG_CFLAGS
1894               C compiler flags for FONTCONFIG, overriding pkg-config
1895   FONTCONFIG_LIBS
1896               linker flags for FONTCONFIG, overriding pkg-config
1897   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1898   GVC_LIBS    linker flags for GVC, overriding pkg-config
1899   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1900   LQR_LIBS    linker flags for LQR, overriding pkg-config
1901   OPENEXR_CFLAGS
1902               C compiler flags for OPENEXR, overriding pkg-config
1903   OPENEXR_LIBS
1904               linker flags for OPENEXR, overriding pkg-config
1905   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1906   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1907   CAIRO_SVG_CFLAGS
1908               C compiler flags for CAIRO_SVG, overriding pkg-config
1909   CAIRO_SVG_LIBS
1910               linker flags for CAIRO_SVG, overriding pkg-config
1911
1912 Use these variables to override the choices made by `configure' or to help
1913 it to find libraries and programs with nonstandard names/locations.
1914
1915 Report bugs to <http://www.imagemagick.org>.
1916 _ACEOF
1917 ac_status=$?
1918 fi
1919
1920 if test "$ac_init_help" = "recursive"; then
1921   # If there are subdirs, report their specific --help.
1922   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1923     test -d "$ac_dir" ||
1924       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925       continue
1926     ac_builddir=.
1927
1928 case "$ac_dir" in
1929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1930 *)
1931   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1932   # A ".." for each directory in $ac_dir_suffix.
1933   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1934   case $ac_top_builddir_sub in
1935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1937   esac ;;
1938 esac
1939 ac_abs_top_builddir=$ac_pwd
1940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1941 # for backward compatibility:
1942 ac_top_builddir=$ac_top_build_prefix
1943
1944 case $srcdir in
1945   .)  # We are building in place.
1946     ac_srcdir=.
1947     ac_top_srcdir=$ac_top_builddir_sub
1948     ac_abs_top_srcdir=$ac_pwd ;;
1949   [\\/]* | ?:[\\/]* )  # Absolute name.
1950     ac_srcdir=$srcdir$ac_dir_suffix;
1951     ac_top_srcdir=$srcdir
1952     ac_abs_top_srcdir=$srcdir ;;
1953   *) # Relative name.
1954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1955     ac_top_srcdir=$ac_top_build_prefix$srcdir
1956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1957 esac
1958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1959
1960     cd "$ac_dir" || { ac_status=$?; continue; }
1961     # Check for guested configure.
1962     if test -f "$ac_srcdir/configure.gnu"; then
1963       echo &&
1964       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1965     elif test -f "$ac_srcdir/configure"; then
1966       echo &&
1967       $SHELL "$ac_srcdir/configure" --help=recursive
1968     else
1969       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1970     fi || ac_status=$?
1971     cd "$ac_pwd" || { ac_status=$?; break; }
1972   done
1973 fi
1974
1975 test -n "$ac_init_help" && exit $ac_status
1976 if $ac_init_version; then
1977   cat <<\_ACEOF
1978 ImageMagick configure 6.6.6
1979 generated by GNU Autoconf 2.66
1980
1981 Copyright (C) 2010 Free Software Foundation, Inc.
1982 This configure script is free software; the Free Software Foundation
1983 gives unlimited permission to copy, distribute and modify it.
1984 _ACEOF
1985   exit
1986 fi
1987
1988 ## ------------------------ ##
1989 ## Autoconf initialization. ##
1990 ## ------------------------ ##
1991
1992 # ac_fn_c_try_compile LINENO
1993 # --------------------------
1994 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_c_try_compile ()
1996 {
1997   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998   rm -f conftest.$ac_objext
1999   if { { ac_try="$ac_compile"
2000 case "(($ac_try" in
2001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002   *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006   (eval "$ac_compile") 2>conftest.err
2007   ac_status=$?
2008   if test -s conftest.err; then
2009     grep -v '^ *+' conftest.err >conftest.er1
2010     cat conftest.er1 >&5
2011     mv -f conftest.er1 conftest.err
2012   fi
2013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014   test $ac_status = 0; } && {
2015          test -z "$ac_c_werror_flag" ||
2016          test ! -s conftest.err
2017        } && test -s conftest.$ac_objext; then :
2018   ac_retval=0
2019 else
2020   $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023         ac_retval=1
2024 fi
2025   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026   as_fn_set_status $ac_retval
2027
2028 } # ac_fn_c_try_compile
2029
2030 # ac_fn_c_try_cpp LINENO
2031 # ----------------------
2032 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2033 ac_fn_c_try_cpp ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   if { { ac_try="$ac_cpp conftest.$ac_ext"
2037 case "(($ac_try" in
2038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039   *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2044   ac_status=$?
2045   if test -s conftest.err; then
2046     grep -v '^ *+' conftest.err >conftest.er1
2047     cat conftest.er1 >&5
2048     mv -f conftest.er1 conftest.err
2049   fi
2050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051   test $ac_status = 0; } >/dev/null && {
2052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2053          test ! -s conftest.err
2054        }; then :
2055   ac_retval=0
2056 else
2057   $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2059
2060     ac_retval=1
2061 fi
2062   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063   as_fn_set_status $ac_retval
2064
2065 } # ac_fn_c_try_cpp
2066
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2071 # accordingly.
2072 ac_fn_c_check_header_mongrel ()
2073 {
2074   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075   if eval "test \"\${$3+set}\"" = set; then :
2076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval "test \"\${$3+set}\"" = set; then :
2079   $as_echo_n "(cached) " >&6
2080 fi
2081 eval ac_res=\$$3
2082                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 else
2085   # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   ac_header_compiler=yes
2095 else
2096   ac_header_compiler=no
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2101
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110   ac_header_preproc=yes
2111 else
2112   ac_header_preproc=no
2113 fi
2114 rm -f conftest.err conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2117
2118 # So?  What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2120   yes:no: )
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125     ;;
2126   no:yes:* )
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 ( $as_echo "## ----------------------------------------- ##
2138 ## Report this to http://www.imagemagick.org ##
2139 ## ----------------------------------------- ##"
2140      ) | sed "s/^/$as_me: WARNING:     /" >&2
2141     ;;
2142 esac
2143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval "test \"\${$3+set}\"" = set; then :
2146   $as_echo_n "(cached) " >&6
2147 else
2148   eval "$3=\$ac_header_compiler"
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 fi
2154   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155
2156 } # ac_fn_c_check_header_mongrel
2157
2158 # ac_fn_c_try_run LINENO
2159 # ----------------------
2160 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2161 # that executables *can* be run.
2162 ac_fn_c_try_run ()
2163 {
2164   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165   if { { ac_try="$ac_link"
2166 case "(($ac_try" in
2167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168   *) ac_try_echo=$ac_try;;
2169 esac
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172   (eval "$ac_link") 2>&5
2173   ac_status=$?
2174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2176   { { case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_try") 2>&5
2183   ac_status=$?
2184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185   test $ac_status = 0; }; }; then :
2186   ac_retval=0
2187 else
2188   $as_echo "$as_me: program exited with status $ac_status" >&5
2189        $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192        ac_retval=$ac_status
2193 fi
2194   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2195   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196   as_fn_set_status $ac_retval
2197
2198 } # ac_fn_c_try_run
2199
2200 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2201 # -------------------------------------------------------
2202 # Tests whether HEADER exists and can be compiled using the include files in
2203 # INCLUDES, setting the cache variable VAR accordingly.
2204 ac_fn_c_check_header_compile ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval "test \"\${$3+set}\"" = set; then :
2210   $as_echo_n "(cached) " >&6
2211 else
2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h.  */
2214 $4
2215 #include <$2>
2216 _ACEOF
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218   eval "$3=yes"
2219 else
2220   eval "$3=no"
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 fi
2224 eval ac_res=\$$3
2225                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228
2229 } # ac_fn_c_check_header_compile
2230
2231 # ac_fn_cxx_try_compile LINENO
2232 # ----------------------------
2233 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_cxx_try_compile ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   rm -f conftest.$ac_objext
2238   if { { ac_try="$ac_compile"
2239 case "(($ac_try" in
2240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241   *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245   (eval "$ac_compile") 2>conftest.err
2246   ac_status=$?
2247   if test -s conftest.err; then
2248     grep -v '^ *+' conftest.err >conftest.er1
2249     cat conftest.er1 >&5
2250     mv -f conftest.er1 conftest.err
2251   fi
2252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253   test $ac_status = 0; } && {
2254          test -z "$ac_cxx_werror_flag" ||
2255          test ! -s conftest.err
2256        } && test -s conftest.$ac_objext; then :
2257   ac_retval=0
2258 else
2259   $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262         ac_retval=1
2263 fi
2264   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265   as_fn_set_status $ac_retval
2266
2267 } # ac_fn_cxx_try_compile
2268
2269 # ac_fn_c_try_link LINENO
2270 # -----------------------
2271 # Try to link conftest.$ac_ext, and return whether this succeeded.
2272 ac_fn_c_try_link ()
2273 {
2274   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275   rm -f conftest.$ac_objext conftest$ac_exeext
2276   if { { ac_try="$ac_link"
2277 case "(($ac_try" in
2278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279   *) ac_try_echo=$ac_try;;
2280 esac
2281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282 $as_echo "$ac_try_echo"; } >&5
2283   (eval "$ac_link") 2>conftest.err
2284   ac_status=$?
2285   if test -s conftest.err; then
2286     grep -v '^ *+' conftest.err >conftest.er1
2287     cat conftest.er1 >&5
2288     mv -f conftest.er1 conftest.err
2289   fi
2290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291   test $ac_status = 0; } && {
2292          test -z "$ac_c_werror_flag" ||
2293          test ! -s conftest.err
2294        } && test -s conftest$ac_exeext && {
2295          test "$cross_compiling" = yes ||
2296          $as_test_x conftest$ac_exeext
2297        }; then :
2298   ac_retval=0
2299 else
2300   $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303         ac_retval=1
2304 fi
2305   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2306   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2307   # interfere with the next link command; also delete a directory that is
2308   # left behind by Apple's compiler.  We do this before executing the actions.
2309   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2310   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311   as_fn_set_status $ac_retval
2312
2313 } # ac_fn_c_try_link
2314
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if eval "test \"\${$3+set}\"" = set; then :
2324   $as_echo_n "(cached) " >&6
2325 else
2326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2330 #define $2 innocuous_$2
2331
2332 /* System header to define __stub macros and hopefully few prototypes,
2333     which can conflict with char $2 (); below.
2334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335     <limits.h> exists even on freestanding compilers.  */
2336
2337 #ifdef __STDC__
2338 # include <limits.h>
2339 #else
2340 # include <assert.h>
2341 #endif
2342
2343 #undef $2
2344
2345 /* Override any GCC internal prototype to avoid an error.
2346    Use char because int might match the return type of a GCC
2347    builtin and then its argument prototype would still apply.  */
2348 #ifdef __cplusplus
2349 extern "C"
2350 #endif
2351 char $2 ();
2352 /* The GNU C library defines this for functions which it implements
2353     to always fail with ENOSYS.  Some functions are actually named
2354     something starting with __ and the normal name is an alias.  */
2355 #if defined __stub_$2 || defined __stub___$2
2356 choke me
2357 #endif
2358
2359 int
2360 main ()
2361 {
2362 return $2 ();
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_link "$LINENO"; then :
2368   eval "$3=yes"
2369 else
2370   eval "$3=no"
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext \
2373     conftest$ac_exeext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_c_check_func
2381
2382 # ac_fn_cxx_try_cpp LINENO
2383 # ------------------------
2384 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_cpp ()
2386 {
2387   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388   if { { ac_try="$ac_cpp conftest.$ac_ext"
2389 case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2396   ac_status=$?
2397   if test -s conftest.err; then
2398     grep -v '^ *+' conftest.err >conftest.er1
2399     cat conftest.er1 >&5
2400     mv -f conftest.er1 conftest.err
2401   fi
2402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403   test $ac_status = 0; } >/dev/null && {
2404          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2405          test ! -s conftest.err
2406        }; then :
2407   ac_retval=0
2408 else
2409   $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412     ac_retval=1
2413 fi
2414   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415   as_fn_set_status $ac_retval
2416
2417 } # ac_fn_cxx_try_cpp
2418
2419 # ac_fn_cxx_try_link LINENO
2420 # -------------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2422 ac_fn_cxx_try_link ()
2423 {
2424   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425   rm -f conftest.$ac_objext conftest$ac_exeext
2426   if { { ac_try="$ac_link"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433   (eval "$ac_link") 2>conftest.err
2434   ac_status=$?
2435   if test -s conftest.err; then
2436     grep -v '^ *+' conftest.err >conftest.er1
2437     cat conftest.er1 >&5
2438     mv -f conftest.er1 conftest.err
2439   fi
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; } && {
2442          test -z "$ac_cxx_werror_flag" ||
2443          test ! -s conftest.err
2444        } && test -s conftest$ac_exeext && {
2445          test "$cross_compiling" = yes ||
2446          $as_test_x conftest$ac_exeext
2447        }; then :
2448   ac_retval=0
2449 else
2450   $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453         ac_retval=1
2454 fi
2455   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457   # interfere with the next link command; also delete a directory that is
2458   # left behind by Apple's compiler.  We do this before executing the actions.
2459   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461   as_fn_set_status $ac_retval
2462
2463 } # ac_fn_cxx_try_link
2464
2465 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2466 # ---------------------------------------------
2467 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2468 # accordingly.
2469 ac_fn_c_check_decl ()
2470 {
2471   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472   as_decl_name=`echo $2|sed 's/ *(.*//'`
2473   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2475 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2476 if eval "test \"\${$3+set}\"" = set; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h.  */
2481 $4
2482 int
2483 main ()
2484 {
2485 #ifndef $as_decl_name
2486 #ifdef __cplusplus
2487   (void) $as_decl_use;
2488 #else
2489   (void) $as_decl_name;
2490 #endif
2491 #endif
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498   eval "$3=yes"
2499 else
2500   eval "$3=no"
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 eval ac_res=\$$3
2505                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508
2509 } # ac_fn_c_check_decl
2510
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2516 {
2517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if eval "test \"\${$3+set}\"" = set; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   eval "$3=no"
2524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 $4
2527 int
2528 main ()
2529 {
2530 if (sizeof ($2))
2531          return 0;
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 if (sizeof (($2)))
2544             return 0;
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 if ac_fn_c_try_compile "$LINENO"; then :
2550
2551 else
2552   eval "$3=yes"
2553 fi
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 eval ac_res=\$$3
2559                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562
2563 } # ac_fn_c_check_type
2564
2565 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2566 # ----------------------------------------------------
2567 # Tries to find if the field MEMBER exists in type AGGR, after including
2568 # INCLUDES, setting cache variable VAR accordingly.
2569 ac_fn_c_check_member ()
2570 {
2571   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2573 $as_echo_n "checking for $2.$3... " >&6; }
2574 if eval "test \"\${$4+set}\"" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h.  */
2579 $5
2580 int
2581 main ()
2582 {
2583 static $2 ac_aggr;
2584 if (ac_aggr.$3)
2585 return 0;
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_c_try_compile "$LINENO"; then :
2591   eval "$4=yes"
2592 else
2593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h.  */
2595 $5
2596 int
2597 main ()
2598 {
2599 static $2 ac_aggr;
2600 if (sizeof ac_aggr.$3)
2601 return 0;
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607   eval "$4=yes"
2608 else
2609   eval "$4=no"
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 eval ac_res=\$$4
2616                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619
2620 } # ac_fn_c_check_member
2621
2622 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2623 # --------------------------------------------
2624 # Tries to find the compile-time value of EXPR in a program that includes
2625 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2626 # computed
2627 ac_fn_c_compute_int ()
2628 {
2629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630   if test "$cross_compiling" = yes; then
2631     # Depending upon the size, compute the lo and hi bounds.
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h.  */
2634 $4
2635 int
2636 main ()
2637 {
2638 static int test_array [1 - 2 * !(($2) >= 0)];
2639 test_array [0] = 0
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_c_try_compile "$LINENO"; then :
2646   ac_lo=0 ac_mid=0
2647   while :; do
2648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h.  */
2650 $4
2651 int
2652 main ()
2653 {
2654 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2655 test_array [0] = 0
2656
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 if ac_fn_c_try_compile "$LINENO"; then :
2662   ac_hi=$ac_mid; break
2663 else
2664   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2665                         if test $ac_lo -le $ac_mid; then
2666                           ac_lo= ac_hi=
2667                           break
2668                         fi
2669                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2670 fi
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672   done
2673 else
2674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h.  */
2676 $4
2677 int
2678 main ()
2679 {
2680 static int test_array [1 - 2 * !(($2) < 0)];
2681 test_array [0] = 0
2682
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_compile "$LINENO"; then :
2688   ac_hi=-1 ac_mid=-1
2689   while :; do
2690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h.  */
2692 $4
2693 int
2694 main ()
2695 {
2696 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2697 test_array [0] = 0
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 if ac_fn_c_try_compile "$LINENO"; then :
2704   ac_lo=$ac_mid; break
2705 else
2706   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2707                         if test $ac_mid -le $ac_hi; then
2708                           ac_lo= ac_hi=
2709                           break
2710                         fi
2711                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714   done
2715 else
2716   ac_lo= ac_hi=
2717 fi
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 # Binary search between lo and hi bounds.
2722 while test "x$ac_lo" != "x$ac_hi"; do
2723   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h.  */
2726 $4
2727 int
2728 main ()
2729 {
2730 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731 test_array [0] = 0
2732
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738   ac_hi=$ac_mid
2739 else
2740   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2741 fi
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 done
2744 case $ac_lo in #((
2745 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2746 '') ac_retval=1 ;;
2747 esac
2748   else
2749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h.  */
2751 $4
2752 static long int longval () { return $2; }
2753 static unsigned long int ulongval () { return $2; }
2754 #include <stdio.h>
2755 #include <stdlib.h>
2756 int
2757 main ()
2758 {
2759
2760   FILE *f = fopen ("conftest.val", "w");
2761   if (! f)
2762     return 1;
2763   if (($2) < 0)
2764     {
2765       long int i = longval ();
2766       if (i != ($2))
2767         return 1;
2768       fprintf (f, "%ld", i);
2769     }
2770   else
2771     {
2772       unsigned long int i = ulongval ();
2773       if (i != ($2))
2774         return 1;
2775       fprintf (f, "%lu", i);
2776     }
2777   /* Do not output a trailing newline, as this causes \r\n confusion
2778      on some platforms.  */
2779   return ferror (f) || fclose (f) != 0;
2780
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 if ac_fn_c_try_run "$LINENO"; then :
2786   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2787 else
2788   ac_retval=1
2789 fi
2790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2791   conftest.$ac_objext conftest.beam conftest.$ac_ext
2792 rm -f conftest.val
2793
2794   fi
2795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2796   as_fn_set_status $ac_retval
2797
2798 } # ac_fn_c_compute_int
2799
2800 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2801 # ---------------------------------------------------------
2802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2803 # the include files in INCLUDES and setting the cache variable VAR
2804 # accordingly.
2805 ac_fn_cxx_check_header_mongrel ()
2806 {
2807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808   if eval "test \"\${$3+set}\"" = set; then :
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2810 $as_echo_n "checking for $2... " >&6; }
2811 if eval "test \"\${$3+set}\"" = set; then :
2812   $as_echo_n "(cached) " >&6
2813 fi
2814 eval ac_res=\$$3
2815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816 $as_echo "$ac_res" >&6; }
2817 else
2818   # Is the header compilable?
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2820 $as_echo_n "checking $2 usability... " >&6; }
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 #include <$2>
2825 _ACEOF
2826 if ac_fn_cxx_try_compile "$LINENO"; then :
2827   ac_header_compiler=yes
2828 else
2829   ac_header_compiler=no
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2833 $as_echo "$ac_header_compiler" >&6; }
2834
2835 # Is the header present?
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2837 $as_echo_n "checking $2 presence... " >&6; }
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h.  */
2840 #include <$2>
2841 _ACEOF
2842 if ac_fn_cxx_try_cpp "$LINENO"; then :
2843   ac_header_preproc=yes
2844 else
2845   ac_header_preproc=no
2846 fi
2847 rm -f conftest.err conftest.$ac_ext
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2849 $as_echo "$ac_header_preproc" >&6; }
2850
2851 # So?  What about this header?
2852 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2853   yes:no: )
2854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2858     ;;
2859   no:yes:* )
2860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2863 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2867 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2870 ( $as_echo "## ----------------------------------------- ##
2871 ## Report this to http://www.imagemagick.org ##
2872 ## ----------------------------------------- ##"
2873      ) | sed "s/^/$as_me: WARNING:     /" >&2
2874     ;;
2875 esac
2876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877 $as_echo_n "checking for $2... " >&6; }
2878 if eval "test \"\${$3+set}\"" = set; then :
2879   $as_echo_n "(cached) " >&6
2880 else
2881   eval "$3=\$ac_header_compiler"
2882 fi
2883 eval ac_res=\$$3
2884                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886 fi
2887   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2888
2889 } # ac_fn_cxx_check_header_mongrel
2890 cat >config.log <<_ACEOF
2891 This file contains any messages produced by compilers while
2892 running configure, to aid debugging if configure makes a mistake.
2893
2894 It was created by ImageMagick $as_me 6.6.6, which was
2895 generated by GNU Autoconf 2.66.  Invocation command line was
2896
2897   $ $0 $@
2898
2899 _ACEOF
2900 exec 5>>config.log
2901 {
2902 cat <<_ASUNAME
2903 ## --------- ##
2904 ## Platform. ##
2905 ## --------- ##
2906
2907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2912
2913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2914 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2915
2916 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2917 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2919 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2920 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2921 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2922 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2923
2924 _ASUNAME
2925
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     $as_echo "PATH: $as_dir"
2932   done
2933 IFS=$as_save_IFS
2934
2935 } >&5
2936
2937 cat >&5 <<_ACEOF
2938
2939
2940 ## ----------- ##
2941 ## Core tests. ##
2942 ## ----------- ##
2943
2944 _ACEOF
2945
2946
2947 # Keep a trace of the command line.
2948 # Strip out --no-create and --no-recursion so they do not pile up.
2949 # Strip out --silent because we don't want to record it for future runs.
2950 # Also quote any args containing shell meta-characters.
2951 # Make two passes to allow for proper duplicate-argument suppression.
2952 ac_configure_args=
2953 ac_configure_args0=
2954 ac_configure_args1=
2955 ac_must_keep_next=false
2956 for ac_pass in 1 2
2957 do
2958   for ac_arg
2959   do
2960     case $ac_arg in
2961     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2962     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2963     | -silent | --silent | --silen | --sile | --sil)
2964       continue ;;
2965     *\'*)
2966       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2967     esac
2968     case $ac_pass in
2969     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2970     2)
2971       as_fn_append ac_configure_args1 " '$ac_arg'"
2972       if test $ac_must_keep_next = true; then
2973         ac_must_keep_next=false # Got value, back to normal.
2974       else
2975         case $ac_arg in
2976           *=* | --config-cache | -C | -disable-* | --disable-* \
2977           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2978           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2979           | -with-* | --with-* | -without-* | --without-* | --x)
2980             case "$ac_configure_args0 " in
2981               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2982             esac
2983             ;;
2984           -* ) ac_must_keep_next=true ;;
2985         esac
2986       fi
2987       as_fn_append ac_configure_args " '$ac_arg'"
2988       ;;
2989     esac
2990   done
2991 done
2992 { ac_configure_args0=; unset ac_configure_args0;}
2993 { ac_configure_args1=; unset ac_configure_args1;}
2994
2995 # When interrupted or exit'd, cleanup temporary files, and complete
2996 # config.log.  We remove comments because anyway the quotes in there
2997 # would cause problems or look ugly.
2998 # WARNING: Use '\'' to represent an apostrophe within the trap.
2999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3000 trap 'exit_status=$?
3001   # Save into config.log some information that might help in debugging.
3002   {
3003     echo
3004
3005     $as_echo "## ---------------- ##
3006 ## Cache variables. ##
3007 ## ---------------- ##"
3008     echo
3009     # The following way of writing the cache mishandles newlines in values,
3010 (
3011   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012     eval ac_val=\$$ac_var
3013     case $ac_val in #(
3014     *${as_nl}*)
3015       case $ac_var in #(
3016       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3018       esac
3019       case $ac_var in #(
3020       _ | IFS | as_nl) ;; #(
3021       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3022       *) { eval $ac_var=; unset $ac_var;} ;;
3023       esac ;;
3024     esac
3025   done
3026   (set) 2>&1 |
3027     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028     *${as_nl}ac_space=\ *)
3029       sed -n \
3030         "s/'\''/'\''\\\\'\'''\''/g;
3031           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3032       ;; #(
3033     *)
3034       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3035       ;;
3036     esac |
3037     sort
3038 )
3039     echo
3040
3041     $as_echo "## ----------------- ##
3042 ## Output variables. ##
3043 ## ----------------- ##"
3044     echo
3045     for ac_var in $ac_subst_vars
3046     do
3047       eval ac_val=\$$ac_var
3048       case $ac_val in
3049       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3050       esac
3051       $as_echo "$ac_var='\''$ac_val'\''"
3052     done | sort
3053     echo
3054
3055     if test -n "$ac_subst_files"; then
3056       $as_echo "## ------------------- ##
3057 ## File substitutions. ##
3058 ## ------------------- ##"
3059       echo
3060       for ac_var in $ac_subst_files
3061       do
3062         eval ac_val=\$$ac_var
3063         case $ac_val in
3064         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3065         esac
3066         $as_echo "$ac_var='\''$ac_val'\''"
3067       done | sort
3068       echo
3069     fi
3070
3071     if test -s confdefs.h; then
3072       $as_echo "## ----------- ##
3073 ## confdefs.h. ##
3074 ## ----------- ##"
3075       echo
3076       cat confdefs.h
3077       echo
3078     fi
3079     test "$ac_signal" != 0 &&
3080       $as_echo "$as_me: caught signal $ac_signal"
3081     $as_echo "$as_me: exit $exit_status"
3082   } >&5
3083   rm -f core *.core core.conftest.* &&
3084     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3085     exit $exit_status
3086 ' 0
3087 for ac_signal in 1 2 13 15; do
3088   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3089 done
3090 ac_signal=0
3091
3092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3093 rm -f -r conftest* confdefs.h
3094
3095 $as_echo "/* confdefs.h */" > confdefs.h
3096
3097 # Predefined preprocessor variables.
3098
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_NAME "$PACKAGE_NAME"
3101 _ACEOF
3102
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3105 _ACEOF
3106
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3109 _ACEOF
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_STRING "$PACKAGE_STRING"
3113 _ACEOF
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3117 _ACEOF
3118
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_URL "$PACKAGE_URL"
3121 _ACEOF
3122
3123
3124 # Let the site file select an alternate cache file if it wants to.
3125 # Prefer an explicitly selected file to automatically selected ones.
3126 ac_site_file1=NONE
3127 ac_site_file2=NONE
3128 if test -n "$CONFIG_SITE"; then
3129   # We do not want a PATH search for config.site.
3130   case $CONFIG_SITE in #((
3131     -*)  ac_site_file1=./$CONFIG_SITE;;
3132     */*) ac_site_file1=$CONFIG_SITE;;
3133     *)   ac_site_file1=./$CONFIG_SITE;;
3134   esac
3135 elif test "x$prefix" != xNONE; then
3136   ac_site_file1=$prefix/share/config.site
3137   ac_site_file2=$prefix/etc/config.site
3138 else
3139   ac_site_file1=$ac_default_prefix/share/config.site
3140   ac_site_file2=$ac_default_prefix/etc/config.site
3141 fi
3142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3143 do
3144   test "x$ac_site_file" = xNONE && continue
3145   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3148     sed 's/^/| /' "$ac_site_file" >&5
3149     . "$ac_site_file" \
3150       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "failed to load site script $ac_site_file
3153 See \`config.log' for more details" "$LINENO" 5; }
3154   fi
3155 done
3156
3157 if test -r "$cache_file"; then
3158   # Some versions of bash will fail to source /dev/null (special files
3159   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3160   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3161     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3162 $as_echo "$as_me: loading cache $cache_file" >&6;}
3163     case $cache_file in
3164       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3165       *)                      . "./$cache_file";;
3166     esac
3167   fi
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3170 $as_echo "$as_me: creating cache $cache_file" >&6;}
3171   >$cache_file
3172 fi
3173
3174 as_fn_append ac_header_list " stdlib.h"
3175 as_fn_append ac_header_list " unistd.h"
3176 as_fn_append ac_header_list " sys/param.h"
3177 # Check that the precious variables saved in the cache have kept the same
3178 # value.
3179 ac_cache_corrupted=false
3180 for ac_var in $ac_precious_vars; do
3181   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3182   eval ac_new_set=\$ac_env_${ac_var}_set
3183   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3184   eval ac_new_val=\$ac_env_${ac_var}_value
3185   case $ac_old_set,$ac_new_set in
3186     set,)
3187       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3188 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3189       ac_cache_corrupted=: ;;
3190     ,set)
3191       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3192 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3193       ac_cache_corrupted=: ;;
3194     ,);;
3195     *)
3196       if test "x$ac_old_val" != "x$ac_new_val"; then
3197         # differences in whitespace do not lead to failure.
3198         ac_old_val_w=`echo x $ac_old_val`
3199         ac_new_val_w=`echo x $ac_new_val`
3200         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3201           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3202 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3203           ac_cache_corrupted=:
3204         else
3205           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3206 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3207           eval $ac_var=\$ac_old_val
3208         fi
3209         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3210 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3211         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3212 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3213       fi;;
3214   esac
3215   # Pass precious variables to config.status.
3216   if test "$ac_new_set" = set; then
3217     case $ac_new_val in
3218     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3219     *) ac_arg=$ac_var=$ac_new_val ;;
3220     esac
3221     case " $ac_configure_args " in
3222       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3223       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3224     esac
3225   fi
3226 done
3227 if $ac_cache_corrupted; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3231 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3232   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3233 fi
3234 ## -------------------- ##
3235 ## Main body of script. ##
3236 ## -------------------- ##
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243
3244
3245
3246 ac_aux_dir=
3247 for ac_dir in config "$srcdir"/config; do
3248   if 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/install.sh"; then
3253     ac_aux_dir=$ac_dir
3254     ac_install_sh="$ac_aux_dir/install.sh -c"
3255     break
3256   elif test -f "$ac_dir/shtool"; then
3257     ac_aux_dir=$ac_dir
3258     ac_install_sh="$ac_aux_dir/shtool install -c"
3259     break
3260   fi
3261 done
3262 if test -z "$ac_aux_dir"; then
3263   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3264 fi
3265
3266 # These three variables are undocumented and unsupported,
3267 # and are intended to be withdrawn in a future Autoconf release.
3268 # They can cause serious problems if a builder's source tree is in a directory
3269 # whose full name contains unusual characters.
3270 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3271 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3272 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3273
3274
3275
3276
3277 ac_config_headers="$ac_config_headers config/config.h"
3278
3279
3280 ac_config_commands="$ac_config_commands magick/magick-config.h"
3281
3282 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"
3283
3284
3285 #
3286 # Save initial user-tunable values
3287 #
3288 USER_LIBS=$LIBS
3289 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3290   eval isset=\${$var+set}
3291     if test "$isset" = 'set'; then
3292         eval val=$`echo $var`
3293         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3294     fi
3295 done
3296
3297
3298 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3299
3300
3301 # Source file containing package/library versioning information.
3302 . ${srcdir}/version.sh
3303
3304 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3305 # Make sure we can run config.sub.
3306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3307   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3310 $as_echo_n "checking build system type... " >&6; }
3311 if test "${ac_cv_build+set}" = set; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   ac_build_alias=$build_alias
3315 test "x$ac_build_alias" = x &&
3316   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317 test "x$ac_build_alias" = x &&
3318   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3320   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3321
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324 $as_echo "$ac_cv_build" >&6; }
3325 case $ac_cv_build in
3326 *-*-*) ;;
3327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3328 esac
3329 build=$ac_cv_build
3330 ac_save_IFS=$IFS; IFS='-'
3331 set x $ac_cv_build
3332 shift
3333 build_cpu=$1
3334 build_vendor=$2
3335 shift; shift
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3338 build_os=$*
3339 IFS=$ac_save_IFS
3340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344 $as_echo_n "checking host system type... " >&6; }
3345 if test "${ac_cv_host+set}" = set; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test "x$host_alias" = x; then
3349   ac_cv_host=$ac_cv_build
3350 else
3351   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3352     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353 fi
3354
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3357 $as_echo "$ac_cv_host" >&6; }
3358 case $ac_cv_host in
3359 *-*-*) ;;
3360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3361 esac
3362 host=$ac_cv_host
3363 ac_save_IFS=$IFS; IFS='-'
3364 set x $ac_cv_host
3365 shift
3366 host_cpu=$1
3367 host_vendor=$2
3368 shift; shift
3369 # Remember, the first character of IFS is used to create $*,
3370 # except with old shells:
3371 host_os=$*
3372 IFS=$ac_save_IFS
3373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3377 $as_echo_n "checking target system type... " >&6; }
3378 if test "${ac_cv_target+set}" = set; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test "x$target_alias" = x; then
3382   ac_cv_target=$ac_cv_host
3383 else
3384   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3385     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3386 fi
3387
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3390 $as_echo "$ac_cv_target" >&6; }
3391 case $ac_cv_target in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3394 esac
3395 target=$ac_cv_target
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_target
3398 shift
3399 target_cpu=$1
3400 target_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 target_os=$*
3405 IFS=$ac_save_IFS
3406 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3407
3408
3409 # The aliases save the names the user supplied, while $host etc.
3410 # will get canonicalized.
3411 test -n "$target_alias" &&
3412   test "$program_prefix$program_suffix$program_transform_name" = \
3413     NONENONEs,x,x, &&
3414   program_prefix=${target_alias}-
3415
3416
3417
3418
3419
3420 MAGICK_TARGET_CPU=$target_cpu
3421
3422
3423 MAGICK_TARGET_VENDOR=$target_vendor
3424
3425
3426 MAGICK_TARGET_OS=$target_os
3427
3428
3429 # Substitute library versioning
3430 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3431
3432 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3433
3434
3435
3436 # Ensure that make can run correctly
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3438 $as_echo_n "checking whether build environment is sane... " >&6; }
3439 # Just in case
3440 sleep 1
3441 echo timestamp > conftest.file
3442 # Reject unsafe characters in $srcdir or the absolute working directory
3443 # name.  Accept space and tab only in the latter.
3444 am_lf='
3445 '
3446 case `pwd` in
3447   *[\\\"\#\$\&\'\`$am_lf]*)
3448     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3449 esac
3450 case $srcdir in
3451   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3452     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3453 esac
3454
3455 # Do `set' in a subshell so we don't clobber the current shell's
3456 # arguments.  Must try -L first in case configure is actually a
3457 # symlink; some systems play weird games with the mod time of symlinks
3458 # (eg FreeBSD returns the mod time of the symlink's containing
3459 # directory).
3460 if (
3461    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3462    if test "$*" = "X"; then
3463       # -L didn't work.
3464       set X `ls -t "$srcdir/configure" conftest.file`
3465    fi
3466    rm -f conftest.file
3467    if test "$*" != "X $srcdir/configure conftest.file" \
3468       && test "$*" != "X conftest.file $srcdir/configure"; then
3469
3470       # If neither matched, then we have a broken ls.  This can happen
3471       # if, for instance, CONFIG_SHELL is bash and it inherits a
3472       # broken ls alias from the environment.  This has actually
3473       # happened.  Such a system could not be considered "sane".
3474       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3475 alias in your environment" "$LINENO" 5
3476    fi
3477
3478    test "$2" = conftest.file
3479    )
3480 then
3481    # Ok.
3482    :
3483 else
3484    as_fn_error $? "newly created file is older than distributed files!
3485 Check your system clock" "$LINENO" 5
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3489
3490 am__api_version='1.11'
3491
3492 # Find a good install program.  We prefer a C program (faster),
3493 # so one script is as good as another.  But avoid the broken or
3494 # incompatible versions:
3495 # SysV /etc/install, /usr/sbin/install
3496 # SunOS /usr/etc/install
3497 # IRIX /sbin/install
3498 # AIX /bin/install
3499 # AmigaOS /C/install, which installs bootblocks on floppy discs
3500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3503 # OS/2's system install, which has a completely different semantic
3504 # ./install, which can be erroneously created by make from ./install.sh.
3505 # Reject install programs that cannot install multiple files.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3508 if test -z "$INSTALL"; then
3509 if test "${ac_cv_path_install+set}" = set; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     # Account for people who put trailing slashes in PATH elements.
3518 case $as_dir/ in #((
3519   ./ | .// | /[cC]/* | \
3520   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3521   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3522   /usr/ucb/* ) ;;
3523   *)
3524     # OSF1 and SCO ODT 3.0 have their own names for install.
3525     # Don't use installbsd from OSF since it installs stuff as root
3526     # by default.
3527     for ac_prog in ginstall scoinst install; do
3528       for ac_exec_ext in '' $ac_executable_extensions; do
3529         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3530           if test $ac_prog = install &&
3531             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532             # AIX install.  It has an incompatible calling convention.
3533             :
3534           elif test $ac_prog = install &&
3535             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3536             # program-specific install script used by HP pwplus--don't use.
3537             :
3538           else
3539             rm -rf conftest.one conftest.two conftest.dir
3540             echo one > conftest.one
3541             echo two > conftest.two
3542             mkdir conftest.dir
3543             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3544               test -s conftest.one && test -s conftest.two &&
3545               test -s conftest.dir/conftest.one &&
3546               test -s conftest.dir/conftest.two
3547             then
3548               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3549               break 3
3550             fi
3551           fi
3552         fi
3553       done
3554     done
3555     ;;
3556 esac
3557
3558   done
3559 IFS=$as_save_IFS
3560
3561 rm -rf conftest.one conftest.two conftest.dir
3562
3563 fi
3564   if test "${ac_cv_path_install+set}" = set; then
3565     INSTALL=$ac_cv_path_install
3566   else
3567     # As a last resort, use the slow shell script.  Don't cache a
3568     # value for INSTALL within a source directory, because that will
3569     # break other packages using the cache if that directory is
3570     # removed, or if the value is a relative name.
3571     INSTALL=$ac_install_sh
3572   fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3575 $as_echo "$INSTALL" >&6; }
3576
3577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3578 # It thinks the first close brace ends the variable substitution.
3579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3580
3581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3582
3583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3584
3585 test "$program_prefix" != NONE &&
3586   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3587 # Use a double $ so make ignores it.
3588 test "$program_suffix" != NONE &&
3589   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3590 # Double any \ or $.
3591 # By default was `s,x,x', remove it if useless.
3592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3594
3595 # expand $ac_aux_dir to an absolute path
3596 am_aux_dir=`cd $ac_aux_dir && pwd`
3597
3598 if test x"${MISSING+set}" != xset; then
3599   case $am_aux_dir in
3600   *\ * | *\     *)
3601     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3602   *)
3603     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3604   esac
3605 fi
3606 # Use eval to expand $SHELL
3607 if eval "$MISSING --run true"; then
3608   am_missing_run="$MISSING --run "
3609 else
3610   am_missing_run=
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3612 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3613 fi
3614
3615 if test x"${install_sh}" != xset; then
3616   case $am_aux_dir in
3617   *\ * | *\     *)
3618     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3619   *)
3620     install_sh="\${SHELL} $am_aux_dir/install-sh"
3621   esac
3622 fi
3623
3624 # Installed binaries are usually stripped using `strip' when the user
3625 # run `make install-strip'.  However `strip' might not be the right
3626 # tool to use in cross-compilation environments, therefore Automake
3627 # will honor the `STRIP' environment variable to overrule this program.
3628 if test "$cross_compiling" != no; then
3629   if test -n "$ac_tool_prefix"; then
3630   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}strip; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_STRIP+set}" = set; then :
3635   $as_echo_n "(cached) " >&6
3636 else
3637   if test -n "$STRIP"; then
3638   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645     for ac_exec_ext in '' $ac_executable_extensions; do
3646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649     break 2
3650   fi
3651 done
3652   done
3653 IFS=$as_save_IFS
3654
3655 fi
3656 fi
3657 STRIP=$ac_cv_prog_STRIP
3658 if test -n "$STRIP"; then
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3660 $as_echo "$STRIP" >&6; }
3661 else
3662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 fi
3665
3666
3667 fi
3668 if test -z "$ac_cv_prog_STRIP"; then
3669   ac_ct_STRIP=$STRIP
3670   # Extract the first word of "strip", so it can be a program name with args.
3671 set dummy strip; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   if test -n "$ac_ct_STRIP"; then
3678   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685     for ac_exec_ext in '' $ac_executable_extensions; do
3686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687     ac_cv_prog_ac_ct_STRIP="strip"
3688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692   done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3698 if test -n "$ac_ct_STRIP"; then
3699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3700 $as_echo "$ac_ct_STRIP" >&6; }
3701 else
3702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706   if test "x$ac_ct_STRIP" = x; then
3707     STRIP=":"
3708   else
3709     case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715     STRIP=$ac_ct_STRIP
3716   fi
3717 else
3718   STRIP="$ac_cv_prog_STRIP"
3719 fi
3720
3721 fi
3722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3723
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3726 if test -z "$MKDIR_P"; then
3727   if test "${ac_cv_path_mkdir+set}" = set; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3732 do
3733   IFS=$as_save_IFS
3734   test -z "$as_dir" && as_dir=.
3735     for ac_prog in mkdir gmkdir; do
3736          for ac_exec_ext in '' $ac_executable_extensions; do
3737            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3738            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3739              'mkdir (GNU coreutils) '* | \
3740              'mkdir (coreutils) '* | \
3741              'mkdir (fileutils) '4.1*)
3742                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3743                break 3;;
3744            esac
3745          done
3746        done
3747   done
3748 IFS=$as_save_IFS
3749
3750 fi
3751
3752   test -d ./--version && rmdir ./--version
3753   if test "${ac_cv_path_mkdir+set}" = set; then
3754     MKDIR_P="$ac_cv_path_mkdir -p"
3755   else
3756     # As a last resort, use the slow shell script.  Don't cache a
3757     # value for MKDIR_P within a source directory, because that will
3758     # break other packages using the cache if that directory is
3759     # removed, or if the value is a relative name.
3760     MKDIR_P="$ac_install_sh -d"
3761   fi
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3764 $as_echo "$MKDIR_P" >&6; }
3765
3766 mkdir_p="$MKDIR_P"
3767 case $mkdir_p in
3768   [\\/$]* | ?:[\\/]*) ;;
3769   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3770 esac
3771
3772 for ac_prog in gawk mawk nawk awk
3773 do
3774   # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_AWK+set}" = set; then :
3779   $as_echo_n "(cached) " >&6
3780 else
3781   if test -n "$AWK"; then
3782   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789     for ac_exec_ext in '' $ac_executable_extensions; do
3790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791     ac_cv_prog_AWK="$ac_prog"
3792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796   done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 AWK=$ac_cv_prog_AWK
3802 if test -n "$AWK"; then
3803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3804 $as_echo "$AWK" >&6; }
3805 else
3806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3808 fi
3809
3810
3811   test -n "$AWK" && break
3812 done
3813
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3816 set x ${MAKE-make}
3817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3818 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3819   $as_echo_n "(cached) " >&6
3820 else
3821   cat >conftest.make <<\_ACEOF
3822 SHELL = /bin/sh
3823 all:
3824         @echo '@@@%%%=$(MAKE)=@@@%%%'
3825 _ACEOF
3826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3828   *@@@%%%=?*=@@@%%%*)
3829     eval ac_cv_prog_make_${ac_make}_set=yes;;
3830   *)
3831     eval ac_cv_prog_make_${ac_make}_set=no;;
3832 esac
3833 rm -f conftest.make
3834 fi
3835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3838   SET_MAKE=
3839 else
3840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842   SET_MAKE="MAKE=${MAKE-make}"
3843 fi
3844
3845 rm -rf .tst 2>/dev/null
3846 mkdir .tst 2>/dev/null
3847 if test -d .tst; then
3848   am__leading_dot=.
3849 else
3850   am__leading_dot=_
3851 fi
3852 rmdir .tst 2>/dev/null
3853
3854 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3855   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3856   # is not polluted with repeated "-I."
3857   am__isrc=' -I$(srcdir)'
3858   # test to see if srcdir already configured
3859   if test -f $srcdir/config.status; then
3860     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3861   fi
3862 fi
3863
3864 # test whether we have cygpath
3865 if test -z "$CYGPATH_W"; then
3866   if (cygpath --version) >/dev/null 2>/dev/null; then
3867     CYGPATH_W='cygpath -w'
3868   else
3869     CYGPATH_W=echo
3870   fi
3871 fi
3872
3873
3874 # Define the identity of the package.
3875  PACKAGE=$PACKAGE_NAME
3876  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3877
3878
3879 # Some tools Automake needs.
3880
3881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3882
3883
3884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3885
3886
3887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3888
3889
3890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3891
3892
3893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3894
3895 # We need awk for the "check" target.  The system "awk" is bad on
3896 # some platforms.
3897 # Always define AMTAR for backward compatibility.
3898
3899 AMTAR=${AMTAR-"${am_missing_run}tar"}
3900
3901 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3902
3903
3904
3905
3906
3907
3908 # Enable support for silent build rules
3909 # Check whether --enable-silent-rules was given.
3910 if test "${enable_silent_rules+set}" = set; then :
3911   enableval=$enable_silent_rules;
3912 fi
3913
3914 case $enable_silent_rules in
3915 yes) AM_DEFAULT_VERBOSITY=0;;
3916 no)  AM_DEFAULT_VERBOSITY=1;;
3917 *)   AM_DEFAULT_VERBOSITY=0;;
3918 esac
3919 AM_BACKSLASH='\'
3920
3921
3922 MAGICK_LIB_VERSION="0x"
3923 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3924   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3925 fi
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3927 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3928   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3929 fi
3930 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3931 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3932   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3933 fi
3934 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3935
3936
3937 # Definition used to define MagickLibVersionText in version.h
3938 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3939
3940
3941 # Definition used to define MagickLibVersionNumber in version.h
3942 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3943
3944
3945 # Regenerate config.status if ChangeLog or version.sh is updated.
3946 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3947
3948
3949 PERLMAINCC=$CC
3950
3951 MAGICK_CFLAGS=''
3952 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3953 MAGICK_PCFLAGS=$CPPFLAGS_USER
3954 MAGICK_LDFLAGS=''
3955 MAGICK_LIBS=''
3956 MAGICK_FEATURES=''
3957
3958 #
3959 # Evaluate shell variable equivalents to Makefile directory variables
3960 #
3961 if test "x$prefix" = xNONE; then
3962     prefix=$ac_default_prefix
3963 fi
3964 # Let make expand exec_prefix.
3965 if test "x$exec_prefix" = xNONE; then
3966     exec_prefix='${prefix}'
3967 fi
3968
3969 #
3970 eval "eval PREFIX_DIR=${prefix}"
3971
3972 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3973
3974 eval "eval BIN_DIR=$bindir"
3975
3976 eval "eval SBIN_DIR=$sbindir"
3977
3978 eval "eval LIBEXEC_DIR=$libexecdir"
3979
3980 eval "eval DATA_DIR=$datadir"
3981
3982 eval "eval SYSCONF_DIR=$sysconfdir"
3983
3984 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3985
3986 eval "eval LOCALSTATE_DIR=$localstatedir"
3987
3988 eval "eval LIB_DIR=$libdir"
3989
3990 eval "eval INCLUDE_DIR=$includedir"
3991
3992 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3993
3994 eval "eval INFO_DIR=$infodir"
3995
3996 eval "eval MAN_DIR=$mandir"
3997
3998
3999 # Get full paths to source and build directories
4000 srcdirfull="`cd $srcdir && pwd`"
4001 builddir="`pwd`"
4002
4003 #
4004 # Compute variables useful for running uninstalled software.
4005 #
4006 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4007 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4008 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4009 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4010 DIRSEP=':'
4011 case "${build_os}" in
4012     mingw* )
4013         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4014         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4015         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4016         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4017         DIRSEP=';'
4018     ;;
4019 esac
4020 case "${host_os}" in
4021   mingw* )
4022     DIRSEP=';'
4023     ;;
4024 esac
4025
4026
4027
4028
4029
4030
4031
4032 #
4033 # Enable OS features.
4034 #
4035 DEPDIR="${am__leading_dot}deps"
4036
4037 ac_config_commands="$ac_config_commands depfiles"
4038
4039
4040 am_make=${MAKE-make}
4041 cat > confinc << 'END'
4042 am__doit:
4043         @echo this is the am__doit target
4044 .PHONY: am__doit
4045 END
4046 # If we don't find an include directive, just comment out the code.
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4048 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4049 am__include="#"
4050 am__quote=
4051 _am_result=none
4052 # First try GNU make style include.
4053 echo "include confinc" > confmf
4054 # Ignore all kinds of additional output from `make'.
4055 case `$am_make -s -f confmf 2> /dev/null` in #(
4056 *the\ am__doit\ target*)
4057   am__include=include
4058   am__quote=
4059   _am_result=GNU
4060   ;;
4061 esac
4062 # Now try BSD make style include.
4063 if test "$am__include" = "#"; then
4064    echo '.include "confinc"' > confmf
4065    case `$am_make -s -f confmf 2> /dev/null` in #(
4066    *the\ am__doit\ target*)
4067      am__include=.include
4068      am__quote="\""
4069      _am_result=BSD
4070      ;;
4071    esac
4072 fi
4073
4074
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4076 $as_echo "$_am_result" >&6; }
4077 rm -f confinc confmf
4078
4079 # Check whether --enable-dependency-tracking was given.
4080 if test "${enable_dependency_tracking+set}" = set; then :
4081   enableval=$enable_dependency_tracking;
4082 fi
4083
4084 if test "x$enable_dependency_tracking" != xno; then
4085   am_depcomp="$ac_aux_dir/depcomp"
4086   AMDEPBACKSLASH='\'
4087 fi
4088  if test "x$enable_dependency_tracking" != xno; then
4089   AMDEP_TRUE=
4090   AMDEP_FALSE='#'
4091 else
4092   AMDEP_TRUE='#'
4093   AMDEP_FALSE=
4094 fi
4095
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test -n "$ac_tool_prefix"; then
4103   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_CC+set}" = set; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -n "$CC"; then
4111   ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     for ac_exec_ext in '' $ac_executable_extensions; do
4119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125   done
4126 IFS=$as_save_IFS
4127
4128 fi
4129 fi
4130 CC=$ac_cv_prog_CC
4131 if test -n "$CC"; then
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4134 else
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4137 fi
4138
4139
4140 fi
4141 if test -z "$ac_cv_prog_CC"; then
4142   ac_ct_CC=$CC
4143   # Extract the first word of "gcc", so it can be a program name with args.
4144 set dummy gcc; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   if test -n "$ac_ct_CC"; then
4151   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158     for ac_exec_ext in '' $ac_executable_extensions; do
4159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160     ac_cv_prog_ac_ct_CC="gcc"
4161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165   done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4171 if test -n "$ac_ct_CC"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4173 $as_echo "$ac_ct_CC" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179   if test "x$ac_ct_CC" = x; then
4180     CC=""
4181   else
4182     case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     CC=$ac_ct_CC
4189   fi
4190 else
4191   CC="$ac_cv_prog_CC"
4192 fi
4193
4194 if test -z "$CC"; then
4195           if test -n "$ac_tool_prefix"; then
4196     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}cc; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_CC+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$CC"; then
4204   ac_cv_prog_CC="$CC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_CC="${ac_tool_prefix}cc"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233   fi
4234 fi
4235 if test -z "$CC"; then
4236   # Extract the first word of "cc", so it can be a program name with args.
4237 set dummy cc; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -n "$CC"; then
4244   ac_cv_prog_CC="$CC" # Let the user override the test.
4245 else
4246   ac_prog_rejected=no
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252     for ac_exec_ext in '' $ac_executable_extensions; do
4253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4255        ac_prog_rejected=yes
4256        continue
4257      fi
4258     ac_cv_prog_CC="cc"
4259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263   done
4264 IFS=$as_save_IFS
4265
4266 if test $ac_prog_rejected = yes; then
4267   # We found a bogon in the path, so make sure we never use it.
4268   set dummy $ac_cv_prog_CC
4269   shift
4270   if test $# != 0; then
4271     # We chose a different compiler from the bogus one.
4272     # However, it has the same basename, so the bogon will be chosen
4273     # first if we set CC to just the basename; use the full file name.
4274     shift
4275     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4276   fi
4277 fi
4278 fi
4279 fi
4280 CC=$ac_cv_prog_CC
4281 if test -n "$CC"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4283 $as_echo "$CC" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290 fi
4291 if test -z "$CC"; then
4292   if test -n "$ac_tool_prefix"; then
4293   for ac_prog in cl.exe
4294   do
4295     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_prog_CC+set}" = set; then :
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if test -n "$CC"; then
4303   ac_cv_prog_CC="$CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317   done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 CC=$ac_cv_prog_CC
4323 if test -n "$CC"; then
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4326 else
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332     test -n "$CC" && break
4333   done
4334 fi
4335 if test -z "$CC"; then
4336   ac_ct_CC=$CC
4337   for ac_prog in cl.exe
4338 do
4339   # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   if test -n "$ac_ct_CC"; then
4347   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354     for ac_exec_ext in '' $ac_executable_extensions; do
4355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356     ac_cv_prog_ac_ct_CC="$ac_prog"
4357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361   done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4367 if test -n "$ac_ct_CC"; then
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4369 $as_echo "$ac_ct_CC" >&6; }
4370 else
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376   test -n "$ac_ct_CC" && break
4377 done
4378
4379   if test "x$ac_ct_CC" = x; then
4380     CC=""
4381   else
4382     case $cross_compiling:$ac_tool_warned in
4383 yes:)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4387 esac
4388     CC=$ac_ct_CC
4389   fi
4390 fi
4391
4392 fi
4393
4394
4395 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error $? "no acceptable C compiler found in \$PATH
4398 See \`config.log' for more details" "$LINENO" 5; }
4399
4400 # Provide some information about the compiler.
4401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4402 set X $ac_compile
4403 ac_compiler=$2
4404 for ac_option in --version -v -V -qversion; do
4405   { { ac_try="$ac_compiler $ac_option >&5"
4406 case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4413   ac_status=$?
4414   if test -s conftest.err; then
4415     sed '10a\
4416 ... rest of stderr output deleted ...
4417          10q' conftest.err >conftest.er1
4418     cat conftest.er1 >&5
4419   fi
4420   rm -f conftest.er1 conftest.err
4421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; }
4423 done
4424
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427
4428 int
4429 main ()
4430 {
4431
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 ac_clean_files_save=$ac_clean_files
4437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4438 # Try to create an executable without -o first, disregard a.out.
4439 # It will help us diagnose broken compilers, and finding out an intuition
4440 # of exeext.
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4442 $as_echo_n "checking whether the C compiler works... " >&6; }
4443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4444
4445 # The possible output files:
4446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4447
4448 ac_rmfiles=
4449 for ac_file in $ac_files
4450 do
4451   case $ac_file in
4452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4453     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4454   esac
4455 done
4456 rm -f $ac_rmfiles
4457
4458 if { { ac_try="$ac_link_default"
4459 case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465   (eval "$ac_link_default") 2>&5
4466   ac_status=$?
4467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468   test $ac_status = 0; }; then :
4469   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4471 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4472 # so that the user can short-circuit this test for compilers unknown to
4473 # Autoconf.
4474 for ac_file in $ac_files ''
4475 do
4476   test -f "$ac_file" || continue
4477   case $ac_file in
4478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4479         ;;
4480     [ab].out )
4481         # We found the default executable, but exeext='' is most
4482         # certainly right.
4483         break;;
4484     *.* )
4485         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4486         then :; else
4487            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4488         fi
4489         # We set ac_cv_exeext here because the later test for it is not
4490         # safe: cross compilers may not add the suffix if given an `-o'
4491         # argument, so we may need to know it at that point already.
4492         # Even if this section looks crufty: it has the advantage of
4493         # actually working.
4494         break;;
4495     * )
4496         break;;
4497   esac
4498 done
4499 test "$ac_cv_exeext" = no && ac_cv_exeext=
4500
4501 else
4502   ac_file=''
4503 fi
4504 if test -z "$ac_file"; then :
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 $as_echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4509
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error 77 "C compiler cannot create executables
4513 See \`config.log' for more details" "$LINENO" 5; }
4514 else
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4516 $as_echo "yes" >&6; }
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4519 $as_echo_n "checking for C compiler default output file name... " >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4521 $as_echo "$ac_file" >&6; }
4522 ac_exeext=$ac_cv_exeext
4523
4524 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4525 ac_clean_files=$ac_clean_files_save
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4527 $as_echo_n "checking for suffix of executables... " >&6; }
4528 if { { ac_try="$ac_link"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535   (eval "$ac_link") 2>&5
4536   ac_status=$?
4537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538   test $ac_status = 0; }; then :
4539   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4540 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4541 # work properly (i.e., refer to `conftest.exe'), while it won't with
4542 # `rm'.
4543 for ac_file in conftest.exe conftest conftest.*; do
4544   test -f "$ac_file" || continue
4545   case $ac_file in
4546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4547     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548           break;;
4549     * ) break;;
4550   esac
4551 done
4552 else
4553   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4556 See \`config.log' for more details" "$LINENO" 5; }
4557 fi
4558 rm -f conftest conftest$ac_cv_exeext
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4560 $as_echo "$ac_cv_exeext" >&6; }
4561
4562 rm -f conftest.$ac_ext
4563 EXEEXT=$ac_cv_exeext
4564 ac_exeext=$EXEEXT
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h.  */
4567 #include <stdio.h>
4568 int
4569 main ()
4570 {
4571 FILE *f = fopen ("conftest.out", "w");
4572  return ferror (f) || fclose (f) != 0;
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 ac_clean_files="$ac_clean_files conftest.out"
4579 # Check that the compiler produces executables we can run.  If not, either
4580 # the compiler is broken, or we cross compile.
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4582 $as_echo_n "checking whether we are cross compiling... " >&6; }
4583 if test "$cross_compiling" != yes; then
4584   { { ac_try="$ac_link"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591   (eval "$ac_link") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594   test $ac_status = 0; }
4595   if { ac_try='./conftest$ac_cv_exeext'
4596   { { case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602   (eval "$ac_try") 2>&5
4603   ac_status=$?
4604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605   test $ac_status = 0; }; }; then
4606     cross_compiling=no
4607   else
4608     if test "$cross_compiling" = maybe; then
4609         cross_compiling=yes
4610     else
4611         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot run C compiled programs.
4614 If you meant to cross compile, use \`--host'.
4615 See \`config.log' for more details" "$LINENO" 5; }
4616     fi
4617   fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4620 $as_echo "$cross_compiling" >&6; }
4621
4622 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4623 ac_clean_files=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4625 $as_echo_n "checking for suffix of object files... " >&6; }
4626 if test "${ac_cv_objext+set}" = set; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.o conftest.obj
4641 if { { ac_try="$ac_compile"
4642 case "(($ac_try" in
4643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644   *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648   (eval "$ac_compile") 2>&5
4649   ac_status=$?
4650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4651   test $ac_status = 0; }; then :
4652   for ac_file in conftest.o conftest.obj conftest.*; do
4653   test -f "$ac_file" || continue;
4654   case $ac_file in
4655     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4656     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4657        break;;
4658   esac
4659 done
4660 else
4661   $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666 as_fn_error $? "cannot compute suffix of object files: cannot compile
4667 See \`config.log' for more details" "$LINENO" 5; }
4668 fi
4669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4672 $as_echo "$ac_cv_objext" >&6; }
4673 OBJEXT=$ac_cv_objext
4674 ac_objext=$OBJEXT
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4676 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4677 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682
4683 int
4684 main ()
4685 {
4686 #ifndef __GNUC__
4687        choke me
4688 #endif
4689
4690   ;
4691   return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695   ac_compiler_gnu=yes
4696 else
4697   ac_compiler_gnu=no
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4704 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4705 if test $ac_compiler_gnu = yes; then
4706   GCC=yes
4707 else
4708   GCC=
4709 fi
4710 ac_test_CFLAGS=${CFLAGS+set}
4711 ac_save_CFLAGS=$CFLAGS
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4713 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4714 if test "${ac_cv_prog_cc_g+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   ac_save_c_werror_flag=$ac_c_werror_flag
4718    ac_c_werror_flag=yes
4719    ac_cv_prog_cc_g=no
4720    CFLAGS="-g"
4721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_c_try_compile "$LINENO"; then :
4733   ac_cv_prog_cc_g=yes
4734 else
4735   CFLAGS=""
4736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738
4739 int
4740 main ()
4741 {
4742
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748
4749 else
4750   ac_c_werror_flag=$ac_save_c_werror_flag
4751          CFLAGS="-g"
4752          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754
4755 int
4756 main ()
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764   ac_cv_prog_cc_g=yes
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771    ac_c_werror_flag=$ac_save_c_werror_flag
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4774 $as_echo "$ac_cv_prog_cc_g" >&6; }
4775 if test "$ac_test_CFLAGS" = set; then
4776   CFLAGS=$ac_save_CFLAGS
4777 elif test $ac_cv_prog_cc_g = yes; then
4778   if test "$GCC" = yes; then
4779     CFLAGS="-g -O2"
4780   else
4781     CFLAGS="-g"
4782   fi
4783 else
4784   if test "$GCC" = yes; then
4785     CFLAGS="-O2"
4786   else
4787     CFLAGS=
4788   fi
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4792 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   ac_cv_prog_cc_c89=no
4796 ac_save_CC=$CC
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h.  */
4799 #include <stdarg.h>
4800 #include <stdio.h>
4801 #include <sys/types.h>
4802 #include <sys/stat.h>
4803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4804 struct buf { int x; };
4805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4806 static char *e (p, i)
4807      char **p;
4808      int i;
4809 {
4810   return p[i];
4811 }
4812 static char *f (char * (*g) (char **, int), char **p, ...)
4813 {
4814   char *s;
4815   va_list v;
4816   va_start (v,p);
4817   s = g (p, va_arg (v,int));
4818   va_end (v);
4819   return s;
4820 }
4821
4822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4823    function prototypes and stuff, but not '\xHH' hex character constants.
4824    These don't provoke an error unfortunately, instead are silently treated
4825    as 'x'.  The following induces an error, until -std is added to get
4826    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4827    array size at least.  It's necessary to write '\x00'==0 to get something
4828    that's true only with -std.  */
4829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4830
4831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4832    inside strings and character constants.  */
4833 #define FOO(x) 'x'
4834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4835
4836 int test (int i, double x);
4837 struct s1 {int (*f) (int a);};
4838 struct s2 {int (*f) (double a);};
4839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4840 int argc;
4841 char **argv;
4842 int
4843 main ()
4844 {
4845 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4851         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4852 do
4853   CC="$ac_save_CC $ac_arg"
4854   if ac_fn_c_try_compile "$LINENO"; then :
4855   ac_cv_prog_cc_c89=$ac_arg
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext
4858   test "x$ac_cv_prog_cc_c89" != "xno" && break
4859 done
4860 rm -f conftest.$ac_ext
4861 CC=$ac_save_CC
4862
4863 fi
4864 # AC_CACHE_VAL
4865 case "x$ac_cv_prog_cc_c89" in
4866   x)
4867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4868 $as_echo "none needed" >&6; } ;;
4869   xno)
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4871 $as_echo "unsupported" >&6; } ;;
4872   *)
4873     CC="$CC $ac_cv_prog_cc_c89"
4874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4875 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4876 esac
4877 if test "x$ac_cv_prog_cc_c89" != xno; then :
4878
4879 fi
4880
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887 depcc="$CC"   am_compiler_list=
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4892   $as_echo_n "(cached) " >&6
4893 else
4894   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895   # We make a subdir and do the tests there.  Otherwise we can end up
4896   # making bogus files that we don't know about and never remove.  For
4897   # instance it was reported that on HP-UX the gcc test will end up
4898   # making a dummy file named `D' -- because `-MD' means `put the output
4899   # in D'.
4900   mkdir conftest.dir
4901   # Copy depcomp to subdir because otherwise we won't find it if we're
4902   # using a relative directory.
4903   cp "$am_depcomp" conftest.dir
4904   cd conftest.dir
4905   # We will build objects and dependencies in a subdirectory because
4906   # it helps to detect inapplicable dependency modes.  For instance
4907   # both Tru64's cc and ICC support -MD to output dependencies as a
4908   # side effect of compilation, but ICC will put the dependencies in
4909   # the current directory while Tru64 will put them in the object
4910   # directory.
4911   mkdir sub
4912
4913   am_cv_CC_dependencies_compiler_type=none
4914   if test "$am_compiler_list" = ""; then
4915      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4916   fi
4917   am__universal=false
4918   case " $depcc " in #(
4919      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4920      esac
4921
4922   for depmode in $am_compiler_list; do
4923     # Setup a source with many dependencies, because some compilers
4924     # like to wrap large dependency lists on column 80 (with \), and
4925     # we should not choose a depcomp mode which is confused by this.
4926     #
4927     # We need to recreate these files for each test, as the compiler may
4928     # overwrite some of them when testing with obscure command lines.
4929     # This happens at least with the AIX C compiler.
4930     : > sub/conftest.c
4931     for i in 1 2 3 4 5 6; do
4932       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934       # Solaris 8's {/usr,}/bin/sh.
4935       touch sub/conftst$i.h
4936     done
4937     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4938
4939     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940     # mode.  It turns out that the SunPro C++ compiler does not properly
4941     # handle `-M -o', and we need to detect this.  Also, some Intel
4942     # versions had trouble with output in subdirs
4943     am__obj=sub/conftest.${OBJEXT-o}
4944     am__minus_obj="-o $am__obj"
4945     case $depmode in
4946     gcc)
4947       # This depmode causes a compiler race in universal mode.
4948       test "$am__universal" = false || continue
4949       ;;
4950     nosideeffect)
4951       # after this tag, mechanisms are not by side-effect, so they'll
4952       # only be used when explicitly requested
4953       if test "x$enable_dependency_tracking" = xyes; then
4954         continue
4955       else
4956         break
4957       fi
4958       ;;
4959     msvisualcpp | msvcmsys)
4960       # This compiler won't grok `-c -o', but also, the minuso test has
4961       # not run yet.  These depmodes are late enough in the game, and
4962       # so weak that their functioning should not be impacted.
4963       am__obj=conftest.${OBJEXT-o}
4964       am__minus_obj=
4965       ;;
4966     none) break ;;
4967     esac
4968     if depmode=$depmode \
4969        source=sub/conftest.c object=$am__obj \
4970        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4971        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4972          >/dev/null 2>conftest.err &&
4973        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4974        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4975        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4976        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4977       # icc doesn't choke on unknown options, it will just issue warnings
4978       # or remarks (even with -Werror).  So we grep stderr for any message
4979       # that says an option was ignored or not supported.
4980       # When given -MP, icc 7.0 and 7.1 complain thusly:
4981       #   icc: Command line warning: ignoring option '-M'; no argument required
4982       # The diagnosis changed in icc 8.0:
4983       #   icc: Command line remark: option '-MP' not supported
4984       if (grep 'ignoring option' conftest.err ||
4985           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4986         am_cv_CC_dependencies_compiler_type=$depmode
4987         break
4988       fi
4989     fi
4990   done
4991
4992   cd ..
4993   rm -rf conftest.dir
4994 else
4995   am_cv_CC_dependencies_compiler_type=none
4996 fi
4997
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5000 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5001 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5002
5003  if
5004   test "x$enable_dependency_tracking" != xno \
5005   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5006   am__fastdepCC_TRUE=
5007   am__fastdepCC_FALSE='#'
5008 else
5009   am__fastdepCC_TRUE='#'
5010   am__fastdepCC_FALSE=
5011 fi
5012
5013
5014
5015 ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5022 # On Suns, sometimes $CPP names a directory.
5023 if test -n "$CPP" && test -d "$CPP"; then
5024   CPP=
5025 fi
5026 if test -z "$CPP"; then
5027   if test "${ac_cv_prog_CPP+set}" = set; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030       # Double quotes because CPP needs to be expanded
5031     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5032     do
5033       ac_preproc_ok=false
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h.  */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049                      Syntax error
5050 _ACEOF
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5052
5053 else
5054   # Broken: fails on valid input.
5055 continue
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059   # OK, works on sane cases.  Now check whether nonexistent headers
5060   # can be detected and how.
5061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h.  */
5063 #include <ac_nonexistent.h>
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066   # Broken: success on invalid input.
5067 continue
5068 else
5069   # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then :
5079   break
5080 fi
5081
5082     done
5083     ac_cv_prog_CPP=$CPP
5084
5085 fi
5086   CPP=$ac_cv_prog_CPP
5087 else
5088   ac_cv_prog_CPP=$CPP
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5091 $as_echo "$CPP" >&6; }
5092 ac_preproc_ok=false
5093 for ac_c_preproc_warn_flag in '' yes
5094 do
5095   # Use a header file that comes with gcc, so configuring glibc
5096   # with a fresh cross-compiler works.
5097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098   # <limits.h> exists even on freestanding compilers.
5099   # On the NeXT, cc -E runs the code through the compiler's parser,
5100   # not just through cpp. "Syntax error" is here to catch this case.
5101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h.  */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105 #else
5106 # include <assert.h>
5107 #endif
5108                      Syntax error
5109 _ACEOF
5110 if ac_fn_c_try_cpp "$LINENO"; then :
5111
5112 else
5113   # Broken: fails on valid input.
5114 continue
5115 fi
5116 rm -f conftest.err conftest.$ac_ext
5117
5118   # OK, works on sane cases.  Now check whether nonexistent headers
5119   # can be detected and how.
5120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h.  */
5122 #include <ac_nonexistent.h>
5123 _ACEOF
5124 if ac_fn_c_try_cpp "$LINENO"; then :
5125   # Broken: success on invalid input.
5126 continue
5127 else
5128   # Passes both tests.
5129 ac_preproc_ok=:
5130 break
5131 fi
5132 rm -f conftest.err conftest.$ac_ext
5133
5134 done
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then :
5138
5139 else
5140   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5143 See \`config.log' for more details" "$LINENO" 5; }
5144 fi
5145
5146 ac_ext=c
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5154 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5155 if test "${ac_cv_path_GREP+set}" = set; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   if test -z "$GREP"; then
5159   ac_path_GREP_found=false
5160   # Loop through the user's path and test for each of PROGNAME-LIST
5161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5163 do
5164   IFS=$as_save_IFS
5165   test -z "$as_dir" && as_dir=.
5166     for ac_prog in grep ggrep; do
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5169       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5170 # Check for GNU ac_path_GREP and select it if it is found.
5171   # Check for GNU $ac_path_GREP
5172 case `"$ac_path_GREP" --version 2>&1` in
5173 *GNU*)
5174   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5175 *)
5176   ac_count=0
5177   $as_echo_n 0123456789 >"conftest.in"
5178   while :
5179   do
5180     cat "conftest.in" "conftest.in" >"conftest.tmp"
5181     mv "conftest.tmp" "conftest.in"
5182     cp "conftest.in" "conftest.nl"
5183     $as_echo 'GREP' >> "conftest.nl"
5184     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5185     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5186     as_fn_arith $ac_count + 1 && ac_count=$as_val
5187     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5188       # Best one so far, save it but keep looking for a better one
5189       ac_cv_path_GREP="$ac_path_GREP"
5190       ac_path_GREP_max=$ac_count
5191     fi
5192     # 10*(2^10) chars as input seems more than enough
5193     test $ac_count -gt 10 && break
5194   done
5195   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5196 esac
5197
5198       $ac_path_GREP_found && break 3
5199     done
5200   done
5201   done
5202 IFS=$as_save_IFS
5203   if test -z "$ac_cv_path_GREP"; then
5204     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5205   fi
5206 else
5207   ac_cv_path_GREP=$GREP
5208 fi
5209
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5212 $as_echo "$ac_cv_path_GREP" >&6; }
5213  GREP="$ac_cv_path_GREP"
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5217 $as_echo_n "checking for egrep... " >&6; }
5218 if test "${ac_cv_path_EGREP+set}" = set; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5222    then ac_cv_path_EGREP="$GREP -E"
5223    else
5224      if test -z "$EGREP"; then
5225   ac_path_EGREP_found=false
5226   # Loop through the user's path and test for each of PROGNAME-LIST
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_prog in egrep; do
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5235       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5236 # Check for GNU ac_path_EGREP and select it if it is found.
5237   # Check for GNU $ac_path_EGREP
5238 case `"$ac_path_EGREP" --version 2>&1` in
5239 *GNU*)
5240   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5241 *)
5242   ac_count=0
5243   $as_echo_n 0123456789 >"conftest.in"
5244   while :
5245   do
5246     cat "conftest.in" "conftest.in" >"conftest.tmp"
5247     mv "conftest.tmp" "conftest.in"
5248     cp "conftest.in" "conftest.nl"
5249     $as_echo 'EGREP' >> "conftest.nl"
5250     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252     as_fn_arith $ac_count + 1 && ac_count=$as_val
5253     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5254       # Best one so far, save it but keep looking for a better one
5255       ac_cv_path_EGREP="$ac_path_EGREP"
5256       ac_path_EGREP_max=$ac_count
5257     fi
5258     # 10*(2^10) chars as input seems more than enough
5259     test $ac_count -gt 10 && break
5260   done
5261   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 esac
5263
5264       $ac_path_EGREP_found && break 3
5265     done
5266   done
5267   done
5268 IFS=$as_save_IFS
5269   if test -z "$ac_cv_path_EGREP"; then
5270     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271   fi
5272 else
5273   ac_cv_path_EGREP=$EGREP
5274 fi
5275
5276    fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5279 $as_echo "$ac_cv_path_EGREP" >&6; }
5280  EGREP="$ac_cv_path_EGREP"
5281
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5284 $as_echo_n "checking for ANSI C header files... " >&6; }
5285 if test "${ac_cv_header_stdc+set}" = set; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h.  */
5290 #include <stdlib.h>
5291 #include <stdarg.h>
5292 #include <string.h>
5293 #include <float.h>
5294
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304   ac_cv_header_stdc=yes
5305 else
5306   ac_cv_header_stdc=no
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309
5310 if test $ac_cv_header_stdc = yes; then
5311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h.  */
5314 #include <string.h>
5315
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318   $EGREP "memchr" >/dev/null 2>&1; then :
5319
5320 else
5321   ac_cv_header_stdc=no
5322 fi
5323 rm -f conftest*
5324
5325 fi
5326
5327 if test $ac_cv_header_stdc = yes; then
5328   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 #include <stdlib.h>
5332
5333 _ACEOF
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335   $EGREP "free" >/dev/null 2>&1; then :
5336
5337 else
5338   ac_cv_header_stdc=no
5339 fi
5340 rm -f conftest*
5341
5342 fi
5343
5344 if test $ac_cv_header_stdc = yes; then
5345   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5346   if test "$cross_compiling" = yes; then :
5347   :
5348 else
5349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h.  */
5351 #include <ctype.h>
5352 #include <stdlib.h>
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5356 #else
5357 # define ISLOWER(c) \
5358                    (('a' <= (c) && (c) <= 'i') \
5359                      || ('j' <= (c) && (c) <= 'r') \
5360                      || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5362 #endif
5363
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 int
5366 main ()
5367 {
5368   int i;
5369   for (i = 0; i < 256; i++)
5370     if (XOR (islower (i), ISLOWER (i))
5371         || toupper (i) != TOUPPER (i))
5372       return 2;
5373   return 0;
5374 }
5375 _ACEOF
5376 if ac_fn_c_try_run "$LINENO"; then :
5377
5378 else
5379   ac_cv_header_stdc=no
5380 fi
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5382   conftest.$ac_objext conftest.beam conftest.$ac_ext
5383 fi
5384
5385 fi
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5388 $as_echo "$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5390
5391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5392
5393 fi
5394
5395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5397                   inttypes.h stdint.h unistd.h
5398 do :
5399   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5401 "
5402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5403   cat >>confdefs.h <<_ACEOF
5404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5405 _ACEOF
5406
5407 fi
5408
5409 done
5410
5411
5412
5413   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5415   MINIX=yes
5416 else
5417   MINIX=
5418 fi
5419
5420
5421   if test "$MINIX" = yes; then
5422
5423 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5424
5425
5426 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5427
5428
5429 $as_echo "#define _MINIX 1" >>confdefs.h
5430
5431   fi
5432
5433
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5435 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5436 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5437   $as_echo_n "(cached) " >&6
5438 else
5439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h.  */
5441
5442 #         define __EXTENSIONS__ 1
5443           $ac_includes_default
5444 int
5445 main ()
5446 {
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453   ac_cv_safe_to_define___extensions__=yes
5454 else
5455   ac_cv_safe_to_define___extensions__=no
5456 fi
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5460 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5461   test $ac_cv_safe_to_define___extensions__ = yes &&
5462     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5463
5464   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5465
5466   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5467
5468   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5469
5470   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5471
5472
5473
5474 # Check for programs
5475 ac_ext=c
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480 if test -n "$ac_tool_prefix"; then
5481   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_prog_CC+set}" = set; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   if test -n "$CC"; then
5489   ac_cv_prog_CC="$CC" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 CC=$ac_cv_prog_CC
5509 if test -n "$CC"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5511 $as_echo "$CC" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 fi
5519 if test -z "$ac_cv_prog_CC"; then
5520   ac_ct_CC=$CC
5521   # Extract the first word of "gcc", so it can be a program name with args.
5522 set dummy gcc; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if test -n "$ac_ct_CC"; then
5529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_prog_ac_ct_CC="gcc"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549 if test -n "$ac_ct_CC"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5551 $as_echo "$ac_ct_CC" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557   if test "x$ac_ct_CC" = x; then
5558     CC=""
5559   else
5560     case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566     CC=$ac_ct_CC
5567   fi
5568 else
5569   CC="$ac_cv_prog_CC"
5570 fi
5571
5572 if test -z "$CC"; then
5573           if test -n "$ac_tool_prefix"; then
5574     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}cc; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_CC+set}" = set; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$CC"; then
5582   ac_cv_prog_CC="$CC" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     ac_cv_prog_CC="${ac_tool_prefix}cc"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 CC=$ac_cv_prog_CC
5602 if test -n "$CC"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5604 $as_echo "$CC" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611   fi
5612 fi
5613 if test -z "$CC"; then
5614   # Extract the first word of "cc", so it can be a program name with args.
5615 set dummy cc; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_CC+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$CC"; then
5622   ac_cv_prog_CC="$CC" # Let the user override the test.
5623 else
5624   ac_prog_rejected=no
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5633        ac_prog_rejected=yes
5634        continue
5635      fi
5636     ac_cv_prog_CC="cc"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644 if test $ac_prog_rejected = yes; then
5645   # We found a bogon in the path, so make sure we never use it.
5646   set dummy $ac_cv_prog_CC
5647   shift
5648   if test $# != 0; then
5649     # We chose a different compiler from the bogus one.
5650     # However, it has the same basename, so the bogon will be chosen
5651     # first if we set CC to just the basename; use the full file name.
5652     shift
5653     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5654   fi
5655 fi
5656 fi
5657 fi
5658 CC=$ac_cv_prog_CC
5659 if test -n "$CC"; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5661 $as_echo "$CC" >&6; }
5662 else
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$CC"; then
5670   if test -n "$ac_tool_prefix"; then
5671   for ac_prog in cl.exe
5672   do
5673     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_prog_CC+set}" = set; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   if test -n "$CC"; then
5681   ac_cv_prog_CC="$CC" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697
5698 fi
5699 fi
5700 CC=$ac_cv_prog_CC
5701 if test -n "$CC"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703 $as_echo "$CC" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710     test -n "$CC" && break
5711   done
5712 fi
5713 if test -z "$CC"; then
5714   ac_ct_CC=$CC
5715   for ac_prog in cl.exe
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   if test -n "$ac_ct_CC"; then
5725   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732     for ac_exec_ext in '' $ac_executable_extensions; do
5733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734     ac_cv_prog_ac_ct_CC="$ac_prog"
5735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739   done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5745 if test -n "$ac_ct_CC"; then
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5747 $as_echo "$ac_ct_CC" >&6; }
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754   test -n "$ac_ct_CC" && break
5755 done
5756
5757   if test "x$ac_ct_CC" = x; then
5758     CC=""
5759   else
5760     case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766     CC=$ac_ct_CC
5767   fi
5768 fi
5769
5770 fi
5771
5772
5773 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775 as_fn_error $? "no acceptable C compiler found in \$PATH
5776 See \`config.log' for more details" "$LINENO" 5; }
5777
5778 # Provide some information about the compiler.
5779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5780 set X $ac_compile
5781 ac_compiler=$2
5782 for ac_option in --version -v -V -qversion; do
5783   { { ac_try="$ac_compiler $ac_option >&5"
5784 case "(($ac_try" in
5785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786   *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5791   ac_status=$?
5792   if test -s conftest.err; then
5793     sed '10a\
5794 ... rest of stderr output deleted ...
5795          10q' conftest.err >conftest.er1
5796     cat conftest.er1 >&5
5797   fi
5798   rm -f conftest.er1 conftest.err
5799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800   test $ac_status = 0; }
5801 done
5802
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5805 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814 #ifndef __GNUC__
5815        choke me
5816 #endif
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_compile "$LINENO"; then :
5823   ac_compiler_gnu=yes
5824 else
5825   ac_compiler_gnu=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5833 if test $ac_compiler_gnu = yes; then
5834   GCC=yes
5835 else
5836   GCC=
5837 fi
5838 ac_test_CFLAGS=${CFLAGS+set}
5839 ac_save_CFLAGS=$CFLAGS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5842 if test "${ac_cv_prog_cc_g+set}" = set; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   ac_save_c_werror_flag=$ac_c_werror_flag
5846    ac_c_werror_flag=yes
5847    ac_cv_prog_cc_g=no
5848    CFLAGS="-g"
5849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h.  */
5851
5852 int
5853 main ()
5854 {
5855
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861   ac_cv_prog_cc_g=yes
5862 else
5863   CFLAGS=""
5864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h.  */
5866
5867 int
5868 main ()
5869 {
5870
5871   ;
5872   return 0;
5873 }
5874 _ACEOF
5875 if ac_fn_c_try_compile "$LINENO"; then :
5876
5877 else
5878   ac_c_werror_flag=$ac_save_c_werror_flag
5879          CFLAGS="-g"
5880          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h.  */
5882
5883 int
5884 main ()
5885 {
5886
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 if ac_fn_c_try_compile "$LINENO"; then :
5892   ac_cv_prog_cc_g=yes
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899    ac_c_werror_flag=$ac_save_c_werror_flag
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5902 $as_echo "$ac_cv_prog_cc_g" >&6; }
5903 if test "$ac_test_CFLAGS" = set; then
5904   CFLAGS=$ac_save_CFLAGS
5905 elif test $ac_cv_prog_cc_g = yes; then
5906   if test "$GCC" = yes; then
5907     CFLAGS="-g -O2"
5908   else
5909     CFLAGS="-g"
5910   fi
5911 else
5912   if test "$GCC" = yes; then
5913     CFLAGS="-O2"
5914   else
5915     CFLAGS=
5916   fi
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5920 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   ac_cv_prog_cc_c89=no
5924 ac_save_CC=$CC
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h.  */
5927 #include <stdarg.h>
5928 #include <stdio.h>
5929 #include <sys/types.h>
5930 #include <sys/stat.h>
5931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5932 struct buf { int x; };
5933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934 static char *e (p, i)
5935      char **p;
5936      int i;
5937 {
5938   return p[i];
5939 }
5940 static char *f (char * (*g) (char **, int), char **p, ...)
5941 {
5942   char *s;
5943   va_list v;
5944   va_start (v,p);
5945   s = g (p, va_arg (v,int));
5946   va_end (v);
5947   return s;
5948 }
5949
5950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5951    function prototypes and stuff, but not '\xHH' hex character constants.
5952    These don't provoke an error unfortunately, instead are silently treated
5953    as 'x'.  The following induces an error, until -std is added to get
5954    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5955    array size at least.  It's necessary to write '\x00'==0 to get something
5956    that's true only with -std.  */
5957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5958
5959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960    inside strings and character constants.  */
5961 #define FOO(x) 'x'
5962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5963
5964 int test (int i, double x);
5965 struct s1 {int (*f) (int a);};
5966 struct s2 {int (*f) (double a);};
5967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5968 int argc;
5969 char **argv;
5970 int
5971 main ()
5972 {
5973 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5980 do
5981   CC="$ac_save_CC $ac_arg"
5982   if ac_fn_c_try_compile "$LINENO"; then :
5983   ac_cv_prog_cc_c89=$ac_arg
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext
5986   test "x$ac_cv_prog_cc_c89" != "xno" && break
5987 done
5988 rm -f conftest.$ac_ext
5989 CC=$ac_save_CC
5990
5991 fi
5992 # AC_CACHE_VAL
5993 case "x$ac_cv_prog_cc_c89" in
5994   x)
5995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5996 $as_echo "none needed" >&6; } ;;
5997   xno)
5998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5999 $as_echo "unsupported" >&6; } ;;
6000   *)
6001     CC="$CC $ac_cv_prog_cc_c89"
6002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6003 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6004 esac
6005 if test "x$ac_cv_prog_cc_c89" != xno; then :
6006
6007 fi
6008
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015 depcc="$CC"   am_compiler_list=
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6018 $as_echo_n "checking dependency style of $depcc... " >&6; }
6019 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6020   $as_echo_n "(cached) " >&6
6021 else
6022   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6023   # We make a subdir and do the tests there.  Otherwise we can end up
6024   # making bogus files that we don't know about and never remove.  For
6025   # instance it was reported that on HP-UX the gcc test will end up
6026   # making a dummy file named `D' -- because `-MD' means `put the output
6027   # in D'.
6028   mkdir conftest.dir
6029   # Copy depcomp to subdir because otherwise we won't find it if we're
6030   # using a relative directory.
6031   cp "$am_depcomp" conftest.dir
6032   cd conftest.dir
6033   # We will build objects and dependencies in a subdirectory because
6034   # it helps to detect inapplicable dependency modes.  For instance
6035   # both Tru64's cc and ICC support -MD to output dependencies as a
6036   # side effect of compilation, but ICC will put the dependencies in
6037   # the current directory while Tru64 will put them in the object
6038   # directory.
6039   mkdir sub
6040
6041   am_cv_CC_dependencies_compiler_type=none
6042   if test "$am_compiler_list" = ""; then
6043      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6044   fi
6045   am__universal=false
6046   case " $depcc " in #(
6047      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6048      esac
6049
6050   for depmode in $am_compiler_list; do
6051     # Setup a source with many dependencies, because some compilers
6052     # like to wrap large dependency lists on column 80 (with \), and
6053     # we should not choose a depcomp mode which is confused by this.
6054     #
6055     # We need to recreate these files for each test, as the compiler may
6056     # overwrite some of them when testing with obscure command lines.
6057     # This happens at least with the AIX C compiler.
6058     : > sub/conftest.c
6059     for i in 1 2 3 4 5 6; do
6060       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6061       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6062       # Solaris 8's {/usr,}/bin/sh.
6063       touch sub/conftst$i.h
6064     done
6065     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6066
6067     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6068     # mode.  It turns out that the SunPro C++ compiler does not properly
6069     # handle `-M -o', and we need to detect this.  Also, some Intel
6070     # versions had trouble with output in subdirs
6071     am__obj=sub/conftest.${OBJEXT-o}
6072     am__minus_obj="-o $am__obj"
6073     case $depmode in
6074     gcc)
6075       # This depmode causes a compiler race in universal mode.
6076       test "$am__universal" = false || continue
6077       ;;
6078     nosideeffect)
6079       # after this tag, mechanisms are not by side-effect, so they'll
6080       # only be used when explicitly requested
6081       if test "x$enable_dependency_tracking" = xyes; then
6082         continue
6083       else
6084         break
6085       fi
6086       ;;
6087     msvisualcpp | msvcmsys)
6088       # This compiler won't grok `-c -o', but also, the minuso test has
6089       # not run yet.  These depmodes are late enough in the game, and
6090       # so weak that their functioning should not be impacted.
6091       am__obj=conftest.${OBJEXT-o}
6092       am__minus_obj=
6093       ;;
6094     none) break ;;
6095     esac
6096     if depmode=$depmode \
6097        source=sub/conftest.c object=$am__obj \
6098        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6099        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6100          >/dev/null 2>conftest.err &&
6101        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6102        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6103        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6104        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6105       # icc doesn't choke on unknown options, it will just issue warnings
6106       # or remarks (even with -Werror).  So we grep stderr for any message
6107       # that says an option was ignored or not supported.
6108       # When given -MP, icc 7.0 and 7.1 complain thusly:
6109       #   icc: Command line warning: ignoring option '-M'; no argument required
6110       # The diagnosis changed in icc 8.0:
6111       #   icc: Command line remark: option '-MP' not supported
6112       if (grep 'ignoring option' conftest.err ||
6113           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6114         am_cv_CC_dependencies_compiler_type=$depmode
6115         break
6116       fi
6117     fi
6118   done
6119
6120   cd ..
6121   rm -rf conftest.dir
6122 else
6123   am_cv_CC_dependencies_compiler_type=none
6124 fi
6125
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6128 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6130
6131  if
6132   test "x$enable_dependency_tracking" != xno \
6133   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6134   am__fastdepCC_TRUE=
6135   am__fastdepCC_FALSE='#'
6136 else
6137   am__fastdepCC_TRUE='#'
6138   am__fastdepCC_FALSE=
6139 fi
6140
6141
6142 ac_ext=cpp
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147 if test -z "$CXX"; then
6148   if test -n "$CCC"; then
6149     CXX=$CCC
6150   else
6151     if test -n "$ac_tool_prefix"; then
6152   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6153   do
6154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_CXX+set}" = set; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161   if test -n "$CXX"; then
6162   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169     for ac_exec_ext in '' $ac_executable_extensions; do
6170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176   done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 CXX=$ac_cv_prog_CXX
6182 if test -n "$CXX"; then
6183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6184 $as_echo "$CXX" >&6; }
6185 else
6186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190
6191     test -n "$CXX" && break
6192   done
6193 fi
6194 if test -z "$CXX"; then
6195   ac_ct_CXX=$CXX
6196   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6197 do
6198   # Extract the first word of "$ac_prog", so it can be a program name with args.
6199 set dummy $ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$ac_ct_CXX"; then
6206   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_ac_ct_CXX="$ac_prog"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6226 if test -n "$ac_ct_CXX"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6228 $as_echo "$ac_ct_CXX" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235   test -n "$ac_ct_CXX" && break
6236 done
6237
6238   if test "x$ac_ct_CXX" = x; then
6239     CXX="g++"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247     CXX=$ac_ct_CXX
6248   fi
6249 fi
6250
6251   fi
6252 fi
6253 # Provide some information about the compiler.
6254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6255 set X $ac_compile
6256 ac_compiler=$2
6257 for ac_option in --version -v -V -qversion; do
6258   { { ac_try="$ac_compiler $ac_option >&5"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6264 $as_echo "$ac_try_echo"; } >&5
6265   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6266   ac_status=$?
6267   if test -s conftest.err; then
6268     sed '10a\
6269 ... rest of stderr output deleted ...
6270          10q' conftest.err >conftest.er1
6271     cat conftest.er1 >&5
6272   fi
6273   rm -f conftest.er1 conftest.err
6274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275   test $ac_status = 0; }
6276 done
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6279 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6280 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6281   $as_echo_n "(cached) " >&6
6282 else
6283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h.  */
6285
6286 int
6287 main ()
6288 {
6289 #ifndef __GNUC__
6290        choke me
6291 #endif
6292
6293   ;
6294   return 0;
6295 }
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6298   ac_compiler_gnu=yes
6299 else
6300   ac_compiler_gnu=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6304
6305 fi
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6307 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6308 if test $ac_compiler_gnu = yes; then
6309   GXX=yes
6310 else
6311   GXX=
6312 fi
6313 ac_test_CXXFLAGS=${CXXFLAGS+set}
6314 ac_save_CXXFLAGS=$CXXFLAGS
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6316 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6317 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6321    ac_cxx_werror_flag=yes
6322    ac_cv_prog_cxx_g=no
6323    CXXFLAGS="-g"
6324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h.  */
6326
6327 int
6328 main ()
6329 {
6330
6331   ;
6332   return 0;
6333 }
6334 _ACEOF
6335 if ac_fn_cxx_try_compile "$LINENO"; then :
6336   ac_cv_prog_cxx_g=yes
6337 else
6338   CXXFLAGS=""
6339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h.  */
6341
6342 int
6343 main ()
6344 {
6345
6346   ;
6347   return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_cxx_try_compile "$LINENO"; then :
6351
6352 else
6353   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6354          CXXFLAGS="-g"
6355          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h.  */
6357
6358 int
6359 main ()
6360 {
6361
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 if ac_fn_cxx_try_compile "$LINENO"; then :
6367   ac_cv_prog_cxx_g=yes
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6377 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6378 if test "$ac_test_CXXFLAGS" = set; then
6379   CXXFLAGS=$ac_save_CXXFLAGS
6380 elif test $ac_cv_prog_cxx_g = yes; then
6381   if test "$GXX" = yes; then
6382     CXXFLAGS="-g -O2"
6383   else
6384     CXXFLAGS="-g"
6385   fi
6386 else
6387   if test "$GXX" = yes; then
6388     CXXFLAGS="-O2"
6389   else
6390     CXXFLAGS=
6391   fi
6392 fi
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6398
6399 depcc="$CXX"  am_compiler_list=
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6402 $as_echo_n "checking dependency style of $depcc... " >&6; }
6403 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6407   # We make a subdir and do the tests there.  Otherwise we can end up
6408   # making bogus files that we don't know about and never remove.  For
6409   # instance it was reported that on HP-UX the gcc test will end up
6410   # making a dummy file named `D' -- because `-MD' means `put the output
6411   # in D'.
6412   mkdir conftest.dir
6413   # Copy depcomp to subdir because otherwise we won't find it if we're
6414   # using a relative directory.
6415   cp "$am_depcomp" conftest.dir
6416   cd conftest.dir
6417   # We will build objects and dependencies in a subdirectory because
6418   # it helps to detect inapplicable dependency modes.  For instance
6419   # both Tru64's cc and ICC support -MD to output dependencies as a
6420   # side effect of compilation, but ICC will put the dependencies in
6421   # the current directory while Tru64 will put them in the object
6422   # directory.
6423   mkdir sub
6424
6425   am_cv_CXX_dependencies_compiler_type=none
6426   if test "$am_compiler_list" = ""; then
6427      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6428   fi
6429   am__universal=false
6430   case " $depcc " in #(
6431      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6432      esac
6433
6434   for depmode in $am_compiler_list; do
6435     # Setup a source with many dependencies, because some compilers
6436     # like to wrap large dependency lists on column 80 (with \), and
6437     # we should not choose a depcomp mode which is confused by this.
6438     #
6439     # We need to recreate these files for each test, as the compiler may
6440     # overwrite some of them when testing with obscure command lines.
6441     # This happens at least with the AIX C compiler.
6442     : > sub/conftest.c
6443     for i in 1 2 3 4 5 6; do
6444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6446       # Solaris 8's {/usr,}/bin/sh.
6447       touch sub/conftst$i.h
6448     done
6449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6450
6451     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6452     # mode.  It turns out that the SunPro C++ compiler does not properly
6453     # handle `-M -o', and we need to detect this.  Also, some Intel
6454     # versions had trouble with output in subdirs
6455     am__obj=sub/conftest.${OBJEXT-o}
6456     am__minus_obj="-o $am__obj"
6457     case $depmode in
6458     gcc)
6459       # This depmode causes a compiler race in universal mode.
6460       test "$am__universal" = false || continue
6461       ;;
6462     nosideeffect)
6463       # after this tag, mechanisms are not by side-effect, so they'll
6464       # only be used when explicitly requested
6465       if test "x$enable_dependency_tracking" = xyes; then
6466         continue
6467       else
6468         break
6469       fi
6470       ;;
6471     msvisualcpp | msvcmsys)
6472       # This compiler won't grok `-c -o', but also, the minuso test has
6473       # not run yet.  These depmodes are late enough in the game, and
6474       # so weak that their functioning should not be impacted.
6475       am__obj=conftest.${OBJEXT-o}
6476       am__minus_obj=
6477       ;;
6478     none) break ;;
6479     esac
6480     if depmode=$depmode \
6481        source=sub/conftest.c object=$am__obj \
6482        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6483        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6484          >/dev/null 2>conftest.err &&
6485        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6486        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6487        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6488        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6489       # icc doesn't choke on unknown options, it will just issue warnings
6490       # or remarks (even with -Werror).  So we grep stderr for any message
6491       # that says an option was ignored or not supported.
6492       # When given -MP, icc 7.0 and 7.1 complain thusly:
6493       #   icc: Command line warning: ignoring option '-M'; no argument required
6494       # The diagnosis changed in icc 8.0:
6495       #   icc: Command line remark: option '-MP' not supported
6496       if (grep 'ignoring option' conftest.err ||
6497           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6498         am_cv_CXX_dependencies_compiler_type=$depmode
6499         break
6500       fi
6501     fi
6502   done
6503
6504   cd ..
6505   rm -rf conftest.dir
6506 else
6507   am_cv_CXX_dependencies_compiler_type=none
6508 fi
6509
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6512 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6513 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6514
6515  if
6516   test "x$enable_dependency_tracking" != xno \
6517   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6518   am__fastdepCXX_TRUE=
6519   am__fastdepCXX_FALSE='#'
6520 else
6521   am__fastdepCXX_TRUE='#'
6522   am__fastdepCXX_FALSE=
6523 fi
6524
6525
6526    case $ac_cv_prog_cc_stdc in #(
6527   no) :
6528     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6529   *) :
6530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6531 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6532 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   ac_cv_prog_cc_c99=no
6536 ac_save_CC=$CC
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h.  */
6539 #include <stdarg.h>
6540 #include <stdbool.h>
6541 #include <stdlib.h>
6542 #include <wchar.h>
6543 #include <stdio.h>
6544
6545 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6546 #define debug(...) fprintf (stderr, __VA_ARGS__)
6547 #define showlist(...) puts (#__VA_ARGS__)
6548 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6549 static void
6550 test_varargs_macros (void)
6551 {
6552   int x = 1234;
6553   int y = 5678;
6554   debug ("Flag");
6555   debug ("X = %d\n", x);
6556   showlist (The first, second, and third items.);
6557   report (x>y, "x is %d but y is %d", x, y);
6558 }
6559
6560 // Check long long types.
6561 #define BIG64 18446744073709551615ull
6562 #define BIG32 4294967295ul
6563 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6564 #if !BIG_OK
6565   your preprocessor is broken;
6566 #endif
6567 #if BIG_OK
6568 #else
6569   your preprocessor is broken;
6570 #endif
6571 static long long int bignum = -9223372036854775807LL;
6572 static unsigned long long int ubignum = BIG64;
6573
6574 struct incomplete_array
6575 {
6576   int datasize;
6577   double data[];
6578 };
6579
6580 struct named_init {
6581   int number;
6582   const wchar_t *name;
6583   double average;
6584 };
6585
6586 typedef const char *ccp;
6587
6588 static inline int
6589 test_restrict (ccp restrict text)
6590 {
6591   // See if C++-style comments work.
6592   // Iterate through items via the restricted pointer.
6593   // Also check for declarations in for loops.
6594   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6595     continue;
6596   return 0;
6597 }
6598
6599 // Check varargs and va_copy.
6600 static void
6601 test_varargs (const char *format, ...)
6602 {
6603   va_list args;
6604   va_start (args, format);
6605   va_list args_copy;
6606   va_copy (args_copy, args);
6607
6608   const char *str;
6609   int number;
6610   float fnumber;
6611
6612   while (*format)
6613     {
6614       switch (*format++)
6615         {
6616         case 's': // string
6617           str = va_arg (args_copy, const char *);
6618           break;
6619         case 'd': // int
6620           number = va_arg (args_copy, int);
6621           break;
6622         case 'f': // float
6623           fnumber = va_arg (args_copy, double);
6624           break;
6625         default:
6626           break;
6627         }
6628     }
6629   va_end (args_copy);
6630   va_end (args);
6631 }
6632
6633 int
6634 main ()
6635 {
6636
6637   // Check bool.
6638   _Bool success = false;
6639
6640   // Check restrict.
6641   if (test_restrict ("String literal") == 0)
6642     success = true;
6643   char *restrict newvar = "Another string";
6644
6645   // Check varargs.
6646   test_varargs ("s, d' f .", "string", 65, 34.234);
6647   test_varargs_macros ();
6648
6649   // Check flexible array members.
6650   struct incomplete_array *ia =
6651     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6652   ia->datasize = 10;
6653   for (int i = 0; i < ia->datasize; ++i)
6654     ia->data[i] = i * 1.234;
6655
6656   // Check named initializers.
6657   struct named_init ni = {
6658     .number = 34,
6659     .name = L"Test wide string",
6660     .average = 543.34343,
6661   };
6662
6663   ni.number = 58;
6664
6665   int dynamic_array[ni.number];
6666   dynamic_array[ni.number - 1] = 543;
6667
6668   // work around unused variable warnings
6669   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6670           || dynamic_array[ni.number - 1] != 543);
6671
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6677 do
6678   CC="$ac_save_CC $ac_arg"
6679   if ac_fn_c_try_compile "$LINENO"; then :
6680   ac_cv_prog_cc_c99=$ac_arg
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext
6683   test "x$ac_cv_prog_cc_c99" != "xno" && break
6684 done
6685 rm -f conftest.$ac_ext
6686 CC=$ac_save_CC
6687
6688 fi
6689 # AC_CACHE_VAL
6690 case "x$ac_cv_prog_cc_c99" in
6691   x)
6692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6693 $as_echo "none needed" >&6; } ;;
6694   xno)
6695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6696 $as_echo "unsupported" >&6; } ;;
6697   *)
6698     CC="$CC $ac_cv_prog_cc_c99"
6699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6700 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6701 esac
6702 if test "x$ac_cv_prog_cc_c99" != xno; then :
6703   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6706 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6707 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6708   $as_echo_n "(cached) " >&6
6709 else
6710   ac_cv_prog_cc_c89=no
6711 ac_save_CC=$CC
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h.  */
6714 #include <stdarg.h>
6715 #include <stdio.h>
6716 #include <sys/types.h>
6717 #include <sys/stat.h>
6718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6719 struct buf { int x; };
6720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6721 static char *e (p, i)
6722      char **p;
6723      int i;
6724 {
6725   return p[i];
6726 }
6727 static char *f (char * (*g) (char **, int), char **p, ...)
6728 {
6729   char *s;
6730   va_list v;
6731   va_start (v,p);
6732   s = g (p, va_arg (v,int));
6733   va_end (v);
6734   return s;
6735 }
6736
6737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6738    function prototypes and stuff, but not '\xHH' hex character constants.
6739    These don't provoke an error unfortunately, instead are silently treated
6740    as 'x'.  The following induces an error, until -std is added to get
6741    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6742    array size at least.  It's necessary to write '\x00'==0 to get something
6743    that's true only with -std.  */
6744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6745
6746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6747    inside strings and character constants.  */
6748 #define FOO(x) 'x'
6749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6750
6751 int test (int i, double x);
6752 struct s1 {int (*f) (int a);};
6753 struct s2 {int (*f) (double a);};
6754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6755 int argc;
6756 char **argv;
6757 int
6758 main ()
6759 {
6760 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6766         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6767 do
6768   CC="$ac_save_CC $ac_arg"
6769   if ac_fn_c_try_compile "$LINENO"; then :
6770   ac_cv_prog_cc_c89=$ac_arg
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext
6773   test "x$ac_cv_prog_cc_c89" != "xno" && break
6774 done
6775 rm -f conftest.$ac_ext
6776 CC=$ac_save_CC
6777
6778 fi
6779 # AC_CACHE_VAL
6780 case "x$ac_cv_prog_cc_c89" in
6781   x)
6782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6783 $as_echo "none needed" >&6; } ;;
6784   xno)
6785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6786 $as_echo "unsupported" >&6; } ;;
6787   *)
6788     CC="$CC $ac_cv_prog_cc_c89"
6789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6790 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6791 esac
6792 if test "x$ac_cv_prog_cc_c89" != xno; then :
6793   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6794 else
6795   ac_cv_prog_cc_stdc=no
6796 fi
6797
6798 fi
6799  ;;
6800 esac
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6802 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6803   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6804   $as_echo_n "(cached) " >&6
6805 fi
6806
6807   case $ac_cv_prog_cc_stdc in #(
6808   no) :
6809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810 $as_echo "unsupported" >&6; } ;; #(
6811   '') :
6812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813 $as_echo "none needed" >&6; } ;; #(
6814   *) :
6815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6816 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6817 esac
6818
6819 ac_ext=c
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6826 # On Suns, sometimes $CPP names a directory.
6827 if test -n "$CPP" && test -d "$CPP"; then
6828   CPP=
6829 fi
6830 if test -z "$CPP"; then
6831   if test "${ac_cv_prog_CPP+set}" = set; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834       # Double quotes because CPP needs to be expanded
6835     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6836     do
6837       ac_preproc_ok=false
6838 for ac_c_preproc_warn_flag in '' yes
6839 do
6840   # Use a header file that comes with gcc, so configuring glibc
6841   # with a fresh cross-compiler works.
6842   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843   # <limits.h> exists even on freestanding compilers.
6844   # On the NeXT, cc -E runs the code through the compiler's parser,
6845   # not just through cpp. "Syntax error" is here to catch this case.
6846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848 #ifdef __STDC__
6849 # include <limits.h>
6850 #else
6851 # include <assert.h>
6852 #endif
6853                      Syntax error
6854 _ACEOF
6855 if ac_fn_c_try_cpp "$LINENO"; then :
6856
6857 else
6858   # Broken: fails on valid input.
6859 continue
6860 fi
6861 rm -f conftest.err conftest.$ac_ext
6862
6863   # OK, works on sane cases.  Now check whether nonexistent headers
6864   # can be detected and how.
6865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867 #include <ac_nonexistent.h>
6868 _ACEOF
6869 if ac_fn_c_try_cpp "$LINENO"; then :
6870   # Broken: success on invalid input.
6871 continue
6872 else
6873   # Passes both tests.
6874 ac_preproc_ok=:
6875 break
6876 fi
6877 rm -f conftest.err conftest.$ac_ext
6878
6879 done
6880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881 rm -f conftest.err conftest.$ac_ext
6882 if $ac_preproc_ok; then :
6883   break
6884 fi
6885
6886     done
6887     ac_cv_prog_CPP=$CPP
6888
6889 fi
6890   CPP=$ac_cv_prog_CPP
6891 else
6892   ac_cv_prog_CPP=$CPP
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6895 $as_echo "$CPP" >&6; }
6896 ac_preproc_ok=false
6897 for ac_c_preproc_warn_flag in '' yes
6898 do
6899   # Use a header file that comes with gcc, so configuring glibc
6900   # with a fresh cross-compiler works.
6901   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902   # <limits.h> exists even on freestanding compilers.
6903   # On the NeXT, cc -E runs the code through the compiler's parser,
6904   # not just through cpp. "Syntax error" is here to catch this case.
6905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h.  */
6907 #ifdef __STDC__
6908 # include <limits.h>
6909 #else
6910 # include <assert.h>
6911 #endif
6912                      Syntax error
6913 _ACEOF
6914 if ac_fn_c_try_cpp "$LINENO"; then :
6915
6916 else
6917   # Broken: fails on valid input.
6918 continue
6919 fi
6920 rm -f conftest.err conftest.$ac_ext
6921
6922   # OK, works on sane cases.  Now check whether nonexistent headers
6923   # can be detected and how.
6924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h.  */
6926 #include <ac_nonexistent.h>
6927 _ACEOF
6928 if ac_fn_c_try_cpp "$LINENO"; then :
6929   # Broken: success on invalid input.
6930 continue
6931 else
6932   # Passes both tests.
6933 ac_preproc_ok=:
6934 break
6935 fi
6936 rm -f conftest.err conftest.$ac_ext
6937
6938 done
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then :
6942
6943 else
6944   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6947 See \`config.log' for more details" "$LINENO" 5; }
6948 fi
6949
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6958 if test "${ac_cv_path_SED+set}" = set; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6962      for ac_i in 1 2 3 4 5 6 7; do
6963        ac_script="$ac_script$as_nl$ac_script"
6964      done
6965      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6966      { ac_script=; unset ac_script;}
6967      if test -z "$SED"; then
6968   ac_path_SED_found=false
6969   # Loop through the user's path and test for each of PROGNAME-LIST
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_prog in sed gsed; do
6976     for ac_exec_ext in '' $ac_executable_extensions; do
6977       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6978       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6979 # Check for GNU ac_path_SED and select it if it is found.
6980   # Check for GNU $ac_path_SED
6981 case `"$ac_path_SED" --version 2>&1` in
6982 *GNU*)
6983   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6984 *)
6985   ac_count=0
6986   $as_echo_n 0123456789 >"conftest.in"
6987   while :
6988   do
6989     cat "conftest.in" "conftest.in" >"conftest.tmp"
6990     mv "conftest.tmp" "conftest.in"
6991     cp "conftest.in" "conftest.nl"
6992     $as_echo '' >> "conftest.nl"
6993     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6994     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6995     as_fn_arith $ac_count + 1 && ac_count=$as_val
6996     if test $ac_count -gt ${ac_path_SED_max-0}; then
6997       # Best one so far, save it but keep looking for a better one
6998       ac_cv_path_SED="$ac_path_SED"
6999       ac_path_SED_max=$ac_count
7000     fi
7001     # 10*(2^10) chars as input seems more than enough
7002     test $ac_count -gt 10 && break
7003   done
7004   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7005 esac
7006
7007       $ac_path_SED_found && break 3
7008     done
7009   done
7010   done
7011 IFS=$as_save_IFS
7012   if test -z "$ac_cv_path_SED"; then
7013     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7014   fi
7015 else
7016   ac_cv_path_SED=$SED
7017 fi
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7021 $as_echo "$ac_cv_path_SED" >&6; }
7022  SED="$ac_cv_path_SED"
7023   rm -f conftest.sed
7024
7025 test -z "$SED" && SED=sed
7026 Xsed="$SED -e 1s/^X//"
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7039 $as_echo_n "checking for fgrep... " >&6; }
7040 if test "${ac_cv_path_FGREP+set}" = set; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7044    then ac_cv_path_FGREP="$GREP -F"
7045    else
7046      if test -z "$FGREP"; then
7047   ac_path_FGREP_found=false
7048   # Loop through the user's path and test for each of PROGNAME-LIST
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054     for ac_prog in fgrep; do
7055     for ac_exec_ext in '' $ac_executable_extensions; do
7056       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7057       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7058 # Check for GNU ac_path_FGREP and select it if it is found.
7059   # Check for GNU $ac_path_FGREP
7060 case `"$ac_path_FGREP" --version 2>&1` in
7061 *GNU*)
7062   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7063 *)
7064   ac_count=0
7065   $as_echo_n 0123456789 >"conftest.in"
7066   while :
7067   do
7068     cat "conftest.in" "conftest.in" >"conftest.tmp"
7069     mv "conftest.tmp" "conftest.in"
7070     cp "conftest.in" "conftest.nl"
7071     $as_echo 'FGREP' >> "conftest.nl"
7072     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7074     as_fn_arith $ac_count + 1 && ac_count=$as_val
7075     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7076       # Best one so far, save it but keep looking for a better one
7077       ac_cv_path_FGREP="$ac_path_FGREP"
7078       ac_path_FGREP_max=$ac_count
7079     fi
7080     # 10*(2^10) chars as input seems more than enough
7081     test $ac_count -gt 10 && break
7082   done
7083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7084 esac
7085
7086       $ac_path_FGREP_found && break 3
7087     done
7088   done
7089   done
7090 IFS=$as_save_IFS
7091   if test -z "$ac_cv_path_FGREP"; then
7092     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7093   fi
7094 else
7095   ac_cv_path_FGREP=$FGREP
7096 fi
7097
7098    fi
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7101 $as_echo "$ac_cv_path_FGREP" >&6; }
7102  FGREP="$ac_cv_path_FGREP"
7103
7104
7105 test -z "$GREP" && GREP=grep
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7128 $as_echo_n "checking how to print strings... " >&6; }
7129 # Test print first, because it will be a builtin if present.
7130 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7131    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7132   ECHO='print -r --'
7133 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7134   ECHO='printf %s\n'
7135 else
7136   # Use this function as a fallback that always works.
7137   func_fallback_echo ()
7138   {
7139     eval 'cat <<_LTECHO_EOF
7140 $1
7141 _LTECHO_EOF'
7142   }
7143   ECHO='func_fallback_echo'
7144 fi
7145
7146 # func_echo_all arg...
7147 # Invoke $ECHO with all args, space-separated.
7148 func_echo_all ()
7149 {
7150     $ECHO ""
7151 }
7152
7153 case "$ECHO" in
7154   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7155 $as_echo "printf" >&6; } ;;
7156   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7157 $as_echo "print -r" >&6; } ;;
7158   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7159 $as_echo "cat" >&6; } ;;
7160 esac
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 # Check whether --with-gnu-ld was given.
7178 if test "${with_gnu_ld+set}" = set; then :
7179   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7180 else
7181   with_gnu_ld=no
7182 fi
7183
7184 ac_prog=ld
7185 if test "$GCC" = yes; then
7186   # Check if gcc -print-prog-name=ld gives a path.
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7188 $as_echo_n "checking for ld used by $CC... " >&6; }
7189   case $host in
7190   *-*-mingw*)
7191     # gcc leaves a trailing carriage return which upsets mingw
7192     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7193   *)
7194     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7195   esac
7196   case $ac_prog in
7197     # Accept absolute paths.
7198     [\\/]* | ?:[\\/]*)
7199       re_direlt='/[^/][^/]*/\.\./'
7200       # Canonicalize the pathname of ld
7201       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7202       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7203         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7204       done
7205       test -z "$LD" && LD="$ac_prog"
7206       ;;
7207   "")
7208     # If it fails, then pretend we aren't using GCC.
7209     ac_prog=ld
7210     ;;
7211   *)
7212     # If it is relative, then search for the first ld in PATH.
7213     with_gnu_ld=unknown
7214     ;;
7215   esac
7216 elif test "$with_gnu_ld" = yes; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7218 $as_echo_n "checking for GNU ld... " >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7221 $as_echo_n "checking for non-GNU ld... " >&6; }
7222 fi
7223 if test "${lt_cv_path_LD+set}" = set; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -z "$LD"; then
7227   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228   for ac_dir in $PATH; do
7229     IFS="$lt_save_ifs"
7230     test -z "$ac_dir" && ac_dir=.
7231     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7232       lt_cv_path_LD="$ac_dir/$ac_prog"
7233       # Check to see if the program is GNU ld.  I'd rather use --version,
7234       # but apparently some variants of GNU ld only accept -v.
7235       # Break only if it was the GNU/non-GNU ld that we prefer.
7236       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7237       *GNU* | *'with BFD'*)
7238         test "$with_gnu_ld" != no && break
7239         ;;
7240       *)
7241         test "$with_gnu_ld" != yes && break
7242         ;;
7243       esac
7244     fi
7245   done
7246   IFS="$lt_save_ifs"
7247 else
7248   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7249 fi
7250 fi
7251
7252 LD="$lt_cv_path_LD"
7253 if test -n "$LD"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7255 $as_echo "$LD" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7267 case `$LD -v 2>&1 </dev/null` in
7268 *GNU* | *'with BFD'*)
7269   lt_cv_prog_gnu_ld=yes
7270   ;;
7271 *)
7272   lt_cv_prog_gnu_ld=no
7273   ;;
7274 esac
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7278 with_gnu_ld=$lt_cv_prog_gnu_ld
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7290 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7291 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   ac_cv_prog_cc_c99=no
7295 ac_save_CC=$CC
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h.  */
7298 #include <stdarg.h>
7299 #include <stdbool.h>
7300 #include <stdlib.h>
7301 #include <wchar.h>
7302 #include <stdio.h>
7303
7304 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7305 #define debug(...) fprintf (stderr, __VA_ARGS__)
7306 #define showlist(...) puts (#__VA_ARGS__)
7307 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7308 static void
7309 test_varargs_macros (void)
7310 {
7311   int x = 1234;
7312   int y = 5678;
7313   debug ("Flag");
7314   debug ("X = %d\n", x);
7315   showlist (The first, second, and third items.);
7316   report (x>y, "x is %d but y is %d", x, y);
7317 }
7318
7319 // Check long long types.
7320 #define BIG64 18446744073709551615ull
7321 #define BIG32 4294967295ul
7322 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7323 #if !BIG_OK
7324   your preprocessor is broken;
7325 #endif
7326 #if BIG_OK
7327 #else
7328   your preprocessor is broken;
7329 #endif
7330 static long long int bignum = -9223372036854775807LL;
7331 static unsigned long long int ubignum = BIG64;
7332
7333 struct incomplete_array
7334 {
7335   int datasize;
7336   double data[];
7337 };
7338
7339 struct named_init {
7340   int number;
7341   const wchar_t *name;
7342   double average;
7343 };
7344
7345 typedef const char *ccp;
7346
7347 static inline int
7348 test_restrict (ccp restrict text)
7349 {
7350   // See if C++-style comments work.
7351   // Iterate through items via the restricted pointer.
7352   // Also check for declarations in for loops.
7353   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7354     continue;
7355   return 0;
7356 }
7357
7358 // Check varargs and va_copy.
7359 static void
7360 test_varargs (const char *format, ...)
7361 {
7362   va_list args;
7363   va_start (args, format);
7364   va_list args_copy;
7365   va_copy (args_copy, args);
7366
7367   const char *str;
7368   int number;
7369   float fnumber;
7370
7371   while (*format)
7372     {
7373       switch (*format++)
7374         {
7375         case 's': // string
7376           str = va_arg (args_copy, const char *);
7377           break;
7378         case 'd': // int
7379           number = va_arg (args_copy, int);
7380           break;
7381         case 'f': // float
7382           fnumber = va_arg (args_copy, double);
7383           break;
7384         default:
7385           break;
7386         }
7387     }
7388   va_end (args_copy);
7389   va_end (args);
7390 }
7391
7392 int
7393 main ()
7394 {
7395
7396   // Check bool.
7397   _Bool success = false;
7398
7399   // Check restrict.
7400   if (test_restrict ("String literal") == 0)
7401     success = true;
7402   char *restrict newvar = "Another string";
7403
7404   // Check varargs.
7405   test_varargs ("s, d' f .", "string", 65, 34.234);
7406   test_varargs_macros ();
7407
7408   // Check flexible array members.
7409   struct incomplete_array *ia =
7410     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7411   ia->datasize = 10;
7412   for (int i = 0; i < ia->datasize; ++i)
7413     ia->data[i] = i * 1.234;
7414
7415   // Check named initializers.
7416   struct named_init ni = {
7417     .number = 34,
7418     .name = L"Test wide string",
7419     .average = 543.34343,
7420   };
7421
7422   ni.number = 58;
7423
7424   int dynamic_array[ni.number];
7425   dynamic_array[ni.number - 1] = 543;
7426
7427   // work around unused variable warnings
7428   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7429           || dynamic_array[ni.number - 1] != 543);
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7436 do
7437   CC="$ac_save_CC $ac_arg"
7438   if ac_fn_c_try_compile "$LINENO"; then :
7439   ac_cv_prog_cc_c99=$ac_arg
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext
7442   test "x$ac_cv_prog_cc_c99" != "xno" && break
7443 done
7444 rm -f conftest.$ac_ext
7445 CC=$ac_save_CC
7446
7447 fi
7448 # AC_CACHE_VAL
7449 case "x$ac_cv_prog_cc_c99" in
7450   x)
7451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7452 $as_echo "none needed" >&6; } ;;
7453   xno)
7454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7455 $as_echo "unsupported" >&6; } ;;
7456   *)
7457     CC="$CC $ac_cv_prog_cc_c99"
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7459 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7460 esac
7461 if test "x$ac_cv_prog_cc_c99" != xno; then :
7462
7463 fi
7464
7465
7466 if test "x$CC" != xcc; then
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7468 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7469 else
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7471 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7472 fi
7473 set dummy $CC; ac_cc=`$as_echo "$2" |
7474                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7475 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h.  */
7480
7481 int
7482 main ()
7483 {
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 # Make sure it works both with $CC and with simple cc.
7490 # We do the test twice because some compilers refuse to overwrite an
7491 # existing .o file with -o, though they will create one.
7492 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7493 rm -f conftest2.*
7494 if { { case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7499 $as_echo "$ac_try_echo"; } >&5
7500   (eval "$ac_try") 2>&5
7501   ac_status=$?
7502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503   test $ac_status = 0; } &&
7504    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506   *) ac_try_echo=$ac_try;;
7507 esac
7508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7509 $as_echo "$ac_try_echo"; } >&5
7510   (eval "$ac_try") 2>&5
7511   ac_status=$?
7512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513   test $ac_status = 0; };
7514 then
7515   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7516   if test "x$CC" != xcc; then
7517     # Test first that cc exists at all.
7518     if { ac_try='cc -c conftest.$ac_ext >&5'
7519   { { case "(($ac_try" in
7520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521   *) ac_try_echo=$ac_try;;
7522 esac
7523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524 $as_echo "$ac_try_echo"; } >&5
7525   (eval "$ac_try") 2>&5
7526   ac_status=$?
7527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528   test $ac_status = 0; }; }; then
7529       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7530       rm -f conftest2.*
7531       if { { case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7536 $as_echo "$ac_try_echo"; } >&5
7537   (eval "$ac_try") 2>&5
7538   ac_status=$?
7539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540   test $ac_status = 0; } &&
7541          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543   *) ac_try_echo=$ac_try;;
7544 esac
7545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7546 $as_echo "$ac_try_echo"; } >&5
7547   (eval "$ac_try") 2>&5
7548   ac_status=$?
7549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550   test $ac_status = 0; };
7551       then
7552         # cc works too.
7553         :
7554       else
7555         # cc exists but doesn't like -o.
7556         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7557       fi
7558     fi
7559   fi
7560 else
7561   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7562 fi
7563 rm -f core conftest*
7564
7565 fi
7566 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568 $as_echo "yes" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572
7573 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7574
7575 fi
7576
7577 # FIXME: we rely on the cache variable name because
7578 # there is no other way.
7579 set dummy $CC
7580 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7581 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7582 if test "$am_t" != yes; then
7583    # Losing compiler, so override with the script.
7584    # FIXME: It is wrong to rewrite CC.
7585    # But if we don't then we get into trouble of one sort or another.
7586    # A longer-term fix would be to have automake use am__CC in this case,
7587    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7588    CC="$am_aux_dir/compile $CC"
7589 fi
7590
7591
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7593 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7594 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   ac_cv_cflags_warn_all="no, unknown"
7598  ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604  ac_save_CFLAGS="$CFLAGS"
7605 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"    #
7606 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h.  */
7609
7610 int
7611 main ()
7612 {
7613
7614   ;
7615   return 0;
7616 }
7617 _ACEOF
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7620 fi
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 done
7623  CFLAGS="$ac_save_CFLAGS"
7624  ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629
7630
7631 fi
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7633 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7634 case ".$ac_cv_cflags_warn_all" in
7635      .ok|.ok,*)  ;;
7636    .|.no|.no,*)
7637  ;;
7638    *)
7639    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7640    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7641   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7642   ac_status=$?
7643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644   test $ac_status = 0; }
7645    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7646   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7647   ac_status=$?
7648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649   test $ac_status = 0; }
7650                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7651    fi
7652  ;;
7653 esac
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7657 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7658 set x ${MAKE-make}
7659 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   cat >conftest.make <<\_ACEOF
7664 SHELL = /bin/sh
7665 all:
7666         @echo '@@@%%%=$(MAKE)=@@@%%%'
7667 _ACEOF
7668 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7669 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7670   *@@@%%%=?*=@@@%%%*)
7671     eval ac_cv_prog_make_${ac_make}_set=yes;;
7672   *)
7673     eval ac_cv_prog_make_${ac_make}_set=no;;
7674 esac
7675 rm -f conftest.make
7676 fi
7677 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7680   SET_MAKE=
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684   SET_MAKE="MAKE=${MAKE-make}"
7685 fi
7686
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7688 $as_echo_n "checking whether ln -s works... " >&6; }
7689 LN_S=$as_ln_s
7690 if test "$LN_S" = "ln -s"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7695 $as_echo "no, using $LN_S" >&6; }
7696 fi
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7699 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7700
7701 # Check whether --with-dmalloc was given.
7702 if test "${with_dmalloc+set}" = set; then :
7703   withval=$with_dmalloc; if test "$withval" = yes; then
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7705 $as_echo "yes" >&6; }
7706
7707 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7708
7709   LIBS="$LIBS -ldmalloc"
7710   LDFLAGS="$LDFLAGS -g"
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715 else
7716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 fi
7719
7720
7721
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7723 $as_echo_n "checking for __attribute__... " >&6; }
7724 if test "${ax_cv___attribute__+set}" = set; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h.  */
7729 #include <stdlib.h>
7730           static void foo(void) __attribute__ ((unused));
7731           static void
7732           foo(void) {
7733               exit(1);
7734           }
7735
7736 int
7737 main ()
7738 {
7739
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 if ac_fn_c_try_compile "$LINENO"; then :
7745   ax_cv___attribute__=yes
7746 else
7747   ax_cv___attribute__=no
7748
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7754 $as_echo "$ax_cv___attribute__" >&6; }
7755   if test "$ax_cv___attribute__" = "yes"; then
7756
7757 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7758
7759   fi
7760
7761
7762
7763 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7764         if test -n "$ac_tool_prefix"; then
7765   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772   case $PKG_CONFIG in
7773   [\\/]* | ?:[\\/]*)
7774   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7775   ;;
7776   *)
7777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782     for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789   done
7790 IFS=$as_save_IFS
7791
7792   ;;
7793 esac
7794 fi
7795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7796 if test -n "$PKG_CONFIG"; then
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7798 $as_echo "$PKG_CONFIG" >&6; }
7799 else
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805 fi
7806 if test -z "$ac_cv_path_PKG_CONFIG"; then
7807   ac_pt_PKG_CONFIG=$PKG_CONFIG
7808   # Extract the first word of "pkg-config", so it can be a program name with args.
7809 set dummy pkg-config; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815   case $ac_pt_PKG_CONFIG in
7816   [\\/]* | ?:[\\/]*)
7817   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7818   ;;
7819   *)
7820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823   IFS=$as_save_IFS
7824   test -z "$as_dir" && as_dir=.
7825     for ac_exec_ext in '' $ac_executable_extensions; do
7826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829     break 2
7830   fi
7831 done
7832   done
7833 IFS=$as_save_IFS
7834
7835   ;;
7836 esac
7837 fi
7838 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7839 if test -n "$ac_pt_PKG_CONFIG"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7841 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847   if test "x$ac_pt_PKG_CONFIG" = x; then
7848     PKG_CONFIG=""
7849   else
7850     case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856     PKG_CONFIG=$ac_pt_PKG_CONFIG
7857   fi
7858 else
7859   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7860 fi
7861
7862 fi
7863 if test -n "$PKG_CONFIG"; then
7864         _pkg_min_version=0.9.0
7865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7866 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7867         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7868                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7870         else
7871                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873                 PKG_CONFIG=""
7874         fi
7875
7876 fi
7877
7878 #
7879 # Enable run-time checking.
7880 #
7881 # Check whether --enable-bounds-checking was given.
7882 if test "${enable_bounds_checking+set}" = set; then :
7883   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7884 else
7885   enable_bounds_checking='no'
7886 fi
7887
7888
7889 if test "$enable_bounds_checking" = yes; then
7890
7891 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7892
7893 fi
7894
7895 #
7896 # Tests for Windows
7897 #
7898
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7901 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7902 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h.  */
7907
7908 int
7909 main ()
7910 {
7911 #ifndef _MSC_VER
7912        choke me
7913 #endif
7914
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_compile "$LINENO"; then :
7920   ax_compiler_ms=yes
7921 else
7922   ax_compiler_ms=no
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 ax_cv_c_compiler_ms=$ax_compiler_ms
7926
7927 fi
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7929 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7930
7931 GDI32_LIBS=''
7932 native_win32_build='no'
7933 cygwin_build='no'
7934 case "${host_os}" in
7935     cygwin* )
7936         cygwin_build='yes'
7937         GDI32_LIBS='-lgdi32'
7938     ;;
7939     mingw* )
7940         native_win32_build='yes'
7941         GDI32_LIBS='-lgdi32'
7942     ;;
7943 esac
7944 if test "${GDI32_LIBS}x" != 'x'; then
7945
7946 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7947
7948 fi
7949
7950  if test "${GDI32_LIBS}x" != 'x' ; then
7951   WINGDI32_DELEGATE_TRUE=
7952   WINGDI32_DELEGATE_FALSE='#'
7953 else
7954   WINGDI32_DELEGATE_TRUE='#'
7955   WINGDI32_DELEGATE_FALSE=
7956 fi
7957
7958  if test "${native_win32_build}" = 'yes' ; then
7959   WIN32_NATIVE_BUILD_TRUE=
7960   WIN32_NATIVE_BUILD_FALSE='#'
7961 else
7962   WIN32_NATIVE_BUILD_TRUE='#'
7963   WIN32_NATIVE_BUILD_FALSE=
7964 fi
7965
7966  if test "${cygwin_build}" = 'yes' ; then
7967   CYGWIN_BUILD_TRUE=
7968   CYGWIN_BUILD_FALSE='#'
7969 else
7970   CYGWIN_BUILD_TRUE='#'
7971   CYGWIN_BUILD_FALSE=
7972 fi
7973
7974  if test "x${CC}" = 'xcl.exe' ; then
7975   USING_CL_TRUE=
7976   USING_CL_FALSE='#'
7977 else
7978   USING_CL_TRUE='#'
7979   USING_CL_FALSE=
7980 fi
7981
7982
7983 WinPathScript="${srcdirfull}/winpath.sh"
7984
7985
7986 #
7987 # Compiler flags tweaks
7988 #
7989 if test "${GCC}" != "yes"; then
7990     case "${host}" in
7991         *-*-hpux* )
7992             # aCC: HP ANSI C++ B3910B A.03.34
7993             CFLAGS="${CFLAGS} -Wp,-H30000"
7994             if test -n "${CXXFLAGS}"; then
7995                 CXXFLAGS='-AA'
7996             else
7997                 CXXFLAGS="${CXXFLAGS} -AA"
7998             fi
7999         ;;
8000         *-dec-osf5.* )
8001             # Compaq alphaev68-dec-osf5.1 compiler
8002             if test -n "${CXXFLAGS}"; then
8003                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8004             else
8005                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8006             fi
8007   esac
8008 fi
8009
8010 # Check for lazy-loading.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8012 $as_echo_n "checking for linker lazyload option... " >&6; }
8013 if test "${im_cv_ld_lazyload+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016
8017 im_cv_ld_lazyload='none'
8018 case "${host}" in
8019   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8020     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8021        im_cv_ld_lazyload='-Wl,-zlazyload'
8022     fi
8023     ;;
8024 esac
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8028 $as_echo "$im_cv_ld_lazyload" >&6; }
8029 if test "${im_cv_ld_lazyload}" != 'none' ; then
8030   if test -z "${LDFLAGS}" ; then
8031     LDFLAGS="${im_cv_ld_lazyload}"
8032   else
8033     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8034   fi
8035 fi
8036
8037 case "$host" in
8038 *darwin* | *-macos10*)
8039     # Check whether --enable-osx-universal-binary was given.
8040 if test "${enable_osx_universal_binary+set}" = set; then :
8041   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8042 else
8043   build_osxuniversal=no
8044 fi
8045
8046
8047   if test "${build_osxuniversal}" != no ; then
8048     if test "$enable_dependency_tracking" != no ; then
8049       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8050 Please re-run configure with these options:
8051   --disable-dependency-tracking --enable-osx-universal-binary
8052         " "$LINENO" 5
8053     fi
8054     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8055     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8056     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8057   fi
8058   ;;
8059 esac
8060
8061 # Enable support for threads
8062
8063 # Check whether --with-threads was given.
8064 if test "${with_threads+set}" = set; then :
8065   withval=$with_threads; with_threads=$withval
8066 else
8067   with_threads='yes'
8068 fi
8069
8070
8071 have_threads=no
8072 if test "$with_threads" != 'no'; then
8073
8074
8075
8076 ac_ext=c
8077 ac_cpp='$CPP $CPPFLAGS'
8078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8081
8082 ax_pthread_ok=no
8083
8084 # We used to check for pthread.h first, but this fails if pthread.h
8085 # requires special compiler flags (e.g. on True64 or Sequent).
8086 # It gets checked for in the link test anyway.
8087
8088 # First of all, check if the user has set any of the PTHREAD_LIBS,
8089 # etcetera environment variables, and if threads linking works using
8090 # them:
8091 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8092         save_CFLAGS="$CFLAGS"
8093         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8094         save_LIBS="$LIBS"
8095         LIBS="$PTHREAD_LIBS $LIBS"
8096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8097 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8098         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h.  */
8100
8101 /* Override any GCC internal prototype to avoid an error.
8102    Use char because int might match the return type of a GCC
8103    builtin and then its argument prototype would still apply.  */
8104 #ifdef __cplusplus
8105 extern "C"
8106 #endif
8107 char pthread_join ();
8108 int
8109 main ()
8110 {
8111 return pthread_join ();
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117   ax_pthread_ok=yes
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext \
8120     conftest$ac_exeext conftest.$ac_ext
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8122 $as_echo "$ax_pthread_ok" >&6; }
8123         if test x"$ax_pthread_ok" = xno; then
8124                 PTHREAD_LIBS=""
8125                 PTHREAD_CFLAGS=""
8126         fi
8127         LIBS="$save_LIBS"
8128         CFLAGS="$save_CFLAGS"
8129 fi
8130
8131 # We must check for the threads library under a number of different
8132 # names; the ordering is very important because some systems
8133 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8134 # libraries is broken (non-POSIX).
8135
8136 # Create a list of thread flags to try.  Items starting with a "-" are
8137 # C compiler flags, and other items are library names, except for "none"
8138 # which indicates that we try without any flags at all, and "pthread-config"
8139 # which is a program returning the flags for the Pth emulation library.
8140
8141 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8142
8143 # The ordering *is* (sometimes) important.  Some notes on the
8144 # individual items follow:
8145
8146 # pthreads: AIX (must check this before -lpthread)
8147 # none: in case threads are in libc; should be tried before -Kthread and
8148 #       other compiler flags to prevent continual compiler warnings
8149 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8150 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8151 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8152 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8153 # -pthreads: Solaris/gcc
8154 # -mthreads: Mingw32/gcc, Lynx/gcc
8155 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8156 #      doesn't hurt to check since this sometimes defines pthreads too;
8157 #      also defines -D_REENTRANT)
8158 #      ... -mt is also the pthreads flag for HP/aCC
8159 # pthread: Linux, etcetera
8160 # --thread-safe: KAI C++
8161 # pthread-config: use pthread-config program (for GNU Pth library)
8162
8163 case "${host_cpu}-${host_os}" in
8164         *solaris*)
8165
8166         # On Solaris (at least, for some versions), libc contains stubbed
8167         # (non-functional) versions of the pthreads routines, so link-based
8168         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8169         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8170         # a function called by this macro, so we could check for that, but
8171         # who knows whether they'll stub that too in a future libc.)  So,
8172         # we'll just look for -pthreads and -lpthread first:
8173
8174         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8175         ;;
8176
8177         *-darwin*)
8178         ax_pthread_flags="-pthread $ax_pthread_flags"
8179         ;;
8180 esac
8181
8182 if test x"$ax_pthread_ok" = xno; then
8183 for flag in $ax_pthread_flags; do
8184
8185         case $flag in
8186                 none)
8187                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8188 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8189                 ;;
8190
8191                 -*)
8192                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8193 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8194                 PTHREAD_CFLAGS="$flag"
8195                 ;;
8196
8197                 pthread-config)
8198                 # Extract the first word of "pthread-config", so it can be a program name with args.
8199 set dummy pthread-config; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   if test -n "$ax_pthread_config"; then
8206   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211   IFS=$as_save_IFS
8212   test -z "$as_dir" && as_dir=.
8213     for ac_exec_ext in '' $ac_executable_extensions; do
8214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215     ac_cv_prog_ax_pthread_config="yes"
8216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217     break 2
8218   fi
8219 done
8220   done
8221 IFS=$as_save_IFS
8222
8223   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8224 fi
8225 fi
8226 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8227 if test -n "$ax_pthread_config"; then
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8229 $as_echo "$ax_pthread_config" >&6; }
8230 else
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236                 if test x"$ax_pthread_config" = xno; then continue; fi
8237                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8238                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8239                 ;;
8240
8241                 *)
8242                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8243 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8244                 PTHREAD_LIBS="-l$flag"
8245                 ;;
8246         esac
8247
8248         save_LIBS="$LIBS"
8249         save_CFLAGS="$CFLAGS"
8250         LIBS="$PTHREAD_LIBS $LIBS"
8251         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8252
8253         # Check for various functions.  We must include pthread.h,
8254         # since some functions may be macros.  (On the Sequent, we
8255         # need a special flag -Kthread to make this header compile.)
8256         # We check for pthread_join because it is in -lpthread on IRIX
8257         # while pthread_create is in libc.  We check for pthread_attr_init
8258         # due to DEC craziness with -lpthreads.  We check for
8259         # pthread_cleanup_push because it is one of the few pthread
8260         # functions on Solaris that doesn't have a non-functional libc stub.
8261         # We try pthread_create on general principles.
8262         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264 #include <pthread.h>
8265                      static void routine(void* a) {a=0;}
8266                      static void* start_routine(void* a) {return a;}
8267 int
8268 main ()
8269 {
8270 pthread_t th; pthread_attr_t attr;
8271                      pthread_create(&th,0,start_routine,0);
8272                      pthread_join(th, 0);
8273                      pthread_attr_init(&attr);
8274                      pthread_cleanup_push(routine, 0);
8275                      pthread_cleanup_pop(0);
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281   ax_pthread_ok=yes
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext \
8284     conftest$ac_exeext conftest.$ac_ext
8285
8286         LIBS="$save_LIBS"
8287         CFLAGS="$save_CFLAGS"
8288
8289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8290 $as_echo "$ax_pthread_ok" >&6; }
8291         if test "x$ax_pthread_ok" = xyes; then
8292                 break;
8293         fi
8294
8295         PTHREAD_LIBS=""
8296         PTHREAD_CFLAGS=""
8297 done
8298 fi
8299
8300 # Various other checks:
8301 if test "x$ax_pthread_ok" = xyes; then
8302         save_LIBS="$LIBS"
8303         LIBS="$PTHREAD_LIBS $LIBS"
8304         save_CFLAGS="$CFLAGS"
8305         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8306
8307         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8309 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8310         attr_name=unknown
8311         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8312             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h.  */
8314 #include <pthread.h>
8315 int
8316 main ()
8317 {
8318 int attr=$attr; return attr;
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 if ac_fn_c_try_link "$LINENO"; then :
8324   attr_name=$attr; break
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext \
8327     conftest$ac_exeext conftest.$ac_ext
8328         done
8329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8330 $as_echo "$attr_name" >&6; }
8331         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8332
8333 cat >>confdefs.h <<_ACEOF
8334 #define PTHREAD_CREATE_JOINABLE $attr_name
8335 _ACEOF
8336
8337         fi
8338
8339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8340 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8341         flag=no
8342         case "${host_cpu}-${host_os}" in
8343             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8344             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8345         esac
8346         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8347 $as_echo "${flag}" >&6; }
8348         if test "x$flag" != xno; then
8349             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8350         fi
8351
8352         LIBS="$save_LIBS"
8353         CFLAGS="$save_CFLAGS"
8354
8355         # More AIX lossage: must compile with xlc_r or cc_r
8356         if test x"$GCC" != xyes; then
8357           for ac_prog in xlc_r cc_r
8358 do
8359   # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   if test -n "$PTHREAD_CC"; then
8367   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8371 do
8372   IFS=$as_save_IFS
8373   test -z "$as_dir" && as_dir=.
8374     for ac_exec_ext in '' $ac_executable_extensions; do
8375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376     ac_cv_prog_PTHREAD_CC="$ac_prog"
8377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378     break 2
8379   fi
8380 done
8381   done
8382 IFS=$as_save_IFS
8383
8384 fi
8385 fi
8386 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8387 if test -n "$PTHREAD_CC"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8389 $as_echo "$PTHREAD_CC" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396   test -n "$PTHREAD_CC" && break
8397 done
8398 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8399
8400         else
8401           PTHREAD_CC=$CC
8402         fi
8403 else
8404         PTHREAD_CC="$CC"
8405 fi
8406
8407
8408
8409
8410
8411 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8412 if test x"$ax_pthread_ok" = xyes; then
8413
8414 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8415
8416         :
8417 else
8418         ax_pthread_ok=no
8419
8420 fi
8421 ac_ext=c
8422 ac_cpp='$CPP $CPPFLAGS'
8423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426
8427
8428     if test "$ax_pthread_ok" = yes; then
8429         have_threads=yes
8430         DEF_THREAD="$PTHREAD_CFLAGS"
8431         CFLAGS="$CFLAGS $DEF_THREAD"
8432         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8433         if test "$CC" != "$PTHREAD_CC"; then
8434             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8435 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8436             CC="$PTHREAD_CC"
8437         fi
8438
8439 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8440
8441     fi
8442 fi
8443
8444 # Enable support for OpenMP
8445 if test "$have_threads" != 'yes'; then
8446   ac_cv_prog_c_openmp=unsupported
8447 fi
8448
8449   OPENMP_CFLAGS=
8450   # Check whether --enable-openmp was given.
8451 if test "${enable_openmp+set}" = set; then :
8452   enableval=$enable_openmp;
8453 fi
8454
8455   if test "$enable_openmp" != no; then
8456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8457 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8458 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8459   $as_echo_n "(cached) " >&6
8460 else
8461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463
8464 #ifndef _OPENMP
8465  choke me
8466 #endif
8467 #include <omp.h>
8468 int main () { return omp_get_num_threads (); }
8469
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472   ac_cv_prog_c_openmp='none needed'
8473 else
8474   ac_cv_prog_c_openmp='unsupported'
8475                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8476             ac_save_CFLAGS=$CFLAGS
8477             CFLAGS="$CFLAGS $ac_option"
8478             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h.  */
8480
8481 #ifndef _OPENMP
8482  choke me
8483 #endif
8484 #include <omp.h>
8485 int main () { return omp_get_num_threads (); }
8486
8487 _ACEOF
8488 if ac_fn_c_try_link "$LINENO"; then :
8489   ac_cv_prog_c_openmp=$ac_option
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext \
8492     conftest$ac_exeext conftest.$ac_ext
8493             CFLAGS=$ac_save_CFLAGS
8494             if test "$ac_cv_prog_c_openmp" != unsupported; then
8495               break
8496             fi
8497           done
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext \
8500     conftest$ac_exeext conftest.$ac_ext
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8503 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8504     case $ac_cv_prog_c_openmp in #(
8505       "none needed" | unsupported)
8506         ;; #(
8507       *)
8508         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8509     esac
8510   fi
8511
8512
8513 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8514 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8515
8516 if test "$enable_openmp" != no; then
8517   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8518     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8519   fi
8520 fi
8521
8522 # Enable support for OpenCL
8523
8524
8525
8526 ac_ext=c
8527 ac_cpp='$CPP $CPPFLAGS'
8528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8531
8532 ax_pthread_ok=no
8533
8534 # We used to check for pthread.h first, but this fails if pthread.h
8535 # requires special compiler flags (e.g. on True64 or Sequent).
8536 # It gets checked for in the link test anyway.
8537
8538 # First of all, check if the user has set any of the PTHREAD_LIBS,
8539 # etcetera environment variables, and if threads linking works using
8540 # them:
8541 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8542         save_CFLAGS="$CFLAGS"
8543         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8544         save_LIBS="$LIBS"
8545         LIBS="$PTHREAD_LIBS $LIBS"
8546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8547 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8548         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h.  */
8550
8551 /* Override any GCC internal prototype to avoid an error.
8552    Use char because int might match the return type of a GCC
8553    builtin and then its argument prototype would still apply.  */
8554 #ifdef __cplusplus
8555 extern "C"
8556 #endif
8557 char pthread_join ();
8558 int
8559 main ()
8560 {
8561 return pthread_join ();
8562   ;
8563   return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"; then :
8567   ax_pthread_ok=yes
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570     conftest$ac_exeext conftest.$ac_ext
8571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8572 $as_echo "$ax_pthread_ok" >&6; }
8573         if test x"$ax_pthread_ok" = xno; then
8574                 PTHREAD_LIBS=""
8575                 PTHREAD_CFLAGS=""
8576         fi
8577         LIBS="$save_LIBS"
8578         CFLAGS="$save_CFLAGS"
8579 fi
8580
8581 # We must check for the threads library under a number of different
8582 # names; the ordering is very important because some systems
8583 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8584 # libraries is broken (non-POSIX).
8585
8586 # Create a list of thread flags to try.  Items starting with a "-" are
8587 # C compiler flags, and other items are library names, except for "none"
8588 # which indicates that we try without any flags at all, and "pthread-config"
8589 # which is a program returning the flags for the Pth emulation library.
8590
8591 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8592
8593 # The ordering *is* (sometimes) important.  Some notes on the
8594 # individual items follow:
8595
8596 # pthreads: AIX (must check this before -lpthread)
8597 # none: in case threads are in libc; should be tried before -Kthread and
8598 #       other compiler flags to prevent continual compiler warnings
8599 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8600 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8601 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8602 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8603 # -pthreads: Solaris/gcc
8604 # -mthreads: Mingw32/gcc, Lynx/gcc
8605 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8606 #      doesn't hurt to check since this sometimes defines pthreads too;
8607 #      also defines -D_REENTRANT)
8608 #      ... -mt is also the pthreads flag for HP/aCC
8609 # pthread: Linux, etcetera
8610 # --thread-safe: KAI C++
8611 # pthread-config: use pthread-config program (for GNU Pth library)
8612
8613 case "${host_cpu}-${host_os}" in
8614         *solaris*)
8615
8616         # On Solaris (at least, for some versions), libc contains stubbed
8617         # (non-functional) versions of the pthreads routines, so link-based
8618         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8619         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8620         # a function called by this macro, so we could check for that, but
8621         # who knows whether they'll stub that too in a future libc.)  So,
8622         # we'll just look for -pthreads and -lpthread first:
8623
8624         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8625         ;;
8626
8627         *-darwin*)
8628         ax_pthread_flags="-pthread $ax_pthread_flags"
8629         ;;
8630 esac
8631
8632 if test x"$ax_pthread_ok" = xno; then
8633 for flag in $ax_pthread_flags; do
8634
8635         case $flag in
8636                 none)
8637                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8638 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8639                 ;;
8640
8641                 -*)
8642                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8643 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8644                 PTHREAD_CFLAGS="$flag"
8645                 ;;
8646
8647                 pthread-config)
8648                 # Extract the first word of "pthread-config", so it can be a program name with args.
8649 set dummy pthread-config; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8653   $as_echo_n "(cached) " >&6
8654 else
8655   if test -n "$ax_pthread_config"; then
8656   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661   IFS=$as_save_IFS
8662   test -z "$as_dir" && as_dir=.
8663     for ac_exec_ext in '' $ac_executable_extensions; do
8664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665     ac_cv_prog_ax_pthread_config="yes"
8666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667     break 2
8668   fi
8669 done
8670   done
8671 IFS=$as_save_IFS
8672
8673   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8674 fi
8675 fi
8676 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8677 if test -n "$ax_pthread_config"; then
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8679 $as_echo "$ax_pthread_config" >&6; }
8680 else
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8683 fi
8684
8685
8686                 if test x"$ax_pthread_config" = xno; then continue; fi
8687                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8688                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8689                 ;;
8690
8691                 *)
8692                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8693 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8694                 PTHREAD_LIBS="-l$flag"
8695                 ;;
8696         esac
8697
8698         save_LIBS="$LIBS"
8699         save_CFLAGS="$CFLAGS"
8700         LIBS="$PTHREAD_LIBS $LIBS"
8701         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8702
8703         # Check for various functions.  We must include pthread.h,
8704         # since some functions may be macros.  (On the Sequent, we
8705         # need a special flag -Kthread to make this header compile.)
8706         # We check for pthread_join because it is in -lpthread on IRIX
8707         # while pthread_create is in libc.  We check for pthread_attr_init
8708         # due to DEC craziness with -lpthreads.  We check for
8709         # pthread_cleanup_push because it is one of the few pthread
8710         # functions on Solaris that doesn't have a non-functional libc stub.
8711         # We try pthread_create on general principles.
8712         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h.  */
8714 #include <pthread.h>
8715                      static void routine(void* a) {a=0;}
8716                      static void* start_routine(void* a) {return a;}
8717 int
8718 main ()
8719 {
8720 pthread_t th; pthread_attr_t attr;
8721                      pthread_create(&th,0,start_routine,0);
8722                      pthread_join(th, 0);
8723                      pthread_attr_init(&attr);
8724                      pthread_cleanup_push(routine, 0);
8725                      pthread_cleanup_pop(0);
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731   ax_pthread_ok=yes
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext \
8734     conftest$ac_exeext conftest.$ac_ext
8735
8736         LIBS="$save_LIBS"
8737         CFLAGS="$save_CFLAGS"
8738
8739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8740 $as_echo "$ax_pthread_ok" >&6; }
8741         if test "x$ax_pthread_ok" = xyes; then
8742                 break;
8743         fi
8744
8745         PTHREAD_LIBS=""
8746         PTHREAD_CFLAGS=""
8747 done
8748 fi
8749
8750 # Various other checks:
8751 if test "x$ax_pthread_ok" = xyes; then
8752         save_LIBS="$LIBS"
8753         LIBS="$PTHREAD_LIBS $LIBS"
8754         save_CFLAGS="$CFLAGS"
8755         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8756
8757         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8759 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8760         attr_name=unknown
8761         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8762             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h.  */
8764 #include <pthread.h>
8765 int
8766 main ()
8767 {
8768 int attr=$attr; return attr;
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_link "$LINENO"; then :
8774   attr_name=$attr; break
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777     conftest$ac_exeext conftest.$ac_ext
8778         done
8779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8780 $as_echo "$attr_name" >&6; }
8781         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8782
8783 cat >>confdefs.h <<_ACEOF
8784 #define PTHREAD_CREATE_JOINABLE $attr_name
8785 _ACEOF
8786
8787         fi
8788
8789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8790 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8791         flag=no
8792         case "${host_cpu}-${host_os}" in
8793             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8794             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8795         esac
8796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8797 $as_echo "${flag}" >&6; }
8798         if test "x$flag" != xno; then
8799             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8800         fi
8801
8802         LIBS="$save_LIBS"
8803         CFLAGS="$save_CFLAGS"
8804
8805         # More AIX lossage: must compile with xlc_r or cc_r
8806         if test x"$GCC" != xyes; then
8807           for ac_prog in xlc_r cc_r
8808 do
8809   # Extract the first word of "$ac_prog", so it can be a program name with args.
8810 set dummy $ac_prog; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   if test -n "$PTHREAD_CC"; then
8817   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8818 else
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8821 do
8822   IFS=$as_save_IFS
8823   test -z "$as_dir" && as_dir=.
8824     for ac_exec_ext in '' $ac_executable_extensions; do
8825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826     ac_cv_prog_PTHREAD_CC="$ac_prog"
8827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828     break 2
8829   fi
8830 done
8831   done
8832 IFS=$as_save_IFS
8833
8834 fi
8835 fi
8836 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8837 if test -n "$PTHREAD_CC"; then
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8839 $as_echo "$PTHREAD_CC" >&6; }
8840 else
8841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8843 fi
8844
8845
8846   test -n "$PTHREAD_CC" && break
8847 done
8848 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8849
8850         else
8851           PTHREAD_CC=$CC
8852         fi
8853 else
8854         PTHREAD_CC="$CC"
8855 fi
8856
8857
8858
8859
8860
8861 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8862 if test x"$ax_pthread_ok" = xyes; then
8863
8864 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8865
8866         :
8867 else
8868         ax_pthread_ok=no
8869
8870 fi
8871 ac_ext=c
8872 ac_cpp='$CPP $CPPFLAGS'
8873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8876
8877
8878
8879 # Check whether --enable-opencl was given.
8880 if test "${enable_opencl+set}" = set; then :
8881   enableval=$enable_opencl; disable_opencl=$enableval
8882 else
8883   disable_opencl='yes'
8884 fi
8885
8886
8887 if test "$disable_opencl" = 'yes'; then
8888   ac_ext=c
8889 ac_cpp='$CPP $CPPFLAGS'
8890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8893
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8895 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8896 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h.  */
8901
8902 int
8903 main ()
8904 {
8905 #ifndef _MSC_VER
8906        choke me
8907 #endif
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"; then :
8914   ax_compiler_ms=yes
8915 else
8916   ax_compiler_ms=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 ax_cv_c_compiler_ms=$ax_compiler_ms
8920
8921 fi
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8923 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8924   if test X$ax_compiler_ms = Xno; then :
8925   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8926 fi
8927
8928   ax_save_CPPFLAGS=$CPPFLAGS
8929   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8930   for ac_header in CL/cl.h OpenCL/cl.h
8931 do :
8932   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8935   cat >>confdefs.h <<_ACEOF
8936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8937 _ACEOF
8938
8939 fi
8940
8941 done
8942
8943   CPPFLAGS=$ax_save_CPPFLAGS
8944
8945   for ac_header in windows.h
8946 do :
8947   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8948 if test "x$ac_cv_header_windows_h" = x""yes; then :
8949   cat >>confdefs.h <<_ACEOF
8950 #define HAVE_WINDOWS_H 1
8951 _ACEOF
8952
8953 fi
8954
8955 done
8956
8957
8958
8959
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8961 $as_echo_n "checking for OpenCL library... " >&6; }
8962 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8963   $as_echo_n "(cached) " >&6
8964 else
8965   ax_cv_check_cl_libcl=no
8966   case $host_cpu in
8967     x86_64) ax_check_cl_libdir=lib64 ;;
8968     *)      ax_check_cl_libdir=lib ;;
8969   esac
8970   ax_save_CPPFLAGS=$CPPFLAGS
8971   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8972   ax_save_LIBS=$LIBS
8973   LIBS=""
8974   ax_check_libs="-lOpenCL -lCL -lclparser"
8975   for ax_lib in $ax_check_libs; do
8976     if test X$ax_compiler_ms = Xyes; then :
8977   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8978 else
8979   ax_try_lib=$ax_lib
8980 fi
8981     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h.  */
8984
8985   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8986   #   include <windows.h>
8987   # endif
8988   # ifdef HAVE_CL_CL_H
8989   #   include <CL/cl.h>
8990   # elif defined(HAVE_OPENCL_CL_H)
8991   #   include <OpenCL/cl.h>
8992   # else
8993   #   error no CL.h
8994   # endif
8995 int
8996 main ()
8997 {
8998 clCreateContextFromType(0,0,0,0,0)
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004   ax_cv_check_cl_libcl=$ax_try_lib; break
9005 else
9006   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"
9007                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011   #   include <windows.h>
9012   # endif
9013   # ifdef HAVE_CL_CL_H
9014   #   include <CL/cl.h>
9015   # elif defined(HAVE_OPENCL_CL_H)
9016   #   include <OpenCL/cl.h>
9017   # else
9018   #   error no CL.h
9019   # endif
9020 int
9021 main ()
9022 {
9023 clCreateContextFromType(0,0,0,0,0)
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_link "$LINENO"; then :
9029   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9030 else
9031   ax_check_cl_dylib_flag='-Wl,-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"
9032                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h.  */
9034
9035   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036   #   include <windows.h>
9037   # endif
9038   # ifdef HAVE_CL_CL_H
9039   #   include <CL/cl.h>
9040   # elif defined(HAVE_OPENCL_CL_H)
9041   #   include <OpenCL/cl.h>
9042   # else
9043   #   error no CL.h
9044   # endif
9045 int
9046 main ()
9047 {
9048 clCreateContextFromType(0,0,0,0,0)
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext \
9057     conftest$ac_exeext conftest.$ac_ext
9058 fi
9059 rm -f core conftest.err conftest.$ac_objext \
9060     conftest$ac_exeext conftest.$ac_ext
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext \
9063     conftest$ac_exeext conftest.$ac_ext
9064   done
9065
9066   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9067   LIBS='-Wl,-framework,OpenCL'
9068         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h.  */
9070
9071   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9072   #   include <windows.h>
9073   # endif
9074   # ifdef HAVE_CL_CL_H
9075   #   include <CL/cl.h>
9076   # elif defined(HAVE_OPENCL_CL_H)
9077   #   include <OpenCL/cl.h>
9078   # else
9079   #   error no CL.h
9080   # endif
9081 int
9082 main ()
9083 {
9084 clCreateContextFromType(0,0,0,0,0)
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090   ax_cv_check_cl_libcl=$LIBS
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext \
9093     conftest$ac_exeext conftest.$ac_ext
9094 fi
9095
9096   LIBS=$ax_save_LIBS
9097   CPPFLAGS=$ax_save_CPPFLAGS
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9100 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9101
9102   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9103   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9104 else
9105   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9106 $as_echo "#define _OPENCL 1" >>confdefs.h
9107
9108 fi
9109   ac_ext=c
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9114
9115 fi
9116
9117
9118
9119
9120 CFLAGS="$CL_CFLAGS $CFLAGS"
9121 LIBS="$CL_LIBS $LIBS"
9122
9123 if test "$enable_opencl" != no; then
9124   if test "_OPENCL" = '1'; then
9125     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9126   fi
9127 fi
9128
9129 ########
9130 #
9131 # Check for large file support
9132 #
9133 ########
9134 # Check whether --enable-largefile was given.
9135 if test "${enable_largefile+set}" = set; then :
9136   enableval=$enable_largefile;
9137 fi
9138
9139 if test "$enable_largefile" != no; then
9140
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9142 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9143 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   ac_cv_sys_largefile_CC=no
9147      if test "$GCC" != yes; then
9148        ac_save_CC=$CC
9149        while :; do
9150          # IRIX 6.2 and later do not support large files by default,
9151          # so use the C compiler's -n32 option if that helps.
9152          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h.  */
9154 #include <sys/types.h>
9155  /* Check that off_t can represent 2**63 - 1 correctly.
9156     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9157     since some C++ compilers masquerading as C compilers
9158     incorrectly reject 9223372036854775807.  */
9159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9160   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9161                        && LARGE_OFF_T % 2147483647 == 1)
9162                       ? 1 : -1];
9163 int
9164 main ()
9165 {
9166
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171          if ac_fn_c_try_compile "$LINENO"; then :
9172   break
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext
9175          CC="$CC -n32"
9176          if ac_fn_c_try_compile "$LINENO"; then :
9177   ac_cv_sys_largefile_CC=' -n32'; break
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext
9180          break
9181        done
9182        CC=$ac_save_CC
9183        rm -f conftest.$ac_ext
9184     fi
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9187 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9188   if test "$ac_cv_sys_largefile_CC" != no; then
9189     CC=$CC$ac_cv_sys_largefile_CC
9190   fi
9191
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9193 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9194 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   while :; do
9198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h.  */
9200 #include <sys/types.h>
9201  /* Check that off_t can represent 2**63 - 1 correctly.
9202     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9203     since some C++ compilers masquerading as C compilers
9204     incorrectly reject 9223372036854775807.  */
9205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9206   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9207                        && LARGE_OFF_T % 2147483647 == 1)
9208                       ? 1 : -1];
9209 int
9210 main ()
9211 {
9212
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_compile "$LINENO"; then :
9218   ac_cv_sys_file_offset_bits=no; break
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h.  */
9223 #define _FILE_OFFSET_BITS 64
9224 #include <sys/types.h>
9225  /* Check that off_t can represent 2**63 - 1 correctly.
9226     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227     since some C++ compilers masquerading as C compilers
9228     incorrectly reject 9223372036854775807.  */
9229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231                        && LARGE_OFF_T % 2147483647 == 1)
9232                       ? 1 : -1];
9233 int
9234 main ()
9235 {
9236
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242   ac_cv_sys_file_offset_bits=64; break
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245   ac_cv_sys_file_offset_bits=unknown
9246   break
9247 done
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9250 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9251 case $ac_cv_sys_file_offset_bits in #(
9252   no | unknown) ;;
9253   *)
9254 cat >>confdefs.h <<_ACEOF
9255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9256 _ACEOF
9257 ;;
9258 esac
9259 rm -rf conftest*
9260   if test $ac_cv_sys_file_offset_bits = unknown; then
9261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9262 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9263 if test "${ac_cv_sys_large_files+set}" = set; then :
9264   $as_echo_n "(cached) " >&6
9265 else
9266   while :; do
9267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h.  */
9269 #include <sys/types.h>
9270  /* Check that off_t can represent 2**63 - 1 correctly.
9271     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9272     since some C++ compilers masquerading as C compilers
9273     incorrectly reject 9223372036854775807.  */
9274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9275   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9276                        && LARGE_OFF_T % 2147483647 == 1)
9277                       ? 1 : -1];
9278 int
9279 main ()
9280 {
9281
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 if ac_fn_c_try_compile "$LINENO"; then :
9287   ac_cv_sys_large_files=no; break
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h.  */
9292 #define _LARGE_FILES 1
9293 #include <sys/types.h>
9294  /* Check that off_t can represent 2**63 - 1 correctly.
9295     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9296     since some C++ compilers masquerading as C compilers
9297     incorrectly reject 9223372036854775807.  */
9298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9299   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9300                        && LARGE_OFF_T % 2147483647 == 1)
9301                       ? 1 : -1];
9302 int
9303 main ()
9304 {
9305
9306   ;
9307   return 0;
9308 }
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311   ac_cv_sys_large_files=1; break
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314   ac_cv_sys_large_files=unknown
9315   break
9316 done
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9319 $as_echo "$ac_cv_sys_large_files" >&6; }
9320 case $ac_cv_sys_large_files in #(
9321   no | unknown) ;;
9322   *)
9323 cat >>confdefs.h <<_ACEOF
9324 #define _LARGE_FILES $ac_cv_sys_large_files
9325 _ACEOF
9326 ;;
9327 esac
9328 rm -rf conftest*
9329   fi
9330 fi
9331
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9333 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9334 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9335   $as_echo_n "(cached) " >&6
9336 else
9337   while :; do
9338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h.  */
9340 #include <sys/types.h> /* for off_t */
9341      #include <stdio.h>
9342 int
9343 main ()
9344 {
9345 int (*fp) (FILE *, off_t, int) = fseeko;
9346      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352   ac_cv_sys_largefile_source=no; break
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext \
9355     conftest$ac_exeext conftest.$ac_ext
9356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h.  */
9358 #define _LARGEFILE_SOURCE 1
9359 #include <sys/types.h> /* for off_t */
9360      #include <stdio.h>
9361 int
9362 main ()
9363 {
9364 int (*fp) (FILE *, off_t, int) = fseeko;
9365      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371   ac_cv_sys_largefile_source=1; break
9372 fi
9373 rm -f core conftest.err conftest.$ac_objext \
9374     conftest$ac_exeext conftest.$ac_ext
9375   ac_cv_sys_largefile_source=unknown
9376   break
9377 done
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9380 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9381 case $ac_cv_sys_largefile_source in #(
9382   no | unknown) ;;
9383   *)
9384 cat >>confdefs.h <<_ACEOF
9385 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9386 _ACEOF
9387 ;;
9388 esac
9389 rm -rf conftest*
9390
9391 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9392 # in glibc 2.1.3, but that breaks too many other things.
9393 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9394 if test $ac_cv_sys_largefile_source != unknown; then
9395
9396 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9397
9398 fi
9399
9400 LFS_CPPFLAGS=''
9401 if test "$enable_largefile" != no; then
9402     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9403         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9404     else
9405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9406 $as_echo_n "checking for native large file support... " >&6; }
9407         if test "$cross_compiling" = yes; then :
9408   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9410 as_fn_error $? "cannot run test program while cross compiling
9411 See \`config.log' for more details" "$LINENO" 5; }
9412 else
9413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h.  */
9415 #include <unistd.h>
9416           main () {
9417           exit(!(sizeof(off_t) == 8));
9418         }
9419 _ACEOF
9420 if ac_fn_c_try_run "$LINENO"; then :
9421   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9422
9423          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9424 $as_echo "yes" >&6; }
9425 else
9426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9428 fi
9429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9430   conftest.$ac_objext conftest.beam conftest.$ac_ext
9431 fi
9432
9433     fi
9434     if test "$ac_cv_sys_large_files" != 'no'; then
9435         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9436     fi
9437     if test "$ac_cv_sys_largefile_source" != 'no'; then
9438         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9439     fi
9440 fi
9441
9442
9443 #
9444 # Configure libtool & libltdl
9445 #
9446 # Configure libtool
9447 enable_dlopen=yes
9448
9449
9450
9451 case `pwd` in
9452   *\ * | *\     *)
9453     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9454 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9455 esac
9456
9457
9458
9459 macro_version='2.2.10'
9460 macro_revision='1.3175'
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474 ltmain="$ac_aux_dir/ltmain.sh"
9475
9476 # Backslashify metacharacters that are still active within
9477 # double-quoted strings.
9478 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9479
9480 # Same as above, but do not quote variable references.
9481 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9482
9483 # Sed substitution to delay expansion of an escaped shell variable in a
9484 # double_quote_subst'ed string.
9485 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9486
9487 # Sed substitution to delay expansion of an escaped single quote.
9488 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9489
9490 # Sed substitution to avoid accidental globbing in evaled expressions
9491 no_glob_subst='s/\*/\\\*/g'
9492
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9494 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9495 if test "${lt_cv_path_NM+set}" = set; then :
9496   $as_echo_n "(cached) " >&6
9497 else
9498   if test -n "$NM"; then
9499   # Let the user override the test.
9500   lt_cv_path_NM="$NM"
9501 else
9502   lt_nm_to_check="${ac_tool_prefix}nm"
9503   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9504     lt_nm_to_check="$lt_nm_to_check nm"
9505   fi
9506   for lt_tmp_nm in $lt_nm_to_check; do
9507     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9509       IFS="$lt_save_ifs"
9510       test -z "$ac_dir" && ac_dir=.
9511       tmp_nm="$ac_dir/$lt_tmp_nm"
9512       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9513         # Check to see if the nm accepts a BSD-compat flag.
9514         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9515         #   nm: unknown option "B" ignored
9516         # Tru64's nm complains that /dev/null is an invalid object file
9517         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9518         */dev/null* | *'Invalid file or object type'*)
9519           lt_cv_path_NM="$tmp_nm -B"
9520           break
9521           ;;
9522         *)
9523           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9524           */dev/null*)
9525             lt_cv_path_NM="$tmp_nm -p"
9526             break
9527             ;;
9528           *)
9529             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9530             continue # so that we can try to find one that supports BSD flags
9531             ;;
9532           esac
9533           ;;
9534         esac
9535       fi
9536     done
9537     IFS="$lt_save_ifs"
9538   done
9539   : ${lt_cv_path_NM=no}
9540 fi
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9543 $as_echo "$lt_cv_path_NM" >&6; }
9544 if test "$lt_cv_path_NM" != "no"; then
9545   NM="$lt_cv_path_NM"
9546 else
9547   # Didn't find any BSD compatible name lister, look for dumpbin.
9548   if test -n "$DUMPBIN"; then :
9549     # Let the user override the test.
9550   else
9551     if test -n "$ac_tool_prefix"; then
9552   for ac_prog in dumpbin "link -dump"
9553   do
9554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9559   $as_echo_n "(cached) " >&6
9560 else
9561   if test -n "$DUMPBIN"; then
9562   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9563 else
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9566 do
9567   IFS=$as_save_IFS
9568   test -z "$as_dir" && as_dir=.
9569     for ac_exec_ext in '' $ac_executable_extensions; do
9570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573     break 2
9574   fi
9575 done
9576   done
9577 IFS=$as_save_IFS
9578
9579 fi
9580 fi
9581 DUMPBIN=$ac_cv_prog_DUMPBIN
9582 if test -n "$DUMPBIN"; then
9583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9584 $as_echo "$DUMPBIN" >&6; }
9585 else
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9588 fi
9589
9590
9591     test -n "$DUMPBIN" && break
9592   done
9593 fi
9594 if test -z "$DUMPBIN"; then
9595   ac_ct_DUMPBIN=$DUMPBIN
9596   for ac_prog in dumpbin "link -dump"
9597 do
9598   # Extract the first word of "$ac_prog", so it can be a program name with args.
9599 set dummy $ac_prog; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9603   $as_echo_n "(cached) " >&6
9604 else
9605   if test -n "$ac_ct_DUMPBIN"; then
9606   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611   IFS=$as_save_IFS
9612   test -z "$as_dir" && as_dir=.
9613     for ac_exec_ext in '' $ac_executable_extensions; do
9614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617     break 2
9618   fi
9619 done
9620   done
9621 IFS=$as_save_IFS
9622
9623 fi
9624 fi
9625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9626 if test -n "$ac_ct_DUMPBIN"; then
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9628 $as_echo "$ac_ct_DUMPBIN" >&6; }
9629 else
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9632 fi
9633
9634
9635   test -n "$ac_ct_DUMPBIN" && break
9636 done
9637
9638   if test "x$ac_ct_DUMPBIN" = x; then
9639     DUMPBIN=":"
9640   else
9641     case $cross_compiling:$ac_tool_warned in
9642 yes:)
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9645 ac_tool_warned=yes ;;
9646 esac
9647     DUMPBIN=$ac_ct_DUMPBIN
9648   fi
9649 fi
9650
9651     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9652     *COFF*)
9653       DUMPBIN="$DUMPBIN -symbols"
9654       ;;
9655     *)
9656       DUMPBIN=:
9657       ;;
9658     esac
9659   fi
9660
9661   if test "$DUMPBIN" != ":"; then
9662     NM="$DUMPBIN"
9663   fi
9664 fi
9665 test -z "$NM" && NM=nm
9666
9667
9668
9669
9670
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9673 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9674 if test "${lt_cv_nm_interface+set}" = set; then :
9675   $as_echo_n "(cached) " >&6
9676 else
9677   lt_cv_nm_interface="BSD nm"
9678   echo "int some_variable = 0;" > conftest.$ac_ext
9679   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9680   (eval "$ac_compile" 2>conftest.err)
9681   cat conftest.err >&5
9682   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9683   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9684   cat conftest.err >&5
9685   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9686   cat conftest.out >&5
9687   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9688     lt_cv_nm_interface="MS dumpbin"
9689   fi
9690   rm -f conftest*
9691 fi
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9693 $as_echo "$lt_cv_nm_interface" >&6; }
9694
9695 # find the maximum length of command line arguments
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9697 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9699   $as_echo_n "(cached) " >&6
9700 else
9701     i=0
9702   teststring="ABCD"
9703
9704   case $build_os in
9705   msdosdjgpp*)
9706     # On DJGPP, this test can blow up pretty badly due to problems in libc
9707     # (any single argument exceeding 2000 bytes causes a buffer overrun
9708     # during glob expansion).  Even if it were fixed, the result of this
9709     # check would be larger than it should be.
9710     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9711     ;;
9712
9713   gnu*)
9714     # Under GNU Hurd, this test is not required because there is
9715     # no limit to the length of command line arguments.
9716     # Libtool will interpret -1 as no limit whatsoever
9717     lt_cv_sys_max_cmd_len=-1;
9718     ;;
9719
9720   cygwin* | mingw* | cegcc*)
9721     # On Win9x/ME, this test blows up -- it succeeds, but takes
9722     # about 5 minutes as the teststring grows exponentially.
9723     # Worse, since 9x/ME are not pre-emptively multitasking,
9724     # you end up with a "frozen" computer, even though with patience
9725     # the test eventually succeeds (with a max line length of 256k).
9726     # Instead, let's just punt: use the minimum linelength reported by
9727     # all of the supported platforms: 8192 (on NT/2K/XP).
9728     lt_cv_sys_max_cmd_len=8192;
9729     ;;
9730
9731   mint*)
9732     # On MiNT this can take a long time and run out of memory.
9733     lt_cv_sys_max_cmd_len=8192;
9734     ;;
9735
9736   amigaos*)
9737     # On AmigaOS with pdksh, this test takes hours, literally.
9738     # So we just punt and use a minimum line length of 8192.
9739     lt_cv_sys_max_cmd_len=8192;
9740     ;;
9741
9742   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9743     # This has been around since 386BSD, at least.  Likely further.
9744     if test -x /sbin/sysctl; then
9745       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9746     elif test -x /usr/sbin/sysctl; then
9747       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9748     else
9749       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9750     fi
9751     # And add a safety zone
9752     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9753     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9754     ;;
9755
9756   interix*)
9757     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9758     lt_cv_sys_max_cmd_len=196608
9759     ;;
9760
9761   osf*)
9762     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9763     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9764     # nice to cause kernel panics so lets avoid the loop below.
9765     # First set a reasonable default.
9766     lt_cv_sys_max_cmd_len=16384
9767     #
9768     if test -x /sbin/sysconfig; then
9769       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9770         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9771       esac
9772     fi
9773     ;;
9774   sco3.2v5*)
9775     lt_cv_sys_max_cmd_len=102400
9776     ;;
9777   sysv5* | sco5v6* | sysv4.2uw2*)
9778     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9779     if test -n "$kargmax"; then
9780       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9781     else
9782       lt_cv_sys_max_cmd_len=32768
9783     fi
9784     ;;
9785   *)
9786     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9787     if test -n "$lt_cv_sys_max_cmd_len"; then
9788       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9789       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9790     else
9791       # Make teststring a little bigger before we do anything with it.
9792       # a 1K string should be a reasonable start.
9793       for i in 1 2 3 4 5 6 7 8 ; do
9794         teststring=$teststring$teststring
9795       done
9796       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9797       # If test is not a shell built-in, we'll probably end up computing a
9798       # maximum length that is only half of the actual maximum length, but
9799       # we can't tell.
9800       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9801                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9802               test $i != 17 # 1/2 MB should be enough
9803       do
9804         i=`expr $i + 1`
9805         teststring=$teststring$teststring
9806       done
9807       # Only check the string length outside the loop.
9808       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9809       teststring=
9810       # Add a significant safety factor because C++ compilers can tack on
9811       # massive amounts of additional arguments before passing them to the
9812       # linker.  It appears as though 1/2 is a usable value.
9813       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9814     fi
9815     ;;
9816   esac
9817
9818 fi
9819
9820 if test -n $lt_cv_sys_max_cmd_len ; then
9821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9822 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9823 else
9824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9825 $as_echo "none" >&6; }
9826 fi
9827 max_cmd_len=$lt_cv_sys_max_cmd_len
9828
9829
9830
9831
9832
9833
9834 : ${CP="cp -f"}
9835 : ${MV="mv -f"}
9836 : ${RM="rm -f"}
9837
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9839 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9840 # Try some XSI features
9841 xsi_shell=no
9842 ( _lt_dummy="a/b/c"
9843   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9844       = c,a/b,, \
9845     && eval 'test $(( 1 + 1 )) -eq 2 \
9846     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9847   && xsi_shell=yes
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9849 $as_echo "$xsi_shell" >&6; }
9850
9851
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9853 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9854 lt_shell_append=no
9855 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9856     >/dev/null 2>&1 \
9857   && lt_shell_append=yes
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9859 $as_echo "$lt_shell_append" >&6; }
9860
9861
9862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9863   lt_unset=unset
9864 else
9865   lt_unset=false
9866 fi
9867
9868
9869
9870
9871
9872 # test EBCDIC or ASCII
9873 case `echo X|tr X '\101'` in
9874  A) # ASCII based system
9875     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9876   lt_SP2NL='tr \040 \012'
9877   lt_NL2SP='tr \015\012 \040\040'
9878   ;;
9879  *) # EBCDIC based system
9880   lt_SP2NL='tr \100 \n'
9881   lt_NL2SP='tr \r\n \100\100'
9882   ;;
9883 esac
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9894 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9895 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9896   $as_echo_n "(cached) " >&6
9897 else
9898   lt_cv_ld_reload_flag='-r'
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9901 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9902 reload_flag=$lt_cv_ld_reload_flag
9903 case $reload_flag in
9904 "" | " "*) ;;
9905 *) reload_flag=" $reload_flag" ;;
9906 esac
9907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9908 case $host_os in
9909   darwin*)
9910     if test "$GCC" = yes; then
9911       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9912     else
9913       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9914     fi
9915     ;;
9916 esac
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 if test -n "$ac_tool_prefix"; then
9927   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9928 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9932   $as_echo_n "(cached) " >&6
9933 else
9934   if test -n "$OBJDUMP"; then
9935   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9936 else
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9939 do
9940   IFS=$as_save_IFS
9941   test -z "$as_dir" && as_dir=.
9942     for ac_exec_ext in '' $ac_executable_extensions; do
9943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946     break 2
9947   fi
9948 done
9949   done
9950 IFS=$as_save_IFS
9951
9952 fi
9953 fi
9954 OBJDUMP=$ac_cv_prog_OBJDUMP
9955 if test -n "$OBJDUMP"; then
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9957 $as_echo "$OBJDUMP" >&6; }
9958 else
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9961 fi
9962
9963
9964 fi
9965 if test -z "$ac_cv_prog_OBJDUMP"; then
9966   ac_ct_OBJDUMP=$OBJDUMP
9967   # Extract the first word of "objdump", so it can be a program name with args.
9968 set dummy objdump; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   if test -n "$ac_ct_OBJDUMP"; then
9975   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9976 else
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9979 do
9980   IFS=$as_save_IFS
9981   test -z "$as_dir" && as_dir=.
9982     for ac_exec_ext in '' $ac_executable_extensions; do
9983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9986     break 2
9987   fi
9988 done
9989   done
9990 IFS=$as_save_IFS
9991
9992 fi
9993 fi
9994 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9995 if test -n "$ac_ct_OBJDUMP"; then
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9997 $as_echo "$ac_ct_OBJDUMP" >&6; }
9998 else
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002
10003   if test "x$ac_ct_OBJDUMP" = x; then
10004     OBJDUMP="false"
10005   else
10006     case $cross_compiling:$ac_tool_warned in
10007 yes:)
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010 ac_tool_warned=yes ;;
10011 esac
10012     OBJDUMP=$ac_ct_OBJDUMP
10013   fi
10014 else
10015   OBJDUMP="$ac_cv_prog_OBJDUMP"
10016 fi
10017
10018 test -z "$OBJDUMP" && OBJDUMP=objdump
10019
10020
10021
10022
10023
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10026 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10027 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   lt_cv_file_magic_cmd='$MAGIC_CMD'
10031 lt_cv_file_magic_test_file=
10032 lt_cv_deplibs_check_method='unknown'
10033 # Need to set the preceding variable on all platforms that support
10034 # interlibrary dependencies.
10035 # 'none' -- dependencies not supported.
10036 # `unknown' -- same as none, but documents that we really don't know.
10037 # 'pass_all' -- all dependencies passed with no checks.
10038 # 'test_compile' -- check by making test program.
10039 # 'file_magic [[regex]]' -- check by looking for files in library path
10040 # which responds to the $file_magic_cmd with a given extended regex.
10041 # If you have `file' or equivalent on your system and you're not sure
10042 # whether `pass_all' will *always* work, you probably want this one.
10043
10044 case $host_os in
10045 aix[4-9]*)
10046   lt_cv_deplibs_check_method=pass_all
10047   ;;
10048
10049 beos*)
10050   lt_cv_deplibs_check_method=pass_all
10051   ;;
10052
10053 bsdi[45]*)
10054   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10055   lt_cv_file_magic_cmd='/usr/bin/file -L'
10056   lt_cv_file_magic_test_file=/shlib/libc.so
10057   ;;
10058
10059 cygwin*)
10060   # func_win32_libid is a shell function defined in ltmain.sh
10061   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10062   lt_cv_file_magic_cmd='func_win32_libid'
10063   ;;
10064
10065 mingw* | pw32*)
10066   # Base MSYS/MinGW do not provide the 'file' command needed by
10067   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10068   # unless we find 'file', for example because we are cross-compiling.
10069   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10070   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10071     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10072     lt_cv_file_magic_cmd='func_win32_libid'
10073   else
10074     # Keep this pattern in sync with the one in func_win32_libid.
10075     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10076     lt_cv_file_magic_cmd='$OBJDUMP -f'
10077   fi
10078   ;;
10079
10080 cegcc*)
10081   # use the weaker test based on 'objdump'. See mingw*.
10082   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10083   lt_cv_file_magic_cmd='$OBJDUMP -f'
10084   ;;
10085
10086 darwin* | rhapsody*)
10087   lt_cv_deplibs_check_method=pass_all
10088   ;;
10089
10090 freebsd* | dragonfly*)
10091   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10092     case $host_cpu in
10093     i*86 )
10094       # Not sure whether the presence of OpenBSD here was a mistake.
10095       # Let's accept both of them until this is cleared up.
10096       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10097       lt_cv_file_magic_cmd=/usr/bin/file
10098       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10099       ;;
10100     esac
10101   else
10102     lt_cv_deplibs_check_method=pass_all
10103   fi
10104   ;;
10105
10106 gnu*)
10107   lt_cv_deplibs_check_method=pass_all
10108   ;;
10109
10110 haiku*)
10111   lt_cv_deplibs_check_method=pass_all
10112   ;;
10113
10114 hpux10.20* | hpux11*)
10115   lt_cv_file_magic_cmd=/usr/bin/file
10116   case $host_cpu in
10117   ia64*)
10118     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10119     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10120     ;;
10121   hppa*64*)
10122     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]'
10123     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10124     ;;
10125   *)
10126     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10127     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10128     ;;
10129   esac
10130   ;;
10131
10132 interix[3-9]*)
10133   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10134   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10135   ;;
10136
10137 irix5* | irix6* | nonstopux*)
10138   case $LD in
10139   *-32|*"-32 ") libmagic=32-bit;;
10140   *-n32|*"-n32 ") libmagic=N32;;
10141   *-64|*"-64 ") libmagic=64-bit;;
10142   *) libmagic=never-match;;
10143   esac
10144   lt_cv_deplibs_check_method=pass_all
10145   ;;
10146
10147 # This must be Linux ELF.
10148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10149   lt_cv_deplibs_check_method=pass_all
10150   ;;
10151
10152 netbsd*)
10153   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10154     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10155   else
10156     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10157   fi
10158   ;;
10159
10160 newos6*)
10161   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10162   lt_cv_file_magic_cmd=/usr/bin/file
10163   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10164   ;;
10165
10166 *nto* | *qnx*)
10167   lt_cv_deplibs_check_method=pass_all
10168   ;;
10169
10170 openbsd*)
10171   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10173   else
10174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10175   fi
10176   ;;
10177
10178 osf3* | osf4* | osf5*)
10179   lt_cv_deplibs_check_method=pass_all
10180   ;;
10181
10182 rdos*)
10183   lt_cv_deplibs_check_method=pass_all
10184   ;;
10185
10186 solaris*)
10187   lt_cv_deplibs_check_method=pass_all
10188   ;;
10189
10190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191   lt_cv_deplibs_check_method=pass_all
10192   ;;
10193
10194 sysv4 | sysv4.3*)
10195   case $host_vendor in
10196   motorola)
10197     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]'
10198     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10199     ;;
10200   ncr)
10201     lt_cv_deplibs_check_method=pass_all
10202     ;;
10203   sequent)
10204     lt_cv_file_magic_cmd='/bin/file'
10205     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10206     ;;
10207   sni)
10208     lt_cv_file_magic_cmd='/bin/file'
10209     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10210     lt_cv_file_magic_test_file=/lib/libc.so
10211     ;;
10212   siemens)
10213     lt_cv_deplibs_check_method=pass_all
10214     ;;
10215   pc)
10216     lt_cv_deplibs_check_method=pass_all
10217     ;;
10218   esac
10219   ;;
10220
10221 tpf*)
10222   lt_cv_deplibs_check_method=pass_all
10223   ;;
10224 esac
10225
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10228 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10229 file_magic_cmd=$lt_cv_file_magic_cmd
10230 deplibs_check_method=$lt_cv_deplibs_check_method
10231 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244 if test -n "$ac_tool_prefix"; then
10245   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10246 set dummy ${ac_tool_prefix}ar; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if test "${ac_cv_prog_AR+set}" = set; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   if test -n "$AR"; then
10253   ac_cv_prog_AR="$AR" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10257 do
10258   IFS=$as_save_IFS
10259   test -z "$as_dir" && as_dir=.
10260     for ac_exec_ext in '' $ac_executable_extensions; do
10261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262     ac_cv_prog_AR="${ac_tool_prefix}ar"
10263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264     break 2
10265   fi
10266 done
10267   done
10268 IFS=$as_save_IFS
10269
10270 fi
10271 fi
10272 AR=$ac_cv_prog_AR
10273 if test -n "$AR"; then
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10275 $as_echo "$AR" >&6; }
10276 else
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280
10281
10282 fi
10283 if test -z "$ac_cv_prog_AR"; then
10284   ac_ct_AR=$AR
10285   # Extract the first word of "ar", so it can be a program name with args.
10286 set dummy ar; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   if test -n "$ac_ct_AR"; then
10293   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10297 do
10298   IFS=$as_save_IFS
10299   test -z "$as_dir" && as_dir=.
10300     for ac_exec_ext in '' $ac_executable_extensions; do
10301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302     ac_cv_prog_ac_ct_AR="ar"
10303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304     break 2
10305   fi
10306 done
10307   done
10308 IFS=$as_save_IFS
10309
10310 fi
10311 fi
10312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10313 if test -n "$ac_ct_AR"; then
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10315 $as_echo "$ac_ct_AR" >&6; }
10316 else
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10319 fi
10320
10321   if test "x$ac_ct_AR" = x; then
10322     AR="false"
10323   else
10324     case $cross_compiling:$ac_tool_warned in
10325 yes:)
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328 ac_tool_warned=yes ;;
10329 esac
10330     AR=$ac_ct_AR
10331   fi
10332 else
10333   AR="$ac_cv_prog_AR"
10334 fi
10335
10336 test -z "$AR" && AR=ar
10337 test -z "$AR_FLAGS" && AR_FLAGS=cru
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349 if test -n "$ac_tool_prefix"; then
10350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10351 set dummy ${ac_tool_prefix}strip; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_STRIP+set}" = set; then :
10355   $as_echo_n "(cached) " >&6
10356 else
10357   if test -n "$STRIP"; then
10358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363   IFS=$as_save_IFS
10364   test -z "$as_dir" && as_dir=.
10365     for ac_exec_ext in '' $ac_executable_extensions; do
10366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369     break 2
10370   fi
10371 done
10372   done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 STRIP=$ac_cv_prog_STRIP
10378 if test -n "$STRIP"; then
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10380 $as_echo "$STRIP" >&6; }
10381 else
10382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387 fi
10388 if test -z "$ac_cv_prog_STRIP"; then
10389   ac_ct_STRIP=$STRIP
10390   # Extract the first word of "strip", so it can be a program name with args.
10391 set dummy strip; ac_word=$2
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393 $as_echo_n "checking for $ac_word... " >&6; }
10394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10395   $as_echo_n "(cached) " >&6
10396 else
10397   if test -n "$ac_ct_STRIP"; then
10398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10399 else
10400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401 for as_dir in $PATH
10402 do
10403   IFS=$as_save_IFS
10404   test -z "$as_dir" && as_dir=.
10405     for ac_exec_ext in '' $ac_executable_extensions; do
10406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10407     ac_cv_prog_ac_ct_STRIP="strip"
10408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409     break 2
10410   fi
10411 done
10412   done
10413 IFS=$as_save_IFS
10414
10415 fi
10416 fi
10417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10418 if test -n "$ac_ct_STRIP"; then
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10420 $as_echo "$ac_ct_STRIP" >&6; }
10421 else
10422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423 $as_echo "no" >&6; }
10424 fi
10425
10426   if test "x$ac_ct_STRIP" = x; then
10427     STRIP=":"
10428   else
10429     case $cross_compiling:$ac_tool_warned in
10430 yes:)
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433 ac_tool_warned=yes ;;
10434 esac
10435     STRIP=$ac_ct_STRIP
10436   fi
10437 else
10438   STRIP="$ac_cv_prog_STRIP"
10439 fi
10440
10441 test -z "$STRIP" && STRIP=:
10442
10443
10444
10445
10446
10447
10448 if test -n "$ac_tool_prefix"; then
10449   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   if test -n "$RANLIB"; then
10457   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10458 else
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10461 do
10462   IFS=$as_save_IFS
10463   test -z "$as_dir" && as_dir=.
10464     for ac_exec_ext in '' $ac_executable_extensions; do
10465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10468     break 2
10469   fi
10470 done
10471   done
10472 IFS=$as_save_IFS
10473
10474 fi
10475 fi
10476 RANLIB=$ac_cv_prog_RANLIB
10477 if test -n "$RANLIB"; then
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10479 $as_echo "$RANLIB" >&6; }
10480 else
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10483 fi
10484
10485
10486 fi
10487 if test -z "$ac_cv_prog_RANLIB"; then
10488   ac_ct_RANLIB=$RANLIB
10489   # Extract the first word of "ranlib", so it can be a program name with args.
10490 set dummy ranlib; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   if test -n "$ac_ct_RANLIB"; then
10497   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10501 do
10502   IFS=$as_save_IFS
10503   test -z "$as_dir" && as_dir=.
10504     for ac_exec_ext in '' $ac_executable_extensions; do
10505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506     ac_cv_prog_ac_ct_RANLIB="ranlib"
10507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508     break 2
10509   fi
10510 done
10511   done
10512 IFS=$as_save_IFS
10513
10514 fi
10515 fi
10516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10517 if test -n "$ac_ct_RANLIB"; then
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10519 $as_echo "$ac_ct_RANLIB" >&6; }
10520 else
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10523 fi
10524
10525   if test "x$ac_ct_RANLIB" = x; then
10526     RANLIB=":"
10527   else
10528     case $cross_compiling:$ac_tool_warned in
10529 yes:)
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532 ac_tool_warned=yes ;;
10533 esac
10534     RANLIB=$ac_ct_RANLIB
10535   fi
10536 else
10537   RANLIB="$ac_cv_prog_RANLIB"
10538 fi
10539
10540 test -z "$RANLIB" && RANLIB=:
10541
10542
10543
10544
10545
10546
10547 # Determine commands to create old-style static archives.
10548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10549 old_postinstall_cmds='chmod 644 $oldlib'
10550 old_postuninstall_cmds=
10551
10552 if test -n "$RANLIB"; then
10553   case $host_os in
10554   openbsd*)
10555     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10556     ;;
10557   *)
10558     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10559     ;;
10560   esac
10561   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10562 fi
10563
10564 case $host_os in
10565   darwin*)
10566     lock_old_archive_extraction=yes ;;
10567   *)
10568     lock_old_archive_extraction=no ;;
10569 esac
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
10606
10607
10608
10609 # If no C compiler was specified, use CC.
10610 LTCC=${LTCC-"$CC"}
10611
10612 # If no C compiler flags were specified, use CFLAGS.
10613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10614
10615 # Allow CC to be a program name with arguments.
10616 compiler=$CC
10617
10618
10619 # Check for command to grab the raw symbol name followed by C symbol from nm.
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10621 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10622 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625
10626 # These are sane defaults that work on at least a few old systems.
10627 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10628
10629 # Character class describing NM global symbol codes.
10630 symcode='[BCDEGRST]'
10631
10632 # Regexp to match symbols that can be accessed directly from C.
10633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10634
10635 # Define system-specific variables.
10636 case $host_os in
10637 aix*)
10638   symcode='[BCDT]'
10639   ;;
10640 cygwin* | mingw* | pw32* | cegcc*)
10641   symcode='[ABCDGISTW]'
10642   ;;
10643 hpux*)
10644   if test "$host_cpu" = ia64; then
10645     symcode='[ABCDEGRST]'
10646   fi
10647   ;;
10648 irix* | nonstopux*)
10649   symcode='[BCDEGRST]'
10650   ;;
10651 osf*)
10652   symcode='[BCDEGQRST]'
10653   ;;
10654 solaris*)
10655   symcode='[BDRT]'
10656   ;;
10657 sco3.2v5*)
10658   symcode='[DT]'
10659   ;;
10660 sysv4.2uw2*)
10661   symcode='[DT]'
10662   ;;
10663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10664   symcode='[ABDT]'
10665   ;;
10666 sysv4)
10667   symcode='[DFNSTU]'
10668   ;;
10669 esac
10670
10671 # If we're using GNU nm, then use its standard symbol codes.
10672 case `$NM -V 2>&1` in
10673 *GNU* | *'with BFD'*)
10674   symcode='[ABCDGIRSTW]' ;;
10675 esac
10676
10677 # Transform an extracted symbol line into a proper C declaration.
10678 # Some systems (esp. on ia64) link data and code symbols differently,
10679 # so use this general approach.
10680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10681
10682 # Transform an extracted symbol line into symbol name and symbol address
10683 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10684 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'"
10685
10686 # Handle CRLF in mingw tool chain
10687 opt_cr=
10688 case $build_os in
10689 mingw*)
10690   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10691   ;;
10692 esac
10693
10694 # Try without a prefix underscore, then with it.
10695 for ac_symprfx in "" "_"; do
10696
10697   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10698   symxfrm="\\1 $ac_symprfx\\2 \\2"
10699
10700   # Write the raw and C identifiers.
10701   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10702     # Fake it for dumpbin and say T for any non-static function
10703     # and D for any global variable.
10704     # Also find C++ and __fastcall symbols from MSVC++,
10705     # which start with @ or ?.
10706     lt_cv_sys_global_symbol_pipe="$AWK '"\
10707 "     {last_section=section; section=\$ 3};"\
10708 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10709 "     \$ 0!~/External *\|/{next};"\
10710 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10711 "     {if(hide[section]) next};"\
10712 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10713 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10714 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10715 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10716 "     ' prfx=^$ac_symprfx"
10717   else
10718     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10719   fi
10720
10721   # Check to see that the pipe works correctly.
10722   pipe_works=no
10723
10724   rm -f conftest*
10725   cat > conftest.$ac_ext <<_LT_EOF
10726 #ifdef __cplusplus
10727 extern "C" {
10728 #endif
10729 char nm_test_var;
10730 void nm_test_func(void);
10731 void nm_test_func(void){}
10732 #ifdef __cplusplus
10733 }
10734 #endif
10735 int main(){nm_test_var='a';nm_test_func();return(0);}
10736 _LT_EOF
10737
10738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10739   (eval $ac_compile) 2>&5
10740   ac_status=$?
10741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742   test $ac_status = 0; }; then
10743     # Now try to grab the symbols.
10744     nlist=conftest.nm
10745     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10746   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10747   ac_status=$?
10748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749   test $ac_status = 0; } && test -s "$nlist"; then
10750       # Try sorting and uniquifying the output.
10751       if sort "$nlist" | uniq > "$nlist"T; then
10752         mv -f "$nlist"T "$nlist"
10753       else
10754         rm -f "$nlist"T
10755       fi
10756
10757       # Make sure that we snagged all the symbols we need.
10758       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10759         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10760           cat <<_LT_EOF > conftest.$ac_ext
10761 #ifdef __cplusplus
10762 extern "C" {
10763 #endif
10764
10765 _LT_EOF
10766           # Now generate the symbol file.
10767           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10768
10769           cat <<_LT_EOF >> conftest.$ac_ext
10770
10771 /* The mapping between symbol names and symbols.  */
10772 const struct {
10773   const char *name;
10774   void       *address;
10775 }
10776 lt__PROGRAM__LTX_preloaded_symbols[] =
10777 {
10778   { "@PROGRAM@", (void *) 0 },
10779 _LT_EOF
10780           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10781           cat <<\_LT_EOF >> conftest.$ac_ext
10782   {0, (void *) 0}
10783 };
10784
10785 /* This works around a problem in FreeBSD linker */
10786 #ifdef FREEBSD_WORKAROUND
10787 static const void *lt_preloaded_setup() {
10788   return lt__PROGRAM__LTX_preloaded_symbols;
10789 }
10790 #endif
10791
10792 #ifdef __cplusplus
10793 }
10794 #endif
10795 _LT_EOF
10796           # Now try linking the two files.
10797           mv conftest.$ac_objext conftstm.$ac_objext
10798           lt_save_LIBS="$LIBS"
10799           lt_save_CFLAGS="$CFLAGS"
10800           LIBS="conftstm.$ac_objext"
10801           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10802           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10803   (eval $ac_link) 2>&5
10804   ac_status=$?
10805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10807             pipe_works=yes
10808           fi
10809           LIBS="$lt_save_LIBS"
10810           CFLAGS="$lt_save_CFLAGS"
10811         else
10812           echo "cannot find nm_test_func in $nlist" >&5
10813         fi
10814       else
10815         echo "cannot find nm_test_var in $nlist" >&5
10816       fi
10817     else
10818       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10819     fi
10820   else
10821     echo "$progname: failed program was:" >&5
10822     cat conftest.$ac_ext >&5
10823   fi
10824   rm -rf conftest* conftst*
10825
10826   # Do not use the global_symbol_pipe unless it works.
10827   if test "$pipe_works" = yes; then
10828     break
10829   else
10830     lt_cv_sys_global_symbol_pipe=
10831   fi
10832 done
10833
10834 fi
10835
10836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10837   lt_cv_sys_global_symbol_to_cdecl=
10838 fi
10839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10841 $as_echo "failed" >&6; }
10842 else
10843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10844 $as_echo "ok" >&6; }
10845 fi
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868 # Check whether --enable-libtool-lock was given.
10869 if test "${enable_libtool_lock+set}" = set; then :
10870   enableval=$enable_libtool_lock;
10871 fi
10872
10873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10874
10875 # Some flags need to be propagated to the compiler or linker for good
10876 # libtool support.
10877 case $host in
10878 ia64-*-hpux*)
10879   # Find out which ABI we are using.
10880   echo 'int i;' > conftest.$ac_ext
10881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10882   (eval $ac_compile) 2>&5
10883   ac_status=$?
10884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885   test $ac_status = 0; }; then
10886     case `/usr/bin/file conftest.$ac_objext` in
10887       *ELF-32*)
10888         HPUX_IA64_MODE="32"
10889         ;;
10890       *ELF-64*)
10891         HPUX_IA64_MODE="64"
10892         ;;
10893     esac
10894   fi
10895   rm -rf conftest*
10896   ;;
10897 *-*-irix6*)
10898   # Find out which ABI we are using.
10899   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10901   (eval $ac_compile) 2>&5
10902   ac_status=$?
10903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904   test $ac_status = 0; }; then
10905     if test "$lt_cv_prog_gnu_ld" = yes; then
10906       case `/usr/bin/file conftest.$ac_objext` in
10907         *32-bit*)
10908           LD="${LD-ld} -melf32bsmip"
10909           ;;
10910         *N32*)
10911           LD="${LD-ld} -melf32bmipn32"
10912           ;;
10913         *64-bit*)
10914           LD="${LD-ld} -melf64bmip"
10915         ;;
10916       esac
10917     else
10918       case `/usr/bin/file conftest.$ac_objext` in
10919         *32-bit*)
10920           LD="${LD-ld} -32"
10921           ;;
10922         *N32*)
10923           LD="${LD-ld} -n32"
10924           ;;
10925         *64-bit*)
10926           LD="${LD-ld} -64"
10927           ;;
10928       esac
10929     fi
10930   fi
10931   rm -rf conftest*
10932   ;;
10933
10934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10936   # Find out which ABI we are using.
10937   echo 'int i;' > conftest.$ac_ext
10938   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10939   (eval $ac_compile) 2>&5
10940   ac_status=$?
10941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942   test $ac_status = 0; }; then
10943     case `/usr/bin/file conftest.o` in
10944       *32-bit*)
10945         case $host in
10946           x86_64-*kfreebsd*-gnu)
10947             LD="${LD-ld} -m elf_i386_fbsd"
10948             ;;
10949           x86_64-*linux*)
10950             LD="${LD-ld} -m elf_i386"
10951             ;;
10952           ppc64-*linux*|powerpc64-*linux*)
10953             LD="${LD-ld} -m elf32ppclinux"
10954             ;;
10955           s390x-*linux*)
10956             LD="${LD-ld} -m elf_s390"
10957             ;;
10958           sparc64-*linux*)
10959             LD="${LD-ld} -m elf32_sparc"
10960             ;;
10961         esac
10962         ;;
10963       *64-bit*)
10964         case $host in
10965           x86_64-*kfreebsd*-gnu)
10966             LD="${LD-ld} -m elf_x86_64_fbsd"
10967             ;;
10968           x86_64-*linux*)
10969             LD="${LD-ld} -m elf_x86_64"
10970             ;;
10971           ppc*-*linux*|powerpc*-*linux*)
10972             LD="${LD-ld} -m elf64ppc"
10973             ;;
10974           s390*-*linux*|s390*-*tpf*)
10975             LD="${LD-ld} -m elf64_s390"
10976             ;;
10977           sparc*-*linux*)
10978             LD="${LD-ld} -m elf64_sparc"
10979             ;;
10980         esac
10981         ;;
10982     esac
10983   fi
10984   rm -rf conftest*
10985   ;;
10986
10987 *-*-sco3.2v5*)
10988   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10989   SAVE_CFLAGS="$CFLAGS"
10990   CFLAGS="$CFLAGS -belf"
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10993 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   ac_ext=c
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11001
11002      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h.  */
11004
11005 int
11006 main ()
11007 {
11008
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014   lt_cv_cc_needs_belf=yes
11015 else
11016   lt_cv_cc_needs_belf=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019     conftest$ac_exeext conftest.$ac_ext
11020      ac_ext=c
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11029   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11030     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11031     CFLAGS="$SAVE_CFLAGS"
11032   fi
11033   ;;
11034 sparc*-*solaris*)
11035   # Find out which ABI we are using.
11036   echo 'int i;' > conftest.$ac_ext
11037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11038   (eval $ac_compile) 2>&5
11039   ac_status=$?
11040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041   test $ac_status = 0; }; then
11042     case `/usr/bin/file conftest.o` in
11043     *64-bit*)
11044       case $lt_cv_prog_gnu_ld in
11045       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11046       *)
11047         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11048           LD="${LD-ld} -64"
11049         fi
11050         ;;
11051       esac
11052       ;;
11053     esac
11054   fi
11055   rm -rf conftest*
11056   ;;
11057 esac
11058
11059 need_locks="$enable_libtool_lock"
11060
11061
11062   case $host_os in
11063     rhapsody* | darwin*)
11064     if test -n "$ac_tool_prefix"; then
11065   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   if test -n "$DSYMUTIL"; then
11073   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080     for ac_exec_ext in '' $ac_executable_extensions; do
11081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087   done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11093 if test -n "$DSYMUTIL"; then
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11095 $as_echo "$DSYMUTIL" >&6; }
11096 else
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100
11101
11102 fi
11103 if test -z "$ac_cv_prog_DSYMUTIL"; then
11104   ac_ct_DSYMUTIL=$DSYMUTIL
11105   # Extract the first word of "dsymutil", so it can be a program name with args.
11106 set dummy dsymutil; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11110   $as_echo_n "(cached) " >&6
11111 else
11112   if test -n "$ac_ct_DSYMUTIL"; then
11113   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118   IFS=$as_save_IFS
11119   test -z "$as_dir" && as_dir=.
11120     for ac_exec_ext in '' $ac_executable_extensions; do
11121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124     break 2
11125   fi
11126 done
11127   done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11133 if test -n "$ac_ct_DSYMUTIL"; then
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11135 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11136 else
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141   if test "x$ac_ct_DSYMUTIL" = x; then
11142     DSYMUTIL=":"
11143   else
11144     case $cross_compiling:$ac_tool_warned in
11145 yes:)
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148 ac_tool_warned=yes ;;
11149 esac
11150     DSYMUTIL=$ac_ct_DSYMUTIL
11151   fi
11152 else
11153   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11154 fi
11155
11156     if test -n "$ac_tool_prefix"; then
11157   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11162   $as_echo_n "(cached) " >&6
11163 else
11164   if test -n "$NMEDIT"; then
11165   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170   IFS=$as_save_IFS
11171   test -z "$as_dir" && as_dir=.
11172     for ac_exec_ext in '' $ac_executable_extensions; do
11173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176     break 2
11177   fi
11178 done
11179   done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 NMEDIT=$ac_cv_prog_NMEDIT
11185 if test -n "$NMEDIT"; then
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11187 $as_echo "$NMEDIT" >&6; }
11188 else
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194 fi
11195 if test -z "$ac_cv_prog_NMEDIT"; then
11196   ac_ct_NMEDIT=$NMEDIT
11197   # Extract the first word of "nmedit", so it can be a program name with args.
11198 set dummy nmedit; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11202   $as_echo_n "(cached) " >&6
11203 else
11204   if test -n "$ac_ct_NMEDIT"; then
11205   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212     for ac_exec_ext in '' $ac_executable_extensions; do
11213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216     break 2
11217   fi
11218 done
11219   done
11220 IFS=$as_save_IFS
11221
11222 fi
11223 fi
11224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11225 if test -n "$ac_ct_NMEDIT"; then
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11227 $as_echo "$ac_ct_NMEDIT" >&6; }
11228 else
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 fi
11232
11233   if test "x$ac_ct_NMEDIT" = x; then
11234     NMEDIT=":"
11235   else
11236     case $cross_compiling:$ac_tool_warned in
11237 yes:)
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11240 ac_tool_warned=yes ;;
11241 esac
11242     NMEDIT=$ac_ct_NMEDIT
11243   fi
11244 else
11245   NMEDIT="$ac_cv_prog_NMEDIT"
11246 fi
11247
11248     if test -n "$ac_tool_prefix"; then
11249   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11250 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_LIPO+set}" = set; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   if test -n "$LIPO"; then
11257   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11258 else
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11261 do
11262   IFS=$as_save_IFS
11263   test -z "$as_dir" && as_dir=.
11264     for ac_exec_ext in '' $ac_executable_extensions; do
11265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11268     break 2
11269   fi
11270 done
11271   done
11272 IFS=$as_save_IFS
11273
11274 fi
11275 fi
11276 LIPO=$ac_cv_prog_LIPO
11277 if test -n "$LIPO"; then
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11279 $as_echo "$LIPO" >&6; }
11280 else
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11283 fi
11284
11285
11286 fi
11287 if test -z "$ac_cv_prog_LIPO"; then
11288   ac_ct_LIPO=$LIPO
11289   # Extract the first word of "lipo", so it can be a program name with args.
11290 set dummy lipo; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   if test -n "$ac_ct_LIPO"; then
11297   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11301 do
11302   IFS=$as_save_IFS
11303   test -z "$as_dir" && as_dir=.
11304     for ac_exec_ext in '' $ac_executable_extensions; do
11305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306     ac_cv_prog_ac_ct_LIPO="lipo"
11307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308     break 2
11309   fi
11310 done
11311   done
11312 IFS=$as_save_IFS
11313
11314 fi
11315 fi
11316 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11317 if test -n "$ac_ct_LIPO"; then
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11319 $as_echo "$ac_ct_LIPO" >&6; }
11320 else
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324
11325   if test "x$ac_ct_LIPO" = x; then
11326     LIPO=":"
11327   else
11328     case $cross_compiling:$ac_tool_warned in
11329 yes:)
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332 ac_tool_warned=yes ;;
11333 esac
11334     LIPO=$ac_ct_LIPO
11335   fi
11336 else
11337   LIPO="$ac_cv_prog_LIPO"
11338 fi
11339
11340     if test -n "$ac_tool_prefix"; then
11341   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}otool; ac_word=$2
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344 $as_echo_n "checking for $ac_word... " >&6; }
11345 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11346   $as_echo_n "(cached) " >&6
11347 else
11348   if test -n "$OTOOL"; then
11349   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356     for ac_exec_ext in '' $ac_executable_extensions; do
11357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363   done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 OTOOL=$ac_cv_prog_OTOOL
11369 if test -n "$OTOOL"; then
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11371 $as_echo "$OTOOL" >&6; }
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_OTOOL"; then
11380   ac_ct_OTOOL=$OTOOL
11381   # Extract the first word of "otool", so it can be a program name with args.
11382 set dummy otool; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -n "$ac_ct_OTOOL"; then
11389   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_ac_ct_OTOOL="otool"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11409 if test -n "$ac_ct_OTOOL"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11411 $as_echo "$ac_ct_OTOOL" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417   if test "x$ac_ct_OTOOL" = x; then
11418     OTOOL=":"
11419   else
11420     case $cross_compiling:$ac_tool_warned in
11421 yes:)
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424 ac_tool_warned=yes ;;
11425 esac
11426     OTOOL=$ac_ct_OTOOL
11427   fi
11428 else
11429   OTOOL="$ac_cv_prog_OTOOL"
11430 fi
11431
11432     if test -n "$ac_tool_prefix"; then
11433   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11434 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   if test -n "$OTOOL64"; then
11441   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11442 else
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11445 do
11446   IFS=$as_save_IFS
11447   test -z "$as_dir" && as_dir=.
11448     for ac_exec_ext in '' $ac_executable_extensions; do
11449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452     break 2
11453   fi
11454 done
11455   done
11456 IFS=$as_save_IFS
11457
11458 fi
11459 fi
11460 OTOOL64=$ac_cv_prog_OTOOL64
11461 if test -n "$OTOOL64"; then
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11463 $as_echo "$OTOOL64" >&6; }
11464 else
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11467 fi
11468
11469
11470 fi
11471 if test -z "$ac_cv_prog_OTOOL64"; then
11472   ac_ct_OTOOL64=$OTOOL64
11473   # Extract the first word of "otool64", so it can be a program name with args.
11474 set dummy otool64; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11478   $as_echo_n "(cached) " >&6
11479 else
11480   if test -n "$ac_ct_OTOOL64"; then
11481   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11482 else
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486   IFS=$as_save_IFS
11487   test -z "$as_dir" && as_dir=.
11488     for ac_exec_ext in '' $ac_executable_extensions; do
11489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490     ac_cv_prog_ac_ct_OTOOL64="otool64"
11491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492     break 2
11493   fi
11494 done
11495   done
11496 IFS=$as_save_IFS
11497
11498 fi
11499 fi
11500 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11501 if test -n "$ac_ct_OTOOL64"; then
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11503 $as_echo "$ac_ct_OTOOL64" >&6; }
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508
11509   if test "x$ac_ct_OTOOL64" = x; then
11510     OTOOL64=":"
11511   else
11512     case $cross_compiling:$ac_tool_warned in
11513 yes:)
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516 ac_tool_warned=yes ;;
11517 esac
11518     OTOOL64=$ac_ct_OTOOL64
11519   fi
11520 else
11521   OTOOL64="$ac_cv_prog_OTOOL64"
11522 fi
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11551 $as_echo_n "checking for -single_module linker flag... " >&6; }
11552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11553   $as_echo_n "(cached) " >&6
11554 else
11555   lt_cv_apple_cc_single_mod=no
11556       if test -z "${LT_MULTI_MODULE}"; then
11557         # By default we will add the -single_module flag. You can override
11558         # by either setting the environment variable LT_MULTI_MODULE
11559         # non-empty at configure time, or by adding -multi_module to the
11560         # link flags.
11561         rm -rf libconftest.dylib*
11562         echo "int foo(void){return 1;}" > conftest.c
11563         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11564 -dynamiclib -Wl,-single_module conftest.c" >&5
11565         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11566           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11567         _lt_result=$?
11568         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11569           lt_cv_apple_cc_single_mod=yes
11570         else
11571           cat conftest.err >&5
11572         fi
11573         rm -rf libconftest.dylib*
11574         rm -f conftest.*
11575       fi
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11580 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11582   $as_echo_n "(cached) " >&6
11583 else
11584   lt_cv_ld_exported_symbols_list=no
11585       save_LDFLAGS=$LDFLAGS
11586       echo "_main" > conftest.sym
11587       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11588       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h.  */
11590
11591 int
11592 main ()
11593 {
11594
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600   lt_cv_ld_exported_symbols_list=yes
11601 else
11602   lt_cv_ld_exported_symbols_list=no
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext \
11605     conftest$ac_exeext conftest.$ac_ext
11606         LDFLAGS="$save_LDFLAGS"
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11610 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11612 $as_echo_n "checking for -force_load linker flag... " >&6; }
11613 if test "${lt_cv_ld_force_load+set}" = set; then :
11614   $as_echo_n "(cached) " >&6
11615 else
11616   lt_cv_ld_force_load=no
11617       cat > conftest.c << _LT_EOF
11618 int forced_loaded() { return 2;}
11619 _LT_EOF
11620       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11621       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11622       echo "$AR cru libconftest.a conftest.o" >&5
11623       $AR cru libconftest.a conftest.o 2>&5
11624       echo "$RANLIB libconftest.a" >&5
11625       $RANLIB libconftest.a 2>&5
11626       cat > conftest.c << _LT_EOF
11627 int main() { return 0;}
11628 _LT_EOF
11629       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11630       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11631       _lt_result=$?
11632       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11633         lt_cv_ld_force_load=yes
11634       else
11635         cat conftest.err >&5
11636       fi
11637         rm -f conftest.err libconftest.a conftest conftest.c
11638         rm -rf conftest.dSYM
11639
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11642 $as_echo "$lt_cv_ld_force_load" >&6; }
11643     case $host_os in
11644     rhapsody* | darwin1.[012])
11645       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11646     darwin1.*)
11647       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648     darwin*) # darwin 5.x on
11649       # if running on 10.5 or later, the deployment target defaults
11650       # to the OS version, if on x86, and 10.4, the deployment
11651       # target defaults to 10.4. Don't you love it?
11652       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11653         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11654           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655         10.[012]*)
11656           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11657         10.*)
11658           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11659       esac
11660     ;;
11661   esac
11662     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11663       _lt_dar_single_mod='$single_module'
11664     fi
11665     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11666       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11667     else
11668       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11669     fi
11670     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11671       _lt_dsymutil='~$DSYMUTIL $lib || :'
11672     else
11673       _lt_dsymutil=
11674     fi
11675     ;;
11676   esac
11677
11678 for ac_header in dlfcn.h
11679 do :
11680   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11681 "
11682 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11683   cat >>confdefs.h <<_ACEOF
11684 #define HAVE_DLFCN_H 1
11685 _ACEOF
11686
11687 fi
11688
11689 done
11690
11691
11692
11693
11694
11695
11696 # Set options
11697 enable_win32_dll=yes
11698
11699 case $host in
11700 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11701   if test -n "$ac_tool_prefix"; then
11702   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11703 set dummy ${ac_tool_prefix}as; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if test "${ac_cv_prog_AS+set}" = set; then :
11707   $as_echo_n "(cached) " >&6
11708 else
11709   if test -n "$AS"; then
11710   ac_cv_prog_AS="$AS" # Let the user override the test.
11711 else
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11714 do
11715   IFS=$as_save_IFS
11716   test -z "$as_dir" && as_dir=.
11717     for ac_exec_ext in '' $ac_executable_extensions; do
11718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719     ac_cv_prog_AS="${ac_tool_prefix}as"
11720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721     break 2
11722   fi
11723 done
11724   done
11725 IFS=$as_save_IFS
11726
11727 fi
11728 fi
11729 AS=$ac_cv_prog_AS
11730 if test -n "$AS"; then
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11732 $as_echo "$AS" >&6; }
11733 else
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735 $as_echo "no" >&6; }
11736 fi
11737
11738
11739 fi
11740 if test -z "$ac_cv_prog_AS"; then
11741   ac_ct_AS=$AS
11742   # Extract the first word of "as", so it can be a program name with args.
11743 set dummy as; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   if test -n "$ac_ct_AS"; then
11750   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11751 else
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755   IFS=$as_save_IFS
11756   test -z "$as_dir" && as_dir=.
11757     for ac_exec_ext in '' $ac_executable_extensions; do
11758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759     ac_cv_prog_ac_ct_AS="as"
11760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761     break 2
11762   fi
11763 done
11764   done
11765 IFS=$as_save_IFS
11766
11767 fi
11768 fi
11769 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11770 if test -n "$ac_ct_AS"; then
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11772 $as_echo "$ac_ct_AS" >&6; }
11773 else
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777
11778   if test "x$ac_ct_AS" = x; then
11779     AS="false"
11780   else
11781     case $cross_compiling:$ac_tool_warned in
11782 yes:)
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11785 ac_tool_warned=yes ;;
11786 esac
11787     AS=$ac_ct_AS
11788   fi
11789 else
11790   AS="$ac_cv_prog_AS"
11791 fi
11792
11793   if test -n "$ac_tool_prefix"; then
11794   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   if test -n "$DLLTOOL"; then
11802   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807   IFS=$as_save_IFS
11808   test -z "$as_dir" && as_dir=.
11809     for ac_exec_ext in '' $ac_executable_extensions; do
11810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813     break 2
11814   fi
11815 done
11816   done
11817 IFS=$as_save_IFS
11818
11819 fi
11820 fi
11821 DLLTOOL=$ac_cv_prog_DLLTOOL
11822 if test -n "$DLLTOOL"; then
11823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11824 $as_echo "$DLLTOOL" >&6; }
11825 else
11826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830
11831 fi
11832 if test -z "$ac_cv_prog_DLLTOOL"; then
11833   ac_ct_DLLTOOL=$DLLTOOL
11834   # Extract the first word of "dlltool", so it can be a program name with args.
11835 set dummy dlltool; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   if test -n "$ac_ct_DLLTOOL"; then
11842   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11846 do
11847   IFS=$as_save_IFS
11848   test -z "$as_dir" && as_dir=.
11849     for ac_exec_ext in '' $ac_executable_extensions; do
11850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853     break 2
11854   fi
11855 done
11856   done
11857 IFS=$as_save_IFS
11858
11859 fi
11860 fi
11861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11862 if test -n "$ac_ct_DLLTOOL"; then
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11864 $as_echo "$ac_ct_DLLTOOL" >&6; }
11865 else
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 fi
11869
11870   if test "x$ac_ct_DLLTOOL" = x; then
11871     DLLTOOL="false"
11872   else
11873     case $cross_compiling:$ac_tool_warned in
11874 yes:)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877 ac_tool_warned=yes ;;
11878 esac
11879     DLLTOOL=$ac_ct_DLLTOOL
11880   fi
11881 else
11882   DLLTOOL="$ac_cv_prog_DLLTOOL"
11883 fi
11884
11885   if test -n "$ac_tool_prefix"; then
11886   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11887 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   if test -n "$OBJDUMP"; then
11894   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11895 else
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11898 do
11899   IFS=$as_save_IFS
11900   test -z "$as_dir" && as_dir=.
11901     for ac_exec_ext in '' $ac_executable_extensions; do
11902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11905     break 2
11906   fi
11907 done
11908   done
11909 IFS=$as_save_IFS
11910
11911 fi
11912 fi
11913 OBJDUMP=$ac_cv_prog_OBJDUMP
11914 if test -n "$OBJDUMP"; then
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11916 $as_echo "$OBJDUMP" >&6; }
11917 else
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921
11922
11923 fi
11924 if test -z "$ac_cv_prog_OBJDUMP"; then
11925   ac_ct_OBJDUMP=$OBJDUMP
11926   # Extract the first word of "objdump", so it can be a program name with args.
11927 set dummy objdump; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11931   $as_echo_n "(cached) " >&6
11932 else
11933   if test -n "$ac_ct_OBJDUMP"; then
11934   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945     break 2
11946   fi
11947 done
11948   done
11949 IFS=$as_save_IFS
11950
11951 fi
11952 fi
11953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11954 if test -n "$ac_ct_OBJDUMP"; then
11955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11956 $as_echo "$ac_ct_OBJDUMP" >&6; }
11957 else
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 fi
11961
11962   if test "x$ac_ct_OBJDUMP" = x; then
11963     OBJDUMP="false"
11964   else
11965     case $cross_compiling:$ac_tool_warned in
11966 yes:)
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969 ac_tool_warned=yes ;;
11970 esac
11971     OBJDUMP=$ac_ct_OBJDUMP
11972   fi
11973 else
11974   OBJDUMP="$ac_cv_prog_OBJDUMP"
11975 fi
11976
11977   ;;
11978 esac
11979
11980 test -z "$AS" && AS=as
11981
11982
11983
11984
11985
11986 test -z "$DLLTOOL" && DLLTOOL=dlltool
11987
11988
11989
11990
11991
11992 test -z "$OBJDUMP" && OBJDUMP=objdump
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002             # Check whether --enable-shared was given.
12003 if test "${enable_shared+set}" = set; then :
12004   enableval=$enable_shared; p=${PACKAGE-default}
12005     case $enableval in
12006     yes) enable_shared=yes ;;
12007     no) enable_shared=no ;;
12008     *)
12009       enable_shared=no
12010       # Look at the argument we got.  We use all the common list separators.
12011       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012       for pkg in $enableval; do
12013         IFS="$lt_save_ifs"
12014         if test "X$pkg" = "X$p"; then
12015           enable_shared=yes
12016         fi
12017       done
12018       IFS="$lt_save_ifs"
12019       ;;
12020     esac
12021 else
12022   enable_shared=yes
12023 fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033   # Check whether --enable-static was given.
12034 if test "${enable_static+set}" = set; then :
12035   enableval=$enable_static; p=${PACKAGE-default}
12036     case $enableval in
12037     yes) enable_static=yes ;;
12038     no) enable_static=no ;;
12039     *)
12040      enable_static=no
12041       # Look at the argument we got.  We use all the common list separators.
12042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12043       for pkg in $enableval; do
12044         IFS="$lt_save_ifs"
12045         if test "X$pkg" = "X$p"; then
12046           enable_static=yes
12047         fi
12048       done
12049       IFS="$lt_save_ifs"
12050       ;;
12051     esac
12052 else
12053   enable_static=yes
12054 fi
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065 # Check whether --with-pic was given.
12066 if test "${with_pic+set}" = set; then :
12067   withval=$with_pic; pic_mode="$withval"
12068 else
12069   pic_mode=default
12070 fi
12071
12072
12073 test -z "$pic_mode" && pic_mode=default
12074
12075
12076
12077
12078
12079
12080
12081   # Check whether --enable-fast-install was given.
12082 if test "${enable_fast_install+set}" = set; then :
12083   enableval=$enable_fast_install; p=${PACKAGE-default}
12084     case $enableval in
12085     yes) enable_fast_install=yes ;;
12086     no) enable_fast_install=no ;;
12087     *)
12088       enable_fast_install=no
12089       # Look at the argument we got.  We use all the common list separators.
12090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12091       for pkg in $enableval; do
12092         IFS="$lt_save_ifs"
12093         if test "X$pkg" = "X$p"; then
12094           enable_fast_install=yes
12095         fi
12096       done
12097       IFS="$lt_save_ifs"
12098       ;;
12099     esac
12100 else
12101   enable_fast_install=yes
12102 fi
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114 # This can be used to rebuild libtool when needed
12115 LIBTOOL_DEPS="$ltmain"
12116
12117 # Always use our own libtool.
12118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145 test -z "$LN_S" && LN_S="ln -s"
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160 if test -n "${ZSH_VERSION+set}" ; then
12161    setopt NO_GLOB_SUBST
12162 fi
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12165 $as_echo_n "checking for objdir... " >&6; }
12166 if test "${lt_cv_objdir+set}" = set; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   rm -f .libs 2>/dev/null
12170 mkdir .libs 2>/dev/null
12171 if test -d .libs; then
12172   lt_cv_objdir=.libs
12173 else
12174   # MS-DOS does not allow filenames that begin with a dot.
12175   lt_cv_objdir=_libs
12176 fi
12177 rmdir .libs 2>/dev/null
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12180 $as_echo "$lt_cv_objdir" >&6; }
12181 objdir=$lt_cv_objdir
12182
12183
12184
12185
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define LT_OBJDIR "$lt_cv_objdir/"
12189 _ACEOF
12190
12191
12192
12193
12194 case $host_os in
12195 aix3*)
12196   # AIX sometimes has problems with the GCC collect2 program.  For some
12197   # reason, if we set the COLLECT_NAMES environment variable, the problems
12198   # vanish in a puff of smoke.
12199   if test "X${COLLECT_NAMES+set}" != Xset; then
12200     COLLECT_NAMES=
12201     export COLLECT_NAMES
12202   fi
12203   ;;
12204 esac
12205
12206 # Global variables:
12207 ofile=libtool
12208 can_build_shared=yes
12209
12210 # All known linkers require a `.a' archive for static linking (except MSVC,
12211 # which needs '.lib').
12212 libext=a
12213
12214 with_gnu_ld="$lt_cv_prog_gnu_ld"
12215
12216 old_CC="$CC"
12217 old_CFLAGS="$CFLAGS"
12218
12219 # Set sane defaults for various variables
12220 test -z "$CC" && CC=cc
12221 test -z "$LTCC" && LTCC=$CC
12222 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12223 test -z "$LD" && LD=ld
12224 test -z "$ac_objext" && ac_objext=o
12225
12226 for cc_temp in $compiler""; do
12227   case $cc_temp in
12228     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12229     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12230     \-*) ;;
12231     *) break;;
12232   esac
12233 done
12234 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12235
12236
12237 # Only perform the check for file, if the check method requires it
12238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12239 case $deplibs_check_method in
12240 file_magic*)
12241   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12243 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12245   $as_echo_n "(cached) " >&6
12246 else
12247   case $MAGIC_CMD in
12248 [\\/*] |  ?:[\\/]*)
12249   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12250   ;;
12251 *)
12252   lt_save_MAGIC_CMD="$MAGIC_CMD"
12253   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12254   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12255   for ac_dir in $ac_dummy; do
12256     IFS="$lt_save_ifs"
12257     test -z "$ac_dir" && ac_dir=.
12258     if test -f $ac_dir/${ac_tool_prefix}file; then
12259       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12260       if test -n "$file_magic_test_file"; then
12261         case $deplibs_check_method in
12262         "file_magic "*)
12263           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12264           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12265           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12266             $EGREP "$file_magic_regex" > /dev/null; then
12267             :
12268           else
12269             cat <<_LT_EOF 1>&2
12270
12271 *** Warning: the command libtool uses to detect shared libraries,
12272 *** $file_magic_cmd, produces output that libtool cannot recognize.
12273 *** The result is that libtool may fail to recognize shared libraries
12274 *** as such.  This will affect the creation of libtool libraries that
12275 *** depend on shared libraries, but programs linked with such libtool
12276 *** libraries will work regardless of this problem.  Nevertheless, you
12277 *** may want to report the problem to your system manager and/or to
12278 *** bug-libtool@gnu.org
12279
12280 _LT_EOF
12281           fi ;;
12282         esac
12283       fi
12284       break
12285     fi
12286   done
12287   IFS="$lt_save_ifs"
12288   MAGIC_CMD="$lt_save_MAGIC_CMD"
12289   ;;
12290 esac
12291 fi
12292
12293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12294 if test -n "$MAGIC_CMD"; then
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12296 $as_echo "$MAGIC_CMD" >&6; }
12297 else
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302
12303
12304
12305
12306 if test -z "$lt_cv_path_MAGIC_CMD"; then
12307   if test -n "$ac_tool_prefix"; then
12308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12309 $as_echo_n "checking for file... " >&6; }
12310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   case $MAGIC_CMD in
12314 [\\/*] |  ?:[\\/]*)
12315   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12316   ;;
12317 *)
12318   lt_save_MAGIC_CMD="$MAGIC_CMD"
12319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12320   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12321   for ac_dir in $ac_dummy; do
12322     IFS="$lt_save_ifs"
12323     test -z "$ac_dir" && ac_dir=.
12324     if test -f $ac_dir/file; then
12325       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12326       if test -n "$file_magic_test_file"; then
12327         case $deplibs_check_method in
12328         "file_magic "*)
12329           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12330           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12332             $EGREP "$file_magic_regex" > /dev/null; then
12333             :
12334           else
12335             cat <<_LT_EOF 1>&2
12336
12337 *** Warning: the command libtool uses to detect shared libraries,
12338 *** $file_magic_cmd, produces output that libtool cannot recognize.
12339 *** The result is that libtool may fail to recognize shared libraries
12340 *** as such.  This will affect the creation of libtool libraries that
12341 *** depend on shared libraries, but programs linked with such libtool
12342 *** libraries will work regardless of this problem.  Nevertheless, you
12343 *** may want to report the problem to your system manager and/or to
12344 *** bug-libtool@gnu.org
12345
12346 _LT_EOF
12347           fi ;;
12348         esac
12349       fi
12350       break
12351     fi
12352   done
12353   IFS="$lt_save_ifs"
12354   MAGIC_CMD="$lt_save_MAGIC_CMD"
12355   ;;
12356 esac
12357 fi
12358
12359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12360 if test -n "$MAGIC_CMD"; then
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12362 $as_echo "$MAGIC_CMD" >&6; }
12363 else
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369   else
12370     MAGIC_CMD=:
12371   fi
12372 fi
12373
12374   fi
12375   ;;
12376 esac
12377
12378 # Use C for the default configuration in the libtool script
12379
12380 lt_save_CC="$CC"
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387
12388 # Source file extension for C test sources.
12389 ac_ext=c
12390
12391 # Object file extension for compiled C test sources.
12392 objext=o
12393 objext=$objext
12394
12395 # Code to be used in simple compile tests
12396 lt_simple_compile_test_code="int some_variable = 0;"
12397
12398 # Code to be used in simple link tests
12399 lt_simple_link_test_code='int main(){return(0);}'
12400
12401
12402
12403
12404
12405
12406
12407 # If no C compiler was specified, use CC.
12408 LTCC=${LTCC-"$CC"}
12409
12410 # If no C compiler flags were specified, use CFLAGS.
12411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12412
12413 # Allow CC to be a program name with arguments.
12414 compiler=$CC
12415
12416 # Save the default compiler, since it gets overwritten when the other
12417 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12418 compiler_DEFAULT=$CC
12419
12420 # save warnings/boilerplate of simple test code
12421 ac_outfile=conftest.$ac_objext
12422 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12424 _lt_compiler_boilerplate=`cat conftest.err`
12425 $RM conftest*
12426
12427 ac_outfile=conftest.$ac_objext
12428 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12430 _lt_linker_boilerplate=`cat conftest.err`
12431 $RM -r conftest*
12432
12433
12434 ## CAVEAT EMPTOR:
12435 ## There is no encapsulation within the following macros, do not change
12436 ## the running order or otherwise move them around unless you know exactly
12437 ## what you are doing...
12438 if test -n "$compiler"; then
12439
12440 lt_prog_compiler_no_builtin_flag=
12441
12442 if test "$GCC" = yes; then
12443   case $cc_basename in
12444   nvcc*)
12445     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12446   *)
12447     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12448   esac
12449
12450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12451 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12453   $as_echo_n "(cached) " >&6
12454 else
12455   lt_cv_prog_compiler_rtti_exceptions=no
12456    ac_outfile=conftest.$ac_objext
12457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12458    lt_compiler_flag="-fno-rtti -fno-exceptions"
12459    # Insert the option either (1) after the last *FLAGS variable, or
12460    # (2) before a word containing "conftest.", or (3) at the end.
12461    # Note that $ac_compile itself does not contain backslashes and begins
12462    # with a dollar sign (not a hyphen), so the echo should work correctly.
12463    # The option is referenced via a variable to avoid confusing sed.
12464    lt_compile=`echo "$ac_compile" | $SED \
12465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467    -e 's:$: $lt_compiler_flag:'`
12468    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12469    (eval "$lt_compile" 2>conftest.err)
12470    ac_status=$?
12471    cat conftest.err >&5
12472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473    if (exit $ac_status) && test -s "$ac_outfile"; then
12474      # The compiler can only warn and ignore the option if not recognized
12475      # So say no if there are warnings other than the usual output.
12476      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12477      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12479        lt_cv_prog_compiler_rtti_exceptions=yes
12480      fi
12481    fi
12482    $RM conftest*
12483
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12486 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12487
12488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12489     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12490 else
12491     :
12492 fi
12493
12494 fi
12495
12496
12497
12498
12499
12500
12501   lt_prog_compiler_wl=
12502 lt_prog_compiler_pic=
12503 lt_prog_compiler_static=
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12506 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12507
12508   if test "$GCC" = yes; then
12509     lt_prog_compiler_wl='-Wl,'
12510     lt_prog_compiler_static='-static'
12511
12512     case $host_os in
12513       aix*)
12514       # All AIX code is PIC.
12515       if test "$host_cpu" = ia64; then
12516         # AIX 5 now supports IA64 processor
12517         lt_prog_compiler_static='-Bstatic'
12518       fi
12519       ;;
12520
12521     amigaos*)
12522       case $host_cpu in
12523       powerpc)
12524             # see comment about AmigaOS4 .so support
12525             lt_prog_compiler_pic='-fPIC'
12526         ;;
12527       m68k)
12528             # FIXME: we need at least 68020 code to build shared libraries, but
12529             # adding the `-m68020' flag to GCC prevents building anything better,
12530             # like `-m68040'.
12531             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12532         ;;
12533       esac
12534       ;;
12535
12536     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12537       # PIC is the default for these OSes.
12538       ;;
12539
12540     mingw* | cygwin* | pw32* | os2* | cegcc*)
12541       # This hack is so that the source file can tell whether it is being
12542       # built for inclusion in a dll (and should export symbols for example).
12543       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12544       # (--disable-auto-import) libraries
12545       lt_prog_compiler_pic='-DDLL_EXPORT'
12546       ;;
12547
12548     darwin* | rhapsody*)
12549       # PIC is the default on this platform
12550       # Common symbols not allowed in MH_DYLIB files
12551       lt_prog_compiler_pic='-fno-common'
12552       ;;
12553
12554     haiku*)
12555       # PIC is the default for Haiku.
12556       # The "-static" flag exists, but is broken.
12557       lt_prog_compiler_static=
12558       ;;
12559
12560     hpux*)
12561       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12562       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12563       # sets the default TLS model and affects inlining.
12564       case $host_cpu in
12565       hppa*64*)
12566         # +Z the default
12567         ;;
12568       *)
12569         lt_prog_compiler_pic='-fPIC'
12570         ;;
12571       esac
12572       ;;
12573
12574     interix[3-9]*)
12575       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12576       # Instead, we relocate shared libraries at runtime.
12577       ;;
12578
12579     msdosdjgpp*)
12580       # Just because we use GCC doesn't mean we suddenly get shared libraries
12581       # on systems that don't support them.
12582       lt_prog_compiler_can_build_shared=no
12583       enable_shared=no
12584       ;;
12585
12586     *nto* | *qnx*)
12587       # QNX uses GNU C++, but need to define -shared option too, otherwise
12588       # it will coredump.
12589       lt_prog_compiler_pic='-fPIC -shared'
12590       ;;
12591
12592     sysv4*MP*)
12593       if test -d /usr/nec; then
12594         lt_prog_compiler_pic=-Kconform_pic
12595       fi
12596       ;;
12597
12598     *)
12599       lt_prog_compiler_pic='-fPIC'
12600       ;;
12601     esac
12602
12603     case $cc_basename in
12604     nvcc*) # Cuda Compiler Driver 2.2
12605       lt_prog_compiler_wl='-Xlinker '
12606       lt_prog_compiler_pic='-Xcompiler -fPIC'
12607       ;;
12608     esac
12609   else
12610     # PORTME Check for flag to pass linker flags through the system compiler.
12611     case $host_os in
12612     aix*)
12613       lt_prog_compiler_wl='-Wl,'
12614       if test "$host_cpu" = ia64; then
12615         # AIX 5 now supports IA64 processor
12616         lt_prog_compiler_static='-Bstatic'
12617       else
12618         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12619       fi
12620       ;;
12621
12622     mingw* | cygwin* | pw32* | os2* | cegcc*)
12623       # This hack is so that the source file can tell whether it is being
12624       # built for inclusion in a dll (and should export symbols for example).
12625       lt_prog_compiler_pic='-DDLL_EXPORT'
12626       ;;
12627
12628     hpux9* | hpux10* | hpux11*)
12629       lt_prog_compiler_wl='-Wl,'
12630       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12631       # not for PA HP-UX.
12632       case $host_cpu in
12633       hppa*64*|ia64*)
12634         # +Z the default
12635         ;;
12636       *)
12637         lt_prog_compiler_pic='+Z'
12638         ;;
12639       esac
12640       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12641       lt_prog_compiler_static='${wl}-a ${wl}archive'
12642       ;;
12643
12644     irix5* | irix6* | nonstopux*)
12645       lt_prog_compiler_wl='-Wl,'
12646       # PIC (with -KPIC) is the default.
12647       lt_prog_compiler_static='-non_shared'
12648       ;;
12649
12650     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12651       case $cc_basename in
12652       # old Intel for x86_64 which still supported -KPIC.
12653       ecc*)
12654         lt_prog_compiler_wl='-Wl,'
12655         lt_prog_compiler_pic='-KPIC'
12656         lt_prog_compiler_static='-static'
12657         ;;
12658       # icc used to be incompatible with GCC.
12659       # ICC 10 doesn't accept -KPIC any more.
12660       icc* | ifort*)
12661         lt_prog_compiler_wl='-Wl,'
12662         lt_prog_compiler_pic='-fPIC'
12663         lt_prog_compiler_static='-static'
12664         ;;
12665       # Lahey Fortran 8.1.
12666       lf95*)
12667         lt_prog_compiler_wl='-Wl,'
12668         lt_prog_compiler_pic='--shared'
12669         lt_prog_compiler_static='--static'
12670         ;;
12671       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12672         # Portland Group compilers (*not* the Pentium gcc compiler,
12673         # which looks to be a dead project)
12674         lt_prog_compiler_wl='-Wl,'
12675         lt_prog_compiler_pic='-fpic'
12676         lt_prog_compiler_static='-Bstatic'
12677         ;;
12678       ccc*)
12679         lt_prog_compiler_wl='-Wl,'
12680         # All Alpha code is PIC.
12681         lt_prog_compiler_static='-non_shared'
12682         ;;
12683       xl* | bgxl* | bgf* | mpixl*)
12684         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12685         lt_prog_compiler_wl='-Wl,'
12686         lt_prog_compiler_pic='-qpic'
12687         lt_prog_compiler_static='-qstaticlink'
12688         ;;
12689       *)
12690         case `$CC -V 2>&1 | sed 5q` in
12691         *Sun\ F* | *Sun*Fortran*)
12692           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12693           lt_prog_compiler_pic='-KPIC'
12694           lt_prog_compiler_static='-Bstatic'
12695           lt_prog_compiler_wl=''
12696           ;;
12697         *Sun\ C*)
12698           # Sun C 5.9
12699           lt_prog_compiler_pic='-KPIC'
12700           lt_prog_compiler_static='-Bstatic'
12701           lt_prog_compiler_wl='-Wl,'
12702           ;;
12703         esac
12704         ;;
12705       esac
12706       ;;
12707
12708     newsos6)
12709       lt_prog_compiler_pic='-KPIC'
12710       lt_prog_compiler_static='-Bstatic'
12711       ;;
12712
12713     *nto* | *qnx*)
12714       # QNX uses GNU C++, but need to define -shared option too, otherwise
12715       # it will coredump.
12716       lt_prog_compiler_pic='-fPIC -shared'
12717       ;;
12718
12719     osf3* | osf4* | osf5*)
12720       lt_prog_compiler_wl='-Wl,'
12721       # All OSF/1 code is PIC.
12722       lt_prog_compiler_static='-non_shared'
12723       ;;
12724
12725     rdos*)
12726       lt_prog_compiler_static='-non_shared'
12727       ;;
12728
12729     solaris*)
12730       lt_prog_compiler_pic='-KPIC'
12731       lt_prog_compiler_static='-Bstatic'
12732       case $cc_basename in
12733       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12734         lt_prog_compiler_wl='-Qoption ld ';;
12735       *)
12736         lt_prog_compiler_wl='-Wl,';;
12737       esac
12738       ;;
12739
12740     sunos4*)
12741       lt_prog_compiler_wl='-Qoption ld '
12742       lt_prog_compiler_pic='-PIC'
12743       lt_prog_compiler_static='-Bstatic'
12744       ;;
12745
12746     sysv4 | sysv4.2uw2* | sysv4.3*)
12747       lt_prog_compiler_wl='-Wl,'
12748       lt_prog_compiler_pic='-KPIC'
12749       lt_prog_compiler_static='-Bstatic'
12750       ;;
12751
12752     sysv4*MP*)
12753       if test -d /usr/nec ;then
12754         lt_prog_compiler_pic='-Kconform_pic'
12755         lt_prog_compiler_static='-Bstatic'
12756       fi
12757       ;;
12758
12759     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12760       lt_prog_compiler_wl='-Wl,'
12761       lt_prog_compiler_pic='-KPIC'
12762       lt_prog_compiler_static='-Bstatic'
12763       ;;
12764
12765     unicos*)
12766       lt_prog_compiler_wl='-Wl,'
12767       lt_prog_compiler_can_build_shared=no
12768       ;;
12769
12770     uts4*)
12771       lt_prog_compiler_pic='-pic'
12772       lt_prog_compiler_static='-Bstatic'
12773       ;;
12774
12775     *)
12776       lt_prog_compiler_can_build_shared=no
12777       ;;
12778     esac
12779   fi
12780
12781 case $host_os in
12782   # For platforms which do not support PIC, -DPIC is meaningless:
12783   *djgpp*)
12784     lt_prog_compiler_pic=
12785     ;;
12786   *)
12787     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12788     ;;
12789 esac
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12791 $as_echo "$lt_prog_compiler_pic" >&6; }
12792
12793
12794
12795
12796
12797
12798 #
12799 # Check to make sure the PIC flag actually works.
12800 #
12801 if test -n "$lt_prog_compiler_pic"; then
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12803 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12804 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807   lt_cv_prog_compiler_pic_works=no
12808    ac_outfile=conftest.$ac_objext
12809    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12811    # Insert the option either (1) after the last *FLAGS variable, or
12812    # (2) before a word containing "conftest.", or (3) at the end.
12813    # Note that $ac_compile itself does not contain backslashes and begins
12814    # with a dollar sign (not a hyphen), so the echo should work correctly.
12815    # The option is referenced via a variable to avoid confusing sed.
12816    lt_compile=`echo "$ac_compile" | $SED \
12817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819    -e 's:$: $lt_compiler_flag:'`
12820    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12821    (eval "$lt_compile" 2>conftest.err)
12822    ac_status=$?
12823    cat conftest.err >&5
12824    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825    if (exit $ac_status) && test -s "$ac_outfile"; then
12826      # The compiler can only warn and ignore the option if not recognized
12827      # So say no if there are warnings other than the usual output.
12828      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12829      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12830      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12831        lt_cv_prog_compiler_pic_works=yes
12832      fi
12833    fi
12834    $RM conftest*
12835
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12838 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12839
12840 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12841     case $lt_prog_compiler_pic in
12842      "" | " "*) ;;
12843      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12844      esac
12845 else
12846     lt_prog_compiler_pic=
12847      lt_prog_compiler_can_build_shared=no
12848 fi
12849
12850 fi
12851
12852
12853
12854
12855
12856
12857 #
12858 # Check to make sure the static flag actually works.
12859 #
12860 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12862 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12863 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   lt_cv_prog_compiler_static_works=no
12867    save_LDFLAGS="$LDFLAGS"
12868    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12869    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12870    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12871      # The linker can only warn and ignore the option if not recognized
12872      # So say no if there are warnings
12873      if test -s conftest.err; then
12874        # Append any errors to the config.log.
12875        cat conftest.err 1>&5
12876        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12877        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12878        if diff conftest.exp conftest.er2 >/dev/null; then
12879          lt_cv_prog_compiler_static_works=yes
12880        fi
12881      else
12882        lt_cv_prog_compiler_static_works=yes
12883      fi
12884    fi
12885    $RM -r conftest*
12886    LDFLAGS="$save_LDFLAGS"
12887
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12890 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12891
12892 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12893     :
12894 else
12895     lt_prog_compiler_static=
12896 fi
12897
12898
12899
12900
12901
12902
12903
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12906 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909   lt_cv_prog_compiler_c_o=no
12910    $RM -r conftest 2>/dev/null
12911    mkdir conftest
12912    cd conftest
12913    mkdir out
12914    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12915
12916    lt_compiler_flag="-o out/conftest2.$ac_objext"
12917    # Insert the option either (1) after the last *FLAGS variable, or
12918    # (2) before a word containing "conftest.", or (3) at the end.
12919    # Note that $ac_compile itself does not contain backslashes and begins
12920    # with a dollar sign (not a hyphen), so the echo should work correctly.
12921    lt_compile=`echo "$ac_compile" | $SED \
12922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12924    -e 's:$: $lt_compiler_flag:'`
12925    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12926    (eval "$lt_compile" 2>out/conftest.err)
12927    ac_status=$?
12928    cat out/conftest.err >&5
12929    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12931    then
12932      # The compiler can only warn and ignore the option if not recognized
12933      # So say no if there are warnings
12934      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12935      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12936      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12937        lt_cv_prog_compiler_c_o=yes
12938      fi
12939    fi
12940    chmod u+w . 2>&5
12941    $RM conftest*
12942    # SGI C++ compiler will create directory out/ii_files/ for
12943    # template instantiation
12944    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12945    $RM out/* && rmdir out
12946    cd ..
12947    $RM -r conftest
12948    $RM conftest*
12949
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12953
12954
12955
12956
12957
12958
12959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12961 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   lt_cv_prog_compiler_c_o=no
12965    $RM -r conftest 2>/dev/null
12966    mkdir conftest
12967    cd conftest
12968    mkdir out
12969    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970
12971    lt_compiler_flag="-o out/conftest2.$ac_objext"
12972    # Insert the option either (1) after the last *FLAGS variable, or
12973    # (2) before a word containing "conftest.", or (3) at the end.
12974    # Note that $ac_compile itself does not contain backslashes and begins
12975    # with a dollar sign (not a hyphen), so the echo should work correctly.
12976    lt_compile=`echo "$ac_compile" | $SED \
12977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979    -e 's:$: $lt_compiler_flag:'`
12980    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12981    (eval "$lt_compile" 2>out/conftest.err)
12982    ac_status=$?
12983    cat out/conftest.err >&5
12984    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12986    then
12987      # The compiler can only warn and ignore the option if not recognized
12988      # So say no if there are warnings
12989      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12990      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992        lt_cv_prog_compiler_c_o=yes
12993      fi
12994    fi
12995    chmod u+w . 2>&5
12996    $RM conftest*
12997    # SGI C++ compiler will create directory out/ii_files/ for
12998    # template instantiation
12999    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13000    $RM out/* && rmdir out
13001    cd ..
13002    $RM -r conftest
13003    $RM conftest*
13004
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13008
13009
13010
13011
13012 hard_links="nottested"
13013 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13014   # do not overwrite the value of need_locks provided by the user
13015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13016 $as_echo_n "checking if we can lock with hard links... " >&6; }
13017   hard_links=yes
13018   $RM conftest*
13019   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13020   touch conftest.a
13021   ln conftest.a conftest.b 2>&5 || hard_links=no
13022   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13024 $as_echo "$hard_links" >&6; }
13025   if test "$hard_links" = no; then
13026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13027 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13028     need_locks=warn
13029   fi
13030 else
13031   need_locks=no
13032 fi
13033
13034
13035
13036
13037
13038
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13041
13042   runpath_var=
13043   allow_undefined_flag=
13044   always_export_symbols=no
13045   archive_cmds=
13046   archive_expsym_cmds=
13047   compiler_needs_object=no
13048   enable_shared_with_static_runtimes=no
13049   export_dynamic_flag_spec=
13050   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051   hardcode_automatic=no
13052   hardcode_direct=no
13053   hardcode_direct_absolute=no
13054   hardcode_libdir_flag_spec=
13055   hardcode_libdir_flag_spec_ld=
13056   hardcode_libdir_separator=
13057   hardcode_minus_L=no
13058   hardcode_shlibpath_var=unsupported
13059   inherit_rpath=no
13060   link_all_deplibs=unknown
13061   module_cmds=
13062   module_expsym_cmds=
13063   old_archive_from_new_cmds=
13064   old_archive_from_expsyms_cmds=
13065   thread_safe_flag_spec=
13066   whole_archive_flag_spec=
13067   # include_expsyms should be a list of space-separated symbols to be *always*
13068   # included in the symbol list
13069   include_expsyms=
13070   # exclude_expsyms can be an extended regexp of symbols to exclude
13071   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13072   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13073   # as well as any symbol that contains `d'.
13074   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13075   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13076   # platforms (ab)use it in PIC code, but their linkers get confused if
13077   # the symbol is explicitly referenced.  Since portable code cannot
13078   # rely on this symbol name, it's probably fine to never include it in
13079   # preloaded symbol tables.
13080   # Exclude shared library initialization/finalization symbols.
13081   extract_expsyms_cmds=
13082
13083   case $host_os in
13084   cygwin* | mingw* | pw32* | cegcc*)
13085     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13086     # When not using gcc, we currently assume that we are using
13087     # Microsoft Visual C++.
13088     if test "$GCC" != yes; then
13089       with_gnu_ld=no
13090     fi
13091     ;;
13092   interix*)
13093     # we just hope/assume this is gcc and not c89 (= MSVC++)
13094     with_gnu_ld=yes
13095     ;;
13096   openbsd*)
13097     with_gnu_ld=no
13098     ;;
13099   esac
13100
13101   ld_shlibs=yes
13102
13103   # On some targets, GNU ld is compatible enough with the native linker
13104   # that we're better off using the native interface for both.
13105   lt_use_gnu_ld_interface=no
13106   if test "$with_gnu_ld" = yes; then
13107     case $host_os in
13108       aix*)
13109         # The AIX port of GNU ld has always aspired to compatibility
13110         # with the native linker.  However, as the warning in the GNU ld
13111         # block says, versions before 2.19.5* couldn't really create working
13112         # shared libraries, regardless of the interface used.
13113         case `$LD -v 2>&1` in
13114           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13115           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13116           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13117           *)
13118             lt_use_gnu_ld_interface=yes
13119             ;;
13120         esac
13121         ;;
13122       *)
13123         lt_use_gnu_ld_interface=yes
13124         ;;
13125     esac
13126   fi
13127
13128   if test "$lt_use_gnu_ld_interface" = yes; then
13129     # If archive_cmds runs LD, not CC, wlarc should be empty
13130     wlarc='${wl}'
13131
13132     # Set some defaults for GNU ld with shared library support. These
13133     # are reset later if shared libraries are not supported. Putting them
13134     # here allows them to be overridden if necessary.
13135     runpath_var=LD_RUN_PATH
13136     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13137     export_dynamic_flag_spec='${wl}--export-dynamic'
13138     # ancient GNU ld didn't support --whole-archive et. al.
13139     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13140       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13141     else
13142       whole_archive_flag_spec=
13143     fi
13144     supports_anon_versioning=no
13145     case `$LD -v 2>&1` in
13146       *GNU\ gold*) supports_anon_versioning=yes ;;
13147       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13148       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13149       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13150       *\ 2.11.*) ;; # other 2.11 versions
13151       *) supports_anon_versioning=yes ;;
13152     esac
13153
13154     # See if GNU ld supports shared libraries.
13155     case $host_os in
13156     aix[3-9]*)
13157       # On AIX/PPC, the GNU linker is very broken
13158       if test "$host_cpu" != ia64; then
13159         ld_shlibs=no
13160         cat <<_LT_EOF 1>&2
13161
13162 *** Warning: the GNU linker, at least up to release 2.19, is reported
13163 *** to be unable to reliably create shared libraries on AIX.
13164 *** Therefore, libtool is disabling shared libraries support.  If you
13165 *** really care for shared libraries, you may want to install binutils
13166 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13167 *** You will then need to restart the configuration process.
13168
13169 _LT_EOF
13170       fi
13171       ;;
13172
13173     amigaos*)
13174       case $host_cpu in
13175       powerpc)
13176             # see comment about AmigaOS4 .so support
13177             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178             archive_expsym_cmds=''
13179         ;;
13180       m68k)
13181             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)'
13182             hardcode_libdir_flag_spec='-L$libdir'
13183             hardcode_minus_L=yes
13184         ;;
13185       esac
13186       ;;
13187
13188     beos*)
13189       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13190         allow_undefined_flag=unsupported
13191         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13192         # support --undefined.  This deserves some investigation.  FIXME
13193         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194       else
13195         ld_shlibs=no
13196       fi
13197       ;;
13198
13199     cygwin* | mingw* | pw32* | cegcc*)
13200       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13201       # as there is no search path for DLLs.
13202       hardcode_libdir_flag_spec='-L$libdir'
13203       export_dynamic_flag_spec='${wl}--export-all-symbols'
13204       allow_undefined_flag=unsupported
13205       always_export_symbols=no
13206       enable_shared_with_static_runtimes=yes
13207       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13208
13209       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211         # If the export-symbols file already is a .def file (1st line
13212         # is EXPORTS), use it as is; otherwise, prepend...
13213         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214           cp $export_symbols $output_objdir/$soname.def;
13215         else
13216           echo EXPORTS > $output_objdir/$soname.def;
13217           cat $export_symbols >> $output_objdir/$soname.def;
13218         fi~
13219         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13220       else
13221         ld_shlibs=no
13222       fi
13223       ;;
13224
13225     haiku*)
13226       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227       link_all_deplibs=yes
13228       ;;
13229
13230     interix[3-9]*)
13231       hardcode_direct=no
13232       hardcode_shlibpath_var=no
13233       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13234       export_dynamic_flag_spec='${wl}-E'
13235       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13236       # Instead, shared libraries are loaded at an image base (0x10000000 by
13237       # default) and relocated if they conflict, which is a slow very memory
13238       # consuming and fragmenting process.  To avoid this, we pick a random,
13239       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13240       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13241       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13242       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'
13243       ;;
13244
13245     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13246       tmp_diet=no
13247       if test "$host_os" = linux-dietlibc; then
13248         case $cc_basename in
13249           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13250         esac
13251       fi
13252       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13253          && test "$tmp_diet" = no
13254       then
13255         tmp_addflag=
13256         tmp_sharedflag='-shared'
13257         case $cc_basename,$host_cpu in
13258         pgcc*)                          # Portland Group C compiler
13259           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'
13260           tmp_addflag=' $pic_flag'
13261           ;;
13262         pgf77* | pgf90* | pgf95* | pgfortran*)
13263                                         # Portland Group f77 and f90 compilers
13264           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'
13265           tmp_addflag=' $pic_flag -Mnomain' ;;
13266         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13267           tmp_addflag=' -i_dynamic' ;;
13268         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13269           tmp_addflag=' -i_dynamic -nofor_main' ;;
13270         ifc* | ifort*)                  # Intel Fortran compiler
13271           tmp_addflag=' -nofor_main' ;;
13272         lf95*)                          # Lahey Fortran 8.1
13273           whole_archive_flag_spec=
13274           tmp_sharedflag='--shared' ;;
13275         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13276           tmp_sharedflag='-qmkshrobj'
13277           tmp_addflag= ;;
13278         nvcc*)  # Cuda Compiler Driver 2.2
13279           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'
13280           compiler_needs_object=yes
13281           ;;
13282         esac
13283         case `$CC -V 2>&1 | sed 5q` in
13284         *Sun\ C*)                       # Sun C 5.9
13285           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'
13286           compiler_needs_object=yes
13287           tmp_sharedflag='-G' ;;
13288         *Sun\ F*)                       # Sun Fortran 8.3
13289           tmp_sharedflag='-G' ;;
13290         esac
13291         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292
13293         if test "x$supports_anon_versioning" = xyes; then
13294           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13295             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13296             echo "local: *; };" >> $output_objdir/$libname.ver~
13297             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13298         fi
13299
13300         case $cc_basename in
13301         xlf* | bgf* | bgxlf* | mpixlf*)
13302           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13303           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13304           hardcode_libdir_flag_spec=
13305           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13306           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13307           if test "x$supports_anon_versioning" = xyes; then
13308             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13309               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13310               echo "local: *; };" >> $output_objdir/$libname.ver~
13311               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13312           fi
13313           ;;
13314         esac
13315       else
13316         ld_shlibs=no
13317       fi
13318       ;;
13319
13320     netbsd*)
13321       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13322         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13323         wlarc=
13324       else
13325         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327       fi
13328       ;;
13329
13330     solaris*)
13331       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13332         ld_shlibs=no
13333         cat <<_LT_EOF 1>&2
13334
13335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13336 *** create shared libraries on Solaris systems.  Therefore, libtool
13337 *** is disabling shared libraries support.  We urge you to upgrade GNU
13338 *** binutils to release 2.9.1 or newer.  Another option is to modify
13339 *** your PATH or compiler configuration so that the native linker is
13340 *** used, and then restart.
13341
13342 _LT_EOF
13343       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13344         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13346       else
13347         ld_shlibs=no
13348       fi
13349       ;;
13350
13351     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13352       case `$LD -v 2>&1` in
13353         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13354         ld_shlibs=no
13355         cat <<_LT_EOF 1>&2
13356
13357 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13358 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13359 *** is disabling shared libraries support.  We urge you to upgrade GNU
13360 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13361 *** your PATH or compiler configuration so that the native linker is
13362 *** used, and then restart.
13363
13364 _LT_EOF
13365         ;;
13366         *)
13367           # For security reasons, it is highly recommended that you always
13368           # use absolute paths for naming shared libraries, and exclude the
13369           # DT_RUNPATH tag from executables and libraries.  But doing so
13370           # requires that you compile everything twice, which is a pain.
13371           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13372             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13373             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13375           else
13376             ld_shlibs=no
13377           fi
13378         ;;
13379       esac
13380       ;;
13381
13382     sunos4*)
13383       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13384       wlarc=
13385       hardcode_direct=yes
13386       hardcode_shlibpath_var=no
13387       ;;
13388
13389     *)
13390       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13391         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13393       else
13394         ld_shlibs=no
13395       fi
13396       ;;
13397     esac
13398
13399     if test "$ld_shlibs" = no; then
13400       runpath_var=
13401       hardcode_libdir_flag_spec=
13402       export_dynamic_flag_spec=
13403       whole_archive_flag_spec=
13404     fi
13405   else
13406     # PORTME fill in a description of your system's linker (not GNU ld)
13407     case $host_os in
13408     aix3*)
13409       allow_undefined_flag=unsupported
13410       always_export_symbols=yes
13411       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'
13412       # Note: this linker hardcodes the directories in LIBPATH if there
13413       # are no directories specified by -L.
13414       hardcode_minus_L=yes
13415       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13416         # Neither direct hardcoding nor static linking is supported with a
13417         # broken collect2.
13418         hardcode_direct=unsupported
13419       fi
13420       ;;
13421
13422     aix[4-9]*)
13423       if test "$host_cpu" = ia64; then
13424         # On IA64, the linker does run time linking by default, so we don't
13425         # have to do anything special.
13426         aix_use_runtimelinking=no
13427         exp_sym_flag='-Bexport'
13428         no_entry_flag=""
13429       else
13430         # If we're using GNU nm, then we don't want the "-C" option.
13431         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13432         # Also, AIX nm treats weak defined symbols like other global
13433         # defined symbols, whereas GNU nm marks them as "W".
13434         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13435           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'
13436         else
13437           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'
13438         fi
13439         aix_use_runtimelinking=no
13440
13441         # Test if we are trying to use run time linking or normal
13442         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443         # need to do runtime linking.
13444         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445           for ld_flag in $LDFLAGS; do
13446           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447             aix_use_runtimelinking=yes
13448             break
13449           fi
13450           done
13451           ;;
13452         esac
13453
13454         exp_sym_flag='-bexport'
13455         no_entry_flag='-bnoentry'
13456       fi
13457
13458       # When large executables or shared objects are built, AIX ld can
13459       # have problems creating the table of contents.  If linking a library
13460       # or program results in "error TOC overflow" add -mminimal-toc to
13461       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13462       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13463
13464       archive_cmds=''
13465       hardcode_direct=yes
13466       hardcode_direct_absolute=yes
13467       hardcode_libdir_separator=':'
13468       link_all_deplibs=yes
13469       file_list_spec='${wl}-f,'
13470
13471       if test "$GCC" = yes; then
13472         case $host_os in aix4.[012]|aix4.[012].*)
13473         # We only want to do this on AIX 4.2 and lower, the check
13474         # below for broken collect2 doesn't work under 4.3+
13475           collect2name=`${CC} -print-prog-name=collect2`
13476           if test -f "$collect2name" &&
13477            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13478           then
13479           # We have reworked collect2
13480           :
13481           else
13482           # We have old collect2
13483           hardcode_direct=unsupported
13484           # It fails to find uninstalled libraries when the uninstalled
13485           # path is not listed in the libpath.  Setting hardcode_minus_L
13486           # to unsupported forces relinking
13487           hardcode_minus_L=yes
13488           hardcode_libdir_flag_spec='-L$libdir'
13489           hardcode_libdir_separator=
13490           fi
13491           ;;
13492         esac
13493         shared_flag='-shared'
13494         if test "$aix_use_runtimelinking" = yes; then
13495           shared_flag="$shared_flag "'${wl}-G'
13496         fi
13497       else
13498         # not using gcc
13499         if test "$host_cpu" = ia64; then
13500         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501         # chokes on -Wl,-G. The following line is correct:
13502           shared_flag='-G'
13503         else
13504           if test "$aix_use_runtimelinking" = yes; then
13505             shared_flag='${wl}-G'
13506           else
13507             shared_flag='${wl}-bM:SRE'
13508           fi
13509         fi
13510       fi
13511
13512       export_dynamic_flag_spec='${wl}-bexpall'
13513       # It seems that -bexpall does not export symbols beginning with
13514       # underscore (_), so it is better to generate a list of symbols to export.
13515       always_export_symbols=yes
13516       if test "$aix_use_runtimelinking" = yes; then
13517         # Warning - without using the other runtime loading flags (-brtl),
13518         # -berok will link without error, but may produce a broken library.
13519         allow_undefined_flag='-berok'
13520         # Determine the default libpath from the value encoded in an
13521         # empty executable.
13522         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h.  */
13524
13525 int
13526 main ()
13527 {
13528
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_link "$LINENO"; then :
13534
13535 lt_aix_libpath_sed='
13536     /Import File Strings/,/^$/ {
13537         /^0/ {
13538             s/^0  *\(.*\)$/\1/
13539             p
13540         }
13541     }'
13542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543 # Check for a 64-bit object if we didn't find anything.
13544 if test -z "$aix_libpath"; then
13545   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13546 fi
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext \
13549     conftest$ac_exeext conftest.$ac_ext
13550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13551
13552         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13553         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"
13554       else
13555         if test "$host_cpu" = ia64; then
13556           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13557           allow_undefined_flag="-z nodefs"
13558           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"
13559         else
13560          # Determine the default libpath from the value encoded in an
13561          # empty executable.
13562          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h.  */
13564
13565 int
13566 main ()
13567 {
13568
13569   ;
13570   return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_link "$LINENO"; then :
13574
13575 lt_aix_libpath_sed='
13576     /Import File Strings/,/^$/ {
13577         /^0/ {
13578             s/^0  *\(.*\)$/\1/
13579             p
13580         }
13581     }'
13582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583 # Check for a 64-bit object if we didn't find anything.
13584 if test -z "$aix_libpath"; then
13585   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13586 fi
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext \
13589     conftest$ac_exeext conftest.$ac_ext
13590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591
13592          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13593           # Warning - without using the other run time loading flags,
13594           # -berok will link without error, but may produce a broken library.
13595           no_undefined_flag=' ${wl}-bernotok'
13596           allow_undefined_flag=' ${wl}-berok'
13597           if test "$with_gnu_ld" = yes; then
13598             # We only use this code for GNU lds that support --whole-archive.
13599             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13600           else
13601             # Exported symbols can be pulled into shared objects from archives
13602             whole_archive_flag_spec='$convenience'
13603           fi
13604           archive_cmds_need_lc=yes
13605           # This is similar to how AIX traditionally builds its shared libraries.
13606           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'
13607         fi
13608       fi
13609       ;;
13610
13611     amigaos*)
13612       case $host_cpu in
13613       powerpc)
13614             # see comment about AmigaOS4 .so support
13615             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616             archive_expsym_cmds=''
13617         ;;
13618       m68k)
13619             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)'
13620             hardcode_libdir_flag_spec='-L$libdir'
13621             hardcode_minus_L=yes
13622         ;;
13623       esac
13624       ;;
13625
13626     bsdi[45]*)
13627       export_dynamic_flag_spec=-rdynamic
13628       ;;
13629
13630     cygwin* | mingw* | pw32* | cegcc*)
13631       # When not using gcc, we currently assume that we are using
13632       # Microsoft Visual C++.
13633       # hardcode_libdir_flag_spec is actually meaningless, as there is
13634       # no search path for DLLs.
13635       hardcode_libdir_flag_spec=' '
13636       allow_undefined_flag=unsupported
13637       # Tell ltmain to make .lib files, not .a files.
13638       libext=lib
13639       # Tell ltmain to make .dll files, not .so files.
13640       shrext_cmds=".dll"
13641       # FIXME: Setting linknames here is a bad hack.
13642       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13643       # The linker will automatically build a .lib file if we build a DLL.
13644       old_archive_from_new_cmds='true'
13645       # FIXME: Should let the user specify the lib program.
13646       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13647       fix_srcfile_path='`cygpath -w "$srcfile"`'
13648       enable_shared_with_static_runtimes=yes
13649       ;;
13650
13651     darwin* | rhapsody*)
13652
13653
13654   archive_cmds_need_lc=no
13655   hardcode_direct=no
13656   hardcode_automatic=yes
13657   hardcode_shlibpath_var=unsupported
13658   if test "$lt_cv_ld_force_load" = "yes"; then
13659     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\"`'
13660   else
13661     whole_archive_flag_spec=''
13662   fi
13663   link_all_deplibs=yes
13664   allow_undefined_flag="$_lt_dar_allow_undefined"
13665   case $cc_basename in
13666      ifort*) _lt_dar_can_shared=yes ;;
13667      *) _lt_dar_can_shared=$GCC ;;
13668   esac
13669   if test "$_lt_dar_can_shared" = "yes"; then
13670     output_verbose_link_cmd=func_echo_all
13671     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13672     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13673     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}"
13674     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}"
13675
13676   else
13677   ld_shlibs=no
13678   fi
13679
13680       ;;
13681
13682     dgux*)
13683       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684       hardcode_libdir_flag_spec='-L$libdir'
13685       hardcode_shlibpath_var=no
13686       ;;
13687
13688     freebsd1*)
13689       ld_shlibs=no
13690       ;;
13691
13692     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693     # support.  Future versions do this automatically, but an explicit c++rt0.o
13694     # does not break anything, and helps significantly (at the cost of a little
13695     # extra space).
13696     freebsd2.2*)
13697       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698       hardcode_libdir_flag_spec='-R$libdir'
13699       hardcode_direct=yes
13700       hardcode_shlibpath_var=no
13701       ;;
13702
13703     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13704     freebsd2*)
13705       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706       hardcode_direct=yes
13707       hardcode_minus_L=yes
13708       hardcode_shlibpath_var=no
13709       ;;
13710
13711     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712     freebsd* | dragonfly*)
13713       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714       hardcode_libdir_flag_spec='-R$libdir'
13715       hardcode_direct=yes
13716       hardcode_shlibpath_var=no
13717       ;;
13718
13719     hpux9*)
13720       if test "$GCC" = yes; then
13721         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'
13722       else
13723         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'
13724       fi
13725       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13726       hardcode_libdir_separator=:
13727       hardcode_direct=yes
13728
13729       # hardcode_minus_L: Not really in the search PATH,
13730       # but as the default location of the library.
13731       hardcode_minus_L=yes
13732       export_dynamic_flag_spec='${wl}-E'
13733       ;;
13734
13735     hpux10*)
13736       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13737         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13738       else
13739         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13740       fi
13741       if test "$with_gnu_ld" = no; then
13742         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743         hardcode_libdir_flag_spec_ld='+b $libdir'
13744         hardcode_libdir_separator=:
13745         hardcode_direct=yes
13746         hardcode_direct_absolute=yes
13747         export_dynamic_flag_spec='${wl}-E'
13748         # hardcode_minus_L: Not really in the search PATH,
13749         # but as the default location of the library.
13750         hardcode_minus_L=yes
13751       fi
13752       ;;
13753
13754     hpux11*)
13755       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13756         case $host_cpu in
13757         hppa*64*)
13758           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13759           ;;
13760         ia64*)
13761           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13762           ;;
13763         *)
13764           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13765           ;;
13766         esac
13767       else
13768         case $host_cpu in
13769         hppa*64*)
13770           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13771           ;;
13772         ia64*)
13773           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13774           ;;
13775         *)
13776
13777           # Older versions of the 11.00 compiler do not understand -b yet
13778           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13779           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13780 $as_echo_n "checking if $CC understands -b... " >&6; }
13781 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   lt_cv_prog_compiler__b=no
13785    save_LDFLAGS="$LDFLAGS"
13786    LDFLAGS="$LDFLAGS -b"
13787    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13788    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13789      # The linker can only warn and ignore the option if not recognized
13790      # So say no if there are warnings
13791      if test -s conftest.err; then
13792        # Append any errors to the config.log.
13793        cat conftest.err 1>&5
13794        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13795        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796        if diff conftest.exp conftest.er2 >/dev/null; then
13797          lt_cv_prog_compiler__b=yes
13798        fi
13799      else
13800        lt_cv_prog_compiler__b=yes
13801      fi
13802    fi
13803    $RM -r conftest*
13804    LDFLAGS="$save_LDFLAGS"
13805
13806 fi
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13808 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13809
13810 if test x"$lt_cv_prog_compiler__b" = xyes; then
13811     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13812 else
13813     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13814 fi
13815
13816           ;;
13817         esac
13818       fi
13819       if test "$with_gnu_ld" = no; then
13820         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13821         hardcode_libdir_separator=:
13822
13823         case $host_cpu in
13824         hppa*64*|ia64*)
13825           hardcode_direct=no
13826           hardcode_shlibpath_var=no
13827           ;;
13828         *)
13829           hardcode_direct=yes
13830           hardcode_direct_absolute=yes
13831           export_dynamic_flag_spec='${wl}-E'
13832
13833           # hardcode_minus_L: Not really in the search PATH,
13834           # but as the default location of the library.
13835           hardcode_minus_L=yes
13836           ;;
13837         esac
13838       fi
13839       ;;
13840
13841     irix5* | irix6* | nonstopux*)
13842       if test "$GCC" = yes; then
13843         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'
13844         # Try to use the -exported_symbol ld option, if it does not
13845         # work, assume that -exports_file does not work either and
13846         # implicitly export all symbols.
13847         save_LDFLAGS="$LDFLAGS"
13848         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13849         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h.  */
13851 int foo(void) {}
13852 _ACEOF
13853 if ac_fn_c_try_link "$LINENO"; then :
13854   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'
13855
13856 fi
13857 rm -f core conftest.err conftest.$ac_objext \
13858     conftest$ac_exeext conftest.$ac_ext
13859         LDFLAGS="$save_LDFLAGS"
13860       else
13861         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'
13862         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'
13863       fi
13864       archive_cmds_need_lc='no'
13865       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866       hardcode_libdir_separator=:
13867       inherit_rpath=yes
13868       link_all_deplibs=yes
13869       ;;
13870
13871     netbsd*)
13872       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13873         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13874       else
13875         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13876       fi
13877       hardcode_libdir_flag_spec='-R$libdir'
13878       hardcode_direct=yes
13879       hardcode_shlibpath_var=no
13880       ;;
13881
13882     newsos6)
13883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884       hardcode_direct=yes
13885       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13886       hardcode_libdir_separator=:
13887       hardcode_shlibpath_var=no
13888       ;;
13889
13890     *nto* | *qnx*)
13891       ;;
13892
13893     openbsd*)
13894       if test -f /usr/libexec/ld.so; then
13895         hardcode_direct=yes
13896         hardcode_shlibpath_var=no
13897         hardcode_direct_absolute=yes
13898         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13900           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13901           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13902           export_dynamic_flag_spec='${wl}-E'
13903         else
13904           case $host_os in
13905            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13906              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13907              hardcode_libdir_flag_spec='-R$libdir'
13908              ;;
13909            *)
13910              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13911              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13912              ;;
13913           esac
13914         fi
13915       else
13916         ld_shlibs=no
13917       fi
13918       ;;
13919
13920     os2*)
13921       hardcode_libdir_flag_spec='-L$libdir'
13922       hardcode_minus_L=yes
13923       allow_undefined_flag=unsupported
13924       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'
13925       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13926       ;;
13927
13928     osf3*)
13929       if test "$GCC" = yes; then
13930         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13931         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'
13932       else
13933         allow_undefined_flag=' -expect_unresolved \*'
13934         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'
13935       fi
13936       archive_cmds_need_lc='no'
13937       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938       hardcode_libdir_separator=:
13939       ;;
13940
13941     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13942       if test "$GCC" = yes; then
13943         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13944         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'
13945         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13946       else
13947         allow_undefined_flag=' -expect_unresolved \*'
13948         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'
13949         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~
13950         $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'
13951
13952         # Both c and cxx compiler support -rpath directly
13953         hardcode_libdir_flag_spec='-rpath $libdir'
13954       fi
13955       archive_cmds_need_lc='no'
13956       hardcode_libdir_separator=:
13957       ;;
13958
13959     solaris*)
13960       no_undefined_flag=' -z defs'
13961       if test "$GCC" = yes; then
13962         wlarc='${wl}'
13963         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13964         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13966       else
13967         case `$CC -V 2>&1` in
13968         *"Compilers 5.0"*)
13969           wlarc=''
13970           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13972           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13973           ;;
13974         *)
13975           wlarc='${wl}'
13976           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13977           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13978           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13979           ;;
13980         esac
13981       fi
13982       hardcode_libdir_flag_spec='-R$libdir'
13983       hardcode_shlibpath_var=no
13984       case $host_os in
13985       solaris2.[0-5] | solaris2.[0-5].*) ;;
13986       *)
13987         # The compiler driver will combine and reorder linker options,
13988         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13989         # but is careful enough not to reorder.
13990         # Supported since Solaris 2.6 (maybe 2.5.1?)
13991         if test "$GCC" = yes; then
13992           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13993         else
13994           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13995         fi
13996         ;;
13997       esac
13998       link_all_deplibs=yes
13999       ;;
14000
14001     sunos4*)
14002       if test "x$host_vendor" = xsequent; then
14003         # Use $CC to link under sequent, because it throws in some extra .o
14004         # files that make .init and .fini sections work.
14005         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14006       else
14007         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14008       fi
14009       hardcode_libdir_flag_spec='-L$libdir'
14010       hardcode_direct=yes
14011       hardcode_minus_L=yes
14012       hardcode_shlibpath_var=no
14013       ;;
14014
14015     sysv4)
14016       case $host_vendor in
14017         sni)
14018           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019           hardcode_direct=yes # is this really true???
14020         ;;
14021         siemens)
14022           ## LD is ld it makes a PLAMLIB
14023           ## CC just makes a GrossModule.
14024           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14025           reload_cmds='$CC -r -o $output$reload_objs'
14026           hardcode_direct=no
14027         ;;
14028         motorola)
14029           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14031         ;;
14032       esac
14033       runpath_var='LD_RUN_PATH'
14034       hardcode_shlibpath_var=no
14035       ;;
14036
14037     sysv4.3*)
14038       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039       hardcode_shlibpath_var=no
14040       export_dynamic_flag_spec='-Bexport'
14041       ;;
14042
14043     sysv4*MP*)
14044       if test -d /usr/nec; then
14045         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14046         hardcode_shlibpath_var=no
14047         runpath_var=LD_RUN_PATH
14048         hardcode_runpath_var=yes
14049         ld_shlibs=yes
14050       fi
14051       ;;
14052
14053     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14054       no_undefined_flag='${wl}-z,text'
14055       archive_cmds_need_lc=no
14056       hardcode_shlibpath_var=no
14057       runpath_var='LD_RUN_PATH'
14058
14059       if test "$GCC" = yes; then
14060         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14062       else
14063         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14065       fi
14066       ;;
14067
14068     sysv5* | sco3.2v5* | sco5v6*)
14069       # Note: We can NOT use -z defs as we might desire, because we do not
14070       # link with -lc, and that would cause any symbols used from libc to
14071       # always be unresolved, which means just about no library would
14072       # ever link correctly.  If we're not using GNU ld we use -z text
14073       # though, which does catch some bad symbols but isn't as heavy-handed
14074       # as -z defs.
14075       no_undefined_flag='${wl}-z,text'
14076       allow_undefined_flag='${wl}-z,nodefs'
14077       archive_cmds_need_lc=no
14078       hardcode_shlibpath_var=no
14079       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14080       hardcode_libdir_separator=':'
14081       link_all_deplibs=yes
14082       export_dynamic_flag_spec='${wl}-Bexport'
14083       runpath_var='LD_RUN_PATH'
14084
14085       if test "$GCC" = yes; then
14086         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14088       else
14089         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091       fi
14092       ;;
14093
14094     uts4*)
14095       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096       hardcode_libdir_flag_spec='-L$libdir'
14097       hardcode_shlibpath_var=no
14098       ;;
14099
14100     *)
14101       ld_shlibs=no
14102       ;;
14103     esac
14104
14105     if test x$host_vendor = xsni; then
14106       case $host in
14107       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108         export_dynamic_flag_spec='${wl}-Blargedynsym'
14109         ;;
14110       esac
14111     fi
14112   fi
14113
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14115 $as_echo "$ld_shlibs" >&6; }
14116 test "$ld_shlibs" = no && can_build_shared=no
14117
14118 with_gnu_ld=$with_gnu_ld
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134 #
14135 # Do we need to explicitly link libc?
14136 #
14137 case "x$archive_cmds_need_lc" in
14138 x|xyes)
14139   # Assume -lc should be added
14140   archive_cmds_need_lc=yes
14141
14142   if test "$enable_shared" = yes && test "$GCC" = yes; then
14143     case $archive_cmds in
14144     *'~'*)
14145       # FIXME: we may have to deal with multi-command sequences.
14146       ;;
14147     '$CC '*)
14148       # Test whether the compiler implicitly links with -lc since on some
14149       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14150       # to ld, don't add -lc before -lgcc.
14151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14153 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   $RM conftest*
14157         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14158
14159         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14160   (eval $ac_compile) 2>&5
14161   ac_status=$?
14162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163   test $ac_status = 0; } 2>conftest.err; then
14164           soname=conftest
14165           lib=conftest
14166           libobjs=conftest.$ac_objext
14167           deplibs=
14168           wl=$lt_prog_compiler_wl
14169           pic_flag=$lt_prog_compiler_pic
14170           compiler_flags=-v
14171           linker_flags=-v
14172           verstring=
14173           output_objdir=.
14174           libname=conftest
14175           lt_save_allow_undefined_flag=$allow_undefined_flag
14176           allow_undefined_flag=
14177           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14178   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14179   ac_status=$?
14180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181   test $ac_status = 0; }
14182           then
14183             lt_cv_archive_cmds_need_lc=no
14184           else
14185             lt_cv_archive_cmds_need_lc=yes
14186           fi
14187           allow_undefined_flag=$lt_save_allow_undefined_flag
14188         else
14189           cat conftest.err 1>&5
14190         fi
14191         $RM conftest*
14192
14193 fi
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14195 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14196       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14197       ;;
14198     esac
14199   fi
14200   ;;
14201 esac
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
14356
14357
14358
14359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14360 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14361
14362 if test "$GCC" = yes; then
14363   case $host_os in
14364     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14365     *) lt_awk_arg="/^libraries:/" ;;
14366   esac
14367   case $host_os in
14368     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14369     *) lt_sed_strip_eq="s,=/,/,g" ;;
14370   esac
14371   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14372   case $lt_search_path_spec in
14373   *\;*)
14374     # if the path contains ";" then we assume it to be the separator
14375     # otherwise default to the standard path separator (i.e. ":") - it is
14376     # assumed that no part of a normal pathname contains ";" but that should
14377     # okay in the real world where ";" in dirpaths is itself problematic.
14378     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14379     ;;
14380   *)
14381     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14382     ;;
14383   esac
14384   # Ok, now we have the path, separated by spaces, we can step through it
14385   # and add multilib dir if necessary.
14386   lt_tmp_lt_search_path_spec=
14387   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14388   for lt_sys_path in $lt_search_path_spec; do
14389     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14390       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14391     else
14392       test -d "$lt_sys_path" && \
14393         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14394     fi
14395   done
14396   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14397 BEGIN {RS=" "; FS="/|\n";} {
14398   lt_foo="";
14399   lt_count=0;
14400   for (lt_i = NF; lt_i > 0; lt_i--) {
14401     if ($lt_i != "" && $lt_i != ".") {
14402       if ($lt_i == "..") {
14403         lt_count++;
14404       } else {
14405         if (lt_count == 0) {
14406           lt_foo="/" $lt_i lt_foo;
14407         } else {
14408           lt_count--;
14409         }
14410       }
14411     }
14412   }
14413   if (lt_foo != "") { lt_freq[lt_foo]++; }
14414   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14415 }'`
14416   # AWK program above erroneously prepends '/' to C:/dos/paths
14417   # for these hosts.
14418   case $host_os in
14419     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14420       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14421   esac
14422   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14423 else
14424   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14425 fi
14426 library_names_spec=
14427 libname_spec='lib$name'
14428 soname_spec=
14429 shrext_cmds=".so"
14430 postinstall_cmds=
14431 postuninstall_cmds=
14432 finish_cmds=
14433 finish_eval=
14434 shlibpath_var=
14435 shlibpath_overrides_runpath=unknown
14436 version_type=none
14437 dynamic_linker="$host_os ld.so"
14438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14439 need_lib_prefix=unknown
14440 hardcode_into_libs=no
14441
14442 # when you set need_version to no, make sure it does not cause -set_version
14443 # flags to be left without arguments
14444 need_version=unknown
14445
14446 case $host_os in
14447 aix3*)
14448   version_type=linux
14449   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14450   shlibpath_var=LIBPATH
14451
14452   # AIX 3 has no versioning support, so we append a major version to the name.
14453   soname_spec='${libname}${release}${shared_ext}$major'
14454   ;;
14455
14456 aix[4-9]*)
14457   version_type=linux
14458   need_lib_prefix=no
14459   need_version=no
14460   hardcode_into_libs=yes
14461   if test "$host_cpu" = ia64; then
14462     # AIX 5 supports IA64
14463     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14464     shlibpath_var=LD_LIBRARY_PATH
14465   else
14466     # With GCC up to 2.95.x, collect2 would create an import file
14467     # for dependence libraries.  The import file would start with
14468     # the line `#! .'.  This would cause the generated library to
14469     # depend on `.', always an invalid library.  This was fixed in
14470     # development snapshots of GCC prior to 3.0.
14471     case $host_os in
14472       aix4 | aix4.[01] | aix4.[01].*)
14473       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14474            echo ' yes '
14475            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14476         :
14477       else
14478         can_build_shared=no
14479       fi
14480       ;;
14481     esac
14482     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14483     # soname into executable. Probably we can add versioning support to
14484     # collect2, so additional links can be useful in future.
14485     if test "$aix_use_runtimelinking" = yes; then
14486       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14487       # instead of lib<name>.a to let people know that these are not
14488       # typical AIX shared libraries.
14489       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490     else
14491       # We preserve .a as extension for shared libraries through AIX4.2
14492       # and later when we are not doing run time linking.
14493       library_names_spec='${libname}${release}.a $libname.a'
14494       soname_spec='${libname}${release}${shared_ext}$major'
14495     fi
14496     shlibpath_var=LIBPATH
14497   fi
14498   ;;
14499
14500 amigaos*)
14501   case $host_cpu in
14502   powerpc)
14503     # Since July 2007 AmigaOS4 officially supports .so libraries.
14504     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506     ;;
14507   m68k)
14508     library_names_spec='$libname.ixlibrary $libname.a'
14509     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14510     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'
14511     ;;
14512   esac
14513   ;;
14514
14515 beos*)
14516   library_names_spec='${libname}${shared_ext}'
14517   dynamic_linker="$host_os ld.so"
14518   shlibpath_var=LIBRARY_PATH
14519   ;;
14520
14521 bsdi[45]*)
14522   version_type=linux
14523   need_version=no
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   soname_spec='${libname}${release}${shared_ext}$major'
14526   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14527   shlibpath_var=LD_LIBRARY_PATH
14528   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14529   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14530   # the default ld.so.conf also contains /usr/contrib/lib and
14531   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14532   # libtool to hard-code these into programs
14533   ;;
14534
14535 cygwin* | mingw* | pw32* | cegcc*)
14536   version_type=windows
14537   shrext_cmds=".dll"
14538   need_version=no
14539   need_lib_prefix=no
14540
14541   case $GCC,$host_os in
14542   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14543     library_names_spec='$libname.dll.a'
14544     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14545     postinstall_cmds='base_file=`basename \${file}`~
14546       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14547       dldir=$destdir/`dirname \$dlpath`~
14548       test -d \$dldir || mkdir -p \$dldir~
14549       $install_prog $dir/$dlname \$dldir/$dlname~
14550       chmod a+x \$dldir/$dlname~
14551       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14552         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14553       fi'
14554     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14555       dlpath=$dir/\$dldll~
14556        $RM \$dlpath'
14557     shlibpath_overrides_runpath=yes
14558
14559     case $host_os in
14560     cygwin*)
14561       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14562       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563
14564       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14565       ;;
14566     mingw* | cegcc*)
14567       # MinGW DLLs use traditional 'lib' prefix
14568       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14569       ;;
14570     pw32*)
14571       # pw32 DLLs use 'pw' prefix rather than 'lib'
14572       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573       ;;
14574     esac
14575     ;;
14576
14577   *)
14578     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14579     ;;
14580   esac
14581   dynamic_linker='Win32 ld.exe'
14582   # FIXME: first we should search . and the directory the executable is in
14583   shlibpath_var=PATH
14584   ;;
14585
14586 darwin* | rhapsody*)
14587   dynamic_linker="$host_os dyld"
14588   version_type=darwin
14589   need_lib_prefix=no
14590   need_version=no
14591   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14592   soname_spec='${libname}${release}${major}$shared_ext'
14593   shlibpath_overrides_runpath=yes
14594   shlibpath_var=DYLD_LIBRARY_PATH
14595   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14596
14597   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14598   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14599   ;;
14600
14601 dgux*)
14602   version_type=linux
14603   need_lib_prefix=no
14604   need_version=no
14605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14606   soname_spec='${libname}${release}${shared_ext}$major'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   ;;
14609
14610 freebsd1*)
14611   dynamic_linker=no
14612   ;;
14613
14614 freebsd* | dragonfly*)
14615   # DragonFly does not have aout.  When/if they implement a new
14616   # versioning mechanism, adjust this.
14617   if test -x /usr/bin/objformat; then
14618     objformat=`/usr/bin/objformat`
14619   else
14620     case $host_os in
14621     freebsd[123]*) objformat=aout ;;
14622     *) objformat=elf ;;
14623     esac
14624   fi
14625   version_type=freebsd-$objformat
14626   case $version_type in
14627     freebsd-elf*)
14628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629       need_version=no
14630       need_lib_prefix=no
14631       ;;
14632     freebsd-*)
14633       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14634       need_version=yes
14635       ;;
14636   esac
14637   shlibpath_var=LD_LIBRARY_PATH
14638   case $host_os in
14639   freebsd2*)
14640     shlibpath_overrides_runpath=yes
14641     ;;
14642   freebsd3.[01]* | freebsdelf3.[01]*)
14643     shlibpath_overrides_runpath=yes
14644     hardcode_into_libs=yes
14645     ;;
14646   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14647   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14648     shlibpath_overrides_runpath=no
14649     hardcode_into_libs=yes
14650     ;;
14651   *) # from 4.6 on, and DragonFly
14652     shlibpath_overrides_runpath=yes
14653     hardcode_into_libs=yes
14654     ;;
14655   esac
14656   ;;
14657
14658 gnu*)
14659   version_type=linux
14660   need_lib_prefix=no
14661   need_version=no
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663   soname_spec='${libname}${release}${shared_ext}$major'
14664   shlibpath_var=LD_LIBRARY_PATH
14665   hardcode_into_libs=yes
14666   ;;
14667
14668 haiku*)
14669   version_type=linux
14670   need_lib_prefix=no
14671   need_version=no
14672   dynamic_linker="$host_os runtime_loader"
14673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674   soname_spec='${libname}${release}${shared_ext}$major'
14675   shlibpath_var=LIBRARY_PATH
14676   shlibpath_overrides_runpath=yes
14677   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14678   hardcode_into_libs=yes
14679   ;;
14680
14681 hpux9* | hpux10* | hpux11*)
14682   # Give a soname corresponding to the major version so that dld.sl refuses to
14683   # link against other versions.
14684   version_type=sunos
14685   need_lib_prefix=no
14686   need_version=no
14687   case $host_cpu in
14688   ia64*)
14689     shrext_cmds='.so'
14690     hardcode_into_libs=yes
14691     dynamic_linker="$host_os dld.so"
14692     shlibpath_var=LD_LIBRARY_PATH
14693     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695     soname_spec='${libname}${release}${shared_ext}$major'
14696     if test "X$HPUX_IA64_MODE" = X32; then
14697       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14698     else
14699       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14700     fi
14701     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702     ;;
14703   hppa*64*)
14704     shrext_cmds='.sl'
14705     hardcode_into_libs=yes
14706     dynamic_linker="$host_os dld.sl"
14707     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     soname_spec='${libname}${release}${shared_ext}$major'
14711     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14712     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14713     ;;
14714   *)
14715     shrext_cmds='.sl'
14716     dynamic_linker="$host_os dld.sl"
14717     shlibpath_var=SHLIB_PATH
14718     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720     soname_spec='${libname}${release}${shared_ext}$major'
14721     ;;
14722   esac
14723   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14724   postinstall_cmds='chmod 555 $lib'
14725   # or fails outright, so override atomically:
14726   install_override_mode=555
14727   ;;
14728
14729 interix[3-9]*)
14730   version_type=linux
14731   need_lib_prefix=no
14732   need_version=no
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   shlibpath_overrides_runpath=no
14738   hardcode_into_libs=yes
14739   ;;
14740
14741 irix5* | irix6* | nonstopux*)
14742   case $host_os in
14743     nonstopux*) version_type=nonstopux ;;
14744     *)
14745         if test "$lt_cv_prog_gnu_ld" = yes; then
14746                 version_type=linux
14747         else
14748                 version_type=irix
14749         fi ;;
14750   esac
14751   need_lib_prefix=no
14752   need_version=no
14753   soname_spec='${libname}${release}${shared_ext}$major'
14754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14755   case $host_os in
14756   irix5* | nonstopux*)
14757     libsuff= shlibsuff=
14758     ;;
14759   *)
14760     case $LD in # libtool.m4 will add one of these switches to LD
14761     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14762       libsuff= shlibsuff= libmagic=32-bit;;
14763     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14764       libsuff=32 shlibsuff=N32 libmagic=N32;;
14765     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14766       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14767     *) libsuff= shlibsuff= libmagic=never-match;;
14768     esac
14769     ;;
14770   esac
14771   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14772   shlibpath_overrides_runpath=no
14773   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14774   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14775   hardcode_into_libs=yes
14776   ;;
14777
14778 # No shared lib support for Linux oldld, aout, or coff.
14779 linux*oldld* | linux*aout* | linux*coff*)
14780   dynamic_linker=no
14781   ;;
14782
14783 # This must be Linux ELF.
14784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14785   version_type=linux
14786   need_lib_prefix=no
14787   need_version=no
14788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789   soname_spec='${libname}${release}${shared_ext}$major'
14790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14791   shlibpath_var=LD_LIBRARY_PATH
14792   shlibpath_overrides_runpath=no
14793
14794   # Some binutils ld are patched to set DT_RUNPATH
14795   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   lt_cv_shlibpath_overrides_runpath=no
14799     save_LDFLAGS=$LDFLAGS
14800     save_libdir=$libdir
14801     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14802          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h.  */
14805
14806 int
14807 main ()
14808 {
14809
14810   ;
14811   return 0;
14812 }
14813 _ACEOF
14814 if ac_fn_c_try_link "$LINENO"; then :
14815   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14816   lt_cv_shlibpath_overrides_runpath=yes
14817 fi
14818 fi
14819 rm -f core conftest.err conftest.$ac_objext \
14820     conftest$ac_exeext conftest.$ac_ext
14821     LDFLAGS=$save_LDFLAGS
14822     libdir=$save_libdir
14823
14824 fi
14825
14826   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14827
14828   # This implies no fast_install, which is unacceptable.
14829   # Some rework will be needed to allow for fast_install
14830   # before this can be enabled.
14831   hardcode_into_libs=yes
14832
14833   # Add ABI-specific directories to the system library path.
14834   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14835
14836   # Append ld.so.conf contents to the search path
14837   if test -f /etc/ld.so.conf; then
14838     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' ' '`
14839     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14840
14841   fi
14842
14843   # We used to test for /lib/ld.so.1 and disable shared libraries on
14844   # powerpc, because MkLinux only supported shared libraries with the
14845   # GNU dynamic linker.  Since this was broken with cross compilers,
14846   # most powerpc-linux boxes support dynamic linking these days and
14847   # people can always --disable-shared, the test was removed, and we
14848   # assume the GNU/Linux dynamic linker is in use.
14849   dynamic_linker='GNU/Linux ld.so'
14850   ;;
14851
14852 netbsd*)
14853   version_type=sunos
14854   need_lib_prefix=no
14855   need_version=no
14856   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859     dynamic_linker='NetBSD (a.out) ld.so'
14860   else
14861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14862     soname_spec='${libname}${release}${shared_ext}$major'
14863     dynamic_linker='NetBSD ld.elf_so'
14864   fi
14865   shlibpath_var=LD_LIBRARY_PATH
14866   shlibpath_overrides_runpath=yes
14867   hardcode_into_libs=yes
14868   ;;
14869
14870 newsos6)
14871   version_type=linux
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873   shlibpath_var=LD_LIBRARY_PATH
14874   shlibpath_overrides_runpath=yes
14875   ;;
14876
14877 *nto* | *qnx*)
14878   version_type=qnx
14879   need_lib_prefix=no
14880   need_version=no
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882   soname_spec='${libname}${release}${shared_ext}$major'
14883   shlibpath_var=LD_LIBRARY_PATH
14884   shlibpath_overrides_runpath=no
14885   hardcode_into_libs=yes
14886   dynamic_linker='ldqnx.so'
14887   ;;
14888
14889 openbsd*)
14890   version_type=sunos
14891   sys_lib_dlsearch_path_spec="/usr/lib"
14892   need_lib_prefix=no
14893   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14894   case $host_os in
14895     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14896     *)                          need_version=no  ;;
14897   esac
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14902     case $host_os in
14903       openbsd2.[89] | openbsd2.[89].*)
14904         shlibpath_overrides_runpath=no
14905         ;;
14906       *)
14907         shlibpath_overrides_runpath=yes
14908         ;;
14909       esac
14910   else
14911     shlibpath_overrides_runpath=yes
14912   fi
14913   ;;
14914
14915 os2*)
14916   libname_spec='$name'
14917   shrext_cmds=".dll"
14918   need_lib_prefix=no
14919   library_names_spec='$libname${shared_ext} $libname.a'
14920   dynamic_linker='OS/2 ld.exe'
14921   shlibpath_var=LIBPATH
14922   ;;
14923
14924 osf3* | osf4* | osf5*)
14925   version_type=osf
14926   need_lib_prefix=no
14927   need_version=no
14928   soname_spec='${libname}${release}${shared_ext}$major'
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930   shlibpath_var=LD_LIBRARY_PATH
14931   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14932   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14933   ;;
14934
14935 rdos*)
14936   dynamic_linker=no
14937   ;;
14938
14939 solaris*)
14940   version_type=linux
14941   need_lib_prefix=no
14942   need_version=no
14943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944   soname_spec='${libname}${release}${shared_ext}$major'
14945   shlibpath_var=LD_LIBRARY_PATH
14946   shlibpath_overrides_runpath=yes
14947   hardcode_into_libs=yes
14948   # ldd complains unless libraries are executable
14949   postinstall_cmds='chmod +x $lib'
14950   ;;
14951
14952 sunos4*)
14953   version_type=sunos
14954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14956   shlibpath_var=LD_LIBRARY_PATH
14957   shlibpath_overrides_runpath=yes
14958   if test "$with_gnu_ld" = yes; then
14959     need_lib_prefix=no
14960   fi
14961   need_version=yes
14962   ;;
14963
14964 sysv4 | sysv4.3*)
14965   version_type=linux
14966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967   soname_spec='${libname}${release}${shared_ext}$major'
14968   shlibpath_var=LD_LIBRARY_PATH
14969   case $host_vendor in
14970     sni)
14971       shlibpath_overrides_runpath=no
14972       need_lib_prefix=no
14973       runpath_var=LD_RUN_PATH
14974       ;;
14975     siemens)
14976       need_lib_prefix=no
14977       ;;
14978     motorola)
14979       need_lib_prefix=no
14980       need_version=no
14981       shlibpath_overrides_runpath=no
14982       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14983       ;;
14984   esac
14985   ;;
14986
14987 sysv4*MP*)
14988   if test -d /usr/nec ;then
14989     version_type=linux
14990     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14991     soname_spec='$libname${shared_ext}.$major'
14992     shlibpath_var=LD_LIBRARY_PATH
14993   fi
14994   ;;
14995
14996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14997   version_type=freebsd-elf
14998   need_lib_prefix=no
14999   need_version=no
15000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15001   soname_spec='${libname}${release}${shared_ext}$major'
15002   shlibpath_var=LD_LIBRARY_PATH
15003   shlibpath_overrides_runpath=yes
15004   hardcode_into_libs=yes
15005   if test "$with_gnu_ld" = yes; then
15006     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15007   else
15008     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15009     case $host_os in
15010       sco3.2v5*)
15011         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15012         ;;
15013     esac
15014   fi
15015   sys_lib_dlsearch_path_spec='/usr/lib'
15016   ;;
15017
15018 tpf*)
15019   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15020   version_type=linux
15021   need_lib_prefix=no
15022   need_version=no
15023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024   shlibpath_var=LD_LIBRARY_PATH
15025   shlibpath_overrides_runpath=no
15026   hardcode_into_libs=yes
15027   ;;
15028
15029 uts4*)
15030   version_type=linux
15031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032   soname_spec='${libname}${release}${shared_ext}$major'
15033   shlibpath_var=LD_LIBRARY_PATH
15034   ;;
15035
15036 *)
15037   dynamic_linker=no
15038   ;;
15039 esac
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15041 $as_echo "$dynamic_linker" >&6; }
15042 test "$dynamic_linker" = no && can_build_shared=no
15043
15044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15045 if test "$GCC" = yes; then
15046   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15047 fi
15048
15049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15050   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15051 fi
15052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15053   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15054 fi
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
15144
15145
15146
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15148 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15149 hardcode_action=
15150 if test -n "$hardcode_libdir_flag_spec" ||
15151    test -n "$runpath_var" ||
15152    test "X$hardcode_automatic" = "Xyes" ; then
15153
15154   # We can hardcode non-existent directories.
15155   if test "$hardcode_direct" != no &&
15156      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15157      # have to relink, otherwise we might link with an installed library
15158      # when we should be linking with a yet-to-be-installed one
15159      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15160      test "$hardcode_minus_L" != no; then
15161     # Linking always hardcodes the temporary library directory.
15162     hardcode_action=relink
15163   else
15164     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15165     hardcode_action=immediate
15166   fi
15167 else
15168   # We cannot hardcode anything, or else we can only hardcode existing
15169   # directories.
15170   hardcode_action=unsupported
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15173 $as_echo "$hardcode_action" >&6; }
15174
15175 if test "$hardcode_action" = relink ||
15176    test "$inherit_rpath" = yes; then
15177   # Fast installation is not supported
15178   enable_fast_install=no
15179 elif test "$shlibpath_overrides_runpath" = yes ||
15180      test "$enable_shared" = no; then
15181   # Fast installation is not necessary
15182   enable_fast_install=needless
15183 fi
15184
15185
15186
15187
15188
15189
15190   if test "x$enable_dlopen" != xyes; then
15191   enable_dlopen=unknown
15192   enable_dlopen_self=unknown
15193   enable_dlopen_self_static=unknown
15194 else
15195   lt_cv_dlopen=no
15196   lt_cv_dlopen_libs=
15197
15198   case $host_os in
15199   beos*)
15200     lt_cv_dlopen="load_add_on"
15201     lt_cv_dlopen_libs=
15202     lt_cv_dlopen_self=yes
15203     ;;
15204
15205   mingw* | pw32* | cegcc*)
15206     lt_cv_dlopen="LoadLibrary"
15207     lt_cv_dlopen_libs=
15208     ;;
15209
15210   cygwin*)
15211     lt_cv_dlopen="dlopen"
15212     lt_cv_dlopen_libs=
15213     ;;
15214
15215   darwin*)
15216   # if libdl is installed we need to link against it
15217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15220   $as_echo_n "(cached) " >&6
15221 else
15222   ac_check_lib_save_LIBS=$LIBS
15223 LIBS="-ldl  $LIBS"
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h.  */
15226
15227 /* Override any GCC internal prototype to avoid an error.
15228    Use char because int might match the return type of a GCC
15229    builtin and then its argument prototype would still apply.  */
15230 #ifdef __cplusplus
15231 extern "C"
15232 #endif
15233 char dlopen ();
15234 int
15235 main ()
15236 {
15237 return dlopen ();
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243   ac_cv_lib_dl_dlopen=yes
15244 else
15245   ac_cv_lib_dl_dlopen=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext \
15248     conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15253 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15255 else
15256
15257     lt_cv_dlopen="dyld"
15258     lt_cv_dlopen_libs=
15259     lt_cv_dlopen_self=yes
15260
15261 fi
15262
15263     ;;
15264
15265   *)
15266     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15267 if test "x$ac_cv_func_shl_load" = x""yes; then :
15268   lt_cv_dlopen="shl_load"
15269 else
15270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15272 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15273   $as_echo_n "(cached) " >&6
15274 else
15275   ac_check_lib_save_LIBS=$LIBS
15276 LIBS="-ldld  $LIBS"
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h.  */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char shl_load ();
15287 int
15288 main ()
15289 {
15290 return shl_load ();
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15296   ac_cv_lib_dld_shl_load=yes
15297 else
15298   ac_cv_lib_dld_shl_load=no
15299 fi
15300 rm -f core conftest.err conftest.$ac_objext \
15301     conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15306 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15307   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15308 else
15309   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15310 if test "x$ac_cv_func_dlopen" = x""yes; then :
15311   lt_cv_dlopen="dlopen"
15312 else
15313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15316   $as_echo_n "(cached) " >&6
15317 else
15318   ac_check_lib_save_LIBS=$LIBS
15319 LIBS="-ldl  $LIBS"
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h.  */
15322
15323 /* Override any GCC internal prototype to avoid an error.
15324    Use char because int might match the return type of a GCC
15325    builtin and then its argument prototype would still apply.  */
15326 #ifdef __cplusplus
15327 extern "C"
15328 #endif
15329 char dlopen ();
15330 int
15331 main ()
15332 {
15333 return dlopen ();
15334   ;
15335   return 0;
15336 }
15337 _ACEOF
15338 if ac_fn_c_try_link "$LINENO"; then :
15339   ac_cv_lib_dl_dlopen=yes
15340 else
15341   ac_cv_lib_dl_dlopen=no
15342 fi
15343 rm -f core conftest.err conftest.$ac_objext \
15344     conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15346 fi
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15349 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15351 else
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15355   $as_echo_n "(cached) " >&6
15356 else
15357   ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-lsvld  $LIBS"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h.  */
15361
15362 /* Override any GCC internal prototype to avoid an error.
15363    Use char because int might match the return type of a GCC
15364    builtin and then its argument prototype would still apply.  */
15365 #ifdef __cplusplus
15366 extern "C"
15367 #endif
15368 char dlopen ();
15369 int
15370 main ()
15371 {
15372 return dlopen ();
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378   ac_cv_lib_svld_dlopen=yes
15379 else
15380   ac_cv_lib_svld_dlopen=no
15381 fi
15382 rm -f core conftest.err conftest.$ac_objext \
15383     conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15385 fi
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15388 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15389   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15390 else
15391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15393 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15394   $as_echo_n "(cached) " >&6
15395 else
15396   ac_check_lib_save_LIBS=$LIBS
15397 LIBS="-ldld  $LIBS"
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h.  */
15400
15401 /* Override any GCC internal prototype to avoid an error.
15402    Use char because int might match the return type of a GCC
15403    builtin and then its argument prototype would still apply.  */
15404 #ifdef __cplusplus
15405 extern "C"
15406 #endif
15407 char dld_link ();
15408 int
15409 main ()
15410 {
15411 return dld_link ();
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 if ac_fn_c_try_link "$LINENO"; then :
15417   ac_cv_lib_dld_dld_link=yes
15418 else
15419   ac_cv_lib_dld_dld_link=no
15420 fi
15421 rm -f core conftest.err conftest.$ac_objext \
15422     conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15424 fi
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15427 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15428   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15429 fi
15430
15431
15432 fi
15433
15434
15435 fi
15436
15437
15438 fi
15439
15440
15441 fi
15442
15443
15444 fi
15445
15446     ;;
15447   esac
15448
15449   if test "x$lt_cv_dlopen" != xno; then
15450     enable_dlopen=yes
15451   else
15452     enable_dlopen=no
15453   fi
15454
15455   case $lt_cv_dlopen in
15456   dlopen)
15457     save_CPPFLAGS="$CPPFLAGS"
15458     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15459
15460     save_LDFLAGS="$LDFLAGS"
15461     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15462
15463     save_LIBS="$LIBS"
15464     LIBS="$lt_cv_dlopen_libs $LIBS"
15465
15466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15468 if test "${lt_cv_dlopen_self+set}" = set; then :
15469   $as_echo_n "(cached) " >&6
15470 else
15471           if test "$cross_compiling" = yes; then :
15472   lt_cv_dlopen_self=cross
15473 else
15474   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15475   lt_status=$lt_dlunknown
15476   cat > conftest.$ac_ext <<_LT_EOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15479
15480 #if HAVE_DLFCN_H
15481 #include <dlfcn.h>
15482 #endif
15483
15484 #include <stdio.h>
15485
15486 #ifdef RTLD_GLOBAL
15487 #  define LT_DLGLOBAL           RTLD_GLOBAL
15488 #else
15489 #  ifdef DL_GLOBAL
15490 #    define LT_DLGLOBAL         DL_GLOBAL
15491 #  else
15492 #    define LT_DLGLOBAL         0
15493 #  endif
15494 #endif
15495
15496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15497    find out it does not work in some platform. */
15498 #ifndef LT_DLLAZY_OR_NOW
15499 #  ifdef RTLD_LAZY
15500 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15501 #  else
15502 #    ifdef DL_LAZY
15503 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15504 #    else
15505 #      ifdef RTLD_NOW
15506 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15507 #      else
15508 #        ifdef DL_NOW
15509 #          define LT_DLLAZY_OR_NOW      DL_NOW
15510 #        else
15511 #          define LT_DLLAZY_OR_NOW      0
15512 #        endif
15513 #      endif
15514 #    endif
15515 #  endif
15516 #endif
15517
15518 /* When -fvisbility=hidden is used, assume the code has been annotated
15519    correspondingly for the symbols needed.  */
15520 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15521 void fnord () __attribute__((visibility("default")));
15522 #endif
15523
15524 void fnord () { int i=42; }
15525 int main ()
15526 {
15527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15528   int status = $lt_dlunknown;
15529
15530   if (self)
15531     {
15532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15533       else
15534         {
15535           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15536           else puts (dlerror ());
15537         }
15538       /* dlclose (self); */
15539     }
15540   else
15541     puts (dlerror ());
15542
15543   return status;
15544 }
15545 _LT_EOF
15546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15547   (eval $ac_link) 2>&5
15548   ac_status=$?
15549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15551     (./conftest; exit; ) >&5 2>/dev/null
15552     lt_status=$?
15553     case x$lt_status in
15554       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15555       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15556       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15557     esac
15558   else :
15559     # compilation failed
15560     lt_cv_dlopen_self=no
15561   fi
15562 fi
15563 rm -fr conftest*
15564
15565
15566 fi
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15568 $as_echo "$lt_cv_dlopen_self" >&6; }
15569
15570     if test "x$lt_cv_dlopen_self" = xyes; then
15571       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15573 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15574 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15575   $as_echo_n "(cached) " >&6
15576 else
15577           if test "$cross_compiling" = yes; then :
15578   lt_cv_dlopen_self_static=cross
15579 else
15580   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15581   lt_status=$lt_dlunknown
15582   cat > conftest.$ac_ext <<_LT_EOF
15583 #line $LINENO "configure"
15584 #include "confdefs.h"
15585
15586 #if HAVE_DLFCN_H
15587 #include <dlfcn.h>
15588 #endif
15589
15590 #include <stdio.h>
15591
15592 #ifdef RTLD_GLOBAL
15593 #  define LT_DLGLOBAL           RTLD_GLOBAL
15594 #else
15595 #  ifdef DL_GLOBAL
15596 #    define LT_DLGLOBAL         DL_GLOBAL
15597 #  else
15598 #    define LT_DLGLOBAL         0
15599 #  endif
15600 #endif
15601
15602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15603    find out it does not work in some platform. */
15604 #ifndef LT_DLLAZY_OR_NOW
15605 #  ifdef RTLD_LAZY
15606 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15607 #  else
15608 #    ifdef DL_LAZY
15609 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15610 #    else
15611 #      ifdef RTLD_NOW
15612 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15613 #      else
15614 #        ifdef DL_NOW
15615 #          define LT_DLLAZY_OR_NOW      DL_NOW
15616 #        else
15617 #          define LT_DLLAZY_OR_NOW      0
15618 #        endif
15619 #      endif
15620 #    endif
15621 #  endif
15622 #endif
15623
15624 /* When -fvisbility=hidden is used, assume the code has been annotated
15625    correspondingly for the symbols needed.  */
15626 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15627 void fnord () __attribute__((visibility("default")));
15628 #endif
15629
15630 void fnord () { int i=42; }
15631 int main ()
15632 {
15633   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15634   int status = $lt_dlunknown;
15635
15636   if (self)
15637     {
15638       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15639       else
15640         {
15641           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15642           else puts (dlerror ());
15643         }
15644       /* dlclose (self); */
15645     }
15646   else
15647     puts (dlerror ());
15648
15649   return status;
15650 }
15651 _LT_EOF
15652   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15653   (eval $ac_link) 2>&5
15654   ac_status=$?
15655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15657     (./conftest; exit; ) >&5 2>/dev/null
15658     lt_status=$?
15659     case x$lt_status in
15660       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15661       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15662       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15663     esac
15664   else :
15665     # compilation failed
15666     lt_cv_dlopen_self_static=no
15667   fi
15668 fi
15669 rm -fr conftest*
15670
15671
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15674 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15675     fi
15676
15677     CPPFLAGS="$save_CPPFLAGS"
15678     LDFLAGS="$save_LDFLAGS"
15679     LIBS="$save_LIBS"
15680     ;;
15681   esac
15682
15683   case $lt_cv_dlopen_self in
15684   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15685   *) enable_dlopen_self=unknown ;;
15686   esac
15687
15688   case $lt_cv_dlopen_self_static in
15689   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15690   *) enable_dlopen_self_static=unknown ;;
15691   esac
15692 fi
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710 striplib=
15711 old_striplib=
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15714 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15715   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15716   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719 else
15720 # FIXME - insert some real tests, host_os isn't really good enough
15721   case $host_os in
15722   darwin*)
15723     if test -n "$STRIP" ; then
15724       striplib="$STRIP -x"
15725       old_striplib="$STRIP -S"
15726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15727 $as_echo "yes" >&6; }
15728     else
15729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15731     fi
15732     ;;
15733   *)
15734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15736     ;;
15737   esac
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751   # Report which library types will actually be built
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15753 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15755 $as_echo "$can_build_shared" >&6; }
15756
15757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15758 $as_echo_n "checking whether to build shared libraries... " >&6; }
15759   test "$can_build_shared" = "no" && enable_shared=no
15760
15761   # On AIX, shared libraries and static libraries use the same namespace, and
15762   # are all built from PIC.
15763   case $host_os in
15764   aix3*)
15765     test "$enable_shared" = yes && enable_static=no
15766     if test -n "$RANLIB"; then
15767       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15768       postinstall_cmds='$RANLIB $lib'
15769     fi
15770     ;;
15771
15772   aix[4-9]*)
15773     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15774       test "$enable_shared" = yes && enable_static=no
15775     fi
15776     ;;
15777   esac
15778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15779 $as_echo "$enable_shared" >&6; }
15780
15781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15782 $as_echo_n "checking whether to build static libraries... " >&6; }
15783   # Make sure either enable_shared or enable_static is yes.
15784   test "$enable_shared" = yes || enable_static=yes
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15786 $as_echo "$enable_static" >&6; }
15787
15788
15789
15790
15791 fi
15792 ac_ext=c
15793 ac_cpp='$CPP $CPPFLAGS'
15794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15797
15798 CC="$lt_save_CC"
15799
15800       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15801     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15802     (test "X$CXX" != "Xg++"))) ; then
15803   ac_ext=cpp
15804 ac_cpp='$CXXCPP $CPPFLAGS'
15805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15809 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15810 if test -z "$CXXCPP"; then
15811   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15812   $as_echo_n "(cached) " >&6
15813 else
15814       # Double quotes because CXXCPP needs to be expanded
15815     for CXXCPP in "$CXX -E" "/lib/cpp"
15816     do
15817       ac_preproc_ok=false
15818 for ac_cxx_preproc_warn_flag in '' yes
15819 do
15820   # Use a header file that comes with gcc, so configuring glibc
15821   # with a fresh cross-compiler works.
15822   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823   # <limits.h> exists even on freestanding compilers.
15824   # On the NeXT, cc -E runs the code through the compiler's parser,
15825   # not just through cpp. "Syntax error" is here to catch this case.
15826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h.  */
15828 #ifdef __STDC__
15829 # include <limits.h>
15830 #else
15831 # include <assert.h>
15832 #endif
15833                      Syntax error
15834 _ACEOF
15835 if ac_fn_cxx_try_cpp "$LINENO"; then :
15836
15837 else
15838   # Broken: fails on valid input.
15839 continue
15840 fi
15841 rm -f conftest.err conftest.$ac_ext
15842
15843   # OK, works on sane cases.  Now check whether nonexistent headers
15844   # can be detected and how.
15845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h.  */
15847 #include <ac_nonexistent.h>
15848 _ACEOF
15849 if ac_fn_cxx_try_cpp "$LINENO"; then :
15850   # Broken: success on invalid input.
15851 continue
15852 else
15853   # Passes both tests.
15854 ac_preproc_ok=:
15855 break
15856 fi
15857 rm -f conftest.err conftest.$ac_ext
15858
15859 done
15860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15861 rm -f conftest.err conftest.$ac_ext
15862 if $ac_preproc_ok; then :
15863   break
15864 fi
15865
15866     done
15867     ac_cv_prog_CXXCPP=$CXXCPP
15868
15869 fi
15870   CXXCPP=$ac_cv_prog_CXXCPP
15871 else
15872   ac_cv_prog_CXXCPP=$CXXCPP
15873 fi
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15875 $as_echo "$CXXCPP" >&6; }
15876 ac_preproc_ok=false
15877 for ac_cxx_preproc_warn_flag in '' yes
15878 do
15879   # Use a header file that comes with gcc, so configuring glibc
15880   # with a fresh cross-compiler works.
15881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882   # <limits.h> exists even on freestanding compilers.
15883   # On the NeXT, cc -E runs the code through the compiler's parser,
15884   # not just through cpp. "Syntax error" is here to catch this case.
15885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h.  */
15887 #ifdef __STDC__
15888 # include <limits.h>
15889 #else
15890 # include <assert.h>
15891 #endif
15892                      Syntax error
15893 _ACEOF
15894 if ac_fn_cxx_try_cpp "$LINENO"; then :
15895
15896 else
15897   # Broken: fails on valid input.
15898 continue
15899 fi
15900 rm -f conftest.err conftest.$ac_ext
15901
15902   # OK, works on sane cases.  Now check whether nonexistent headers
15903   # can be detected and how.
15904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h.  */
15906 #include <ac_nonexistent.h>
15907 _ACEOF
15908 if ac_fn_cxx_try_cpp "$LINENO"; then :
15909   # Broken: success on invalid input.
15910 continue
15911 else
15912   # Passes both tests.
15913 ac_preproc_ok=:
15914 break
15915 fi
15916 rm -f conftest.err conftest.$ac_ext
15917
15918 done
15919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15920 rm -f conftest.err conftest.$ac_ext
15921 if $ac_preproc_ok; then :
15922
15923 else
15924   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15926 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15927 See \`config.log' for more details" "$LINENO" 5; }
15928 fi
15929
15930 ac_ext=c
15931 ac_cpp='$CPP $CPPFLAGS'
15932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15935
15936 else
15937   _lt_caught_CXX_error=yes
15938 fi
15939
15940 ac_ext=cpp
15941 ac_cpp='$CXXCPP $CPPFLAGS'
15942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15945
15946 archive_cmds_need_lc_CXX=no
15947 allow_undefined_flag_CXX=
15948 always_export_symbols_CXX=no
15949 archive_expsym_cmds_CXX=
15950 compiler_needs_object_CXX=no
15951 export_dynamic_flag_spec_CXX=
15952 hardcode_direct_CXX=no
15953 hardcode_direct_absolute_CXX=no
15954 hardcode_libdir_flag_spec_CXX=
15955 hardcode_libdir_flag_spec_ld_CXX=
15956 hardcode_libdir_separator_CXX=
15957 hardcode_minus_L_CXX=no
15958 hardcode_shlibpath_var_CXX=unsupported
15959 hardcode_automatic_CXX=no
15960 inherit_rpath_CXX=no
15961 module_cmds_CXX=
15962 module_expsym_cmds_CXX=
15963 link_all_deplibs_CXX=unknown
15964 old_archive_cmds_CXX=$old_archive_cmds
15965 reload_flag_CXX=$reload_flag
15966 reload_cmds_CXX=$reload_cmds
15967 no_undefined_flag_CXX=
15968 whole_archive_flag_spec_CXX=
15969 enable_shared_with_static_runtimes_CXX=no
15970
15971 # Source file extension for C++ test sources.
15972 ac_ext=cpp
15973
15974 # Object file extension for compiled C++ test sources.
15975 objext=o
15976 objext_CXX=$objext
15977
15978 # No sense in running all these tests if we already determined that
15979 # the CXX compiler isn't working.  Some variables (like enable_shared)
15980 # are currently assumed to apply to all compilers on this platform,
15981 # and will be corrupted by setting them based on a non-working compiler.
15982 if test "$_lt_caught_CXX_error" != yes; then
15983   # Code to be used in simple compile tests
15984   lt_simple_compile_test_code="int some_variable = 0;"
15985
15986   # Code to be used in simple link tests
15987   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15988
15989   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15990
15991
15992
15993
15994
15995
15996 # If no C compiler was specified, use CC.
15997 LTCC=${LTCC-"$CC"}
15998
15999 # If no C compiler flags were specified, use CFLAGS.
16000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16001
16002 # Allow CC to be a program name with arguments.
16003 compiler=$CC
16004
16005
16006   # save warnings/boilerplate of simple test code
16007   ac_outfile=conftest.$ac_objext
16008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16010 _lt_compiler_boilerplate=`cat conftest.err`
16011 $RM conftest*
16012
16013   ac_outfile=conftest.$ac_objext
16014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16016 _lt_linker_boilerplate=`cat conftest.err`
16017 $RM -r conftest*
16018
16019
16020   # Allow CC to be a program name with arguments.
16021   lt_save_CC=$CC
16022   lt_save_LD=$LD
16023   lt_save_GCC=$GCC
16024   GCC=$GXX
16025   lt_save_with_gnu_ld=$with_gnu_ld
16026   lt_save_path_LD=$lt_cv_path_LD
16027   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16028     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16029   else
16030     $as_unset lt_cv_prog_gnu_ld
16031   fi
16032   if test -n "${lt_cv_path_LDCXX+set}"; then
16033     lt_cv_path_LD=$lt_cv_path_LDCXX
16034   else
16035     $as_unset lt_cv_path_LD
16036   fi
16037   test -z "${LDCXX+set}" || LD=$LDCXX
16038   CC=${CXX-"c++"}
16039   compiler=$CC
16040   compiler_CXX=$CC
16041   for cc_temp in $compiler""; do
16042   case $cc_temp in
16043     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045     \-*) ;;
16046     *) break;;
16047   esac
16048 done
16049 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16050
16051
16052   if test -n "$compiler"; then
16053     # We don't want -fno-exception when compiling C++ code, so set the
16054     # no_builtin_flag separately
16055     if test "$GXX" = yes; then
16056       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16057     else
16058       lt_prog_compiler_no_builtin_flag_CXX=
16059     fi
16060
16061     if test "$GXX" = yes; then
16062       # Set up default GNU C++ configuration
16063
16064
16065
16066 # Check whether --with-gnu-ld was given.
16067 if test "${with_gnu_ld+set}" = set; then :
16068   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16069 else
16070   with_gnu_ld=no
16071 fi
16072
16073 ac_prog=ld
16074 if test "$GCC" = yes; then
16075   # Check if gcc -print-prog-name=ld gives a path.
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16077 $as_echo_n "checking for ld used by $CC... " >&6; }
16078   case $host in
16079   *-*-mingw*)
16080     # gcc leaves a trailing carriage return which upsets mingw
16081     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16082   *)
16083     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16084   esac
16085   case $ac_prog in
16086     # Accept absolute paths.
16087     [\\/]* | ?:[\\/]*)
16088       re_direlt='/[^/][^/]*/\.\./'
16089       # Canonicalize the pathname of ld
16090       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16091       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16092         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16093       done
16094       test -z "$LD" && LD="$ac_prog"
16095       ;;
16096   "")
16097     # If it fails, then pretend we aren't using GCC.
16098     ac_prog=ld
16099     ;;
16100   *)
16101     # If it is relative, then search for the first ld in PATH.
16102     with_gnu_ld=unknown
16103     ;;
16104   esac
16105 elif test "$with_gnu_ld" = yes; then
16106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16107 $as_echo_n "checking for GNU ld... " >&6; }
16108 else
16109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16110 $as_echo_n "checking for non-GNU ld... " >&6; }
16111 fi
16112 if test "${lt_cv_path_LD+set}" = set; then :
16113   $as_echo_n "(cached) " >&6
16114 else
16115   if test -z "$LD"; then
16116   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16117   for ac_dir in $PATH; do
16118     IFS="$lt_save_ifs"
16119     test -z "$ac_dir" && ac_dir=.
16120     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16121       lt_cv_path_LD="$ac_dir/$ac_prog"
16122       # Check to see if the program is GNU ld.  I'd rather use --version,
16123       # but apparently some variants of GNU ld only accept -v.
16124       # Break only if it was the GNU/non-GNU ld that we prefer.
16125       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16126       *GNU* | *'with BFD'*)
16127         test "$with_gnu_ld" != no && break
16128         ;;
16129       *)
16130         test "$with_gnu_ld" != yes && break
16131         ;;
16132       esac
16133     fi
16134   done
16135   IFS="$lt_save_ifs"
16136 else
16137   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16138 fi
16139 fi
16140
16141 LD="$lt_cv_path_LD"
16142 if test -n "$LD"; then
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16144 $as_echo "$LD" >&6; }
16145 else
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16152 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16153   $as_echo_n "(cached) " >&6
16154 else
16155   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16156 case `$LD -v 2>&1 </dev/null` in
16157 *GNU* | *'with BFD'*)
16158   lt_cv_prog_gnu_ld=yes
16159   ;;
16160 *)
16161   lt_cv_prog_gnu_ld=no
16162   ;;
16163 esac
16164 fi
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16167 with_gnu_ld=$lt_cv_prog_gnu_ld
16168
16169
16170
16171
16172
16173
16174
16175       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16176       # archiving commands below assume that GNU ld is being used.
16177       if test "$with_gnu_ld" = yes; then
16178         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179         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'
16180
16181         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16182         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16183
16184         # If archive_cmds runs LD, not CC, wlarc should be empty
16185         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16186         #     investigate it a little bit more. (MM)
16187         wlarc='${wl}'
16188
16189         # ancient GNU ld didn't support --whole-archive et. al.
16190         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16191           $GREP 'no-whole-archive' > /dev/null; then
16192           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16193         else
16194           whole_archive_flag_spec_CXX=
16195         fi
16196       else
16197         with_gnu_ld=no
16198         wlarc=
16199
16200         # A generic and very simple default shared library creation
16201         # command for GNU C++ for the case where it uses the native
16202         # linker, instead of GNU ld.  If possible, this setting should
16203         # overridden to take advantage of the native linker features on
16204         # the platform it is being used on.
16205         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16206       fi
16207
16208       # Commands to make compiler produce verbose output that lists
16209       # what "hidden" libraries, object files and flags are used when
16210       # linking a shared library.
16211       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16212
16213     else
16214       GXX=no
16215       with_gnu_ld=no
16216       wlarc=
16217     fi
16218
16219     # PORTME: fill in a description of your system's C++ link characteristics
16220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16222     ld_shlibs_CXX=yes
16223     case $host_os in
16224       aix3*)
16225         # FIXME: insert proper C++ library support
16226         ld_shlibs_CXX=no
16227         ;;
16228       aix[4-9]*)
16229         if test "$host_cpu" = ia64; then
16230           # On IA64, the linker does run time linking by default, so we don't
16231           # have to do anything special.
16232           aix_use_runtimelinking=no
16233           exp_sym_flag='-Bexport'
16234           no_entry_flag=""
16235         else
16236           aix_use_runtimelinking=no
16237
16238           # Test if we are trying to use run time linking or normal
16239           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16240           # need to do runtime linking.
16241           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16242             for ld_flag in $LDFLAGS; do
16243               case $ld_flag in
16244               *-brtl*)
16245                 aix_use_runtimelinking=yes
16246                 break
16247                 ;;
16248               esac
16249             done
16250             ;;
16251           esac
16252
16253           exp_sym_flag='-bexport'
16254           no_entry_flag='-bnoentry'
16255         fi
16256
16257         # When large executables or shared objects are built, AIX ld can
16258         # have problems creating the table of contents.  If linking a library
16259         # or program results in "error TOC overflow" add -mminimal-toc to
16260         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16261         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16262
16263         archive_cmds_CXX=''
16264         hardcode_direct_CXX=yes
16265         hardcode_direct_absolute_CXX=yes
16266         hardcode_libdir_separator_CXX=':'
16267         link_all_deplibs_CXX=yes
16268         file_list_spec_CXX='${wl}-f,'
16269
16270         if test "$GXX" = yes; then
16271           case $host_os in aix4.[012]|aix4.[012].*)
16272           # We only want to do this on AIX 4.2 and lower, the check
16273           # below for broken collect2 doesn't work under 4.3+
16274           collect2name=`${CC} -print-prog-name=collect2`
16275           if test -f "$collect2name" &&
16276              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16277           then
16278             # We have reworked collect2
16279             :
16280           else
16281             # We have old collect2
16282             hardcode_direct_CXX=unsupported
16283             # It fails to find uninstalled libraries when the uninstalled
16284             # path is not listed in the libpath.  Setting hardcode_minus_L
16285             # to unsupported forces relinking
16286             hardcode_minus_L_CXX=yes
16287             hardcode_libdir_flag_spec_CXX='-L$libdir'
16288             hardcode_libdir_separator_CXX=
16289           fi
16290           esac
16291           shared_flag='-shared'
16292           if test "$aix_use_runtimelinking" = yes; then
16293             shared_flag="$shared_flag "'${wl}-G'
16294           fi
16295         else
16296           # not using gcc
16297           if test "$host_cpu" = ia64; then
16298           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16299           # chokes on -Wl,-G. The following line is correct:
16300           shared_flag='-G'
16301           else
16302             if test "$aix_use_runtimelinking" = yes; then
16303               shared_flag='${wl}-G'
16304             else
16305               shared_flag='${wl}-bM:SRE'
16306             fi
16307           fi
16308         fi
16309
16310         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16311         # It seems that -bexpall does not export symbols beginning with
16312         # underscore (_), so it is better to generate a list of symbols to
16313         # export.
16314         always_export_symbols_CXX=yes
16315         if test "$aix_use_runtimelinking" = yes; then
16316           # Warning - without using the other runtime loading flags (-brtl),
16317           # -berok will link without error, but may produce a broken library.
16318           allow_undefined_flag_CXX='-berok'
16319           # Determine the default libpath from the value encoded in an empty
16320           # executable.
16321           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h.  */
16323
16324 int
16325 main ()
16326 {
16327
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_cxx_try_link "$LINENO"; then :
16333
16334 lt_aix_libpath_sed='
16335     /Import File Strings/,/^$/ {
16336         /^0/ {
16337             s/^0  *\(.*\)$/\1/
16338             p
16339         }
16340     }'
16341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342 # Check for a 64-bit object if we didn't find anything.
16343 if test -z "$aix_libpath"; then
16344   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16345 fi
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext \
16348     conftest$ac_exeext conftest.$ac_ext
16349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16350
16351           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16352
16353           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"
16354         else
16355           if test "$host_cpu" = ia64; then
16356             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16357             allow_undefined_flag_CXX="-z nodefs"
16358             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"
16359           else
16360             # Determine the default libpath from the value encoded in an
16361             # empty executable.
16362             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h.  */
16364
16365 int
16366 main ()
16367 {
16368
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 if ac_fn_cxx_try_link "$LINENO"; then :
16374
16375 lt_aix_libpath_sed='
16376     /Import File Strings/,/^$/ {
16377         /^0/ {
16378             s/^0  *\(.*\)$/\1/
16379             p
16380         }
16381     }'
16382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383 # Check for a 64-bit object if we didn't find anything.
16384 if test -z "$aix_libpath"; then
16385   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16386 fi
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext \
16389     conftest$ac_exeext conftest.$ac_ext
16390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16391
16392             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16393             # Warning - without using the other run time loading flags,
16394             # -berok will link without error, but may produce a broken library.
16395             no_undefined_flag_CXX=' ${wl}-bernotok'
16396             allow_undefined_flag_CXX=' ${wl}-berok'
16397             if test "$with_gnu_ld" = yes; then
16398               # We only use this code for GNU lds that support --whole-archive.
16399               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16400             else
16401               # Exported symbols can be pulled into shared objects from archives
16402               whole_archive_flag_spec_CXX='$convenience'
16403             fi
16404             archive_cmds_need_lc_CXX=yes
16405             # This is similar to how AIX traditionally builds its shared
16406             # libraries.
16407             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'
16408           fi
16409         fi
16410         ;;
16411
16412       beos*)
16413         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414           allow_undefined_flag_CXX=unsupported
16415           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416           # support --undefined.  This deserves some investigation.  FIXME
16417           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418         else
16419           ld_shlibs_CXX=no
16420         fi
16421         ;;
16422
16423       chorus*)
16424         case $cc_basename in
16425           *)
16426           # FIXME: insert proper C++ library support
16427           ld_shlibs_CXX=no
16428           ;;
16429         esac
16430         ;;
16431
16432       cygwin* | mingw* | pw32* | cegcc*)
16433         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16434         # as there is no search path for DLLs.
16435         hardcode_libdir_flag_spec_CXX='-L$libdir'
16436         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16437         allow_undefined_flag_CXX=unsupported
16438         always_export_symbols_CXX=no
16439         enable_shared_with_static_runtimes_CXX=yes
16440
16441         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16442           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'
16443           # If the export-symbols file already is a .def file (1st line
16444           # is EXPORTS), use it as is; otherwise, prepend...
16445           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16446             cp $export_symbols $output_objdir/$soname.def;
16447           else
16448             echo EXPORTS > $output_objdir/$soname.def;
16449             cat $export_symbols >> $output_objdir/$soname.def;
16450           fi~
16451           $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'
16452         else
16453           ld_shlibs_CXX=no
16454         fi
16455         ;;
16456       darwin* | rhapsody*)
16457
16458
16459   archive_cmds_need_lc_CXX=no
16460   hardcode_direct_CXX=no
16461   hardcode_automatic_CXX=yes
16462   hardcode_shlibpath_var_CXX=unsupported
16463   if test "$lt_cv_ld_force_load" = "yes"; then
16464     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\"`'
16465   else
16466     whole_archive_flag_spec_CXX=''
16467   fi
16468   link_all_deplibs_CXX=yes
16469   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16470   case $cc_basename in
16471      ifort*) _lt_dar_can_shared=yes ;;
16472      *) _lt_dar_can_shared=$GCC ;;
16473   esac
16474   if test "$_lt_dar_can_shared" = "yes"; then
16475     output_verbose_link_cmd=func_echo_all
16476     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}"
16477     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16478     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}"
16479     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}"
16480        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16481       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}"
16482       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}"
16483     fi
16484
16485   else
16486   ld_shlibs_CXX=no
16487   fi
16488
16489         ;;
16490
16491       dgux*)
16492         case $cc_basename in
16493           ec++*)
16494             # FIXME: insert proper C++ library support
16495             ld_shlibs_CXX=no
16496             ;;
16497           ghcx*)
16498             # Green Hills C++ Compiler
16499             # FIXME: insert proper C++ library support
16500             ld_shlibs_CXX=no
16501             ;;
16502           *)
16503             # FIXME: insert proper C++ library support
16504             ld_shlibs_CXX=no
16505             ;;
16506         esac
16507         ;;
16508
16509       freebsd[12]*)
16510         # C++ shared libraries reported to be fairly broken before
16511         # switch to ELF
16512         ld_shlibs_CXX=no
16513         ;;
16514
16515       freebsd-elf*)
16516         archive_cmds_need_lc_CXX=no
16517         ;;
16518
16519       freebsd* | dragonfly*)
16520         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16521         # conventions
16522         ld_shlibs_CXX=yes
16523         ;;
16524
16525       gnu*)
16526         ;;
16527
16528       haiku*)
16529         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530         link_all_deplibs_CXX=yes
16531         ;;
16532
16533       hpux9*)
16534         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16535         hardcode_libdir_separator_CXX=:
16536         export_dynamic_flag_spec_CXX='${wl}-E'
16537         hardcode_direct_CXX=yes
16538         hardcode_minus_L_CXX=yes # Not in the search PATH,
16539                                              # but as the default
16540                                              # location of the library.
16541
16542         case $cc_basename in
16543           CC*)
16544             # FIXME: insert proper C++ library support
16545             ld_shlibs_CXX=no
16546             ;;
16547           aCC*)
16548             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'
16549             # Commands to make compiler produce verbose output that lists
16550             # what "hidden" libraries, object files and flags are used when
16551             # linking a shared library.
16552             #
16553             # There doesn't appear to be a way to prevent this compiler from
16554             # explicitly linking system object files so we need to strip them
16555             # from the output so that they don't get included in the library
16556             # dependencies.
16557             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"'
16558             ;;
16559           *)
16560             if test "$GXX" = yes; then
16561               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'
16562             else
16563               # FIXME: insert proper C++ library support
16564               ld_shlibs_CXX=no
16565             fi
16566             ;;
16567         esac
16568         ;;
16569
16570       hpux10*|hpux11*)
16571         if test $with_gnu_ld = no; then
16572           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16573           hardcode_libdir_separator_CXX=:
16574
16575           case $host_cpu in
16576             hppa*64*|ia64*)
16577               ;;
16578             *)
16579               export_dynamic_flag_spec_CXX='${wl}-E'
16580               ;;
16581           esac
16582         fi
16583         case $host_cpu in
16584           hppa*64*|ia64*)
16585             hardcode_direct_CXX=no
16586             hardcode_shlibpath_var_CXX=no
16587             ;;
16588           *)
16589             hardcode_direct_CXX=yes
16590             hardcode_direct_absolute_CXX=yes
16591             hardcode_minus_L_CXX=yes # Not in the search PATH,
16592                                                  # but as the default
16593                                                  # location of the library.
16594             ;;
16595         esac
16596
16597         case $cc_basename in
16598           CC*)
16599             # FIXME: insert proper C++ library support
16600             ld_shlibs_CXX=no
16601             ;;
16602           aCC*)
16603             case $host_cpu in
16604               hppa*64*)
16605                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16606                 ;;
16607               ia64*)
16608                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16609                 ;;
16610               *)
16611                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16612                 ;;
16613             esac
16614             # Commands to make compiler produce verbose output that lists
16615             # what "hidden" libraries, object files and flags are used when
16616             # linking a shared library.
16617             #
16618             # There doesn't appear to be a way to prevent this compiler from
16619             # explicitly linking system object files so we need to strip them
16620             # from the output so that they don't get included in the library
16621             # dependencies.
16622             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"'
16623             ;;
16624           *)
16625             if test "$GXX" = yes; then
16626               if test $with_gnu_ld = no; then
16627                 case $host_cpu in
16628                   hppa*64*)
16629                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16630                     ;;
16631                   ia64*)
16632                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16633                     ;;
16634                   *)
16635                     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'
16636                     ;;
16637                 esac
16638               fi
16639             else
16640               # FIXME: insert proper C++ library support
16641               ld_shlibs_CXX=no
16642             fi
16643             ;;
16644         esac
16645         ;;
16646
16647       interix[3-9]*)
16648         hardcode_direct_CXX=no
16649         hardcode_shlibpath_var_CXX=no
16650         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16651         export_dynamic_flag_spec_CXX='${wl}-E'
16652         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16653         # Instead, shared libraries are loaded at an image base (0x10000000 by
16654         # default) and relocated if they conflict, which is a slow very memory
16655         # consuming and fragmenting process.  To avoid this, we pick a random,
16656         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16657         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16658         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'
16659         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'
16660         ;;
16661       irix5* | irix6*)
16662         case $cc_basename in
16663           CC*)
16664             # SGI C++
16665             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'
16666
16667             # Archives containing C++ object files must be created using
16668             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16669             # necessary to make sure instantiated templates are included
16670             # in the archive.
16671             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16672             ;;
16673           *)
16674             if test "$GXX" = yes; then
16675               if test "$with_gnu_ld" = no; then
16676                 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'
16677               else
16678                 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'
16679               fi
16680             fi
16681             link_all_deplibs_CXX=yes
16682             ;;
16683         esac
16684         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16685         hardcode_libdir_separator_CXX=:
16686         inherit_rpath_CXX=yes
16687         ;;
16688
16689       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16690         case $cc_basename in
16691           KCC*)
16692             # Kuck and Associates, Inc. (KAI) C++ Compiler
16693
16694             # KCC will only create a shared library if the output file
16695             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16696             # to its proper name (with version) after linking.
16697             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'
16698             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'
16699             # Commands to make compiler produce verbose output that lists
16700             # what "hidden" libraries, object files and flags are used when
16701             # linking a shared library.
16702             #
16703             # There doesn't appear to be a way to prevent this compiler from
16704             # explicitly linking system object files so we need to strip them
16705             # from the output so that they don't get included in the library
16706             # dependencies.
16707             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"'
16708
16709             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16710             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16711
16712             # Archives containing C++ object files must be created using
16713             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16714             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16715             ;;
16716           icpc* | ecpc* )
16717             # Intel C++
16718             with_gnu_ld=yes
16719             # version 8.0 and above of icpc choke on multiply defined symbols
16720             # if we add $predep_objects and $postdep_objects, however 7.1 and
16721             # earlier do not add the objects themselves.
16722             case `$CC -V 2>&1` in
16723               *"Version 7."*)
16724                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725                 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'
16726                 ;;
16727               *)  # Version 8.0 or newer
16728                 tmp_idyn=
16729                 case $host_cpu in
16730                   ia64*) tmp_idyn=' -i_dynamic';;
16731                 esac
16732                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733                 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'
16734                 ;;
16735             esac
16736             archive_cmds_need_lc_CXX=no
16737             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16738             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16739             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16740             ;;
16741           pgCC* | pgcpp*)
16742             # Portland Group C++ compiler
16743             case `$CC -V` in
16744             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16745               prelink_cmds_CXX='tpldir=Template.dir~
16746                 rm -rf $tpldir~
16747                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16748                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16749               old_archive_cmds_CXX='tpldir=Template.dir~
16750                 rm -rf $tpldir~
16751                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16752                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16753                 $RANLIB $oldlib'
16754               archive_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 -o $lib'
16758               archive_expsym_cmds_CXX='tpldir=Template.dir~
16759                 rm -rf $tpldir~
16760                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16761                 $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'
16762               ;;
16763             *) # Version 6 and above use weak symbols
16764               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16765               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'
16766               ;;
16767             esac
16768
16769             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16770             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16771             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'
16772             ;;
16773           cxx*)
16774             # Compaq C++
16775             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776             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'
16777
16778             runpath_var=LD_RUN_PATH
16779             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16780             hardcode_libdir_separator_CXX=:
16781
16782             # Commands to make compiler produce verbose output that lists
16783             # what "hidden" libraries, object files and flags are used when
16784             # linking a shared library.
16785             #
16786             # There doesn't appear to be a way to prevent this compiler from
16787             # explicitly linking system object files so we need to strip them
16788             # from the output so that they don't get included in the library
16789             # dependencies.
16790             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'
16791             ;;
16792           xl* | mpixl* | bgxl*)
16793             # IBM XL 8.0 on PPC, with GNU ld
16794             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16795             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16796             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797             if test "x$supports_anon_versioning" = xyes; then
16798               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16799                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800                 echo "local: *; };" >> $output_objdir/$libname.ver~
16801                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16802             fi
16803             ;;
16804           *)
16805             case `$CC -V 2>&1 | sed 5q` in
16806             *Sun\ C*)
16807               # Sun C++ 5.9
16808               no_undefined_flag_CXX=' -zdefs'
16809               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16810               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'
16811               hardcode_libdir_flag_spec_CXX='-R$libdir'
16812               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'
16813               compiler_needs_object_CXX=yes
16814
16815               # Not sure whether something based on
16816               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16817               # would be better.
16818               output_verbose_link_cmd='func_echo_all'
16819
16820               # Archives containing C++ object files must be created using
16821               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16822               # necessary to make sure instantiated templates are included
16823               # in the archive.
16824               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16825               ;;
16826             esac
16827             ;;
16828         esac
16829         ;;
16830
16831       lynxos*)
16832         # FIXME: insert proper C++ library support
16833         ld_shlibs_CXX=no
16834         ;;
16835
16836       m88k*)
16837         # FIXME: insert proper C++ library support
16838         ld_shlibs_CXX=no
16839         ;;
16840
16841       mvs*)
16842         case $cc_basename in
16843           cxx*)
16844             # FIXME: insert proper C++ library support
16845             ld_shlibs_CXX=no
16846             ;;
16847           *)
16848             # FIXME: insert proper C++ library support
16849             ld_shlibs_CXX=no
16850             ;;
16851         esac
16852         ;;
16853
16854       netbsd*)
16855         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16856           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16857           wlarc=
16858           hardcode_libdir_flag_spec_CXX='-R$libdir'
16859           hardcode_direct_CXX=yes
16860           hardcode_shlibpath_var_CXX=no
16861         fi
16862         # Workaround some broken pre-1.5 toolchains
16863         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16864         ;;
16865
16866       *nto* | *qnx*)
16867         ld_shlibs_CXX=yes
16868         ;;
16869
16870       openbsd2*)
16871         # C++ shared libraries are fairly broken
16872         ld_shlibs_CXX=no
16873         ;;
16874
16875       openbsd*)
16876         if test -f /usr/libexec/ld.so; then
16877           hardcode_direct_CXX=yes
16878           hardcode_shlibpath_var_CXX=no
16879           hardcode_direct_absolute_CXX=yes
16880           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16882           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16883             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16884             export_dynamic_flag_spec_CXX='${wl}-E'
16885             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16886           fi
16887           output_verbose_link_cmd=func_echo_all
16888         else
16889           ld_shlibs_CXX=no
16890         fi
16891         ;;
16892
16893       osf3* | osf4* | osf5*)
16894         case $cc_basename in
16895           KCC*)
16896             # Kuck and Associates, Inc. (KAI) C++ Compiler
16897
16898             # KCC will only create a shared library if the output file
16899             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16900             # to its proper name (with version) after linking.
16901             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'
16902
16903             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16904             hardcode_libdir_separator_CXX=:
16905
16906             # Archives containing C++ object files must be created using
16907             # the KAI C++ compiler.
16908             case $host in
16909               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16910               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16911             esac
16912             ;;
16913           RCC*)
16914             # Rational C++ 2.4.1
16915             # FIXME: insert proper C++ library support
16916             ld_shlibs_CXX=no
16917             ;;
16918           cxx*)
16919             case $host in
16920               osf3*)
16921                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16922                 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'
16923                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16924                 ;;
16925               *)
16926                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16927                 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'
16928                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16929                   echo "-hidden">> $lib.exp~
16930                   $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~
16931                   $RM $lib.exp'
16932                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16933                 ;;
16934             esac
16935
16936             hardcode_libdir_separator_CXX=:
16937
16938             # Commands to make compiler produce verbose output that lists
16939             # what "hidden" libraries, object files and flags are used when
16940             # linking a shared library.
16941             #
16942             # There doesn't appear to be a way to prevent this compiler from
16943             # explicitly linking system object files so we need to strip them
16944             # from the output so that they don't get included in the library
16945             # dependencies.
16946             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"'
16947             ;;
16948           *)
16949             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16950               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16951               case $host in
16952                 osf3*)
16953                   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'
16954                   ;;
16955                 *)
16956                   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'
16957                   ;;
16958               esac
16959
16960               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16961               hardcode_libdir_separator_CXX=:
16962
16963               # Commands to make compiler produce verbose output that lists
16964               # what "hidden" libraries, object files and flags are used when
16965               # linking a shared library.
16966               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16967
16968             else
16969               # FIXME: insert proper C++ library support
16970               ld_shlibs_CXX=no
16971             fi
16972             ;;
16973         esac
16974         ;;
16975
16976       psos*)
16977         # FIXME: insert proper C++ library support
16978         ld_shlibs_CXX=no
16979         ;;
16980
16981       sunos4*)
16982         case $cc_basename in
16983           CC*)
16984             # Sun C++ 4.x
16985             # FIXME: insert proper C++ library support
16986             ld_shlibs_CXX=no
16987             ;;
16988           lcc*)
16989             # Lucid
16990             # FIXME: insert proper C++ library support
16991             ld_shlibs_CXX=no
16992             ;;
16993           *)
16994             # FIXME: insert proper C++ library support
16995             ld_shlibs_CXX=no
16996             ;;
16997         esac
16998         ;;
16999
17000       solaris*)
17001         case $cc_basename in
17002           CC* | sunCC*)
17003             # Sun C++ 4.2, 5.x and Centerline C++
17004             archive_cmds_need_lc_CXX=yes
17005             no_undefined_flag_CXX=' -zdefs'
17006             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17007             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17008               $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'
17009
17010             hardcode_libdir_flag_spec_CXX='-R$libdir'
17011             hardcode_shlibpath_var_CXX=no
17012             case $host_os in
17013               solaris2.[0-5] | solaris2.[0-5].*) ;;
17014               *)
17015                 # The compiler driver will combine and reorder linker options,
17016                 # but understands `-z linker_flag'.
17017                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17018                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17019                 ;;
17020             esac
17021             link_all_deplibs_CXX=yes
17022
17023             output_verbose_link_cmd='func_echo_all'
17024
17025             # Archives containing C++ object files must be created using
17026             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17027             # necessary to make sure instantiated templates are included
17028             # in the archive.
17029             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17030             ;;
17031           gcx*)
17032             # Green Hills C++ Compiler
17033             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17034
17035             # The C++ compiler must be used to create the archive.
17036             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17037             ;;
17038           *)
17039             # GNU C++ compiler with Solaris linker
17040             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17041               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17042               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17043                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17044                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17045                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17046
17047                 # Commands to make compiler produce verbose output that lists
17048                 # what "hidden" libraries, object files and flags are used when
17049                 # linking a shared library.
17050                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17051               else
17052                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17053                 # platform.
17054                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17055                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17056                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17057
17058                 # Commands to make compiler produce verbose output that lists
17059                 # what "hidden" libraries, object files and flags are used when
17060                 # linking a shared library.
17061                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17062               fi
17063
17064               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17065               case $host_os in
17066                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17067                 *)
17068                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17069                   ;;
17070               esac
17071             fi
17072             ;;
17073         esac
17074         ;;
17075
17076     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17077       no_undefined_flag_CXX='${wl}-z,text'
17078       archive_cmds_need_lc_CXX=no
17079       hardcode_shlibpath_var_CXX=no
17080       runpath_var='LD_RUN_PATH'
17081
17082       case $cc_basename in
17083         CC*)
17084           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17086           ;;
17087         *)
17088           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17089           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090           ;;
17091       esac
17092       ;;
17093
17094       sysv5* | sco3.2v5* | sco5v6*)
17095         # Note: We can NOT use -z defs as we might desire, because we do not
17096         # link with -lc, and that would cause any symbols used from libc to
17097         # always be unresolved, which means just about no library would
17098         # ever link correctly.  If we're not using GNU ld we use -z text
17099         # though, which does catch some bad symbols but isn't as heavy-handed
17100         # as -z defs.
17101         no_undefined_flag_CXX='${wl}-z,text'
17102         allow_undefined_flag_CXX='${wl}-z,nodefs'
17103         archive_cmds_need_lc_CXX=no
17104         hardcode_shlibpath_var_CXX=no
17105         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17106         hardcode_libdir_separator_CXX=':'
17107         link_all_deplibs_CXX=yes
17108         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17109         runpath_var='LD_RUN_PATH'
17110
17111         case $cc_basename in
17112           CC*)
17113             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17115             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17116               '"$old_archive_cmds_CXX"
17117             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17118               '"$reload_cmds_CXX"
17119             ;;
17120           *)
17121             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17122             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17123             ;;
17124         esac
17125       ;;
17126
17127       tandem*)
17128         case $cc_basename in
17129           NCC*)
17130             # NonStop-UX NCC 3.20
17131             # FIXME: insert proper C++ library support
17132             ld_shlibs_CXX=no
17133             ;;
17134           *)
17135             # FIXME: insert proper C++ library support
17136             ld_shlibs_CXX=no
17137             ;;
17138         esac
17139         ;;
17140
17141       vxworks*)
17142         # FIXME: insert proper C++ library support
17143         ld_shlibs_CXX=no
17144         ;;
17145
17146       *)
17147         # FIXME: insert proper C++ library support
17148         ld_shlibs_CXX=no
17149         ;;
17150     esac
17151
17152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17153 $as_echo "$ld_shlibs_CXX" >&6; }
17154     test "$ld_shlibs_CXX" = no && can_build_shared=no
17155
17156     GCC_CXX="$GXX"
17157     LD_CXX="$LD"
17158
17159     ## CAVEAT EMPTOR:
17160     ## There is no encapsulation within the following macros, do not change
17161     ## the running order or otherwise move them around unless you know exactly
17162     ## what you are doing...
17163     # Dependencies to place before and after the object being linked:
17164 predep_objects_CXX=
17165 postdep_objects_CXX=
17166 predeps_CXX=
17167 postdeps_CXX=
17168 compiler_lib_search_path_CXX=
17169
17170 cat > conftest.$ac_ext <<_LT_EOF
17171 class Foo
17172 {
17173 public:
17174   Foo (void) { a = 0; }
17175 private:
17176   int a;
17177 };
17178 _LT_EOF
17179
17180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17181   (eval $ac_compile) 2>&5
17182   ac_status=$?
17183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184   test $ac_status = 0; }; then
17185   # Parse the compiler output and extract the necessary
17186   # objects, libraries and library flags.
17187
17188   # Sentinel used to keep track of whether or not we are before
17189   # the conftest object file.
17190   pre_test_object_deps_done=no
17191
17192   for p in `eval "$output_verbose_link_cmd"`; do
17193     case $p in
17194
17195     -L* | -R* | -l*)
17196        # Some compilers place space between "-{L,R}" and the path.
17197        # Remove the space.
17198        if test $p = "-L" ||
17199           test $p = "-R"; then
17200          prev=$p
17201          continue
17202        else
17203          prev=
17204        fi
17205
17206        if test "$pre_test_object_deps_done" = no; then
17207          case $p in
17208          -L* | -R*)
17209            # Internal compiler library paths should come after those
17210            # provided the user.  The postdeps already come after the
17211            # user supplied libs so there is no need to process them.
17212            if test -z "$compiler_lib_search_path_CXX"; then
17213              compiler_lib_search_path_CXX="${prev}${p}"
17214            else
17215              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17216            fi
17217            ;;
17218          # The "-l" case would never come before the object being
17219          # linked, so don't bother handling this case.
17220          esac
17221        else
17222          if test -z "$postdeps_CXX"; then
17223            postdeps_CXX="${prev}${p}"
17224          else
17225            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17226          fi
17227        fi
17228        ;;
17229
17230     *.$objext)
17231        # This assumes that the test object file only shows up
17232        # once in the compiler output.
17233        if test "$p" = "conftest.$objext"; then
17234          pre_test_object_deps_done=yes
17235          continue
17236        fi
17237
17238        if test "$pre_test_object_deps_done" = no; then
17239          if test -z "$predep_objects_CXX"; then
17240            predep_objects_CXX="$p"
17241          else
17242            predep_objects_CXX="$predep_objects_CXX $p"
17243          fi
17244        else
17245          if test -z "$postdep_objects_CXX"; then
17246            postdep_objects_CXX="$p"
17247          else
17248            postdep_objects_CXX="$postdep_objects_CXX $p"
17249          fi
17250        fi
17251        ;;
17252
17253     *) ;; # Ignore the rest.
17254
17255     esac
17256   done
17257
17258   # Clean up.
17259   rm -f a.out a.exe
17260 else
17261   echo "libtool.m4: error: problem compiling CXX test program"
17262 fi
17263
17264 $RM -f confest.$objext
17265
17266 # PORTME: override above test on systems where it is broken
17267 case $host_os in
17268 interix[3-9]*)
17269   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17270   # hack all around it, let's just trust "g++" to DTRT.
17271   predep_objects_CXX=
17272   postdep_objects_CXX=
17273   postdeps_CXX=
17274   ;;
17275
17276 linux*)
17277   case `$CC -V 2>&1 | sed 5q` in
17278   *Sun\ C*)
17279     # Sun C++ 5.9
17280
17281     # The more standards-conforming stlport4 library is
17282     # incompatible with the Cstd library. Avoid specifying
17283     # it if it's in CXXFLAGS. Ignore libCrun as
17284     # -library=stlport4 depends on it.
17285     case " $CXX $CXXFLAGS " in
17286     *" -library=stlport4 "*)
17287       solaris_use_stlport4=yes
17288       ;;
17289     esac
17290
17291     if test "$solaris_use_stlport4" != yes; then
17292       postdeps_CXX='-library=Cstd -library=Crun'
17293     fi
17294     ;;
17295   esac
17296   ;;
17297
17298 solaris*)
17299   case $cc_basename in
17300   CC* | sunCC*)
17301     # The more standards-conforming stlport4 library is
17302     # incompatible with the Cstd library. Avoid specifying
17303     # it if it's in CXXFLAGS. Ignore libCrun as
17304     # -library=stlport4 depends on it.
17305     case " $CXX $CXXFLAGS " in
17306     *" -library=stlport4 "*)
17307       solaris_use_stlport4=yes
17308       ;;
17309     esac
17310
17311     # Adding this requires a known-good setup of shared libraries for
17312     # Sun compiler versions before 5.6, else PIC objects from an old
17313     # archive will be linked into the output, leading to subtle bugs.
17314     if test "$solaris_use_stlport4" != yes; then
17315       postdeps_CXX='-library=Cstd -library=Crun'
17316     fi
17317     ;;
17318   esac
17319   ;;
17320 esac
17321
17322
17323 case " $postdeps_CXX " in
17324 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17325 esac
17326  compiler_lib_search_dirs_CXX=
17327 if test -n "${compiler_lib_search_path_CXX}"; then
17328  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17329 fi
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
17358
17359
17360
17361     lt_prog_compiler_wl_CXX=
17362 lt_prog_compiler_pic_CXX=
17363 lt_prog_compiler_static_CXX=
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17367
17368   # C++ specific cases for pic, static, wl, etc.
17369   if test "$GXX" = yes; then
17370     lt_prog_compiler_wl_CXX='-Wl,'
17371     lt_prog_compiler_static_CXX='-static'
17372
17373     case $host_os in
17374     aix*)
17375       # All AIX code is PIC.
17376       if test "$host_cpu" = ia64; then
17377         # AIX 5 now supports IA64 processor
17378         lt_prog_compiler_static_CXX='-Bstatic'
17379       fi
17380       ;;
17381
17382     amigaos*)
17383       case $host_cpu in
17384       powerpc)
17385             # see comment about AmigaOS4 .so support
17386             lt_prog_compiler_pic_CXX='-fPIC'
17387         ;;
17388       m68k)
17389             # FIXME: we need at least 68020 code to build shared libraries, but
17390             # adding the `-m68020' flag to GCC prevents building anything better,
17391             # like `-m68040'.
17392             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17393         ;;
17394       esac
17395       ;;
17396
17397     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17398       # PIC is the default for these OSes.
17399       ;;
17400     mingw* | cygwin* | os2* | pw32* | cegcc*)
17401       # This hack is so that the source file can tell whether it is being
17402       # built for inclusion in a dll (and should export symbols for example).
17403       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17404       # (--disable-auto-import) libraries
17405       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17406       ;;
17407     darwin* | rhapsody*)
17408       # PIC is the default on this platform
17409       # Common symbols not allowed in MH_DYLIB files
17410       lt_prog_compiler_pic_CXX='-fno-common'
17411       ;;
17412     *djgpp*)
17413       # DJGPP does not support shared libraries at all
17414       lt_prog_compiler_pic_CXX=
17415       ;;
17416     haiku*)
17417       # PIC is the default for Haiku.
17418       # The "-static" flag exists, but is broken.
17419       lt_prog_compiler_static_CXX=
17420       ;;
17421     interix[3-9]*)
17422       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17423       # Instead, we relocate shared libraries at runtime.
17424       ;;
17425     sysv4*MP*)
17426       if test -d /usr/nec; then
17427         lt_prog_compiler_pic_CXX=-Kconform_pic
17428       fi
17429       ;;
17430     hpux*)
17431       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17432       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17433       # sets the default TLS model and affects inlining.
17434       case $host_cpu in
17435       hppa*64*)
17436         ;;
17437       *)
17438         lt_prog_compiler_pic_CXX='-fPIC'
17439         ;;
17440       esac
17441       ;;
17442     *qnx* | *nto*)
17443       # QNX uses GNU C++, but need to define -shared option too, otherwise
17444       # it will coredump.
17445       lt_prog_compiler_pic_CXX='-fPIC -shared'
17446       ;;
17447     *)
17448       lt_prog_compiler_pic_CXX='-fPIC'
17449       ;;
17450     esac
17451   else
17452     case $host_os in
17453       aix[4-9]*)
17454         # All AIX code is PIC.
17455         if test "$host_cpu" = ia64; then
17456           # AIX 5 now supports IA64 processor
17457           lt_prog_compiler_static_CXX='-Bstatic'
17458         else
17459           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17460         fi
17461         ;;
17462       chorus*)
17463         case $cc_basename in
17464         cxch68*)
17465           # Green Hills C++ Compiler
17466           # _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"
17467           ;;
17468         esac
17469         ;;
17470       dgux*)
17471         case $cc_basename in
17472           ec++*)
17473             lt_prog_compiler_pic_CXX='-KPIC'
17474             ;;
17475           ghcx*)
17476             # Green Hills C++ Compiler
17477             lt_prog_compiler_pic_CXX='-pic'
17478             ;;
17479           *)
17480             ;;
17481         esac
17482         ;;
17483       freebsd* | dragonfly*)
17484         # FreeBSD uses GNU C++
17485         ;;
17486       hpux9* | hpux10* | hpux11*)
17487         case $cc_basename in
17488           CC*)
17489             lt_prog_compiler_wl_CXX='-Wl,'
17490             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17491             if test "$host_cpu" != ia64; then
17492               lt_prog_compiler_pic_CXX='+Z'
17493             fi
17494             ;;
17495           aCC*)
17496             lt_prog_compiler_wl_CXX='-Wl,'
17497             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17498             case $host_cpu in
17499             hppa*64*|ia64*)
17500               # +Z the default
17501               ;;
17502             *)
17503               lt_prog_compiler_pic_CXX='+Z'
17504               ;;
17505             esac
17506             ;;
17507           *)
17508             ;;
17509         esac
17510         ;;
17511       interix*)
17512         # This is c89, which is MS Visual C++ (no shared libs)
17513         # Anyone wants to do a port?
17514         ;;
17515       irix5* | irix6* | nonstopux*)
17516         case $cc_basename in
17517           CC*)
17518             lt_prog_compiler_wl_CXX='-Wl,'
17519             lt_prog_compiler_static_CXX='-non_shared'
17520             # CC pic flag -KPIC is the default.
17521             ;;
17522           *)
17523             ;;
17524         esac
17525         ;;
17526       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17527         case $cc_basename in
17528           KCC*)
17529             # KAI C++ Compiler
17530             lt_prog_compiler_wl_CXX='--backend -Wl,'
17531             lt_prog_compiler_pic_CXX='-fPIC'
17532             ;;
17533           ecpc* )
17534             # old Intel C++ for x86_64 which still supported -KPIC.
17535             lt_prog_compiler_wl_CXX='-Wl,'
17536             lt_prog_compiler_pic_CXX='-KPIC'
17537             lt_prog_compiler_static_CXX='-static'
17538             ;;
17539           icpc* )
17540             # Intel C++, used to be incompatible with GCC.
17541             # ICC 10 doesn't accept -KPIC any more.
17542             lt_prog_compiler_wl_CXX='-Wl,'
17543             lt_prog_compiler_pic_CXX='-fPIC'
17544             lt_prog_compiler_static_CXX='-static'
17545             ;;
17546           pgCC* | pgcpp*)
17547             # Portland Group C++ compiler
17548             lt_prog_compiler_wl_CXX='-Wl,'
17549             lt_prog_compiler_pic_CXX='-fpic'
17550             lt_prog_compiler_static_CXX='-Bstatic'
17551             ;;
17552           cxx*)
17553             # Compaq C++
17554             # Make sure the PIC flag is empty.  It appears that all Alpha
17555             # Linux and Compaq Tru64 Unix objects are PIC.
17556             lt_prog_compiler_pic_CXX=
17557             lt_prog_compiler_static_CXX='-non_shared'
17558             ;;
17559           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17560             # IBM XL 8.0, 9.0 on PPC and BlueGene
17561             lt_prog_compiler_wl_CXX='-Wl,'
17562             lt_prog_compiler_pic_CXX='-qpic'
17563             lt_prog_compiler_static_CXX='-qstaticlink'
17564             ;;
17565           *)
17566             case `$CC -V 2>&1 | sed 5q` in
17567             *Sun\ C*)
17568               # Sun C++ 5.9
17569               lt_prog_compiler_pic_CXX='-KPIC'
17570               lt_prog_compiler_static_CXX='-Bstatic'
17571               lt_prog_compiler_wl_CXX='-Qoption ld '
17572               ;;
17573             esac
17574             ;;
17575         esac
17576         ;;
17577       lynxos*)
17578         ;;
17579       m88k*)
17580         ;;
17581       mvs*)
17582         case $cc_basename in
17583           cxx*)
17584             lt_prog_compiler_pic_CXX='-W c,exportall'
17585             ;;
17586           *)
17587             ;;
17588         esac
17589         ;;
17590       netbsd*)
17591         ;;
17592       *qnx* | *nto*)
17593         # QNX uses GNU C++, but need to define -shared option too, otherwise
17594         # it will coredump.
17595         lt_prog_compiler_pic_CXX='-fPIC -shared'
17596         ;;
17597       osf3* | osf4* | osf5*)
17598         case $cc_basename in
17599           KCC*)
17600             lt_prog_compiler_wl_CXX='--backend -Wl,'
17601             ;;
17602           RCC*)
17603             # Rational C++ 2.4.1
17604             lt_prog_compiler_pic_CXX='-pic'
17605             ;;
17606           cxx*)
17607             # Digital/Compaq C++
17608             lt_prog_compiler_wl_CXX='-Wl,'
17609             # Make sure the PIC flag is empty.  It appears that all Alpha
17610             # Linux and Compaq Tru64 Unix objects are PIC.
17611             lt_prog_compiler_pic_CXX=
17612             lt_prog_compiler_static_CXX='-non_shared'
17613             ;;
17614           *)
17615             ;;
17616         esac
17617         ;;
17618       psos*)
17619         ;;
17620       solaris*)
17621         case $cc_basename in
17622           CC* | sunCC*)
17623             # Sun C++ 4.2, 5.x and Centerline C++
17624             lt_prog_compiler_pic_CXX='-KPIC'
17625             lt_prog_compiler_static_CXX='-Bstatic'
17626             lt_prog_compiler_wl_CXX='-Qoption ld '
17627             ;;
17628           gcx*)
17629             # Green Hills C++ Compiler
17630             lt_prog_compiler_pic_CXX='-PIC'
17631             ;;
17632           *)
17633             ;;
17634         esac
17635         ;;
17636       sunos4*)
17637         case $cc_basename in
17638           CC*)
17639             # Sun C++ 4.x
17640             lt_prog_compiler_pic_CXX='-pic'
17641             lt_prog_compiler_static_CXX='-Bstatic'
17642             ;;
17643           lcc*)
17644             # Lucid
17645             lt_prog_compiler_pic_CXX='-pic'
17646             ;;
17647           *)
17648             ;;
17649         esac
17650         ;;
17651       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17652         case $cc_basename in
17653           CC*)
17654             lt_prog_compiler_wl_CXX='-Wl,'
17655             lt_prog_compiler_pic_CXX='-KPIC'
17656             lt_prog_compiler_static_CXX='-Bstatic'
17657             ;;
17658         esac
17659         ;;
17660       tandem*)
17661         case $cc_basename in
17662           NCC*)
17663             # NonStop-UX NCC 3.20
17664             lt_prog_compiler_pic_CXX='-KPIC'
17665             ;;
17666           *)
17667             ;;
17668         esac
17669         ;;
17670       vxworks*)
17671         ;;
17672       *)
17673         lt_prog_compiler_can_build_shared_CXX=no
17674         ;;
17675     esac
17676   fi
17677
17678 case $host_os in
17679   # For platforms which do not support PIC, -DPIC is meaningless:
17680   *djgpp*)
17681     lt_prog_compiler_pic_CXX=
17682     ;;
17683   *)
17684     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17685     ;;
17686 esac
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17688 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17689
17690
17691
17692 #
17693 # Check to make sure the PIC flag actually works.
17694 #
17695 if test -n "$lt_prog_compiler_pic_CXX"; then
17696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17697 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17698 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17699   $as_echo_n "(cached) " >&6
17700 else
17701   lt_cv_prog_compiler_pic_works_CXX=no
17702    ac_outfile=conftest.$ac_objext
17703    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17705    # Insert the option either (1) after the last *FLAGS variable, or
17706    # (2) before a word containing "conftest.", or (3) at the end.
17707    # Note that $ac_compile itself does not contain backslashes and begins
17708    # with a dollar sign (not a hyphen), so the echo should work correctly.
17709    # The option is referenced via a variable to avoid confusing sed.
17710    lt_compile=`echo "$ac_compile" | $SED \
17711    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17712    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17713    -e 's:$: $lt_compiler_flag:'`
17714    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17715    (eval "$lt_compile" 2>conftest.err)
17716    ac_status=$?
17717    cat conftest.err >&5
17718    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719    if (exit $ac_status) && test -s "$ac_outfile"; then
17720      # The compiler can only warn and ignore the option if not recognized
17721      # So say no if there are warnings other than the usual output.
17722      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17723      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17724      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17725        lt_cv_prog_compiler_pic_works_CXX=yes
17726      fi
17727    fi
17728    $RM conftest*
17729
17730 fi
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17732 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17733
17734 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17735     case $lt_prog_compiler_pic_CXX in
17736      "" | " "*) ;;
17737      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17738      esac
17739 else
17740     lt_prog_compiler_pic_CXX=
17741      lt_prog_compiler_can_build_shared_CXX=no
17742 fi
17743
17744 fi
17745
17746
17747
17748 #
17749 # Check to make sure the static flag actually works.
17750 #
17751 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17754 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17755   $as_echo_n "(cached) " >&6
17756 else
17757   lt_cv_prog_compiler_static_works_CXX=no
17758    save_LDFLAGS="$LDFLAGS"
17759    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17760    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17761    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17762      # The linker can only warn and ignore the option if not recognized
17763      # So say no if there are warnings
17764      if test -s conftest.err; then
17765        # Append any errors to the config.log.
17766        cat conftest.err 1>&5
17767        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17768        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17769        if diff conftest.exp conftest.er2 >/dev/null; then
17770          lt_cv_prog_compiler_static_works_CXX=yes
17771        fi
17772      else
17773        lt_cv_prog_compiler_static_works_CXX=yes
17774      fi
17775    fi
17776    $RM -r conftest*
17777    LDFLAGS="$save_LDFLAGS"
17778
17779 fi
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17781 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17782
17783 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17784     :
17785 else
17786     lt_prog_compiler_static_CXX=
17787 fi
17788
17789
17790
17791
17792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   lt_cv_prog_compiler_c_o_CXX=no
17798    $RM -r conftest 2>/dev/null
17799    mkdir conftest
17800    cd conftest
17801    mkdir out
17802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17803
17804    lt_compiler_flag="-o out/conftest2.$ac_objext"
17805    # Insert the option either (1) after the last *FLAGS variable, or
17806    # (2) before a word containing "conftest.", or (3) at the end.
17807    # Note that $ac_compile itself does not contain backslashes and begins
17808    # with a dollar sign (not a hyphen), so the echo should work correctly.
17809    lt_compile=`echo "$ac_compile" | $SED \
17810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17812    -e 's:$: $lt_compiler_flag:'`
17813    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17814    (eval "$lt_compile" 2>out/conftest.err)
17815    ac_status=$?
17816    cat out/conftest.err >&5
17817    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17819    then
17820      # The compiler can only warn and ignore the option if not recognized
17821      # So say no if there are warnings
17822      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17825        lt_cv_prog_compiler_c_o_CXX=yes
17826      fi
17827    fi
17828    chmod u+w . 2>&5
17829    $RM conftest*
17830    # SGI C++ compiler will create directory out/ii_files/ for
17831    # template instantiation
17832    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17833    $RM out/* && rmdir out
17834    cd ..
17835    $RM -r conftest
17836    $RM conftest*
17837
17838 fi
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17840 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17841
17842
17843
17844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17846 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17847   $as_echo_n "(cached) " >&6
17848 else
17849   lt_cv_prog_compiler_c_o_CXX=no
17850    $RM -r conftest 2>/dev/null
17851    mkdir conftest
17852    cd conftest
17853    mkdir out
17854    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17855
17856    lt_compiler_flag="-o out/conftest2.$ac_objext"
17857    # Insert the option either (1) after the last *FLAGS variable, or
17858    # (2) before a word containing "conftest.", or (3) at the end.
17859    # Note that $ac_compile itself does not contain backslashes and begins
17860    # with a dollar sign (not a hyphen), so the echo should work correctly.
17861    lt_compile=`echo "$ac_compile" | $SED \
17862    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17863    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17864    -e 's:$: $lt_compiler_flag:'`
17865    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17866    (eval "$lt_compile" 2>out/conftest.err)
17867    ac_status=$?
17868    cat out/conftest.err >&5
17869    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17871    then
17872      # The compiler can only warn and ignore the option if not recognized
17873      # So say no if there are warnings
17874      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17875      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17876      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17877        lt_cv_prog_compiler_c_o_CXX=yes
17878      fi
17879    fi
17880    chmod u+w . 2>&5
17881    $RM conftest*
17882    # SGI C++ compiler will create directory out/ii_files/ for
17883    # template instantiation
17884    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17885    $RM out/* && rmdir out
17886    cd ..
17887    $RM -r conftest
17888    $RM conftest*
17889
17890 fi
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17892 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17893
17894
17895
17896
17897 hard_links="nottested"
17898 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899   # do not overwrite the value of need_locks provided by the user
17900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17901 $as_echo_n "checking if we can lock with hard links... " >&6; }
17902   hard_links=yes
17903   $RM conftest*
17904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17905   touch conftest.a
17906   ln conftest.a conftest.b 2>&5 || hard_links=no
17907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17909 $as_echo "$hard_links" >&6; }
17910   if test "$hard_links" = no; then
17911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17913     need_locks=warn
17914   fi
17915 else
17916   need_locks=no
17917 fi
17918
17919
17920
17921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17923
17924   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17925   case $host_os in
17926   aix[4-9]*)
17927     # If we're using GNU nm, then we don't want the "-C" option.
17928     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17929     # Also, AIX nm treats weak defined symbols like other global defined
17930     # symbols, whereas GNU nm marks them as "W".
17931     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17932       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'
17933     else
17934       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'
17935     fi
17936     ;;
17937   pw32*)
17938     export_symbols_cmds_CXX="$ltdll_cmds"
17939   ;;
17940   cygwin* | mingw* | cegcc*)
17941     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'
17942   ;;
17943   *)
17944     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17945   ;;
17946   esac
17947   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17948
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17950 $as_echo "$ld_shlibs_CXX" >&6; }
17951 test "$ld_shlibs_CXX" = no && can_build_shared=no
17952
17953 with_gnu_ld_CXX=$with_gnu_ld
17954
17955
17956
17957
17958
17959
17960 #
17961 # Do we need to explicitly link libc?
17962 #
17963 case "x$archive_cmds_need_lc_CXX" in
17964 x|xyes)
17965   # Assume -lc should be added
17966   archive_cmds_need_lc_CXX=yes
17967
17968   if test "$enable_shared" = yes && test "$GCC" = yes; then
17969     case $archive_cmds_CXX in
17970     *'~'*)
17971       # FIXME: we may have to deal with multi-command sequences.
17972       ;;
17973     '$CC '*)
17974       # Test whether the compiler implicitly links with -lc since on some
17975       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17976       # to ld, don't add -lc before -lgcc.
17977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17978 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17979 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17980   $as_echo_n "(cached) " >&6
17981 else
17982   $RM conftest*
17983         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17984
17985         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17986   (eval $ac_compile) 2>&5
17987   ac_status=$?
17988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989   test $ac_status = 0; } 2>conftest.err; then
17990           soname=conftest
17991           lib=conftest
17992           libobjs=conftest.$ac_objext
17993           deplibs=
17994           wl=$lt_prog_compiler_wl_CXX
17995           pic_flag=$lt_prog_compiler_pic_CXX
17996           compiler_flags=-v
17997           linker_flags=-v
17998           verstring=
17999           output_objdir=.
18000           libname=conftest
18001           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18002           allow_undefined_flag_CXX=
18003           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18004   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18005   ac_status=$?
18006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007   test $ac_status = 0; }
18008           then
18009             lt_cv_archive_cmds_need_lc_CXX=no
18010           else
18011             lt_cv_archive_cmds_need_lc_CXX=yes
18012           fi
18013           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18014         else
18015           cat conftest.err 1>&5
18016         fi
18017         $RM conftest*
18018
18019 fi
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18021 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18022       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18023       ;;
18024     esac
18025   fi
18026   ;;
18027 esac
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
18089
18090
18091
18092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18093 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18094
18095 library_names_spec=
18096 libname_spec='lib$name'
18097 soname_spec=
18098 shrext_cmds=".so"
18099 postinstall_cmds=
18100 postuninstall_cmds=
18101 finish_cmds=
18102 finish_eval=
18103 shlibpath_var=
18104 shlibpath_overrides_runpath=unknown
18105 version_type=none
18106 dynamic_linker="$host_os ld.so"
18107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18108 need_lib_prefix=unknown
18109 hardcode_into_libs=no
18110
18111 # when you set need_version to no, make sure it does not cause -set_version
18112 # flags to be left without arguments
18113 need_version=unknown
18114
18115 case $host_os in
18116 aix3*)
18117   version_type=linux
18118   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18119   shlibpath_var=LIBPATH
18120
18121   # AIX 3 has no versioning support, so we append a major version to the name.
18122   soname_spec='${libname}${release}${shared_ext}$major'
18123   ;;
18124
18125 aix[4-9]*)
18126   version_type=linux
18127   need_lib_prefix=no
18128   need_version=no
18129   hardcode_into_libs=yes
18130   if test "$host_cpu" = ia64; then
18131     # AIX 5 supports IA64
18132     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18133     shlibpath_var=LD_LIBRARY_PATH
18134   else
18135     # With GCC up to 2.95.x, collect2 would create an import file
18136     # for dependence libraries.  The import file would start with
18137     # the line `#! .'.  This would cause the generated library to
18138     # depend on `.', always an invalid library.  This was fixed in
18139     # development snapshots of GCC prior to 3.0.
18140     case $host_os in
18141       aix4 | aix4.[01] | aix4.[01].*)
18142       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18143            echo ' yes '
18144            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18145         :
18146       else
18147         can_build_shared=no
18148       fi
18149       ;;
18150     esac
18151     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18152     # soname into executable. Probably we can add versioning support to
18153     # collect2, so additional links can be useful in future.
18154     if test "$aix_use_runtimelinking" = yes; then
18155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18156       # instead of lib<name>.a to let people know that these are not
18157       # typical AIX shared libraries.
18158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159     else
18160       # We preserve .a as extension for shared libraries through AIX4.2
18161       # and later when we are not doing run time linking.
18162       library_names_spec='${libname}${release}.a $libname.a'
18163       soname_spec='${libname}${release}${shared_ext}$major'
18164     fi
18165     shlibpath_var=LIBPATH
18166   fi
18167   ;;
18168
18169 amigaos*)
18170   case $host_cpu in
18171   powerpc)
18172     # Since July 2007 AmigaOS4 officially supports .so libraries.
18173     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175     ;;
18176   m68k)
18177     library_names_spec='$libname.ixlibrary $libname.a'
18178     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18179     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'
18180     ;;
18181   esac
18182   ;;
18183
18184 beos*)
18185   library_names_spec='${libname}${shared_ext}'
18186   dynamic_linker="$host_os ld.so"
18187   shlibpath_var=LIBRARY_PATH
18188   ;;
18189
18190 bsdi[45]*)
18191   version_type=linux
18192   need_version=no
18193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194   soname_spec='${libname}${release}${shared_ext}$major'
18195   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18196   shlibpath_var=LD_LIBRARY_PATH
18197   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18198   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18199   # the default ld.so.conf also contains /usr/contrib/lib and
18200   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18201   # libtool to hard-code these into programs
18202   ;;
18203
18204 cygwin* | mingw* | pw32* | cegcc*)
18205   version_type=windows
18206   shrext_cmds=".dll"
18207   need_version=no
18208   need_lib_prefix=no
18209
18210   case $GCC,$host_os in
18211   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18212     library_names_spec='$libname.dll.a'
18213     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18214     postinstall_cmds='base_file=`basename \${file}`~
18215       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18216       dldir=$destdir/`dirname \$dlpath`~
18217       test -d \$dldir || mkdir -p \$dldir~
18218       $install_prog $dir/$dlname \$dldir/$dlname~
18219       chmod a+x \$dldir/$dlname~
18220       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18221         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18222       fi'
18223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18224       dlpath=$dir/\$dldll~
18225        $RM \$dlpath'
18226     shlibpath_overrides_runpath=yes
18227
18228     case $host_os in
18229     cygwin*)
18230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18232
18233       ;;
18234     mingw* | cegcc*)
18235       # MinGW DLLs use traditional 'lib' prefix
18236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18237       ;;
18238     pw32*)
18239       # pw32 DLLs use 'pw' prefix rather than 'lib'
18240       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18241       ;;
18242     esac
18243     ;;
18244
18245   *)
18246     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18247     ;;
18248   esac
18249   dynamic_linker='Win32 ld.exe'
18250   # FIXME: first we should search . and the directory the executable is in
18251   shlibpath_var=PATH
18252   ;;
18253
18254 darwin* | rhapsody*)
18255   dynamic_linker="$host_os dyld"
18256   version_type=darwin
18257   need_lib_prefix=no
18258   need_version=no
18259   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18260   soname_spec='${libname}${release}${major}$shared_ext'
18261   shlibpath_overrides_runpath=yes
18262   shlibpath_var=DYLD_LIBRARY_PATH
18263   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18264
18265   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18266   ;;
18267
18268 dgux*)
18269   version_type=linux
18270   need_lib_prefix=no
18271   need_version=no
18272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18273   soname_spec='${libname}${release}${shared_ext}$major'
18274   shlibpath_var=LD_LIBRARY_PATH
18275   ;;
18276
18277 freebsd1*)
18278   dynamic_linker=no
18279   ;;
18280
18281 freebsd* | dragonfly*)
18282   # DragonFly does not have aout.  When/if they implement a new
18283   # versioning mechanism, adjust this.
18284   if test -x /usr/bin/objformat; then
18285     objformat=`/usr/bin/objformat`
18286   else
18287     case $host_os in
18288     freebsd[123]*) objformat=aout ;;
18289     *) objformat=elf ;;
18290     esac
18291   fi
18292   version_type=freebsd-$objformat
18293   case $version_type in
18294     freebsd-elf*)
18295       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18296       need_version=no
18297       need_lib_prefix=no
18298       ;;
18299     freebsd-*)
18300       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18301       need_version=yes
18302       ;;
18303   esac
18304   shlibpath_var=LD_LIBRARY_PATH
18305   case $host_os in
18306   freebsd2*)
18307     shlibpath_overrides_runpath=yes
18308     ;;
18309   freebsd3.[01]* | freebsdelf3.[01]*)
18310     shlibpath_overrides_runpath=yes
18311     hardcode_into_libs=yes
18312     ;;
18313   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18314   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18315     shlibpath_overrides_runpath=no
18316     hardcode_into_libs=yes
18317     ;;
18318   *) # from 4.6 on, and DragonFly
18319     shlibpath_overrides_runpath=yes
18320     hardcode_into_libs=yes
18321     ;;
18322   esac
18323   ;;
18324
18325 gnu*)
18326   version_type=linux
18327   need_lib_prefix=no
18328   need_version=no
18329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18330   soname_spec='${libname}${release}${shared_ext}$major'
18331   shlibpath_var=LD_LIBRARY_PATH
18332   hardcode_into_libs=yes
18333   ;;
18334
18335 haiku*)
18336   version_type=linux
18337   need_lib_prefix=no
18338   need_version=no
18339   dynamic_linker="$host_os runtime_loader"
18340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18341   soname_spec='${libname}${release}${shared_ext}$major'
18342   shlibpath_var=LIBRARY_PATH
18343   shlibpath_overrides_runpath=yes
18344   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18345   hardcode_into_libs=yes
18346   ;;
18347
18348 hpux9* | hpux10* | hpux11*)
18349   # Give a soname corresponding to the major version so that dld.sl refuses to
18350   # link against other versions.
18351   version_type=sunos
18352   need_lib_prefix=no
18353   need_version=no
18354   case $host_cpu in
18355   ia64*)
18356     shrext_cmds='.so'
18357     hardcode_into_libs=yes
18358     dynamic_linker="$host_os dld.so"
18359     shlibpath_var=LD_LIBRARY_PATH
18360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362     soname_spec='${libname}${release}${shared_ext}$major'
18363     if test "X$HPUX_IA64_MODE" = X32; then
18364       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18365     else
18366       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18367     fi
18368     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18369     ;;
18370   hppa*64*)
18371     shrext_cmds='.sl'
18372     hardcode_into_libs=yes
18373     dynamic_linker="$host_os dld.sl"
18374     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18375     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377     soname_spec='${libname}${release}${shared_ext}$major'
18378     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18380     ;;
18381   *)
18382     shrext_cmds='.sl'
18383     dynamic_linker="$host_os dld.sl"
18384     shlibpath_var=SHLIB_PATH
18385     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387     soname_spec='${libname}${release}${shared_ext}$major'
18388     ;;
18389   esac
18390   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18391   postinstall_cmds='chmod 555 $lib'
18392   # or fails outright, so override atomically:
18393   install_override_mode=555
18394   ;;
18395
18396 interix[3-9]*)
18397   version_type=linux
18398   need_lib_prefix=no
18399   need_version=no
18400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18401   soname_spec='${libname}${release}${shared_ext}$major'
18402   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18403   shlibpath_var=LD_LIBRARY_PATH
18404   shlibpath_overrides_runpath=no
18405   hardcode_into_libs=yes
18406   ;;
18407
18408 irix5* | irix6* | nonstopux*)
18409   case $host_os in
18410     nonstopux*) version_type=nonstopux ;;
18411     *)
18412         if test "$lt_cv_prog_gnu_ld" = yes; then
18413                 version_type=linux
18414         else
18415                 version_type=irix
18416         fi ;;
18417   esac
18418   need_lib_prefix=no
18419   need_version=no
18420   soname_spec='${libname}${release}${shared_ext}$major'
18421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18422   case $host_os in
18423   irix5* | nonstopux*)
18424     libsuff= shlibsuff=
18425     ;;
18426   *)
18427     case $LD in # libtool.m4 will add one of these switches to LD
18428     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18429       libsuff= shlibsuff= libmagic=32-bit;;
18430     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18431       libsuff=32 shlibsuff=N32 libmagic=N32;;
18432     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18433       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18434     *) libsuff= shlibsuff= libmagic=never-match;;
18435     esac
18436     ;;
18437   esac
18438   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18439   shlibpath_overrides_runpath=no
18440   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18441   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18442   hardcode_into_libs=yes
18443   ;;
18444
18445 # No shared lib support for Linux oldld, aout, or coff.
18446 linux*oldld* | linux*aout* | linux*coff*)
18447   dynamic_linker=no
18448   ;;
18449
18450 # This must be Linux ELF.
18451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18452   version_type=linux
18453   need_lib_prefix=no
18454   need_version=no
18455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456   soname_spec='${libname}${release}${shared_ext}$major'
18457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18458   shlibpath_var=LD_LIBRARY_PATH
18459   shlibpath_overrides_runpath=no
18460
18461   # Some binutils ld are patched to set DT_RUNPATH
18462   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18463   $as_echo_n "(cached) " >&6
18464 else
18465   lt_cv_shlibpath_overrides_runpath=no
18466     save_LDFLAGS=$LDFLAGS
18467     save_libdir=$libdir
18468     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18469          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h.  */
18472
18473 int
18474 main ()
18475 {
18476
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 if ac_fn_cxx_try_link "$LINENO"; then :
18482   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18483   lt_cv_shlibpath_overrides_runpath=yes
18484 fi
18485 fi
18486 rm -f core conftest.err conftest.$ac_objext \
18487     conftest$ac_exeext conftest.$ac_ext
18488     LDFLAGS=$save_LDFLAGS
18489     libdir=$save_libdir
18490
18491 fi
18492
18493   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18494
18495   # This implies no fast_install, which is unacceptable.
18496   # Some rework will be needed to allow for fast_install
18497   # before this can be enabled.
18498   hardcode_into_libs=yes
18499
18500   # Add ABI-specific directories to the system library path.
18501   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18502
18503   # Append ld.so.conf contents to the search path
18504   if test -f /etc/ld.so.conf; then
18505     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' ' '`
18506     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18507
18508   fi
18509
18510   # We used to test for /lib/ld.so.1 and disable shared libraries on
18511   # powerpc, because MkLinux only supported shared libraries with the
18512   # GNU dynamic linker.  Since this was broken with cross compilers,
18513   # most powerpc-linux boxes support dynamic linking these days and
18514   # people can always --disable-shared, the test was removed, and we
18515   # assume the GNU/Linux dynamic linker is in use.
18516   dynamic_linker='GNU/Linux ld.so'
18517   ;;
18518
18519 netbsd*)
18520   version_type=sunos
18521   need_lib_prefix=no
18522   need_version=no
18523   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18526     dynamic_linker='NetBSD (a.out) ld.so'
18527   else
18528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529     soname_spec='${libname}${release}${shared_ext}$major'
18530     dynamic_linker='NetBSD ld.elf_so'
18531   fi
18532   shlibpath_var=LD_LIBRARY_PATH
18533   shlibpath_overrides_runpath=yes
18534   hardcode_into_libs=yes
18535   ;;
18536
18537 newsos6)
18538   version_type=linux
18539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540   shlibpath_var=LD_LIBRARY_PATH
18541   shlibpath_overrides_runpath=yes
18542   ;;
18543
18544 *nto* | *qnx*)
18545   version_type=qnx
18546   need_lib_prefix=no
18547   need_version=no
18548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549   soname_spec='${libname}${release}${shared_ext}$major'
18550   shlibpath_var=LD_LIBRARY_PATH
18551   shlibpath_overrides_runpath=no
18552   hardcode_into_libs=yes
18553   dynamic_linker='ldqnx.so'
18554   ;;
18555
18556 openbsd*)
18557   version_type=sunos
18558   sys_lib_dlsearch_path_spec="/usr/lib"
18559   need_lib_prefix=no
18560   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18561   case $host_os in
18562     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18563     *)                          need_version=no  ;;
18564   esac
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567   shlibpath_var=LD_LIBRARY_PATH
18568   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18569     case $host_os in
18570       openbsd2.[89] | openbsd2.[89].*)
18571         shlibpath_overrides_runpath=no
18572         ;;
18573       *)
18574         shlibpath_overrides_runpath=yes
18575         ;;
18576       esac
18577   else
18578     shlibpath_overrides_runpath=yes
18579   fi
18580   ;;
18581
18582 os2*)
18583   libname_spec='$name'
18584   shrext_cmds=".dll"
18585   need_lib_prefix=no
18586   library_names_spec='$libname${shared_ext} $libname.a'
18587   dynamic_linker='OS/2 ld.exe'
18588   shlibpath_var=LIBPATH
18589   ;;
18590
18591 osf3* | osf4* | osf5*)
18592   version_type=osf
18593   need_lib_prefix=no
18594   need_version=no
18595   soname_spec='${libname}${release}${shared_ext}$major'
18596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597   shlibpath_var=LD_LIBRARY_PATH
18598   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18599   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18600   ;;
18601
18602 rdos*)
18603   dynamic_linker=no
18604   ;;
18605
18606 solaris*)
18607   version_type=linux
18608   need_lib_prefix=no
18609   need_version=no
18610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611   soname_spec='${libname}${release}${shared_ext}$major'
18612   shlibpath_var=LD_LIBRARY_PATH
18613   shlibpath_overrides_runpath=yes
18614   hardcode_into_libs=yes
18615   # ldd complains unless libraries are executable
18616   postinstall_cmds='chmod +x $lib'
18617   ;;
18618
18619 sunos4*)
18620   version_type=sunos
18621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18623   shlibpath_var=LD_LIBRARY_PATH
18624   shlibpath_overrides_runpath=yes
18625   if test "$with_gnu_ld" = yes; then
18626     need_lib_prefix=no
18627   fi
18628   need_version=yes
18629   ;;
18630
18631 sysv4 | sysv4.3*)
18632   version_type=linux
18633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18634   soname_spec='${libname}${release}${shared_ext}$major'
18635   shlibpath_var=LD_LIBRARY_PATH
18636   case $host_vendor in
18637     sni)
18638       shlibpath_overrides_runpath=no
18639       need_lib_prefix=no
18640       runpath_var=LD_RUN_PATH
18641       ;;
18642     siemens)
18643       need_lib_prefix=no
18644       ;;
18645     motorola)
18646       need_lib_prefix=no
18647       need_version=no
18648       shlibpath_overrides_runpath=no
18649       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18650       ;;
18651   esac
18652   ;;
18653
18654 sysv4*MP*)
18655   if test -d /usr/nec ;then
18656     version_type=linux
18657     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658     soname_spec='$libname${shared_ext}.$major'
18659     shlibpath_var=LD_LIBRARY_PATH
18660   fi
18661   ;;
18662
18663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664   version_type=freebsd-elf
18665   need_lib_prefix=no
18666   need_version=no
18667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668   soname_spec='${libname}${release}${shared_ext}$major'
18669   shlibpath_var=LD_LIBRARY_PATH
18670   shlibpath_overrides_runpath=yes
18671   hardcode_into_libs=yes
18672   if test "$with_gnu_ld" = yes; then
18673     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18674   else
18675     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18676     case $host_os in
18677       sco3.2v5*)
18678         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18679         ;;
18680     esac
18681   fi
18682   sys_lib_dlsearch_path_spec='/usr/lib'
18683   ;;
18684
18685 tpf*)
18686   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18687   version_type=linux
18688   need_lib_prefix=no
18689   need_version=no
18690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691   shlibpath_var=LD_LIBRARY_PATH
18692   shlibpath_overrides_runpath=no
18693   hardcode_into_libs=yes
18694   ;;
18695
18696 uts4*)
18697   version_type=linux
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699   soname_spec='${libname}${release}${shared_ext}$major'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   ;;
18702
18703 *)
18704   dynamic_linker=no
18705   ;;
18706 esac
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18708 $as_echo "$dynamic_linker" >&6; }
18709 test "$dynamic_linker" = no && can_build_shared=no
18710
18711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18714 fi
18715
18716 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18717   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18718 fi
18719 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18720   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18721 fi
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
18757
18758
18759
18760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18762 hardcode_action_CXX=
18763 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18764    test -n "$runpath_var_CXX" ||
18765    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18766
18767   # We can hardcode non-existent directories.
18768   if test "$hardcode_direct_CXX" != no &&
18769      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18770      # have to relink, otherwise we might link with an installed library
18771      # when we should be linking with a yet-to-be-installed one
18772      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18773      test "$hardcode_minus_L_CXX" != no; then
18774     # Linking always hardcodes the temporary library directory.
18775     hardcode_action_CXX=relink
18776   else
18777     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18778     hardcode_action_CXX=immediate
18779   fi
18780 else
18781   # We cannot hardcode anything, or else we can only hardcode existing
18782   # directories.
18783   hardcode_action_CXX=unsupported
18784 fi
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18786 $as_echo "$hardcode_action_CXX" >&6; }
18787
18788 if test "$hardcode_action_CXX" = relink ||
18789    test "$inherit_rpath_CXX" = yes; then
18790   # Fast installation is not supported
18791   enable_fast_install=no
18792 elif test "$shlibpath_overrides_runpath" = yes ||
18793      test "$enable_shared" = no; then
18794   # Fast installation is not necessary
18795   enable_fast_install=needless
18796 fi
18797
18798
18799
18800
18801
18802
18803
18804   fi # test -n "$compiler"
18805
18806   CC=$lt_save_CC
18807   LDCXX=$LD
18808   LD=$lt_save_LD
18809   GCC=$lt_save_GCC
18810   with_gnu_ld=$lt_save_with_gnu_ld
18811   lt_cv_path_LDCXX=$lt_cv_path_LD
18812   lt_cv_path_LD=$lt_save_path_LD
18813   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18814   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18815 fi # test "$_lt_caught_CXX_error" != yes
18816
18817 ac_ext=c
18818 ac_cpp='$CPP $CPPFLAGS'
18819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835         ac_config_commands="$ac_config_commands libtool"
18836
18837
18838
18839
18840 # Only expand once:
18841
18842
18843
18844
18845
18846 # Configure libltdl
18847
18848
18849
18850
18851
18852
18853
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18855 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18856 if test "${libltdl_cv_shlibext+set}" = set; then :
18857   $as_echo_n "(cached) " >&6
18858 else
18859
18860 module=yes
18861 eval libltdl_cv_shlibext=$shrext_cmds
18862
18863 fi
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18865 $as_echo "$libltdl_cv_shlibext" >&6; }
18866 if test -n "$libltdl_cv_shlibext"; then
18867
18868 cat >>confdefs.h <<_ACEOF
18869 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18870 _ACEOF
18871
18872 fi
18873
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18875 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18876 if test "${lt_cv_module_path_var+set}" = set; then :
18877   $as_echo_n "(cached) " >&6
18878 else
18879   lt_cv_module_path_var="$shlibpath_var"
18880 fi
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18882 $as_echo "$lt_cv_module_path_var" >&6; }
18883 if test -n "$lt_cv_module_path_var"; then
18884
18885 cat >>confdefs.h <<_ACEOF
18886 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18887 _ACEOF
18888
18889 fi
18890
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18892 $as_echo_n "checking for the default library search path... " >&6; }
18893 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18894   $as_echo_n "(cached) " >&6
18895 else
18896   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18897 fi
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18899 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18900 if test -n "$lt_cv_sys_dlsearch_path"; then
18901   sys_dlsearch_path=
18902   for dir in $lt_cv_sys_dlsearch_path; do
18903     if test -z "$sys_dlsearch_path"; then
18904       sys_dlsearch_path="$dir"
18905     else
18906       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18907     fi
18908   done
18909
18910 cat >>confdefs.h <<_ACEOF
18911 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18912 _ACEOF
18913
18914 fi
18915
18916
18917 LT_DLLOADERS=
18918
18919
18920 ac_ext=c
18921 ac_cpp='$CPP $CPPFLAGS'
18922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18925
18926
18927 LIBADD_DLOPEN=
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18929 $as_echo_n "checking for library containing dlopen... " >&6; }
18930 if test "${ac_cv_search_dlopen+set}" = set; then :
18931   $as_echo_n "(cached) " >&6
18932 else
18933   ac_func_search_save_LIBS=$LIBS
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h.  */
18936
18937 /* Override any GCC internal prototype to avoid an error.
18938    Use char because int might match the return type of a GCC
18939    builtin and then its argument prototype would still apply.  */
18940 #ifdef __cplusplus
18941 extern "C"
18942 #endif
18943 char dlopen ();
18944 int
18945 main ()
18946 {
18947 return dlopen ();
18948   ;
18949   return 0;
18950 }
18951 _ACEOF
18952 for ac_lib in '' dl; do
18953   if test -z "$ac_lib"; then
18954     ac_res="none required"
18955   else
18956     ac_res=-l$ac_lib
18957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18958   fi
18959   if ac_fn_c_try_link "$LINENO"; then :
18960   ac_cv_search_dlopen=$ac_res
18961 fi
18962 rm -f core conftest.err conftest.$ac_objext \
18963     conftest$ac_exeext
18964   if test "${ac_cv_search_dlopen+set}" = set; then :
18965   break
18966 fi
18967 done
18968 if test "${ac_cv_search_dlopen+set}" = set; then :
18969
18970 else
18971   ac_cv_search_dlopen=no
18972 fi
18973 rm conftest.$ac_ext
18974 LIBS=$ac_func_search_save_LIBS
18975 fi
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18977 $as_echo "$ac_cv_search_dlopen" >&6; }
18978 ac_res=$ac_cv_search_dlopen
18979 if test "$ac_res" != no; then :
18980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18981
18982 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18983
18984         if test "$ac_cv_search_dlopen" != "none required" ; then
18985           LIBADD_DLOPEN="-ldl"
18986         fi
18987         libltdl_cv_lib_dl_dlopen="yes"
18988         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18989 else
18990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h.  */
18992 #if HAVE_DLFCN_H
18993 #  include <dlfcn.h>
18994 #endif
18995
18996 int
18997 main ()
18998 {
18999 dlopen(0, 0);
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 if ac_fn_c_try_link "$LINENO"; then :
19005
19006 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19007
19008             libltdl_cv_func_dlopen="yes"
19009             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19010 else
19011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19014   $as_echo_n "(cached) " >&6
19015 else
19016   ac_check_lib_save_LIBS=$LIBS
19017 LIBS="-lsvld  $LIBS"
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h.  */
19020
19021 /* Override any GCC internal prototype to avoid an error.
19022    Use char because int might match the return type of a GCC
19023    builtin and then its argument prototype would still apply.  */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 char dlopen ();
19028 int
19029 main ()
19030 {
19031 return dlopen ();
19032   ;
19033   return 0;
19034 }
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19037   ac_cv_lib_svld_dlopen=yes
19038 else
19039   ac_cv_lib_svld_dlopen=no
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext \
19042     conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19044 fi
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19047 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19048
19049 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19050
19051                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19052                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19053 fi
19054
19055 fi
19056 rm -f core conftest.err conftest.$ac_objext \
19057     conftest$ac_exeext conftest.$ac_ext
19058 fi
19059
19060 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19061 then
19062   lt_save_LIBS="$LIBS"
19063   LIBS="$LIBS $LIBADD_DLOPEN"
19064   for ac_func in dlerror
19065 do :
19066   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19067 if test "x$ac_cv_func_dlerror" = x""yes; then :
19068   cat >>confdefs.h <<_ACEOF
19069 #define HAVE_DLERROR 1
19070 _ACEOF
19071
19072 fi
19073 done
19074
19075   LIBS="$lt_save_LIBS"
19076 fi
19077
19078
19079 LIBADD_SHL_LOAD=
19080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19081 if test "x$ac_cv_func_shl_load" = x""yes; then :
19082
19083 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19084
19085         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19086 else
19087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19088 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19089 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19090   $as_echo_n "(cached) " >&6
19091 else
19092   ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-ldld  $LIBS"
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h.  */
19096
19097 /* Override any GCC internal prototype to avoid an error.
19098    Use char because int might match the return type of a GCC
19099    builtin and then its argument prototype would still apply.  */
19100 #ifdef __cplusplus
19101 extern "C"
19102 #endif
19103 char shl_load ();
19104 int
19105 main ()
19106 {
19107 return shl_load ();
19108   ;
19109   return 0;
19110 }
19111 _ACEOF
19112 if ac_fn_c_try_link "$LINENO"; then :
19113   ac_cv_lib_dld_shl_load=yes
19114 else
19115   ac_cv_lib_dld_shl_load=no
19116 fi
19117 rm -f core conftest.err conftest.$ac_objext \
19118     conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19120 fi
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19122 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19123 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19124
19125 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19126
19127             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19128             LIBADD_SHL_LOAD="-ldld"
19129 fi
19130
19131 fi
19132
19133
19134
19135 case $host_os in
19136 darwin[1567].*)
19137 # We only want this for pre-Mac OS X 10.4.
19138   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19139 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19140
19141 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19142
19143         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19144 fi
19145
19146   ;;
19147 beos*)
19148   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19149   ;;
19150 cygwin* | mingw* | os2* | pw32*)
19151   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19152 "
19153 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19154   ac_have_decl=1
19155 else
19156   ac_have_decl=0
19157 fi
19158
19159 cat >>confdefs.h <<_ACEOF
19160 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19161 _ACEOF
19162
19163   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19164   ;;
19165 esac
19166
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19168 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19169 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19170   $as_echo_n "(cached) " >&6
19171 else
19172   ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-ldld  $LIBS"
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h.  */
19176
19177 /* Override any GCC internal prototype to avoid an error.
19178    Use char because int might match the return type of a GCC
19179    builtin and then its argument prototype would still apply.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 char dld_link ();
19184 int
19185 main ()
19186 {
19187 return dld_link ();
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_link "$LINENO"; then :
19193   ac_cv_lib_dld_dld_link=yes
19194 else
19195   ac_cv_lib_dld_dld_link=no
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext \
19198     conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19200 fi
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19202 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19203 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19204
19205 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19206
19207                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19208 fi
19209
19210
19211
19212
19213 LT_DLPREOPEN=
19214 if test -n "$LT_DLLOADERS"
19215 then
19216   for lt_loader in $LT_DLLOADERS; do
19217     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19218   done
19219
19220 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19221
19222 fi
19223
19224
19225 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19226
19227
19228 ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19236 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19237 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19238   $as_echo_n "(cached) " >&6
19239 else
19240   lt_cv_sys_symbol_underscore=no
19241   cat > conftest.$ac_ext <<_LT_EOF
19242 void nm_test_func(){}
19243 int main(){nm_test_func;return 0;}
19244 _LT_EOF
19245   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19246   (eval $ac_compile) 2>&5
19247   ac_status=$?
19248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19249   test $ac_status = 0; }; then
19250     # Now try to grab the symbols.
19251     ac_nlist=conftest.nm
19252     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19253   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19254   ac_status=$?
19255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19256   test $ac_status = 0; } && test -s "$ac_nlist"; then
19257       # See whether the symbols have a leading underscore.
19258       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19259         lt_cv_sys_symbol_underscore=yes
19260       else
19261         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19262           :
19263         else
19264           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19265         fi
19266       fi
19267     else
19268       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19269     fi
19270   else
19271     echo "configure: failed program was:" >&5
19272     cat conftest.c >&5
19273   fi
19274   rm -rf conftest*
19275
19276 fi
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19278 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19279   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19280
19281
19282 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19283   if test x"$libltdl_cv_func_dlopen" = xyes ||
19284      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19286 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19287 if test "${libltdl_cv_need_uscore+set}" = set; then :
19288   $as_echo_n "(cached) " >&6
19289 else
19290   libltdl_cv_need_uscore=unknown
19291           save_LIBS="$LIBS"
19292           LIBS="$LIBS $LIBADD_DLOPEN"
19293           if test "$cross_compiling" = yes; then :
19294   libltdl_cv_need_uscore=cross
19295 else
19296   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19297   lt_status=$lt_dlunknown
19298   cat > conftest.$ac_ext <<_LT_EOF
19299 #line $LINENO "configure"
19300 #include "confdefs.h"
19301
19302 #if HAVE_DLFCN_H
19303 #include <dlfcn.h>
19304 #endif
19305
19306 #include <stdio.h>
19307
19308 #ifdef RTLD_GLOBAL
19309 #  define LT_DLGLOBAL           RTLD_GLOBAL
19310 #else
19311 #  ifdef DL_GLOBAL
19312 #    define LT_DLGLOBAL         DL_GLOBAL
19313 #  else
19314 #    define LT_DLGLOBAL         0
19315 #  endif
19316 #endif
19317
19318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319    find out it does not work in some platform. */
19320 #ifndef LT_DLLAZY_OR_NOW
19321 #  ifdef RTLD_LAZY
19322 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19323 #  else
19324 #    ifdef DL_LAZY
19325 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19326 #    else
19327 #      ifdef RTLD_NOW
19328 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19329 #      else
19330 #        ifdef DL_NOW
19331 #          define LT_DLLAZY_OR_NOW      DL_NOW
19332 #        else
19333 #          define LT_DLLAZY_OR_NOW      0
19334 #        endif
19335 #      endif
19336 #    endif
19337 #  endif
19338 #endif
19339
19340 /* When -fvisbility=hidden is used, assume the code has been annotated
19341    correspondingly for the symbols needed.  */
19342 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343 void fnord () __attribute__((visibility("default")));
19344 #endif
19345
19346 void fnord () { int i=42; }
19347 int main ()
19348 {
19349   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350   int status = $lt_dlunknown;
19351
19352   if (self)
19353     {
19354       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19355       else
19356         {
19357           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19358           else puts (dlerror ());
19359         }
19360       /* dlclose (self); */
19361     }
19362   else
19363     puts (dlerror ());
19364
19365   return status;
19366 }
19367 _LT_EOF
19368   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19369   (eval $ac_link) 2>&5
19370   ac_status=$?
19371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19373     (./conftest; exit; ) >&5 2>/dev/null
19374     lt_status=$?
19375     case x$lt_status in
19376       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19377       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19378       x$lt_dlunknown|x*)  ;;
19379     esac
19380   else :
19381     # compilation failed
19382
19383   fi
19384 fi
19385 rm -fr conftest*
19386
19387           LIBS="$save_LIBS"
19388
19389 fi
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19391 $as_echo "$libltdl_cv_need_uscore" >&6; }
19392   fi
19393 fi
19394
19395 if test x"$libltdl_cv_need_uscore" = xyes; then
19396
19397 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19398
19399 fi
19400
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19402 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19403 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19404   $as_echo_n "(cached) " >&6
19405 else
19406   # PORTME does your system automatically load deplibs for dlopen?
19407   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19408   # For now, we just catch OSes we know something about -- in the
19409   # future, we'll try test this programmatically.
19410   lt_cv_sys_dlopen_deplibs=unknown
19411   case $host_os in
19412   aix3*|aix4.1.*|aix4.2.*)
19413     # Unknown whether this is true for these versions of AIX, but
19414     # we want this `case' here to explicitly catch those versions.
19415     lt_cv_sys_dlopen_deplibs=unknown
19416     ;;
19417   aix[4-9]*)
19418     lt_cv_sys_dlopen_deplibs=yes
19419     ;;
19420   amigaos*)
19421     case $host_cpu in
19422     powerpc)
19423       lt_cv_sys_dlopen_deplibs=no
19424       ;;
19425     esac
19426     ;;
19427   darwin*)
19428     # Assuming the user has installed a libdl from somewhere, this is true
19429     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19430     lt_cv_sys_dlopen_deplibs=yes
19431     ;;
19432   freebsd* | dragonfly*)
19433     lt_cv_sys_dlopen_deplibs=yes
19434     ;;
19435   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19436     # GNU and its variants, using gnu ld.so (Glibc)
19437     lt_cv_sys_dlopen_deplibs=yes
19438     ;;
19439   hpux10*|hpux11*)
19440     lt_cv_sys_dlopen_deplibs=yes
19441     ;;
19442   interix*)
19443     lt_cv_sys_dlopen_deplibs=yes
19444     ;;
19445   irix[12345]*|irix6.[01]*)
19446     # Catch all versions of IRIX before 6.2, and indicate that we don't
19447     # know how it worked for any of those versions.
19448     lt_cv_sys_dlopen_deplibs=unknown
19449     ;;
19450   irix*)
19451     # The case above catches anything before 6.2, and it's known that
19452     # at 6.2 and later dlopen does load deplibs.
19453     lt_cv_sys_dlopen_deplibs=yes
19454     ;;
19455   netbsd*)
19456     lt_cv_sys_dlopen_deplibs=yes
19457     ;;
19458   openbsd*)
19459     lt_cv_sys_dlopen_deplibs=yes
19460     ;;
19461   osf[1234]*)
19462     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19463     # it did *not* use an RPATH in a shared library to find objects the
19464     # library depends on, so we explicitly say `no'.
19465     lt_cv_sys_dlopen_deplibs=no
19466     ;;
19467   osf5.0|osf5.0a|osf5.1)
19468     # dlopen *does* load deplibs and with the right loader patch applied
19469     # it even uses RPATH in a shared library to search for shared objects
19470     # that the library depends on, but there's no easy way to know if that
19471     # patch is installed.  Since this is the case, all we can really
19472     # say is unknown -- it depends on the patch being installed.  If
19473     # it is, this changes to `yes'.  Without it, it would be `no'.
19474     lt_cv_sys_dlopen_deplibs=unknown
19475     ;;
19476   osf*)
19477     # the two cases above should catch all versions of osf <= 5.1.  Read
19478     # the comments above for what we know about them.
19479     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19480     # is used to find them so we can finally say `yes'.
19481     lt_cv_sys_dlopen_deplibs=yes
19482     ;;
19483   qnx*)
19484     lt_cv_sys_dlopen_deplibs=yes
19485     ;;
19486   solaris*)
19487     lt_cv_sys_dlopen_deplibs=yes
19488     ;;
19489   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19490     libltdl_cv_sys_dlopen_deplibs=yes
19491     ;;
19492   esac
19493
19494 fi
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19496 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19497 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19498
19499 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19500
19501 fi
19502
19503 :
19504
19505 for ac_header in argz.h
19506 do :
19507   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19508 "
19509 if test "x$ac_cv_header_argz_h" = x""yes; then :
19510   cat >>confdefs.h <<_ACEOF
19511 #define HAVE_ARGZ_H 1
19512 _ACEOF
19513
19514 fi
19515
19516 done
19517
19518
19519 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19520 #  include <argz.h>
19521 #endif
19522 "
19523 if test "x$ac_cv_type_error_t" = x""yes; then :
19524
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_ERROR_T 1
19527 _ACEOF
19528
19529
19530 else
19531
19532 $as_echo "#define error_t int" >>confdefs.h
19533
19534
19535 $as_echo "#define __error_t_defined 1" >>confdefs.h
19536
19537 fi
19538
19539
19540 ARGZ_H=
19541 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19542         argz_next argz_stringify
19543 do :
19544   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19547   cat >>confdefs.h <<_ACEOF
19548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549 _ACEOF
19550
19551 else
19552   ARGZ_H=argz.h;
19553
19554   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19555
19556 fi
19557 done
19558
19559
19560 if test -z "$ARGZ_H"; then :
19561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19562 $as_echo_n "checking if argz actually works... " >&6; }
19563 if test "${lt_cv_sys_argz_works+set}" = set; then :
19564   $as_echo_n "(cached) " >&6
19565 else
19566   case $host_os in #(
19567          *cygwin*)
19568            lt_cv_sys_argz_works=no
19569            if test "$cross_compiling" != no; then
19570              lt_cv_sys_argz_works="guessing no"
19571            else
19572              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19573              save_IFS=$IFS
19574              IFS=-.
19575              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19576              IFS=$save_IFS
19577              lt_os_major=${2-0}
19578              lt_os_minor=${3-0}
19579              lt_os_micro=${4-0}
19580              if test "$lt_os_major" -gt 1 \
19581                 || { test "$lt_os_major" -eq 1 \
19582                   && { test "$lt_os_minor" -gt 5 \
19583                     || { test "$lt_os_minor" -eq 5 \
19584                       && test "$lt_os_micro" -gt 24; }; }; }; then
19585                lt_cv_sys_argz_works=yes
19586              fi
19587            fi
19588            ;; #(
19589          *) lt_cv_sys_argz_works=yes ;;
19590          esac
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19593 $as_echo "$lt_cv_sys_argz_works" >&6; }
19594      if test $lt_cv_sys_argz_works = yes; then :
19595
19596 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19597
19598 else
19599   ARGZ_H=argz.h
19600
19601
19602   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19603
19604 fi
19605 fi
19606
19607
19608
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19610 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19611 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19612   $as_echo_n "(cached) " >&6
19613 else
19614   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19615     libltdl_cv_preloaded_symbols=yes
19616   else
19617     libltdl_cv_preloaded_symbols=no
19618   fi
19619
19620 fi
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19622 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19623 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19624
19625 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19626
19627 fi
19628
19629 # Set options
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641 # Check whether --with-included_ltdl was given.
19642 if test "${with_included_ltdl+set}" = set; then :
19643   withval=$with_included_ltdl;
19644 fi
19645
19646
19647 if test "x$with_included_ltdl" != xyes; then
19648   # We are not being forced to use the included libltdl sources, so
19649   # decide whether there is a useful installed version we can use.
19650   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19651
19652 "
19653 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19654   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19655             #include <ltdl.h>
19656 "
19657 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19659 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19660 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19661   $as_echo_n "(cached) " >&6
19662 else
19663   ac_check_lib_save_LIBS=$LIBS
19664 LIBS="-lltdl  $LIBS"
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h.  */
19667
19668 /* Override any GCC internal prototype to avoid an error.
19669    Use char because int might match the return type of a GCC
19670    builtin and then its argument prototype would still apply.  */
19671 #ifdef __cplusplus
19672 extern "C"
19673 #endif
19674 char lt_dladvise_preload ();
19675 int
19676 main ()
19677 {
19678 return lt_dladvise_preload ();
19679   ;
19680   return 0;
19681 }
19682 _ACEOF
19683 if ac_fn_c_try_link "$LINENO"; then :
19684   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19685 else
19686   ac_cv_lib_ltdl_lt_dladvise_preload=no
19687 fi
19688 rm -f core conftest.err conftest.$ac_objext \
19689     conftest$ac_exeext conftest.$ac_ext
19690 LIBS=$ac_check_lib_save_LIBS
19691 fi
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19693 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19694 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19695   with_included_ltdl=no
19696 else
19697   with_included_ltdl=yes
19698 fi
19699
19700 else
19701   with_included_ltdl=yes
19702 fi
19703
19704 else
19705   with_included_ltdl=yes
19706 fi
19707
19708
19709 fi
19710
19711
19712
19713
19714 # Check whether --with-ltdl_include was given.
19715 if test "${with_ltdl_include+set}" = set; then :
19716   withval=$with_ltdl_include;
19717 fi
19718
19719
19720 if test -n "$with_ltdl_include"; then
19721   if test -f "$with_ltdl_include/ltdl.h"; then :
19722   else
19723     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19724   fi
19725 else
19726   with_ltdl_include=no
19727 fi
19728
19729
19730 # Check whether --with-ltdl_lib was given.
19731 if test "${with_ltdl_lib+set}" = set; then :
19732   withval=$with_ltdl_lib;
19733 fi
19734
19735
19736 if test -n "$with_ltdl_lib"; then
19737   if test -f "$with_ltdl_lib/libltdl.la"; then :
19738   else
19739     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19740   fi
19741 else
19742   with_ltdl_lib=no
19743 fi
19744
19745 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19746   ,yes,no,no,)
19747         case $enable_ltdl_convenience in
19748   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19749   "") enable_ltdl_convenience=yes
19750       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19751 esac
19752 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19753 LTDLDEPS=$LIBLTDL
19754 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19755
19756
19757
19758
19759
19760 # For backwards non-gettext consistent compatibility...
19761 INCLTDL="$LTDLINCL"
19762
19763
19764         ;;
19765   ,no,no,no,)
19766         # If the included ltdl is not to be used, then use the
19767         # preinstalled libltdl we found.
19768
19769 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19770
19771         LIBLTDL=-lltdl
19772         LTDLDEPS=
19773         LTDLINCL=
19774         ;;
19775   ,no*,no,*)
19776         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19777         ;;
19778   *)    with_included_ltdl=no
19779         LIBLTDL="-L$with_ltdl_lib -lltdl"
19780         LTDLDEPS=
19781         LTDLINCL="-I$with_ltdl_include"
19782         ;;
19783 esac
19784 INCLTDL="$LTDLINCL"
19785
19786 # Report our decision...
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19788 $as_echo_n "checking where to find libltdl headers... " >&6; }
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19790 $as_echo "$LTDLINCL" >&6; }
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19792 $as_echo_n "checking where to find libltdl library... " >&6; }
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19794 $as_echo "$LIBLTDL" >&6; }
19795
19796
19797
19798 # Check whether --enable-ltdl-install was given.
19799 if test "${enable_ltdl_install+set}" = set; then :
19800   enableval=$enable_ltdl_install;
19801 fi
19802
19803
19804 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19805   *yes*) ;;
19806   *) enable_ltdl_convenience=yes ;;
19807 esac
19808
19809  if test x"${enable_ltdl_install-no}" != xno; then
19810   INSTALL_LTDL_TRUE=
19811   INSTALL_LTDL_FALSE='#'
19812 else
19813   INSTALL_LTDL_TRUE='#'
19814   INSTALL_LTDL_FALSE=
19815 fi
19816
19817   if test x"${enable_ltdl_convenience-no}" != xno; then
19818   CONVENIENCE_LTDL_TRUE=
19819   CONVENIENCE_LTDL_FALSE='#'
19820 else
19821   CONVENIENCE_LTDL_TRUE='#'
19822   CONVENIENCE_LTDL_FALSE=
19823 fi
19824
19825
19826
19827
19828
19829
19830 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19831 # the user used.  This is so that ltdl.h can pick up the parent projects
19832 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19833 # definitions required by ltdl.c.
19834 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19835
19836
19837
19838 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19839 do :
19840   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19842 "
19843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19844   cat >>confdefs.h <<_ACEOF
19845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19846 _ACEOF
19847
19848 fi
19849
19850 done
19851
19852
19853 for ac_func in closedir opendir readdir
19854 do :
19855   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19858   cat >>confdefs.h <<_ACEOF
19859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860 _ACEOF
19861
19862 else
19863
19864
19865   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19866
19867 fi
19868 done
19869
19870 for ac_func in strlcat strlcpy
19871 do :
19872   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19874 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19875   cat >>confdefs.h <<_ACEOF
19876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877 _ACEOF
19878
19879 else
19880
19881
19882   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19883
19884 fi
19885 done
19886
19887
19888
19889 cat >>confdefs.h <<_ACEOF
19890 #define LT_LIBEXT "$libext"
19891 _ACEOF
19892
19893
19894 name=ltdl
19895 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19896
19897
19898
19899
19900
19901
19902
19903
19904 # Only expand once:
19905
19906
19907
19908 # Check to see if building shared libraries
19909 libtool_build_shared_libs='no'
19910 if test "$enable_shared" = 'yes'; then
19911     libtool_build_shared_libs='yes'
19912 fi
19913
19914 # Check to see if building static libraries
19915 libtool_build_static_libs='no'
19916 if test "$enable_static" = 'yes'; then
19917     libtool_build_static_libs='yes'
19918 fi
19919
19920  if test "${libtool_build_shared_libs}" = 'yes'; then
19921   WITH_SHARED_LIBS_TRUE=
19922   WITH_SHARED_LIBS_FALSE='#'
19923 else
19924   WITH_SHARED_LIBS_TRUE='#'
19925   WITH_SHARED_LIBS_FALSE=
19926 fi
19927
19928 #
19929 # Enable support for building loadable modules
19930 #
19931
19932 # Check whether --with-modules was given.
19933 if test "${with_modules+set}" = set; then :
19934   withval=$with_modules; with_modules=$withval
19935 else
19936   with_modules='no'
19937 fi
19938
19939
19940 # Only allow building loadable modules if we are building shared libraries
19941 if test "$with_modules" != 'no' ; then
19942     if test "$libtool_build_shared_libs" = 'no'; then
19943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19944 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19945         with_modules='no'
19946     fi
19947 fi
19948 if test "$with_modules" != 'no'; then
19949
19950 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19951
19952 fi
19953  if test "$with_modules" != 'no'; then
19954   WITH_MODULES_TRUE=
19955   WITH_MODULES_FALSE='#'
19956 else
19957   WITH_MODULES_TRUE='#'
19958   WITH_MODULES_FALSE=
19959 fi
19960
19961
19962 # Enable building/use of libltdl if we are building shared libraries regardless
19963 # of whether modules are built or not.
19964 with_ltdl='no'
19965 if test "$libtool_build_shared_libs" != 'no'; then
19966     with_ltdl='yes'
19967 fi
19968
19969  if test "$with_ltdl" != 'no'; then
19970   WITH_LTDL_TRUE=
19971   WITH_LTDL_FALSE='#'
19972 else
19973   WITH_LTDL_TRUE='#'
19974   WITH_LTDL_FALSE=
19975 fi
19976
19977 if test "$with_ltdl" != 'no'; then
19978
19979 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19980
19981
19982     # Set DLLDFLAGS
19983     if test X"$enable_shared" = Xyes; then
19984         DLLDFLAGS=-export-dynamic
19985
19986     fi
19987 fi
19988
19989 # Enable build using delegate libraries built in subdirectories rather than installed
19990 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
19991 # Check whether --enable-delegate-build was given.
19992 if test "${enable_delegate_build+set}" = set; then :
19993   enableval=$enable_delegate_build; enable_delegate_build=$enableval
19994 else
19995   enable_delegate_build='no'
19996 fi
19997
19998
19999 # Check whether --enable-deprecated was given.
20000 if test "${enable_deprecated+set}" = set; then :
20001   enableval=$enable_deprecated; enable_deprecated=$enableval
20002 else
20003   enable_deprecated='no'
20004 fi
20005
20006
20007 if test "$enable_deprecated" = 'yes'; then
20008
20009 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20010
20011 else
20012   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20013 fi
20014
20015 # Build a version of ImageMagick which operates uninstalled.
20016 # Used to build distributions located via MAGICK_HOME / executable path
20017 # Check whether --enable-installed was given.
20018 if test "${enable_installed+set}" = set; then :
20019   enableval=$enable_installed; enable_installed=$enableval
20020 else
20021   enable_installed='yes'
20022 fi
20023
20024
20025 if test "$enable_installed" = 'yes'; then
20026
20027 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20028
20029 else
20030     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20031 fi
20032
20033 # Permit enciphering and deciphering image pixels.
20034 # Check whether --enable-cipher was given.
20035 if test "${enable_cipher+set}" = set; then :
20036   enableval=$enable_cipher; enable_cipher=$enableval
20037 else
20038   enable_cipher='yes'
20039 fi
20040
20041
20042 if test "$enable_cipher" = 'yes'; then
20043
20044 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20045
20046 fi
20047
20048 # Build an embeddable version of ImageMagick.
20049 # Check whether --enable-embeddable was given.
20050 if test "${enable_embeddable+set}" = set; then :
20051   enableval=$enable_embeddable; enable_embeddable=$enableval
20052 else
20053   enable_embeddable='no'
20054 fi
20055
20056
20057 if test "$enable_embeddable" = 'yes'; then
20058
20059 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20060
20061 fi
20062
20063 # Build a high dynamic range version of ImageMagick.
20064 # Check whether --enable-hdri was given.
20065 if test "${enable_hdri+set}" = set; then :
20066   enableval=$enable_hdri; enable_hdri=$enableval
20067 else
20068   enable_hdri='no'
20069 fi
20070
20071
20072 MAGICK_HDRI=""
20073 if test "$enable_hdri" = 'yes'; then
20074     MAGICK_HDRI="HDRI"
20075
20076 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20077
20078     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20079 fi
20080
20081 # Build a version of ImageMagick with assert statements.
20082 # Check whether --enable-assert was given.
20083 if test "${enable_assert+set}" = set; then :
20084   enableval=$enable_assert; enable_assert=$enableval
20085 else
20086   enable_assert='yes'
20087 fi
20088
20089
20090 if test "$enable_assert" = 'no'; then
20091
20092 $as_echo "#define NDEBUG 1" >>confdefs.h
20093
20094 fi
20095
20096 # Add configure option --enable-maintainer-mode which enables dependency
20097 # checking and generation useful to package maintainers.  This is made an
20098 # option to avoid confusing end users.
20099
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20101 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20102     # Check whether --enable-maintainer-mode was given.
20103 if test "${enable_maintainer_mode+set}" = set; then :
20104   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20105 else
20106   USE_MAINTAINER_MODE=no
20107 fi
20108
20109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20110 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20111    if test $USE_MAINTAINER_MODE = yes; then
20112   MAINTAINER_MODE_TRUE=
20113   MAINTAINER_MODE_FALSE='#'
20114 else
20115   MAINTAINER_MODE_TRUE='#'
20116   MAINTAINER_MODE_FALSE=
20117 fi
20118
20119   MAINT=$MAINTAINER_MODE_TRUE
20120
20121
20122
20123
20124 # Enable ccmalloc memory debugging support
20125 # Check whether --enable-ccmalloc was given.
20126 if test "${enable_ccmalloc+set}" = set; then :
20127   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20128 else
20129   enable_ccmalloc='no'
20130 fi
20131
20132
20133 # Enable Electric Fence memory debugging support
20134 # Check whether --enable-efence was given.
20135 if test "${enable_efence+set}" = set; then :
20136   enableval=$enable_efence; enable_efence=$enableval
20137 else
20138   enable_efence='no'
20139 fi
20140
20141
20142 # Enable prof-based profiling support
20143 # Check whether --enable-prof was given.
20144 if test "${enable_prof+set}" = set; then :
20145   enableval=$enable_prof; enable_prof=$enableval
20146 else
20147   enable_prof='no'
20148 fi
20149
20150
20151 # Enable gprof-based profiling support
20152 # Check whether --enable-gprof was given.
20153 if test "${enable_gprof+set}" = set; then :
20154   enableval=$enable_gprof; enable_gprof=$enableval
20155 else
20156   enable_gprof='no'
20157 fi
20158
20159
20160 # Enable gcov-based profiling support
20161 # Check whether --enable-gcov was given.
20162 if test "${enable_gcov+set}" = set; then :
20163   enableval=$enable_gcov; enable_gcov=$enableval
20164 else
20165   enable_gcov='no'
20166 fi
20167
20168
20169 enable_profiling='no'
20170 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20171     enable_profiling='yes'
20172     if test "$libtool_build_shared_libs" = 'yes'; then
20173         echo "Warning: Can not profile code using shared libraries"
20174     fi
20175 fi
20176
20177 # Magick API method prefix
20178
20179 # Check whether --with-method-prefix was given.
20180 if test "${with_method_prefix+set}" = set; then :
20181   withval=$with_method_prefix; with_method_prefix=$enableval
20182 else
20183   with_method_prefix=''
20184 fi
20185
20186
20187 if test "$with_method_prefix" != ''; then
20188
20189 cat >>confdefs.h <<_ACEOF
20190 #define NAMESPACE_PREFIX $with_method_prefix
20191 _ACEOF
20192
20193 fi
20194
20195 # Number of bits in a Quantum
20196
20197 # Check whether --with-quantum-depth was given.
20198 if test "${with_quantum_depth+set}" = set; then :
20199   withval=$with_quantum_depth; with_quantum_depth=$withval
20200 else
20201   with_quantum_depth=16
20202 fi
20203
20204
20205 if test "$with_quantum_depth" != '8'; then
20206     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20207 fi
20208
20209 case "${with_quantum_depth}" in
20210     8 ) ;;
20211     16 ) ;;
20212     32 ) ;;
20213     64 ) ;;
20214     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20215 esac
20216 if test "$enable_hdri" = 'yes'; then
20217   with_quantum_depth=16
20218 fi
20219 QUANTUM_DEPTH="$with_quantum_depth"
20220
20221 cat >>confdefs.h <<_ACEOF
20222 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20223 _ACEOF
20224
20225
20226 # Set pixel cache threshold
20227
20228 # Check whether --with-cache was given.
20229 if test "${with_cache+set}" = set; then :
20230   withval=$with_cache; with_cache=$withval
20231 else
20232   with_cache=''
20233 fi
20234
20235
20236 if test "$with_cache" != ''; then
20237
20238 cat >>confdefs.h <<_ACEOF
20239 #define PixelCacheThreshold $with_cache
20240 _ACEOF
20241
20242     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20243 fi
20244
20245 # Disable/Enable support for full delegate paths
20246
20247 # Check whether --with-frozenpaths was given.
20248 if test "${with_frozenpaths+set}" = set; then :
20249   withval=$with_frozenpaths; with_frozenpaths=$withval
20250 else
20251   with_frozenpaths='no'
20252 fi
20253
20254
20255 # Enable build/install of Magick++
20256
20257 # Check whether --with-magick-plus-plus was given.
20258 if test "${with_magick_plus_plus+set}" = set; then :
20259   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20260 else
20261   with_magick_plus_plus='yes'
20262 fi
20263
20264
20265 # Disable build/install of PerlMagick.
20266
20267 # Check whether --with-perl was given.
20268 if test "${with_perl+set}" = set; then :
20269   withval=$with_perl; with_perl=$withval
20270 else
20271   with_perl='no'
20272 fi
20273
20274
20275 # Options to pass when configuring PerlMagick
20276
20277 # Check whether --with-perl-options was given.
20278 if test "${with_perl_options+set}" = set; then :
20279   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20280 fi
20281
20282
20283
20284 # Enable umem, object-caching memory allocation library.
20285
20286 # Check whether --with-umem was given.
20287 if test "${with_umem+set}" = set; then :
20288   withval=$with_umem; with_umem=$withval
20289 else
20290   with_umem='no'
20291 fi
20292
20293 if test "$with_umem" != 'yes' ; then
20294     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20295 fi
20296
20297 #
20298 # Specify path to shared libstdc++ if not in normal location
20299 #
20300
20301 # Check whether --with-libstdc was given.
20302 if test "${with_libstdc+set}" = set; then :
20303   withval=$with_libstdc; with_libstdc=$withval
20304 else
20305   with_libstdc=''
20306 fi
20307
20308
20309 if test "$with_libstdc" != ''; then
20310     if test -d "$with_libstdc"; then
20311         LIBSTDCLDFLAGS="-L$with_libstdc"
20312     fi
20313 fi
20314
20315
20316 # Does gcc required -traditional?
20317 if test $ac_cv_c_compiler_gnu = yes; then
20318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20319 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20320 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20321   $as_echo_n "(cached) " >&6
20322 else
20323     ac_pattern="Autoconf.*'x'"
20324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h.  */
20326 #include <sgtty.h>
20327 Autoconf TIOCGETP
20328 _ACEOF
20329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20330   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20331   ac_cv_prog_gcc_traditional=yes
20332 else
20333   ac_cv_prog_gcc_traditional=no
20334 fi
20335 rm -f conftest*
20336
20337
20338   if test $ac_cv_prog_gcc_traditional = no; then
20339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h.  */
20341 #include <termio.h>
20342 Autoconf TCGETA
20343 _ACEOF
20344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20345   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20346   ac_cv_prog_gcc_traditional=yes
20347 fi
20348 rm -f conftest*
20349
20350   fi
20351 fi
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20353 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20354   if test $ac_cv_prog_gcc_traditional = yes; then
20355     CC="$CC -traditional"
20356   fi
20357 fi
20358
20359
20360 ########
20361 #
20362 # Set defines required to build DLLs and modules using MinGW
20363 #
20364 ########
20365 # These options are set for multi-thread DLL module build
20366 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20367 #  module:              _DLL
20368 #  executable/Magick++: _DLL _MAGICKMOD_
20369 MODULE_EXTRA_CPPFLAGS=''
20370 LIBRARY_EXTRA_CPPFLAGS=''
20371 if test "${native_win32_build}" = 'yes'; then
20372     if test "${libtool_build_shared_libs}" = 'yes'; then
20373         CPPFLAGS="$CPPFLAGS -D_DLL"
20374         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20375         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20376         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377         if test "$with_modules" = 'yes'; then
20378             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20379         else
20380             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20381         fi
20382     else
20383         CPPFLAGS="$CPPFLAGS -D_LIB"
20384         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20385         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20386     fi
20387     if test "$with_threads" = 'yes'; then
20388          CPPFLAGS="$CPPFLAGS -D_MT"
20389          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20390          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20391     fi
20392 fi
20393
20394
20395
20396 # Check standard headers
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20398 $as_echo_n "checking for ANSI C header files... " >&6; }
20399 if test "${ac_cv_header_stdc+set}" = set; then :
20400   $as_echo_n "(cached) " >&6
20401 else
20402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h.  */
20404 #include <stdlib.h>
20405 #include <stdarg.h>
20406 #include <string.h>
20407 #include <float.h>
20408
20409 int
20410 main ()
20411 {
20412
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 if ac_fn_c_try_compile "$LINENO"; then :
20418   ac_cv_header_stdc=yes
20419 else
20420   ac_cv_header_stdc=no
20421 fi
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20423
20424 if test $ac_cv_header_stdc = yes; then
20425   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h.  */
20428 #include <string.h>
20429
20430 _ACEOF
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432   $EGREP "memchr" >/dev/null 2>&1; then :
20433
20434 else
20435   ac_cv_header_stdc=no
20436 fi
20437 rm -f conftest*
20438
20439 fi
20440
20441 if test $ac_cv_header_stdc = yes; then
20442   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h.  */
20445 #include <stdlib.h>
20446
20447 _ACEOF
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449   $EGREP "free" >/dev/null 2>&1; then :
20450
20451 else
20452   ac_cv_header_stdc=no
20453 fi
20454 rm -f conftest*
20455
20456 fi
20457
20458 if test $ac_cv_header_stdc = yes; then
20459   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20460   if test "$cross_compiling" = yes; then :
20461   :
20462 else
20463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h.  */
20465 #include <ctype.h>
20466 #include <stdlib.h>
20467 #if ((' ' & 0x0FF) == 0x020)
20468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20470 #else
20471 # define ISLOWER(c) \
20472                    (('a' <= (c) && (c) <= 'i') \
20473                      || ('j' <= (c) && (c) <= 'r') \
20474                      || ('s' <= (c) && (c) <= 'z'))
20475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20476 #endif
20477
20478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20479 int
20480 main ()
20481 {
20482   int i;
20483   for (i = 0; i < 256; i++)
20484     if (XOR (islower (i), ISLOWER (i))
20485         || toupper (i) != TOUPPER (i))
20486       return 2;
20487   return 0;
20488 }
20489 _ACEOF
20490 if ac_fn_c_try_run "$LINENO"; then :
20491
20492 else
20493   ac_cv_header_stdc=no
20494 fi
20495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20496   conftest.$ac_objext conftest.beam conftest.$ac_ext
20497 fi
20498
20499 fi
20500 fi
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20502 $as_echo "$ac_cv_header_stdc" >&6; }
20503 if test $ac_cv_header_stdc = yes; then
20504
20505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20506
20507 fi
20508
20509 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20511     header files.  Compilation cannot proceed.  Please install the ANSI C
20512     headers and rerun this script." >&5
20513 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20514     header files.  Compilation cannot proceed.  Please install the ANSI C
20515     headers and rerun this script." >&2;};
20516 fi
20517
20518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20519 $as_echo_n "checking whether to enable assertions... " >&6; }
20520   # Check whether --enable-assert was given.
20521 if test "${enable_assert+set}" = set; then :
20522   enableval=$enable_assert; ac_enable_assert=$enableval
20523      if       test "x$enableval" = xno; then :
20524
20525 $as_echo "#define NDEBUG 1" >>confdefs.h
20526
20527 elif test "x$enableval" != xyes; then :
20528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20529 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20530         ac_enable_assert=yes
20531 fi
20532 else
20533   ac_enable_assert=yes
20534 fi
20535
20536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20537 $as_echo "$ac_enable_assert" >&6; }
20538
20539 ac_header_dirent=no
20540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20541   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20543 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20544 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20545   $as_echo_n "(cached) " >&6
20546 else
20547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h.  */
20549 #include <sys/types.h>
20550 #include <$ac_hdr>
20551
20552 int
20553 main ()
20554 {
20555 if ((DIR *) 0)
20556 return 0;
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562   eval "$as_ac_Header=yes"
20563 else
20564   eval "$as_ac_Header=no"
20565 fi
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 eval ac_res=\$$as_ac_Header
20569                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20570 $as_echo "$ac_res" >&6; }
20571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20572   cat >>confdefs.h <<_ACEOF
20573 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20574 _ACEOF
20575
20576 ac_header_dirent=$ac_hdr; break
20577 fi
20578
20579 done
20580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20581 if test $ac_header_dirent = dirent.h; then
20582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20583 $as_echo_n "checking for library containing opendir... " >&6; }
20584 if test "${ac_cv_search_opendir+set}" = set; then :
20585   $as_echo_n "(cached) " >&6
20586 else
20587   ac_func_search_save_LIBS=$LIBS
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h.  */
20590
20591 /* Override any GCC internal prototype to avoid an error.
20592    Use char because int might match the return type of a GCC
20593    builtin and then its argument prototype would still apply.  */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char opendir ();
20598 int
20599 main ()
20600 {
20601 return opendir ();
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 for ac_lib in '' dir; do
20607   if test -z "$ac_lib"; then
20608     ac_res="none required"
20609   else
20610     ac_res=-l$ac_lib
20611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20612   fi
20613   if ac_fn_c_try_link "$LINENO"; then :
20614   ac_cv_search_opendir=$ac_res
20615 fi
20616 rm -f core conftest.err conftest.$ac_objext \
20617     conftest$ac_exeext
20618   if test "${ac_cv_search_opendir+set}" = set; then :
20619   break
20620 fi
20621 done
20622 if test "${ac_cv_search_opendir+set}" = set; then :
20623
20624 else
20625   ac_cv_search_opendir=no
20626 fi
20627 rm conftest.$ac_ext
20628 LIBS=$ac_func_search_save_LIBS
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20631 $as_echo "$ac_cv_search_opendir" >&6; }
20632 ac_res=$ac_cv_search_opendir
20633 if test "$ac_res" != no; then :
20634   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20635
20636 fi
20637
20638 else
20639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20640 $as_echo_n "checking for library containing opendir... " >&6; }
20641 if test "${ac_cv_search_opendir+set}" = set; then :
20642   $as_echo_n "(cached) " >&6
20643 else
20644   ac_func_search_save_LIBS=$LIBS
20645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h.  */
20647
20648 /* Override any GCC internal prototype to avoid an error.
20649    Use char because int might match the return type of a GCC
20650    builtin and then its argument prototype would still apply.  */
20651 #ifdef __cplusplus
20652 extern "C"
20653 #endif
20654 char opendir ();
20655 int
20656 main ()
20657 {
20658 return opendir ();
20659   ;
20660   return 0;
20661 }
20662 _ACEOF
20663 for ac_lib in '' x; do
20664   if test -z "$ac_lib"; then
20665     ac_res="none required"
20666   else
20667     ac_res=-l$ac_lib
20668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20669   fi
20670   if ac_fn_c_try_link "$LINENO"; then :
20671   ac_cv_search_opendir=$ac_res
20672 fi
20673 rm -f core conftest.err conftest.$ac_objext \
20674     conftest$ac_exeext
20675   if test "${ac_cv_search_opendir+set}" = set; then :
20676   break
20677 fi
20678 done
20679 if test "${ac_cv_search_opendir+set}" = set; then :
20680
20681 else
20682   ac_cv_search_opendir=no
20683 fi
20684 rm conftest.$ac_ext
20685 LIBS=$ac_func_search_save_LIBS
20686 fi
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20688 $as_echo "$ac_cv_search_opendir" >&6; }
20689 ac_res=$ac_cv_search_opendir
20690 if test "$ac_res" != no; then :
20691   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20692
20693 fi
20694
20695 fi
20696
20697
20698 # Check additional headers
20699 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
20700 do :
20701   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20702 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20704   cat >>confdefs.h <<_ACEOF
20705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706 _ACEOF
20707
20708 fi
20709
20710 done
20711
20712
20713 ########
20714 #
20715 # Checks for typedefs, structures, and compiler characteristics.
20716 #
20717 ########
20718
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20720 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20721 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20722   $as_echo_n "(cached) " >&6
20723 else
20724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h.  */
20726
20727 #include <stdbool.h>
20728 #ifndef bool
20729  "error: bool is not defined"
20730 #endif
20731 #ifndef false
20732  "error: false is not defined"
20733 #endif
20734 #if false
20735  "error: false is not 0"
20736 #endif
20737 #ifndef true
20738  "error: true is not defined"
20739 #endif
20740 #if true != 1
20741  "error: true is not 1"
20742 #endif
20743 #ifndef __bool_true_false_are_defined
20744  "error: __bool_true_false_are_defined is not defined"
20745 #endif
20746
20747         struct s { _Bool s: 1; _Bool t; } s;
20748
20749         char a[true == 1 ? 1 : -1];
20750         char b[false == 0 ? 1 : -1];
20751         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20752         char d[(bool) 0.5 == true ? 1 : -1];
20753         bool e = &s;
20754         char f[(_Bool) 0.0 == false ? 1 : -1];
20755         char g[true];
20756         char h[sizeof (_Bool)];
20757         char i[sizeof s.t];
20758         enum { j = false, k = true, l = false * true, m = true * 256 };
20759         /* The following fails for
20760            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20761         _Bool n[m];
20762         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20763         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20764 #       if defined __xlc__ || defined __GNUC__
20765          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20766             reported by James Lemley on 2005-10-05; see
20767             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20768             This test is not quite right, since xlc is allowed to
20769             reject this program, as the initializer for xlcbug is
20770             not one of the forms that C requires support for.
20771             However, doing the test right would require a runtime
20772             test, and that would make cross-compilation harder.
20773             Let us hope that IBM fixes the xlc bug, and also adds
20774             support for this kind of constant expression.  In the
20775             meantime, this test will reject xlc, which is OK, since
20776             our stdbool.h substitute should suffice.  We also test
20777             this with GCC, where it should work, to detect more
20778             quickly whether someone messes up the test in the
20779             future.  */
20780          char digs[] = "0123456789";
20781          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20782 #       endif
20783         /* Catch a bug in an HP-UX C compiler.  See
20784            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20785            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20786          */
20787         _Bool q = true;
20788         _Bool *pq = &q;
20789
20790 int
20791 main ()
20792 {
20793
20794         *pq |= q;
20795         *pq |= ! q;
20796         /* Refer to every declared value, to avoid compiler optimizations.  */
20797         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20798                 + !m + !n + !o + !p + !q + !pq);
20799
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 if ac_fn_c_try_compile "$LINENO"; then :
20805   ac_cv_header_stdbool_h=yes
20806 else
20807   ac_cv_header_stdbool_h=no
20808 fi
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 fi
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20812 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20813 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20814 if test "x$ac_cv_type__Bool" = x""yes; then :
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define HAVE__BOOL 1
20818 _ACEOF
20819
20820
20821 fi
20822
20823 if test $ac_cv_header_stdbool_h = yes; then
20824
20825 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20826
20827 fi
20828
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20830 $as_echo_n "checking for working volatile... " >&6; }
20831 if test "${ac_cv_c_volatile+set}" = set; then :
20832   $as_echo_n "(cached) " >&6
20833 else
20834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h.  */
20836
20837 int
20838 main ()
20839 {
20840
20841 volatile int x;
20842 int * volatile y = (int *) 0;
20843 return !x && !y;
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 if ac_fn_c_try_compile "$LINENO"; then :
20849   ac_cv_c_volatile=yes
20850 else
20851   ac_cv_c_volatile=no
20852 fi
20853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854 fi
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20856 $as_echo "$ac_cv_c_volatile" >&6; }
20857 if test $ac_cv_c_volatile = no; then
20858
20859 $as_echo "#define volatile /**/" >>confdefs.h
20860
20861 fi
20862
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20864 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20865 if test "${ac_cv_c_stringize+set}" = set; then :
20866   $as_echo_n "(cached) " >&6
20867 else
20868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h.  */
20870 #define x(y) #y
20871
20872 char *s = x(teststring);
20873 _ACEOF
20874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20875   $EGREP "#teststring" >/dev/null 2>&1; then :
20876   ac_cv_c_stringize=no
20877 else
20878   ac_cv_c_stringize=yes
20879 fi
20880 rm -f conftest*
20881
20882 fi
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20884 $as_echo "$ac_cv_c_stringize" >&6; }
20885 if test $ac_cv_c_stringize = yes; then
20886
20887 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20888
20889 fi
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20892 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20893 if test "${ac_cv_header_stat_broken+set}" = set; then :
20894   $as_echo_n "(cached) " >&6
20895 else
20896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h.  */
20898 #include <sys/types.h>
20899 #include <sys/stat.h>
20900
20901 #if defined S_ISBLK && defined S_IFDIR
20902 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20903 #endif
20904
20905 #if defined S_ISBLK && defined S_IFCHR
20906 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20907 #endif
20908
20909 #if defined S_ISLNK && defined S_IFREG
20910 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20911 #endif
20912
20913 #if defined S_ISSOCK && defined S_IFREG
20914 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20915 #endif
20916
20917 _ACEOF
20918 if ac_fn_c_try_compile "$LINENO"; then :
20919   ac_cv_header_stat_broken=no
20920 else
20921   ac_cv_header_stat_broken=yes
20922 fi
20923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 fi
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20926 $as_echo "$ac_cv_header_stat_broken" >&6; }
20927 if test $ac_cv_header_stat_broken = yes; then
20928
20929 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20930
20931 fi
20932
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20934 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20935 if test "${ac_cv_header_time+set}" = set; then :
20936   $as_echo_n "(cached) " >&6
20937 else
20938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h.  */
20940 #include <sys/types.h>
20941 #include <sys/time.h>
20942 #include <time.h>
20943
20944 int
20945 main ()
20946 {
20947 if ((struct tm *) 0)
20948 return 0;
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 if ac_fn_c_try_compile "$LINENO"; then :
20954   ac_cv_header_time=yes
20955 else
20956   ac_cv_header_time=no
20957 fi
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 fi
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20961 $as_echo "$ac_cv_header_time" >&6; }
20962 if test $ac_cv_header_time = yes; then
20963
20964 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20965
20966 fi
20967
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20969 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20970 if test "${ac_cv_struct_tm+set}" = set; then :
20971   $as_echo_n "(cached) " >&6
20972 else
20973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974 /* end confdefs.h.  */
20975 #include <sys/types.h>
20976 #include <time.h>
20977
20978 int
20979 main ()
20980 {
20981 struct tm tm;
20982                                      int *p = &tm.tm_sec;
20983                                      return !p;
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_c_try_compile "$LINENO"; then :
20989   ac_cv_struct_tm=time.h
20990 else
20991   ac_cv_struct_tm=sys/time.h
20992 fi
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 fi
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20996 $as_echo "$ac_cv_struct_tm" >&6; }
20997 if test $ac_cv_struct_tm = sys/time.h; then
20998
20999 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21000
21001 fi
21002
21003 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21004 #include <$ac_cv_struct_tm>
21005
21006 "
21007 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21008
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_STRUCT_TM_TM_ZONE 1
21011 _ACEOF
21012
21013
21014 fi
21015
21016 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017
21018 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21019
21020 else
21021   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21022 "
21023 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21024   ac_have_decl=1
21025 else
21026   ac_have_decl=0
21027 fi
21028
21029 cat >>confdefs.h <<_ACEOF
21030 #define HAVE_DECL_TZNAME $ac_have_decl
21031 _ACEOF
21032
21033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21034 $as_echo_n "checking for tzname... " >&6; }
21035 if test "${ac_cv_var_tzname+set}" = set; then :
21036   $as_echo_n "(cached) " >&6
21037 else
21038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h.  */
21040 #include <time.h>
21041 #if !HAVE_DECL_TZNAME
21042 extern char *tzname[];
21043 #endif
21044
21045 int
21046 main ()
21047 {
21048 return tzname[0][0];
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 if ac_fn_c_try_link "$LINENO"; then :
21054   ac_cv_var_tzname=yes
21055 else
21056   ac_cv_var_tzname=no
21057 fi
21058 rm -f core conftest.err conftest.$ac_objext \
21059     conftest$ac_exeext conftest.$ac_ext
21060 fi
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21062 $as_echo "$ac_cv_var_tzname" >&6; }
21063   if test $ac_cv_var_tzname = yes; then
21064
21065 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21066
21067   fi
21068 fi
21069
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21071 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21072 if test "${ac_cv_sys_interpreter+set}" = set; then :
21073   $as_echo_n "(cached) " >&6
21074 else
21075   echo '#! /bin/cat
21076 exit 69
21077 ' >conftest
21078 chmod u+x conftest
21079 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21080 if test $? -ne 69; then
21081    ac_cv_sys_interpreter=yes
21082 else
21083    ac_cv_sys_interpreter=no
21084 fi
21085 rm -f conftest
21086 fi
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21088 $as_echo "$ac_cv_sys_interpreter" >&6; }
21089 interpval=$ac_cv_sys_interpreter
21090
21091
21092 # If the C compiler supports the keyword inline, do nothing. Otherwise
21093 # define inline to __inline__ or __inline if it accepts one of those,
21094 # otherwise define inline to be empty.
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21096 $as_echo_n "checking for inline... " >&6; }
21097 if test "${ac_cv_c_inline+set}" = set; then :
21098   $as_echo_n "(cached) " >&6
21099 else
21100   ac_cv_c_inline=no
21101 for ac_kw in inline __inline__ __inline; do
21102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h.  */
21104 #ifndef __cplusplus
21105 typedef int foo_t;
21106 static $ac_kw foo_t static_foo () {return 0; }
21107 $ac_kw foo_t foo () {return 0; }
21108 #endif
21109
21110 _ACEOF
21111 if ac_fn_c_try_compile "$LINENO"; then :
21112   ac_cv_c_inline=$ac_kw
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115   test "$ac_cv_c_inline" != no && break
21116 done
21117
21118 fi
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21120 $as_echo "$ac_cv_c_inline" >&6; }
21121
21122 case $ac_cv_c_inline in
21123   inline | yes) ;;
21124   *)
21125     case $ac_cv_c_inline in
21126       no) ac_val=;;
21127       *) ac_val=$ac_cv_c_inline;;
21128     esac
21129     cat >>confdefs.h <<_ACEOF
21130 #ifndef __cplusplus
21131 #define inline $ac_val
21132 #endif
21133 _ACEOF
21134     ;;
21135 esac
21136
21137
21138 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21139 # define restrict to __restrict__ or __restrict if it accepts one of those,
21140 # otherwise define restrict to be empty.
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21142 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21143 if test "${ac_cv_c_restrict+set}" = set; then :
21144   $as_echo_n "(cached) " >&6
21145 else
21146   ac_cv_c_restrict=no
21147    # The order here caters to the fact that C++ does not require restrict.
21148    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21149      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21150 /* end confdefs.h.  */
21151 typedef int * int_ptr;
21152         int foo (int_ptr $ac_kw ip) {
21153         return ip[0];
21154        }
21155 int
21156 main ()
21157 {
21158 int s[1];
21159         int * $ac_kw t = s;
21160         t[0] = 0;
21161         return foo(t)
21162   ;
21163   return 0;
21164 }
21165 _ACEOF
21166 if ac_fn_c_try_compile "$LINENO"; then :
21167   ac_cv_c_restrict=$ac_kw
21168 fi
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170      test "$ac_cv_c_restrict" != no && break
21171    done
21172
21173 fi
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21175 $as_echo "$ac_cv_c_restrict" >&6; }
21176
21177  case $ac_cv_c_restrict in
21178    restrict) ;;
21179    no) $as_echo "#define restrict /**/" >>confdefs.h
21180  ;;
21181    *)  cat >>confdefs.h <<_ACEOF
21182 #define restrict $ac_cv_c_restrict
21183 _ACEOF
21184  ;;
21185  esac
21186
21187
21188 # If words are stored with the most significant byte first (like
21189 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21191 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21192 if test "${ac_cv_c_bigendian+set}" = set; then :
21193   $as_echo_n "(cached) " >&6
21194 else
21195   ac_cv_c_bigendian=unknown
21196     # See if we're dealing with a universal compiler.
21197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h.  */
21199 #ifndef __APPLE_CC__
21200                not a universal capable compiler
21201              #endif
21202              typedef int dummy;
21203
21204 _ACEOF
21205 if ac_fn_c_try_compile "$LINENO"; then :
21206
21207         # Check for potential -arch flags.  It is not universal unless
21208         # there are at least two -arch flags with different values.
21209         ac_arch=
21210         ac_prev=
21211         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21212          if test -n "$ac_prev"; then
21213            case $ac_word in
21214              i?86 | x86_64 | ppc | ppc64)
21215                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21216                  ac_arch=$ac_word
21217                else
21218                  ac_cv_c_bigendian=universal
21219                  break
21220                fi
21221                ;;
21222            esac
21223            ac_prev=
21224          elif test "x$ac_word" = "x-arch"; then
21225            ac_prev=arch
21226          fi
21227        done
21228 fi
21229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230     if test $ac_cv_c_bigendian = unknown; then
21231       # See if sys/param.h defines the BYTE_ORDER macro.
21232       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h.  */
21234 #include <sys/types.h>
21235              #include <sys/param.h>
21236
21237 int
21238 main ()
21239 {
21240 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21241                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21242                      && LITTLE_ENDIAN)
21243               bogus endian macros
21244              #endif
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 if ac_fn_c_try_compile "$LINENO"; then :
21251   # It does; now see whether it defined to BIG_ENDIAN or not.
21252          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h.  */
21254 #include <sys/types.h>
21255                 #include <sys/param.h>
21256
21257 int
21258 main ()
21259 {
21260 #if BYTE_ORDER != BIG_ENDIAN
21261                  not big endian
21262                 #endif
21263
21264   ;
21265   return 0;
21266 }
21267 _ACEOF
21268 if ac_fn_c_try_compile "$LINENO"; then :
21269   ac_cv_c_bigendian=yes
21270 else
21271   ac_cv_c_bigendian=no
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 fi
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276     fi
21277     if test $ac_cv_c_bigendian = unknown; then
21278       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h.  */
21281 #include <limits.h>
21282
21283 int
21284 main ()
21285 {
21286 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21287               bogus endian macros
21288              #endif
21289
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 if ac_fn_c_try_compile "$LINENO"; then :
21295   # It does; now see whether it defined to _BIG_ENDIAN or not.
21296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h.  */
21298 #include <limits.h>
21299
21300 int
21301 main ()
21302 {
21303 #ifndef _BIG_ENDIAN
21304                  not big endian
21305                 #endif
21306
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 if ac_fn_c_try_compile "$LINENO"; then :
21312   ac_cv_c_bigendian=yes
21313 else
21314   ac_cv_c_bigendian=no
21315 fi
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319     fi
21320     if test $ac_cv_c_bigendian = unknown; then
21321       # Compile a test program.
21322       if test "$cross_compiling" = yes; then :
21323   # Try to guess by grepping values from an object file.
21324          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h.  */
21326 short int ascii_mm[] =
21327                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21328                 short int ascii_ii[] =
21329                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21330                 int use_ascii (int i) {
21331                   return ascii_mm[i] + ascii_ii[i];
21332                 }
21333                 short int ebcdic_ii[] =
21334                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21335                 short int ebcdic_mm[] =
21336                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21337                 int use_ebcdic (int i) {
21338                   return ebcdic_mm[i] + ebcdic_ii[i];
21339                 }
21340                 extern int foo;
21341
21342 int
21343 main ()
21344 {
21345 return use_ascii (foo) == use_ebcdic (foo);
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 if ac_fn_c_try_compile "$LINENO"; then :
21351   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21352               ac_cv_c_bigendian=yes
21353             fi
21354             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21355               if test "$ac_cv_c_bigendian" = unknown; then
21356                 ac_cv_c_bigendian=no
21357               else
21358                 # finding both strings is unlikely to happen, but who knows?
21359                 ac_cv_c_bigendian=unknown
21360               fi
21361             fi
21362 fi
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364 else
21365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h.  */
21367 $ac_includes_default
21368 int
21369 main ()
21370 {
21371
21372              /* Are we little or big endian?  From Harbison&Steele.  */
21373              union
21374              {
21375                long int l;
21376                char c[sizeof (long int)];
21377              } u;
21378              u.l = 1;
21379              return u.c[sizeof (long int) - 1] == 1;
21380
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 if ac_fn_c_try_run "$LINENO"; then :
21386   ac_cv_c_bigendian=no
21387 else
21388   ac_cv_c_bigendian=yes
21389 fi
21390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391   conftest.$ac_objext conftest.beam conftest.$ac_ext
21392 fi
21393
21394     fi
21395 fi
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21397 $as_echo "$ac_cv_c_bigendian" >&6; }
21398  case $ac_cv_c_bigendian in #(
21399    yes)
21400      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21401 ;; #(
21402    no)
21403       ;; #(
21404    universal)
21405
21406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21407
21408      ;; #(
21409    *)
21410      as_fn_error $? "unknown endianness
21411  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21412  esac
21413
21414
21415 # Define mode_t to a suitable type, if standard headers do not define it.
21416 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21417 if test "x$ac_cv_type_mode_t" = x""yes; then :
21418
21419 else
21420
21421 cat >>confdefs.h <<_ACEOF
21422 #define mode_t int
21423 _ACEOF
21424
21425 fi
21426
21427
21428 # Define off_t to a suitable type, if standard headers do not define it.
21429 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21430 if test "x$ac_cv_type_off_t" = x""yes; then :
21431
21432 else
21433
21434 cat >>confdefs.h <<_ACEOF
21435 #define off_t long int
21436 _ACEOF
21437
21438 fi
21439
21440
21441 # Define pid_t to a suitable type, if standard headers do not define it.
21442 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21443 if test "x$ac_cv_type_pid_t" = x""yes; then :
21444
21445 else
21446
21447 cat >>confdefs.h <<_ACEOF
21448 #define pid_t int
21449 _ACEOF
21450
21451 fi
21452
21453
21454 # Define size_t to a suitable type, if standard headers do not define it.
21455 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21456 if test "x$ac_cv_type_size_t" = x""yes; then :
21457
21458 else
21459
21460 cat >>confdefs.h <<_ACEOF
21461 #define size_t unsigned int
21462 _ACEOF
21463
21464 fi
21465
21466
21467 # Define ssize_t to a suitable type, if standard headers do not define it.
21468 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21469 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21470
21471 else
21472
21473 cat >>confdefs.h <<_ACEOF
21474 #define ssize_t int
21475 _ACEOF
21476
21477 fi
21478
21479
21480 # If the C compiler supports a working long double type with more range
21481 # or precision than the double type, define HAVE_LONG_DOUBLE.
21482
21483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21484 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21485 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21486   $as_echo_n "(cached) " >&6
21487 else
21488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h.  */
21490 #include <float.h>
21491             long double const a[] =
21492               {
21493                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21494                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21495               };
21496             long double
21497             f (long double x)
21498             {
21499                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21500                         + (x ? f (x) : 'c'));
21501             }
21502
21503 int
21504 main ()
21505 {
21506 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21507                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21508                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21509                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21510             && (int) LDBL_EPSILON == 0
21511           )];
21512 test_array [0] = 0
21513
21514   ;
21515   return 0;
21516 }
21517 _ACEOF
21518 if ac_fn_c_try_compile "$LINENO"; then :
21519   ac_cv_type_long_double_wider=yes
21520 else
21521   ac_cv_type_long_double_wider=no
21522 fi
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 fi
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21526 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21527   if test $ac_cv_type_long_double_wider = yes; then
21528
21529 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21530
21531   fi
21532
21533
21534 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21535 # C compiler predefines it.
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21537 $as_echo_n "checking whether char is unsigned... " >&6; }
21538 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21539   $as_echo_n "(cached) " >&6
21540 else
21541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h.  */
21543 $ac_includes_default
21544 int
21545 main ()
21546 {
21547 static int test_array [1 - 2 * !(((char) -1) < 0)];
21548 test_array [0] = 0
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 if ac_fn_c_try_compile "$LINENO"; then :
21555   ac_cv_c_char_unsigned=no
21556 else
21557   ac_cv_c_char_unsigned=yes
21558 fi
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 fi
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21562 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21563 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21564   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21565
21566 fi
21567
21568
21569 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21570 # The cast to long int works around a bug in the HP C Compiler
21571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21573 # This bug is HP SR number 8606223364.
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21575 $as_echo_n "checking size of signed short... " >&6; }
21576 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21577   $as_echo_n "(cached) " >&6
21578 else
21579   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21580
21581 else
21582   if test "$ac_cv_type_signed_short" = yes; then
21583      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21585 as_fn_error 77 "cannot compute sizeof (signed short)
21586 See \`config.log' for more details" "$LINENO" 5; }
21587    else
21588      ac_cv_sizeof_signed_short=0
21589    fi
21590 fi
21591
21592 fi
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21594 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21595
21596
21597
21598 cat >>confdefs.h <<_ACEOF
21599 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21600 _ACEOF
21601
21602
21603
21604 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21605 # The cast to long int works around a bug in the HP C Compiler
21606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21608 # This bug is HP SR number 8606223364.
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21610 $as_echo_n "checking size of unsigned short... " >&6; }
21611 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21612   $as_echo_n "(cached) " >&6
21613 else
21614   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21615
21616 else
21617   if test "$ac_cv_type_unsigned_short" = yes; then
21618      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21620 as_fn_error 77 "cannot compute sizeof (unsigned short)
21621 See \`config.log' for more details" "$LINENO" 5; }
21622    else
21623      ac_cv_sizeof_unsigned_short=0
21624    fi
21625 fi
21626
21627 fi
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21629 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21630
21631
21632
21633 cat >>confdefs.h <<_ACEOF
21634 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21635 _ACEOF
21636
21637
21638
21639 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21640 # The cast to long int works around a bug in the HP C Compiler
21641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21643 # This bug is HP SR number 8606223364.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21645 $as_echo_n "checking size of signed int... " >&6; }
21646 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21647   $as_echo_n "(cached) " >&6
21648 else
21649   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21650
21651 else
21652   if test "$ac_cv_type_signed_int" = yes; then
21653      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21655 as_fn_error 77 "cannot compute sizeof (signed int)
21656 See \`config.log' for more details" "$LINENO" 5; }
21657    else
21658      ac_cv_sizeof_signed_int=0
21659    fi
21660 fi
21661
21662 fi
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21664 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21665
21666
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21670 _ACEOF
21671
21672
21673
21674 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21675 # The cast to long int works around a bug in the HP C Compiler
21676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21678 # This bug is HP SR number 8606223364.
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21680 $as_echo_n "checking size of unsigned int... " >&6; }
21681 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21682   $as_echo_n "(cached) " >&6
21683 else
21684   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21685
21686 else
21687   if test "$ac_cv_type_unsigned_int" = yes; then
21688      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21690 as_fn_error 77 "cannot compute sizeof (unsigned int)
21691 See \`config.log' for more details" "$LINENO" 5; }
21692    else
21693      ac_cv_sizeof_unsigned_int=0
21694    fi
21695 fi
21696
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21699 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21700
21701
21702
21703 cat >>confdefs.h <<_ACEOF
21704 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21705 _ACEOF
21706
21707
21708
21709 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21710 # The cast to long int works around a bug in the HP C Compiler
21711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713 # This bug is HP SR number 8606223364.
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21715 $as_echo_n "checking size of signed long... " >&6; }
21716 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21717   $as_echo_n "(cached) " >&6
21718 else
21719   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21720
21721 else
21722   if test "$ac_cv_type_signed_long" = yes; then
21723      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21725 as_fn_error 77 "cannot compute sizeof (signed long)
21726 See \`config.log' for more details" "$LINENO" 5; }
21727    else
21728      ac_cv_sizeof_signed_long=0
21729    fi
21730 fi
21731
21732 fi
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21734 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21735
21736
21737
21738 cat >>confdefs.h <<_ACEOF
21739 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21740 _ACEOF
21741
21742
21743
21744 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21745 # The cast to long int works around a bug in the HP C Compiler
21746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21748 # This bug is HP SR number 8606223364.
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21750 $as_echo_n "checking size of unsigned long... " >&6; }
21751 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21755
21756 else
21757   if test "$ac_cv_type_unsigned_long" = yes; then
21758      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21760 as_fn_error 77 "cannot compute sizeof (unsigned long)
21761 See \`config.log' for more details" "$LINENO" 5; }
21762    else
21763      ac_cv_sizeof_unsigned_long=0
21764    fi
21765 fi
21766
21767 fi
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21769 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21770
21771
21772
21773 cat >>confdefs.h <<_ACEOF
21774 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21775 _ACEOF
21776
21777
21778
21779 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21780 # 'signed long long' is not supported then the value defined is zero.
21781 # The cast to long int works around a bug in the HP C Compiler
21782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21784 # This bug is HP SR number 8606223364.
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21786 $as_echo_n "checking size of signed long long... " >&6; }
21787 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21788   $as_echo_n "(cached) " >&6
21789 else
21790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21791
21792 else
21793   if test "$ac_cv_type_signed_long_long" = yes; then
21794      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21796 as_fn_error 77 "cannot compute sizeof (signed long long)
21797 See \`config.log' for more details" "$LINENO" 5; }
21798    else
21799      ac_cv_sizeof_signed_long_long=0
21800    fi
21801 fi
21802
21803 fi
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21805 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21806
21807
21808
21809 cat >>confdefs.h <<_ACEOF
21810 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21811 _ACEOF
21812
21813
21814
21815 # Obtain size of a 'unsigned long long' and define as
21816 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
21817 # supported then the value defined is zero.
21818 # The cast to long int works around a bug in the HP C Compiler
21819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821 # This bug is HP SR number 8606223364.
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21823 $as_echo_n "checking size of unsigned long long... " >&6; }
21824 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21825   $as_echo_n "(cached) " >&6
21826 else
21827   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
21828
21829 else
21830   if test "$ac_cv_type_unsigned_long_long" = yes; then
21831      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21833 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21834 See \`config.log' for more details" "$LINENO" 5; }
21835    else
21836      ac_cv_sizeof_unsigned_long_long=0
21837    fi
21838 fi
21839
21840 fi
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21842 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21843
21844
21845
21846 cat >>confdefs.h <<_ACEOF
21847 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21848 _ACEOF
21849
21850
21851
21852 # Obtain size of off_t and define as SIZEOF_OFF_T
21853 # The cast to long int works around a bug in the HP C Compiler
21854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21856 # This bug is HP SR number 8606223364.
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21858 $as_echo_n "checking size of off_t... " >&6; }
21859 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21860   $as_echo_n "(cached) " >&6
21861 else
21862   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
21863
21864 else
21865   if test "$ac_cv_type_off_t" = yes; then
21866      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21868 as_fn_error 77 "cannot compute sizeof (off_t)
21869 See \`config.log' for more details" "$LINENO" 5; }
21870    else
21871      ac_cv_sizeof_off_t=0
21872    fi
21873 fi
21874
21875 fi
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21877 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21878
21879
21880
21881 cat >>confdefs.h <<_ACEOF
21882 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21883 _ACEOF
21884
21885
21886
21887 # Obtain size of size_t and define as SIZEOF_SIZE_T
21888 # The cast to long int works around a bug in the HP C Compiler
21889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21891 # This bug is HP SR number 8606223364.
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21893 $as_echo_n "checking size of size_t... " >&6; }
21894 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21895   $as_echo_n "(cached) " >&6
21896 else
21897   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21898
21899 else
21900   if test "$ac_cv_type_size_t" = yes; then
21901      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21903 as_fn_error 77 "cannot compute sizeof (size_t)
21904 See \`config.log' for more details" "$LINENO" 5; }
21905    else
21906      ac_cv_sizeof_size_t=0
21907    fi
21908 fi
21909
21910 fi
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21912 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21913
21914
21915
21916 cat >>confdefs.h <<_ACEOF
21917 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21918 _ACEOF
21919
21920
21921
21922 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21923 # The cast to long int works around a bug in the HP C Compiler
21924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21926 # This bug is HP SR number 8606223364.
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21928 $as_echo_n "checking size of ssize_t... " >&6; }
21929 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21930   $as_echo_n "(cached) " >&6
21931 else
21932   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
21933
21934 else
21935   if test "$ac_cv_type_ssize_t" = yes; then
21936      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21938 as_fn_error 77 "cannot compute sizeof (ssize_t)
21939 See \`config.log' for more details" "$LINENO" 5; }
21940    else
21941      ac_cv_sizeof_ssize_t=0
21942    fi
21943 fi
21944
21945 fi
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21947 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21948
21949
21950
21951 cat >>confdefs.h <<_ACEOF
21952 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21953 _ACEOF
21954
21955
21956
21957 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21958 # The cast to long int works around a bug in the HP C Compiler
21959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21961 # This bug is HP SR number 8606223364.
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21963 $as_echo_n "checking size of unsigned int*... " >&6; }
21964 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21965   $as_echo_n "(cached) " >&6
21966 else
21967   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
21968
21969 else
21970   if test "$ac_cv_type_unsigned_intp" = yes; then
21971      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21973 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21974 See \`config.log' for more details" "$LINENO" 5; }
21975    else
21976      ac_cv_sizeof_unsigned_intp=0
21977    fi
21978 fi
21979
21980 fi
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21982 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21983
21984
21985
21986 cat >>confdefs.h <<_ACEOF
21987 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21988 _ACEOF
21989
21990
21991
21992 #
21993 # Compute sized types for current CPU and compiler options.
21994 #
21995
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21997 $as_echo_n "checking for signed 8-bit type... " >&6; }
21998 INT8_T='signed char'
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22000 $as_echo "$INT8_T" >&6; }
22001
22002
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22004 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22005 UINT8_T='unsigned char'
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22007 $as_echo "$UINT8_T" >&6; }
22008
22009
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22011 $as_echo_n "checking for signed 16-bit type... " >&6; }
22012 INT16_T='signed short'
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22014 $as_echo "$INT16_T" >&6; }
22015
22016
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22018 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22019 UINT16_T='unsigned short'
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22021 $as_echo "$UINT16_T" >&6; }
22022
22023
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22025 $as_echo_n "checking for signed 32-bit type... " >&6; }
22026 INT32_T='none'
22027 if test $ac_cv_sizeof_signed_int -eq 4; then
22028   INT32_T='signed int'
22029 elif test $ac_cv_sizeof_signed_long -eq 4; then
22030   INT32_T='signed long'
22031 fi
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22033 $as_echo "$INT32_T" >&6; }
22034
22035
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22037 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22038 UINT32_T='none'
22039 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22040   UINT32_T='unsigned int'
22041 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22042   UINT32_T='unsigned long'
22043 fi
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22045 $as_echo "$UINT32_T" >&6; }
22046
22047
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22049 $as_echo_n "checking for signed 64-bit type... " >&6; }
22050 INT64_T='none'
22051 if test $ac_cv_sizeof_signed_long -eq 8; then
22052   INT64_T='signed long'
22053 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22054   INT64_T='signed long long'
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22057 $as_echo "$INT64_T" >&6; }
22058
22059
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22061 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22062 UINT64_T='none'
22063 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22064   UINT64_T='unsigned long'
22065 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22066   UINT64_T='unsigned long long'
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22069 $as_echo "$UINT64_T" >&6; }
22070
22071
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22073 $as_echo_n "checking for unsigned maximum type... " >&6; }
22074 UINTMAX_T='none'
22075 if test "$UINT64_T" != 'none'; then
22076   UINTMAX_T=$UINT64_T
22077 elif test "$UINT32_T" != 'none'; then
22078   UINTMAX_T=$UINT32_T
22079 fi
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22081 $as_echo "$UINTMAX_T" >&6; }
22082
22083
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22085 $as_echo_n "checking for pointer difference type... " >&6; }
22086 UINTPTR_T='none'
22087 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22088   UINTPTR_T='unsigned long'
22089 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22090   UINTPTR_T='unsigned long long'
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22093 $as_echo "$UINTPTR_T" >&6; }
22094
22095
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22097 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h.  */
22100
22101 int
22102 main ()
22103 {
22104 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 if ac_fn_c_try_compile "$LINENO"; then :
22110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 $as_echo "yes" >&6; }
22112 else
22113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22116 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h.  */
22119
22120 int
22121 main ()
22122 {
22123 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22124   ;
22125   return 0;
22126 }
22127 _ACEOF
22128 if ac_fn_c_try_compile "$LINENO"; then :
22129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 $as_echo "yes" >&6; }
22131
22132 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22133
22134 else
22135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22137
22138 $as_echo "#define __func__ __FILE__" >>confdefs.h
22139
22140 fi
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22142 fi
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144
22145 ########
22146 #
22147 # Check for functions
22148 #
22149 ########
22150 for ac_header in stdlib.h unistd.h
22151 do :
22152   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22153 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22155   cat >>confdefs.h <<_ACEOF
22156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157 _ACEOF
22158
22159 fi
22160
22161 done
22162
22163 for ac_func in getpagesize
22164 do :
22165   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22166 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22167   cat >>confdefs.h <<_ACEOF
22168 #define HAVE_GETPAGESIZE 1
22169 _ACEOF
22170
22171 fi
22172 done
22173
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22175 $as_echo_n "checking for working mmap file i/o... " >&6; }
22176 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22177   $as_echo_n "(cached) " >&6
22178 else
22179   if test "$cross_compiling" = yes; then :
22180   magick_cv_func_mmap_fileio=no
22181 else
22182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h.  */
22184 $ac_includes_default
22185 /* malloc might have been renamed as rpl_malloc. */
22186 #undef malloc
22187
22188 /*
22189    This test is derived from GNU Autoconf's similar macro.
22190    The purpose of this test is to verify that files may be memory
22191    mapped, and that memory mapping and file I/O are coherent.
22192
22193    The test creates a test file, memory maps the file, updates
22194    the file using the memory map, and then reads the file using
22195    file I/O to verify that the file contains the updates.
22196 */
22197
22198 #include <fcntl.h>
22199 #include <sys/mman.h>
22200
22201 #if !STDC_HEADERS && !HAVE_STDLIB_H
22202 char *malloc ();
22203 #endif
22204
22205 /* This mess was copied from the GNU getpagesize.h.  */
22206 #if !HAVE_GETPAGESIZE
22207 /* Assume that all systems that can run configure have sys/param.h.  */
22208 # if !HAVE_SYS_PARAM_H
22209 #  define HAVE_SYS_PARAM_H 1
22210 # endif
22211
22212 # ifdef _SC_PAGESIZE
22213 #  define getpagesize() sysconf(_SC_PAGESIZE)
22214 # else /* no _SC_PAGESIZE */
22215 #  if HAVE_SYS_PARAM_H
22216 #   include <sys/param.h>
22217 #   ifdef EXEC_PAGESIZE
22218 #    define getpagesize() EXEC_PAGESIZE
22219 #   else /* no EXEC_PAGESIZE */
22220 #    ifdef NBPG
22221 #     define getpagesize() NBPG * CLSIZE
22222 #     ifndef CLSIZE
22223 #      define CLSIZE 1
22224 #     endif /* no CLSIZE */
22225 #    else /* no NBPG */
22226 #     ifdef NBPC
22227 #      define getpagesize() NBPC
22228 #     else /* no NBPC */
22229 #      ifdef PAGESIZE
22230 #       define getpagesize() PAGESIZE
22231 #      endif /* PAGESIZE */
22232 #     endif /* no NBPC */
22233 #    endif /* no NBPG */
22234 #   endif /* no EXEC_PAGESIZE */
22235 #  else /* no HAVE_SYS_PARAM_H */
22236 #   define getpagesize() 8192   /* punt totally */
22237 #  endif /* no HAVE_SYS_PARAM_H */
22238 # endif /* no _SC_PAGESIZE */
22239
22240 #endif /* no HAVE_GETPAGESIZE */
22241
22242 int
22243 main ()
22244 {
22245   char *data, *data2, *data3;
22246   int i, pagesize;
22247   int fd;
22248
22249   pagesize = getpagesize ();
22250
22251   /* First, make a file with some known garbage in it. */
22252   data = (char *) malloc (pagesize);
22253   if (!data)
22254     exit (1);
22255   for (i = 0; i < pagesize; ++i)
22256     *(data + i) = rand ();
22257   umask (0);
22258   fd = creat ("conftest.mmap", 0600);
22259   if (fd < 0)
22260     exit (1);
22261   if (write (fd, data, pagesize) != pagesize)
22262     exit (1);
22263   close (fd);
22264
22265   /* Mmap the file as read/write/shared and verify that we see the
22266   same garbage. */
22267   fd = open ("conftest.mmap", O_RDWR);
22268   if (fd < 0)
22269     exit (1);
22270   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22271   if (data2 == 0)
22272     exit (1);
22273   for (i = 0; i < pagesize; ++i)
22274     if (*(data + i) != *(data2 + i))
22275       exit (1);
22276
22277   /* Finally, make sure that changes to the mapped area
22278      percolate back to the file as seen by read().  */
22279   for (i = 0; i < pagesize; ++i)
22280     *(data2 + i) = *(data2 + i) + 1;
22281   data3 = (char *) malloc (pagesize);
22282   if (!data3)
22283     exit (1);
22284   if (read (fd, data3, pagesize) != pagesize)
22285     exit (1);
22286   for (i = 0; i < pagesize; ++i)
22287     if (*(data2 + i) != *(data3 + i))
22288       exit (1);
22289   close (fd);
22290   exit (0);
22291 }
22292 _ACEOF
22293 if ac_fn_c_try_run "$LINENO"; then :
22294   magick_cv_func_mmap_fileio=yes
22295 else
22296   magick_cv_func_mmap_fileio=no
22297 fi
22298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22299   conftest.$ac_objext conftest.beam conftest.$ac_ext
22300 fi
22301
22302 fi
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22304 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22305 if test $magick_cv_func_mmap_fileio = yes; then
22306
22307 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22308
22309 fi
22310 rm -f conftest.mmap
22311
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22313 $as_echo_n "checking whether closedir returns void... " >&6; }
22314 if test "${ac_cv_func_closedir_void+set}" = set; then :
22315   $as_echo_n "(cached) " >&6
22316 else
22317   if test "$cross_compiling" = yes; then :
22318   ac_cv_func_closedir_void=yes
22319 else
22320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h.  */
22322 $ac_includes_default
22323 #include <$ac_header_dirent>
22324 #ifndef __cplusplus
22325 int closedir ();
22326 #endif
22327
22328 int
22329 main ()
22330 {
22331 return closedir (opendir (".")) != 0;
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 if ac_fn_c_try_run "$LINENO"; then :
22337   ac_cv_func_closedir_void=no
22338 else
22339   ac_cv_func_closedir_void=yes
22340 fi
22341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342   conftest.$ac_objext conftest.beam conftest.$ac_ext
22343 fi
22344
22345 fi
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22347 $as_echo "$ac_cv_func_closedir_void" >&6; }
22348 if test $ac_cv_func_closedir_void = yes; then
22349
22350 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22351
22352 fi
22353
22354
22355
22356
22357   for ac_header in $ac_header_list
22358 do :
22359   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22361 "
22362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22363   cat >>confdefs.h <<_ACEOF
22364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22365 _ACEOF
22366
22367 fi
22368
22369 done
22370
22371
22372
22373
22374
22375
22376
22377
22378 for ac_func in getpagesize
22379 do :
22380   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22381 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22382   cat >>confdefs.h <<_ACEOF
22383 #define HAVE_GETPAGESIZE 1
22384 _ACEOF
22385
22386 fi
22387 done
22388
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22390 $as_echo_n "checking for working mmap... " >&6; }
22391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22392   $as_echo_n "(cached) " >&6
22393 else
22394   if test "$cross_compiling" = yes; then :
22395   ac_cv_func_mmap_fixed_mapped=no
22396 else
22397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h.  */
22399 $ac_includes_default
22400 /* malloc might have been renamed as rpl_malloc. */
22401 #undef malloc
22402
22403 /* Thanks to Mike Haertel and Jim Avera for this test.
22404    Here is a matrix of mmap possibilities:
22405         mmap private not fixed
22406         mmap private fixed at somewhere currently unmapped
22407         mmap private fixed at somewhere already mapped
22408         mmap shared not fixed
22409         mmap shared fixed at somewhere currently unmapped
22410         mmap shared fixed at somewhere already mapped
22411    For private mappings, we should verify that changes cannot be read()
22412    back from the file, nor mmap's back from the file at a different
22413    address.  (There have been systems where private was not correctly
22414    implemented like the infamous i386 svr4.0, and systems where the
22415    VM page cache was not coherent with the file system buffer cache
22416    like early versions of FreeBSD and possibly contemporary NetBSD.)
22417    For shared mappings, we should conversely verify that changes get
22418    propagated back to all the places they're supposed to be.
22419
22420    Grep wants private fixed already mapped.
22421    The main things grep needs to know about mmap are:
22422    * does it exist and is it safe to write into the mmap'd area
22423    * how to use it (BSD variants)  */
22424
22425 #include <fcntl.h>
22426 #include <sys/mman.h>
22427
22428 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22429 char *malloc ();
22430 #endif
22431
22432 /* This mess was copied from the GNU getpagesize.h.  */
22433 #ifndef HAVE_GETPAGESIZE
22434 # ifdef _SC_PAGESIZE
22435 #  define getpagesize() sysconf(_SC_PAGESIZE)
22436 # else /* no _SC_PAGESIZE */
22437 #  ifdef HAVE_SYS_PARAM_H
22438 #   include <sys/param.h>
22439 #   ifdef EXEC_PAGESIZE
22440 #    define getpagesize() EXEC_PAGESIZE
22441 #   else /* no EXEC_PAGESIZE */
22442 #    ifdef NBPG
22443 #     define getpagesize() NBPG * CLSIZE
22444 #     ifndef CLSIZE
22445 #      define CLSIZE 1
22446 #     endif /* no CLSIZE */
22447 #    else /* no NBPG */
22448 #     ifdef NBPC
22449 #      define getpagesize() NBPC
22450 #     else /* no NBPC */
22451 #      ifdef PAGESIZE
22452 #       define getpagesize() PAGESIZE
22453 #      endif /* PAGESIZE */
22454 #     endif /* no NBPC */
22455 #    endif /* no NBPG */
22456 #   endif /* no EXEC_PAGESIZE */
22457 #  else /* no HAVE_SYS_PARAM_H */
22458 #   define getpagesize() 8192   /* punt totally */
22459 #  endif /* no HAVE_SYS_PARAM_H */
22460 # endif /* no _SC_PAGESIZE */
22461
22462 #endif /* no HAVE_GETPAGESIZE */
22463
22464 int
22465 main ()
22466 {
22467   char *data, *data2, *data3;
22468   const char *cdata2;
22469   int i, pagesize;
22470   int fd, fd2;
22471
22472   pagesize = getpagesize ();
22473
22474   /* First, make a file with some known garbage in it. */
22475   data = (char *) malloc (pagesize);
22476   if (!data)
22477     return 1;
22478   for (i = 0; i < pagesize; ++i)
22479     *(data + i) = rand ();
22480   umask (0);
22481   fd = creat ("conftest.mmap", 0600);
22482   if (fd < 0)
22483     return 2;
22484   if (write (fd, data, pagesize) != pagesize)
22485     return 3;
22486   close (fd);
22487
22488   /* Next, check that the tail of a page is zero-filled.  File must have
22489      non-zero length, otherwise we risk SIGBUS for entire page.  */
22490   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22491   if (fd2 < 0)
22492     return 4;
22493   cdata2 = "";
22494   if (write (fd2, cdata2, 1) != 1)
22495     return 5;
22496   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22497   if (data2 == MAP_FAILED)
22498     return 6;
22499   for (i = 0; i < pagesize; ++i)
22500     if (*(data2 + i))
22501       return 7;
22502   close (fd2);
22503   if (munmap (data2, pagesize))
22504     return 8;
22505
22506   /* Next, try to mmap the file at a fixed address which already has
22507      something else allocated at it.  If we can, also make sure that
22508      we see the same garbage.  */
22509   fd = open ("conftest.mmap", O_RDWR);
22510   if (fd < 0)
22511     return 9;
22512   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22513                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22514     return 10;
22515   for (i = 0; i < pagesize; ++i)
22516     if (*(data + i) != *(data2 + i))
22517       return 11;
22518
22519   /* Finally, make sure that changes to the mapped area do not
22520      percolate back to the file as seen by read().  (This is a bug on
22521      some variants of i386 svr4.0.)  */
22522   for (i = 0; i < pagesize; ++i)
22523     *(data2 + i) = *(data2 + i) + 1;
22524   data3 = (char *) malloc (pagesize);
22525   if (!data3)
22526     return 12;
22527   if (read (fd, data3, pagesize) != pagesize)
22528     return 13;
22529   for (i = 0; i < pagesize; ++i)
22530     if (*(data + i) != *(data3 + i))
22531       return 14;
22532   close (fd);
22533   return 0;
22534 }
22535 _ACEOF
22536 if ac_fn_c_try_run "$LINENO"; then :
22537   ac_cv_func_mmap_fixed_mapped=yes
22538 else
22539   ac_cv_func_mmap_fixed_mapped=no
22540 fi
22541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542   conftest.$ac_objext conftest.beam conftest.$ac_ext
22543 fi
22544
22545 fi
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22547 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22549
22550 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22551
22552 fi
22553 rm -f conftest.mmap conftest.txt
22554
22555 for ac_header in vfork.h
22556 do :
22557   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22558 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22559   cat >>confdefs.h <<_ACEOF
22560 #define HAVE_VFORK_H 1
22561 _ACEOF
22562
22563 fi
22564
22565 done
22566
22567 for ac_func in fork vfork
22568 do :
22569   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22572   cat >>confdefs.h <<_ACEOF
22573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22574 _ACEOF
22575
22576 fi
22577 done
22578
22579 if test "x$ac_cv_func_fork" = xyes; then
22580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22581 $as_echo_n "checking for working fork... " >&6; }
22582 if test "${ac_cv_func_fork_works+set}" = set; then :
22583   $as_echo_n "(cached) " >&6
22584 else
22585   if test "$cross_compiling" = yes; then :
22586   ac_cv_func_fork_works=cross
22587 else
22588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h.  */
22590 $ac_includes_default
22591 int
22592 main ()
22593 {
22594
22595           /* By Ruediger Kuhlmann. */
22596           return fork () < 0;
22597
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 if ac_fn_c_try_run "$LINENO"; then :
22603   ac_cv_func_fork_works=yes
22604 else
22605   ac_cv_func_fork_works=no
22606 fi
22607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22608   conftest.$ac_objext conftest.beam conftest.$ac_ext
22609 fi
22610
22611 fi
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22613 $as_echo "$ac_cv_func_fork_works" >&6; }
22614
22615 else
22616   ac_cv_func_fork_works=$ac_cv_func_fork
22617 fi
22618 if test "x$ac_cv_func_fork_works" = xcross; then
22619   case $host in
22620     *-*-amigaos* | *-*-msdosdjgpp*)
22621       # Override, as these systems have only a dummy fork() stub
22622       ac_cv_func_fork_works=no
22623       ;;
22624     *)
22625       ac_cv_func_fork_works=yes
22626       ;;
22627   esac
22628   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22629 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22630 fi
22631 ac_cv_func_vfork_works=$ac_cv_func_vfork
22632 if test "x$ac_cv_func_vfork" = xyes; then
22633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22634 $as_echo_n "checking for working vfork... " >&6; }
22635 if test "${ac_cv_func_vfork_works+set}" = set; then :
22636   $as_echo_n "(cached) " >&6
22637 else
22638   if test "$cross_compiling" = yes; then :
22639   ac_cv_func_vfork_works=cross
22640 else
22641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642 /* end confdefs.h.  */
22643 /* Thanks to Paul Eggert for this test.  */
22644 $ac_includes_default
22645 #include <sys/wait.h>
22646 #ifdef HAVE_VFORK_H
22647 # include <vfork.h>
22648 #endif
22649 /* On some sparc systems, changes by the child to local and incoming
22650    argument registers are propagated back to the parent.  The compiler
22651    is told about this with #include <vfork.h>, but some compilers
22652    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22653    static variable whose address is put into a register that is
22654    clobbered by the vfork.  */
22655 static void
22656 #ifdef __cplusplus
22657 sparc_address_test (int arg)
22658 # else
22659 sparc_address_test (arg) int arg;
22660 #endif
22661 {
22662   static pid_t child;
22663   if (!child) {
22664     child = vfork ();
22665     if (child < 0) {
22666       perror ("vfork");
22667       _exit(2);
22668     }
22669     if (!child) {
22670       arg = getpid();
22671       write(-1, "", 0);
22672       _exit (arg);
22673     }
22674   }
22675 }
22676
22677 int
22678 main ()
22679 {
22680   pid_t parent = getpid ();
22681   pid_t child;
22682
22683   sparc_address_test (0);
22684
22685   child = vfork ();
22686
22687   if (child == 0) {
22688     /* Here is another test for sparc vfork register problems.  This
22689        test uses lots of local variables, at least as many local
22690        variables as main has allocated so far including compiler
22691        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22692        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22693        reuse the register of parent for one of the local variables,
22694        since it will think that parent can't possibly be used any more
22695        in this routine.  Assigning to the local variable will thus
22696        munge parent in the parent process.  */
22697     pid_t
22698       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22699       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22700     /* Convince the compiler that p..p7 are live; otherwise, it might
22701        use the same hardware register for all 8 local variables.  */
22702     if (p != p1 || p != p2 || p != p3 || p != p4
22703         || p != p5 || p != p6 || p != p7)
22704       _exit(1);
22705
22706     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22707        from child file descriptors.  If the child closes a descriptor
22708        before it execs or exits, this munges the parent's descriptor
22709        as well.  Test for this by closing stdout in the child.  */
22710     _exit(close(fileno(stdout)) != 0);
22711   } else {
22712     int status;
22713     struct stat st;
22714
22715     while (wait(&status) != child)
22716       ;
22717     return (
22718          /* Was there some problem with vforking?  */
22719          child < 0
22720
22721          /* Did the child fail?  (This shouldn't happen.)  */
22722          || status
22723
22724          /* Did the vfork/compiler bug occur?  */
22725          || parent != getpid()
22726
22727          /* Did the file descriptor bug occur?  */
22728          || fstat(fileno(stdout), &st) != 0
22729          );
22730   }
22731 }
22732 _ACEOF
22733 if ac_fn_c_try_run "$LINENO"; then :
22734   ac_cv_func_vfork_works=yes
22735 else
22736   ac_cv_func_vfork_works=no
22737 fi
22738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22739   conftest.$ac_objext conftest.beam conftest.$ac_ext
22740 fi
22741
22742 fi
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22744 $as_echo "$ac_cv_func_vfork_works" >&6; }
22745
22746 fi;
22747 if test "x$ac_cv_func_fork_works" = xcross; then
22748   ac_cv_func_vfork_works=$ac_cv_func_vfork
22749   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22750 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22751 fi
22752
22753 if test "x$ac_cv_func_vfork_works" = xyes; then
22754
22755 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22756
22757 else
22758
22759 $as_echo "#define vfork fork" >>confdefs.h
22760
22761 fi
22762 if test "x$ac_cv_func_fork_works" = xyes; then
22763
22764 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22765
22766 fi
22767
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22769 $as_echo_n "checking for working memcmp... " >&6; }
22770 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773   if test "$cross_compiling" = yes; then :
22774   ac_cv_func_memcmp_working=no
22775 else
22776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h.  */
22778 $ac_includes_default
22779 int
22780 main ()
22781 {
22782
22783   /* Some versions of memcmp are not 8-bit clean.  */
22784   char c0 = '\100', c1 = '\200', c2 = '\201';
22785   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22786     return 1;
22787
22788   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22789      or more and with at least one buffer not starting on a 4-byte boundary.
22790      William Lewis provided this test program.   */
22791   {
22792     char foo[21];
22793     char bar[21];
22794     int i;
22795     for (i = 0; i < 4; i++)
22796       {
22797         char *a = foo + i;
22798         char *b = bar + i;
22799         strcpy (a, "--------01111111");
22800         strcpy (b, "--------10000000");
22801         if (memcmp (a, b, 16) >= 0)
22802           return 1;
22803       }
22804     return 0;
22805   }
22806
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 if ac_fn_c_try_run "$LINENO"; then :
22812   ac_cv_func_memcmp_working=yes
22813 else
22814   ac_cv_func_memcmp_working=no
22815 fi
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22817   conftest.$ac_objext conftest.beam conftest.$ac_ext
22818 fi
22819
22820 fi
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22822 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22823 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22824   *" memcmp.$ac_objext "* ) ;;
22825   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22826  ;;
22827 esac
22828
22829
22830 for ac_header in sys/select.h sys/socket.h
22831 do :
22832   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22833 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22835   cat >>confdefs.h <<_ACEOF
22836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22837 _ACEOF
22838
22839 fi
22840
22841 done
22842
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22844 $as_echo_n "checking types of arguments for select... " >&6; }
22845 if test "${ac_cv_func_select_args+set}" = set; then :
22846   $as_echo_n "(cached) " >&6
22847 else
22848   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22849  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22850   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22851    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22852 /* end confdefs.h.  */
22853 $ac_includes_default
22854 #ifdef HAVE_SYS_SELECT_H
22855 # include <sys/select.h>
22856 #endif
22857 #ifdef HAVE_SYS_SOCKET_H
22858 # include <sys/socket.h>
22859 #endif
22860
22861 int
22862 main ()
22863 {
22864 extern int select ($ac_arg1,
22865                                             $ac_arg234, $ac_arg234, $ac_arg234,
22866                                             $ac_arg5);
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 if ac_fn_c_try_compile "$LINENO"; then :
22872   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22873 fi
22874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22875   done
22876  done
22877 done
22878 # Provide a safe default value.
22879 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22880
22881 fi
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22883 $as_echo "$ac_cv_func_select_args" >&6; }
22884 ac_save_IFS=$IFS; IFS=','
22885 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22886 IFS=$ac_save_IFS
22887 shift
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define SELECT_TYPE_ARG1 $1
22891 _ACEOF
22892
22893
22894 cat >>confdefs.h <<_ACEOF
22895 #define SELECT_TYPE_ARG234 ($2)
22896 _ACEOF
22897
22898
22899 cat >>confdefs.h <<_ACEOF
22900 #define SELECT_TYPE_ARG5 ($3)
22901 _ACEOF
22902
22903 rm -f conftest*
22904
22905 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22906   $as_echo_n "(cached) " >&6
22907 else
22908   ac_cv_func_setvbuf_reversed=no
22909 fi
22910
22911
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22913 $as_echo_n "checking return type of signal handlers... " >&6; }
22914 if test "${ac_cv_type_signal+set}" = set; then :
22915   $as_echo_n "(cached) " >&6
22916 else
22917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h.  */
22919 #include <sys/types.h>
22920 #include <signal.h>
22921
22922 int
22923 main ()
22924 {
22925 return *(signal (0, 0)) (0) == 1;
22926   ;
22927   return 0;
22928 }
22929 _ACEOF
22930 if ac_fn_c_try_compile "$LINENO"; then :
22931   ac_cv_type_signal=int
22932 else
22933   ac_cv_type_signal=void
22934 fi
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 fi
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22938 $as_echo "$ac_cv_type_signal" >&6; }
22939
22940 cat >>confdefs.h <<_ACEOF
22941 #define RETSIGTYPE $ac_cv_type_signal
22942 _ACEOF
22943
22944
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22946 $as_echo_n "checking for working strtod... " >&6; }
22947 if test "${ac_cv_func_strtod+set}" = set; then :
22948   $as_echo_n "(cached) " >&6
22949 else
22950   if test "$cross_compiling" = yes; then :
22951   ac_cv_func_strtod=no
22952 else
22953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h.  */
22955
22956 $ac_includes_default
22957 #ifndef strtod
22958 double strtod ();
22959 #endif
22960 int
22961 main()
22962 {
22963   {
22964     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22965     char *string = " +69";
22966     char *term;
22967     double value;
22968     value = strtod (string, &term);
22969     if (value != 69 || term != (string + 4))
22970       return 1;
22971   }
22972
22973   {
22974     /* Under Solaris 2.4, strtod returns the wrong value for the
22975        terminating character under some conditions.  */
22976     char *string = "NaN";
22977     char *term;
22978     strtod (string, &term);
22979     if (term != string && *(term - 1) == 0)
22980       return 1;
22981   }
22982   return 0;
22983 }
22984
22985 _ACEOF
22986 if ac_fn_c_try_run "$LINENO"; then :
22987   ac_cv_func_strtod=yes
22988 else
22989   ac_cv_func_strtod=no
22990 fi
22991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22992   conftest.$ac_objext conftest.beam conftest.$ac_ext
22993 fi
22994
22995 fi
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22997 $as_echo "$ac_cv_func_strtod" >&6; }
22998 if test $ac_cv_func_strtod = no; then
22999   case " $LIBOBJS " in
23000   *" strtod.$ac_objext "* ) ;;
23001   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23002  ;;
23003 esac
23004
23005 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23006 if test "x$ac_cv_func_pow" = x""yes; then :
23007
23008 fi
23009
23010 if test $ac_cv_func_pow = no; then
23011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23012 $as_echo_n "checking for pow in -lm... " >&6; }
23013 if test "${ac_cv_lib_m_pow+set}" = set; then :
23014   $as_echo_n "(cached) " >&6
23015 else
23016   ac_check_lib_save_LIBS=$LIBS
23017 LIBS="-lm  $LIBS"
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h.  */
23020
23021 /* Override any GCC internal prototype to avoid an error.
23022    Use char because int might match the return type of a GCC
23023    builtin and then its argument prototype would still apply.  */
23024 #ifdef __cplusplus
23025 extern "C"
23026 #endif
23027 char pow ();
23028 int
23029 main ()
23030 {
23031 return pow ();
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 if ac_fn_c_try_link "$LINENO"; then :
23037   ac_cv_lib_m_pow=yes
23038 else
23039   ac_cv_lib_m_pow=no
23040 fi
23041 rm -f core conftest.err conftest.$ac_objext \
23042     conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23044 fi
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23046 $as_echo "$ac_cv_lib_m_pow" >&6; }
23047 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23048   POW_LIB=-lm
23049 else
23050   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23051 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23052 fi
23053
23054 fi
23055
23056 fi
23057
23058 for ac_func in vprintf
23059 do :
23060   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23061 if test "x$ac_cv_func_vprintf" = x""yes; then :
23062   cat >>confdefs.h <<_ACEOF
23063 #define HAVE_VPRINTF 1
23064 _ACEOF
23065
23066 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23067 if test "x$ac_cv_func__doprnt" = x""yes; then :
23068
23069 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23070
23071 fi
23072
23073 fi
23074 done
23075
23076
23077
23078 #
23079 # Find math library
23080 #
23081 MATH_LIBS=''
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23083 $as_echo_n "checking for sqrt in -lm... " >&6; }
23084 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23085   $as_echo_n "(cached) " >&6
23086 else
23087   ac_check_lib_save_LIBS=$LIBS
23088 LIBS="-lm  $LIBS"
23089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h.  */
23091
23092 /* Override any GCC internal prototype to avoid an error.
23093    Use char because int might match the return type of a GCC
23094    builtin and then its argument prototype would still apply.  */
23095 #ifdef __cplusplus
23096 extern "C"
23097 #endif
23098 char sqrt ();
23099 int
23100 main ()
23101 {
23102 return sqrt ();
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 if ac_fn_c_try_link "$LINENO"; then :
23108   ac_cv_lib_m_sqrt=yes
23109 else
23110   ac_cv_lib_m_sqrt=no
23111 fi
23112 rm -f core conftest.err conftest.$ac_objext \
23113     conftest$ac_exeext conftest.$ac_ext
23114 LIBS=$ac_check_lib_save_LIBS
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23117 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23118 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23119   MATH_LIBS="-lm"
23120 fi
23121
23122 LIBS="$MATH_LIBS $LIBS"
23123
23124
23125 for ac_func in atoll atexit cabs carg cimag creal 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
23126 do :
23127   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23130   cat >>confdefs.h <<_ACEOF
23131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23132 _ACEOF
23133
23134 fi
23135 done
23136
23137
23138 #
23139 # Check for clock_gettime().
23140 #
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23142 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23143 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23144   $as_echo_n "(cached) " >&6
23145 else
23146   ac_func_search_save_LIBS=$LIBS
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h.  */
23149
23150 /* Override any GCC internal prototype to avoid an error.
23151    Use char because int might match the return type of a GCC
23152    builtin and then its argument prototype would still apply.  */
23153 #ifdef __cplusplus
23154 extern "C"
23155 #endif
23156 char clock_gettime ();
23157 int
23158 main ()
23159 {
23160 return clock_gettime ();
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 for ac_lib in '' rt; do
23166   if test -z "$ac_lib"; then
23167     ac_res="none required"
23168   else
23169     ac_res=-l$ac_lib
23170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23171   fi
23172   if ac_fn_c_try_link "$LINENO"; then :
23173   ac_cv_search_clock_gettime=$ac_res
23174 fi
23175 rm -f core conftest.err conftest.$ac_objext \
23176     conftest$ac_exeext
23177   if test "${ac_cv_search_clock_gettime+set}" = set; then :
23178   break
23179 fi
23180 done
23181 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23182
23183 else
23184   ac_cv_search_clock_gettime=no
23185 fi
23186 rm conftest.$ac_ext
23187 LIBS=$ac_func_search_save_LIBS
23188 fi
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23190 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23191 ac_res=$ac_cv_search_clock_gettime
23192 if test "$ac_res" != no; then :
23193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23194
23195
23196 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23197
23198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23199 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201 /* end confdefs.h.  */
23202 #include <time.h>
23203 int
23204 main ()
23205 {
23206 clockid_t clockType = CLOCK_REALTIME;
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 if ac_fn_c_try_compile "$LINENO"; then :
23212
23213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23214 $as_echo "yes" >&6; }
23215
23216 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23217
23218
23219 else
23220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23221 $as_echo "no" >&6; }
23222
23223 fi
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23225
23226 else
23227
23228     for ac_func in gettimeofday ftime
23229 do :
23230   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23233   cat >>confdefs.h <<_ACEOF
23234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23235 _ACEOF
23236  break
23237 fi
23238 done
23239
23240
23241
23242 fi
23243
23244
23245 ########
23246 #
23247 # Check for function prototypes
23248 #
23249 ########
23250
23251 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23252 #include <unistd.h>
23253 "
23254 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23255   ac_have_decl=1
23256 else
23257   ac_have_decl=0
23258 fi
23259
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_DECL_PREAD $ac_have_decl
23262 _ACEOF
23263 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23264 #include <unistd.h>
23265 "
23266 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23267   ac_have_decl=1
23268 else
23269   ac_have_decl=0
23270 fi
23271
23272 cat >>confdefs.h <<_ACEOF
23273 #define HAVE_DECL_PWRITE $ac_have_decl
23274 _ACEOF
23275
23276
23277 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23278 #include <strings.h>
23279 "
23280 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23281   ac_have_decl=1
23282 else
23283   ac_have_decl=0
23284 fi
23285
23286 cat >>confdefs.h <<_ACEOF
23287 #define HAVE_DECL_STRLCPY $ac_have_decl
23288 _ACEOF
23289
23290
23291 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23292 #include <stdio.h>
23293 #include <stdarg.h>
23294 "
23295 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23296   ac_have_decl=1
23297 else
23298   ac_have_decl=0
23299 fi
23300
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23303 _ACEOF
23304
23305
23306 ########
23307 #
23308 # C++ Support Tests (For Magick++)
23309 #
23310 ########
23311 have_magick_plus_plus='no'
23312 if test "$with_magick_plus_plus" = 'yes'; then
23313     OLIBS="$LIBS"
23314     LIBS=''
23315     ac_ext=cpp
23316 ac_cpp='$CXXCPP $CPPFLAGS'
23317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23320
23321
23322     # Full set of headers used...
23323     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23324     # functional iomanip iosfwd iostream iterator list string strstream utility
23325     ac_ext=cpp
23326 ac_cpp='$CXXCPP $CPPFLAGS'
23327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23330
23331     ac_ext=cpp
23332 ac_cpp='$CXXCPP $CPPFLAGS'
23333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336 if test -z "$CXX"; then
23337   if test -n "$CCC"; then
23338     CXX=$CCC
23339   else
23340     if test -n "$ac_tool_prefix"; then
23341   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23342   do
23343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23346 $as_echo_n "checking for $ac_word... " >&6; }
23347 if test "${ac_cv_prog_CXX+set}" = set; then :
23348   $as_echo_n "(cached) " >&6
23349 else
23350   if test -n "$CXX"; then
23351   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23352 else
23353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23354 for as_dir in $PATH
23355 do
23356   IFS=$as_save_IFS
23357   test -z "$as_dir" && as_dir=.
23358     for ac_exec_ext in '' $ac_executable_extensions; do
23359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23360     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23362     break 2
23363   fi
23364 done
23365   done
23366 IFS=$as_save_IFS
23367
23368 fi
23369 fi
23370 CXX=$ac_cv_prog_CXX
23371 if test -n "$CXX"; then
23372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23373 $as_echo "$CXX" >&6; }
23374 else
23375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23377 fi
23378
23379
23380     test -n "$CXX" && break
23381   done
23382 fi
23383 if test -z "$CXX"; then
23384   ac_ct_CXX=$CXX
23385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23386 do
23387   # Extract the first word of "$ac_prog", so it can be a program name with args.
23388 set dummy $ac_prog; ac_word=$2
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23390 $as_echo_n "checking for $ac_word... " >&6; }
23391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23392   $as_echo_n "(cached) " >&6
23393 else
23394   if test -n "$ac_ct_CXX"; then
23395   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23396 else
23397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398 for as_dir in $PATH
23399 do
23400   IFS=$as_save_IFS
23401   test -z "$as_dir" && as_dir=.
23402     for ac_exec_ext in '' $ac_executable_extensions; do
23403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23404     ac_cv_prog_ac_ct_CXX="$ac_prog"
23405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23406     break 2
23407   fi
23408 done
23409   done
23410 IFS=$as_save_IFS
23411
23412 fi
23413 fi
23414 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23415 if test -n "$ac_ct_CXX"; then
23416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23417 $as_echo "$ac_ct_CXX" >&6; }
23418 else
23419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23421 fi
23422
23423
23424   test -n "$ac_ct_CXX" && break
23425 done
23426
23427   if test "x$ac_ct_CXX" = x; then
23428     CXX="g++"
23429   else
23430     case $cross_compiling:$ac_tool_warned in
23431 yes:)
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23434 ac_tool_warned=yes ;;
23435 esac
23436     CXX=$ac_ct_CXX
23437   fi
23438 fi
23439
23440   fi
23441 fi
23442 # Provide some information about the compiler.
23443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23444 set X $ac_compile
23445 ac_compiler=$2
23446 for ac_option in --version -v -V -qversion; do
23447   { { ac_try="$ac_compiler $ac_option >&5"
23448 case "(($ac_try" in
23449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450   *) ac_try_echo=$ac_try;;
23451 esac
23452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23453 $as_echo "$ac_try_echo"; } >&5
23454   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23455   ac_status=$?
23456   if test -s conftest.err; then
23457     sed '10a\
23458 ... rest of stderr output deleted ...
23459          10q' conftest.err >conftest.er1
23460     cat conftest.er1 >&5
23461   fi
23462   rm -f conftest.er1 conftest.err
23463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464   test $ac_status = 0; }
23465 done
23466
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23468 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23469 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23470   $as_echo_n "(cached) " >&6
23471 else
23472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h.  */
23474
23475 int
23476 main ()
23477 {
23478 #ifndef __GNUC__
23479        choke me
23480 #endif
23481
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 if ac_fn_cxx_try_compile "$LINENO"; then :
23487   ac_compiler_gnu=yes
23488 else
23489   ac_compiler_gnu=no
23490 fi
23491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23493
23494 fi
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23496 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23497 if test $ac_compiler_gnu = yes; then
23498   GXX=yes
23499 else
23500   GXX=
23501 fi
23502 ac_test_CXXFLAGS=${CXXFLAGS+set}
23503 ac_save_CXXFLAGS=$CXXFLAGS
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23505 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23506 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23510    ac_cxx_werror_flag=yes
23511    ac_cv_prog_cxx_g=no
23512    CXXFLAGS="-g"
23513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h.  */
23515
23516 int
23517 main ()
23518 {
23519
23520   ;
23521   return 0;
23522 }
23523 _ACEOF
23524 if ac_fn_cxx_try_compile "$LINENO"; then :
23525   ac_cv_prog_cxx_g=yes
23526 else
23527   CXXFLAGS=""
23528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h.  */
23530
23531 int
23532 main ()
23533 {
23534
23535   ;
23536   return 0;
23537 }
23538 _ACEOF
23539 if ac_fn_cxx_try_compile "$LINENO"; then :
23540
23541 else
23542   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23543          CXXFLAGS="-g"
23544          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23545 /* end confdefs.h.  */
23546
23547 int
23548 main ()
23549 {
23550
23551   ;
23552   return 0;
23553 }
23554 _ACEOF
23555 if ac_fn_cxx_try_compile "$LINENO"; then :
23556   ac_cv_prog_cxx_g=yes
23557 fi
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 fi
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 fi
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23564 fi
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23566 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23567 if test "$ac_test_CXXFLAGS" = set; then
23568   CXXFLAGS=$ac_save_CXXFLAGS
23569 elif test $ac_cv_prog_cxx_g = yes; then
23570   if test "$GXX" = yes; then
23571     CXXFLAGS="-g -O2"
23572   else
23573     CXXFLAGS="-g"
23574   fi
23575 else
23576   if test "$GXX" = yes; then
23577     CXXFLAGS="-O2"
23578   else
23579     CXXFLAGS=
23580   fi
23581 fi
23582 ac_ext=cpp
23583 ac_cpp='$CXXCPP $CPPFLAGS'
23584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23587
23588 depcc="$CXX"  am_compiler_list=
23589
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23591 $as_echo_n "checking dependency style of $depcc... " >&6; }
23592 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23593   $as_echo_n "(cached) " >&6
23594 else
23595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23596   # We make a subdir and do the tests there.  Otherwise we can end up
23597   # making bogus files that we don't know about and never remove.  For
23598   # instance it was reported that on HP-UX the gcc test will end up
23599   # making a dummy file named `D' -- because `-MD' means `put the output
23600   # in D'.
23601   mkdir conftest.dir
23602   # Copy depcomp to subdir because otherwise we won't find it if we're
23603   # using a relative directory.
23604   cp "$am_depcomp" conftest.dir
23605   cd conftest.dir
23606   # We will build objects and dependencies in a subdirectory because
23607   # it helps to detect inapplicable dependency modes.  For instance
23608   # both Tru64's cc and ICC support -MD to output dependencies as a
23609   # side effect of compilation, but ICC will put the dependencies in
23610   # the current directory while Tru64 will put them in the object
23611   # directory.
23612   mkdir sub
23613
23614   am_cv_CXX_dependencies_compiler_type=none
23615   if test "$am_compiler_list" = ""; then
23616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23617   fi
23618   am__universal=false
23619   case " $depcc " in #(
23620      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23621      esac
23622
23623   for depmode in $am_compiler_list; do
23624     # Setup a source with many dependencies, because some compilers
23625     # like to wrap large dependency lists on column 80 (with \), and
23626     # we should not choose a depcomp mode which is confused by this.
23627     #
23628     # We need to recreate these files for each test, as the compiler may
23629     # overwrite some of them when testing with obscure command lines.
23630     # This happens at least with the AIX C compiler.
23631     : > sub/conftest.c
23632     for i in 1 2 3 4 5 6; do
23633       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23634       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23635       # Solaris 8's {/usr,}/bin/sh.
23636       touch sub/conftst$i.h
23637     done
23638     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23639
23640     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23641     # mode.  It turns out that the SunPro C++ compiler does not properly
23642     # handle `-M -o', and we need to detect this.  Also, some Intel
23643     # versions had trouble with output in subdirs
23644     am__obj=sub/conftest.${OBJEXT-o}
23645     am__minus_obj="-o $am__obj"
23646     case $depmode in
23647     gcc)
23648       # This depmode causes a compiler race in universal mode.
23649       test "$am__universal" = false || continue
23650       ;;
23651     nosideeffect)
23652       # after this tag, mechanisms are not by side-effect, so they'll
23653       # only be used when explicitly requested
23654       if test "x$enable_dependency_tracking" = xyes; then
23655         continue
23656       else
23657         break
23658       fi
23659       ;;
23660     msvisualcpp | msvcmsys)
23661       # This compiler won't grok `-c -o', but also, the minuso test has
23662       # not run yet.  These depmodes are late enough in the game, and
23663       # so weak that their functioning should not be impacted.
23664       am__obj=conftest.${OBJEXT-o}
23665       am__minus_obj=
23666       ;;
23667     none) break ;;
23668     esac
23669     if depmode=$depmode \
23670        source=sub/conftest.c object=$am__obj \
23671        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23672        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23673          >/dev/null 2>conftest.err &&
23674        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23675        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23676        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23677        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23678       # icc doesn't choke on unknown options, it will just issue warnings
23679       # or remarks (even with -Werror).  So we grep stderr for any message
23680       # that says an option was ignored or not supported.
23681       # When given -MP, icc 7.0 and 7.1 complain thusly:
23682       #   icc: Command line warning: ignoring option '-M'; no argument required
23683       # The diagnosis changed in icc 8.0:
23684       #   icc: Command line remark: option '-MP' not supported
23685       if (grep 'ignoring option' conftest.err ||
23686           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23687         am_cv_CXX_dependencies_compiler_type=$depmode
23688         break
23689       fi
23690     fi
23691   done
23692
23693   cd ..
23694   rm -rf conftest.dir
23695 else
23696   am_cv_CXX_dependencies_compiler_type=none
23697 fi
23698
23699 fi
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23701 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23702 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23703
23704  if
23705   test "x$enable_dependency_tracking" != xno \
23706   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23707   am__fastdepCXX_TRUE=
23708   am__fastdepCXX_FALSE='#'
23709 else
23710   am__fastdepCXX_TRUE='#'
23711   am__fastdepCXX_FALSE=
23712 fi
23713
23714
23715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23716 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23717 if test "${ax_cv_cxx_bool+set}" = set; then :
23718   $as_echo_n "(cached) " >&6
23719 else
23720
23721  ac_ext=cpp
23722 ac_cpp='$CXXCPP $CPPFLAGS'
23723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23726
23727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h.  */
23729
23730 int f(int  x){return 1;}
23731 int f(char x){return 1;}
23732 int f(bool x){return 1;}
23733
23734 int
23735 main ()
23736 {
23737 bool b = true; return f(b);
23738   ;
23739   return 0;
23740 }
23741 _ACEOF
23742 if ac_fn_cxx_try_compile "$LINENO"; then :
23743   ax_cv_cxx_bool=yes
23744 else
23745   ax_cv_cxx_bool=no
23746 fi
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748  ac_ext=cpp
23749 ac_cpp='$CXXCPP $CPPFLAGS'
23750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23753
23754
23755 fi
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23757 $as_echo "$ax_cv_cxx_bool" >&6; }
23758 if test "$ax_cv_cxx_bool" = yes; then
23759
23760 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23761
23762 fi
23763
23764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23765 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23766 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23767   $as_echo_n "(cached) " >&6
23768 else
23769
23770  ac_ext=cpp
23771 ac_cpp='$CXXCPP $CPPFLAGS'
23772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23775
23776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777 /* end confdefs.h.  */
23778 namespace Outer { namespace Inner { int i = 0; }}
23779 int
23780 main ()
23781 {
23782 using namespace Outer::Inner; return i;
23783   ;
23784   return 0;
23785 }
23786 _ACEOF
23787 if ac_fn_cxx_try_compile "$LINENO"; then :
23788   ax_cv_cxx_namespaces=yes
23789 else
23790   ax_cv_cxx_namespaces=no
23791 fi
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793  ac_ext=cpp
23794 ac_cpp='$CXXCPP $CPPFLAGS'
23795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
23799
23800 fi
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23802 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23803 if test "$ax_cv_cxx_namespaces" = yes; then
23804
23805 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23806
23807 fi
23808
23809
23810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23811 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23812 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23813   $as_echo_n "(cached) " >&6
23814 else
23815
23816   ac_ext=cpp
23817 ac_cpp='$CXXCPP $CPPFLAGS'
23818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23821
23822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h.  */
23824 #include <iostream>
23825                   std::istream& is = std::cin;
23826 int
23827 main ()
23828 {
23829
23830   ;
23831   return 0;
23832 }
23833 _ACEOF
23834 if ac_fn_cxx_try_compile "$LINENO"; then :
23835   ax_cv_cxx_have_std_namespace=yes
23836 else
23837   ax_cv_cxx_have_std_namespace=no
23838 fi
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840   ac_ext=cpp
23841 ac_cpp='$CXXCPP $CPPFLAGS'
23842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23845
23846
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23849 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23850   if test "$ax_cv_cxx_have_std_namespace" = yes; then
23851
23852 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23853
23854   fi
23855
23856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23857 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23858 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23859   $as_echo_n "(cached) " >&6
23860 else
23861
23862
23863  ac_ext=cpp
23864 ac_cpp='$CXXCPP $CPPFLAGS'
23865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23868
23869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870 /* end confdefs.h.  */
23871 #include <iostream>
23872 #include <map>
23873 #include <iomanip>
23874 #include <cmath>
23875 #ifdef HAVE_NAMESPACES
23876 using namespace std;
23877 #endif
23878 int
23879 main ()
23880 {
23881 return 0;
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 if ac_fn_cxx_try_compile "$LINENO"; then :
23887   ac_cv_cxx_have_std_libs=yes
23888 else
23889   ac_cv_cxx_have_std_libs=no
23890 fi
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892  ac_ext=cpp
23893 ac_cpp='$CXXCPP $CPPFLAGS'
23894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23897
23898
23899 fi
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23901 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23902 if test "$ac_cv_cxx_have_std_libs" = yes; then
23903
23904 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23905
23906 fi
23907
23908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23909 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23910 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23911   $as_echo_n "(cached) " >&6
23912 else
23913
23914  ac_ext=cpp
23915 ac_cpp='$CXXCPP $CPPFLAGS'
23916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23919
23920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h.  */
23922 const wchar_t* s=L"wide string";
23923 _ACEOF
23924 if ac_fn_cxx_try_compile "$LINENO"; then :
23925   ac_cv_cxx_have_lstring=yes
23926 else
23927   ac_cv_cxx_have_lstring=no
23928 fi
23929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930  ac_ext=cpp
23931 ac_cpp='$CXXCPP $CPPFLAGS'
23932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23935
23936
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23939 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23940 if test "$ac_cv_cxx_have_lstring" = yes; then
23941
23942 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23943
23944 fi
23945
23946
23947   OPENMP_CXXFLAGS=
23948   # Check whether --enable-openmp was given.
23949 if test "${enable_openmp+set}" = set; then :
23950   enableval=$enable_openmp;
23951 fi
23952
23953   if test "$enable_openmp" != no; then
23954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23955 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23956 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23957   $as_echo_n "(cached) " >&6
23958 else
23959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h.  */
23961
23962 #ifndef _OPENMP
23963  choke me
23964 #endif
23965 #include <omp.h>
23966 int main () { return omp_get_num_threads (); }
23967
23968 _ACEOF
23969 if ac_fn_cxx_try_link "$LINENO"; then :
23970   ac_cv_prog_cxx_openmp='none needed'
23971 else
23972   ac_cv_prog_cxx_openmp='unsupported'
23973                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23974             ac_save_CXXFLAGS=$CXXFLAGS
23975             CXXFLAGS="$CXXFLAGS $ac_option"
23976             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h.  */
23978
23979 #ifndef _OPENMP
23980  choke me
23981 #endif
23982 #include <omp.h>
23983 int main () { return omp_get_num_threads (); }
23984
23985 _ACEOF
23986 if ac_fn_cxx_try_link "$LINENO"; then :
23987   ac_cv_prog_cxx_openmp=$ac_option
23988 fi
23989 rm -f core conftest.err conftest.$ac_objext \
23990     conftest$ac_exeext conftest.$ac_ext
23991             CXXFLAGS=$ac_save_CXXFLAGS
23992             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23993               break
23994             fi
23995           done
23996 fi
23997 rm -f core conftest.err conftest.$ac_objext \
23998     conftest$ac_exeext conftest.$ac_ext
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24001 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24002     case $ac_cv_prog_cxx_openmp in #(
24003       "none needed" | unsupported)
24004         ;; #(
24005       *)
24006         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24007     esac
24008   fi
24009
24010
24011     ac_ext=c
24012 ac_cpp='$CPP $CPPFLAGS'
24013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24016
24017
24018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24019 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24020     if \
24021         test $ax_cv_cxx_bool = 'yes' && \
24022         test $ac_cv_cxx_have_lstring = 'yes' && \
24023         test $ax_cv_cxx_namespaces = 'yes' && \
24024         test $ac_cv_cxx_have_std_libs = 'yes' && \
24025         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24026         have_magick_plus_plus='yes'
24027     else
24028         have_magick_plus_plus='no (failed tests)'
24029     fi
24030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24031 $as_echo "$have_magick_plus_plus" >&6; }
24032     LIBS="$OLIBS"
24033 fi
24034  if test "$have_magick_plus_plus" = 'yes'; then
24035   WITH_MAGICK_PLUS_PLUS_TRUE=
24036   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24037 else
24038   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24039   WITH_MAGICK_PLUS_PLUS_FALSE=
24040 fi
24041
24042
24043 # Only check for delegate libraries in subdirectories if requested.
24044 if test "$enable_delegate_build" != 'no'; then
24045     # Check for delegate sub-directories and add -I & -L options as required.
24046     # This presumes that delegates are installed as detailed in the ImageMagick
24047     # README. If delegates are installed in a standard location where the
24048     # compiler will automatically find them then these options should not be
24049     # required.
24050
24051     #
24052     # Most delegates have includes in the same directory as the library, but not all...
24053     #
24054     # Includes
24055     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24056         if test -d "$builddir/$dir"; then
24057             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24058         else
24059             if test -d "$srcdirfull/$dir"; then
24060                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24061             fi
24062         fi
24063     done
24064
24065     # Libraries
24066     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24067     if test -d "$builddir/$dir/.libs"; then
24068         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24069     else
24070         if test -d "$srcdirfull/$dir/.libs"; then
24071             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24072         fi
24073     fi
24074     if test -d "$builddir/$dir"; then
24075         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24076     else
24077         if test -d "$srcdirfull/$dir"; then
24078             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24079         fi
24080     fi
24081   done
24082 fi
24083
24084 # Assume that delegate headers reside under same directory as ImageMagick
24085 # installation prefix.
24086 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24087
24088 #
24089 # Find the X11 RGB database
24090 #
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24092 $as_echo_n "checking for X11 configure files... " >&6; }
24093 if test "${im_cv_x_configure+set}" = set; then :
24094   $as_echo_n "(cached) " >&6
24095 else
24096   # Look for the header file in a standard set of common directories.
24097 # Check X11 before X11Rn because it is often a symlink to the current release.
24098     for ac_dir in          \
24099     /lib/usr/lib/X11       \
24100     /usr/X11/lib           \
24101     /usr/X11R4/lib         \
24102     /usr/X11R5/lib         \
24103     /usr/X11R6/lib         \
24104     /usr/X11R7/lib         \
24105     /usr/X386/lib          \
24106     /usr/XFree86/lib/X11   \
24107     /usr/athena/lib        \
24108     /usr/lib               \
24109     /usr/lib/X11           \
24110     /usr/lib/X11R4         \
24111     /usr/lib/X11R5         \
24112     /usr/lib/X11R6         \
24113     /usr/lib/X11R7         \
24114     /usr/local/X11/lib     \
24115     /usr/local/X11R4/lib   \
24116     /usr/local/X11R5/lib   \
24117     /usr/local/X11R6/lib   \
24118     /usr/local/lib         \
24119     /usr/local/lib/X11     \
24120     /usr/local/lib/X11R4   \
24121     /usr/local/lib/X11R5   \
24122     /usr/local/lib/X11R6   \
24123     /usr/local/lib/X11R7   \
24124     /usr/local/x11r5/lib   \
24125     /usr/lpp/Xamples/lib   \
24126     /usr/openwin/lib       \
24127     /usr/openwin/share/lib \
24128     /usr/unsupported/lib   \
24129     /usr/x386/lib          \
24130     ; do
24131     if test -f "$ac_dir/X11/rgb.txt"; then
24132       im_cv_x_configure="$ac_dir/X11/"
24133       break
24134     elif test -f "$ac_dir/rgb.txt"; then
24135       im_cv_x_configure="$ac_dir/"
24136       break
24137     fi
24138
24139   done
24140 fi
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24142 $as_echo "$im_cv_x_configure" >&6; }
24143 X11_CONFIGURE_PATH="$im_cv_x_configure"
24144 case "${build_os}" in
24145   mingw* )
24146     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24147   ;;
24148 esac
24149
24150 cat >>confdefs.h <<_ACEOF
24151 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24152 _ACEOF
24153
24154
24155 #
24156 # Find OpenMP library
24157 #
24158 GOMP_LIBS=''
24159 if test "$enable_openmp" != 'no'; then
24160   if test "${GCC}" = "yes"; then
24161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24162 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24163 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24164   $as_echo_n "(cached) " >&6
24165 else
24166   ac_check_lib_save_LIBS=$LIBS
24167 LIBS="-lgomp  $LIBS"
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h.  */
24170
24171 /* Override any GCC internal prototype to avoid an error.
24172    Use char because int might match the return type of a GCC
24173    builtin and then its argument prototype would still apply.  */
24174 #ifdef __cplusplus
24175 extern "C"
24176 #endif
24177 char GOMP_parallel_start ();
24178 int
24179 main ()
24180 {
24181 return GOMP_parallel_start ();
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 if ac_fn_c_try_link "$LINENO"; then :
24187   ac_cv_lib_gomp_GOMP_parallel_start=yes
24188 else
24189   ac_cv_lib_gomp_GOMP_parallel_start=no
24190 fi
24191 rm -f core conftest.err conftest.$ac_objext \
24192     conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24194 fi
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24196 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24197 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24198   GOMP_LIBS="-lgomp"
24199 fi
24200   # gcc
24201   else
24202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24203 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24204 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24205   $as_echo_n "(cached) " >&6
24206 else
24207   ac_check_lib_save_LIBS=$LIBS
24208 LIBS="-lmtsk  $LIBS"
24209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210 /* end confdefs.h.  */
24211
24212 /* Override any GCC internal prototype to avoid an error.
24213    Use char because int might match the return type of a GCC
24214    builtin and then its argument prototype would still apply.  */
24215 #ifdef __cplusplus
24216 extern "C"
24217 #endif
24218 char sunw_mp_register_warn ();
24219 int
24220 main ()
24221 {
24222 return sunw_mp_register_warn ();
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 if ac_fn_c_try_link "$LINENO"; then :
24228   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24229 else
24230   ac_cv_lib_mtsk_sunw_mp_register_warn=no
24231 fi
24232 rm -f core conftest.err conftest.$ac_objext \
24233     conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24237 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24238 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24239   GOMP_LIBS="-lmtsk"
24240 fi
24241   # solaris cc
24242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24243 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24244 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24245   $as_echo_n "(cached) " >&6
24246 else
24247   ac_check_lib_save_LIBS=$LIBS
24248 LIBS="-lxlsmp  $LIBS"
24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24250 /* end confdefs.h.  */
24251
24252 /* Override any GCC internal prototype to avoid an error.
24253    Use char because int might match the return type of a GCC
24254    builtin and then its argument prototype would still apply.  */
24255 #ifdef __cplusplus
24256 extern "C"
24257 #endif
24258 char _xlsmpFlush ();
24259 int
24260 main ()
24261 {
24262 return _xlsmpFlush ();
24263   ;
24264   return 0;
24265 }
24266 _ACEOF
24267 if ac_fn_c_try_link "$LINENO"; then :
24268   ac_cv_lib_xlsmp__xlsmpFlush=yes
24269 else
24270   ac_cv_lib_xlsmp__xlsmpFlush=no
24271 fi
24272 rm -f core conftest.err conftest.$ac_objext \
24273     conftest$ac_exeext conftest.$ac_ext
24274 LIBS=$ac_check_lib_save_LIBS
24275 fi
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24277 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24278 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24279   GOMP_LIBS="-lxlsmp"
24280 fi
24281   # AIX xlc
24282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24283 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24284 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24285   $as_echo_n "(cached) " >&6
24286 else
24287   ac_check_lib_save_LIBS=$LIBS
24288 LIBS="-lmp  $LIBS"
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h.  */
24291
24292 /* Override any GCC internal prototype to avoid an error.
24293    Use char because int might match the return type of a GCC
24294    builtin and then its argument prototype would still apply.  */
24295 #ifdef __cplusplus
24296 extern "C"
24297 #endif
24298 char mp_destroy ();
24299 int
24300 main ()
24301 {
24302 return mp_destroy ();
24303   ;
24304   return 0;
24305 }
24306 _ACEOF
24307 if ac_fn_c_try_link "$LINENO"; then :
24308   ac_cv_lib_mp_mp_destroy=yes
24309 else
24310   ac_cv_lib_mp_mp_destroy=no
24311 fi
24312 rm -f core conftest.err conftest.$ac_objext \
24313     conftest$ac_exeext conftest.$ac_ext
24314 LIBS=$ac_check_lib_save_LIBS
24315 fi
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24317 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24318 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24319   GOMP_LIBS="-lmp"
24320 fi
24321   # SGI IRIX 6.5 MIPSpro C/C++
24322   fi
24323   LIBS="$GOMP_LIBS $LIBS"
24324 fi
24325
24326
24327 #
24328 # Find Posix threads library
24329 #
24330 THREAD_LIBS=''
24331 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24332
24333     if test "x$PTHREAD_LIBS" = "x"; then
24334     case "${host_cpu}-${host_os}" in
24335       *-freebsd*)
24336
24337
24338
24339 ac_ext=c
24340 ac_cpp='$CPP $CPPFLAGS'
24341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24344
24345 magick_pthread_lib_ok=no
24346
24347 LIB=-lc_r
24348 save_LIBS="$LIBS"
24349 LIBS="$LIBS $LIB"
24350
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24352 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24354 /* end confdefs.h.  */
24355 #include <pthread.h>
24356 int
24357 main ()
24358 {
24359   pthread_t th;
24360   pthread_join(th, 0);
24361   pthread_attr_init(0);
24362   pthread_cleanup_push(0, 0);
24363   pthread_create(0,0,0,0);
24364   pthread_cleanup_pop(0);
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 if ac_fn_c_try_link "$LINENO"; then :
24370   magick_pthread_lib_ok=yes
24371 fi
24372 rm -f core conftest.err conftest.$ac_objext \
24373     conftest$ac_exeext conftest.$ac_ext
24374
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24376 $as_echo "${magick_pthread_lib_ok}" >&6; }
24377 if test "$magick_pthread_lib_ok" = yes
24378 then
24379   PTHREAD_LIBS=-lc_r
24380   :
24381 else
24382
24383   :
24384 fi
24385
24386 LIBS="$save_LIBS"
24387
24388 ac_ext=c
24389 ac_cpp='$CPP $CPPFLAGS'
24390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24393
24394  ;;
24395     esac
24396     fi
24397
24398     for lib in pthread pthreads; do
24399         if test "x$PTHREAD_LIBS" = "x"; then
24400
24401
24402
24403 ac_ext=c
24404 ac_cpp='$CPP $CPPFLAGS'
24405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24408
24409 magick_pthread_lib_ok=no
24410
24411 LIB=-l$lib
24412 save_LIBS="$LIBS"
24413 LIBS="$LIBS $LIB"
24414
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24416 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418 /* end confdefs.h.  */
24419 #include <pthread.h>
24420 int
24421 main ()
24422 {
24423   pthread_t th;
24424   pthread_join(th, 0);
24425   pthread_attr_init(0);
24426   pthread_cleanup_push(0, 0);
24427   pthread_create(0,0,0,0);
24428   pthread_cleanup_pop(0);
24429   ;
24430   return 0;
24431 }
24432 _ACEOF
24433 if ac_fn_c_try_link "$LINENO"; then :
24434   magick_pthread_lib_ok=yes
24435 fi
24436 rm -f core conftest.err conftest.$ac_objext \
24437     conftest$ac_exeext conftest.$ac_ext
24438
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24440 $as_echo "${magick_pthread_lib_ok}" >&6; }
24441 if test "$magick_pthread_lib_ok" = yes
24442 then
24443   PTHREAD_LIBS=-l$lib
24444   :
24445 else
24446
24447   :
24448 fi
24449
24450 LIBS="$save_LIBS"
24451
24452 ac_ext=c
24453 ac_cpp='$CPP $CPPFLAGS'
24454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24457
24458
24459         fi
24460     done
24461
24462     THREAD_LIBS="$PTHREAD_LIBS"
24463     LIBS="$LIBS $THREAD_LIBS"
24464 fi
24465
24466
24467 #
24468 # Check for umem.
24469 #
24470 have_umem='no'
24471 UMEM_LIBS=''
24472 if test "$with_umem" != 'no'; then
24473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24474 $as_echo_n "checking for UMEM support ... " >&6; }
24475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24476 $as_echo "" >&6; }
24477   failed=0
24478   passed=0
24479   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24480 if test "x$ac_cv_header_umem_h" = x""yes; then :
24481   passed=`expr $passed + 1`
24482 else
24483   failed=`expr $failed + 1`
24484 fi
24485
24486
24487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24488 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24489 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24490   $as_echo_n "(cached) " >&6
24491 else
24492   ac_check_lib_save_LIBS=$LIBS
24493 LIBS="-lumem  $LIBS"
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h.  */
24496
24497 /* Override any GCC internal prototype to avoid an error.
24498    Use char because int might match the return type of a GCC
24499    builtin and then its argument prototype would still apply.  */
24500 #ifdef __cplusplus
24501 extern "C"
24502 #endif
24503 char umem_alloc ();
24504 int
24505 main ()
24506 {
24507 return umem_alloc ();
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 if ac_fn_c_try_link "$LINENO"; then :
24513   ac_cv_lib_umem_umem_alloc=yes
24514 else
24515   ac_cv_lib_umem_umem_alloc=no
24516 fi
24517 rm -f core conftest.err conftest.$ac_objext \
24518     conftest$ac_exeext conftest.$ac_ext
24519 LIBS=$ac_check_lib_save_LIBS
24520 fi
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24522 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24523 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24524   passed=`expr $passed + 1`
24525 else
24526   failed=`expr $failed + 1`
24527 fi
24528
24529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24530 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24531 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24532   $as_echo_n "(cached) " >&6
24533 else
24534   ac_check_lib_save_LIBS=$LIBS
24535 LIBS="-lumem  $LIBS"
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h.  */
24538
24539 /* Override any GCC internal prototype to avoid an error.
24540    Use char because int might match the return type of a GCC
24541    builtin and then its argument prototype would still apply.  */
24542 #ifdef __cplusplus
24543 extern "C"
24544 #endif
24545 char umem_free ();
24546 int
24547 main ()
24548 {
24549 return umem_free ();
24550   ;
24551   return 0;
24552 }
24553 _ACEOF
24554 if ac_fn_c_try_link "$LINENO"; then :
24555   ac_cv_lib_umem_umem_free=yes
24556 else
24557   ac_cv_lib_umem_umem_free=no
24558 fi
24559 rm -f core conftest.err conftest.$ac_objext \
24560     conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24562 fi
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24564 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24565 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24566   passed=`expr $passed + 1`
24567 else
24568   failed=`expr $failed + 1`
24569 fi
24570
24571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24572 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24573   if test $passed -gt 0; then
24574     if test $failed -gt 0; then
24575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24576 $as_echo "no -- some components failed test" >&6; }
24577       have_umem='no (failed tests)'
24578     else
24579       UMEM_LIBS='-lumem'
24580       LIBS="$UMEM_LIBS $LIBS"
24581
24582 $as_echo "#define HasUMEM 1" >>confdefs.h
24583
24584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24585 $as_echo "yes" >&6; }
24586       have_umem='yes'
24587     fi
24588   else
24589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 $as_echo "no" >&6; }
24591   fi
24592 fi
24593  if test "$have_umem" = 'yes'; then
24594   HasUMEM_TRUE=
24595   HasUMEM_FALSE='#'
24596 else
24597   HasUMEM_TRUE='#'
24598   HasUMEM_FALSE=
24599 fi
24600
24601
24602
24603 #
24604 # Add support for ccmalloc memory debugging library if requested
24605 #
24606 have_ccmalloc='no'
24607 CCMALLOC_LIBS=''
24608 if test "$enable_ccmalloc" = 'yes'; then
24609     # Extract the first word of "ccmalloc", so it can be a program name with args.
24610 set dummy ccmalloc; ac_word=$2
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24612 $as_echo_n "checking for $ac_word... " >&6; }
24613 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24614   $as_echo_n "(cached) " >&6
24615 else
24616   case $CCMALLOCDelegate in
24617   [\\/]* | ?:[\\/]*)
24618   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24619   ;;
24620   *)
24621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24622 for as_dir in $PATH
24623 do
24624   IFS=$as_save_IFS
24625   test -z "$as_dir" && as_dir=.
24626     for ac_exec_ext in '' $ac_executable_extensions; do
24627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24628     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24630     break 2
24631   fi
24632 done
24633   done
24634 IFS=$as_save_IFS
24635
24636   ;;
24637 esac
24638 fi
24639 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24640 if test -n "$CCMALLOCDelegate"; then
24641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24642 $as_echo "$CCMALLOCDelegate" >&6; }
24643 else
24644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24645 $as_echo "no" >&6; }
24646 fi
24647
24648
24649     if test -n "$CCMALLOCDelegate"; then
24650         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24651         OLIBS="$LIBS"
24652         # Assume that gcc is used with ccmalloc.
24653         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24654        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24655 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24656 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24657   $as_echo_n "(cached) " >&6
24658 else
24659   ac_check_lib_save_LIBS=$LIBS
24660 LIBS="-lccmalloc -ldl $LIBS"
24661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24662 /* end confdefs.h.  */
24663
24664 /* Override any GCC internal prototype to avoid an error.
24665    Use char because int might match the return type of a GCC
24666    builtin and then its argument prototype would still apply.  */
24667 #ifdef __cplusplus
24668 extern "C"
24669 #endif
24670 char ccmalloc_malloc ();
24671 int
24672 main ()
24673 {
24674 return ccmalloc_malloc ();
24675   ;
24676   return 0;
24677 }
24678 _ACEOF
24679 if ac_fn_c_try_link "$LINENO"; then :
24680   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24681 else
24682   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24683 fi
24684 rm -f core conftest.err conftest.$ac_objext \
24685     conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24687 fi
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24689 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24690 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24691   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24692 fi
24693
24694         if test -n "$CCMALLOC_LIBS"; then
24695             LIBS="$OLIBS"
24696             LIBS="$LIBS $CCMALLOC_LIBS"
24697             have_ccmalloc='yes'
24698         else
24699             LIBS="$OLIBS"
24700         fi
24701     fi
24702 fi
24703
24704 #
24705 # Add support for efence memory debugging library if requested
24706 #
24707 if test "$enable_efence" = 'yes'; then
24708     EFENCE_LIBS='-lefence'
24709     LIBS="$EFENCE_LIBS $LIBS"
24710 fi
24711
24712
24713 #
24714 # Check for BZLIB
24715 #
24716
24717
24718 # Check whether --with-bzlib was given.
24719 if test "${with_bzlib+set}" = set; then :
24720   withval=$with_bzlib; with_bzlib=$withval
24721 else
24722   with_bzlib='yes'
24723 fi
24724
24725
24726 if test "$with_bzlib" != 'yes'; then
24727     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24728 fi
24729
24730 have_bzlib='no'
24731 if test "$with_bzlib" != 'no'; then
24732     BZLIB_LIBS=''
24733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24734 $as_echo "-------------------------------------------------------------" >&6; }
24735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24736 $as_echo_n "checking for BZLIB... " >&6; }
24737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24738 $as_echo "" >&6; }
24739     failed=0
24740     passed=0
24741     found_libbz=0
24742     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24743 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24744   passed=`expr $passed + 1`
24745 else
24746   failed=`expr $failed + 1`
24747 fi
24748
24749
24750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24751 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24752 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24753   $as_echo_n "(cached) " >&6
24754 else
24755   ac_check_lib_save_LIBS=$LIBS
24756 LIBS="-lbz2  $LIBS"
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h.  */
24759
24760 /* Override any GCC internal prototype to avoid an error.
24761    Use char because int might match the return type of a GCC
24762    builtin and then its argument prototype would still apply.  */
24763 #ifdef __cplusplus
24764 extern "C"
24765 #endif
24766 char BZ2_bzDecompress ();
24767 int
24768 main ()
24769 {
24770 return BZ2_bzDecompress ();
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 if ac_fn_c_try_link "$LINENO"; then :
24776   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24777 else
24778   ac_cv_lib_bz2_BZ2_bzDecompress=no
24779 fi
24780 rm -f core conftest.err conftest.$ac_objext \
24781     conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24785 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24786 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24787   found_libbz=`expr $found_libbz + 1`
24788 fi
24789
24790     if test "$native_win32_build" = 'yes'; then
24791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24792 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24793 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24794   $as_echo_n "(cached) " >&6
24795 else
24796   ac_check_lib_save_LIBS=$LIBS
24797 LIBS="-lbz2  $LIBS"
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h.  */
24800
24801 /* Override any GCC internal prototype to avoid an error.
24802    Use char because int might match the return type of a GCC
24803    builtin and then its argument prototype would still apply.  */
24804 #ifdef __cplusplus
24805 extern "C"
24806 #endif
24807 char _imp__BZ2_decompress ();
24808 int
24809 main ()
24810 {
24811 return _imp__BZ2_decompress ();
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 if ac_fn_c_try_link "$LINENO"; then :
24817   ac_cv_lib_bz2__imp__BZ2_decompress=yes
24818 else
24819   ac_cv_lib_bz2__imp__BZ2_decompress=no
24820 fi
24821 rm -f core conftest.err conftest.$ac_objext \
24822     conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24824 fi
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24826 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24827 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24828   found_libbz=`expr $found_libbz + 1`
24829 fi
24830
24831     fi
24832     if test $found_libbz -gt 0; then
24833       passed=`expr $passed + 1`
24834     else
24835       failed=`expr $failed + 1`
24836     fi
24837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24838 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24839     if test $passed -gt 0; then
24840       if test $failed -gt 0; then
24841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24842 $as_echo "no -- some components failed test" >&6; }
24843         have_bzlib='no (failed tests)'
24844       else
24845         BZLIB_LIBS='-lbz2'
24846         LIBS="$BZLIB_LIBS $LIBS"
24847
24848 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24849
24850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24851 $as_echo "yes" >&6; }
24852         have_bzlib='yes'
24853       fi
24854     else
24855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857     fi
24858 fi
24859  if test "$have_bzlib" = 'yes'; then
24860   BZLIB_DELEGATE_TRUE=
24861   BZLIB_DELEGATE_FALSE='#'
24862 else
24863   BZLIB_DELEGATE_TRUE='#'
24864   BZLIB_DELEGATE_FALSE=
24865 fi
24866
24867
24868
24869 #
24870 # Find the X11 include and library directories.
24871 #
24872 IPC_LIBS=''
24873 X11_LIBS=''
24874 XEXT_LIBS=''
24875 XT_LIBS=''
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24877 $as_echo_n "checking for X... " >&6; }
24878
24879
24880 # Check whether --with-x was given.
24881 if test "${with_x+set}" = set; then :
24882   withval=$with_x;
24883 fi
24884
24885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24886 if test "x$with_x" = xno; then
24887   # The user explicitly disabled X.
24888   have_x=disabled
24889 else
24890   case $x_includes,$x_libraries in #(
24891     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24892     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24893   $as_echo_n "(cached) " >&6
24894 else
24895   # One or both of the vars are not set, and there is no cached value.
24896 ac_x_includes=no ac_x_libraries=no
24897 rm -f -r conftest.dir
24898 if mkdir conftest.dir; then
24899   cd conftest.dir
24900   cat >Imakefile <<'_ACEOF'
24901 incroot:
24902         @echo incroot='${INCROOT}'
24903 usrlibdir:
24904         @echo usrlibdir='${USRLIBDIR}'
24905 libdir:
24906         @echo libdir='${LIBDIR}'
24907 _ACEOF
24908   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24909     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24910     for ac_var in incroot usrlibdir libdir; do
24911       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24912     done
24913     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24914     for ac_extension in a so sl dylib la dll; do
24915       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24916          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24917         ac_im_usrlibdir=$ac_im_libdir; break
24918       fi
24919     done
24920     # Screen out bogus values from the imake configuration.  They are
24921     # bogus both because they are the default anyway, and because
24922     # using them would break gcc on systems where it needs fixed includes.
24923     case $ac_im_incroot in
24924         /usr/include) ac_x_includes= ;;
24925         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24926     esac
24927     case $ac_im_usrlibdir in
24928         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24929         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24930     esac
24931   fi
24932   cd ..
24933   rm -f -r conftest.dir
24934 fi
24935
24936 # Standard set of common directories for X headers.
24937 # Check X11 before X11Rn because it is often a symlink to the current release.
24938 ac_x_header_dirs='
24939 /usr/X11/include
24940 /usr/X11R7/include
24941 /usr/X11R6/include
24942 /usr/X11R5/include
24943 /usr/X11R4/include
24944
24945 /usr/include/X11
24946 /usr/include/X11R7
24947 /usr/include/X11R6
24948 /usr/include/X11R5
24949 /usr/include/X11R4
24950
24951 /usr/local/X11/include
24952 /usr/local/X11R7/include
24953 /usr/local/X11R6/include
24954 /usr/local/X11R5/include
24955 /usr/local/X11R4/include
24956
24957 /usr/local/include/X11
24958 /usr/local/include/X11R7
24959 /usr/local/include/X11R6
24960 /usr/local/include/X11R5
24961 /usr/local/include/X11R4
24962
24963 /usr/X386/include
24964 /usr/x386/include
24965 /usr/XFree86/include/X11
24966
24967 /usr/include
24968 /usr/local/include
24969 /usr/unsupported/include
24970 /usr/athena/include
24971 /usr/local/x11r5/include
24972 /usr/lpp/Xamples/include
24973
24974 /usr/openwin/include
24975 /usr/openwin/share/include'
24976
24977 if test "$ac_x_includes" = no; then
24978   # Guess where to find include files, by looking for Xlib.h.
24979   # First, try using that file with no special directory specified.
24980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h.  */
24982 #include <X11/Xlib.h>
24983 _ACEOF
24984 if ac_fn_c_try_cpp "$LINENO"; then :
24985   # We can compile using X headers with no special include directory.
24986 ac_x_includes=
24987 else
24988   for ac_dir in $ac_x_header_dirs; do
24989   if test -r "$ac_dir/X11/Xlib.h"; then
24990     ac_x_includes=$ac_dir
24991     break
24992   fi
24993 done
24994 fi
24995 rm -f conftest.err conftest.$ac_ext
24996 fi # $ac_x_includes = no
24997
24998 if test "$ac_x_libraries" = no; then
24999   # Check for the libraries.
25000   # See if we find them without any special options.
25001   # Don't add to $LIBS permanently.
25002   ac_save_LIBS=$LIBS
25003   LIBS="-lX11 $LIBS"
25004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h.  */
25006 #include <X11/Xlib.h>
25007 int
25008 main ()
25009 {
25010 XrmInitialize ()
25011   ;
25012   return 0;
25013 }
25014 _ACEOF
25015 if ac_fn_c_try_link "$LINENO"; then :
25016   LIBS=$ac_save_LIBS
25017 # We can link X programs with no special library path.
25018 ac_x_libraries=
25019 else
25020   LIBS=$ac_save_LIBS
25021 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25022 do
25023   # Don't even attempt the hair of trying to link an X program!
25024   for ac_extension in a so sl dylib la dll; do
25025     if test -r "$ac_dir/libX11.$ac_extension"; then
25026       ac_x_libraries=$ac_dir
25027       break 2
25028     fi
25029   done
25030 done
25031 fi
25032 rm -f core conftest.err conftest.$ac_objext \
25033     conftest$ac_exeext conftest.$ac_ext
25034 fi # $ac_x_libraries = no
25035
25036 case $ac_x_includes,$ac_x_libraries in #(
25037   no,* | *,no | *\'*)
25038     # Didn't find X, or a directory has "'" in its name.
25039     ac_cv_have_x="have_x=no";; #(
25040   *)
25041     # Record where we found X for the cache.
25042     ac_cv_have_x="have_x=yes\
25043         ac_x_includes='$ac_x_includes'\
25044         ac_x_libraries='$ac_x_libraries'"
25045 esac
25046 fi
25047 ;; #(
25048     *) have_x=yes;;
25049   esac
25050   eval "$ac_cv_have_x"
25051 fi # $with_x != no
25052
25053 if test "$have_x" != yes; then
25054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25055 $as_echo "$have_x" >&6; }
25056   no_x=yes
25057 else
25058   # If each of the values was on the command line, it overrides each guess.
25059   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25060   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25061   # Update the cache value to reflect the command line values.
25062   ac_cv_have_x="have_x=yes\
25063         ac_x_includes='$x_includes'\
25064         ac_x_libraries='$x_libraries'"
25065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25066 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25067 fi
25068
25069 if test "$no_x" = yes; then
25070   # Not all programs may use this symbol, but it does not hurt to define it.
25071
25072 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25073
25074   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25075 else
25076   if test -n "$x_includes"; then
25077     X_CFLAGS="$X_CFLAGS -I$x_includes"
25078   fi
25079
25080   # It would also be nice to do this for all -L options, not just this one.
25081   if test -n "$x_libraries"; then
25082     X_LIBS="$X_LIBS -L$x_libraries"
25083     # For Solaris; some versions of Sun CC require a space after -R and
25084     # others require no space.  Words are not sufficient . . . .
25085     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25086 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25087     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25088     ac_xsave_c_werror_flag=$ac_c_werror_flag
25089     ac_c_werror_flag=yes
25090     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h.  */
25092
25093 int
25094 main ()
25095 {
25096
25097   ;
25098   return 0;
25099 }
25100 _ACEOF
25101 if ac_fn_c_try_link "$LINENO"; then :
25102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 $as_echo "no" >&6; }
25104        X_LIBS="$X_LIBS -R$x_libraries"
25105 else
25106   LIBS="$ac_xsave_LIBS -R $x_libraries"
25107        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h.  */
25109
25110 int
25111 main ()
25112 {
25113
25114   ;
25115   return 0;
25116 }
25117 _ACEOF
25118 if ac_fn_c_try_link "$LINENO"; then :
25119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25120 $as_echo "yes" >&6; }
25121           X_LIBS="$X_LIBS -R $x_libraries"
25122 else
25123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25124 $as_echo "neither works" >&6; }
25125 fi
25126 rm -f core conftest.err conftest.$ac_objext \
25127     conftest$ac_exeext conftest.$ac_ext
25128 fi
25129 rm -f core conftest.err conftest.$ac_objext \
25130     conftest$ac_exeext conftest.$ac_ext
25131     ac_c_werror_flag=$ac_xsave_c_werror_flag
25132     LIBS=$ac_xsave_LIBS
25133   fi
25134
25135   # Check for system-dependent libraries X programs must link with.
25136   # Do this before checking for the system-independent R6 libraries
25137   # (-lICE), since we may need -lsocket or whatever for X linking.
25138
25139   if test "$ISC" = yes; then
25140     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25141   else
25142     # Martyn Johnson says this is needed for Ultrix, if the X
25143     # libraries were built with DECnet support.  And Karl Berry says
25144     # the Alpha needs dnet_stub (dnet does not exist).
25145     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25147 /* end confdefs.h.  */
25148
25149 /* Override any GCC internal prototype to avoid an error.
25150    Use char because int might match the return type of a GCC
25151    builtin and then its argument prototype would still apply.  */
25152 #ifdef __cplusplus
25153 extern "C"
25154 #endif
25155 char XOpenDisplay ();
25156 int
25157 main ()
25158 {
25159 return XOpenDisplay ();
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 if ac_fn_c_try_link "$LINENO"; then :
25165
25166 else
25167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25168 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25170   $as_echo_n "(cached) " >&6
25171 else
25172   ac_check_lib_save_LIBS=$LIBS
25173 LIBS="-ldnet  $LIBS"
25174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25175 /* end confdefs.h.  */
25176
25177 /* Override any GCC internal prototype to avoid an error.
25178    Use char because int might match the return type of a GCC
25179    builtin and then its argument prototype would still apply.  */
25180 #ifdef __cplusplus
25181 extern "C"
25182 #endif
25183 char dnet_ntoa ();
25184 int
25185 main ()
25186 {
25187 return dnet_ntoa ();
25188   ;
25189   return 0;
25190 }
25191 _ACEOF
25192 if ac_fn_c_try_link "$LINENO"; then :
25193   ac_cv_lib_dnet_dnet_ntoa=yes
25194 else
25195   ac_cv_lib_dnet_dnet_ntoa=no
25196 fi
25197 rm -f core conftest.err conftest.$ac_objext \
25198     conftest$ac_exeext conftest.$ac_ext
25199 LIBS=$ac_check_lib_save_LIBS
25200 fi
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25202 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25203 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25204   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25205 fi
25206
25207     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25209 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25210 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25211   $as_echo_n "(cached) " >&6
25212 else
25213   ac_check_lib_save_LIBS=$LIBS
25214 LIBS="-ldnet_stub  $LIBS"
25215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25216 /* end confdefs.h.  */
25217
25218 /* Override any GCC internal prototype to avoid an error.
25219    Use char because int might match the return type of a GCC
25220    builtin and then its argument prototype would still apply.  */
25221 #ifdef __cplusplus
25222 extern "C"
25223 #endif
25224 char dnet_ntoa ();
25225 int
25226 main ()
25227 {
25228 return dnet_ntoa ();
25229   ;
25230   return 0;
25231 }
25232 _ACEOF
25233 if ac_fn_c_try_link "$LINENO"; then :
25234   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25235 else
25236   ac_cv_lib_dnet_stub_dnet_ntoa=no
25237 fi
25238 rm -f core conftest.err conftest.$ac_objext \
25239     conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_check_lib_save_LIBS
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25243 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25244 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25245   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25246 fi
25247
25248     fi
25249 fi
25250 rm -f core conftest.err conftest.$ac_objext \
25251     conftest$ac_exeext conftest.$ac_ext
25252     LIBS="$ac_xsave_LIBS"
25253
25254     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25255     # to get the SysV transport functions.
25256     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25257     # needs -lnsl.
25258     # The nsl library prevents programs from opening the X display
25259     # on Irix 5.2, according to T.E. Dickey.
25260     # The functions gethostbyname, getservbyname, and inet_addr are
25261     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25262     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25263 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25264
25265 fi
25266
25267     if test $ac_cv_func_gethostbyname = no; then
25268       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25269 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25270 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25271   $as_echo_n "(cached) " >&6
25272 else
25273   ac_check_lib_save_LIBS=$LIBS
25274 LIBS="-lnsl  $LIBS"
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h.  */
25277
25278 /* Override any GCC internal prototype to avoid an error.
25279    Use char because int might match the return type of a GCC
25280    builtin and then its argument prototype would still apply.  */
25281 #ifdef __cplusplus
25282 extern "C"
25283 #endif
25284 char gethostbyname ();
25285 int
25286 main ()
25287 {
25288 return gethostbyname ();
25289   ;
25290   return 0;
25291 }
25292 _ACEOF
25293 if ac_fn_c_try_link "$LINENO"; then :
25294   ac_cv_lib_nsl_gethostbyname=yes
25295 else
25296   ac_cv_lib_nsl_gethostbyname=no
25297 fi
25298 rm -f core conftest.err conftest.$ac_objext \
25299     conftest$ac_exeext conftest.$ac_ext
25300 LIBS=$ac_check_lib_save_LIBS
25301 fi
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25303 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25304 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25305   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25306 fi
25307
25308       if test $ac_cv_lib_nsl_gethostbyname = no; then
25309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25310 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25311 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25312   $as_echo_n "(cached) " >&6
25313 else
25314   ac_check_lib_save_LIBS=$LIBS
25315 LIBS="-lbsd  $LIBS"
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h.  */
25318
25319 /* Override any GCC internal prototype to avoid an error.
25320    Use char because int might match the return type of a GCC
25321    builtin and then its argument prototype would still apply.  */
25322 #ifdef __cplusplus
25323 extern "C"
25324 #endif
25325 char gethostbyname ();
25326 int
25327 main ()
25328 {
25329 return gethostbyname ();
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 if ac_fn_c_try_link "$LINENO"; then :
25335   ac_cv_lib_bsd_gethostbyname=yes
25336 else
25337   ac_cv_lib_bsd_gethostbyname=no
25338 fi
25339 rm -f core conftest.err conftest.$ac_objext \
25340     conftest$ac_exeext conftest.$ac_ext
25341 LIBS=$ac_check_lib_save_LIBS
25342 fi
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25344 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25345 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25346   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25347 fi
25348
25349       fi
25350     fi
25351
25352     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25353     # socket/setsockopt and other routines are undefined under SCO ODT
25354     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25355     # on later versions), says Simon Leinen: it contains gethostby*
25356     # variants that don't use the name server (or something).  -lsocket
25357     # must be given before -lnsl if both are needed.  We assume that
25358     # if connect needs -lnsl, so does gethostbyname.
25359     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25360 if test "x$ac_cv_func_connect" = x""yes; then :
25361
25362 fi
25363
25364     if test $ac_cv_func_connect = no; then
25365       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25366 $as_echo_n "checking for connect in -lsocket... " >&6; }
25367 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25368   $as_echo_n "(cached) " >&6
25369 else
25370   ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h.  */
25374
25375 /* Override any GCC internal prototype to avoid an error.
25376    Use char because int might match the return type of a GCC
25377    builtin and then its argument prototype would still apply.  */
25378 #ifdef __cplusplus
25379 extern "C"
25380 #endif
25381 char connect ();
25382 int
25383 main ()
25384 {
25385 return connect ();
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 if ac_fn_c_try_link "$LINENO"; then :
25391   ac_cv_lib_socket_connect=yes
25392 else
25393   ac_cv_lib_socket_connect=no
25394 fi
25395 rm -f core conftest.err conftest.$ac_objext \
25396     conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25398 fi
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25400 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25401 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25402   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25403 fi
25404
25405     fi
25406
25407     # Guillermo Gomez says -lposix is necessary on A/UX.
25408     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25409 if test "x$ac_cv_func_remove" = x""yes; then :
25410
25411 fi
25412
25413     if test $ac_cv_func_remove = no; then
25414       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25415 $as_echo_n "checking for remove in -lposix... " >&6; }
25416 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25417   $as_echo_n "(cached) " >&6
25418 else
25419   ac_check_lib_save_LIBS=$LIBS
25420 LIBS="-lposix  $LIBS"
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422 /* end confdefs.h.  */
25423
25424 /* Override any GCC internal prototype to avoid an error.
25425    Use char because int might match the return type of a GCC
25426    builtin and then its argument prototype would still apply.  */
25427 #ifdef __cplusplus
25428 extern "C"
25429 #endif
25430 char remove ();
25431 int
25432 main ()
25433 {
25434 return remove ();
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 if ac_fn_c_try_link "$LINENO"; then :
25440   ac_cv_lib_posix_remove=yes
25441 else
25442   ac_cv_lib_posix_remove=no
25443 fi
25444 rm -f core conftest.err conftest.$ac_objext \
25445     conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25447 fi
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25449 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25450 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25451   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25452 fi
25453
25454     fi
25455
25456     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25457     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25458 if test "x$ac_cv_func_shmat" = x""yes; then :
25459
25460 fi
25461
25462     if test $ac_cv_func_shmat = no; then
25463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25464 $as_echo_n "checking for shmat in -lipc... " >&6; }
25465 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25466   $as_echo_n "(cached) " >&6
25467 else
25468   ac_check_lib_save_LIBS=$LIBS
25469 LIBS="-lipc  $LIBS"
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h.  */
25472
25473 /* Override any GCC internal prototype to avoid an error.
25474    Use char because int might match the return type of a GCC
25475    builtin and then its argument prototype would still apply.  */
25476 #ifdef __cplusplus
25477 extern "C"
25478 #endif
25479 char shmat ();
25480 int
25481 main ()
25482 {
25483 return shmat ();
25484   ;
25485   return 0;
25486 }
25487 _ACEOF
25488 if ac_fn_c_try_link "$LINENO"; then :
25489   ac_cv_lib_ipc_shmat=yes
25490 else
25491   ac_cv_lib_ipc_shmat=no
25492 fi
25493 rm -f core conftest.err conftest.$ac_objext \
25494     conftest$ac_exeext conftest.$ac_ext
25495 LIBS=$ac_check_lib_save_LIBS
25496 fi
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25498 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25499 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25500   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25501 fi
25502
25503     fi
25504   fi
25505
25506   # Check for libraries that X11R6 Xt/Xaw programs need.
25507   ac_save_LDFLAGS=$LDFLAGS
25508   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25509   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25510   # check for ICE first), but we must link in the order -lSM -lICE or
25511   # we get undefined symbols.  So assume we have SM if we have ICE.
25512   # These have to be linked with before -lX11, unlike the other
25513   # libraries we check for below, so use a different variable.
25514   # John Interrante, Karl Berry
25515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25516 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25517 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25518   $as_echo_n "(cached) " >&6
25519 else
25520   ac_check_lib_save_LIBS=$LIBS
25521 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h.  */
25524
25525 /* Override any GCC internal prototype to avoid an error.
25526    Use char because int might match the return type of a GCC
25527    builtin and then its argument prototype would still apply.  */
25528 #ifdef __cplusplus
25529 extern "C"
25530 #endif
25531 char IceConnectionNumber ();
25532 int
25533 main ()
25534 {
25535 return IceConnectionNumber ();
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 if ac_fn_c_try_link "$LINENO"; then :
25541   ac_cv_lib_ICE_IceConnectionNumber=yes
25542 else
25543   ac_cv_lib_ICE_IceConnectionNumber=no
25544 fi
25545 rm -f core conftest.err conftest.$ac_objext \
25546     conftest$ac_exeext conftest.$ac_ext
25547 LIBS=$ac_check_lib_save_LIBS
25548 fi
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25550 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25551 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25552   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25553 fi
25554
25555   LDFLAGS=$ac_save_LDFLAGS
25556
25557 fi
25558
25559 if test "$no_x" != 'yes'; then
25560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25561 $as_echo "-------------------------------------------------------------" >&6; }
25562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25563 $as_echo_n "checking for X11... " >&6; }
25564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25565 $as_echo "" >&6; }
25566     LDFLAGS="$LDFLAGS $X_LIBS"
25567     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25568     LIBS="$X11_LIBS $LIBS"
25569     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25570
25571
25572 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25573
25574     #
25575     # Check for X11 shared memory extension
25576     #
25577     # shmctl is required to support the shared memory extension
25578     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25579 if test "x$ac_cv_func_shmctl" = x""yes; then :
25580   have_shmctl='yes'
25581 fi
25582
25583     if test "$have_shmctl" != 'yes'; then
25584         PERSIST_LIBS=$LIBS
25585         LIBS="$LIBS -lcygipc"
25586         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25587 /* end confdefs.h.  */
25588
25589 /* Override any GCC internal prototype to avoid an error.
25590    Use char because int might match the return type of a GCC
25591    builtin and then its argument prototype would still apply.  */
25592 #ifdef __cplusplus
25593 extern "C"
25594 #endif
25595 char shmctl ();
25596 int
25597 main ()
25598 {
25599 return shmctl ();
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 if ac_fn_c_try_link "$LINENO"; then :
25605   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25606 fi
25607 rm -f core conftest.err conftest.$ac_objext \
25608     conftest$ac_exeext conftest.$ac_ext
25609         LIBS=$PERSIST_LIBS
25610     fi
25611
25612     if test "$have_shmctl" = 'yes'; then
25613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25614 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25615 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25616   $as_echo_n "(cached) " >&6
25617 else
25618   ac_check_lib_save_LIBS=$LIBS
25619 LIBS="-lXext  $LIBS"
25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h.  */
25622
25623 /* Override any GCC internal prototype to avoid an error.
25624    Use char because int might match the return type of a GCC
25625    builtin and then its argument prototype would still apply.  */
25626 #ifdef __cplusplus
25627 extern "C"
25628 #endif
25629 char XShmAttach ();
25630 int
25631 main ()
25632 {
25633 return XShmAttach ();
25634   ;
25635   return 0;
25636 }
25637 _ACEOF
25638 if ac_fn_c_try_link "$LINENO"; then :
25639   ac_cv_lib_Xext_XShmAttach=yes
25640 else
25641   ac_cv_lib_Xext_XShmAttach=no
25642 fi
25643 rm -f core conftest.err conftest.$ac_objext \
25644     conftest$ac_exeext conftest.$ac_ext
25645 LIBS=$ac_check_lib_save_LIBS
25646 fi
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25648 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25649 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25650   XEXT_LIBS='-lXext' ;
25651 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25652
25653 fi
25654
25655     fi
25656
25657     #
25658     # Check for X11 shape extension
25659     #
25660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25661 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25662 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25663   $as_echo_n "(cached) " >&6
25664 else
25665   ac_check_lib_save_LIBS=$LIBS
25666 LIBS="-lXext  $LIBS"
25667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h.  */
25669
25670 /* Override any GCC internal prototype to avoid an error.
25671    Use char because int might match the return type of a GCC
25672    builtin and then its argument prototype would still apply.  */
25673 #ifdef __cplusplus
25674 extern "C"
25675 #endif
25676 char XShapeCombineMask ();
25677 int
25678 main ()
25679 {
25680 return XShapeCombineMask ();
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 if ac_fn_c_try_link "$LINENO"; then :
25686   ac_cv_lib_Xext_XShapeCombineMask=yes
25687 else
25688   ac_cv_lib_Xext_XShapeCombineMask=no
25689 fi
25690 rm -f core conftest.err conftest.$ac_objext \
25691     conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25693 fi
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25695 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25696 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25697   XEXT_LIBS='-lXext' ;
25698 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25699
25700 fi
25701
25702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25703 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25704 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25705   $as_echo_n "(cached) " >&6
25706 else
25707   ac_check_lib_save_LIBS=$LIBS
25708 LIBS="-lXt  $LIBS"
25709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25710 /* end confdefs.h.  */
25711
25712 /* Override any GCC internal prototype to avoid an error.
25713    Use char because int might match the return type of a GCC
25714    builtin and then its argument prototype would still apply.  */
25715 #ifdef __cplusplus
25716 extern "C"
25717 #endif
25718 char XtSetEventDispatcher ();
25719 int
25720 main ()
25721 {
25722 return XtSetEventDispatcher ();
25723   ;
25724   return 0;
25725 }
25726 _ACEOF
25727 if ac_fn_c_try_link "$LINENO"; then :
25728   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25729 else
25730   ac_cv_lib_Xt_XtSetEventDispatcher=no
25731 fi
25732 rm -f core conftest.err conftest.$ac_objext \
25733     conftest$ac_exeext conftest.$ac_ext
25734 LIBS=$ac_check_lib_save_LIBS
25735 fi
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25737 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25738 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25739   XT_LIBS='-lXt'
25740 fi
25741
25742     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25743 fi
25744 if test "$no_x" != 'yes'; then
25745   have_x='yes'
25746 else
25747   have_x='no'
25748 fi
25749  if test "$have_x" = 'yes'; then
25750   X11_DELEGATE_TRUE=
25751   X11_DELEGATE_FALSE='#'
25752 else
25753   X11_DELEGATE_TRUE='#'
25754   X11_DELEGATE_FALSE=
25755 fi
25756
25757
25758
25759
25760
25761 #
25762 # Check for ZLIB
25763 #
25764
25765 # Check whether --with-zlib was given.
25766 if test "${with_zlib+set}" = set; then :
25767   withval=$with_zlib; with_zlib=$withval
25768 else
25769   with_zlib='yes'
25770 fi
25771
25772
25773 if test "$with_zlib" != 'yes'; then
25774     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25775 fi
25776
25777 have_zlib='no'
25778 ZLIB_LIBS=''
25779 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25781 $as_echo "-------------------------------------------------------------" >&6; }
25782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25783 $as_echo_n "checking for ZLIB... " >&6; }
25784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25785 $as_echo "" >&6; }
25786     ZLIB_LIBS=''
25787     failed=0
25788     passed=0
25789     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25790 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25791   passed=`expr $passed + 1`
25792 else
25793   failed=`expr $failed + 1`
25794 fi
25795
25796
25797     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25798 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25799   passed=`expr $passed + 1`
25800 else
25801   failed=`expr $failed + 1`
25802 fi
25803
25804
25805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25806 $as_echo_n "checking for compress in -lz... " >&6; }
25807 if test "${ac_cv_lib_z_compress+set}" = set; then :
25808   $as_echo_n "(cached) " >&6
25809 else
25810   ac_check_lib_save_LIBS=$LIBS
25811 LIBS="-lz  $LIBS"
25812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25813 /* end confdefs.h.  */
25814
25815 /* Override any GCC internal prototype to avoid an error.
25816    Use char because int might match the return type of a GCC
25817    builtin and then its argument prototype would still apply.  */
25818 #ifdef __cplusplus
25819 extern "C"
25820 #endif
25821 char compress ();
25822 int
25823 main ()
25824 {
25825 return compress ();
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 if ac_fn_c_try_link "$LINENO"; then :
25831   ac_cv_lib_z_compress=yes
25832 else
25833   ac_cv_lib_z_compress=no
25834 fi
25835 rm -f core conftest.err conftest.$ac_objext \
25836     conftest$ac_exeext conftest.$ac_ext
25837 LIBS=$ac_check_lib_save_LIBS
25838 fi
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25840 $as_echo "$ac_cv_lib_z_compress" >&6; }
25841 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25842   passed=`expr $passed + 1`
25843 else
25844   failed=`expr $failed + 1`
25845 fi
25846
25847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25848 $as_echo_n "checking for uncompress in -lz... " >&6; }
25849 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25850   $as_echo_n "(cached) " >&6
25851 else
25852   ac_check_lib_save_LIBS=$LIBS
25853 LIBS="-lz  $LIBS"
25854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25855 /* end confdefs.h.  */
25856
25857 /* Override any GCC internal prototype to avoid an error.
25858    Use char because int might match the return type of a GCC
25859    builtin and then its argument prototype would still apply.  */
25860 #ifdef __cplusplus
25861 extern "C"
25862 #endif
25863 char uncompress ();
25864 int
25865 main ()
25866 {
25867 return uncompress ();
25868   ;
25869   return 0;
25870 }
25871 _ACEOF
25872 if ac_fn_c_try_link "$LINENO"; then :
25873   ac_cv_lib_z_uncompress=yes
25874 else
25875   ac_cv_lib_z_uncompress=no
25876 fi
25877 rm -f core conftest.err conftest.$ac_objext \
25878     conftest$ac_exeext conftest.$ac_ext
25879 LIBS=$ac_check_lib_save_LIBS
25880 fi
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25882 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25883 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25884   passed=`expr $passed + 1`
25885 else
25886   failed=`expr $failed + 1`
25887 fi
25888
25889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25890 $as_echo_n "checking for deflate in -lz... " >&6; }
25891 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25892   $as_echo_n "(cached) " >&6
25893 else
25894   ac_check_lib_save_LIBS=$LIBS
25895 LIBS="-lz  $LIBS"
25896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h.  */
25898
25899 /* Override any GCC internal prototype to avoid an error.
25900    Use char because int might match the return type of a GCC
25901    builtin and then its argument prototype would still apply.  */
25902 #ifdef __cplusplus
25903 extern "C"
25904 #endif
25905 char deflate ();
25906 int
25907 main ()
25908 {
25909 return deflate ();
25910   ;
25911   return 0;
25912 }
25913 _ACEOF
25914 if ac_fn_c_try_link "$LINENO"; then :
25915   ac_cv_lib_z_deflate=yes
25916 else
25917   ac_cv_lib_z_deflate=no
25918 fi
25919 rm -f core conftest.err conftest.$ac_objext \
25920     conftest$ac_exeext conftest.$ac_ext
25921 LIBS=$ac_check_lib_save_LIBS
25922 fi
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25924 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25925 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25926   passed=`expr $passed + 1`
25927 else
25928   failed=`expr $failed + 1`
25929 fi
25930
25931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25932 $as_echo_n "checking for inflate in -lz... " >&6; }
25933 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25934   $as_echo_n "(cached) " >&6
25935 else
25936   ac_check_lib_save_LIBS=$LIBS
25937 LIBS="-lz  $LIBS"
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h.  */
25940
25941 /* Override any GCC internal prototype to avoid an error.
25942    Use char because int might match the return type of a GCC
25943    builtin and then its argument prototype would still apply.  */
25944 #ifdef __cplusplus
25945 extern "C"
25946 #endif
25947 char inflate ();
25948 int
25949 main ()
25950 {
25951 return inflate ();
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 if ac_fn_c_try_link "$LINENO"; then :
25957   ac_cv_lib_z_inflate=yes
25958 else
25959   ac_cv_lib_z_inflate=no
25960 fi
25961 rm -f core conftest.err conftest.$ac_objext \
25962     conftest$ac_exeext conftest.$ac_ext
25963 LIBS=$ac_check_lib_save_LIBS
25964 fi
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25966 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25967 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25968   passed=`expr $passed + 1`
25969 else
25970   failed=`expr $failed + 1`
25971 fi
25972
25973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25974 $as_echo_n "checking for gzseek in -lz... " >&6; }
25975 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25976   $as_echo_n "(cached) " >&6
25977 else
25978   ac_check_lib_save_LIBS=$LIBS
25979 LIBS="-lz  $LIBS"
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h.  */
25982
25983 /* Override any GCC internal prototype to avoid an error.
25984    Use char because int might match the return type of a GCC
25985    builtin and then its argument prototype would still apply.  */
25986 #ifdef __cplusplus
25987 extern "C"
25988 #endif
25989 char gzseek ();
25990 int
25991 main ()
25992 {
25993 return gzseek ();
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 if ac_fn_c_try_link "$LINENO"; then :
25999   ac_cv_lib_z_gzseek=yes
26000 else
26001   ac_cv_lib_z_gzseek=no
26002 fi
26003 rm -f core conftest.err conftest.$ac_objext \
26004     conftest$ac_exeext conftest.$ac_ext
26005 LIBS=$ac_check_lib_save_LIBS
26006 fi
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26008 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26009 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26010   passed=`expr $passed + 1`
26011 else
26012   failed=`expr $failed + 1`
26013 fi
26014
26015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26016 $as_echo_n "checking for gztell in -lz... " >&6; }
26017 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   ac_check_lib_save_LIBS=$LIBS
26021 LIBS="-lz  $LIBS"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h.  */
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char gztell ();
26032 int
26033 main ()
26034 {
26035 return gztell ();
26036   ;
26037   return 0;
26038 }
26039 _ACEOF
26040 if ac_fn_c_try_link "$LINENO"; then :
26041   ac_cv_lib_z_gztell=yes
26042 else
26043   ac_cv_lib_z_gztell=no
26044 fi
26045 rm -f core conftest.err conftest.$ac_objext \
26046     conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26050 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26051 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26052   passed=`expr $passed + 1`
26053 else
26054   failed=`expr $failed + 1`
26055 fi
26056
26057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26058 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26059     if test $passed -gt 0; then
26060         if test $failed -gt 0; then
26061             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26062 $as_echo "no -- some components failed test" >&6; }
26063             have_zlib='no (failed tests)'
26064         else
26065             ZLIB_LIBS='-lz'
26066             LIBS="$ZLIB_LIBS $LIBS"
26067
26068 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26069
26070             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26071 $as_echo "yes" >&6; }
26072             have_zlib='yes'
26073         fi
26074     else
26075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26076 $as_echo "no" >&6; }
26077     fi
26078 fi
26079  if test "$have_zlib" = 'yes'; then
26080   ZLIB_DELEGATE_TRUE=
26081   ZLIB_DELEGATE_FALSE='#'
26082 else
26083   ZLIB_DELEGATE_TRUE='#'
26084   ZLIB_DELEGATE_FALSE=
26085 fi
26086
26087
26088
26089 #
26090 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26091 #
26092 LIB_DL=''
26093 if test "$enable_profiling" = 'yes'; then
26094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26095 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26097   $as_echo_n "(cached) " >&6
26098 else
26099   ac_check_lib_save_LIBS=$LIBS
26100 LIBS="-ldl  $LIBS"
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h.  */
26103
26104 /* Override any GCC internal prototype to avoid an error.
26105    Use char because int might match the return type of a GCC
26106    builtin and then its argument prototype would still apply.  */
26107 #ifdef __cplusplus
26108 extern "C"
26109 #endif
26110 char dlopen ();
26111 int
26112 main ()
26113 {
26114 return dlopen ();
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 if ac_fn_c_try_link "$LINENO"; then :
26120   ac_cv_lib_dl_dlopen=yes
26121 else
26122   ac_cv_lib_dl_dlopen=no
26123 fi
26124 rm -f core conftest.err conftest.$ac_objext \
26125     conftest$ac_exeext conftest.$ac_ext
26126 LIBS=$ac_check_lib_save_LIBS
26127 fi
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26129 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26130 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26131   LIB_DL='-ldl'
26132 fi
26133
26134     LIBS="$LIB_DL $LIBS"
26135 fi
26136
26137
26138
26139 #
26140 # Check for Autotrace delegate library.
26141 #
26142
26143 # Check whether --with-autotrace was given.
26144 if test "${with_autotrace+set}" = set; then :
26145   withval=$with_autotrace; with_autotrace=$withval
26146 else
26147   with_autotrace='no'
26148 fi
26149
26150
26151 if test "$with_autotrace" != 'yes'; then
26152     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26153 fi
26154
26155 have_autotrace='no'
26156 AUTOTRACE_CFLAGS=""
26157 AUTOTRACE_LIBS=""
26158 AUTOTRACE_PKG=""
26159 if test "x$with_autotrace" = "xyes"; then
26160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26161 $as_echo "-------------------------------------------------------------" >&6; }
26162
26163 pkg_failed=no
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26165 $as_echo_n "checking for AUTOTRACE... " >&6; }
26166
26167 if test -n "$AUTOTRACE_CFLAGS"; then
26168     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26169  elif test -n "$PKG_CONFIG"; then
26170     if test -n "$PKG_CONFIG" && \
26171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26172   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26173   ac_status=$?
26174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175   test $ac_status = 0; }; then
26176   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26177 else
26178   pkg_failed=yes
26179 fi
26180  else
26181     pkg_failed=untried
26182 fi
26183 if test -n "$AUTOTRACE_LIBS"; then
26184     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26185  elif test -n "$PKG_CONFIG"; then
26186     if test -n "$PKG_CONFIG" && \
26187     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26188   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26189   ac_status=$?
26190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191   test $ac_status = 0; }; then
26192   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26193 else
26194   pkg_failed=yes
26195 fi
26196  else
26197     pkg_failed=untried
26198 fi
26199
26200
26201
26202 if test $pkg_failed = yes; then
26203
26204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26205         _pkg_short_errors_supported=yes
26206 else
26207         _pkg_short_errors_supported=no
26208 fi
26209         if test $_pkg_short_errors_supported = yes; then
26210                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26211         else
26212                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26213         fi
26214         # Put the nasty error message in config.log where it belongs
26215         echo "$AUTOTRACE_PKG_ERRORS" >&5
26216
26217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 $as_echo "no" >&6; }
26219                 have_autotrace=no
26220 elif test $pkg_failed = untried; then
26221         have_autotrace=no
26222 else
26223         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26224         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26225         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26226 $as_echo "yes" >&6; }
26227         have_autotrace=yes
26228 fi
26229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26230 $as_echo "" >&6; }
26231 fi
26232
26233 if test "$have_autotrace" = 'yes'; then
26234     failed=0
26235
26236 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26237
26238     if test "$with_modules" = 'no'; then
26239     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26240     fi
26241 fi
26242
26243  if test "$have_autotrace" = 'yes'; then
26244   AUTOTRACE_DELEGATE_TRUE=
26245   AUTOTRACE_DELEGATE_FALSE='#'
26246 else
26247   AUTOTRACE_DELEGATE_TRUE='#'
26248   AUTOTRACE_DELEGATE_FALSE=
26249 fi
26250
26251
26252
26253
26254
26255 #
26256 # Check for Display Postscript delegate library.
26257 #
26258
26259 # Check whether --with-dps was given.
26260 if test "${with_dps+set}" = set; then :
26261   withval=$with_dps; with_dps=$withval
26262 else
26263   with_dps='yes'
26264 fi
26265
26266
26267 if test "$with_dps" != 'yes'; then
26268     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26269 fi
26270
26271 have_dps='no'
26272 DPS_LIBS=''
26273 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26275 $as_echo "-------------------------------------------------------------" >&6; }
26276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26277 $as_echo_n "checking for DPS... " >&6; }
26278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26279 $as_echo "" >&6; }
26280     failed=0
26281     passed=0
26282     PERSIST_CPPFLAGS="$CPPFLAGS"
26283     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26284     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26285 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26286   passed=`expr $passed + 1`
26287 else
26288   failed=`expr $failed + 1`
26289 fi
26290
26291
26292     # DPS issues:
26293     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26294     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26295     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26296     # ImageMagick itself doesn't use -lXt.
26297     have_libdps='no'
26298     LIBDPS_XT=''
26299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26300 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26301 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26302   $as_echo_n "(cached) " >&6
26303 else
26304   ac_check_lib_save_LIBS=$LIBS
26305 LIBS="-ldps  $LIBS"
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h.  */
26308
26309 /* Override any GCC internal prototype to avoid an error.
26310    Use char because int might match the return type of a GCC
26311    builtin and then its argument prototype would still apply.  */
26312 #ifdef __cplusplus
26313 extern "C"
26314 #endif
26315 char DPSInitialize ();
26316 int
26317 main ()
26318 {
26319 return DPSInitialize ();
26320   ;
26321   return 0;
26322 }
26323 _ACEOF
26324 if ac_fn_c_try_link "$LINENO"; then :
26325   ac_cv_lib_dps_DPSInitialize=yes
26326 else
26327   ac_cv_lib_dps_DPSInitialize=no
26328 fi
26329 rm -f core conftest.err conftest.$ac_objext \
26330     conftest$ac_exeext conftest.$ac_ext
26331 LIBS=$ac_check_lib_save_LIBS
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26334 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26335 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26336   have_libdps='yes'
26337 else
26338   have_libdps='no'
26339 fi
26340
26341     if test "$have_libdps" != 'yes'; then
26342         # Unset cache variable so we can try again.
26343         unset ac_cv_lib_dps_DPSInitialize
26344         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26345 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26346 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26347   $as_echo_n "(cached) " >&6
26348 else
26349   ac_check_lib_save_LIBS=$LIBS
26350 LIBS="-ldps -lXt $LIBS"
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h.  */
26353
26354 /* Override any GCC internal prototype to avoid an error.
26355    Use char because int might match the return type of a GCC
26356    builtin and then its argument prototype would still apply.  */
26357 #ifdef __cplusplus
26358 extern "C"
26359 #endif
26360 char DPSInitialize ();
26361 int
26362 main ()
26363 {
26364 return DPSInitialize ();
26365   ;
26366   return 0;
26367 }
26368 _ACEOF
26369 if ac_fn_c_try_link "$LINENO"; then :
26370   ac_cv_lib_dps_DPSInitialize=yes
26371 else
26372   ac_cv_lib_dps_DPSInitialize=no
26373 fi
26374 rm -f core conftest.err conftest.$ac_objext \
26375     conftest$ac_exeext conftest.$ac_ext
26376 LIBS=$ac_check_lib_save_LIBS
26377 fi
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26379 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26380 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26381   have_libdps='yes'
26382 else
26383   have_libdps='no'
26384 fi
26385
26386         if test "$have_libdps" = 'yes'; then
26387             LIBDPS_XT='-lXt'
26388         fi
26389     fi
26390     if test "$have_libdps" = 'yes'; then
26391         passed=`expr $passed + 1`
26392     else
26393         failed=`expr $failed + 1`
26394     fi
26395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26396 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26397 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26398   $as_echo_n "(cached) " >&6
26399 else
26400   ac_check_lib_save_LIBS=$LIBS
26401 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h.  */
26404
26405 /* Override any GCC internal prototype to avoid an error.
26406    Use char because int might match the return type of a GCC
26407    builtin and then its argument prototype would still apply.  */
26408 #ifdef __cplusplus
26409 extern "C"
26410 #endif
26411 char XDPSPixelsPerPoint ();
26412 int
26413 main ()
26414 {
26415 return XDPSPixelsPerPoint ();
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 if ac_fn_c_try_link "$LINENO"; then :
26421   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26422 else
26423   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26424 fi
26425 rm -f core conftest.err conftest.$ac_objext \
26426     conftest$ac_exeext conftest.$ac_ext
26427 LIBS=$ac_check_lib_save_LIBS
26428 fi
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26430 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26431 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26432   passed=`expr $passed + 1`
26433 else
26434   failed=`expr $failed + 1`
26435 fi
26436
26437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26438 $as_echo_n "checking if DPS package is complete... " >&6; }
26439     if test $passed -gt 0; then
26440         if test $failed -gt 0; then
26441             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26442 $as_echo "no -- some components failed test" >&6; }
26443             have_dps='no (failed tests)'
26444             CPPFLAGS="$PERSIST_CPPFLAGS"
26445         else
26446             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26447             LIBS="$DPS_LIBS $LIBS"
26448
26449 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26450
26451             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26452 $as_echo "yes" >&6; }
26453             have_dps='yes'
26454         fi
26455     else
26456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457 $as_echo "no" >&6; }
26458         CPPFLAGS=$PERSIST_CPPFLAGS
26459     fi
26460 fi
26461  if test "$have_dps" = 'yes'; then
26462   DPS_DELEGATE_TRUE=
26463   DPS_DELEGATE_FALSE='#'
26464 else
26465   DPS_DELEGATE_TRUE='#'
26466   DPS_DELEGATE_FALSE=
26467 fi
26468
26469
26470
26471
26472 #
26473 # Check for DJVU delegate library.
26474 #
26475
26476 # Check whether --with-djvu was given.
26477 if test "${with_djvu+set}" = set; then :
26478   withval=$with_djvu; with_djvu=$withval
26479 else
26480   with_djvu='yes'
26481 fi
26482
26483
26484 if test "$with_djvu" != 'yes'; then
26485     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26486 fi
26487
26488 have_djvu='no'
26489 DJVU_LIBS=''
26490 if test "$with_djvu" != 'no'; then
26491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26492 $as_echo "-------------------------------------------------------------" >&6; }
26493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26494 $as_echo_n "checking for DJVU... " >&6; }
26495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26496 $as_echo "" >&6; }
26497     failed=0
26498     passed=0
26499     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26500 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26501   passed=`expr $passed + 1`
26502 else
26503   failed=`expr $failed + 1`
26504 fi
26505
26506
26507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26508 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26509 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26510   $as_echo_n "(cached) " >&6
26511 else
26512   ac_check_lib_save_LIBS=$LIBS
26513 LIBS="-ldjvulibre  $LIBS"
26514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h.  */
26516
26517 /* Override any GCC internal prototype to avoid an error.
26518    Use char because int might match the return type of a GCC
26519    builtin and then its argument prototype would still apply.  */
26520 #ifdef __cplusplus
26521 extern "C"
26522 #endif
26523 char ddjvu_context_create ();
26524 int
26525 main ()
26526 {
26527 return ddjvu_context_create ();
26528   ;
26529   return 0;
26530 }
26531 _ACEOF
26532 if ac_fn_c_try_link "$LINENO"; then :
26533   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26534 else
26535   ac_cv_lib_djvulibre_ddjvu_context_create=no
26536 fi
26537 rm -f core conftest.err conftest.$ac_objext \
26538     conftest$ac_exeext conftest.$ac_ext
26539 LIBS=$ac_check_lib_save_LIBS
26540 fi
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26542 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26543 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26544   passed=`expr $passed + 1`
26545 else
26546   failed=`expr $failed + 1`
26547 fi
26548
26549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26550 $as_echo_n "checking if DJVU package is complete... " >&6; }
26551     if test $passed -gt 0; then
26552         if test $failed -gt 0; then
26553             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26554 $as_echo "no -- some components failed test" >&6; }
26555             have_djvu='no (failed tests)'
26556         else
26557             DJVU_LIBS='-ldjvulibre'
26558             LIBS="$DJVU_LIBS $LIBS"
26559
26560 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26561
26562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26563 $as_echo "yes" >&6; }
26564             have_djvu='yes'
26565         fi
26566     else
26567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26568 $as_echo "no" >&6; }
26569     fi
26570 fi
26571  if test "$have_djvu" = 'yes'; then
26572   DJVU_DELEGATE_TRUE=
26573   DJVU_DELEGATE_FALSE='#'
26574 else
26575   DJVU_DELEGATE_TRUE='#'
26576   DJVU_DELEGATE_FALSE=
26577 fi
26578
26579
26580
26581
26582 #
26583 # Set DejaVu font directory.
26584 #
26585
26586 # Check whether --with-dejavu-font-dir was given.
26587 if test "${with_dejavu_font_dir+set}" = set; then :
26588   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26589 else
26590   with_dejavu_font_dir='default'
26591 fi
26592
26593
26594 if test "$with_dejavu_font_dir" != 'default'; then
26595     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26596 fi
26597
26598
26599 #
26600 # Check for FFTW delegate library.
26601 #
26602
26603 # Check whether --with-fftw was given.
26604 if test "${with_fftw+set}" = set; then :
26605   withval=$with_fftw; with_fftw=$withval
26606 else
26607   with_fftw='yes'
26608 fi
26609
26610
26611 if test "$with_fftw" != 'yes'; then
26612     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26613 fi
26614
26615 have_fftw='no'
26616 FFTW_LIBS=''
26617 if test "$with_fftw" != 'no'; then
26618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26619 $as_echo "-------------------------------------------------------------" >&6; }
26620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26621 $as_echo_n "checking for FFTW... " >&6; }
26622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26623 $as_echo "" >&6; }
26624     failed=0
26625     passed=0
26626     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26627 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26628   passed=`expr $passed + 1`
26629 else
26630   failed=`expr $failed + 1`
26631 fi
26632
26633
26634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26635 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26636 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26637   $as_echo_n "(cached) " >&6
26638 else
26639   ac_check_lib_save_LIBS=$LIBS
26640 LIBS="-lfftw3  $LIBS"
26641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26642 /* end confdefs.h.  */
26643
26644 /* Override any GCC internal prototype to avoid an error.
26645    Use char because int might match the return type of a GCC
26646    builtin and then its argument prototype would still apply.  */
26647 #ifdef __cplusplus
26648 extern "C"
26649 #endif
26650 char fftw_execute ();
26651 int
26652 main ()
26653 {
26654 return fftw_execute ();
26655   ;
26656   return 0;
26657 }
26658 _ACEOF
26659 if ac_fn_c_try_link "$LINENO"; then :
26660   ac_cv_lib_fftw3_fftw_execute=yes
26661 else
26662   ac_cv_lib_fftw3_fftw_execute=no
26663 fi
26664 rm -f core conftest.err conftest.$ac_objext \
26665     conftest$ac_exeext conftest.$ac_ext
26666 LIBS=$ac_check_lib_save_LIBS
26667 fi
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26669 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26670 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26671   passed=`expr $passed + 1`
26672 else
26673   failed=`expr $failed + 1`
26674 fi
26675
26676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26677 $as_echo_n "checking if FFTW package is complete... " >&6; }
26678     if test $passed -gt 0; then
26679         if test $failed -gt 0; then
26680             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26681 $as_echo "no -- some components failed test" >&6; }
26682             have_fftw='no (failed tests)'
26683         else
26684             FFTW_LIBS='-lfftw3'
26685             LIBS="$FFTW_LIBS $LIBS"
26686
26687 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26688
26689             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26690 $as_echo "yes" >&6; }
26691             have_fftw='yes'
26692         fi
26693     else
26694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26695 $as_echo "no" >&6; }
26696     fi
26697 fi
26698  if test "$have_fftw" = 'yes'; then
26699   FFTW_DELEGATE_TRUE=
26700   FFTW_DELEGATE_FALSE='#'
26701 else
26702   FFTW_DELEGATE_TRUE='#'
26703   FFTW_DELEGATE_FALSE=
26704 fi
26705
26706
26707
26708
26709 #
26710 # Check for FlashPIX delegate library.
26711 #
26712
26713 # Check whether --with-fpx was given.
26714 if test "${with_fpx+set}" = set; then :
26715   withval=$with_fpx; with_fpx=$withval
26716 else
26717   with_fpx='yes'
26718 fi
26719
26720
26721 if test "$with_fpx" != 'yes'; then
26722     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26723 fi
26724
26725 have_fpx='no'
26726 FPX_LIBS=''
26727 if test "$with_fpx" != 'no'; then
26728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26729 $as_echo "-------------------------------------------------------------" >&6; }
26730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26731 $as_echo_n "checking for FlashPIX... " >&6; }
26732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26733 $as_echo "" >&6; }
26734     failed=0
26735     passed=0
26736     ac_ext=cpp
26737 ac_cpp='$CXXCPP $CPPFLAGS'
26738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26741
26742
26743 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26744 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26745   passed=`expr $passed + 1`
26746 else
26747   failed=`expr $failed + 1`
26748 fi
26749
26750
26751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26752 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26753 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26754   $as_echo_n "(cached) " >&6
26755 else
26756   ac_check_lib_save_LIBS=$LIBS
26757 LIBS="-lfpx  $LIBS"
26758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26759 /* end confdefs.h.  */
26760
26761 /* Override any GCC internal prototype to avoid an error.
26762    Use char because int might match the return type of a GCC
26763    builtin and then its argument prototype would still apply.  */
26764 #ifdef __cplusplus
26765 extern "C"
26766 #endif
26767 char FPX_OpenImageByFilename ();
26768 int
26769 main ()
26770 {
26771 return FPX_OpenImageByFilename ();
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 if ac_fn_cxx_try_link "$LINENO"; then :
26777   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26778 else
26779   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26780 fi
26781 rm -f core conftest.err conftest.$ac_objext \
26782     conftest$ac_exeext conftest.$ac_ext
26783 LIBS=$ac_check_lib_save_LIBS
26784 fi
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26786 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26787 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26788   passed=`expr $passed + 1`
26789 else
26790   failed=`expr $failed + 1`
26791 fi
26792
26793     ac_ext=c
26794 ac_cpp='$CPP $CPPFLAGS'
26795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26798
26799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26800 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26801     if test $passed -gt 0; then
26802         if test $failed -gt 0; then
26803             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26804 $as_echo "no -- some components failed test" >&6; }
26805             have_fpx='no (failed tests)'
26806         else
26807             FPX_LIBS='-lfpx'
26808
26809 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26810
26811             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26812 $as_echo "yes" >&6; }
26813             have_fpx='yes'
26814             PERLMAINCC="$CXX"
26815         fi
26816     else
26817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26818 $as_echo "no" >&6; }
26819     fi
26820 fi
26821  if test "$have_fpx" = 'yes'; then
26822   FPX_DELEGATE_TRUE=
26823   FPX_DELEGATE_FALSE='#'
26824 else
26825   FPX_DELEGATE_TRUE='#'
26826   FPX_DELEGATE_FALSE=
26827 fi
26828
26829
26830
26831
26832 #
26833 # Check for fontconfig delegate library.
26834 #
26835
26836 # Check whether --with-fontconfig was given.
26837 if test "${with_fontconfig+set}" = set; then :
26838   withval=$with_fontconfig; with_fontconfig=$withval
26839 else
26840   with_fontconfig=$have_x
26841 fi
26842
26843
26844 if test "$with_fontconfig" != 'yes'; then
26845     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26846 fi
26847
26848 have_fontconfig='no'
26849 FONTCONFIG_CFLAGS=""
26850 FONTCONFIG_LIBS=""
26851 FONTCONFIG_PKG=""
26852 if test "x$with_fontconfig" = "xyes"; then
26853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26854 $as_echo "-------------------------------------------------------------" >&6; }
26855
26856 pkg_failed=no
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26858 $as_echo_n "checking for FONTCONFIG... " >&6; }
26859
26860 if test -n "$FONTCONFIG_CFLAGS"; then
26861     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26862  elif test -n "$PKG_CONFIG"; then
26863     if test -n "$PKG_CONFIG" && \
26864     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26865   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26866   ac_status=$?
26867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868   test $ac_status = 0; }; then
26869   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26870 else
26871   pkg_failed=yes
26872 fi
26873  else
26874     pkg_failed=untried
26875 fi
26876 if test -n "$FONTCONFIG_LIBS"; then
26877     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26878  elif test -n "$PKG_CONFIG"; then
26879     if test -n "$PKG_CONFIG" && \
26880     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26881   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26882   ac_status=$?
26883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884   test $ac_status = 0; }; then
26885   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26886 else
26887   pkg_failed=yes
26888 fi
26889  else
26890     pkg_failed=untried
26891 fi
26892
26893
26894
26895 if test $pkg_failed = yes; then
26896
26897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26898         _pkg_short_errors_supported=yes
26899 else
26900         _pkg_short_errors_supported=no
26901 fi
26902         if test $_pkg_short_errors_supported = yes; then
26903                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26904         else
26905                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26906         fi
26907         # Put the nasty error message in config.log where it belongs
26908         echo "$FONTCONFIG_PKG_ERRORS" >&5
26909
26910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26911 $as_echo "no" >&6; }
26912                 have_fontconfig=no
26913 elif test $pkg_failed = untried; then
26914         have_fontconfig=no
26915 else
26916         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26917         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26919 $as_echo "yes" >&6; }
26920         have_fontconfig=yes
26921 fi
26922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26923 $as_echo "" >&6; }
26924 fi
26925
26926 if test "$have_fontconfig" = 'yes'; then
26927
26928 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26929
26930   if test "$with_modules" = 'no'; then
26931     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26932   fi
26933 fi
26934
26935  if test "$have_fontconfig" = 'yes'; then
26936   FONTCONFIG_DELEGATE_TRUE=
26937   FONTCONFIG_DELEGATE_FALSE='#'
26938 else
26939   FONTCONFIG_DELEGATE_TRUE='#'
26940   FONTCONFIG_DELEGATE_FALSE=
26941 fi
26942
26943
26944
26945
26946
26947 #
26948 # Check for freetype delegate library.
26949 #
26950
26951 # Check whether --with-freetype was given.
26952 if test "${with_freetype+set}" = set; then :
26953   withval=$with_freetype; with_freetype=$withval
26954 else
26955   with_freetype='yes'
26956 fi
26957
26958
26959
26960 if test "$with_freetype" != 'yes'; then
26961     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26962 fi
26963
26964 have_freetype='no'
26965 FREETYPE_LIBS=''
26966 if test "$with_freetype" != 'no'; then
26967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26968 $as_echo "-------------------------------------------------------------" >&6; }
26969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26970 $as_echo_n "checking for FreeType 2.0... " >&6; }
26971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26972 $as_echo "" >&6; }
26973     failed=0
26974     passed=0
26975     PERSIST_LIBS="$LIBS"
26976     PERSIST_CPPFLAGS="$CPPFLAGS"
26977     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26978         :
26979     else
26980         freetype_config=''
26981         for ac_prog in freetype-config
26982 do
26983   # Extract the first word of "$ac_prog", so it can be a program name with args.
26984 set dummy $ac_prog; ac_word=$2
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26986 $as_echo_n "checking for $ac_word... " >&6; }
26987 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26988   $as_echo_n "(cached) " >&6
26989 else
26990   if test -n "$freetype_config"; then
26991   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26992 else
26993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 for as_dir in $PATH
26995 do
26996   IFS=$as_save_IFS
26997   test -z "$as_dir" && as_dir=.
26998     for ac_exec_ext in '' $ac_executable_extensions; do
26999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27000     ac_cv_prog_freetype_config="$ac_prog"
27001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27002     break 2
27003   fi
27004 done
27005   done
27006 IFS=$as_save_IFS
27007
27008 fi
27009 fi
27010 freetype_config=$ac_cv_prog_freetype_config
27011 if test -n "$freetype_config"; then
27012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27013 $as_echo "$freetype_config" >&6; }
27014 else
27015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016 $as_echo "no" >&6; }
27017 fi
27018
27019
27020   test -n "$freetype_config" && break
27021 done
27022         if test -n "$freetype_config"; then
27023             freetype_cflags=`$freetype_config --cflags`
27024             freetype_libs=`$freetype_config --libs`
27025             LIBS="$LIBS $freetype_libs"
27026             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27027         fi
27028     fi
27029
27030     if test "$FREETYPE_LIBS" = ''; then
27031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27032 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27033 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27034   $as_echo_n "(cached) " >&6
27035 else
27036   ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lfreetype  $LIBS"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h.  */
27040
27041 /* Override any GCC internal prototype to avoid an error.
27042    Use char because int might match the return type of a GCC
27043    builtin and then its argument prototype would still apply.  */
27044 #ifdef __cplusplus
27045 extern "C"
27046 #endif
27047 char FT_Init_FreeType ();
27048 int
27049 main ()
27050 {
27051 return FT_Init_FreeType ();
27052   ;
27053   return 0;
27054 }
27055 _ACEOF
27056 if ac_fn_c_try_link "$LINENO"; then :
27057   ac_cv_lib_freetype_FT_Init_FreeType=yes
27058 else
27059   ac_cv_lib_freetype_FT_Init_FreeType=no
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext \
27062     conftest$ac_exeext conftest.$ac_ext
27063 LIBS=$ac_check_lib_save_LIBS
27064 fi
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27066 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27067 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27068   FREETYPE_LIBS='-lfreetype'
27069 fi
27070
27071         if test "$FREETYPE_LIBS" != ''; then
27072             passed=`expr $passed + 1`
27073         else
27074             failed=`expr $failed + 1`
27075             LIBS="$PERSIST_LIBS"
27076         fi
27077     fi
27078
27079     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27080 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27081   FT2BUILD_H='#include <ft2build.h>'
27082 else
27083   ft2build=''
27084 fi
27085
27086
27087     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27088 "
27089 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27090   have_freetype_h='yes'
27091 else
27092   have_freetype_h='no'
27093 fi
27094
27095
27096     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27097         passed=`expr $passed + 1`
27098     else
27099         failed=`expr $failed + 1`
27100         CPPFLAGS="$PERSIST_CPPFLAGS"
27101     fi
27102
27103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27104 $as_echo_n "checking if FreeType package is complete... " >&6; }
27105     if test $passed -gt 0; then
27106         if test $failed -gt 0; then
27107             FREETYPE_LIBS=''
27108             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27109 $as_echo "no -- some components failed test" >&6; }
27110             have_freetype='no (failed tests)'
27111         else
27112             LIBS="$FREETYPE_LIBS $LIBS"
27113
27114 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27115
27116             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27117
27118 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27119
27120             fi
27121             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27122 $as_echo "yes" >&6; }
27123             have_freetype='yes'
27124         fi
27125     else
27126         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27128     fi
27129 fi
27130  if test "$have_freetype" = 'yes'; then
27131   FREETYPE_DELEGATE_TRUE=
27132   FREETYPE_DELEGATE_FALSE='#'
27133 else
27134   FREETYPE_DELEGATE_TRUE='#'
27135   FREETYPE_DELEGATE_FALSE=
27136 fi
27137
27138
27139
27140
27141
27142 #
27143 # Check for Ghostscript library or framework.
27144 #
27145 # Test for iapi.h & test for gsapi_new_instance in -lgs
27146 # or -framework Ghostscript
27147
27148
27149 # Check whether --with-gslib was given.
27150 if test "${with_gslib+set}" = set; then :
27151   withval=$with_gslib; with_gslib=$withval
27152 else
27153   with_gslib='no'
27154 fi
27155
27156
27157 gslib_framework='no'
27158 if test "$with_gslib" != 'yes'; then
27159     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27160 fi
27161
27162 have_gslib='no'
27163 GS_LIBS=''
27164 if test "$with_gslib" != 'no'; then
27165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27166 $as_echo "-------------------------------------------------------------" >&6; }
27167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27168 $as_echo_n "checking for Ghostscript... " >&6; }
27169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27170 $as_echo "" >&6; }
27171     framework=0
27172     failed=0
27173     passed=0
27174     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27175 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27176   passed=`expr $passed + 1`
27177 else
27178   failed=`expr $failed + 1`
27179 fi
27180
27181
27182     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27183 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27184   passed=`expr $passed + 1`
27185 else
27186   failed=`expr $failed + 1`
27187 fi
27188
27189
27190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27191 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27192 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27193   $as_echo_n "(cached) " >&6
27194 else
27195   ac_check_framework_save_LIBS=$LIBS
27196 LIBS="-framework Ghostscript  $LIBS"
27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198 /* end confdefs.h.  */
27199
27200 /* Override any GCC internal prototype to avoid an error.
27201    Use char because int might match the return type of a GCC
27202    builtin and then its argument prototype would still apply.  */
27203 #ifdef __cplusplus
27204 extern "C"
27205 #endif
27206 char gsapi_new_instance ();
27207 int
27208 main ()
27209 {
27210 return gsapi_new_instance ();
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 if ac_fn_c_try_link "$LINENO"; then :
27216   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27217 else
27218   ac_cv_framework_Ghostscript_gsapi_new_instance=no
27219 fi
27220 rm -f core conftest.err conftest.$ac_objext \
27221     conftest$ac_exeext conftest.$ac_ext
27222 LIBS=$ac_check_framework_save_LIBS
27223 fi
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27225 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27226 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27227   framework=`expr $framework + 1`
27228 else
27229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27230 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27231 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27232   $as_echo_n "(cached) " >&6
27233 else
27234   ac_check_lib_save_LIBS=$LIBS
27235 LIBS="-lgs  $LIBS"
27236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27237 /* end confdefs.h.  */
27238
27239 /* Override any GCC internal prototype to avoid an error.
27240    Use char because int might match the return type of a GCC
27241    builtin and then its argument prototype would still apply.  */
27242 #ifdef __cplusplus
27243 extern "C"
27244 #endif
27245 char gsapi_new_instance ();
27246 int
27247 main ()
27248 {
27249 return gsapi_new_instance ();
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 if ac_fn_c_try_link "$LINENO"; then :
27255   ac_cv_lib_gs_gsapi_new_instance=yes
27256 else
27257   ac_cv_lib_gs_gsapi_new_instance=no
27258 fi
27259 rm -f core conftest.err conftest.$ac_objext \
27260     conftest$ac_exeext conftest.$ac_ext
27261 LIBS=$ac_check_lib_save_LIBS
27262 fi
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27264 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27265 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27266   passed=`expr $passed + 1`
27267 else
27268   failed=`expr $failed + 1`
27269 fi
27270
27271 fi
27272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27273 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27274     if test $passed -gt 0; then
27275         if test $failed -gt 0; then
27276             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27277 $as_echo "no -- some components failed test" >&6; }
27278             have_gslib='no (failed tests)'
27279         else
27280             if test $framework -gt 0; then
27281                 GS_LIBS='-framework Ghostscript'
27282                 gslib_framework='yes'
27283                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27284 $as_echo "yes, using framework." >&6; }
27285             else
27286                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27287 $as_echo "yes, using library." >&6; }
27288                 GS_LIBS='-lgs'
27289             fi
27290             LIBS="$GS_LIBS $LIBS"
27291
27292 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27293
27294             have_gslib='yes'
27295         fi
27296     else
27297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27298 $as_echo "no" >&6; }
27299     fi
27300 fi
27301  if test "$have_gslib" = 'yes'; then
27302   GS_DELEGATE_TRUE=
27303   GS_DELEGATE_FALSE='#'
27304 else
27305   GS_DELEGATE_TRUE='#'
27306   GS_DELEGATE_FALSE=
27307 fi
27308
27309
27310
27311 # Set default font search path
27312
27313 # Check whether --with-fontpath was given.
27314 if test "${with_fontpath+set}" = set; then :
27315   withval=$with_fontpath; with_fontpath=$withval
27316 else
27317   with_fontpath=''
27318 fi
27319
27320
27321 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27322     with_fontpath=''
27323 else
27324
27325 cat >>confdefs.h <<_ACEOF
27326 #define MAGICK_FONT_PATH "$with_fontpath"
27327 _ACEOF
27328
27329 fi
27330 if test "$with_fontpath=" != ''; then
27331     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27332 fi
27333
27334 # Set Ghostscript font directory
27335
27336 # Check whether --with-gs-font-dir was given.
27337 if test "${with_gs_font_dir+set}" = set; then :
27338   withval=$with_gs_font_dir; with_gs_font_dir=$withval
27339 else
27340   with_gs_font_dir='default'
27341 fi
27342
27343
27344 if test "$with_gs_font_dir" != 'default'; then
27345     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27346 fi
27347
27348
27349 #
27350 # Check for GVC delegate library.
27351 #
27352
27353 # Check whether --with-gvc was given.
27354 if test "${with_gvc+set}" = set; then :
27355   withval=$with_gvc; with_gvc=$withval
27356 else
27357   with_gvc='yes'
27358 fi
27359
27360
27361 if test "$with_gvc" != 'yes'; then
27362     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27363 fi
27364
27365 GVC_PKG=""
27366 if test "x$with_gvc" = "xyes"; then
27367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27368 $as_echo "-------------------------------------------------------------" >&6; }
27369
27370 pkg_failed=no
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27372 $as_echo_n "checking for GVC... " >&6; }
27373
27374 if test -n "$GVC_CFLAGS"; then
27375     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27376  elif test -n "$PKG_CONFIG"; then
27377     if test -n "$PKG_CONFIG" && \
27378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27379   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27380   ac_status=$?
27381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382   test $ac_status = 0; }; then
27383   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27384 else
27385   pkg_failed=yes
27386 fi
27387  else
27388     pkg_failed=untried
27389 fi
27390 if test -n "$GVC_LIBS"; then
27391     pkg_cv_GVC_LIBS="$GVC_LIBS"
27392  elif test -n "$PKG_CONFIG"; then
27393     if test -n "$PKG_CONFIG" && \
27394     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27395   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27396   ac_status=$?
27397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398   test $ac_status = 0; }; then
27399   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27400 else
27401   pkg_failed=yes
27402 fi
27403  else
27404     pkg_failed=untried
27405 fi
27406
27407
27408
27409 if test $pkg_failed = yes; then
27410
27411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27412         _pkg_short_errors_supported=yes
27413 else
27414         _pkg_short_errors_supported=no
27415 fi
27416         if test $_pkg_short_errors_supported = yes; then
27417                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27418         else
27419                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27420         fi
27421         # Put the nasty error message in config.log where it belongs
27422         echo "$GVC_PKG_ERRORS" >&5
27423
27424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27425 $as_echo "no" >&6; }
27426                 have_gvc=no
27427 elif test $pkg_failed = untried; then
27428         have_gvc=no
27429 else
27430         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27431         GVC_LIBS=$pkg_cv_GVC_LIBS
27432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433 $as_echo "yes" >&6; }
27434         have_gvc=yes
27435 fi
27436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27437 $as_echo "" >&6; }
27438 fi
27439
27440 if test "$have_gvc" = 'yes'; then
27441
27442 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27443
27444     if test "$with_modules" = 'no'; then
27445         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27446     fi
27447 fi
27448
27449  if test "$have_gvc" = 'yes'; then
27450   GVC_DELEGATE_TRUE=
27451   GVC_DELEGATE_FALSE='#'
27452 else
27453   GVC_DELEGATE_TRUE='#'
27454   GVC_DELEGATE_FALSE=
27455 fi
27456
27457
27458
27459
27460
27461 #
27462 # Check for JBIG delegate library.
27463 #
27464
27465
27466 # Check whether --with-jbig was given.
27467 if test "${with_jbig+set}" = set; then :
27468   withval=$with_jbig; with_jbig=$withval
27469 else
27470   with_jbig='yes'
27471 fi
27472
27473
27474 have_jbig='no'
27475 JBIG_LIBS=''
27476 if test "$with_jbig" != 'no'; then
27477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27478 $as_echo "-------------------------------------------------------------" >&6; }
27479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27480 $as_echo_n "checking for JBIG... " >&6; }
27481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27482 $as_echo "" >&6; }
27483     failed=0
27484     passed=0
27485     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27486 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27487   passed=`expr $passed + 1`
27488 else
27489   failed=`expr $failed + 1`
27490 fi
27491
27492
27493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27494 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27495 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27496   $as_echo_n "(cached) " >&6
27497 else
27498   ac_check_lib_save_LIBS=$LIBS
27499 LIBS="-ljbig  $LIBS"
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h.  */
27502
27503 /* Override any GCC internal prototype to avoid an error.
27504    Use char because int might match the return type of a GCC
27505    builtin and then its argument prototype would still apply.  */
27506 #ifdef __cplusplus
27507 extern "C"
27508 #endif
27509 char jbg_dec_init ();
27510 int
27511 main ()
27512 {
27513 return jbg_dec_init ();
27514   ;
27515   return 0;
27516 }
27517 _ACEOF
27518 if ac_fn_c_try_link "$LINENO"; then :
27519   ac_cv_lib_jbig_jbg_dec_init=yes
27520 else
27521   ac_cv_lib_jbig_jbg_dec_init=no
27522 fi
27523 rm -f core conftest.err conftest.$ac_objext \
27524     conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27526 fi
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27528 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27529 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27530   passed=`expr $passed + 1`
27531 else
27532   failed=`expr $failed + 1`
27533 fi
27534
27535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27536 $as_echo_n "checking if JBIG package is complete... " >&6; }
27537     if test $passed -gt 0; then
27538         if test $failed -gt 0; then
27539             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27540 $as_echo "no -- some components failed test" >&6; }
27541             have_jbig='no (failed tests)'
27542         else
27543             JBIG_LIBS='-ljbig'
27544             LIBS="$JBIG_LIBS $LIBS"
27545
27546 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27547
27548             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27549 $as_echo "yes" >&6; }
27550             have_jbig='yes'
27551         fi
27552     else
27553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27554 $as_echo "no" >&6; }
27555     fi
27556 fi
27557  if test "$have_jbig" = 'yes'; then
27558   JBIG_DELEGATE_TRUE=
27559   JBIG_DELEGATE_FALSE='#'
27560 else
27561   JBIG_DELEGATE_TRUE='#'
27562   JBIG_DELEGATE_FALSE=
27563 fi
27564
27565
27566
27567
27568 #
27569 # Check for JPEG delegate library.
27570 #
27571
27572 # Check whether --with-jpeg was given.
27573 if test "${with_jpeg+set}" = set; then :
27574   withval=$with_jpeg; with_jpeg=$withval
27575 else
27576   with_jpeg='yes'
27577 fi
27578
27579
27580 if test "$with_jpeg" != 'yes'; then
27581     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27582 fi
27583
27584 have_jpeg='no'
27585 JPEG_LIBS=''
27586 if test "$with_jpeg" != 'no'; then
27587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27588 $as_echo "-------------------------------------------------------------" >&6; }
27589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27590 $as_echo_n "checking for JPEG... " >&6; }
27591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27592 $as_echo "" >&6; }
27593     failed=0
27594     passed=0
27595     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27596 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27597   passed=`expr $passed + 1`
27598 else
27599   failed=`expr $failed + 1`
27600 fi
27601
27602
27603     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27604 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27605   passed=`expr $passed + 1`
27606 else
27607   failed=`expr $failed + 1`
27608 fi
27609
27610
27611     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27612 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27613   passed=`expr $passed + 1`
27614 else
27615   failed=`expr $failed + 1`
27616 fi
27617
27618
27619     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27620 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27621   passed=`expr $passed + 1`
27622 else
27623   failed=`expr $failed + 1`
27624 fi
27625
27626
27627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27628 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27629 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27630   $as_echo_n "(cached) " >&6
27631 else
27632   ac_check_lib_save_LIBS=$LIBS
27633 LIBS="-ljpeg  $LIBS"
27634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27635 /* end confdefs.h.  */
27636
27637 /* Override any GCC internal prototype to avoid an error.
27638    Use char because int might match the return type of a GCC
27639    builtin and then its argument prototype would still apply.  */
27640 #ifdef __cplusplus
27641 extern "C"
27642 #endif
27643 char jpeg_read_header ();
27644 int
27645 main ()
27646 {
27647 return jpeg_read_header ();
27648   ;
27649   return 0;
27650 }
27651 _ACEOF
27652 if ac_fn_c_try_link "$LINENO"; then :
27653   ac_cv_lib_jpeg_jpeg_read_header=yes
27654 else
27655   ac_cv_lib_jpeg_jpeg_read_header=no
27656 fi
27657 rm -f core conftest.err conftest.$ac_objext \
27658     conftest$ac_exeext conftest.$ac_ext
27659 LIBS=$ac_check_lib_save_LIBS
27660 fi
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27662 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27663 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27664   passed=`expr $passed + 1`
27665 else
27666   failed=`expr $failed + 1`
27667 fi
27668
27669
27670 # Test for compatible JPEG library
27671 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27673 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27674 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27675   $as_echo_n "(cached) " >&6
27676 else
27677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27678 /* end confdefs.h.  */
27679 #include <stdio.h>
27680 #include <stdlib.h>
27681 #include <jpeglib.h>
27682
27683 int
27684 main ()
27685 {
27686
27687 #if JPEG_LIB_VERSION < 62
27688 #error IJG JPEG library must be version 6b or newer!
27689 #endif
27690 return 0;
27691
27692   ;
27693   return 0;
27694 }
27695 _ACEOF
27696 if ac_fn_c_try_compile "$LINENO"; then :
27697   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27698 else
27699   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27700 fi
27701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702 fi
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27704 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27705 fi
27706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27707 $as_echo_n "checking if JPEG package is complete... " >&6; }
27708     if test $passed -gt 0; then
27709         if test $failed -gt 0; then
27710             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27711 $as_echo "no -- some components failed test" >&6; }
27712             have_jpeg='no (failed tests)'
27713         else
27714             JPEG_LIBS='-ljpeg'
27715             LIBS="$JPEG_LIBS $LIBS"
27716
27717 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27718
27719             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27720 $as_echo "yes" >&6; }
27721             have_jpeg='yes'
27722         fi
27723     else
27724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27725 $as_echo "no" >&6; }
27726     fi
27727 fi
27728  if test "$have_jpeg" = 'yes'; then
27729   JPEG_DELEGATE_TRUE=
27730   JPEG_DELEGATE_FALSE='#'
27731 else
27732   JPEG_DELEGATE_TRUE='#'
27733   JPEG_DELEGATE_FALSE=
27734 fi
27735
27736
27737
27738
27739 #
27740 # Check for JPEG Version 2 delegate library.
27741 #
27742
27743 # Check whether --with-jp2 was given.
27744 if test "${with_jp2+set}" = set; then :
27745   withval=$with_jp2; with_jp2=$withval
27746 else
27747   with_jp2='yes'
27748 fi
27749
27750
27751 if test "$with_jp2" != 'yes'; then
27752     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27753 fi
27754
27755 have_jp2='no'
27756 JP2_LIBS=''
27757 if test "$with_jp2" != 'no'; then
27758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27759 $as_echo "-------------------------------------------------------------" >&6; }
27760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27761 $as_echo_n "checking for JPEG Version 2... " >&6; }
27762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27763 $as_echo "" >&6; }
27764     failed=0
27765     passed=0
27766     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27767 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27768   passed=`expr $passed + 1`
27769 else
27770   failed=`expr $failed + 1`
27771 fi
27772
27773
27774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27775 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27776 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27777   $as_echo_n "(cached) " >&6
27778 else
27779   ac_check_lib_save_LIBS=$LIBS
27780 LIBS="-ljasper  $LIBS"
27781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h.  */
27783
27784 /* Override any GCC internal prototype to avoid an error.
27785    Use char because int might match the return type of a GCC
27786    builtin and then its argument prototype would still apply.  */
27787 #ifdef __cplusplus
27788 extern "C"
27789 #endif
27790 char jas_stream_fopen ();
27791 int
27792 main ()
27793 {
27794 return jas_stream_fopen ();
27795   ;
27796   return 0;
27797 }
27798 _ACEOF
27799 if ac_fn_c_try_link "$LINENO"; then :
27800   ac_cv_lib_jasper_jas_stream_fopen=yes
27801 else
27802   ac_cv_lib_jasper_jas_stream_fopen=no
27803 fi
27804 rm -f core conftest.err conftest.$ac_objext \
27805     conftest$ac_exeext conftest.$ac_ext
27806 LIBS=$ac_check_lib_save_LIBS
27807 fi
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27809 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27810 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27811   passed=`expr $passed + 1`
27812 else
27813   failed=`expr $failed + 1`
27814 fi
27815
27816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27817 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27818     if test $passed -gt 0; then
27819         if test $failed -gt 0; then
27820             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27821 $as_echo "no -- some components failed test" >&6; }
27822             have_jp2='no (failed tests)'
27823         else
27824             JP2_LIBS='-ljasper'
27825             LIBS="$JP2_LIBS $LIBS"
27826
27827 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27828
27829             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27830 $as_echo "yes" >&6; }
27831             have_jp2='yes'
27832         fi
27833     else
27834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27835 $as_echo "no" >&6; }
27836     fi
27837 fi
27838  if test "$have_jp2" = 'yes'; then
27839   JP2_DELEGATE_TRUE=
27840   JP2_DELEGATE_FALSE='#'
27841 else
27842   JP2_DELEGATE_TRUE='#'
27843   JP2_DELEGATE_FALSE=
27844 fi
27845
27846
27847
27848
27849 #
27850 # Check for LCMS delegate library.
27851 #
27852 # Disable LCMS.
27853
27854 # Check whether --with-lcms was given.
27855 if test "${with_lcms+set}" = set; then :
27856   withval=$with_lcms; with_lcms=$withval
27857 else
27858   with_lcms='yes'
27859 fi
27860
27861 if test "$with_lcms" != 'yes' ; then
27862     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27863 fi
27864
27865 # Disable LCMS2.
27866
27867 # Check whether --with-lcms2 was given.
27868 if test "${with_lcms2+set}" = set; then :
27869   withval=$with_lcms2; with_lcms2=$withval
27870 else
27871   with_lcms2='yes'
27872 fi
27873
27874 if test "$with_lcms2" != 'yes' ; then
27875     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27876 fi
27877
27878 have_lcms2='no'
27879 LCMS_LIBS=''
27880 if test "$with_lcms2" != 'no'; then
27881     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27882 $as_echo "-------------------------------------------------------------" >&6; }
27883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27884 $as_echo_n "checking for LCMS v2... " >&6; }
27885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27886 $as_echo "" >&6; }
27887     failed=0
27888     passed=0
27889     have_lcms_header='no'
27890
27891     # Check for <lcms2.h>
27892     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27893 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27894   have_lcms_header='yes'
27895 fi
27896
27897
27898     if test "$have_lcms_header" = 'yes'; then
27899
27900 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27901
27902        passed=`expr $passed + 1`
27903     fi
27904
27905     # Check for <lcms2/lcms2.h)
27906     if test "$have_lcms_header" != 'yes'; then
27907       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27908 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27909   have_lcms_header='yes'
27910 fi
27911
27912
27913       if test "$have_lcms_header" = 'yes'; then
27914         passed=`expr $passed + 1`
27915
27916 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27917
27918       fi
27919     fi
27920
27921     # Failed to find lcms header?
27922     if test "$have_lcms_header" != 'yes'; then
27923       failed=`expr $failed + 1`
27924     fi
27925
27926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27927 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27928 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27929   $as_echo_n "(cached) " >&6
27930 else
27931   ac_check_lib_save_LIBS=$LIBS
27932 LIBS="-llcms2  $LIBS"
27933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934 /* end confdefs.h.  */
27935
27936 /* Override any GCC internal prototype to avoid an error.
27937    Use char because int might match the return type of a GCC
27938    builtin and then its argument prototype would still apply.  */
27939 #ifdef __cplusplus
27940 extern "C"
27941 #endif
27942 char cmsSetLogErrorHandler ();
27943 int
27944 main ()
27945 {
27946 return cmsSetLogErrorHandler ();
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 if ac_fn_c_try_link "$LINENO"; then :
27952   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27953 else
27954   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27955 fi
27956 rm -f core conftest.err conftest.$ac_objext \
27957     conftest$ac_exeext conftest.$ac_ext
27958 LIBS=$ac_check_lib_save_LIBS
27959 fi
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27961 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27962 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27963   passed=`expr $passed + 1`
27964 else
27965   failed=`expr $failed + 1`
27966 fi
27967
27968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27969 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27970     if test $passed -gt 0; then
27971       if test $failed -gt 0; then
27972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27973 $as_echo "no -- some components failed test" >&6; }
27974         have_lcms2='no (failed tests)'
27975       else
27976         LCMS_LIBS='-llcms2'
27977         LIBS="$LCMS_LIBS $LIBS"
27978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27979 $as_echo "yes" >&6; }
27980         have_lcms2='yes'
27981       fi
27982     else
27983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27984 $as_echo "no" >&6; }
27985     fi
27986 fi
27987
27988 #
27989 # Check for LCMS v1 (1.11 or later)
27990 #
27991 if test $have_lcms2 = 'yes'; then
27992   with_lcms='no'
27993 fi
27994
27995 have_lcms='no'
27996 if test "$with_lcms" != 'no'; then
27997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27998 $as_echo "-------------------------------------------------------------" >&6; }
27999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28000 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28002 $as_echo "" >&6; }
28003     failed=0
28004     passed=0
28005     have_lcms_header='no'
28006
28007     # Check for <lcms.h>
28008     if test "$have_lcms_header" != 'yes'; then
28009       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28010 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28011   have_lcms_header='yes'
28012 fi
28013
28014
28015       if test "$have_lcms_header" = 'yes'; then
28016         passed=`expr $passed + 1`
28017
28018 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28019
28020       fi
28021     fi
28022
28023     # Check for <lcms/lcms.h>
28024     if test "$have_lcms_header" != 'yes'; then
28025       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28026 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28027   have_lcms_header='yes'
28028 fi
28029
28030
28031       if test "$have_lcms_header" = 'yes'; then
28032         passed=`expr $passed + 1`
28033
28034 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28035
28036       fi
28037     fi
28038
28039     # Failed to find lcms header?
28040     if test "$have_lcms_header" != 'yes'; then
28041       failed=`expr $failed + 1`
28042     fi
28043
28044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28045 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28046 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28047   $as_echo_n "(cached) " >&6
28048 else
28049   ac_check_lib_save_LIBS=$LIBS
28050 LIBS="-llcms  $LIBS"
28051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052 /* end confdefs.h.  */
28053
28054 /* Override any GCC internal prototype to avoid an error.
28055    Use char because int might match the return type of a GCC
28056    builtin and then its argument prototype would still apply.  */
28057 #ifdef __cplusplus
28058 extern "C"
28059 #endif
28060 char cmsSetErrorHandler ();
28061 int
28062 main ()
28063 {
28064 return cmsSetErrorHandler ();
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 if ac_fn_c_try_link "$LINENO"; then :
28070   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28071 else
28072   ac_cv_lib_lcms_cmsSetErrorHandler=no
28073 fi
28074 rm -f core conftest.err conftest.$ac_objext \
28075     conftest$ac_exeext conftest.$ac_ext
28076 LIBS=$ac_check_lib_save_LIBS
28077 fi
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28079 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28080 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28081   passed=`expr $passed + 1`
28082 else
28083   failed=`expr $failed + 1`
28084 fi
28085
28086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28087 $as_echo_n "checking if LCMS package is complete... " >&6; }
28088     if test $passed -gt 0; then
28089       if test $failed -gt 0; then
28090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28091 $as_echo "no -- some components failed test" >&6; }
28092         have_lcms='no (failed tests)'
28093       else
28094         LCMS_LIBS='-llcms'
28095         LIBS="$LCMS_LIBS $LIBS"
28096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28097 $as_echo "yes" >&6; }
28098         have_lcms='yes'
28099       fi
28100     else
28101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28102 $as_echo "no" >&6; }
28103     fi
28104 fi
28105
28106  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28107   LCMS_DELEGATE_TRUE=
28108   LCMS_DELEGATE_FALSE='#'
28109 else
28110   LCMS_DELEGATE_TRUE='#'
28111   LCMS_DELEGATE_FALSE=
28112 fi
28113
28114 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28115
28116 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28117
28118 fi
28119
28120
28121
28122
28123 #
28124 # Check for the LQR (Liquid Rescale) delegate library.
28125 #
28126
28127 # Check whether --with-lqr was given.
28128 if test "${with_lqr+set}" = set; then :
28129   withval=$with_lqr; with_lqr=$withval
28130 else
28131   with_lqr='yes'
28132 fi
28133
28134
28135 if test "$with_lqr" != 'yes'; then
28136     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28137 fi
28138
28139 have_lqr='no'
28140 LQR_CFLAGS=""
28141 LQR_LIBS=""
28142 LQR_PKG=""
28143 if test "x$with_lqr" = "xyes"; then
28144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28145 $as_echo "-------------------------------------------------------------" >&6; }
28146
28147 pkg_failed=no
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28149 $as_echo_n "checking for LQR... " >&6; }
28150
28151 if test -n "$LQR_CFLAGS"; then
28152     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28153  elif test -n "$PKG_CONFIG"; then
28154     if test -n "$PKG_CONFIG" && \
28155     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28156   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28157   ac_status=$?
28158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159   test $ac_status = 0; }; then
28160   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28161 else
28162   pkg_failed=yes
28163 fi
28164  else
28165     pkg_failed=untried
28166 fi
28167 if test -n "$LQR_LIBS"; then
28168     pkg_cv_LQR_LIBS="$LQR_LIBS"
28169  elif test -n "$PKG_CONFIG"; then
28170     if test -n "$PKG_CONFIG" && \
28171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28172   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28173   ac_status=$?
28174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28175   test $ac_status = 0; }; then
28176   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28177 else
28178   pkg_failed=yes
28179 fi
28180  else
28181     pkg_failed=untried
28182 fi
28183
28184
28185
28186 if test $pkg_failed = yes; then
28187
28188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28189         _pkg_short_errors_supported=yes
28190 else
28191         _pkg_short_errors_supported=no
28192 fi
28193         if test $_pkg_short_errors_supported = yes; then
28194                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28195         else
28196                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28197         fi
28198         # Put the nasty error message in config.log where it belongs
28199         echo "$LQR_PKG_ERRORS" >&5
28200
28201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28203                 have_lqr=no
28204 elif test $pkg_failed = untried; then
28205         have_lqr=no
28206 else
28207         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28208         LQR_LIBS=$pkg_cv_LQR_LIBS
28209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 $as_echo "yes" >&6; }
28211         have_lqr=yes
28212 fi
28213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28214 $as_echo "" >&6; }
28215 fi
28216
28217 if test "$have_lqr" = 'yes'; then
28218
28219 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28220
28221     CFLAGS="$LQR_CFLAGS $CFLAGS"
28222 fi
28223
28224  if test "$have_lqr" = 'yes'; then
28225   LQR_DELEGATE_TRUE=
28226   LQR_DELEGATE_FALSE='#'
28227 else
28228   LQR_DELEGATE_TRUE='#'
28229   LQR_DELEGATE_FALSE=
28230 fi
28231
28232
28233
28234
28235
28236 # Disable LZMA (lzma library)
28237
28238 # Check whether --with-lzma was given.
28239 if test "${with_lzma+set}" = set; then :
28240   withval=$with_lzma; with_lzma=$withval
28241 else
28242   with_lzma='yes'
28243 fi
28244
28245 if test "$with_lzma" != 'yes' ; then
28246     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
28247 fi
28248
28249 #
28250 # Check for LZMA
28251 #
28252 have_lzma='no'
28253 LZMA_LIBS=''
28254 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
28255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28256 $as_echo "-------------------------------------------------------------" >&6; }
28257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
28258 $as_echo_n "checking for LZMA... " >&6; }
28259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28260 $as_echo "" >&6; }
28261   failed=0
28262   passed=0
28263   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
28264 if test "x$ac_cv_header_lzma_h" = x""yes; then :
28265   passed=`expr $passed + 1`
28266 else
28267   failed=`expr $failed + 1`
28268 fi
28269
28270
28271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
28272 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
28273 if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
28274   $as_echo_n "(cached) " >&6
28275 else
28276   ac_check_lib_save_LIBS=$LIBS
28277 LIBS="-llzma  $LIBS"
28278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279 /* end confdefs.h.  */
28280
28281 /* Override any GCC internal prototype to avoid an error.
28282    Use char because int might match the return type of a GCC
28283    builtin and then its argument prototype would still apply.  */
28284 #ifdef __cplusplus
28285 extern "C"
28286 #endif
28287 char lzma_code ();
28288 int
28289 main ()
28290 {
28291 return lzma_code ();
28292   ;
28293   return 0;
28294 }
28295 _ACEOF
28296 if ac_fn_c_try_link "$LINENO"; then :
28297   ac_cv_lib_lzma_lzma_code=yes
28298 else
28299   ac_cv_lib_lzma_lzma_code=no
28300 fi
28301 rm -f core conftest.err conftest.$ac_objext \
28302     conftest$ac_exeext conftest.$ac_ext
28303 LIBS=$ac_check_lib_save_LIBS
28304 fi
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
28306 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
28307 if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
28308   passed=`expr $passed + 1`
28309 else
28310   failed=`expr $failed + 1`
28311 fi
28312
28313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
28314 $as_echo_n "checking if LZMA package is complete... " >&6; }
28315   if test $passed -gt 0; then
28316     if test $failed -gt 0; then
28317       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28318 $as_echo "no -- some components failed test" >&6; }
28319       have_lzma='no (failed tests)'
28320     else
28321       LZMA_LIBS='-llzma'
28322       LIBS="$LZMA_LIBS $LIBS"
28323
28324 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
28325
28326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28327 $as_echo "yes" >&6; }
28328       have_lzma='yes'
28329     fi
28330   else
28331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28332 $as_echo "no" >&6; }
28333   fi
28334 fi
28335  if test "$have_lzma" = 'yes'; then
28336   LZMA_DELEGATE_TRUE=
28337   LZMA_DELEGATE_FALSE='#'
28338 else
28339   LZMA_DELEGATE_TRUE='#'
28340   LZMA_DELEGATE_FALSE=
28341 fi
28342
28343
28344
28345
28346 #
28347 # Check for the OpenEXR delegate library.
28348 #
28349
28350 # Check whether --with-openexr was given.
28351 if test "${with_openexr+set}" = set; then :
28352   withval=$with_openexr; with_openexr=$withval
28353 else
28354   with_openexr='yes'
28355 fi
28356
28357
28358 if test "$with_openexr" != 'yes'; then
28359     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28360 fi
28361
28362 have_openexr='no'
28363 OPENEXR_CFLAGS=""
28364 OPENEXR_LIBS=""
28365 OPENEXR_PKG=""
28366 if test "x$with_openexr" = "xyes"; then
28367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28368 $as_echo "-------------------------------------------------------------" >&6; }
28369
28370 pkg_failed=no
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28372 $as_echo_n "checking for OPENEXR... " >&6; }
28373
28374 if test -n "$OPENEXR_CFLAGS"; then
28375     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28376  elif test -n "$PKG_CONFIG"; then
28377     if test -n "$PKG_CONFIG" && \
28378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28379   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28380   ac_status=$?
28381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28382   test $ac_status = 0; }; then
28383   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28384 else
28385   pkg_failed=yes
28386 fi
28387  else
28388     pkg_failed=untried
28389 fi
28390 if test -n "$OPENEXR_LIBS"; then
28391     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28392  elif test -n "$PKG_CONFIG"; then
28393     if test -n "$PKG_CONFIG" && \
28394     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28395   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28396   ac_status=$?
28397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28398   test $ac_status = 0; }; then
28399   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28400 else
28401   pkg_failed=yes
28402 fi
28403  else
28404     pkg_failed=untried
28405 fi
28406
28407
28408
28409 if test $pkg_failed = yes; then
28410
28411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28412         _pkg_short_errors_supported=yes
28413 else
28414         _pkg_short_errors_supported=no
28415 fi
28416         if test $_pkg_short_errors_supported = yes; then
28417                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28418         else
28419                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28420         fi
28421         # Put the nasty error message in config.log where it belongs
28422         echo "$OPENEXR_PKG_ERRORS" >&5
28423
28424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28425 $as_echo "no" >&6; }
28426                 have_openexr=no
28427 elif test $pkg_failed = untried; then
28428         have_openexr=no
28429 else
28430         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28431         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28433 $as_echo "yes" >&6; }
28434         have_openexr=yes
28435 fi
28436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28437 $as_echo "" >&6; }
28438 fi
28439
28440 if test "$have_openexr" = 'yes'; then
28441
28442 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28443
28444     if test "$with_modules" = 'no'; then
28445         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28446     fi
28447 fi
28448
28449  if test "$have_openexr" = 'yes'; then
28450   OPENEXR_DELEGATE_TRUE=
28451   OPENEXR_DELEGATE_FALSE='#'
28452 else
28453   OPENEXR_DELEGATE_TRUE='#'
28454   OPENEXR_DELEGATE_FALSE=
28455 fi
28456
28457
28458
28459
28460
28461 #
28462 # Check for PNG delegate library.
28463 #
28464
28465 # Check whether --with-png was given.
28466 if test "${with_png+set}" = set; then :
28467   withval=$with_png; with_png=$withval
28468 else
28469   with_png='yes'
28470 fi
28471
28472
28473 if test "$with_png" != 'yes'; then
28474     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28475 fi
28476
28477 have_png='no'
28478 PNG_LIBS=''
28479 if test "$with_png" != 'no'; then
28480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28481 $as_echo "-------------------------------------------------------------" >&6; }
28482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28483 $as_echo_n "checking for PNG... " >&6; }
28484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28485 $as_echo "" >&6; }
28486     failed=0
28487     passed=0
28488     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28489 if test "x$ac_cv_header_png_h" = x""yes; then :
28490   passed=`expr $passed + 1`
28491 else
28492   failed=`expr $failed + 1`
28493 fi
28494
28495
28496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28497 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28498 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28499   $as_echo_n "(cached) " >&6
28500 else
28501   ac_check_lib_save_LIBS=$LIBS
28502 LIBS="-lpng  $LIBS"
28503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28504 /* end confdefs.h.  */
28505
28506 /* Override any GCC internal prototype to avoid an error.
28507    Use char because int might match the return type of a GCC
28508    builtin and then its argument prototype would still apply.  */
28509 #ifdef __cplusplus
28510 extern "C"
28511 #endif
28512 char png_get_io_ptr ();
28513 int
28514 main ()
28515 {
28516 return png_get_io_ptr ();
28517   ;
28518   return 0;
28519 }
28520 _ACEOF
28521 if ac_fn_c_try_link "$LINENO"; then :
28522   ac_cv_lib_png_png_get_io_ptr=yes
28523 else
28524   ac_cv_lib_png_png_get_io_ptr=no
28525 fi
28526 rm -f core conftest.err conftest.$ac_objext \
28527     conftest$ac_exeext conftest.$ac_ext
28528 LIBS=$ac_check_lib_save_LIBS
28529 fi
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28531 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28532 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28533   passed=`expr $passed + 1`
28534 else
28535   failed=`expr $failed + 1`
28536 fi
28537
28538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28539 $as_echo_n "checking if PNG package is complete... " >&6; }
28540     if test $passed -gt 0; then
28541         if test $failed -gt 0; then
28542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28543 $as_echo "no -- some components failed test" >&6; }
28544             have_png='no (failed tests)'
28545         else
28546             PNG_LIBS='-lpng'
28547             LIBS="$PNG_LIBS $LIBS"
28548
28549 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28550
28551             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28552 $as_echo "yes" >&6; }
28553             have_png='yes'
28554         fi
28555     else
28556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28557 $as_echo "no" >&6; }
28558     fi
28559 fi
28560  if test "$have_png" = 'yes'; then
28561   PNG_DELEGATE_TRUE=
28562   PNG_DELEGATE_FALSE='#'
28563 else
28564   PNG_DELEGATE_TRUE='#'
28565   PNG_DELEGATE_FALSE=
28566 fi
28567
28568
28569
28570
28571 #
28572 # Check for RSVG delegate library.
28573 #
28574
28575 # Check whether --with-rsvg was given.
28576 if test "${with_rsvg+set}" = set; then :
28577   withval=$with_rsvg; with_rsvg=$withval
28578 else
28579   with_rsvg=$have_x
28580 fi
28581
28582
28583 if test "$with_rsvg" != 'yes'; then
28584     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28585 fi
28586
28587 have_rsvg='no'
28588 have_cairo='no'
28589 RSVG_CFLAGS=""
28590 RSVG_LIBS=""
28591 RSVG_PKG=""
28592 if test "x$with_rsvg" = "xyes"; then
28593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28594 $as_echo "-------------------------------------------------------------" >&6; }
28595
28596 pkg_failed=no
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28598 $as_echo_n "checking for RSVG... " >&6; }
28599
28600 if test -n "$RSVG_CFLAGS"; then
28601     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28602  elif test -n "$PKG_CONFIG"; then
28603     if test -n "$PKG_CONFIG" && \
28604     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28605   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28606   ac_status=$?
28607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28608   test $ac_status = 0; }; then
28609   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28610 else
28611   pkg_failed=yes
28612 fi
28613  else
28614     pkg_failed=untried
28615 fi
28616 if test -n "$RSVG_LIBS"; then
28617     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28618  elif test -n "$PKG_CONFIG"; then
28619     if test -n "$PKG_CONFIG" && \
28620     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28621   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28622   ac_status=$?
28623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624   test $ac_status = 0; }; then
28625   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28626 else
28627   pkg_failed=yes
28628 fi
28629  else
28630     pkg_failed=untried
28631 fi
28632
28633
28634
28635 if test $pkg_failed = yes; then
28636
28637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28638         _pkg_short_errors_supported=yes
28639 else
28640         _pkg_short_errors_supported=no
28641 fi
28642         if test $_pkg_short_errors_supported = yes; then
28643                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28644         else
28645                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28646         fi
28647         # Put the nasty error message in config.log where it belongs
28648         echo "$RSVG_PKG_ERRORS" >&5
28649
28650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28651 $as_echo "no" >&6; }
28652                 have_rsvg=no
28653 elif test $pkg_failed = untried; then
28654         have_rsvg=no
28655 else
28656         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28657         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28659 $as_echo "yes" >&6; }
28660         have_rsvg=yes
28661 fi
28662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28663 $as_echo "" >&6; }
28664
28665 pkg_failed=no
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28667 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28668
28669 if test -n "$CAIRO_SVG_CFLAGS"; then
28670     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28671  elif test -n "$PKG_CONFIG"; then
28672     if test -n "$PKG_CONFIG" && \
28673     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28674   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28675   ac_status=$?
28676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28677   test $ac_status = 0; }; then
28678   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28679 else
28680   pkg_failed=yes
28681 fi
28682  else
28683     pkg_failed=untried
28684 fi
28685 if test -n "$CAIRO_SVG_LIBS"; then
28686     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28687  elif test -n "$PKG_CONFIG"; then
28688     if test -n "$PKG_CONFIG" && \
28689     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28690   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28691   ac_status=$?
28692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693   test $ac_status = 0; }; then
28694   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28695 else
28696   pkg_failed=yes
28697 fi
28698  else
28699     pkg_failed=untried
28700 fi
28701
28702
28703
28704 if test $pkg_failed = yes; then
28705
28706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28707         _pkg_short_errors_supported=yes
28708 else
28709         _pkg_short_errors_supported=no
28710 fi
28711         if test $_pkg_short_errors_supported = yes; then
28712                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28713         else
28714                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28715         fi
28716         # Put the nasty error message in config.log where it belongs
28717         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28718
28719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28720 $as_echo "no" >&6; }
28721                 have_cairo=no
28722 elif test $pkg_failed = untried; then
28723         have_cairo=no
28724 else
28725         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28726         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28728 $as_echo "yes" >&6; }
28729         have_cairo=yes
28730 fi
28731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28732 $as_echo "" >&6; }
28733 fi
28734
28735 if test "$have_rsvg" = 'yes'; then
28736
28737 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28738
28739     if test "$with_modules" = 'no'; then
28740         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28741     fi
28742 fi
28743
28744 if test "$have_cairo" = 'yes'; then
28745
28746 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28747
28748     if test "$with_modules" = 'no'; then
28749         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28750     fi
28751 fi
28752
28753  if test "$have_rsvg" = 'yes'; then
28754   RSVG_DELEGATE_TRUE=
28755   RSVG_DELEGATE_FALSE='#'
28756 else
28757   RSVG_DELEGATE_TRUE='#'
28758   RSVG_DELEGATE_FALSE=
28759 fi
28760
28761  if test "$have_cairo" = 'yes'; then
28762   CAIRO_DELEGATE_TRUE=
28763   CAIRO_DELEGATE_FALSE='#'
28764 else
28765   CAIRO_DELEGATE_TRUE='#'
28766   CAIRO_DELEGATE_FALSE=
28767 fi
28768
28769
28770
28771
28772
28773 #
28774 # Check for TIFF delegate library.
28775 #
28776
28777 # Check whether --with-tiff was given.
28778 if test "${with_tiff+set}" = set; then :
28779   withval=$with_tiff; with_tiff=$withval
28780 else
28781   with_tiff='yes'
28782 fi
28783
28784
28785 if test "$with_tiff" != 'yes'; then
28786     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28787 fi
28788
28789 have_tiff='no'
28790 TIFF_LIBS=''
28791 if test "$with_tiff" != 'no'; then
28792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28793 $as_echo "-------------------------------------------------------------" >&6; }
28794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28795 $as_echo_n "checking for TIFF... " >&6; }
28796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28797 $as_echo "" >&6; }
28798     failed=0
28799     passed=0
28800     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28801 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28802   passed=`expr $passed + 1`
28803 else
28804   failed=`expr $failed + 1`
28805 fi
28806
28807
28808     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28809 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28810   passed=`expr $passed + 1`
28811 else
28812   failed=`expr $failed + 1`
28813 fi
28814
28815
28816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28817 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28818 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28819   $as_echo_n "(cached) " >&6
28820 else
28821   ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-ltiff  $LIBS"
28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28824 /* end confdefs.h.  */
28825
28826 /* Override any GCC internal prototype to avoid an error.
28827    Use char because int might match the return type of a GCC
28828    builtin and then its argument prototype would still apply.  */
28829 #ifdef __cplusplus
28830 extern "C"
28831 #endif
28832 char TIFFOpen ();
28833 int
28834 main ()
28835 {
28836 return TIFFOpen ();
28837   ;
28838   return 0;
28839 }
28840 _ACEOF
28841 if ac_fn_c_try_link "$LINENO"; then :
28842   ac_cv_lib_tiff_TIFFOpen=yes
28843 else
28844   ac_cv_lib_tiff_TIFFOpen=no
28845 fi
28846 rm -f core conftest.err conftest.$ac_objext \
28847     conftest$ac_exeext conftest.$ac_ext
28848 LIBS=$ac_check_lib_save_LIBS
28849 fi
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28851 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28852 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28853   passed=`expr $passed + 1`
28854 else
28855   failed=`expr $failed + 1`
28856 fi
28857
28858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28859 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28860 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28861   $as_echo_n "(cached) " >&6
28862 else
28863   ac_check_lib_save_LIBS=$LIBS
28864 LIBS="-ltiff  $LIBS"
28865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h.  */
28867
28868 /* Override any GCC internal prototype to avoid an error.
28869    Use char because int might match the return type of a GCC
28870    builtin and then its argument prototype would still apply.  */
28871 #ifdef __cplusplus
28872 extern "C"
28873 #endif
28874 char TIFFClientOpen ();
28875 int
28876 main ()
28877 {
28878 return TIFFClientOpen ();
28879   ;
28880   return 0;
28881 }
28882 _ACEOF
28883 if ac_fn_c_try_link "$LINENO"; then :
28884   ac_cv_lib_tiff_TIFFClientOpen=yes
28885 else
28886   ac_cv_lib_tiff_TIFFClientOpen=no
28887 fi
28888 rm -f core conftest.err conftest.$ac_objext \
28889     conftest$ac_exeext conftest.$ac_ext
28890 LIBS=$ac_check_lib_save_LIBS
28891 fi
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28893 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28894 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28895   passed=`expr $passed + 1`
28896 else
28897   failed=`expr $failed + 1`
28898 fi
28899
28900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28901 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28902 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28903   $as_echo_n "(cached) " >&6
28904 else
28905   ac_check_lib_save_LIBS=$LIBS
28906 LIBS="-ltiff  $LIBS"
28907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28908 /* end confdefs.h.  */
28909
28910 /* Override any GCC internal prototype to avoid an error.
28911    Use char because int might match the return type of a GCC
28912    builtin and then its argument prototype would still apply.  */
28913 #ifdef __cplusplus
28914 extern "C"
28915 #endif
28916 char TIFFIsBigEndian ();
28917 int
28918 main ()
28919 {
28920 return TIFFIsBigEndian ();
28921   ;
28922   return 0;
28923 }
28924 _ACEOF
28925 if ac_fn_c_try_link "$LINENO"; then :
28926   ac_cv_lib_tiff_TIFFIsBigEndian=yes
28927 else
28928   ac_cv_lib_tiff_TIFFIsBigEndian=no
28929 fi
28930 rm -f core conftest.err conftest.$ac_objext \
28931     conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28933 fi
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28935 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28936 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28937   passed=`expr $passed + 1`
28938 else
28939   failed=`expr $failed + 1`
28940 fi
28941
28942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28943 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28944 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28945   $as_echo_n "(cached) " >&6
28946 else
28947   ac_check_lib_save_LIBS=$LIBS
28948 LIBS="-ltiff  $LIBS"
28949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28950 /* end confdefs.h.  */
28951
28952 /* Override any GCC internal prototype to avoid an error.
28953    Use char because int might match the return type of a GCC
28954    builtin and then its argument prototype would still apply.  */
28955 #ifdef __cplusplus
28956 extern "C"
28957 #endif
28958 char TIFFIsByteSwapped ();
28959 int
28960 main ()
28961 {
28962 return TIFFIsByteSwapped ();
28963   ;
28964   return 0;
28965 }
28966 _ACEOF
28967 if ac_fn_c_try_link "$LINENO"; then :
28968   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28969 else
28970   ac_cv_lib_tiff_TIFFIsByteSwapped=no
28971 fi
28972 rm -f core conftest.err conftest.$ac_objext \
28973     conftest$ac_exeext conftest.$ac_ext
28974 LIBS=$ac_check_lib_save_LIBS
28975 fi
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28977 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28978 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28979   passed=`expr $passed + 1`
28980 else
28981   failed=`expr $failed + 1`
28982 fi
28983
28984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28985 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28986 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28987   $as_echo_n "(cached) " >&6
28988 else
28989   ac_check_lib_save_LIBS=$LIBS
28990 LIBS="-ltiff  $LIBS"
28991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28992 /* end confdefs.h.  */
28993
28994 /* Override any GCC internal prototype to avoid an error.
28995    Use char because int might match the return type of a GCC
28996    builtin and then its argument prototype would still apply.  */
28997 #ifdef __cplusplus
28998 extern "C"
28999 #endif
29000 char TIFFReadRGBATile ();
29001 int
29002 main ()
29003 {
29004 return TIFFReadRGBATile ();
29005   ;
29006   return 0;
29007 }
29008 _ACEOF
29009 if ac_fn_c_try_link "$LINENO"; then :
29010   ac_cv_lib_tiff_TIFFReadRGBATile=yes
29011 else
29012   ac_cv_lib_tiff_TIFFReadRGBATile=no
29013 fi
29014 rm -f core conftest.err conftest.$ac_objext \
29015     conftest$ac_exeext conftest.$ac_ext
29016 LIBS=$ac_check_lib_save_LIBS
29017 fi
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29019 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29020 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29021   passed=`expr $passed + 1`
29022 else
29023   failed=`expr $failed + 1`
29024 fi
29025
29026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29027 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29028 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29029   $as_echo_n "(cached) " >&6
29030 else
29031   ac_check_lib_save_LIBS=$LIBS
29032 LIBS="-ltiff  $LIBS"
29033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29034 /* end confdefs.h.  */
29035
29036 /* Override any GCC internal prototype to avoid an error.
29037    Use char because int might match the return type of a GCC
29038    builtin and then its argument prototype would still apply.  */
29039 #ifdef __cplusplus
29040 extern "C"
29041 #endif
29042 char TIFFReadRGBAStrip ();
29043 int
29044 main ()
29045 {
29046 return TIFFReadRGBAStrip ();
29047   ;
29048   return 0;
29049 }
29050 _ACEOF
29051 if ac_fn_c_try_link "$LINENO"; then :
29052   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29053 else
29054   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29055 fi
29056 rm -f core conftest.err conftest.$ac_objext \
29057     conftest$ac_exeext conftest.$ac_ext
29058 LIBS=$ac_check_lib_save_LIBS
29059 fi
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29061 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29062 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29063   passed=`expr $passed + 1`
29064 else
29065   failed=`expr $failed + 1`
29066 fi
29067
29068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29069 $as_echo_n "checking if TIFF package is complete... " >&6; }
29070     if test $passed -gt 0; then
29071         if test $failed -gt 0; then
29072             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29073 $as_echo "no -- some components failed test" >&6; }
29074             have_tiff='no (failed tests)'
29075         else
29076             TIFF_LIBS='-ltiff'
29077             LIBS="$TIFF_LIBS $LIBS"
29078
29079 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29080
29081             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29082 $as_echo "yes" >&6; }
29083             have_tiff='yes'
29084             for ac_header in tiffconf.h
29085 do :
29086   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29087 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29088   cat >>confdefs.h <<_ACEOF
29089 #define HAVE_TIFFCONF_H 1
29090 _ACEOF
29091
29092 fi
29093
29094 done
29095
29096             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29097               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29098               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29099 do :
29100   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29103   cat >>confdefs.h <<_ACEOF
29104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29105 _ACEOF
29106
29107 fi
29108 done
29109
29110         fi
29111     else
29112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29113 $as_echo "no" >&6; }
29114     fi
29115 fi
29116  if test "$have_tiff" = 'yes'; then
29117   TIFF_DELEGATE_TRUE=
29118   TIFF_DELEGATE_FALSE='#'
29119 else
29120   TIFF_DELEGATE_TRUE='#'
29121   TIFF_DELEGATE_FALSE=
29122 fi
29123
29124
29125
29126
29127 #
29128 # Set Windows font directory.
29129 #
29130
29131 # Check whether --with-windows-font-dir was given.
29132 if test "${with_windows_font_dir+set}" = set; then :
29133   withval=$with_windows_font_dir; with_windows_font_dir=$withval
29134 else
29135   with_windows_font_dir=''
29136 fi
29137
29138 if test "$with_windows_font_dir" != '' ; then
29139     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29140 fi
29141
29142
29143 #
29144 # Check for WMF delegate library.
29145 #
29146
29147 # Check whether --with-wmf was given.
29148 if test "${with_wmf+set}" = set; then :
29149   withval=$with_wmf; with_wmf=$withval
29150 else
29151   with_wmf='yes'
29152 fi
29153
29154
29155 if test "$with_wmf" != 'yes'; then
29156     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29157 fi
29158
29159 have_wmf='no'
29160 WMF_LIBS=''
29161 if test "$with_wmf" != 'no'; then
29162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29163 $as_echo "-------------------------------------------------------------" >&6; }
29164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29165 $as_echo_n "checking for WMF... " >&6; }
29166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29167 $as_echo "" >&6; }
29168     failed=0
29169     passed=0
29170     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29171 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29172   passed=`expr $passed + 1`
29173 else
29174   failed=`expr $failed + 1`
29175 fi
29176
29177
29178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29179 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29180 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29181   $as_echo_n "(cached) " >&6
29182 else
29183   ac_check_lib_save_LIBS=$LIBS
29184 LIBS="-lwmf "-lwmflite" $LIBS"
29185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29186 /* end confdefs.h.  */
29187
29188 /* Override any GCC internal prototype to avoid an error.
29189    Use char because int might match the return type of a GCC
29190    builtin and then its argument prototype would still apply.  */
29191 #ifdef __cplusplus
29192 extern "C"
29193 #endif
29194 char wmf_eps_function ();
29195 int
29196 main ()
29197 {
29198 return wmf_eps_function ();
29199   ;
29200   return 0;
29201 }
29202 _ACEOF
29203 if ac_fn_c_try_link "$LINENO"; then :
29204   ac_cv_lib_wmf_wmf_eps_function=yes
29205 else
29206   ac_cv_lib_wmf_wmf_eps_function=no
29207 fi
29208 rm -f core conftest.err conftest.$ac_objext \
29209     conftest$ac_exeext conftest.$ac_ext
29210 LIBS=$ac_check_lib_save_LIBS
29211 fi
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29213 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29214 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29215   passed=`expr $passed + 1`
29216 else
29217   failed=`expr $failed + 1`
29218 fi
29219
29220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29221 $as_echo_n "checking if WMF package is complete... " >&6; }
29222     if test $passed -gt 0; then
29223         if test $failed -gt 0; then
29224             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29225 $as_echo "no -- some components failed test" >&6; }
29226             have_wmf='no (failed tests)'
29227         else
29228             WMF_LIBS='-lwmf -lwmflite'
29229             LIBS="$WMF_LIBS $LIBS"
29230
29231 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29232
29233             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234 $as_echo "yes" >&6; }
29235             have_wmf='yes'
29236         fi
29237     else
29238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239 $as_echo "no" >&6; }
29240     fi
29241 fi
29242  if test "$have_wmf" = 'yes'; then
29243   WMF_DELEGATE_TRUE=
29244   WMF_DELEGATE_FALSE='#'
29245 else
29246   WMF_DELEGATE_TRUE='#'
29247   WMF_DELEGATE_FALSE=
29248 fi
29249
29250
29251
29252
29253
29254
29255 #
29256 # Check for XML delegate library.
29257 #
29258
29259 # Check whether --with-xml was given.
29260 if test "${with_xml+set}" = set; then :
29261   withval=$with_xml; with_xml=$withval
29262 else
29263   with_xml=$have_x
29264 fi
29265
29266
29267 if test "$with_xml" != 'yes' ; then
29268     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29269 fi
29270
29271 have_xml='no'
29272 XML_LIBS=''
29273 if test "$with_xml" != 'no'; then
29274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29275 $as_echo "-------------------------------------------------------------" >&6; }
29276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29277 $as_echo_n "checking for XML... " >&6; }
29278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29279 $as_echo "" >&6; }
29280     PERSIST_LDFLAGS=$LDFLAGS
29281     PERSIST_CPPFLAGS=$CPPFLAGS
29282     xml2_config=''
29283     for ac_prog in xml2-config
29284 do
29285   # Extract the first word of "$ac_prog", so it can be a program name with args.
29286 set dummy $ac_prog; ac_word=$2
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29288 $as_echo_n "checking for $ac_word... " >&6; }
29289 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29290   $as_echo_n "(cached) " >&6
29291 else
29292   if test -n "$xml2_config"; then
29293   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29294 else
29295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29296 for as_dir in $PATH
29297 do
29298   IFS=$as_save_IFS
29299   test -z "$as_dir" && as_dir=.
29300     for ac_exec_ext in '' $ac_executable_extensions; do
29301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29302     ac_cv_prog_xml2_config="$ac_prog"
29303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29304     break 2
29305   fi
29306 done
29307   done
29308 IFS=$as_save_IFS
29309
29310 fi
29311 fi
29312 xml2_config=$ac_cv_prog_xml2_config
29313 if test -n "$xml2_config"; then
29314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29315 $as_echo "$xml2_config" >&6; }
29316 else
29317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29318 $as_echo "no" >&6; }
29319 fi
29320
29321
29322   test -n "$xml2_config" && break
29323 done
29324     if test -n "$xml2_config"; then
29325         # Debian installs libxml headers under /usr/include/libxml2/libxml with
29326         # the shared library installed under /usr/lib, whereas the package
29327         # installs itself under $prefix/libxml and $prefix/lib.
29328         xml2_prefix=`xml2-config --prefix`
29329         if test -d "${xml2_prefix}/include/libxml2"; then
29330             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29331         fi
29332         if test "${xml2_prefix}" != '/usr'; then
29333             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29334         fi
29335     fi
29336     failed=0
29337     passed=0
29338     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29339 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29340   passed=`expr $passed + 1`
29341 else
29342   failed=`expr $failed + 1`
29343 fi
29344
29345
29346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29347 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29348 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29349   $as_echo_n "(cached) " >&6
29350 else
29351   ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lxml2  $LIBS"
29353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29354 /* end confdefs.h.  */
29355
29356 /* Override any GCC internal prototype to avoid an error.
29357    Use char because int might match the return type of a GCC
29358    builtin and then its argument prototype would still apply.  */
29359 #ifdef __cplusplus
29360 extern "C"
29361 #endif
29362 char xmlParseExternalEntity ();
29363 int
29364 main ()
29365 {
29366 return xmlParseExternalEntity ();
29367   ;
29368   return 0;
29369 }
29370 _ACEOF
29371 if ac_fn_c_try_link "$LINENO"; then :
29372   ac_cv_lib_xml2_xmlParseExternalEntity=yes
29373 else
29374   ac_cv_lib_xml2_xmlParseExternalEntity=no
29375 fi
29376 rm -f core conftest.err conftest.$ac_objext \
29377     conftest$ac_exeext conftest.$ac_ext
29378 LIBS=$ac_check_lib_save_LIBS
29379 fi
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29381 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29382 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29383   passed=`expr $passed + 1`
29384 else
29385   failed=`expr $failed + 1`
29386 fi
29387
29388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29389 $as_echo_n "checking if XML package is complete... " >&6; }
29390     if test $passed -gt 0; then
29391         if test $failed -gt 0; then
29392             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29393 $as_echo "no -- some components failed test" >&6; }
29394             have_xml='no (failed tests)'
29395             LDFLAGS="$PERSIST_LDFLAGS"
29396             CPPFLAGS="$PERSIST_CPPFLAGS"
29397         else
29398             XML_LIBS='-lxml2'
29399             LIBS="$XML_LIBS $LIBS"
29400
29401 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29402
29403             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29404 $as_echo "yes" >&6; }
29405             have_xml='yes'
29406         fi
29407     else
29408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29409 $as_echo "no" >&6; }
29410     fi
29411 fi
29412  if test "$have_xml" = 'yes'; then
29413   XML_DELEGATE_TRUE=
29414   XML_DELEGATE_FALSE='#'
29415 else
29416   XML_DELEGATE_TRUE='#'
29417   XML_DELEGATE_FALSE=
29418 fi
29419
29420
29421
29422
29423 # Substitute compiler name to build/link PerlMagick
29424 #
29425
29426
29427 #
29428 # Configure install Paths
29429 #
29430
29431 # Subdirectory under lib to place ImageMagick lib files
29432 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29433
29434 cat >>confdefs.h <<_ACEOF
29435 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29436 _ACEOF
29437
29438
29439 # Path to ImageMagick bin directory
29440 EXECUTABLE_PATH="${BIN_DIR}"
29441 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29442 case "${build_os}" in
29443   mingw* )
29444     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29445     ;;
29446 esac
29447
29448 cat >>confdefs.h <<_ACEOF
29449 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29450 _ACEOF
29451
29452
29453
29454 # Path to ImageMagick lib
29455 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29456 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29457 case "${build_os}" in
29458   mingw* )
29459     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29460     ;;
29461 esac
29462
29463 cat >>confdefs.h <<_ACEOF
29464 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29465 _ACEOF
29466
29467
29468
29469 # Subdirectory under lib to place ImageMagick configuration files
29470 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29471
29472 cat >>confdefs.h <<_ACEOF
29473 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29474 _ACEOF
29475
29476 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29477 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29478 case "${build_os}" in
29479   mingw* )
29480     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29481     ;;
29482 esac
29483
29484 cat >>confdefs.h <<_ACEOF
29485 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29486 _ACEOF
29487
29488
29489
29490 #
29491 # Subdirectory under lib to place ImageMagick coder module files
29492 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29493
29494 cat >>confdefs.h <<_ACEOF
29495 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29496 _ACEOF
29497
29498 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29499 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29500 case "${build_os}" in
29501   mingw* )
29502     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29503     ;;
29504 esac
29505
29506 cat >>confdefs.h <<_ACEOF
29507 #define CODER_PATH "$DEFINE_CODER_PATH"
29508 _ACEOF
29509
29510
29511
29512 #
29513 # Subdirectory under lib to place ImageMagick filter module files
29514 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29515
29516 cat >>confdefs.h <<_ACEOF
29517 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29518 _ACEOF
29519
29520 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29521 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29522 case "${build_os}" in
29523   mingw* )
29524     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29525     ;;
29526 esac
29527
29528 cat >>confdefs.h <<_ACEOF
29529 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29530 _ACEOF
29531
29532
29533
29534 #
29535 # Path to ImageMagick documentation files
29536 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29537 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29538 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29539 case "${build_os}" in
29540   mingw* )
29541     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29542     ;;
29543 esac
29544
29545 cat >>confdefs.h <<_ACEOF
29546 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29547 _ACEOF
29548
29549
29550
29551 #
29552 # Path to ImageMagick share files
29553 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29554 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29555 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29556 case "${build_os}" in
29557   mingw* )
29558     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29559     ;;
29560 esac
29561
29562 cat >>confdefs.h <<_ACEOF
29563 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29564 _ACEOF
29565
29566
29567
29568 # Subdirectory under share to place ImageMagick configuration files
29569 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29570
29571 cat >>confdefs.h <<_ACEOF
29572 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29573 _ACEOF
29574
29575 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29576 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29577 case "${build_os}" in
29578   mingw* )
29579     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29580     ;;
29581 esac
29582
29583 cat >>confdefs.h <<_ACEOF
29584 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29585 _ACEOF
29586
29587
29588
29589 #
29590 # program_transform_name is formed for use in a Makefile, so create a
29591 # modified version for use in a shell script.
29592 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29593
29594 # Default delegate definitions
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29596 $as_echo "-------------------------------------------------------------" >&6; }
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29598 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29600 $as_echo "" >&6; }
29601 AutotraceDecodeDelegateDefault='autotrace'
29602 BlenderDecodeDelegateDefault='blender'
29603 BZIPDelegateDefault='bzip2'
29604 BrowseDelegateDefault='xdg-open'
29605 CGMDecodeDelegateDefault='ralcgm'
29606 CatDelegateDefault='cat'
29607 DNGDecodeDelegateDefault='ufraw-batch'
29608 GVCDecodeDelegateDefault='dot'
29609 DVIDecodeDelegateDefault='dvips'
29610 EchoDelegateDefault='echo'
29611 EditorDelegateDefault='xterm'
29612 FIGDecodeDelegateDefault='fig2dev'
29613 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29614 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29615 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29616 GnuplotDecodeDelegateDefault='gnuplot'
29617 HDRDecodeDelegateDefault='ra_pfm'
29618 HPGLDecodeDelegateDefault='hp2xx'
29619 HTMLDecodeDelegateDefault='html2ps'
29620 ILBMDecodeDelegateDefault='ilbmtoppm'
29621 ILBMEncodeDelegateDefault='ppmtoilbm'
29622 LPDelegateDefault='lp'
29623 LPRDelegateDefault='lpr'
29624 LZWDecodeDelegateDefault='uncompress'
29625 LZWEncodeDelegateDefault='compress'
29626 LaunchDelegateDefault='gimp'
29627 MANDelegateDefault='groff'
29628 MPEGDecodeDelegateDefault='ffmpeg'
29629 MPEGEncodeDelegateDefault='ffmpeg'
29630 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29631 MVDelegateDefault='mv'
29632 PCLDelegateDefault='pcl6'
29633 PGPDecodeDelegateDefault='pgpv'
29634 POVDelegateDefault='povray'
29635 if test "$native_win32_build" = 'yes'; then
29636     PSDelegateDefault='gswin32c'
29637 elif test "$gslib_framework" = 'yes'; then
29638     PSDelegateDefault='gsc'
29639 else
29640     PSDelegateDefault='gs'
29641 fi
29642 RLEEncodeDelegateDefault='rawtorle'
29643 RMDelegateDefault='rm'
29644 RSVGDecodeDelegateDefault='rsvg'
29645 SCANDecodeDelegateDefault='scanimage'
29646 TXTDelegateDefault='enscript'
29647 UniconvertorDelegateDefault='uniconvertor'
29648 WEBPDelegateDefault='webpconv'
29649 WMFDecodeDelegateDefault='wmf2eps'
29650 WWWDecodeDelegateDefault='curl'
29651 XPSDelegateDefault='gxps'
29652 ZipDelegateDefault='gzip'
29653
29654 # Search for delegates
29655 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29656 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29658 $as_echo_n "checking for $ac_word... " >&6; }
29659 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29660   $as_echo_n "(cached) " >&6
29661 else
29662   case $AutotraceDecodeDelegate in
29663   [\\/]* | ?:[\\/]*)
29664   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29665   ;;
29666   *)
29667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29668 for as_dir in $PATH
29669 do
29670   IFS=$as_save_IFS
29671   test -z "$as_dir" && as_dir=.
29672     for ac_exec_ext in '' $ac_executable_extensions; do
29673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29674     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29676     break 2
29677   fi
29678 done
29679   done
29680 IFS=$as_save_IFS
29681
29682   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29683   ;;
29684 esac
29685 fi
29686 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29687 if test -n "$AutotraceDecodeDelegate"; then
29688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29689 $as_echo "$AutotraceDecodeDelegate" >&6; }
29690 else
29691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29692 $as_echo "no" >&6; }
29693 fi
29694
29695
29696 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29697 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29699 $as_echo_n "checking for $ac_word... " >&6; }
29700 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29701   $as_echo_n "(cached) " >&6
29702 else
29703   case $BlenderDecodeDelegate in
29704   [\\/]* | ?:[\\/]*)
29705   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29706   ;;
29707   *)
29708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29709 for as_dir in $PATH
29710 do
29711   IFS=$as_save_IFS
29712   test -z "$as_dir" && as_dir=.
29713     for ac_exec_ext in '' $ac_executable_extensions; do
29714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29715     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29717     break 2
29718   fi
29719 done
29720   done
29721 IFS=$as_save_IFS
29722
29723   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29724   ;;
29725 esac
29726 fi
29727 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29728 if test -n "$BlenderDecodeDelegate"; then
29729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29730 $as_echo "$BlenderDecodeDelegate" >&6; }
29731 else
29732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29733 $as_echo "no" >&6; }
29734 fi
29735
29736
29737 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29738 set dummy "$BZIPDelegateDefault"; ac_word=$2
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29740 $as_echo_n "checking for $ac_word... " >&6; }
29741 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29742   $as_echo_n "(cached) " >&6
29743 else
29744   case $BZIPDelegate in
29745   [\\/]* | ?:[\\/]*)
29746   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29747   ;;
29748   *)
29749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29750 for as_dir in $PATH
29751 do
29752   IFS=$as_save_IFS
29753   test -z "$as_dir" && as_dir=.
29754     for ac_exec_ext in '' $ac_executable_extensions; do
29755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29756     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29758     break 2
29759   fi
29760 done
29761   done
29762 IFS=$as_save_IFS
29763
29764   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29765   ;;
29766 esac
29767 fi
29768 BZIPDelegate=$ac_cv_path_BZIPDelegate
29769 if test -n "$BZIPDelegate"; then
29770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29771 $as_echo "$BZIPDelegate" >&6; }
29772 else
29773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29774 $as_echo "no" >&6; }
29775 fi
29776
29777
29778 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29779 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29781 $as_echo_n "checking for $ac_word... " >&6; }
29782 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29783   $as_echo_n "(cached) " >&6
29784 else
29785   case $BrowseDelegate in
29786   [\\/]* | ?:[\\/]*)
29787   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29788   ;;
29789   *)
29790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29791 for as_dir in $PATH
29792 do
29793   IFS=$as_save_IFS
29794   test -z "$as_dir" && as_dir=.
29795     for ac_exec_ext in '' $ac_executable_extensions; do
29796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29797     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29799     break 2
29800   fi
29801 done
29802   done
29803 IFS=$as_save_IFS
29804
29805   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29806   ;;
29807 esac
29808 fi
29809 BrowseDelegate=$ac_cv_path_BrowseDelegate
29810 if test -n "$BrowseDelegate"; then
29811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29812 $as_echo "$BrowseDelegate" >&6; }
29813 else
29814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29815 $as_echo "no" >&6; }
29816 fi
29817
29818
29819 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29820 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29822 $as_echo_n "checking for $ac_word... " >&6; }
29823 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29824   $as_echo_n "(cached) " >&6
29825 else
29826   case $CGMDecodeDelegate in
29827   [\\/]* | ?:[\\/]*)
29828   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29829   ;;
29830   *)
29831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832 for as_dir in $PATH
29833 do
29834   IFS=$as_save_IFS
29835   test -z "$as_dir" && as_dir=.
29836     for ac_exec_ext in '' $ac_executable_extensions; do
29837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29838     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29840     break 2
29841   fi
29842 done
29843   done
29844 IFS=$as_save_IFS
29845
29846   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29847   ;;
29848 esac
29849 fi
29850 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29851 if test -n "$CGMDecodeDelegate"; then
29852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29853 $as_echo "$CGMDecodeDelegate" >&6; }
29854 else
29855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29856 $as_echo "no" >&6; }
29857 fi
29858
29859
29860 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29861 set dummy "$CatDelegateDefault"; ac_word=$2
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29863 $as_echo_n "checking for $ac_word... " >&6; }
29864 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29865   $as_echo_n "(cached) " >&6
29866 else
29867   case $CatDelegate in
29868   [\\/]* | ?:[\\/]*)
29869   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29870   ;;
29871   *)
29872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873 for as_dir in $PATH
29874 do
29875   IFS=$as_save_IFS
29876   test -z "$as_dir" && as_dir=.
29877     for ac_exec_ext in '' $ac_executable_extensions; do
29878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29879     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29881     break 2
29882   fi
29883 done
29884   done
29885 IFS=$as_save_IFS
29886
29887   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29888   ;;
29889 esac
29890 fi
29891 CatDelegate=$ac_cv_path_CatDelegate
29892 if test -n "$CatDelegate"; then
29893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29894 $as_echo "$CatDelegate" >&6; }
29895 else
29896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29897 $as_echo "no" >&6; }
29898 fi
29899
29900
29901 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29902 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29904 $as_echo_n "checking for $ac_word... " >&6; }
29905 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29906   $as_echo_n "(cached) " >&6
29907 else
29908   case $DNGDecodeDelegate in
29909   [\\/]* | ?:[\\/]*)
29910   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29911   ;;
29912   *)
29913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914 for as_dir in $PATH
29915 do
29916   IFS=$as_save_IFS
29917   test -z "$as_dir" && as_dir=.
29918     for ac_exec_ext in '' $ac_executable_extensions; do
29919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29920     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29922     break 2
29923   fi
29924 done
29925   done
29926 IFS=$as_save_IFS
29927
29928   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29929   ;;
29930 esac
29931 fi
29932 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29933 if test -n "$DNGDecodeDelegate"; then
29934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29935 $as_echo "$DNGDecodeDelegate" >&6; }
29936 else
29937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29938 $as_echo "no" >&6; }
29939 fi
29940
29941
29942 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29943 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29945 $as_echo_n "checking for $ac_word... " >&6; }
29946 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29947   $as_echo_n "(cached) " >&6
29948 else
29949   case $GVCDecodeDelegate in
29950   [\\/]* | ?:[\\/]*)
29951   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29952   ;;
29953   *)
29954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955 for as_dir in $PATH
29956 do
29957   IFS=$as_save_IFS
29958   test -z "$as_dir" && as_dir=.
29959     for ac_exec_ext in '' $ac_executable_extensions; do
29960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29961     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29963     break 2
29964   fi
29965 done
29966   done
29967 IFS=$as_save_IFS
29968
29969   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29970   ;;
29971 esac
29972 fi
29973 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29974 if test -n "$GVCDecodeDelegate"; then
29975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29976 $as_echo "$GVCDecodeDelegate" >&6; }
29977 else
29978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979 $as_echo "no" >&6; }
29980 fi
29981
29982
29983 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29984 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29986 $as_echo_n "checking for $ac_word... " >&6; }
29987 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29988   $as_echo_n "(cached) " >&6
29989 else
29990   case $DVIDecodeDelegate in
29991   [\\/]* | ?:[\\/]*)
29992   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29993   ;;
29994   *)
29995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29996 for as_dir in $PATH
29997 do
29998   IFS=$as_save_IFS
29999   test -z "$as_dir" && as_dir=.
30000     for ac_exec_ext in '' $ac_executable_extensions; do
30001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30002     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30004     break 2
30005   fi
30006 done
30007   done
30008 IFS=$as_save_IFS
30009
30010   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30011   ;;
30012 esac
30013 fi
30014 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30015 if test -n "$DVIDecodeDelegate"; then
30016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30017 $as_echo "$DVIDecodeDelegate" >&6; }
30018 else
30019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30021 fi
30022
30023
30024 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30025 set dummy "$EchoDelegateDefault"; ac_word=$2
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30027 $as_echo_n "checking for $ac_word... " >&6; }
30028 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30029   $as_echo_n "(cached) " >&6
30030 else
30031   case $EchoDelegate in
30032   [\\/]* | ?:[\\/]*)
30033   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30034   ;;
30035   *)
30036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037 for as_dir in $PATH
30038 do
30039   IFS=$as_save_IFS
30040   test -z "$as_dir" && as_dir=.
30041     for ac_exec_ext in '' $ac_executable_extensions; do
30042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30045     break 2
30046   fi
30047 done
30048   done
30049 IFS=$as_save_IFS
30050
30051   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30052   ;;
30053 esac
30054 fi
30055 EchoDelegate=$ac_cv_path_EchoDelegate
30056 if test -n "$EchoDelegate"; then
30057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30058 $as_echo "$EchoDelegate" >&6; }
30059 else
30060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30061 $as_echo "no" >&6; }
30062 fi
30063
30064
30065 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30066 set dummy "$EditorDelegateDefault"; ac_word=$2
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30068 $as_echo_n "checking for $ac_word... " >&6; }
30069 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30070   $as_echo_n "(cached) " >&6
30071 else
30072   case $EditorDelegate in
30073   [\\/]* | ?:[\\/]*)
30074   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30075   ;;
30076   *)
30077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30078 for as_dir in $PATH
30079 do
30080   IFS=$as_save_IFS
30081   test -z "$as_dir" && as_dir=.
30082     for ac_exec_ext in '' $ac_executable_extensions; do
30083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30084     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30086     break 2
30087   fi
30088 done
30089   done
30090 IFS=$as_save_IFS
30091
30092   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30093   ;;
30094 esac
30095 fi
30096 EditorDelegate=$ac_cv_path_EditorDelegate
30097 if test -n "$EditorDelegate"; then
30098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30099 $as_echo "$EditorDelegate" >&6; }
30100 else
30101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30102 $as_echo "no" >&6; }
30103 fi
30104
30105
30106 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30107 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30109 $as_echo_n "checking for $ac_word... " >&6; }
30110 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30111   $as_echo_n "(cached) " >&6
30112 else
30113   case $FIGDecodeDelegate in
30114   [\\/]* | ?:[\\/]*)
30115   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30116   ;;
30117   *)
30118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30119 for as_dir in $PATH
30120 do
30121   IFS=$as_save_IFS
30122   test -z "$as_dir" && as_dir=.
30123     for ac_exec_ext in '' $ac_executable_extensions; do
30124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30125     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30127     break 2
30128   fi
30129 done
30130   done
30131 IFS=$as_save_IFS
30132
30133   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30134   ;;
30135 esac
30136 fi
30137 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30138 if test -n "$FIGDecodeDelegate"; then
30139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30140 $as_echo "$FIGDecodeDelegate" >&6; }
30141 else
30142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30143 $as_echo "no" >&6; }
30144 fi
30145
30146
30147 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30148 set dummy "$ConvertDelegateDefault"; ac_word=$2
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30150 $as_echo_n "checking for $ac_word... " >&6; }
30151 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30152   $as_echo_n "(cached) " >&6
30153 else
30154   case $ConvertDelegate in
30155   [\\/]* | ?:[\\/]*)
30156   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30157   ;;
30158   *)
30159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160 for as_dir in $PATH
30161 do
30162   IFS=$as_save_IFS
30163   test -z "$as_dir" && as_dir=.
30164     for ac_exec_ext in '' $ac_executable_extensions; do
30165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30166     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30168     break 2
30169   fi
30170 done
30171   done
30172 IFS=$as_save_IFS
30173
30174   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30175   ;;
30176 esac
30177 fi
30178 ConvertDelegate=$ac_cv_path_ConvertDelegate
30179 if test -n "$ConvertDelegate"; then
30180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30181 $as_echo "$ConvertDelegate" >&6; }
30182 else
30183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184 $as_echo "no" >&6; }
30185 fi
30186
30187
30188 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30189 set dummy "$DisplayDelegateDefault"; ac_word=$2
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30191 $as_echo_n "checking for $ac_word... " >&6; }
30192 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30193   $as_echo_n "(cached) " >&6
30194 else
30195   case $DisplayDelegate in
30196   [\\/]* | ?:[\\/]*)
30197   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30198   ;;
30199   *)
30200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30201 for as_dir in $PATH
30202 do
30203   IFS=$as_save_IFS
30204   test -z "$as_dir" && as_dir=.
30205     for ac_exec_ext in '' $ac_executable_extensions; do
30206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30207     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30209     break 2
30210   fi
30211 done
30212   done
30213 IFS=$as_save_IFS
30214
30215   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30216   ;;
30217 esac
30218 fi
30219 DisplayDelegate=$ac_cv_path_DisplayDelegate
30220 if test -n "$DisplayDelegate"; then
30221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30222 $as_echo "$DisplayDelegate" >&6; }
30223 else
30224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30225 $as_echo "no" >&6; }
30226 fi
30227
30228
30229 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30230 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30232 $as_echo_n "checking for $ac_word... " >&6; }
30233 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30234   $as_echo_n "(cached) " >&6
30235 else
30236   case $MogrifyDelegate in
30237   [\\/]* | ?:[\\/]*)
30238   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30239   ;;
30240   *)
30241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242 for as_dir in $PATH
30243 do
30244   IFS=$as_save_IFS
30245   test -z "$as_dir" && as_dir=.
30246     for ac_exec_ext in '' $ac_executable_extensions; do
30247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30248     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30250     break 2
30251   fi
30252 done
30253   done
30254 IFS=$as_save_IFS
30255
30256   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30257   ;;
30258 esac
30259 fi
30260 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30261 if test -n "$MogrifyDelegate"; then
30262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30263 $as_echo "$MogrifyDelegate" >&6; }
30264 else
30265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30266 $as_echo "no" >&6; }
30267 fi
30268
30269
30270 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30271 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30273 $as_echo_n "checking for $ac_word... " >&6; }
30274 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30275   $as_echo_n "(cached) " >&6
30276 else
30277   case $GnuplotDecodeDelegate in
30278   [\\/]* | ?:[\\/]*)
30279   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30280   ;;
30281   *)
30282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30283 for as_dir in $PATH
30284 do
30285   IFS=$as_save_IFS
30286   test -z "$as_dir" && as_dir=.
30287     for ac_exec_ext in '' $ac_executable_extensions; do
30288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30289     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30291     break 2
30292   fi
30293 done
30294   done
30295 IFS=$as_save_IFS
30296
30297   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30298   ;;
30299 esac
30300 fi
30301 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30302 if test -n "$GnuplotDecodeDelegate"; then
30303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30304 $as_echo "$GnuplotDecodeDelegate" >&6; }
30305 else
30306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30308 fi
30309
30310
30311 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30312 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30314 $as_echo_n "checking for $ac_word... " >&6; }
30315 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30316   $as_echo_n "(cached) " >&6
30317 else
30318   case $HDRDecodeDelegate in
30319   [\\/]* | ?:[\\/]*)
30320   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30321   ;;
30322   *)
30323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30324 for as_dir in $PATH
30325 do
30326   IFS=$as_save_IFS
30327   test -z "$as_dir" && as_dir=.
30328     for ac_exec_ext in '' $ac_executable_extensions; do
30329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30330     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30332     break 2
30333   fi
30334 done
30335   done
30336 IFS=$as_save_IFS
30337
30338   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30339   ;;
30340 esac
30341 fi
30342 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30343 if test -n "$HDRDecodeDelegate"; then
30344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30345 $as_echo "$HDRDecodeDelegate" >&6; }
30346 else
30347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30348 $as_echo "no" >&6; }
30349 fi
30350
30351
30352 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30353 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30355 $as_echo_n "checking for $ac_word... " >&6; }
30356 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30357   $as_echo_n "(cached) " >&6
30358 else
30359   case $HPGLDecodeDelegate in
30360   [\\/]* | ?:[\\/]*)
30361   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30362   ;;
30363   *)
30364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30365 for as_dir in $PATH
30366 do
30367   IFS=$as_save_IFS
30368   test -z "$as_dir" && as_dir=.
30369     for ac_exec_ext in '' $ac_executable_extensions; do
30370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30371     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30373     break 2
30374   fi
30375 done
30376   done
30377 IFS=$as_save_IFS
30378
30379   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30380   ;;
30381 esac
30382 fi
30383 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30384 if test -n "$HPGLDecodeDelegate"; then
30385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30386 $as_echo "$HPGLDecodeDelegate" >&6; }
30387 else
30388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30389 $as_echo "no" >&6; }
30390 fi
30391
30392
30393 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30394 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30396 $as_echo_n "checking for $ac_word... " >&6; }
30397 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30398   $as_echo_n "(cached) " >&6
30399 else
30400   case $HTMLDecodeDelegate in
30401   [\\/]* | ?:[\\/]*)
30402   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30403   ;;
30404   *)
30405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 for as_dir in $PATH
30407 do
30408   IFS=$as_save_IFS
30409   test -z "$as_dir" && as_dir=.
30410     for ac_exec_ext in '' $ac_executable_extensions; do
30411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30414     break 2
30415   fi
30416 done
30417   done
30418 IFS=$as_save_IFS
30419
30420   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30421   ;;
30422 esac
30423 fi
30424 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30425 if test -n "$HTMLDecodeDelegate"; then
30426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30427 $as_echo "$HTMLDecodeDelegate" >&6; }
30428 else
30429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30430 $as_echo "no" >&6; }
30431 fi
30432
30433
30434 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30435 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30437 $as_echo_n "checking for $ac_word... " >&6; }
30438 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30439   $as_echo_n "(cached) " >&6
30440 else
30441   case $ILBMDecodeDelegate in
30442   [\\/]* | ?:[\\/]*)
30443   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30444   ;;
30445   *)
30446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30447 for as_dir in $PATH
30448 do
30449   IFS=$as_save_IFS
30450   test -z "$as_dir" && as_dir=.
30451     for ac_exec_ext in '' $ac_executable_extensions; do
30452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30453     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30455     break 2
30456   fi
30457 done
30458   done
30459 IFS=$as_save_IFS
30460
30461   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30462   ;;
30463 esac
30464 fi
30465 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30466 if test -n "$ILBMDecodeDelegate"; then
30467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30468 $as_echo "$ILBMDecodeDelegate" >&6; }
30469 else
30470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30471 $as_echo "no" >&6; }
30472 fi
30473
30474
30475 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30476 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30478 $as_echo_n "checking for $ac_word... " >&6; }
30479 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30480   $as_echo_n "(cached) " >&6
30481 else
30482   case $ILBMEncodeDelegate in
30483   [\\/]* | ?:[\\/]*)
30484   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30485   ;;
30486   *)
30487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488 for as_dir in $PATH
30489 do
30490   IFS=$as_save_IFS
30491   test -z "$as_dir" && as_dir=.
30492     for ac_exec_ext in '' $ac_executable_extensions; do
30493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30494     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30496     break 2
30497   fi
30498 done
30499   done
30500 IFS=$as_save_IFS
30501
30502   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30503   ;;
30504 esac
30505 fi
30506 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30507 if test -n "$ILBMEncodeDelegate"; then
30508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30509 $as_echo "$ILBMEncodeDelegate" >&6; }
30510 else
30511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30512 $as_echo "no" >&6; }
30513 fi
30514
30515
30516 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30517 set dummy "$LPDelegateDefault"; ac_word=$2
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30519 $as_echo_n "checking for $ac_word... " >&6; }
30520 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30521   $as_echo_n "(cached) " >&6
30522 else
30523   case $LPDelegate in
30524   [\\/]* | ?:[\\/]*)
30525   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30526   ;;
30527   *)
30528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30529 for as_dir in $PATH
30530 do
30531   IFS=$as_save_IFS
30532   test -z "$as_dir" && as_dir=.
30533     for ac_exec_ext in '' $ac_executable_extensions; do
30534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30535     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30537     break 2
30538   fi
30539 done
30540   done
30541 IFS=$as_save_IFS
30542
30543   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30544   ;;
30545 esac
30546 fi
30547 LPDelegate=$ac_cv_path_LPDelegate
30548 if test -n "$LPDelegate"; then
30549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30550 $as_echo "$LPDelegate" >&6; }
30551 else
30552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30553 $as_echo "no" >&6; }
30554 fi
30555
30556
30557 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30558 set dummy "$LPRDelegateDefault"; ac_word=$2
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30560 $as_echo_n "checking for $ac_word... " >&6; }
30561 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30562   $as_echo_n "(cached) " >&6
30563 else
30564   case $LPRDelegate in
30565   [\\/]* | ?:[\\/]*)
30566   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30567   ;;
30568   *)
30569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570 for as_dir in $PATH
30571 do
30572   IFS=$as_save_IFS
30573   test -z "$as_dir" && as_dir=.
30574     for ac_exec_ext in '' $ac_executable_extensions; do
30575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30576     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30578     break 2
30579   fi
30580 done
30581   done
30582 IFS=$as_save_IFS
30583
30584   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30585   ;;
30586 esac
30587 fi
30588 LPRDelegate=$ac_cv_path_LPRDelegate
30589 if test -n "$LPRDelegate"; then
30590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30591 $as_echo "$LPRDelegate" >&6; }
30592 else
30593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30594 $as_echo "no" >&6; }
30595 fi
30596
30597
30598 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30599 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30601 $as_echo_n "checking for $ac_word... " >&6; }
30602 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30603   $as_echo_n "(cached) " >&6
30604 else
30605   case $LZWDecodeDelegate in
30606   [\\/]* | ?:[\\/]*)
30607   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30608   ;;
30609   *)
30610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611 for as_dir in $PATH
30612 do
30613   IFS=$as_save_IFS
30614   test -z "$as_dir" && as_dir=.
30615     for ac_exec_ext in '' $ac_executable_extensions; do
30616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30619     break 2
30620   fi
30621 done
30622   done
30623 IFS=$as_save_IFS
30624
30625   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30626   ;;
30627 esac
30628 fi
30629 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30630 if test -n "$LZWDecodeDelegate"; then
30631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30632 $as_echo "$LZWDecodeDelegate" >&6; }
30633 else
30634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30635 $as_echo "no" >&6; }
30636 fi
30637
30638
30639 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30640 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30642 $as_echo_n "checking for $ac_word... " >&6; }
30643 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30644   $as_echo_n "(cached) " >&6
30645 else
30646   case $LZWEncodeDelegate in
30647   [\\/]* | ?:[\\/]*)
30648   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30649   ;;
30650   *)
30651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30652 for as_dir in $PATH
30653 do
30654   IFS=$as_save_IFS
30655   test -z "$as_dir" && as_dir=.
30656     for ac_exec_ext in '' $ac_executable_extensions; do
30657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30658     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30660     break 2
30661   fi
30662 done
30663   done
30664 IFS=$as_save_IFS
30665
30666   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30667   ;;
30668 esac
30669 fi
30670 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30671 if test -n "$LZWEncodeDelegate"; then
30672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30673 $as_echo "$LZWEncodeDelegate" >&6; }
30674 else
30675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30676 $as_echo "no" >&6; }
30677 fi
30678
30679
30680 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30681 set dummy "$LaunchDelegateDefault"; ac_word=$2
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30683 $as_echo_n "checking for $ac_word... " >&6; }
30684 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30685   $as_echo_n "(cached) " >&6
30686 else
30687   case $LaunchDelegate in
30688   [\\/]* | ?:[\\/]*)
30689   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30690   ;;
30691   *)
30692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30693 for as_dir in $PATH
30694 do
30695   IFS=$as_save_IFS
30696   test -z "$as_dir" && as_dir=.
30697     for ac_exec_ext in '' $ac_executable_extensions; do
30698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30699     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30701     break 2
30702   fi
30703 done
30704   done
30705 IFS=$as_save_IFS
30706
30707   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30708   ;;
30709 esac
30710 fi
30711 LaunchDelegate=$ac_cv_path_LaunchDelegate
30712 if test -n "$LaunchDelegate"; then
30713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30714 $as_echo "$LaunchDelegate" >&6; }
30715 else
30716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30717 $as_echo "no" >&6; }
30718 fi
30719
30720
30721 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30722 set dummy "$MANDelegateDefault"; ac_word=$2
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30724 $as_echo_n "checking for $ac_word... " >&6; }
30725 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30726   $as_echo_n "(cached) " >&6
30727 else
30728   case $MANDelegate in
30729   [\\/]* | ?:[\\/]*)
30730   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30731   ;;
30732   *)
30733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30734 for as_dir in $PATH
30735 do
30736   IFS=$as_save_IFS
30737   test -z "$as_dir" && as_dir=.
30738     for ac_exec_ext in '' $ac_executable_extensions; do
30739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30740     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30742     break 2
30743   fi
30744 done
30745   done
30746 IFS=$as_save_IFS
30747
30748   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30749   ;;
30750 esac
30751 fi
30752 MANDelegate=$ac_cv_path_MANDelegate
30753 if test -n "$MANDelegate"; then
30754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30755 $as_echo "$MANDelegate" >&6; }
30756 else
30757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30758 $as_echo "no" >&6; }
30759 fi
30760
30761
30762 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30763 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30765 $as_echo_n "checking for $ac_word... " >&6; }
30766 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30767   $as_echo_n "(cached) " >&6
30768 else
30769   case $MPEGDecodeDelegate in
30770   [\\/]* | ?:[\\/]*)
30771   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30772   ;;
30773   *)
30774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30775 for as_dir in $PATH
30776 do
30777   IFS=$as_save_IFS
30778   test -z "$as_dir" && as_dir=.
30779     for ac_exec_ext in '' $ac_executable_extensions; do
30780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30781     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30783     break 2
30784   fi
30785 done
30786   done
30787 IFS=$as_save_IFS
30788
30789   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30790   ;;
30791 esac
30792 fi
30793 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30794 if test -n "$MPEGDecodeDelegate"; then
30795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30796 $as_echo "$MPEGDecodeDelegate" >&6; }
30797 else
30798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799 $as_echo "no" >&6; }
30800 fi
30801
30802
30803 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30804 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30806 $as_echo_n "checking for $ac_word... " >&6; }
30807 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30808   $as_echo_n "(cached) " >&6
30809 else
30810   case $MPEGEncodeDelegate in
30811   [\\/]* | ?:[\\/]*)
30812   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30813   ;;
30814   *)
30815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816 for as_dir in $PATH
30817 do
30818   IFS=$as_save_IFS
30819   test -z "$as_dir" && as_dir=.
30820     for ac_exec_ext in '' $ac_executable_extensions; do
30821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30822     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30824     break 2
30825   fi
30826 done
30827   done
30828 IFS=$as_save_IFS
30829
30830   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30831   ;;
30832 esac
30833 fi
30834 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30835 if test -n "$MPEGEncodeDelegate"; then
30836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30837 $as_echo "$MPEGEncodeDelegate" >&6; }
30838 else
30839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30840 $as_echo "no" >&6; }
30841 fi
30842
30843
30844 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30845 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30847 $as_echo_n "checking for $ac_word... " >&6; }
30848 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30849   $as_echo_n "(cached) " >&6
30850 else
30851   case $MrSIDDecodeDelegate in
30852   [\\/]* | ?:[\\/]*)
30853   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30854   ;;
30855   *)
30856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30857 for as_dir in $PATH
30858 do
30859   IFS=$as_save_IFS
30860   test -z "$as_dir" && as_dir=.
30861     for ac_exec_ext in '' $ac_executable_extensions; do
30862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30863     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30865     break 2
30866   fi
30867 done
30868   done
30869 IFS=$as_save_IFS
30870
30871   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30872   ;;
30873 esac
30874 fi
30875 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30876 if test -n "$MrSIDDecodeDelegate"; then
30877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30878 $as_echo "$MrSIDDecodeDelegate" >&6; }
30879 else
30880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30881 $as_echo "no" >&6; }
30882 fi
30883
30884
30885 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30886 set dummy "$MVDelegateDefault"; ac_word=$2
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30888 $as_echo_n "checking for $ac_word... " >&6; }
30889 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30890   $as_echo_n "(cached) " >&6
30891 else
30892   case $MVDelegate in
30893   [\\/]* | ?:[\\/]*)
30894   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30895   ;;
30896   *)
30897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898 for as_dir in $PATH
30899 do
30900   IFS=$as_save_IFS
30901   test -z "$as_dir" && as_dir=.
30902     for ac_exec_ext in '' $ac_executable_extensions; do
30903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30904     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30906     break 2
30907   fi
30908 done
30909   done
30910 IFS=$as_save_IFS
30911
30912   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30913   ;;
30914 esac
30915 fi
30916 MVDelegate=$ac_cv_path_MVDelegate
30917 if test -n "$MVDelegate"; then
30918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30919 $as_echo "$MVDelegate" >&6; }
30920 else
30921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30922 $as_echo "no" >&6; }
30923 fi
30924
30925
30926 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30927 set dummy "$PCLDelegateDefault"; ac_word=$2
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30929 $as_echo_n "checking for $ac_word... " >&6; }
30930 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30931   $as_echo_n "(cached) " >&6
30932 else
30933   case $PCLDelegate in
30934   [\\/]* | ?:[\\/]*)
30935   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30936   ;;
30937   *)
30938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30939 for as_dir in $PATH
30940 do
30941   IFS=$as_save_IFS
30942   test -z "$as_dir" && as_dir=.
30943     for ac_exec_ext in '' $ac_executable_extensions; do
30944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30945     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30947     break 2
30948   fi
30949 done
30950   done
30951 IFS=$as_save_IFS
30952
30953   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30954   ;;
30955 esac
30956 fi
30957 PCLDelegate=$ac_cv_path_PCLDelegate
30958 if test -n "$PCLDelegate"; then
30959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30960 $as_echo "$PCLDelegate" >&6; }
30961 else
30962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30963 $as_echo "no" >&6; }
30964 fi
30965
30966
30967 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30968 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30970 $as_echo_n "checking for $ac_word... " >&6; }
30971 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30972   $as_echo_n "(cached) " >&6
30973 else
30974   case $PGPDecodeDelegate in
30975   [\\/]* | ?:[\\/]*)
30976   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30977   ;;
30978   *)
30979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30980 for as_dir in $PATH
30981 do
30982   IFS=$as_save_IFS
30983   test -z "$as_dir" && as_dir=.
30984     for ac_exec_ext in '' $ac_executable_extensions; do
30985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30986     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30988     break 2
30989   fi
30990 done
30991   done
30992 IFS=$as_save_IFS
30993
30994   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30995   ;;
30996 esac
30997 fi
30998 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30999 if test -n "$PGPDecodeDelegate"; then
31000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31001 $as_echo "$PGPDecodeDelegate" >&6; }
31002 else
31003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31004 $as_echo "no" >&6; }
31005 fi
31006
31007
31008 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31009 set dummy "$POVDelegateDefault"; ac_word=$2
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31011 $as_echo_n "checking for $ac_word... " >&6; }
31012 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31013   $as_echo_n "(cached) " >&6
31014 else
31015   case $POVDelegate in
31016   [\\/]* | ?:[\\/]*)
31017   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31018   ;;
31019   *)
31020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31021 for as_dir in $PATH
31022 do
31023   IFS=$as_save_IFS
31024   test -z "$as_dir" && as_dir=.
31025     for ac_exec_ext in '' $ac_executable_extensions; do
31026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31027     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31029     break 2
31030   fi
31031 done
31032   done
31033 IFS=$as_save_IFS
31034
31035   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31036   ;;
31037 esac
31038 fi
31039 POVDelegate=$ac_cv_path_POVDelegate
31040 if test -n "$POVDelegate"; then
31041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31042 $as_echo "$POVDelegate" >&6; }
31043 else
31044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31045 $as_echo "no" >&6; }
31046 fi
31047
31048
31049 for ac_prog in gsx gsc "$PSDelegateDefault"
31050 do
31051   # Extract the first word of "$ac_prog", so it can be a program name with args.
31052 set dummy $ac_prog; ac_word=$2
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31054 $as_echo_n "checking for $ac_word... " >&6; }
31055 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31056   $as_echo_n "(cached) " >&6
31057 else
31058   case $PSDelegate in
31059   [\\/]* | ?:[\\/]*)
31060   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31061   ;;
31062   *)
31063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31064 for as_dir in $PATH
31065 do
31066   IFS=$as_save_IFS
31067   test -z "$as_dir" && as_dir=.
31068     for ac_exec_ext in '' $ac_executable_extensions; do
31069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31070     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31072     break 2
31073   fi
31074 done
31075   done
31076 IFS=$as_save_IFS
31077
31078   ;;
31079 esac
31080 fi
31081 PSDelegate=$ac_cv_path_PSDelegate
31082 if test -n "$PSDelegate"; then
31083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31084 $as_echo "$PSDelegate" >&6; }
31085 else
31086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31087 $as_echo "no" >&6; }
31088 fi
31089
31090
31091   test -n "$PSDelegate" && break
31092 done
31093 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31094
31095 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31096 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31098 $as_echo_n "checking for $ac_word... " >&6; }
31099 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31100   $as_echo_n "(cached) " >&6
31101 else
31102   case $RLEEncodeDelegate in
31103   [\\/]* | ?:[\\/]*)
31104   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31105   ;;
31106   *)
31107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108 for as_dir in $PATH
31109 do
31110   IFS=$as_save_IFS
31111   test -z "$as_dir" && as_dir=.
31112     for ac_exec_ext in '' $ac_executable_extensions; do
31113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31116     break 2
31117   fi
31118 done
31119   done
31120 IFS=$as_save_IFS
31121
31122   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31123   ;;
31124 esac
31125 fi
31126 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31127 if test -n "$RLEEncodeDelegate"; then
31128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31129 $as_echo "$RLEEncodeDelegate" >&6; }
31130 else
31131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31132 $as_echo "no" >&6; }
31133 fi
31134
31135
31136 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31137 set dummy "$RMDelegateDefault"; ac_word=$2
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31139 $as_echo_n "checking for $ac_word... " >&6; }
31140 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31141   $as_echo_n "(cached) " >&6
31142 else
31143   case $RMDelegate in
31144   [\\/]* | ?:[\\/]*)
31145   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31146   ;;
31147   *)
31148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149 for as_dir in $PATH
31150 do
31151   IFS=$as_save_IFS
31152   test -z "$as_dir" && as_dir=.
31153     for ac_exec_ext in '' $ac_executable_extensions; do
31154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31155     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31157     break 2
31158   fi
31159 done
31160   done
31161 IFS=$as_save_IFS
31162
31163   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31164   ;;
31165 esac
31166 fi
31167 RMDelegate=$ac_cv_path_RMDelegate
31168 if test -n "$RMDelegate"; then
31169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31170 $as_echo "$RMDelegate" >&6; }
31171 else
31172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31174 fi
31175
31176
31177 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31178 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31180 $as_echo_n "checking for $ac_word... " >&6; }
31181 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31182   $as_echo_n "(cached) " >&6
31183 else
31184   case $RSVGDecodeDelegate in
31185   [\\/]* | ?:[\\/]*)
31186   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31187   ;;
31188   *)
31189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190 for as_dir in $PATH
31191 do
31192   IFS=$as_save_IFS
31193   test -z "$as_dir" && as_dir=.
31194     for ac_exec_ext in '' $ac_executable_extensions; do
31195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31196     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31198     break 2
31199   fi
31200 done
31201   done
31202 IFS=$as_save_IFS
31203
31204   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31205   ;;
31206 esac
31207 fi
31208 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31209 if test -n "$RSVGDecodeDelegate"; then
31210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31211 $as_echo "$RSVGDecodeDelegate" >&6; }
31212 else
31213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31214 $as_echo "no" >&6; }
31215 fi
31216
31217
31218 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31219 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31221 $as_echo_n "checking for $ac_word... " >&6; }
31222 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31223   $as_echo_n "(cached) " >&6
31224 else
31225   case $SCANDecodeDelegate in
31226   [\\/]* | ?:[\\/]*)
31227   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31228   ;;
31229   *)
31230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231 for as_dir in $PATH
31232 do
31233   IFS=$as_save_IFS
31234   test -z "$as_dir" && as_dir=.
31235     for ac_exec_ext in '' $ac_executable_extensions; do
31236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31237     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31239     break 2
31240   fi
31241 done
31242   done
31243 IFS=$as_save_IFS
31244
31245   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31246   ;;
31247 esac
31248 fi
31249 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31250 if test -n "$SCANDecodeDelegate"; then
31251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31252 $as_echo "$SCANDecodeDelegate" >&6; }
31253 else
31254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31255 $as_echo "no" >&6; }
31256 fi
31257
31258
31259 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31260 set dummy "$TXTDelegateDefault"; ac_word=$2
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31262 $as_echo_n "checking for $ac_word... " >&6; }
31263 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31264   $as_echo_n "(cached) " >&6
31265 else
31266   case $TXTDelegate in
31267   [\\/]* | ?:[\\/]*)
31268   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31269   ;;
31270   *)
31271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31272 for as_dir in $PATH
31273 do
31274   IFS=$as_save_IFS
31275   test -z "$as_dir" && as_dir=.
31276     for ac_exec_ext in '' $ac_executable_extensions; do
31277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31278     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31280     break 2
31281   fi
31282 done
31283   done
31284 IFS=$as_save_IFS
31285
31286   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31287   ;;
31288 esac
31289 fi
31290 TXTDelegate=$ac_cv_path_TXTDelegate
31291 if test -n "$TXTDelegate"; then
31292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31293 $as_echo "$TXTDelegate" >&6; }
31294 else
31295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31297 fi
31298
31299
31300 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31301 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31303 $as_echo_n "checking for $ac_word... " >&6; }
31304 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31305   $as_echo_n "(cached) " >&6
31306 else
31307   case $UniconvertorDelegate in
31308   [\\/]* | ?:[\\/]*)
31309   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31310   ;;
31311   *)
31312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313 for as_dir in $PATH
31314 do
31315   IFS=$as_save_IFS
31316   test -z "$as_dir" && as_dir=.
31317     for ac_exec_ext in '' $ac_executable_extensions; do
31318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31319     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31321     break 2
31322   fi
31323 done
31324   done
31325 IFS=$as_save_IFS
31326
31327   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31328   ;;
31329 esac
31330 fi
31331 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31332 if test -n "$UniconvertorDelegate"; then
31333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31334 $as_echo "$UniconvertorDelegate" >&6; }
31335 else
31336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31337 $as_echo "no" >&6; }
31338 fi
31339
31340
31341 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31342 set dummy "$WEBPDelegateDefault"; ac_word=$2
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31344 $as_echo_n "checking for $ac_word... " >&6; }
31345 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31346   $as_echo_n "(cached) " >&6
31347 else
31348   case $WEBPDelegate in
31349   [\\/]* | ?:[\\/]*)
31350   ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31351   ;;
31352   *)
31353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31354 for as_dir in $PATH
31355 do
31356   IFS=$as_save_IFS
31357   test -z "$as_dir" && as_dir=.
31358     for ac_exec_ext in '' $ac_executable_extensions; do
31359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31360     ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31362     break 2
31363   fi
31364 done
31365   done
31366 IFS=$as_save_IFS
31367
31368   test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31369   ;;
31370 esac
31371 fi
31372 WEBPDelegate=$ac_cv_path_WEBPDelegate
31373 if test -n "$WEBPDelegate"; then
31374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31375 $as_echo "$WEBPDelegate" >&6; }
31376 else
31377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31378 $as_echo "no" >&6; }
31379 fi
31380
31381
31382 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31383 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31385 $as_echo_n "checking for $ac_word... " >&6; }
31386 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31387   $as_echo_n "(cached) " >&6
31388 else
31389   case $WMFDecodeDelegate in
31390   [\\/]* | ?:[\\/]*)
31391   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31392   ;;
31393   *)
31394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395 for as_dir in $PATH
31396 do
31397   IFS=$as_save_IFS
31398   test -z "$as_dir" && as_dir=.
31399     for ac_exec_ext in '' $ac_executable_extensions; do
31400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31403     break 2
31404   fi
31405 done
31406   done
31407 IFS=$as_save_IFS
31408
31409   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31410   ;;
31411 esac
31412 fi
31413 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31414 if test -n "$WMFDecodeDelegate"; then
31415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31416 $as_echo "$WMFDecodeDelegate" >&6; }
31417 else
31418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31419 $as_echo "no" >&6; }
31420 fi
31421
31422
31423 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31424 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31426 $as_echo_n "checking for $ac_word... " >&6; }
31427 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31428   $as_echo_n "(cached) " >&6
31429 else
31430   case $WWWDecodeDelegate in
31431   [\\/]* | ?:[\\/]*)
31432   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31433   ;;
31434   *)
31435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436 for as_dir in $PATH
31437 do
31438   IFS=$as_save_IFS
31439   test -z "$as_dir" && as_dir=.
31440     for ac_exec_ext in '' $ac_executable_extensions; do
31441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31444     break 2
31445   fi
31446 done
31447   done
31448 IFS=$as_save_IFS
31449
31450   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31451   ;;
31452 esac
31453 fi
31454 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31455 if test -n "$WWWDecodeDelegate"; then
31456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31457 $as_echo "$WWWDecodeDelegate" >&6; }
31458 else
31459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31460 $as_echo "no" >&6; }
31461 fi
31462
31463
31464 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31465 set dummy "$XPSDelegateDefault"; ac_word=$2
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31467 $as_echo_n "checking for $ac_word... " >&6; }
31468 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31469   $as_echo_n "(cached) " >&6
31470 else
31471   case $XPSDelegate in
31472   [\\/]* | ?:[\\/]*)
31473   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31474   ;;
31475   *)
31476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31477 for as_dir in $PATH
31478 do
31479   IFS=$as_save_IFS
31480   test -z "$as_dir" && as_dir=.
31481     for ac_exec_ext in '' $ac_executable_extensions; do
31482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31483     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31485     break 2
31486   fi
31487 done
31488   done
31489 IFS=$as_save_IFS
31490
31491   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31492   ;;
31493 esac
31494 fi
31495 XPSDelegate=$ac_cv_path_XPSDelegate
31496 if test -n "$XPSDelegate"; then
31497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31498 $as_echo "$XPSDelegate" >&6; }
31499 else
31500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31502 fi
31503
31504
31505 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31506 set dummy "$ZipDelegateDefault"; ac_word=$2
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31508 $as_echo_n "checking for $ac_word... " >&6; }
31509 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31510   $as_echo_n "(cached) " >&6
31511 else
31512   case $ZipDelegate in
31513   [\\/]* | ?:[\\/]*)
31514   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31515   ;;
31516   *)
31517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518 for as_dir in $PATH
31519 do
31520   IFS=$as_save_IFS
31521   test -z "$as_dir" && as_dir=.
31522     for ac_exec_ext in '' $ac_executable_extensions; do
31523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31526     break 2
31527   fi
31528 done
31529   done
31530 IFS=$as_save_IFS
31531
31532   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31533   ;;
31534 esac
31535 fi
31536 ZipDelegate=$ac_cv_path_ZipDelegate
31537 if test -n "$ZipDelegate"; then
31538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31539 $as_echo "$ZipDelegate" >&6; }
31540 else
31541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31542 $as_echo "no" >&6; }
31543 fi
31544
31545
31546
31547 # Prefer lpr to lp; lp needs options tacked on.
31548 if test "$LPRDelegate" != no; then
31549     PrintDelegate="$LPRDelegate"
31550 else
31551     PrintDelegate="$LPDelegate -c -s"
31552 fi
31553
31554
31555 # Installed ImageMagick utiltity paths
31556 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31557 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31558 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31559
31560 # Set delegate booleans
31561 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31562 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31563 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31564 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31565 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31566 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31567 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31568 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31569 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31570 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31571 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31572
31573 #
31574 # Test for font directories
31575 #
31576 type_include_files=''
31577
31578 # Dejavu fonts.
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31580 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31581 dejavu_font_dir=''
31582 if test "${with_dejavu_font_dir}" != 'default'; then
31583   dejavu_font_dir="${with_dejavu_font_dir}/"
31584 else
31585   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31586     if test -f "${font_dir}DejaVuSerif.ttf"; then
31587       dejavu_font_dir="${font_dir}"
31588       break 1
31589     fi
31590   done
31591 fi
31592 if test "${dejavu_font_dir}x" != 'x'; then
31593   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31595 $as_echo "$dejavu_font_dir" >&6; }
31596 else
31597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31598 $as_echo "not found!" >&6; };
31599 fi
31600
31601
31602 # Windows
31603 windows_font_dir=''
31604 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31605    windows_font_dir="${with_windows_font_dir}/"
31606 fi
31607 if test "${windows_font_dir}x" != 'x'; then
31608     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31609       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31610     fi
31611     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31612       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31613     fi
31614     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31615       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31616     fi
31617 fi
31618 if test "${windows_font_dir}x" != 'x'; then
31619   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31620 fi
31621
31622
31623 # Ghostscript
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31625 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31626 ghostscript_font_dir=''
31627 if test "${with_gs_font_dir}" != 'default'; then
31628   ghostscript_font_dir="${with_gs_font_dir}/"
31629 else
31630   if test "${native_win32_build}" = 'yes'; then
31631     # Native Windows Build
31632     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31633       if test -f "${font_dir}a010013l.pfb"; then
31634         ghostscript_font_dir="$font_dir"
31635         break 1
31636       fi
31637     done
31638     if test "${PSDelegate}" != 'gswin32c'; then
31639       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31640     fi
31641   else
31642     # Linux / Mac OS X / Unix Build
31643     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
31644       if test -f "${font_dir}a010013l.pfb"; then
31645         ghostscript_font_dir="${font_dir}"
31646         break 1
31647       fi
31648     done
31649     if test "${ghostscript_font_dir}x" = 'x'; then
31650       if test "$PSDelegate" != 'gs'; then
31651         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31652       fi
31653     fi
31654   fi
31655 fi
31656 if test "${ghostscript_font_dir}x" != 'x'; then
31657   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31659 $as_echo "$ghostscript_font_dir" >&6; }
31660 else
31661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31662 $as_echo "not found!" >&6; };
31663 fi
31664
31665 case "${build_os}" in
31666   mingw* )
31667     PSDelegate=`$WinPathScript "$PSDelegate" 1`
31668     ;;
31669 esac
31670
31671
31672
31673 #
31674 # Handle case where user doesn't want frozen paths
31675 #
31676 if test "$with_frozenpaths" != 'yes'; then
31677   # Re-set delegate definitions to default (no paths)
31678   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31679   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31680   BZIPDelegate="$BZIPDelegateDefault"
31681   BrowseDelegate="$BrowseDelegateDefault"
31682   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31683   CatDelegate="$CatDelegateDefault"
31684   ConvertDelegate="$ConvertDelegateDefault"
31685   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31686   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31687   EchoDelegate="$EchoDelegateDefault"
31688   EditorDelegate="$EditorDelegateDefault"
31689   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31690   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31691   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31692   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31693   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31694   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31695   LPDelegate="$LPDelegateDefault"
31696   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31697   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31698   LaunchDelegate="$LaunchDelegateDefault"
31699   MANDelegate="$MANDelegateDefault"
31700   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31701   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31702   MogrifyDelegate="$MogrifyDelegateDefault"
31703   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31704   MVDelegate="$MVDelegateDefault"
31705   PCLDelegate="$PCLDelegateDefault"
31706   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31707   POVDelegate="$POVDelegateDefault"
31708   PSDelegate="$PSDelegateDefault"
31709   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31710   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31711   RMDelegate="$RMDelegateDefault"
31712   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31713   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31714   ShowImageDelegate="$ShowImageDelegateDefault"
31715   TXTDelegate="$TXTDelegateDefault"
31716   UniconvertorDelegate="$UniconvertorDelegateDefault"
31717   WEBPDelegate="$WEBPDelegateDefault"
31718   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31719   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31720   XPSDelegate="$XPSDelegateDefault"
31721   ZipDelegate="$ZipDelegateDefault"
31722 fi
31723
31724 # Delegate substitutions
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769 #
31770 # RPM support.
31771 #
31772 RPM=''
31773 for ac_prog in gnutar gtar tar
31774 do
31775   # Extract the first word of "$ac_prog", so it can be a program name with args.
31776 set dummy $ac_prog; ac_word=$2
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31778 $as_echo_n "checking for $ac_word... " >&6; }
31779 if test "${ac_cv_prog_TAR+set}" = set; then :
31780   $as_echo_n "(cached) " >&6
31781 else
31782   if test -n "$TAR"; then
31783   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31784 else
31785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31786 for as_dir in $PATH
31787 do
31788   IFS=$as_save_IFS
31789   test -z "$as_dir" && as_dir=.
31790     for ac_exec_ext in '' $ac_executable_extensions; do
31791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31792     ac_cv_prog_TAR="$ac_prog"
31793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31794     break 2
31795   fi
31796 done
31797   done
31798 IFS=$as_save_IFS
31799
31800 fi
31801 fi
31802 TAR=$ac_cv_prog_TAR
31803 if test -n "$TAR"; then
31804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31805 $as_echo "$TAR" >&6; }
31806 else
31807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31808 $as_echo "no" >&6; }
31809 fi
31810
31811
31812   test -n "$TAR" && break
31813 done
31814
31815 for ac_prog in perl
31816 do
31817   # Extract the first word of "$ac_prog", so it can be a program name with args.
31818 set dummy $ac_prog; ac_word=$2
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31820 $as_echo_n "checking for $ac_word... " >&6; }
31821 if test "${ac_cv_prog_PERL+set}" = set; then :
31822   $as_echo_n "(cached) " >&6
31823 else
31824   if test -n "$PERL"; then
31825   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31826 else
31827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31828 for as_dir in $PATH
31829 do
31830   IFS=$as_save_IFS
31831   test -z "$as_dir" && as_dir=.
31832     for ac_exec_ext in '' $ac_executable_extensions; do
31833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31834     ac_cv_prog_PERL="$ac_prog"
31835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31836     break 2
31837   fi
31838 done
31839   done
31840 IFS=$as_save_IFS
31841
31842 fi
31843 fi
31844 PERL=$ac_cv_prog_PERL
31845 if test -n "$PERL"; then
31846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31847 $as_echo "$PERL" >&6; }
31848 else
31849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31850 $as_echo "no" >&6; }
31851 fi
31852
31853
31854   test -n "$PERL" && break
31855 done
31856
31857 for ac_prog in rpmbuild rpm
31858 do
31859   # Extract the first word of "$ac_prog", so it can be a program name with args.
31860 set dummy $ac_prog; ac_word=$2
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31862 $as_echo_n "checking for $ac_word... " >&6; }
31863 if test "${ac_cv_prog_RPM+set}" = set; then :
31864   $as_echo_n "(cached) " >&6
31865 else
31866   if test -n "$RPM"; then
31867   ac_cv_prog_RPM="$RPM" # Let the user override the test.
31868 else
31869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31870 for as_dir in $PATH
31871 do
31872   IFS=$as_save_IFS
31873   test -z "$as_dir" && as_dir=.
31874     for ac_exec_ext in '' $ac_executable_extensions; do
31875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31876     ac_cv_prog_RPM="$ac_prog"
31877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31878     break 2
31879   fi
31880 done
31881   done
31882 IFS=$as_save_IFS
31883
31884 fi
31885 fi
31886 RPM=$ac_cv_prog_RPM
31887 if test -n "$RPM"; then
31888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31889 $as_echo "$RPM" >&6; }
31890 else
31891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31892 $as_echo "no" >&6; }
31893 fi
31894
31895
31896   test -n "$RPM" && break
31897 done
31898
31899
31900 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31901
31902
31903 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31904
31905
31906 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31907
31908
31909 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31910
31911
31912  if test "x$RPM" != "x" ; then
31913   RPM_DELEGATE_TRUE=
31914   RPM_DELEGATE_FALSE='#'
31915 else
31916   RPM_DELEGATE_TRUE='#'
31917   RPM_DELEGATE_FALSE=
31918 fi
31919
31920
31921 #
31922 # 7ZIP support (http://p7zip.sourceforge.net/)
31923 #
31924 P7ZIP=''
31925 for ac_prog in 7za
31926 do
31927   # Extract the first word of "$ac_prog", so it can be a program name with args.
31928 set dummy $ac_prog; ac_word=$2
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31930 $as_echo_n "checking for $ac_word... " >&6; }
31931 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31932   $as_echo_n "(cached) " >&6
31933 else
31934   if test -n "$P7ZIP"; then
31935   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31936 else
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938 for as_dir in $PATH
31939 do
31940   IFS=$as_save_IFS
31941   test -z "$as_dir" && as_dir=.
31942     for ac_exec_ext in '' $ac_executable_extensions; do
31943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944     ac_cv_prog_P7ZIP="$ac_prog"
31945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31946     break 2
31947   fi
31948 done
31949   done
31950 IFS=$as_save_IFS
31951
31952 fi
31953 fi
31954 P7ZIP=$ac_cv_prog_P7ZIP
31955 if test -n "$P7ZIP"; then
31956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31957 $as_echo "$P7ZIP" >&6; }
31958 else
31959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31960 $as_echo "no" >&6; }
31961 fi
31962
31963
31964   test -n "$P7ZIP" && break
31965 done
31966
31967
31968  if test "x$P7ZIP" != "x" ; then
31969   P7ZIP_DELEGATE_TRUE=
31970   P7ZIP_DELEGATE_FALSE='#'
31971 else
31972   P7ZIP_DELEGATE_TRUE='#'
31973   P7ZIP_DELEGATE_FALSE=
31974 fi
31975
31976
31977 #
31978 # ZIP support (http://www.info-zip.org/Zip.html)
31979 #
31980 ZIP=''
31981 for ac_prog in zip
31982 do
31983   # Extract the first word of "$ac_prog", so it can be a program name with args.
31984 set dummy $ac_prog; ac_word=$2
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31986 $as_echo_n "checking for $ac_word... " >&6; }
31987 if test "${ac_cv_prog_ZIP+set}" = set; then :
31988   $as_echo_n "(cached) " >&6
31989 else
31990   if test -n "$ZIP"; then
31991   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31992 else
31993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31994 for as_dir in $PATH
31995 do
31996   IFS=$as_save_IFS
31997   test -z "$as_dir" && as_dir=.
31998     for ac_exec_ext in '' $ac_executable_extensions; do
31999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32000     ac_cv_prog_ZIP="$ac_prog"
32001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32002     break 2
32003   fi
32004 done
32005   done
32006 IFS=$as_save_IFS
32007
32008 fi
32009 fi
32010 ZIP=$ac_cv_prog_ZIP
32011 if test -n "$ZIP"; then
32012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32013 $as_echo "$ZIP" >&6; }
32014 else
32015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32016 $as_echo "no" >&6; }
32017 fi
32018
32019
32020   test -n "$ZIP" && break
32021 done
32022
32023
32024  if test "x$ZIP" != "x" ; then
32025   ZIP_DELEGATE_TRUE=
32026   ZIP_DELEGATE_FALSE='#'
32027 else
32028   ZIP_DELEGATE_TRUE='#'
32029   ZIP_DELEGATE_FALSE=
32030 fi
32031
32032
32033 #
32034 # GhostPCL related configuration.
32035 #
32036 PCLColorDevice=ppmraw
32037 PCLCMYKDevice=bmpsep8
32038 PCLMonoDevice=pbmraw
32039 if test -z "$PCLVersion"; then
32040     PCLVersion='unknown'
32041 fi
32042 if test $have_pcl = 'yes'; then
32043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32044 $as_echo "-------------------------------------------------------------" >&6; }
32045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32046 $as_echo_n "checking for PCL... " >&6; }
32047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32048 $as_echo "" >&6; }
32049     # PCLColorDevice
32050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32051 $as_echo_n "checking for pcl color device... " >&6; }
32052     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32053         :
32054     else
32055         PCLColorDevice=ppmraw
32056     fi
32057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32058 $as_echo "$PCLColorDevice" >&6; }
32059
32060     # PCLCMYKDevice
32061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32062 $as_echo_n "checking for pcl CMYK device... " >&6; }
32063     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32064         :
32065     else
32066         PCLCMYKDevice=$PCLColorDevice
32067     fi
32068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32069 $as_echo "$PCLCMYKDevice" >&6; }
32070
32071     # PCLMonoDevice
32072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32073 $as_echo_n "checking for pcl mono device... " >&6; }
32074     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32075         :
32076     else
32077         PCLMonoDevice=$PCLColorDevice
32078     fi
32079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32080 $as_echo "$PCLMonoDevice" >&6; }
32081 fi
32082
32083
32084
32085
32086
32087
32088 #
32089 # GhostXPS related configuration.
32090 #
32091 XPSColorDevice=ppmraw
32092 XPSCMYKDevice=bmpsep8
32093 XPSMonoDevice=pbmraw
32094 if test -z "$XPSVersion"; then
32095     XPSVersion='unknown'
32096 fi
32097 if test $have_xps = 'yes'; then
32098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32099 $as_echo "-------------------------------------------------------------" >&6; }
32100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32101 $as_echo_n "checking for XPS... " >&6; }
32102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32103 $as_echo "" >&6; }
32104     # XPSColorDevice
32105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32106 $as_echo_n "checking for xps color device... " >&6; }
32107     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32108         :
32109     else
32110         XPSColorDevice=ppmraw
32111     fi
32112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32113 $as_echo "$XPSColorDevice" >&6; }
32114
32115     # XPSCMYKDevice
32116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32117 $as_echo_n "checking for xps CMYK device... " >&6; }
32118     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32119         :
32120     else
32121         XPSCMYKDevice=$XPSColorDevice
32122     fi
32123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32124 $as_echo "$XPSCMYKDevice" >&6; }
32125
32126     # XPSMonoDevice
32127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32128 $as_echo_n "checking for xps mono device... " >&6; }
32129     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32130         :
32131     else
32132         XPSMonoDevice=$XPSColorDevice
32133     fi
32134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32135 $as_echo "$XPSMonoDevice" >&6; }
32136 fi
32137
32138
32139
32140
32141
32142
32143 #
32144 # Ghostscript related configuration.
32145 #
32146 if test "$have_png" = 'yes'; then
32147     GSAlphaDevice=pngalpha
32148 else
32149     GSAlphaDevice=pnmraw
32150 fi
32151 GSColorDevice=pnmraw
32152 GSCMYKDevice=pam
32153 GSMonoDevice=pbmraw
32154 GSPDFDevice=pdfwrite
32155 GSPSDevice=pswrite
32156 GSEPSDevice=epswrite
32157 GSVersion='unknown'
32158 if test $have_gs = 'yes'; then
32159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32160 $as_echo "-------------------------------------------------------------" >&6; }
32161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32162 $as_echo_n "checking for Ghostscript... " >&6; }
32163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32164 $as_echo "" >&6; }
32165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32166 $as_echo_n "checking for Ghostscript version... " >&6; }
32167     if GSVersion=`$PSDelegate --version`; then
32168         :
32169     else
32170         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32171     fi
32172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32173 $as_echo "$GSVersion" >&6; }
32174
32175     # GSAlphaDevice
32176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32177 $as_echo_n "checking for gs alpha device... " >&6; }
32178     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32179         :
32180     else
32181         GSAlphaDevice=pnmraw
32182     fi
32183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32184 $as_echo "$GSAlphaDevice" >&6; }
32185
32186     # GSColorDevice
32187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32188 $as_echo_n "checking for gs color device... " >&6; }
32189     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32190         :
32191     else
32192         GSColorDevice=pnmraw
32193     fi
32194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32195 $as_echo "$GSColorDevice" >&6; }
32196
32197     # GSCMYKDevice
32198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32199 $as_echo_n "checking for gs CMYK device... " >&6; }
32200     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32201         :
32202     else
32203         GSCMYKDevice=bmpsep8
32204     fi
32205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32206 $as_echo "$GSCMYKDevice" >&6; }
32207
32208     # GSMonoDevice
32209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32210 $as_echo_n "checking for gs mono device... " >&6; }
32211     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32212         :
32213     else
32214         GSMonoDevice=$GSColorDevice
32215     fi
32216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32217 $as_echo "$GSMonoDevice" >&6; }
32218
32219     # GSPDFDevice
32220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32221 $as_echo_n "checking for gs PDF writing device... " >&6; }
32222     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32223         :
32224     else
32225         GSPDFDevice=nodevice
32226     fi
32227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32228 $as_echo "$GSPDFDevice" >&6; }
32229
32230     # GSPSDevice
32231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32232 $as_echo_n "checking for gs PS writing device... " >&6; }
32233     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32234         :
32235     else
32236         GSPSDevice=nodevice
32237     fi
32238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32239 $as_echo "$GSPSDevice" >&6; }
32240
32241     # GSEPSDevice
32242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32243 $as_echo_n "checking for gs EPS writing device... " >&6; }
32244     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32245         :
32246     else
32247         GSEPSDevice=nodevice
32248     fi
32249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32250 $as_echo "$GSEPSDevice" >&6; }
32251 fi
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262 #
32263 # PerlMagick-related configuration
32264 #
32265
32266 # Look for PERL if PerlMagick requested
32267 # If name/path of desired PERL interpreter is specified, look for that one first
32268 have_perl='no'
32269 if test "$with_perl" != 'no'; then
32270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32271 $as_echo "-------------------------------------------------------------" >&6; }
32272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32273 $as_echo_n "checking for Perl... " >&6; }
32274     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32275 $as_echo "" >&6; }
32276     if test "$with_perl" != 'yes'; then
32277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32278 $as_echo_n "checking for perl... " >&6; }
32279 if test "${ac_cv_path_PERL+set}" = set; then :
32280   $as_echo_n "(cached) " >&6
32281 else
32282   ac_cv_path_PERL="$with_perl"
32283 fi
32284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32285 $as_echo "$ac_cv_path_PERL" >&6; };
32286         PERL=$ac_cv_path_PERL
32287                 have_perl="$ac_cv_path_PERL"
32288     else
32289         for ac_prog in perl perl5
32290 do
32291   # Extract the first word of "$ac_prog", so it can be a program name with args.
32292 set dummy $ac_prog; ac_word=$2
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32294 $as_echo_n "checking for $ac_word... " >&6; }
32295 if test "${ac_cv_path_PERL+set}" = set; then :
32296   $as_echo_n "(cached) " >&6
32297 else
32298   case $PERL in
32299   [\\/]* | ?:[\\/]*)
32300   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32301   ;;
32302   *)
32303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32304 for as_dir in $PATH
32305 do
32306   IFS=$as_save_IFS
32307   test -z "$as_dir" && as_dir=.
32308     for ac_exec_ext in '' $ac_executable_extensions; do
32309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32310     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32312     break 2
32313   fi
32314 done
32315   done
32316 IFS=$as_save_IFS
32317
32318   ;;
32319 esac
32320 fi
32321 PERL=$ac_cv_path_PERL
32322 if test -n "$PERL"; then
32323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32324 $as_echo "$PERL" >&6; }
32325 else
32326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32327 $as_echo "no" >&6; }
32328 fi
32329
32330
32331   test -n "$PERL" && break
32332 done
32333         if test "$ac_cv_path_PERL"; then
32334             have_perl="$ac_cv_path_PERL"
32335         fi
32336     fi
32337 fi
32338
32339 if test "$with_perl" != 'yes' ; then
32340     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32341 fi
32342
32343 PERL_SUPPORTS_DESTDIR='no'
32344
32345 with_perl_static='no'
32346 with_perl_dynamic='no'
32347 if test "$have_perl" != 'no'; then
32348     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32349         with_perl_static='yes'
32350     fi
32351     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32352         with_perl_dynamic='yes'
32353     fi
32354     # Is PERL's MakeMaker new enough to support DESTDIR?
32355
32356
32357
32358
32359     if test -n "$PERL"; then :
32360
32361         ax_perl_version="5.8.1"
32362
32363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32364 $as_echo_n "checking for perl version... " >&6; }
32365
32366         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32367
32368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32369 $as_echo "$perl_version" >&6; }
32370
32371         PERL_VERSION=$perl_version
32372
32373
32374
32375
32376
32377   # Used to indicate true or false condition
32378   ax_compare_version=false
32379
32380   # Convert the two version strings to be compared into a format that
32381   # allows a simple string comparison.  The end result is that a version
32382   # string of the form 1.12.5-r617 will be converted to the form
32383   # 0001001200050617.  In other words, each number is zero padded to four
32384   # digits, and non digits are removed.
32385
32386   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32387                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32388                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32389                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32390                      -e 's/[^0-9]//g'`
32391
32392
32393   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32394                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32395                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32396                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32397                      -e 's/[^0-9]//g'`
32398
32399
32400     ax_compare_version=`echo "x$ax_compare_version_A
32401 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32402
32403
32404
32405     if test "$ax_compare_version" = "true" ; then
32406
32407             :
32408             PERL_SUPPORTS_DESTDIR='yes'
32409
32410     else
32411             :
32412             PERL_SUPPORTS_DESTDIR='no'
32413
32414   fi
32415
32416
32417 else
32418
32419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32420 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32421         PERL_SUPPORTS_DESTDIR='no'
32422
32423 fi
32424
32425 fi
32426  if test "$have_perl" != 'no'; then
32427   WITH_PERL_TRUE=
32428   WITH_PERL_FALSE='#'
32429 else
32430   WITH_PERL_TRUE='#'
32431   WITH_PERL_FALSE=
32432 fi
32433
32434  if test $with_perl_static = 'yes'; then
32435   WITH_PERL_STATIC_TRUE=
32436   WITH_PERL_STATIC_FALSE='#'
32437 else
32438   WITH_PERL_STATIC_TRUE='#'
32439   WITH_PERL_STATIC_FALSE=
32440 fi
32441
32442  if test $with_perl_dynamic = 'yes'; then
32443   WITH_PERL_DYNAMIC_TRUE=
32444   WITH_PERL_DYNAMIC_FALSE='#'
32445 else
32446   WITH_PERL_DYNAMIC_TRUE='#'
32447   WITH_PERL_DYNAMIC_FALSE=
32448 fi
32449
32450
32451
32452 # Determine path to pick up MagickCore library from for use with building PerlMagick
32453 MAGICKCORE_PATH="${LIB_DIR}"
32454 if test $with_perl_static = 'yes'; then
32455     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32456     libtool_objdir=$objdir
32457
32458     # Linker search path to library, followed by -lMagickCore
32459     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32460 fi
32461
32462
32463 # Create a simple string containing format names for all delegate libraries
32464 DELEGATES=''
32465 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32466 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32467 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32468 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32469 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32470 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32471 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32472 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32473 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32474 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32475 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32476 if test "$have_jpeg"       = 'yes'; then
32477   DELEGATES="$DELEGATES jpeg";
32478   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32479 fi
32480 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32481 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32482 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32483 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32484 if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
32485 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32486 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32487 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
32488 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32489 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32490 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32491 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32492 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32493 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32494
32495
32496
32497 #
32498 # Handle special compiler flags
32499 #
32500
32501 # Add '-p' if prof source profiling support enabled
32502 if test "$enable_prof" = 'yes'; then
32503     CFLAGS="-p $CFLAGS"
32504     CXXFLAGS="-p $CXXFLAGS"
32505     LDFLAGS="-p $LDFLAGS"
32506 fi
32507
32508 # Add '-pg' if gprof source profiling support enabled
32509 if test "$enable_gprof" = 'yes'; then
32510     CFLAGS="-pg $CFLAGS"
32511     CXXFLAGS="-pg $CXXFLAGS"
32512     LDFLAGS="-pg $LDFLAGS"
32513 fi
32514
32515 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32516 # This is a gcc-specific feature
32517 if test "$enable_gcov" = 'yes'; then
32518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32519 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32520 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32521   $as_echo_n "(cached) " >&6
32522 else
32523   ac_check_lib_save_LIBS=$LIBS
32524 LIBS="-lgcov  $LIBS"
32525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32526 /* end confdefs.h.  */
32527
32528 /* Override any GCC internal prototype to avoid an error.
32529    Use char because int might match the return type of a GCC
32530    builtin and then its argument prototype would still apply.  */
32531 #ifdef __cplusplus
32532 extern "C"
32533 #endif
32534 char _gcov_init ();
32535 int
32536 main ()
32537 {
32538 return _gcov_init ();
32539   ;
32540   return 0;
32541 }
32542 _ACEOF
32543 if ac_fn_c_try_link "$LINENO"; then :
32544   ac_cv_lib_gcov__gcov_init=yes
32545 else
32546   ac_cv_lib_gcov__gcov_init=no
32547 fi
32548 rm -f core conftest.err conftest.$ac_objext \
32549     conftest$ac_exeext conftest.$ac_ext
32550 LIBS=$ac_check_lib_save_LIBS
32551 fi
32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32553 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32554 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32555   cat >>confdefs.h <<_ACEOF
32556 #define HAVE_LIBGCOV 1
32557 _ACEOF
32558
32559   LIBS="-lgcov $LIBS"
32560
32561 fi
32562
32563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32564 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32565 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32566   $as_echo_n "(cached) " >&6
32567 else
32568   ac_check_lib_save_LIBS=$LIBS
32569 LIBS="-lgcov  $LIBS"
32570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32571 /* end confdefs.h.  */
32572
32573 /* Override any GCC internal prototype to avoid an error.
32574    Use char because int might match the return type of a GCC
32575    builtin and then its argument prototype would still apply.  */
32576 #ifdef __cplusplus
32577 extern "C"
32578 #endif
32579 char __gcov_init ();
32580 int
32581 main ()
32582 {
32583 return __gcov_init ();
32584   ;
32585   return 0;
32586 }
32587 _ACEOF
32588 if ac_fn_c_try_link "$LINENO"; then :
32589   ac_cv_lib_gcov___gcov_init=yes
32590 else
32591   ac_cv_lib_gcov___gcov_init=no
32592 fi
32593 rm -f core conftest.err conftest.$ac_objext \
32594     conftest$ac_exeext conftest.$ac_ext
32595 LIBS=$ac_check_lib_save_LIBS
32596 fi
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32598 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32599 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32600   cat >>confdefs.h <<_ACEOF
32601 #define HAVE_LIBGCOV 1
32602 _ACEOF
32603
32604   LIBS="-lgcov $LIBS"
32605
32606 fi
32607
32608     case "$target_os" in
32609         darwin*)
32610             OSX_GCOV_LDFLAG="-Wl,-single_module"
32611         ;;
32612         *)
32613             OSX_GCOV_LDFLAG=""
32614         ;;
32615     esac
32616
32617     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
32618     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
32619     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32620 fi
32621
32622 #
32623 # Build library dependency list for libMagickCore
32624 #
32625
32626 MAGICK_LIBLTDL='' # Libltdl for build
32627 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
32628 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
32629 if test "$with_ltdl" != 'no'
32630 then
32631   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32632     MAGICK_API_LIBLTDL='-lltdl'
32633   fi
32634   MAGICK_LIBLTDL=${LIBLTDL}
32635   MAGICK_LTDLDEPS=${LTDLDEPS}
32636 fi
32637
32638
32639
32640 if test "$with_modules" != 'no'; then
32641     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 $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
32642 else
32643     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 $LZMA_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"
32644 fi
32645
32646
32647 #
32648 # Remove extraneous spaces from output variables (asthetic)
32649 #
32650 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
32651 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
32652 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
32653 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
32654
32655 CC=`echo $CC | sed -e 's/  */ /g'`
32656 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
32657 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
32658 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
32659 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32660 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
32661 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
32662 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32663 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
32664 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32665
32666 # Pass only user-provided LIBS as "global" libraries
32667 LIBS=$USER_LIBS
32668
32669 #AC_SUBST(CPPFLAGS)
32670
32671 #AC_SUBST(LDFLAGS)
32672 #AC_SUBST(X_PRE_LIBS)
32673 #AC_SUBST(X_LIBS)
32674 #AC_SUBST(X_EXTRA_LIBS)
32675
32676 MAGICK_CFLAGS=$CFLAGS
32677 MAGICK_CXXFLAGS="$CXXFLAGS"
32678 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
32679 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
32680 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32681 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691 # Set configured scripts to executable.
32692 ac_config_commands="$ac_config_commands default"
32693
32694 ac_config_commands="$ac_config_commands MagickCore-config.in"
32695
32696 ac_config_commands="$ac_config_commands Magick-config.in"
32697
32698 ac_config_commands="$ac_config_commands MagickWand-config.in"
32699
32700 ac_config_commands="$ac_config_commands Wand-config.in"
32701
32702 ac_config_commands="$ac_config_commands Magick++-config.in"
32703
32704 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32705
32706
32707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32708 $as_echo "-------------------------------------------------------------" >&6; }
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32710 $as_echo "Update ImageMagick configuration" >&6; }
32711 cat >confcache <<\_ACEOF
32712 # This file is a shell script that caches the results of configure
32713 # tests run on this system so they can be shared between configure
32714 # scripts and configure runs, see configure's option --config-cache.
32715 # It is not useful on other systems.  If it contains results you don't
32716 # want to keep, you may remove or edit it.
32717 #
32718 # config.status only pays attention to the cache file if you give it
32719 # the --recheck option to rerun configure.
32720 #
32721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32723 # following values.
32724
32725 _ACEOF
32726
32727 # The following way of writing the cache mishandles newlines in values,
32728 # but we know of no workaround that is simple, portable, and efficient.
32729 # So, we kill variables containing newlines.
32730 # Ultrix sh set writes to stderr and can't be redirected directly,
32731 # and sets the high bit in the cache file unless we assign to the vars.
32732 (
32733   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32734     eval ac_val=\$$ac_var
32735     case $ac_val in #(
32736     *${as_nl}*)
32737       case $ac_var in #(
32738       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32740       esac
32741       case $ac_var in #(
32742       _ | IFS | as_nl) ;; #(
32743       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32744       *) { eval $ac_var=; unset $ac_var;} ;;
32745       esac ;;
32746     esac
32747   done
32748
32749   (set) 2>&1 |
32750     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32751     *${as_nl}ac_space=\ *)
32752       # `set' does not quote correctly, so add quotes: double-quote
32753       # substitution turns \\\\ into \\, and sed turns \\ into \.
32754       sed -n \
32755         "s/'/'\\\\''/g;
32756           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32757       ;; #(
32758     *)
32759       # `set' quotes correctly as required by POSIX, so do not add quotes.
32760       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32761       ;;
32762     esac |
32763     sort
32764 ) |
32765   sed '
32766      /^ac_cv_env_/b end
32767      t clear
32768      :clear
32769      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32770      t end
32771      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32772      :end' >>confcache
32773 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32774   if test -w "$cache_file"; then
32775     test "x$cache_file" != "x/dev/null" &&
32776       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32777 $as_echo "$as_me: updating cache $cache_file" >&6;}
32778     cat confcache >$cache_file
32779   else
32780     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32781 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32782   fi
32783 fi
32784 rm -f confcache
32785
32786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32787 # Let make expand exec_prefix.
32788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32789
32790 DEFS=-DHAVE_CONFIG_H
32791
32792 ac_libobjs=
32793 ac_ltlibobjs=
32794 U=
32795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32796   # 1. Remove the extension, and $U if already installed.
32797   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32798   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32799   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32800   #    will be set to the directory where LIBOBJS objects are built.
32801   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32802   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32803 done
32804 LIBOBJS=$ac_libobjs
32805
32806 LTLIBOBJS=$ac_ltlibobjs
32807
32808
32809  if test -n "$EXEEXT"; then
32810   am__EXEEXT_TRUE=
32811   am__EXEEXT_FALSE='#'
32812 else
32813   am__EXEEXT_TRUE='#'
32814   am__EXEEXT_FALSE=
32815 fi
32816
32817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32818   as_fn_error $? "conditional \"AMDEP\" was never defined.
32819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32820 fi
32821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32822   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32824 fi
32825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32826   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32828 fi
32829 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32830   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32832 fi
32833 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32834   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32836 fi
32837 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32838   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32840 fi
32841 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32842   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32844 fi
32845 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32846   as_fn_error $? "conditional \"USING_CL\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32848 fi
32849 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32850   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32852 fi
32853 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32854   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32856 fi
32857 LT_CONFIG_H=config/config.h
32858
32859     _ltdl_libobjs=
32860     _ltdl_ltlibobjs=
32861     if test -n "$_LT_LIBOBJS"; then
32862       # Remove the extension.
32863       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32864       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32865         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32866         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32867       done
32868     fi
32869     ltdl_LIBOBJS=$_ltdl_libobjs
32870
32871     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32872
32873
32874 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32875   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32877 fi
32878 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32879   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32881 fi
32882 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32883   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32885 fi
32886 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32887   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32889 fi
32890
32891 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32892   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32894 fi
32895 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32896   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32898 fi
32899 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32900   as_fn_error $? "conditional \"HasUMEM\" was never defined.
32901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32902 fi
32903 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32904   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32906 fi
32907 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32908   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32910 fi
32911 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32912   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32914 fi
32915 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32916   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32918 fi
32919 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32920   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32922 fi
32923 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32924   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32926 fi
32927 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32928   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32930 fi
32931 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32932   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32934 fi
32935 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32936   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32938 fi
32939 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32940   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32942 fi
32943 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32944   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32946 fi
32947 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32948   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32950 fi
32951 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32952   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32954 fi
32955 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32956   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32958 fi
32959 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32960   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32962 fi
32963 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32964   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32966 fi
32967 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32968   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32970 fi
32971 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
32972   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
32973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32974 fi
32975 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32976   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32978 fi
32979 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32980   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32982 fi
32983 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32984   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32986 fi
32987 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32988   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32990 fi
32991 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32992   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32994 fi
32995 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32996   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32998 fi
32999 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33000   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
33001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33002 fi
33003 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33004   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
33005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33006 fi
33007 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33008   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
33009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33010 fi
33011 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33012   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
33013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33014 fi
33015 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33016   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
33017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33018 fi
33019 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33020   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
33021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33022 fi
33023 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33024   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33026 fi
33027
33028 : ${CONFIG_STATUS=./config.status}
33029 ac_write_fail=0
33030 ac_clean_files_save=$ac_clean_files
33031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33034 as_write_fail=0
33035 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33036 #! $SHELL
33037 # Generated by $as_me.
33038 # Run this file to recreate the current configuration.
33039 # Compiler output produced by configure, useful for debugging
33040 # configure, is in config.log if it exists.
33041
33042 debug=false
33043 ac_cs_recheck=false
33044 ac_cs_silent=false
33045
33046 SHELL=\${CONFIG_SHELL-$SHELL}
33047 export SHELL
33048 _ASEOF
33049 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33050 ## -------------------- ##
33051 ## M4sh Initialization. ##
33052 ## -------------------- ##
33053
33054 # Be more Bourne compatible
33055 DUALCASE=1; export DUALCASE # for MKS sh
33056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33057   emulate sh
33058   NULLCMD=:
33059   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33060   # is contrary to our usage.  Disable this feature.
33061   alias -g '${1+"$@"}'='"$@"'
33062   setopt NO_GLOB_SUBST
33063 else
33064   case `(set -o) 2>/dev/null` in #(
33065   *posix*) :
33066     set -o posix ;; #(
33067   *) :
33068      ;;
33069 esac
33070 fi
33071
33072
33073 as_nl='
33074 '
33075 export as_nl
33076 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33077 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33078 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33080 # Prefer a ksh shell builtin over an external printf program on Solaris,
33081 # but without wasting forks for bash or zsh.
33082 if test -z "$BASH_VERSION$ZSH_VERSION" \
33083     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33084   as_echo='print -r --'
33085   as_echo_n='print -rn --'
33086 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33087   as_echo='printf %s\n'
33088   as_echo_n='printf %s'
33089 else
33090   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33091     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33092     as_echo_n='/usr/ucb/echo -n'
33093   else
33094     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33095     as_echo_n_body='eval
33096       arg=$1;
33097       case $arg in #(
33098       *"$as_nl"*)
33099         expr "X$arg" : "X\\(.*\\)$as_nl";
33100         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33101       esac;
33102       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33103     '
33104     export as_echo_n_body
33105     as_echo_n='sh -c $as_echo_n_body as_echo'
33106   fi
33107   export as_echo_body
33108   as_echo='sh -c $as_echo_body as_echo'
33109 fi
33110
33111 # The user is always right.
33112 if test "${PATH_SEPARATOR+set}" != set; then
33113   PATH_SEPARATOR=:
33114   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33115     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33116       PATH_SEPARATOR=';'
33117   }
33118 fi
33119
33120
33121 # IFS
33122 # We need space, tab and new line, in precisely that order.  Quoting is
33123 # there to prevent editors from complaining about space-tab.
33124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33125 # splitting by setting IFS to empty value.)
33126 IFS=" ""        $as_nl"
33127
33128 # Find who we are.  Look in the path if we contain no directory separator.
33129 case $0 in #((
33130   *[\\/]* ) as_myself=$0 ;;
33131   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132 for as_dir in $PATH
33133 do
33134   IFS=$as_save_IFS
33135   test -z "$as_dir" && as_dir=.
33136     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33137   done
33138 IFS=$as_save_IFS
33139
33140      ;;
33141 esac
33142 # We did not find ourselves, most probably we were run as `sh COMMAND'
33143 # in which case we are not to be found in the path.
33144 if test "x$as_myself" = x; then
33145   as_myself=$0
33146 fi
33147 if test ! -f "$as_myself"; then
33148   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33149   exit 1
33150 fi
33151
33152 # Unset variables that we do not need and which cause bugs (e.g. in
33153 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33154 # suppresses any "Segmentation fault" message there.  '((' could
33155 # trigger a bug in pdksh 5.2.14.
33156 for as_var in BASH_ENV ENV MAIL MAILPATH
33157 do eval test x\${$as_var+set} = xset \
33158   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33159 done
33160 PS1='$ '
33161 PS2='> '
33162 PS4='+ '
33163
33164 # NLS nuisances.
33165 LC_ALL=C
33166 export LC_ALL
33167 LANGUAGE=C
33168 export LANGUAGE
33169
33170 # CDPATH.
33171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33172
33173
33174 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33175 # ----------------------------------------
33176 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33177 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33178 # script with STATUS, using 1 if that was 0.
33179 as_fn_error ()
33180 {
33181   as_status=$1; test $as_status -eq 0 && as_status=1
33182   if test "$4"; then
33183     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33184     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33185   fi
33186   $as_echo "$as_me: error: $2" >&2
33187   as_fn_exit $as_status
33188 } # as_fn_error
33189
33190
33191 # as_fn_set_status STATUS
33192 # -----------------------
33193 # Set $? to STATUS, without forking.
33194 as_fn_set_status ()
33195 {
33196   return $1
33197 } # as_fn_set_status
33198
33199 # as_fn_exit STATUS
33200 # -----------------
33201 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33202 as_fn_exit ()
33203 {
33204   set +e
33205   as_fn_set_status $1
33206   exit $1
33207 } # as_fn_exit
33208
33209 # as_fn_unset VAR
33210 # ---------------
33211 # Portably unset VAR.
33212 as_fn_unset ()
33213 {
33214   { eval $1=; unset $1;}
33215 }
33216 as_unset=as_fn_unset
33217 # as_fn_append VAR VALUE
33218 # ----------------------
33219 # Append the text in VALUE to the end of the definition contained in VAR. Take
33220 # advantage of any shell optimizations that allow amortized linear growth over
33221 # repeated appends, instead of the typical quadratic growth present in naive
33222 # implementations.
33223 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33224   eval 'as_fn_append ()
33225   {
33226     eval $1+=\$2
33227   }'
33228 else
33229   as_fn_append ()
33230   {
33231     eval $1=\$$1\$2
33232   }
33233 fi # as_fn_append
33234
33235 # as_fn_arith ARG...
33236 # ------------------
33237 # Perform arithmetic evaluation on the ARGs, and store the result in the
33238 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33239 # must be portable across $(()) and expr.
33240 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33241   eval 'as_fn_arith ()
33242   {
33243     as_val=$(( $* ))
33244   }'
33245 else
33246   as_fn_arith ()
33247   {
33248     as_val=`expr "$@" || test $? -eq 1`
33249   }
33250 fi # as_fn_arith
33251
33252
33253 if expr a : '\(a\)' >/dev/null 2>&1 &&
33254    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33255   as_expr=expr
33256 else
33257   as_expr=false
33258 fi
33259
33260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33261   as_basename=basename
33262 else
33263   as_basename=false
33264 fi
33265
33266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33267   as_dirname=dirname
33268 else
33269   as_dirname=false
33270 fi
33271
33272 as_me=`$as_basename -- "$0" ||
33273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33274          X"$0" : 'X\(//\)$' \| \
33275          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33276 $as_echo X/"$0" |
33277     sed '/^.*\/\([^/][^/]*\)\/*$/{
33278             s//\1/
33279             q
33280           }
33281           /^X\/\(\/\/\)$/{
33282             s//\1/
33283             q
33284           }
33285           /^X\/\(\/\).*/{
33286             s//\1/
33287             q
33288           }
33289           s/.*/./; q'`
33290
33291 # Avoid depending upon Character Ranges.
33292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33295 as_cr_digits='0123456789'
33296 as_cr_alnum=$as_cr_Letters$as_cr_digits
33297
33298 ECHO_C= ECHO_N= ECHO_T=
33299 case `echo -n x` in #(((((
33300 -n*)
33301   case `echo 'xy\c'` in
33302   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33303   xy)  ECHO_C='\c';;
33304   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33305        ECHO_T=' ';;
33306   esac;;
33307 *)
33308   ECHO_N='-n';;
33309 esac
33310
33311 rm -f conf$$ conf$$.exe conf$$.file
33312 if test -d conf$$.dir; then
33313   rm -f conf$$.dir/conf$$.file
33314 else
33315   rm -f conf$$.dir
33316   mkdir conf$$.dir 2>/dev/null
33317 fi
33318 if (echo >conf$$.file) 2>/dev/null; then
33319   if ln -s conf$$.file conf$$ 2>/dev/null; then
33320     as_ln_s='ln -s'
33321     # ... but there are two gotchas:
33322     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33323     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33324     # In both cases, we have to default to `cp -p'.
33325     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33326       as_ln_s='cp -p'
33327   elif ln conf$$.file conf$$ 2>/dev/null; then
33328     as_ln_s=ln
33329   else
33330     as_ln_s='cp -p'
33331   fi
33332 else
33333   as_ln_s='cp -p'
33334 fi
33335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33336 rmdir conf$$.dir 2>/dev/null
33337
33338
33339 # as_fn_mkdir_p
33340 # -------------
33341 # Create "$as_dir" as a directory, including parents if necessary.
33342 as_fn_mkdir_p ()
33343 {
33344
33345   case $as_dir in #(
33346   -*) as_dir=./$as_dir;;
33347   esac
33348   test -d "$as_dir" || eval $as_mkdir_p || {
33349     as_dirs=
33350     while :; do
33351       case $as_dir in #(
33352       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33353       *) as_qdir=$as_dir;;
33354       esac
33355       as_dirs="'$as_qdir' $as_dirs"
33356       as_dir=`$as_dirname -- "$as_dir" ||
33357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33358          X"$as_dir" : 'X\(//\)[^/]' \| \
33359          X"$as_dir" : 'X\(//\)$' \| \
33360          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33361 $as_echo X"$as_dir" |
33362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33363             s//\1/
33364             q
33365           }
33366           /^X\(\/\/\)[^/].*/{
33367             s//\1/
33368             q
33369           }
33370           /^X\(\/\/\)$/{
33371             s//\1/
33372             q
33373           }
33374           /^X\(\/\).*/{
33375             s//\1/
33376             q
33377           }
33378           s/.*/./; q'`
33379       test -d "$as_dir" && break
33380     done
33381     test -z "$as_dirs" || eval "mkdir $as_dirs"
33382   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33383
33384
33385 } # as_fn_mkdir_p
33386 if mkdir -p . 2>/dev/null; then
33387   as_mkdir_p='mkdir -p "$as_dir"'
33388 else
33389   test -d ./-p && rmdir ./-p
33390   as_mkdir_p=false
33391 fi
33392
33393 if test -x / >/dev/null 2>&1; then
33394   as_test_x='test -x'
33395 else
33396   if ls -dL / >/dev/null 2>&1; then
33397     as_ls_L_option=L
33398   else
33399     as_ls_L_option=
33400   fi
33401   as_test_x='
33402     eval sh -c '\''
33403       if test -d "$1"; then
33404         test -d "$1/.";
33405       else
33406         case $1 in #(
33407         -*)set "./$1";;
33408         esac;
33409         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33410         ???[sx]*):;;*)false;;esac;fi
33411     '\'' sh
33412   '
33413 fi
33414 as_executable_p=$as_test_x
33415
33416 # Sed expression to map a string onto a valid CPP name.
33417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33418
33419 # Sed expression to map a string onto a valid variable name.
33420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33421
33422
33423 exec 6>&1
33424 ## ----------------------------------- ##
33425 ## Main body of $CONFIG_STATUS script. ##
33426 ## ----------------------------------- ##
33427 _ASEOF
33428 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33429
33430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33431 # Save the log message, to keep $0 and so on meaningful, and to
33432 # report actual input values of CONFIG_FILES etc. instead of their
33433 # values after options handling.
33434 ac_log="
33435 This file was extended by ImageMagick $as_me 6.6.6, which was
33436 generated by GNU Autoconf 2.66.  Invocation command line was
33437
33438   CONFIG_FILES    = $CONFIG_FILES
33439   CONFIG_HEADERS  = $CONFIG_HEADERS
33440   CONFIG_LINKS    = $CONFIG_LINKS
33441   CONFIG_COMMANDS = $CONFIG_COMMANDS
33442   $ $0 $@
33443
33444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33445 "
33446
33447 _ACEOF
33448
33449 case $ac_config_files in *"
33450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33451 esac
33452
33453 case $ac_config_headers in *"
33454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33455 esac
33456
33457
33458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33459 # Files that config.status was made for.
33460 config_files="$ac_config_files"
33461 config_headers="$ac_config_headers"
33462 config_commands="$ac_config_commands"
33463
33464 _ACEOF
33465
33466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33467 ac_cs_usage="\
33468 \`$as_me' instantiates files and other configuration actions
33469 from templates according to the current configuration.  Unless the files
33470 and actions are specified as TAGs, all are instantiated by default.
33471
33472 Usage: $0 [OPTION]... [TAG]...
33473
33474   -h, --help       print this help, then exit
33475   -V, --version    print version number and configuration settings, then exit
33476       --config     print configuration, then exit
33477   -q, --quiet, --silent
33478                    do not print progress messages
33479   -d, --debug      don't remove temporary files
33480       --recheck    update $as_me by reconfiguring in the same conditions
33481       --file=FILE[:TEMPLATE]
33482                    instantiate the configuration file FILE
33483       --header=FILE[:TEMPLATE]
33484                    instantiate the configuration header FILE
33485
33486 Configuration files:
33487 $config_files
33488
33489 Configuration headers:
33490 $config_headers
33491
33492 Configuration commands:
33493 $config_commands
33494
33495 Report bugs to <http://www.imagemagick.org>."
33496
33497 _ACEOF
33498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33499 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33500 ac_cs_version="\\
33501 ImageMagick config.status 6.6.6
33502 configured by $0, generated by GNU Autoconf 2.66,
33503   with options \\"\$ac_cs_config\\"
33504
33505 Copyright (C) 2010 Free Software Foundation, Inc.
33506 This config.status script is free software; the Free Software Foundation
33507 gives unlimited permission to copy, distribute and modify it."
33508
33509 ac_pwd='$ac_pwd'
33510 srcdir='$srcdir'
33511 INSTALL='$INSTALL'
33512 MKDIR_P='$MKDIR_P'
33513 AWK='$AWK'
33514 test -n "\$AWK" || AWK=awk
33515 _ACEOF
33516
33517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33518 # The default lists apply if the user does not specify any file.
33519 ac_need_defaults=:
33520 while test $# != 0
33521 do
33522   case $1 in
33523   --*=*)
33524     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33525     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33526     ac_shift=:
33527     ;;
33528   *)
33529     ac_option=$1
33530     ac_optarg=$2
33531     ac_shift=shift
33532     ;;
33533   esac
33534
33535   case $ac_option in
33536   # Handling of the options.
33537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33538     ac_cs_recheck=: ;;
33539   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33540     $as_echo "$ac_cs_version"; exit ;;
33541   --config | --confi | --conf | --con | --co | --c )
33542     $as_echo "$ac_cs_config"; exit ;;
33543   --debug | --debu | --deb | --de | --d | -d )
33544     debug=: ;;
33545   --file | --fil | --fi | --f )
33546     $ac_shift
33547     case $ac_optarg in
33548     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33549     esac
33550     as_fn_append CONFIG_FILES " '$ac_optarg'"
33551     ac_need_defaults=false;;
33552   --header | --heade | --head | --hea )
33553     $ac_shift
33554     case $ac_optarg in
33555     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33556     esac
33557     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33558     ac_need_defaults=false;;
33559   --he | --h)
33560     # Conflict between --help and --header
33561     as_fn_error $? "ambiguous option: \`$1'
33562 Try \`$0 --help' for more information.";;
33563   --help | --hel | -h )
33564     $as_echo "$ac_cs_usage"; exit ;;
33565   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33566   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33567     ac_cs_silent=: ;;
33568
33569   # This is an error.
33570   -*) as_fn_error $? "unrecognized option: \`$1'
33571 Try \`$0 --help' for more information." ;;
33572
33573   *) as_fn_append ac_config_targets " $1"
33574      ac_need_defaults=false ;;
33575
33576   esac
33577   shift
33578 done
33579
33580 ac_configure_extra_args=
33581
33582 if $ac_cs_silent; then
33583   exec 6>/dev/null
33584   ac_configure_extra_args="$ac_configure_extra_args --silent"
33585 fi
33586
33587 _ACEOF
33588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33589 if \$ac_cs_recheck; then
33590   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33591   shift
33592   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33593   CONFIG_SHELL='$SHELL'
33594   export CONFIG_SHELL
33595   exec "\$@"
33596 fi
33597
33598 _ACEOF
33599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33600 exec 5>>config.log
33601 {
33602   echo
33603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33604 ## Running $as_me. ##
33605 _ASBOX
33606   $as_echo "$ac_log"
33607 } >&5
33608
33609 _ACEOF
33610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33611 #
33612 # INIT-COMMANDS
33613 #
33614 PACKAGE="$PACKAGE"
33615 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33616
33617
33618 # The HP-UX ksh and POSIX shell print the target directory to stdout
33619 # if CDPATH is set.
33620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33621
33622 sed_quote_subst='$sed_quote_subst'
33623 double_quote_subst='$double_quote_subst'
33624 delay_variable_subst='$delay_variable_subst'
33625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33630 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33631 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33632 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33635 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33636 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33637 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33638 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33639 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33640 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33641 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33648 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33649 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33650 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33651 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33652 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33653 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33654 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33655 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33656 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33657 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33658 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33659 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33660 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33661 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33662 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33663 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33664 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33665 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33666 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33667 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33668 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33669 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33670 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33671 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33672 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33674 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33675 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"`'
33676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33679 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33680 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33684 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33685 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33686 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33687 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33688 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33689 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33690 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33691 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33692 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33693 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33694 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33695 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33696 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33697 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33698 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33699 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33700 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33701 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33702 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33703 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33704 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33705 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33706 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33707 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33716 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33717 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33718 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33719 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33720 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33721 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33747 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33748 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33749 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33750 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33751 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33752 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33753 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33754 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33755 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33756 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33757 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33758 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33759 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33760 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33761 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33762 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33763 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33764 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33765 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33766 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33767 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33768 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33769 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33770 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33771 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33772 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33773 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33774 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33775 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33776 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33777 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33778 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33779 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33780 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33781 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33782 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33783 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33784 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33785 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33786 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33787 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33788 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33789 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33790 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33791 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33792 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33793 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33794 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33795 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33796 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33797 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33798 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33799 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33800 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33801 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33802
33803 LTCC='$LTCC'
33804 LTCFLAGS='$LTCFLAGS'
33805 compiler='$compiler_DEFAULT'
33806
33807 # A function that is used when there is no print builtin or printf.
33808 func_fallback_echo ()
33809 {
33810   eval 'cat <<_LTECHO_EOF
33811 \$1
33812 _LTECHO_EOF'
33813 }
33814
33815 # Quote evaled strings.
33816 for var in SED \
33817 GREP \
33818 EGREP \
33819 FGREP \
33820 SHELL \
33821 ECHO \
33822 LD \
33823 AS \
33824 DLLTOOL \
33825 OBJDUMP \
33826 NM \
33827 LN_S \
33828 lt_SP2NL \
33829 lt_NL2SP \
33830 reload_flag \
33831 deplibs_check_method \
33832 file_magic_cmd \
33833 AR \
33834 AR_FLAGS \
33835 STRIP \
33836 RANLIB \
33837 CC \
33838 CFLAGS \
33839 compiler \
33840 lt_cv_sys_global_symbol_pipe \
33841 lt_cv_sys_global_symbol_to_cdecl \
33842 lt_cv_sys_global_symbol_to_c_name_address \
33843 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33844 lt_prog_compiler_no_builtin_flag \
33845 lt_prog_compiler_wl \
33846 lt_prog_compiler_pic \
33847 lt_prog_compiler_static \
33848 lt_cv_prog_compiler_c_o \
33849 need_locks \
33850 DSYMUTIL \
33851 NMEDIT \
33852 LIPO \
33853 OTOOL \
33854 OTOOL64 \
33855 shrext_cmds \
33856 export_dynamic_flag_spec \
33857 whole_archive_flag_spec \
33858 compiler_needs_object \
33859 with_gnu_ld \
33860 allow_undefined_flag \
33861 no_undefined_flag \
33862 hardcode_libdir_flag_spec \
33863 hardcode_libdir_flag_spec_ld \
33864 hardcode_libdir_separator \
33865 fix_srcfile_path \
33866 exclude_expsyms \
33867 include_expsyms \
33868 file_list_spec \
33869 variables_saved_for_relink \
33870 libname_spec \
33871 library_names_spec \
33872 soname_spec \
33873 install_override_mode \
33874 finish_eval \
33875 old_striplib \
33876 striplib \
33877 compiler_lib_search_dirs \
33878 predep_objects \
33879 postdep_objects \
33880 predeps \
33881 postdeps \
33882 compiler_lib_search_path \
33883 LD_CXX \
33884 reload_flag_CXX \
33885 compiler_CXX \
33886 lt_prog_compiler_no_builtin_flag_CXX \
33887 lt_prog_compiler_wl_CXX \
33888 lt_prog_compiler_pic_CXX \
33889 lt_prog_compiler_static_CXX \
33890 lt_cv_prog_compiler_c_o_CXX \
33891 export_dynamic_flag_spec_CXX \
33892 whole_archive_flag_spec_CXX \
33893 compiler_needs_object_CXX \
33894 with_gnu_ld_CXX \
33895 allow_undefined_flag_CXX \
33896 no_undefined_flag_CXX \
33897 hardcode_libdir_flag_spec_CXX \
33898 hardcode_libdir_flag_spec_ld_CXX \
33899 hardcode_libdir_separator_CXX \
33900 fix_srcfile_path_CXX \
33901 exclude_expsyms_CXX \
33902 include_expsyms_CXX \
33903 file_list_spec_CXX \
33904 compiler_lib_search_dirs_CXX \
33905 predep_objects_CXX \
33906 postdep_objects_CXX \
33907 predeps_CXX \
33908 postdeps_CXX \
33909 compiler_lib_search_path_CXX; do
33910     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33911     *[\\\\\\\`\\"\\\$]*)
33912       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33913       ;;
33914     *)
33915       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33916       ;;
33917     esac
33918 done
33919
33920 # Double-quote double-evaled strings.
33921 for var in reload_cmds \
33922 old_postinstall_cmds \
33923 old_postuninstall_cmds \
33924 old_archive_cmds \
33925 extract_expsyms_cmds \
33926 old_archive_from_new_cmds \
33927 old_archive_from_expsyms_cmds \
33928 archive_cmds \
33929 archive_expsym_cmds \
33930 module_cmds \
33931 module_expsym_cmds \
33932 export_symbols_cmds \
33933 prelink_cmds \
33934 postinstall_cmds \
33935 postuninstall_cmds \
33936 finish_cmds \
33937 sys_lib_search_path_spec \
33938 sys_lib_dlsearch_path_spec \
33939 reload_cmds_CXX \
33940 old_archive_cmds_CXX \
33941 old_archive_from_new_cmds_CXX \
33942 old_archive_from_expsyms_cmds_CXX \
33943 archive_cmds_CXX \
33944 archive_expsym_cmds_CXX \
33945 module_cmds_CXX \
33946 module_expsym_cmds_CXX \
33947 export_symbols_cmds_CXX \
33948 prelink_cmds_CXX; do
33949     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33950     *[\\\\\\\`\\"\\\$]*)
33951       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33952       ;;
33953     *)
33954       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33955       ;;
33956     esac
33957 done
33958
33959 ac_aux_dir='$ac_aux_dir'
33960 xsi_shell='$xsi_shell'
33961 lt_shell_append='$lt_shell_append'
33962
33963 # See if we are running on zsh, and set the options which allow our
33964 # commands through without removal of \ escapes INIT.
33965 if test -n "\${ZSH_VERSION+set}" ; then
33966    setopt NO_GLOB_SUBST
33967 fi
33968
33969
33970     PACKAGE='$PACKAGE'
33971     VERSION='$VERSION'
33972     TIMESTAMP='$TIMESTAMP'
33973     RM='$RM'
33974     ofile='$ofile'
33975
33976
33977
33978
33979
33980
33981 _ACEOF
33982
33983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33984
33985 # Handling of arguments.
33986 for ac_config_target in $ac_config_targets
33987 do
33988   case $ac_config_target in
33989     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33990     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33991     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33992     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33993     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33994     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33995     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33996     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33997     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33998     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33999     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34000     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34001     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34002     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34003     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34004     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34005     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34006     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34007     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34008     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34009     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34010     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34011     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34012     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34013     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34014     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34015     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34016     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34017     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34018     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34019     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34020     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34021     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34022     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34023     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34024     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34025     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34026     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34027     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34028     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34029     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34030     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34031     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34032     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34033     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34034     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34035     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34036     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34037     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34038     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34039
34040   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34041   esac
34042 done
34043
34044
34045 # If the user did not use the arguments to specify the items to instantiate,
34046 # then the envvar interface is used.  Set only those that are not.
34047 # We use the long form for the default assignment because of an extremely
34048 # bizarre bug on SunOS 4.1.3.
34049 if $ac_need_defaults; then
34050   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34051   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34052   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34053 fi
34054
34055 # Have a temporary directory for convenience.  Make it in the build tree
34056 # simply because there is no reason against having it here, and in addition,
34057 # creating and moving files from /tmp can sometimes cause problems.
34058 # Hook for its removal unless debugging.
34059 # Note that there is a small window in which the directory will not be cleaned:
34060 # after its creation but before its name has been assigned to `$tmp'.
34061 $debug ||
34062 {
34063   tmp=
34064   trap 'exit_status=$?
34065   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34066 ' 0
34067   trap 'as_fn_exit 1' 1 2 13 15
34068 }
34069 # Create a (secure) tmp directory for tmp files.
34070
34071 {
34072   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34073   test -n "$tmp" && test -d "$tmp"
34074 }  ||
34075 {
34076   tmp=./conf$$-$RANDOM
34077   (umask 077 && mkdir "$tmp")
34078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34079
34080 # Set up the scripts for CONFIG_FILES section.
34081 # No need to generate them if there are no CONFIG_FILES.
34082 # This happens for instance with `./config.status config.h'.
34083 if test -n "$CONFIG_FILES"; then
34084
34085
34086 ac_cr=`echo X | tr X '\015'`
34087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34088 # But we know of no other shell where ac_cr would be empty at this
34089 # point, so we can use a bashism as a fallback.
34090 if test "x$ac_cr" = x; then
34091   eval ac_cr=\$\'\\r\'
34092 fi
34093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34095   ac_cs_awk_cr='\\r'
34096 else
34097   ac_cs_awk_cr=$ac_cr
34098 fi
34099
34100 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34101 _ACEOF
34102
34103
34104 {
34105   echo "cat >conf$$subs.awk <<_ACEOF" &&
34106   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34107   echo "_ACEOF"
34108 } >conf$$subs.sh ||
34109   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34111 ac_delim='%!_!# '
34112 for ac_last_try in false false false false false :; do
34113   . ./conf$$subs.sh ||
34114     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34115
34116   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34117   if test $ac_delim_n = $ac_delim_num; then
34118     break
34119   elif $ac_last_try; then
34120     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34121   else
34122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34123   fi
34124 done
34125 rm -f conf$$subs.sh
34126
34127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34128 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34129 _ACEOF
34130 sed -n '
34131 h
34132 s/^/S["/; s/!.*/"]=/
34133 p
34134 g
34135 s/^[^!]*!//
34136 :repl
34137 t repl
34138 s/'"$ac_delim"'$//
34139 t delim
34140 :nl
34141 h
34142 s/\(.\{148\}\)..*/\1/
34143 t more1
34144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34145 p
34146 n
34147 b repl
34148 :more1
34149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34150 p
34151 g
34152 s/.\{148\}//
34153 t nl
34154 :delim
34155 h
34156 s/\(.\{148\}\)..*/\1/
34157 t more2
34158 s/["\\]/\\&/g; s/^/"/; s/$/"/
34159 p
34160 b
34161 :more2
34162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34163 p
34164 g
34165 s/.\{148\}//
34166 t delim
34167 ' <conf$$subs.awk | sed '
34168 /^[^""]/{
34169   N
34170   s/\n//
34171 }
34172 ' >>$CONFIG_STATUS || ac_write_fail=1
34173 rm -f conf$$subs.awk
34174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34175 _ACAWK
34176 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34177   for (key in S) S_is_set[key] = 1
34178   FS = "\a"
34179
34180 }
34181 {
34182   line = $ 0
34183   nfields = split(line, field, "@")
34184   substed = 0
34185   len = length(field[1])
34186   for (i = 2; i < nfields; i++) {
34187     key = field[i]
34188     keylen = length(key)
34189     if (S_is_set[key]) {
34190       value = S[key]
34191       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34192       len += length(value) + length(field[++i])
34193       substed = 1
34194     } else
34195       len += 1 + keylen
34196   }
34197
34198   print line
34199 }
34200
34201 _ACAWK
34202 _ACEOF
34203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34205   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34206 else
34207   cat
34208 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34209   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34210 _ACEOF
34211
34212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34214 # trailing colons and then remove the whole line if VPATH becomes empty
34215 # (actually we leave an empty line to preserve line numbers).
34216 if test "x$srcdir" = x.; then
34217   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34218 h
34219 s///
34220 s/^/:/
34221 s/[      ]*$/:/
34222 s/:\$(srcdir):/:/g
34223 s/:\${srcdir}:/:/g
34224 s/:@srcdir@:/:/g
34225 s/^:*//
34226 s/:*$//
34227 x
34228 s/\(=[   ]*\).*/\1/
34229 G
34230 s/\n//
34231 s/^[^=]*=[       ]*$//
34232 }'
34233 fi
34234
34235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34236 fi # test -n "$CONFIG_FILES"
34237
34238 # Set up the scripts for CONFIG_HEADERS section.
34239 # No need to generate them if there are no CONFIG_HEADERS.
34240 # This happens for instance with `./config.status Makefile'.
34241 if test -n "$CONFIG_HEADERS"; then
34242 cat >"$tmp/defines.awk" <<\_ACAWK ||
34243 BEGIN {
34244 _ACEOF
34245
34246 # Transform confdefs.h into an awk script `defines.awk', embedded as
34247 # here-document in config.status, that substitutes the proper values into
34248 # config.h.in to produce config.h.
34249
34250 # Create a delimiter string that does not exist in confdefs.h, to ease
34251 # handling of long lines.
34252 ac_delim='%!_!# '
34253 for ac_last_try in false false :; do
34254   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34255   if test -z "$ac_t"; then
34256     break
34257   elif $ac_last_try; then
34258     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34259   else
34260     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34261   fi
34262 done
34263
34264 # For the awk script, D is an array of macro values keyed by name,
34265 # likewise P contains macro parameters if any.  Preserve backslash
34266 # newline sequences.
34267
34268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34269 sed -n '
34270 s/.\{148\}/&'"$ac_delim"'/g
34271 t rset
34272 :rset
34273 s/^[     ]*#[    ]*define[       ][      ]*/ /
34274 t def
34275 d
34276 :def
34277 s/\\$//
34278 t bsnl
34279 s/["\\]/\\&/g
34280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34281 D["\1"]=" \3"/p
34282 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34283 d
34284 :bsnl
34285 s/["\\]/\\&/g
34286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34287 D["\1"]=" \3\\\\\\n"\\/p
34288 t cont
34289 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34290 t cont
34291 d
34292 :cont
34293 n
34294 s/.\{148\}/&'"$ac_delim"'/g
34295 t clear
34296 :clear
34297 s/\\$//
34298 t bsnlc
34299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34300 d
34301 :bsnlc
34302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34303 b cont
34304 ' <confdefs.h | sed '
34305 s/'"$ac_delim"'/"\\\
34306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34307
34308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34309   for (key in D) D_is_set[key] = 1
34310   FS = "\a"
34311 }
34312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34313   line = \$ 0
34314   split(line, arg, " ")
34315   if (arg[1] == "#") {
34316     defundef = arg[2]
34317     mac1 = arg[3]
34318   } else {
34319     defundef = substr(arg[1], 2)
34320     mac1 = arg[2]
34321   }
34322   split(mac1, mac2, "(") #)
34323   macro = mac2[1]
34324   prefix = substr(line, 1, index(line, defundef) - 1)
34325   if (D_is_set[macro]) {
34326     # Preserve the white space surrounding the "#".
34327     print prefix "define", macro P[macro] D[macro]
34328     next
34329   } else {
34330     # Replace #undef with comments.  This is necessary, for example,
34331     # in the case of _POSIX_SOURCE, which is predefined and required
34332     # on some systems where configure will not decide to define it.
34333     if (defundef == "undef") {
34334       print "/*", prefix defundef, macro, "*/"
34335       next
34336     }
34337   }
34338 }
34339 { print }
34340 _ACAWK
34341 _ACEOF
34342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34343   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34344 fi # test -n "$CONFIG_HEADERS"
34345
34346
34347 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34348 shift
34349 for ac_tag
34350 do
34351   case $ac_tag in
34352   :[FHLC]) ac_mode=$ac_tag; continue;;
34353   esac
34354   case $ac_mode$ac_tag in
34355   :[FHL]*:*);;
34356   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34357   :[FH]-) ac_tag=-:-;;
34358   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34359   esac
34360   ac_save_IFS=$IFS
34361   IFS=:
34362   set x $ac_tag
34363   IFS=$ac_save_IFS
34364   shift
34365   ac_file=$1
34366   shift
34367
34368   case $ac_mode in
34369   :L) ac_source=$1;;
34370   :[FH])
34371     ac_file_inputs=
34372     for ac_f
34373     do
34374       case $ac_f in
34375       -) ac_f="$tmp/stdin";;
34376       *) # Look for the file first in the build tree, then in the source tree
34377          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34378          # because $ac_f cannot contain `:'.
34379          test -f "$ac_f" ||
34380            case $ac_f in
34381            [\\/$]*) false;;
34382            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34383            esac ||
34384            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34385       esac
34386       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34387       as_fn_append ac_file_inputs " '$ac_f'"
34388     done
34389
34390     # Let's still pretend it is `configure' which instantiates (i.e., don't
34391     # use $as_me), people would be surprised to read:
34392     #    /* config.h.  Generated by config.status.  */
34393     configure_input='Generated from '`
34394           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34395         `' by configure.'
34396     if test x"$ac_file" != x-; then
34397       configure_input="$ac_file.  $configure_input"
34398       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34399 $as_echo "$as_me: creating $ac_file" >&6;}
34400     fi
34401     # Neutralize special characters interpreted by sed in replacement strings.
34402     case $configure_input in #(
34403     *\&* | *\|* | *\\* )
34404        ac_sed_conf_input=`$as_echo "$configure_input" |
34405        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34406     *) ac_sed_conf_input=$configure_input;;
34407     esac
34408
34409     case $ac_tag in
34410     *:-:* | *:-) cat >"$tmp/stdin" \
34411       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34412     esac
34413     ;;
34414   esac
34415
34416   ac_dir=`$as_dirname -- "$ac_file" ||
34417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34418          X"$ac_file" : 'X\(//\)[^/]' \| \
34419          X"$ac_file" : 'X\(//\)$' \| \
34420          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34421 $as_echo X"$ac_file" |
34422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34423             s//\1/
34424             q
34425           }
34426           /^X\(\/\/\)[^/].*/{
34427             s//\1/
34428             q
34429           }
34430           /^X\(\/\/\)$/{
34431             s//\1/
34432             q
34433           }
34434           /^X\(\/\).*/{
34435             s//\1/
34436             q
34437           }
34438           s/.*/./; q'`
34439   as_dir="$ac_dir"; as_fn_mkdir_p
34440   ac_builddir=.
34441
34442 case "$ac_dir" in
34443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34444 *)
34445   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34446   # A ".." for each directory in $ac_dir_suffix.
34447   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34448   case $ac_top_builddir_sub in
34449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34451   esac ;;
34452 esac
34453 ac_abs_top_builddir=$ac_pwd
34454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34455 # for backward compatibility:
34456 ac_top_builddir=$ac_top_build_prefix
34457
34458 case $srcdir in
34459   .)  # We are building in place.
34460     ac_srcdir=.
34461     ac_top_srcdir=$ac_top_builddir_sub
34462     ac_abs_top_srcdir=$ac_pwd ;;
34463   [\\/]* | ?:[\\/]* )  # Absolute name.
34464     ac_srcdir=$srcdir$ac_dir_suffix;
34465     ac_top_srcdir=$srcdir
34466     ac_abs_top_srcdir=$srcdir ;;
34467   *) # Relative name.
34468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34469     ac_top_srcdir=$ac_top_build_prefix$srcdir
34470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34471 esac
34472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34473
34474
34475   case $ac_mode in
34476   :F)
34477   #
34478   # CONFIG_FILE
34479   #
34480
34481   case $INSTALL in
34482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34483   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34484   esac
34485   ac_MKDIR_P=$MKDIR_P
34486   case $MKDIR_P in
34487   [\\/$]* | ?:[\\/]* ) ;;
34488   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34489   esac
34490 _ACEOF
34491
34492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34493 # If the template does not know about datarootdir, expand it.
34494 # FIXME: This hack should be removed a few years after 2.60.
34495 ac_datarootdir_hack=; ac_datarootdir_seen=
34496 ac_sed_dataroot='
34497 /datarootdir/ {
34498   p
34499   q
34500 }
34501 /@datadir@/p
34502 /@docdir@/p
34503 /@infodir@/p
34504 /@localedir@/p
34505 /@mandir@/p'
34506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34507 *datarootdir*) ac_datarootdir_seen=yes;;
34508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34509   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34511 _ACEOF
34512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34513   ac_datarootdir_hack='
34514   s&@datadir@&$datadir&g
34515   s&@docdir@&$docdir&g
34516   s&@infodir@&$infodir&g
34517   s&@localedir@&$localedir&g
34518   s&@mandir@&$mandir&g
34519   s&\\\${datarootdir}&$datarootdir&g' ;;
34520 esac
34521 _ACEOF
34522
34523 # Neutralize VPATH when `$srcdir' = `.'.
34524 # Shell code in configure.ac might set extrasub.
34525 # FIXME: do we really want to maintain this feature?
34526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34527 ac_sed_extra="$ac_vpsub
34528 $extrasub
34529 _ACEOF
34530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34531 :t
34532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34533 s|@configure_input@|$ac_sed_conf_input|;t t
34534 s&@top_builddir@&$ac_top_builddir_sub&;t t
34535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34536 s&@srcdir@&$ac_srcdir&;t t
34537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34538 s&@top_srcdir@&$ac_top_srcdir&;t t
34539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34540 s&@builddir@&$ac_builddir&;t t
34541 s&@abs_builddir@&$ac_abs_builddir&;t t
34542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34543 s&@INSTALL@&$ac_INSTALL&;t t
34544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34545 $ac_datarootdir_hack
34546 "
34547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34548   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34549
34550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34551   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34552   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34553   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34554 which seems to be undefined.  Please make sure it is defined" >&5
34555 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34556 which seems to be undefined.  Please make sure it is defined" >&2;}
34557
34558   rm -f "$tmp/stdin"
34559   case $ac_file in
34560   -) cat "$tmp/out" && rm -f "$tmp/out";;
34561   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34562   esac \
34563   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34564  ;;
34565   :H)
34566   #
34567   # CONFIG_HEADER
34568   #
34569   if test x"$ac_file" != x-; then
34570     {
34571       $as_echo "/* $configure_input  */" \
34572       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34573     } >"$tmp/config.h" \
34574       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34575     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34576       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34577 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34578     else
34579       rm -f "$ac_file"
34580       mv "$tmp/config.h" "$ac_file" \
34581         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34582     fi
34583   else
34584     $as_echo "/* $configure_input  */" \
34585       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34586       || as_fn_error $? "could not create -" "$LINENO" 5
34587   fi
34588 # Compute "$ac_file"'s index in $config_headers.
34589 _am_arg="$ac_file"
34590 _am_stamp_count=1
34591 for _am_header in $config_headers :; do
34592   case $_am_header in
34593     $_am_arg | $_am_arg:* )
34594       break ;;
34595     * )
34596       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34597   esac
34598 done
34599 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34600 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34601          X"$_am_arg" : 'X\(//\)[^/]' \| \
34602          X"$_am_arg" : 'X\(//\)$' \| \
34603          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34604 $as_echo X"$_am_arg" |
34605     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34606             s//\1/
34607             q
34608           }
34609           /^X\(\/\/\)[^/].*/{
34610             s//\1/
34611             q
34612           }
34613           /^X\(\/\/\)$/{
34614             s//\1/
34615             q
34616           }
34617           /^X\(\/\).*/{
34618             s//\1/
34619             q
34620           }
34621           s/.*/./; q'`/stamp-h$_am_stamp_count
34622  ;;
34623
34624   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34625 $as_echo "$as_me: executing $ac_file commands" >&6;}
34626  ;;
34627   esac
34628
34629
34630   case $ac_file$ac_mode in
34631     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34632 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34633 ac_prefix_conf_PKG=`echo MagickCore`
34634 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34635 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
34636 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34637 if test ".$ac_prefix_conf_INP" = "."; then
34638    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34639      case "$ac_file" in
34640         *.h) ac_prefix_conf_INP=$ac_file ;;
34641         *)
34642      esac
34643      test ".$ac_prefix_conf_INP" != "." && break
34644    done
34645 fi
34646 if test ".$ac_prefix_conf_INP" = "."; then
34647    case "$ac_prefix_conf_OUT" in
34648       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34649       ;;
34650       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34651       ;;
34652       *) ac_prefix_conf_INP=config.h
34653       ;;
34654    esac
34655 fi
34656 if test -z "$ac_prefix_conf_PKG" ; then
34657    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34658 else
34659   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34660      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34661   fi fi
34662   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34663 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34664   if test -f $ac_prefix_conf_INP ; then
34665     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34666     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34667     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34668     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34669     $as_echo "#endif/" >> conftest.prefix
34670     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34671     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34672     $as_echo "#endif/" >> conftest.prefix
34673     # now executing _script on _DEF input to create _OUT output file
34674     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
34675     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34676     echo ' ' >>$tmp/pconfig.h
34677     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34678
34679     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34680     echo ' ' >>$tmp/pconfig.h
34681     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34682     echo "#endif" >>$tmp/pconfig.h
34683     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34684       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34685 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34686     else
34687       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34688 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34690          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34691          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34692 $as_echo X"$ac_prefix_conf_OUT" |
34693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34694             s//\1/
34695             q
34696           }
34697           /^X\(\/\/\)[^/].*/{
34698             s//\1/
34699             q
34700           }
34701           /^X\(\/\/\)$/{
34702             s//\1/
34703             q
34704           }
34705           /^X\(\/\).*/{
34706             s//\1/
34707             q
34708           }
34709           s/.*/./; q'`
34710       as_dir="$ac_dir"; as_fn_mkdir_p
34711       rm -f "$ac_prefix_conf_OUT"
34712       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34713     fi
34714     cp conftest.prefix _configs.sed
34715   else
34716     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34717   fi
34718   rm -f conftest.*
34719 fi
34720  ;;
34721     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34722   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34723   # are listed without --file.  Let's play safe and only enable the eval
34724   # if we detect the quoting.
34725   case $CONFIG_FILES in
34726   *\'*) eval set x "$CONFIG_FILES" ;;
34727   *)   set x $CONFIG_FILES ;;
34728   esac
34729   shift
34730   for mf
34731   do
34732     # Strip MF so we end up with the name of the file.
34733     mf=`echo "$mf" | sed -e 's/:.*$//'`
34734     # Check whether this is an Automake generated Makefile or not.
34735     # We used to match only the files named `Makefile.in', but
34736     # some people rename them; so instead we look at the file content.
34737     # Grep'ing the first line is not enough: some people post-process
34738     # each Makefile.in and add a new line on top of each file to say so.
34739     # Grep'ing the whole file is not good either: AIX grep has a line
34740     # limit of 2048, but all sed's we know have understand at least 4000.
34741     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34742       dirpart=`$as_dirname -- "$mf" ||
34743 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34744          X"$mf" : 'X\(//\)[^/]' \| \
34745          X"$mf" : 'X\(//\)$' \| \
34746          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34747 $as_echo X"$mf" |
34748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34749             s//\1/
34750             q
34751           }
34752           /^X\(\/\/\)[^/].*/{
34753             s//\1/
34754             q
34755           }
34756           /^X\(\/\/\)$/{
34757             s//\1/
34758             q
34759           }
34760           /^X\(\/\).*/{
34761             s//\1/
34762             q
34763           }
34764           s/.*/./; q'`
34765     else
34766       continue
34767     fi
34768     # Extract the definition of DEPDIR, am__include, and am__quote
34769     # from the Makefile without running `make'.
34770     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34771     test -z "$DEPDIR" && continue
34772     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34773     test -z "am__include" && continue
34774     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34775     # When using ansi2knr, U may be empty or an underscore; expand it
34776     U=`sed -n 's/^U = //p' < "$mf"`
34777     # Find all dependency output files, they are included files with
34778     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34779     # simplest approach to changing $(DEPDIR) to its actual value in the
34780     # expansion.
34781     for file in `sed -n "
34782       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34783          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34784       # Make sure the directory exists.
34785       test -f "$dirpart/$file" && continue
34786       fdir=`$as_dirname -- "$file" ||
34787 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34788          X"$file" : 'X\(//\)[^/]' \| \
34789          X"$file" : 'X\(//\)$' \| \
34790          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34791 $as_echo X"$file" |
34792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34793             s//\1/
34794             q
34795           }
34796           /^X\(\/\/\)[^/].*/{
34797             s//\1/
34798             q
34799           }
34800           /^X\(\/\/\)$/{
34801             s//\1/
34802             q
34803           }
34804           /^X\(\/\).*/{
34805             s//\1/
34806             q
34807           }
34808           s/.*/./; q'`
34809       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34810       # echo "creating $dirpart/$file"
34811       echo '# dummy' > "$dirpart/$file"
34812     done
34813   done
34814 }
34815  ;;
34816     "libtool":C)
34817
34818     # See if we are running on zsh, and set the options which allow our
34819     # commands through without removal of \ escapes.
34820     if test -n "${ZSH_VERSION+set}" ; then
34821       setopt NO_GLOB_SUBST
34822     fi
34823
34824     cfgfile="${ofile}T"
34825     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34826     $RM "$cfgfile"
34827
34828     cat <<_LT_EOF >> "$cfgfile"
34829 #! $SHELL
34830
34831 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34832 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34835 #
34836 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34837 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34838 #                 Inc.
34839 #   Written by Gordon Matzigkeit, 1996
34840 #
34841 #   This file is part of GNU Libtool.
34842 #
34843 # GNU Libtool is free software; you can redistribute it and/or
34844 # modify it under the terms of the GNU General Public License as
34845 # published by the Free Software Foundation; either version 2 of
34846 # the License, or (at your option) any later version.
34847 #
34848 # As a special exception to the GNU General Public License,
34849 # if you distribute this file as part of a program or library that
34850 # is built using GNU Libtool, you may include this file under the
34851 # same distribution terms that you use for the rest of that program.
34852 #
34853 # GNU Libtool is distributed in the hope that it will be useful,
34854 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34856 # GNU General Public License for more details.
34857 #
34858 # You should have received a copy of the GNU General Public License
34859 # along with GNU Libtool; see the file COPYING.  If not, a copy
34860 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34861 # obtained by writing to the Free Software Foundation, Inc.,
34862 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34863
34864
34865 # The names of the tagged configurations supported by this script.
34866 available_tags="CXX "
34867
34868 # ### BEGIN LIBTOOL CONFIG
34869
34870 # A sed program that does not truncate output.
34871 SED=$lt_SED
34872
34873 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34874 Xsed="\$SED -e 1s/^X//"
34875
34876 # A grep program that handles long lines.
34877 GREP=$lt_GREP
34878
34879 # An ERE matcher.
34880 EGREP=$lt_EGREP
34881
34882 # A literal string matcher.
34883 FGREP=$lt_FGREP
34884
34885 # Shell to use when invoking shell scripts.
34886 SHELL=$lt_SHELL
34887
34888 # An echo program that protects backslashes.
34889 ECHO=$lt_ECHO
34890
34891 # Which release of libtool.m4 was used?
34892 macro_version=$macro_version
34893 macro_revision=$macro_revision
34894
34895 # Assembler program.
34896 AS=$lt_AS
34897
34898 # DLL creation program.
34899 DLLTOOL=$lt_DLLTOOL
34900
34901 # Object dumper program.
34902 OBJDUMP=$lt_OBJDUMP
34903
34904 # Whether or not to build shared libraries.
34905 build_libtool_libs=$enable_shared
34906
34907 # Whether or not to build static libraries.
34908 build_old_libs=$enable_static
34909
34910 # What type of objects to build.
34911 pic_mode=$pic_mode
34912
34913 # Whether or not to optimize for fast installation.
34914 fast_install=$enable_fast_install
34915
34916 # The host system.
34917 host_alias=$host_alias
34918 host=$host
34919 host_os=$host_os
34920
34921 # The build system.
34922 build_alias=$build_alias
34923 build=$build
34924 build_os=$build_os
34925
34926 # A BSD- or MS-compatible name lister.
34927 NM=$lt_NM
34928
34929 # Whether we need soft or hard links.
34930 LN_S=$lt_LN_S
34931
34932 # What is the maximum length of a command?
34933 max_cmd_len=$max_cmd_len
34934
34935 # Object file suffix (normally "o").
34936 objext=$ac_objext
34937
34938 # Executable file suffix (normally "").
34939 exeext=$exeext
34940
34941 # whether the shell understands "unset".
34942 lt_unset=$lt_unset
34943
34944 # turn spaces into newlines.
34945 SP2NL=$lt_lt_SP2NL
34946
34947 # turn newlines into spaces.
34948 NL2SP=$lt_lt_NL2SP
34949
34950 # Method to check whether dependent libraries are shared objects.
34951 deplibs_check_method=$lt_deplibs_check_method
34952
34953 # Command to use when deplibs_check_method == "file_magic".
34954 file_magic_cmd=$lt_file_magic_cmd
34955
34956 # The archiver.
34957 AR=$lt_AR
34958 AR_FLAGS=$lt_AR_FLAGS
34959
34960 # A symbol stripping program.
34961 STRIP=$lt_STRIP
34962
34963 # Commands used to install an old-style archive.
34964 RANLIB=$lt_RANLIB
34965 old_postinstall_cmds=$lt_old_postinstall_cmds
34966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34967
34968 # Whether to use a lock for old archive extraction.
34969 lock_old_archive_extraction=$lock_old_archive_extraction
34970
34971 # A C compiler.
34972 LTCC=$lt_CC
34973
34974 # LTCC compiler flags.
34975 LTCFLAGS=$lt_CFLAGS
34976
34977 # Take the output of nm and produce a listing of raw symbols and C names.
34978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34979
34980 # Transform the output of nm in a proper C declaration.
34981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34982
34983 # Transform the output of nm in a C name address pair.
34984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34985
34986 # Transform the output of nm in a C name address pair when lib prefix is needed.
34987 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34988
34989 # The name of the directory that contains temporary libtool files.
34990 objdir=$objdir
34991
34992 # Used to examine libraries when file_magic_cmd begins with "file".
34993 MAGIC_CMD=$MAGIC_CMD
34994
34995 # Must we lock files when doing compilation?
34996 need_locks=$lt_need_locks
34997
34998 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34999 DSYMUTIL=$lt_DSYMUTIL
35000
35001 # Tool to change global to local symbols on Mac OS X.
35002 NMEDIT=$lt_NMEDIT
35003
35004 # Tool to manipulate fat objects and archives on Mac OS X.
35005 LIPO=$lt_LIPO
35006
35007 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35008 OTOOL=$lt_OTOOL
35009
35010 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35011 OTOOL64=$lt_OTOOL64
35012
35013 # Old archive suffix (normally "a").
35014 libext=$libext
35015
35016 # Shared library suffix (normally ".so").
35017 shrext_cmds=$lt_shrext_cmds
35018
35019 # The commands to extract the exported symbol list from a shared archive.
35020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35021
35022 # Variables whose values should be saved in libtool wrapper scripts and
35023 # restored at link time.
35024 variables_saved_for_relink=$lt_variables_saved_for_relink
35025
35026 # Do we need the "lib" prefix for modules?
35027 need_lib_prefix=$need_lib_prefix
35028
35029 # Do we need a version for libraries?
35030 need_version=$need_version
35031
35032 # Library versioning type.
35033 version_type=$version_type
35034
35035 # Shared library runtime path variable.
35036 runpath_var=$runpath_var
35037
35038 # Shared library path variable.
35039 shlibpath_var=$shlibpath_var
35040
35041 # Is shlibpath searched before the hard-coded library search path?
35042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35043
35044 # Format of library name prefix.
35045 libname_spec=$lt_libname_spec
35046
35047 # List of archive names.  First name is the real one, the rest are links.
35048 # The last name is the one that the linker finds with -lNAME
35049 library_names_spec=$lt_library_names_spec
35050
35051 # The coded name of the library, if different from the real name.
35052 soname_spec=$lt_soname_spec
35053
35054 # Permission mode override for installation of shared libraries.
35055 install_override_mode=$lt_install_override_mode
35056
35057 # Command to use after installation of a shared archive.
35058 postinstall_cmds=$lt_postinstall_cmds
35059
35060 # Command to use after uninstallation of a shared archive.
35061 postuninstall_cmds=$lt_postuninstall_cmds
35062
35063 # Commands used to finish a libtool library installation in a directory.
35064 finish_cmds=$lt_finish_cmds
35065
35066 # As "finish_cmds", except a single script fragment to be evaled but
35067 # not shown.
35068 finish_eval=$lt_finish_eval
35069
35070 # Whether we should hardcode library paths into libraries.
35071 hardcode_into_libs=$hardcode_into_libs
35072
35073 # Compile-time system search path for libraries.
35074 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35075
35076 # Run-time system search path for libraries.
35077 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35078
35079 # Whether dlopen is supported.
35080 dlopen_support=$enable_dlopen
35081
35082 # Whether dlopen of programs is supported.
35083 dlopen_self=$enable_dlopen_self
35084
35085 # Whether dlopen of statically linked programs is supported.
35086 dlopen_self_static=$enable_dlopen_self_static
35087
35088 # Commands to strip libraries.
35089 old_striplib=$lt_old_striplib
35090 striplib=$lt_striplib
35091
35092
35093 # The linker used to build libraries.
35094 LD=$lt_LD
35095
35096 # How to create reloadable object files.
35097 reload_flag=$lt_reload_flag
35098 reload_cmds=$lt_reload_cmds
35099
35100 # Commands used to build an old-style archive.
35101 old_archive_cmds=$lt_old_archive_cmds
35102
35103 # A language specific compiler.
35104 CC=$lt_compiler
35105
35106 # Is the compiler the GNU compiler?
35107 with_gcc=$GCC
35108
35109 # Compiler flag to turn off builtin functions.
35110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35111
35112 # How to pass a linker flag through the compiler.
35113 wl=$lt_lt_prog_compiler_wl
35114
35115 # Additional compiler flags for building library objects.
35116 pic_flag=$lt_lt_prog_compiler_pic
35117
35118 # Compiler flag to prevent dynamic linking.
35119 link_static_flag=$lt_lt_prog_compiler_static
35120
35121 # Does compiler simultaneously support -c and -o options?
35122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35123
35124 # Whether or not to add -lc for building shared libraries.
35125 build_libtool_need_lc=$archive_cmds_need_lc
35126
35127 # Whether or not to disallow shared libs when runtime libs are static.
35128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35129
35130 # Compiler flag to allow reflexive dlopens.
35131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35132
35133 # Compiler flag to generate shared objects directly from archives.
35134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35135
35136 # Whether the compiler copes with passing no objects directly.
35137 compiler_needs_object=$lt_compiler_needs_object
35138
35139 # Create an old-style archive from a shared archive.
35140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35141
35142 # Create a temporary old-style archive to link instead of a shared archive.
35143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35144
35145 # Commands used to build a shared archive.
35146 archive_cmds=$lt_archive_cmds
35147 archive_expsym_cmds=$lt_archive_expsym_cmds
35148
35149 # Commands used to build a loadable module if different from building
35150 # a shared archive.
35151 module_cmds=$lt_module_cmds
35152 module_expsym_cmds=$lt_module_expsym_cmds
35153
35154 # Whether we are building with GNU ld or not.
35155 with_gnu_ld=$lt_with_gnu_ld
35156
35157 # Flag that allows shared libraries with undefined symbols to be built.
35158 allow_undefined_flag=$lt_allow_undefined_flag
35159
35160 # Flag that enforces no undefined symbols.
35161 no_undefined_flag=$lt_no_undefined_flag
35162
35163 # Flag to hardcode \$libdir into a binary during linking.
35164 # This must work even if \$libdir does not exist
35165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35166
35167 # If ld is used when linking, flag to hardcode \$libdir into a binary
35168 # during linking.  This must work even if \$libdir does not exist.
35169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35170
35171 # Whether we need a single "-rpath" flag with a separated argument.
35172 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35173
35174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35175 # DIR into the resulting binary.
35176 hardcode_direct=$hardcode_direct
35177
35178 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35179 # DIR into the resulting binary and the resulting library dependency is
35180 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35181 # library is relocated.
35182 hardcode_direct_absolute=$hardcode_direct_absolute
35183
35184 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35185 # into the resulting binary.
35186 hardcode_minus_L=$hardcode_minus_L
35187
35188 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35189 # into the resulting binary.
35190 hardcode_shlibpath_var=$hardcode_shlibpath_var
35191
35192 # Set to "yes" if building a shared library automatically hardcodes DIR
35193 # into the library and all subsequent libraries and executables linked
35194 # against it.
35195 hardcode_automatic=$hardcode_automatic
35196
35197 # Set to yes if linker adds runtime paths of dependent libraries
35198 # to runtime path list.
35199 inherit_rpath=$inherit_rpath
35200
35201 # Whether libtool must link a program against all its dependency libraries.
35202 link_all_deplibs=$link_all_deplibs
35203
35204 # Fix the shell variable \$srcfile for the compiler.
35205 fix_srcfile_path=$lt_fix_srcfile_path
35206
35207 # Set to "yes" if exported symbols are required.
35208 always_export_symbols=$always_export_symbols
35209
35210 # The commands to list exported symbols.
35211 export_symbols_cmds=$lt_export_symbols_cmds
35212
35213 # Symbols that should not be listed in the preloaded symbols.
35214 exclude_expsyms=$lt_exclude_expsyms
35215
35216 # Symbols that must always be exported.
35217 include_expsyms=$lt_include_expsyms
35218
35219 # Commands necessary for linking programs (against libraries) with templates.
35220 prelink_cmds=$lt_prelink_cmds
35221
35222 # Specify filename containing input files.
35223 file_list_spec=$lt_file_list_spec
35224
35225 # How to hardcode a shared library path into an executable.
35226 hardcode_action=$hardcode_action
35227
35228 # The directories searched by this compiler when creating a shared library.
35229 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35230
35231 # Dependencies to place before and after the objects being linked to
35232 # create a shared library.
35233 predep_objects=$lt_predep_objects
35234 postdep_objects=$lt_postdep_objects
35235 predeps=$lt_predeps
35236 postdeps=$lt_postdeps
35237
35238 # The library search path used internally by the compiler when linking
35239 # a shared library.
35240 compiler_lib_search_path=$lt_compiler_lib_search_path
35241
35242 # ### END LIBTOOL CONFIG
35243
35244 _LT_EOF
35245
35246   case $host_os in
35247   aix3*)
35248     cat <<\_LT_EOF >> "$cfgfile"
35249 # AIX sometimes has problems with the GCC collect2 program.  For some
35250 # reason, if we set the COLLECT_NAMES environment variable, the problems
35251 # vanish in a puff of smoke.
35252 if test "X${COLLECT_NAMES+set}" != Xset; then
35253   COLLECT_NAMES=
35254   export COLLECT_NAMES
35255 fi
35256 _LT_EOF
35257     ;;
35258   esac
35259
35260
35261 ltmain="$ac_aux_dir/ltmain.sh"
35262
35263
35264   # We use sed instead of cat because bash on DJGPP gets confused if
35265   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35266   # text mode, it properly converts lines to CR/LF.  This bash problem
35267   # is reportedly fixed, but why not run on old versions too?
35268   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35269     || (rm -f "$cfgfile"; exit 1)
35270
35271   case $xsi_shell in
35272   yes)
35273     cat << \_LT_EOF >> "$cfgfile"
35274
35275 # func_dirname file append nondir_replacement
35276 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35277 # otherwise set result to NONDIR_REPLACEMENT.
35278 func_dirname ()
35279 {
35280   case ${1} in
35281     */*) func_dirname_result="${1%/*}${2}" ;;
35282     *  ) func_dirname_result="${3}" ;;
35283   esac
35284 }
35285
35286 # func_basename file
35287 func_basename ()
35288 {
35289   func_basename_result="${1##*/}"
35290 }
35291
35292 # func_dirname_and_basename file append nondir_replacement
35293 # perform func_basename and func_dirname in a single function
35294 # call:
35295 #   dirname:  Compute the dirname of FILE.  If nonempty,
35296 #             add APPEND to the result, otherwise set result
35297 #             to NONDIR_REPLACEMENT.
35298 #             value returned in "$func_dirname_result"
35299 #   basename: Compute filename of FILE.
35300 #             value retuned in "$func_basename_result"
35301 # Implementation must be kept synchronized with func_dirname
35302 # and func_basename. For efficiency, we do not delegate to
35303 # those functions but instead duplicate the functionality here.
35304 func_dirname_and_basename ()
35305 {
35306   case ${1} in
35307     */*) func_dirname_result="${1%/*}${2}" ;;
35308     *  ) func_dirname_result="${3}" ;;
35309   esac
35310   func_basename_result="${1##*/}"
35311 }
35312
35313 # func_stripname prefix suffix name
35314 # strip PREFIX and SUFFIX off of NAME.
35315 # PREFIX and SUFFIX must not contain globbing or regex special
35316 # characters, hashes, percent signs, but SUFFIX may contain a leading
35317 # dot (in which case that matches only a dot).
35318 func_stripname ()
35319 {
35320   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35321   # positional parameters, so assign one to ordinary parameter first.
35322   func_stripname_result=${3}
35323   func_stripname_result=${func_stripname_result#"${1}"}
35324   func_stripname_result=${func_stripname_result%"${2}"}
35325 }
35326
35327 # func_opt_split
35328 func_opt_split ()
35329 {
35330   func_opt_split_opt=${1%%=*}
35331   func_opt_split_arg=${1#*=}
35332 }
35333
35334 # func_lo2o object
35335 func_lo2o ()
35336 {
35337   case ${1} in
35338     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35339     *)    func_lo2o_result=${1} ;;
35340   esac
35341 }
35342
35343 # func_xform libobj-or-source
35344 func_xform ()
35345 {
35346   func_xform_result=${1%.*}.lo
35347 }
35348
35349 # func_arith arithmetic-term...
35350 func_arith ()
35351 {
35352   func_arith_result=$(( $* ))
35353 }
35354
35355 # func_len string
35356 # STRING may not start with a hyphen.
35357 func_len ()
35358 {
35359   func_len_result=${#1}
35360 }
35361
35362 _LT_EOF
35363     ;;
35364   *) # Bourne compatible functions.
35365     cat << \_LT_EOF >> "$cfgfile"
35366
35367 # func_dirname file append nondir_replacement
35368 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35369 # otherwise set result to NONDIR_REPLACEMENT.
35370 func_dirname ()
35371 {
35372   # Extract subdirectory from the argument.
35373   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35374   if test "X$func_dirname_result" = "X${1}"; then
35375     func_dirname_result="${3}"
35376   else
35377     func_dirname_result="$func_dirname_result${2}"
35378   fi
35379 }
35380
35381 # func_basename file
35382 func_basename ()
35383 {
35384   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35385 }
35386
35387
35388 # func_stripname prefix suffix name
35389 # strip PREFIX and SUFFIX off of NAME.
35390 # PREFIX and SUFFIX must not contain globbing or regex special
35391 # characters, hashes, percent signs, but SUFFIX may contain a leading
35392 # dot (in which case that matches only a dot).
35393 # func_strip_suffix prefix name
35394 func_stripname ()
35395 {
35396   case ${2} in
35397     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35398     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35399   esac
35400 }
35401
35402 # sed scripts:
35403 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35404 my_sed_long_arg='1s/^-[^=]*=//'
35405
35406 # func_opt_split
35407 func_opt_split ()
35408 {
35409   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35410   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35411 }
35412
35413 # func_lo2o object
35414 func_lo2o ()
35415 {
35416   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35417 }
35418
35419 # func_xform libobj-or-source
35420 func_xform ()
35421 {
35422   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35423 }
35424
35425 # func_arith arithmetic-term...
35426 func_arith ()
35427 {
35428   func_arith_result=`expr "$@"`
35429 }
35430
35431 # func_len string
35432 # STRING may not start with a hyphen.
35433 func_len ()
35434 {
35435   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35436 }
35437
35438 _LT_EOF
35439 esac
35440
35441 case $lt_shell_append in
35442   yes)
35443     cat << \_LT_EOF >> "$cfgfile"
35444
35445 # func_append var value
35446 # Append VALUE to the end of shell variable VAR.
35447 func_append ()
35448 {
35449   eval "$1+=\$2"
35450 }
35451 _LT_EOF
35452     ;;
35453   *)
35454     cat << \_LT_EOF >> "$cfgfile"
35455
35456 # func_append var value
35457 # Append VALUE to the end of shell variable VAR.
35458 func_append ()
35459 {
35460   eval "$1=\$$1\$2"
35461 }
35462
35463 _LT_EOF
35464     ;;
35465   esac
35466
35467
35468   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35469     || (rm -f "$cfgfile"; exit 1)
35470
35471   mv -f "$cfgfile" "$ofile" ||
35472     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35473   chmod +x "$ofile"
35474
35475
35476     cat <<_LT_EOF >> "$ofile"
35477
35478 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35479
35480 # The linker used to build libraries.
35481 LD=$lt_LD_CXX
35482
35483 # How to create reloadable object files.
35484 reload_flag=$lt_reload_flag_CXX
35485 reload_cmds=$lt_reload_cmds_CXX
35486
35487 # Commands used to build an old-style archive.
35488 old_archive_cmds=$lt_old_archive_cmds_CXX
35489
35490 # A language specific compiler.
35491 CC=$lt_compiler_CXX
35492
35493 # Is the compiler the GNU compiler?
35494 with_gcc=$GCC_CXX
35495
35496 # Compiler flag to turn off builtin functions.
35497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35498
35499 # How to pass a linker flag through the compiler.
35500 wl=$lt_lt_prog_compiler_wl_CXX
35501
35502 # Additional compiler flags for building library objects.
35503 pic_flag=$lt_lt_prog_compiler_pic_CXX
35504
35505 # Compiler flag to prevent dynamic linking.
35506 link_static_flag=$lt_lt_prog_compiler_static_CXX
35507
35508 # Does compiler simultaneously support -c and -o options?
35509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35510
35511 # Whether or not to add -lc for building shared libraries.
35512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35513
35514 # Whether or not to disallow shared libs when runtime libs are static.
35515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35516
35517 # Compiler flag to allow reflexive dlopens.
35518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35519
35520 # Compiler flag to generate shared objects directly from archives.
35521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35522
35523 # Whether the compiler copes with passing no objects directly.
35524 compiler_needs_object=$lt_compiler_needs_object_CXX
35525
35526 # Create an old-style archive from a shared archive.
35527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35528
35529 # Create a temporary old-style archive to link instead of a shared archive.
35530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35531
35532 # Commands used to build a shared archive.
35533 archive_cmds=$lt_archive_cmds_CXX
35534 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35535
35536 # Commands used to build a loadable module if different from building
35537 # a shared archive.
35538 module_cmds=$lt_module_cmds_CXX
35539 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35540
35541 # Whether we are building with GNU ld or not.
35542 with_gnu_ld=$lt_with_gnu_ld_CXX
35543
35544 # Flag that allows shared libraries with undefined symbols to be built.
35545 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35546
35547 # Flag that enforces no undefined symbols.
35548 no_undefined_flag=$lt_no_undefined_flag_CXX
35549
35550 # Flag to hardcode \$libdir into a binary during linking.
35551 # This must work even if \$libdir does not exist
35552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35553
35554 # If ld is used when linking, flag to hardcode \$libdir into a binary
35555 # during linking.  This must work even if \$libdir does not exist.
35556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35557
35558 # Whether we need a single "-rpath" flag with a separated argument.
35559 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35560
35561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35562 # DIR into the resulting binary.
35563 hardcode_direct=$hardcode_direct_CXX
35564
35565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35566 # DIR into the resulting binary and the resulting library dependency is
35567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35568 # library is relocated.
35569 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35570
35571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35572 # into the resulting binary.
35573 hardcode_minus_L=$hardcode_minus_L_CXX
35574
35575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35576 # into the resulting binary.
35577 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35578
35579 # Set to "yes" if building a shared library automatically hardcodes DIR
35580 # into the library and all subsequent libraries and executables linked
35581 # against it.
35582 hardcode_automatic=$hardcode_automatic_CXX
35583
35584 # Set to yes if linker adds runtime paths of dependent libraries
35585 # to runtime path list.
35586 inherit_rpath=$inherit_rpath_CXX
35587
35588 # Whether libtool must link a program against all its dependency libraries.
35589 link_all_deplibs=$link_all_deplibs_CXX
35590
35591 # Fix the shell variable \$srcfile for the compiler.
35592 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35593
35594 # Set to "yes" if exported symbols are required.
35595 always_export_symbols=$always_export_symbols_CXX
35596
35597 # The commands to list exported symbols.
35598 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35599
35600 # Symbols that should not be listed in the preloaded symbols.
35601 exclude_expsyms=$lt_exclude_expsyms_CXX
35602
35603 # Symbols that must always be exported.
35604 include_expsyms=$lt_include_expsyms_CXX
35605
35606 # Commands necessary for linking programs (against libraries) with templates.
35607 prelink_cmds=$lt_prelink_cmds_CXX
35608
35609 # Specify filename containing input files.
35610 file_list_spec=$lt_file_list_spec_CXX
35611
35612 # How to hardcode a shared library path into an executable.
35613 hardcode_action=$hardcode_action_CXX
35614
35615 # The directories searched by this compiler when creating a shared library.
35616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35617
35618 # Dependencies to place before and after the objects being linked to
35619 # create a shared library.
35620 predep_objects=$lt_predep_objects_CXX
35621 postdep_objects=$lt_postdep_objects_CXX
35622 predeps=$lt_predeps_CXX
35623 postdeps=$lt_postdeps_CXX
35624
35625 # The library search path used internally by the compiler when linking
35626 # a shared library.
35627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35628
35629 # ### END LIBTOOL TAG CONFIG: CXX
35630 _LT_EOF
35631
35632  ;;
35633     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35634     "Magick-config.in":C) chmod +x magick/Magick-config ;;
35635     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35636     "Wand-config.in":C) chmod +x wand/Wand-config ;;
35637     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35638     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35639
35640   esac
35641 done # for ac_tag
35642
35643
35644 as_fn_exit 0
35645 _ACEOF
35646 ac_clean_files=$ac_clean_files_save
35647
35648 test $ac_write_fail = 0 ||
35649   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35650
35651
35652 # configure is writing to config.log, and then calls config.status.
35653 # config.status does its own redirection, appending to config.log.
35654 # Unfortunately, on DOS this fails, as config.log is still kept open
35655 # by configure, so config.status won't be able to write to it; its
35656 # output is simply discarded.  So we exec the FD to /dev/null,
35657 # effectively closing config.log, so it can be properly (re)opened and
35658 # appended to by config.status.  When coming back to configure, we
35659 # need to make the FD available again.
35660 if test "$no_create" != yes; then
35661   ac_cs_success=:
35662   ac_config_status_args=
35663   test "$silent" = yes &&
35664     ac_config_status_args="$ac_config_status_args --quiet"
35665   exec 5>/dev/null
35666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35667   exec 5>>config.log
35668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35669   # would make configure fail if this is the last instruction.
35670   $ac_cs_success || as_fn_exit 1
35671 fi
35672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35675 fi
35676
35677
35678 rm -f magick-version
35679
35680 result_dejavu_font_dir='none'
35681 if test "${dejavu_font_dir}x" != 'x'; then
35682     result_dejavu_font_dir=$dejavu_font_dir
35683 fi
35684
35685 result_ghostscript_font_dir='none'
35686 if test "${ghostscript_font_dir}x" != 'x'; then
35687     result_ghostscript_font_dir=$ghostscript_font_dir
35688 fi
35689
35690 result_windows_font_dir='none'
35691 if test "${windows_font_dir}x" != 'x'; then
35692     result_windows_font_dir=${windows_font_dir}
35693 fi
35694
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35696 ImageMagick is configured as follows. Please verify that this configuration
35697 matches your expectations.
35698
35699 Host system type: $host
35700 Build system type: $build
35701
35702                   Option                        Value
35703 -------------------------------------------------------------------------------
35704 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35705 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35706 Module support    --with-modules=$with_modules          $with_modules
35707 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35708 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35709 High Dynamic Range Imagery
35710                   --enable-hdri=$enable_hdri            $enable_hdri
35711
35712 Delegate Configuration:
35713 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35714 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35715 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35716 DJVU              --with-djvu=$with_djvu                $have_djvu
35717 DPS               --with-dps=$with_dps          $have_dps
35718 FFTW              --with-fftw=$with_fftw                $have_fftw
35719 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35720 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35721 FreeType          --with-freetype=$with_freetype                $have_freetype
35722 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35723 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35724 Ghostscript       None                          $PSDelegate ($GSVersion)
35725 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35726 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35727 Graphviz          --with-gvc=$with_gvc          $have_gvc
35728 JBIG              --with-jbig=$with_jbig                $have_jbig
35729 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35730 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35731 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35732 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35733 LQR               --with-lqr=$with_lqr          $have_lqr
35734 LZMA              --with-lzma=$with_lzma                $have_lzma
35735 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35736 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35737 PERL              --with-perl=$with_perl                $have_perl
35738 PNG               --with-png=$with_png          $have_png
35739 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35740 TIFF              --with-tiff=$with_tiff                $have_tiff
35741 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35742 WMF               --with-wmf=$with_wmf          $have_wmf
35743 X11               --with-x=$with_x                      $have_x
35744 XML               --with-xml=$with_xml          $have_xml
35745 ZLIB              --with-zlib=$with_zlib                $have_zlib
35746
35747 X11 Configuration:
35748       X_CFLAGS        = $X_CFLAGS
35749       X_PRE_LIBS      = $X_PRE_LIBS
35750       X_LIBS          = $X_LIBS
35751       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35752
35753 Options used to compile and link:
35754   PREFIX          = $PREFIX_DIR
35755   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35756   VERSION         = $PACKAGE_VERSION
35757   CC              = $CC
35758   CFLAGS          = $CFLAGS
35759   CPPFLAGS        = $MAGICK_CPPFLAGS
35760   PCFLAGS         = $MAGICK_PCFLAGS
35761   DEFS            = $DEFS
35762   LDFLAGS         = $LDFLAGS
35763   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35764   LIBS            = $MAGICK_LIBS
35765   CXX             = $CXX
35766   CXXFLAGS        = $CXXFLAGS
35767   FEATURES        = $MAGICK_FEATURES
35768 " >&5
35769 $as_echo "
35770 ImageMagick is configured as follows. Please verify that this configuration
35771 matches your expectations.
35772
35773 Host system type: $host
35774 Build system type: $build
35775
35776                   Option                        Value
35777 -------------------------------------------------------------------------------
35778 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35779 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35780 Module support    --with-modules=$with_modules          $with_modules
35781 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35782 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35783 High Dynamic Range Imagery
35784                   --enable-hdri=$enable_hdri            $enable_hdri
35785
35786 Delegate Configuration:
35787 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35788 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35789 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35790 DJVU              --with-djvu=$with_djvu                $have_djvu
35791 DPS               --with-dps=$with_dps          $have_dps
35792 FFTW              --with-fftw=$with_fftw                $have_fftw
35793 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35794 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35795 FreeType          --with-freetype=$with_freetype                $have_freetype
35796 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35797 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35798 Ghostscript       None                          $PSDelegate ($GSVersion)
35799 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35800 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35801 Graphviz          --with-gvc=$with_gvc          $have_gvc
35802 JBIG              --with-jbig=$with_jbig                $have_jbig
35803 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35804 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35805 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35806 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35807 LQR               --with-lqr=$with_lqr          $have_lqr
35808 LZMA              --with-lzma=$with_lzma                $have_lzma
35809 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35810 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35811 PERL              --with-perl=$with_perl                $have_perl
35812 PNG               --with-png=$with_png          $have_png
35813 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35814 TIFF              --with-tiff=$with_tiff                $have_tiff
35815 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35816 WMF               --with-wmf=$with_wmf          $have_wmf
35817 X11               --with-x=$with_x                      $have_x
35818 XML               --with-xml=$with_xml          $have_xml
35819 ZLIB              --with-zlib=$with_zlib                $have_zlib
35820
35821 X11 Configuration:
35822       X_CFLAGS        = $X_CFLAGS
35823       X_PRE_LIBS      = $X_PRE_LIBS
35824       X_LIBS          = $X_LIBS
35825       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35826
35827 Options used to compile and link:
35828   PREFIX          = $PREFIX_DIR
35829   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35830   VERSION         = $PACKAGE_VERSION
35831   CC              = $CC
35832   CFLAGS          = $CFLAGS
35833   CPPFLAGS        = $MAGICK_CPPFLAGS
35834   PCFLAGS         = $MAGICK_PCFLAGS
35835   DEFS            = $DEFS
35836   LDFLAGS         = $LDFLAGS
35837   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35838   LIBS            = $MAGICK_LIBS
35839   CXX             = $CXX
35840   CXXFLAGS        = $CXXFLAGS
35841   FEATURES        = $MAGICK_FEATURES
35842 " >&6; }