]> 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.68 for ImageMagick 7.0.0.
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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.imagemagick.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549 lt_ltdl_dir='ltdl'
550
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
553
554 test -n "$DJDIR" || exec 7<&0 </dev/null
555 exec 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573
574 # Identity of this package.
575 PACKAGE_NAME='ImageMagick'
576 PACKAGE_TARNAME='ImageMagick-7.0.0'
577 PACKAGE_VERSION='7.0.0'
578 PACKAGE_STRING='ImageMagick 7.0.0'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
580 PACKAGE_URL=''
581
582 ac_unique_file="MagickCore/MagickCore.h"
583 ac_config_libobj_dir=ltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 #  include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #  include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
619
620 ac_header_list=
621 ac_subst_vars='ltdl_LTLIBOBJS
622 ltdl_LIBOBJS
623 am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 MAGICK_FEATURES
627 MAGICK_LIBS
628 MAGICK_LDFLAGS
629 MAGICK_PCFLAGS
630 MAGICK_CPPFLAGS
631 MAGICK_CXXFLAGS
632 MAGICK_CFLAGS
633 MAGICK_DEP_LIBS
634 MAGICK_LTDLDEPS
635 MAGICK_LIBLTDL
636 OSX_GCOV_LDFLAG
637 DELEGATES
638 MAGICKCORE_PATH
639 PERL_SUPPORTS_DESTDIR
640 WITH_PERL_DYNAMIC_FALSE
641 WITH_PERL_DYNAMIC_TRUE
642 WITH_PERL_STATIC_FALSE
643 WITH_PERL_STATIC_TRUE
644 WITH_PERL_FALSE
645 WITH_PERL_TRUE
646 PERL_VERSION
647 GSVersion
648 GSPSDevice
649 GSPDFDevice
650 GSMonoDevice
651 GSEPSDevice
652 GSColorDevice
653 GSCMYKDevice
654 GSAlphaDevice
655 XPSVersion
656 XPSCMYKDevice
657 XPSColorDevice
658 XPSMonoDevice
659 PCLVersion
660 PCLCMYKDevice
661 PCLColorDevice
662 PCLMonoDevice
663 ZIP_DELEGATE_FALSE
664 ZIP_DELEGATE_TRUE
665 ZIP
666 P7ZIP_DELEGATE_FALSE
667 P7ZIP_DELEGATE_TRUE
668 P7ZIP
669 RPM_DELEGATE_FALSE
670 RPM_DELEGATE_TRUE
671 RPM
672 PERL
673 TAR
674 ShowImageDelegate
675 type_include_files
676 ghostscript_font_dir
677 windows_font_dir
678 dejavu_font_dir
679 PrintDelegate
680 ZipDelegate
681 XPSDelegate
682 WWWDecodeDelegate
683 WMFDecodeDelegate
684 UniconvertorDelegate
685 TXTDelegate
686 SCANDecodeDelegate
687 RSVGDecodeDelegate
688 RMDelegate
689 RLEEncodeDelegate
690 PSDelegate
691 POVDelegate
692 PGPDecodeDelegate
693 PCLDelegate
694 MVDelegate
695 MrSIDDecodeDelegate
696 MPEGEncodeDelegate
697 MPEGDecodeDelegate
698 MANDelegate
699 LaunchDelegate
700 LZWEncodeDelegate
701 LZWDecodeDelegate
702 LPRDelegate
703 LPDelegate
704 ILBMEncodeDelegate
705 ILBMDecodeDelegate
706 HTMLDecodeDelegate
707 HPGLDecodeDelegate
708 GnuplotDecodeDelegate
709 MogrifyDelegate
710 DisplayDelegate
711 ConvertDelegate
712 FIGDecodeDelegate
713 EditorDelegate
714 EchoDelegate
715 DVIDecodeDelegate
716 GVCDecodeDelegate
717 DNGDecodeDelegate
718 CatDelegate
719 CGMDecodeDelegate
720 BrowseDelegate
721 BZIPDelegate
722 BlenderDecodeDelegate
723 AutotraceDecodeDelegate
724 SHARE_PATH
725 CONFIGURE_PATH
726 DOCUMENTATION_PATH
727 FILTER_PATH
728 CODER_PATH
729 LIBRARY_PATH
730 EXECUTABLE_PATH
731 PERLMAINCC
732 XML_LIBS
733 XML_DELEGATE_FALSE
734 XML_DELEGATE_TRUE
735 xml2_config
736 WMF_LIBS
737 WMF_DELEGATE_FALSE
738 WMF_DELEGATE_TRUE
739 WEBP_LIBS
740 WEBP_DELEGATE_FALSE
741 WEBP_DELEGATE_TRUE
742 TIFF_LIBS
743 TIFF_DELEGATE_FALSE
744 TIFF_DELEGATE_TRUE
745 CAIRO_DELEGATE_FALSE
746 CAIRO_DELEGATE_TRUE
747 RSVG_DELEGATE_FALSE
748 RSVG_DELEGATE_TRUE
749 CAIRO_SVG_LIBS
750 CAIRO_SVG_CFLAGS
751 RSVG_LIBS
752 RSVG_CFLAGS
753 PNG_LIBS
754 PNG_DELEGATE_FALSE
755 PNG_DELEGATE_TRUE
756 OPENEXR_DELEGATE_FALSE
757 OPENEXR_DELEGATE_TRUE
758 OPENEXR_LIBS
759 OPENEXR_CFLAGS
760 LZMA_LIBS
761 LZMA_DELEGATE_FALSE
762 LZMA_DELEGATE_TRUE
763 LQR_DELEGATE_FALSE
764 LQR_DELEGATE_TRUE
765 LQR_LIBS
766 LQR_CFLAGS
767 LCMS_LIBS
768 LCMS_DELEGATE_FALSE
769 LCMS_DELEGATE_TRUE
770 JP2_LIBS
771 JP2_DELEGATE_FALSE
772 JP2_DELEGATE_TRUE
773 JPEG_LIBS
774 JPEG_DELEGATE_FALSE
775 JPEG_DELEGATE_TRUE
776 JBIG_LIBS
777 JBIG_DELEGATE_FALSE
778 JBIG_DELEGATE_TRUE
779 GVC_DELEGATE_FALSE
780 GVC_DELEGATE_TRUE
781 GVC_LIBS
782 GVC_CFLAGS
783 GS_LIBS
784 GS_DELEGATE_FALSE
785 GS_DELEGATE_TRUE
786 FREETYPE_LIBS
787 FREETYPE_DELEGATE_FALSE
788 FREETYPE_DELEGATE_TRUE
789 freetype_config
790 FONTCONFIG_DELEGATE_FALSE
791 FONTCONFIG_DELEGATE_TRUE
792 FONTCONFIG_LIBS
793 FONTCONFIG_CFLAGS
794 FPX_LIBS
795 FPX_DELEGATE_FALSE
796 FPX_DELEGATE_TRUE
797 FFTW_LIBS
798 FFTW_DELEGATE_FALSE
799 FFTW_DELEGATE_TRUE
800 DJVU_LIBS
801 DJVU_DELEGATE_FALSE
802 DJVU_DELEGATE_TRUE
803 DPS_LIBS
804 DPS_DELEGATE_FALSE
805 DPS_DELEGATE_TRUE
806 AUTOTRACE_DELEGATE_FALSE
807 AUTOTRACE_DELEGATE_TRUE
808 AUTOTRACE_LIBS
809 AUTOTRACE_CFLAGS
810 LIB_DL
811 ZLIB_LIBS
812 ZLIB_DELEGATE_FALSE
813 ZLIB_DELEGATE_TRUE
814 XEXT_LIBS
815 X11_LIBS
816 X11_DELEGATE_FALSE
817 X11_DELEGATE_TRUE
818 X_EXTRA_LIBS
819 X_LIBS
820 X_PRE_LIBS
821 X_CFLAGS
822 XMKMF
823 BZLIB_LIBS
824 BZLIB_DELEGATE_FALSE
825 BZLIB_DELEGATE_TRUE
826 CCMALLOCDelegate
827 UMEM_LIBS
828 HasUMEM_FALSE
829 HasUMEM_TRUE
830 THREAD_LIBS
831 GOMP_LIBS
832 WITH_MAGICK_PLUS_PLUS_FALSE
833 WITH_MAGICK_PLUS_PLUS_TRUE
834 OPENMP_CXXFLAGS
835 MATH_LIBS
836 POW_LIB
837 LIBOBJS
838 UINTPTR_F
839 UINTPTR_T
840 UINTMAX_F
841 UINTMAX_T
842 UINT64_F
843 UINT64_T
844 INT64_F
845 INT64_T
846 UINT32_F
847 UINT32_T
848 INT32_F
849 INT32_T
850 UINT16_T
851 INT16_T
852 UINT8_T
853 INT8_T
854 LIBRARY_EXTRA_CPPFLAGS
855 MODULE_EXTRA_CPPFLAGS
856 LIBSTDCLDFLAGS
857 PERL_MAKE_OPTIONS
858 QUANTUM_DEPTH
859 MAINT
860 MAINTAINER_MODE_FALSE
861 MAINTAINER_MODE_TRUE
862 MAGICK_HDRI
863 DLLDFLAGS
864 WITH_LTDL_FALSE
865 WITH_LTDL_TRUE
866 WITH_MODULES_FALSE
867 WITH_MODULES_TRUE
868 WITH_SHARED_LIBS_FALSE
869 WITH_SHARED_LIBS_TRUE
870 LTDLOPEN
871 LT_CONFIG_H
872 CONVENIENCE_LTDL_FALSE
873 CONVENIENCE_LTDL_TRUE
874 INSTALL_LTDL_FALSE
875 INSTALL_LTDL_TRUE
876 ARGZ_H
877 sys_symbol_underscore
878 LIBADD_DL
879 LT_DLPREOPEN
880 LIBADD_DLD_LINK
881 LIBADD_SHL_LOAD
882 LIBADD_DLOPEN
883 LT_DLLOADERS
884 INCLTDL
885 LTDLINCL
886 LTDLDEPS
887 LIBLTDL
888 LIBTOOL_DEPS
889 CXXCPP
890 OTOOL64
891 OTOOL
892 LIPO
893 NMEDIT
894 DSYMUTIL
895 MANIFEST_TOOL
896 RANLIB
897 ac_ct_AR
898 AR
899 NM
900 ac_ct_DUMPBIN
901 DUMPBIN
902 LIBTOOL
903 OBJDUMP
904 DLLTOOL
905 AS
906 LFS_CPPFLAGS
907 CL_LIBS
908 CL_CFLAGS
909 OPENMP_CFLAGS
910 PTHREAD_CFLAGS
911 PTHREAD_LIBS
912 PTHREAD_CC
913 ax_pthread_config
914 WinPathScript
915 USING_CL_FALSE
916 USING_CL_TRUE
917 CYGWIN_BUILD_FALSE
918 CYGWIN_BUILD_TRUE
919 WIN32_NATIVE_BUILD_FALSE
920 WIN32_NATIVE_BUILD_TRUE
921 WINGDI32_DELEGATE_FALSE
922 WINGDI32_DELEGATE_TRUE
923 GDI32_LIBS
924 PKG_CONFIG
925 LN_S
926 LD
927 FGREP
928 SED
929 am__fastdepCXX_FALSE
930 am__fastdepCXX_TRUE
931 CXXDEPMODE
932 ac_ct_CXX
933 CXXFLAGS
934 CXX
935 EGREP
936 GREP
937 CPP
938 am__fastdepCC_FALSE
939 am__fastdepCC_TRUE
940 CCDEPMODE
941 AMDEPBACKSLASH
942 AMDEP_FALSE
943 AMDEP_TRUE
944 am__quote
945 am__include
946 DEPDIR
947 OBJEXT
948 EXEEXT
949 ac_ct_CC
950 CPPFLAGS
951 LDFLAGS
952 CFLAGS
953 CC
954 DIRSEP
955 MAGICK_FILTER_MODULE_PATH
956 MAGICK_CONFIGURE_BUILD_PATH
957 MAGICK_CONFIGURE_SRC_PATH
958 MAGICK_CODER_MODULE_PATH
959 MAN_DIR
960 INFO_DIR
961 PERSISTINCLUDE_DIR
962 INCLUDE_DIR
963 LIB_DIR
964 LOCALSTATE_DIR
965 SHAREDSTATE_DIR
966 SYSCONF_DIR
967 DOC_DIR
968 DATA_DIR
969 LIBEXEC_DIR
970 SBIN_DIR
971 BIN_DIR
972 EXEC_PREFIX_DIR
973 PREFIX_DIR
974 CONFIG_STATUS_DEPENDENCIES
975 MAGICK_LIB_VERSION_NUMBER
976 MAGICK_LIB_VERSION_TEXT
977 MAGICK_LIB_VERSION
978 AM_BACKSLASH
979 AM_DEFAULT_VERBOSITY
980 am__untar
981 am__tar
982 AMTAR
983 am__leading_dot
984 SET_MAKE
985 AWK
986 mkdir_p
987 MKDIR_P
988 INSTALL_STRIP_PROGRAM
989 STRIP
990 install_sh
991 MAKEINFO
992 AUTOHEADER
993 AUTOMAKE
994 AUTOCONF
995 ACLOCAL
996 VERSION
997 PACKAGE
998 CYGPATH_W
999 am__isrc
1000 INSTALL_DATA
1001 INSTALL_SCRIPT
1002 INSTALL_PROGRAM
1003 PACKAGE_VERSION_ADDENDUM
1004 PACKAGE_RELEASE_DATE
1005 PACKAGE_LIB_VERSION_NUMBER
1006 PACKAGE_LIB_VERSION
1007 PACKAGE_CHANGE_DATE
1008 PACKAGE_RELEASE
1009 MAGICK_SVN_REVISION
1010 MAGICK_LIBRARY_VERSION_INFO
1011 MAGICK_LIBRARY_CURRENT_MIN
1012 MAGICK_LIBRARY_AGE
1013 MAGICK_LIBRARY_REVISION
1014 MAGICK_LIBRARY_CURRENT
1015 MAGICK_TARGET_OS
1016 MAGICK_TARGET_VENDOR
1017 MAGICK_TARGET_CPU
1018 target_os
1019 target_vendor
1020 target_cpu
1021 target
1022 host_os
1023 host_vendor
1024 host_cpu
1025 host
1026 build_os
1027 build_vendor
1028 build_cpu
1029 build
1030 CONFIGURE_ARGS
1031 DISTCHECK_CONFIG_FLAGS
1032 target_alias
1033 host_alias
1034 build_alias
1035 LIBS
1036 ECHO_T
1037 ECHO_N
1038 ECHO_C
1039 DEFS
1040 mandir
1041 localedir
1042 libdir
1043 psdir
1044 pdfdir
1045 dvidir
1046 htmldir
1047 infodir
1048 docdir
1049 oldincludedir
1050 includedir
1051 localstatedir
1052 sharedstatedir
1053 sysconfdir
1054 datadir
1055 datarootdir
1056 libexecdir
1057 sbindir
1058 bindir
1059 program_transform_name
1060 prefix
1061 exec_prefix
1062 PACKAGE_URL
1063 PACKAGE_BUGREPORT
1064 PACKAGE_STRING
1065 PACKAGE_VERSION
1066 PACKAGE_TARNAME
1067 PACKAGE_NAME
1068 PATH_SEPARATOR
1069 SHELL'
1070 ac_subst_files=''
1071 ac_user_opts='
1072 enable_option_checking
1073 enable_silent_rules
1074 enable_dependency_tracking
1075 with_gnu_ld
1076 with_dmalloc
1077 enable_bounds_checking
1078 enable_osx_universal_binary
1079 with_threads
1080 enable_openmp
1081 enable_opencl
1082 enable_largefile
1083 enable_shared
1084 enable_static
1085 with_pic
1086 enable_fast_install
1087 with_sysroot
1088 enable_libtool_lock
1089 with_included_ltdl
1090 with_ltdl_include
1091 with_ltdl_lib
1092 enable_ltdl_install
1093 with_modules
1094 enable_delegate_build
1095 enable_deprecated
1096 enable_installed
1097 enable_cipher
1098 enable_embeddable
1099 enable_hdri
1100 enable_assert
1101 enable_maintainer_mode
1102 enable_ccmalloc
1103 enable_efence
1104 enable_prof
1105 enable_gprof
1106 enable_gcov
1107 with_method_prefix
1108 with_quantum_depth
1109 with_cache
1110 with_frozenpaths
1111 with_magick_plus_plus
1112 with_perl
1113 with_perl_options
1114 with_umem
1115 with_libstdc
1116 with_bzlib
1117 with_x
1118 with_zlib
1119 with_autotrace
1120 with_dps
1121 with_djvu
1122 with_dejavu_font_dir
1123 with_fftw
1124 with_fpx
1125 with_fontconfig
1126 with_freetype
1127 with_gslib
1128 with_fontpath
1129 with_gs_font_dir
1130 with_gvc
1131 with_jbig
1132 with_jpeg
1133 with_jp2
1134 with_lcms
1135 with_lcms2
1136 with_lqr
1137 with_lzma
1138 with_openexr
1139 with_png
1140 with_rsvg
1141 with_tiff
1142 with_webp
1143 with_windows_font_dir
1144 with_wmf
1145 with_xml
1146 '
1147       ac_precious_vars='build_alias
1148 host_alias
1149 target_alias
1150 CC
1151 CFLAGS
1152 LDFLAGS
1153 LIBS
1154 CPPFLAGS
1155 CPP
1156 CXX
1157 CXXFLAGS
1158 CCC
1159 PKG_CONFIG
1160 CXXCPP
1161 XMKMF
1162 AUTOTRACE_CFLAGS
1163 AUTOTRACE_LIBS
1164 FONTCONFIG_CFLAGS
1165 FONTCONFIG_LIBS
1166 GVC_CFLAGS
1167 GVC_LIBS
1168 LQR_CFLAGS
1169 LQR_LIBS
1170 OPENEXR_CFLAGS
1171 OPENEXR_LIBS
1172 RSVG_CFLAGS
1173 RSVG_LIBS
1174 CAIRO_SVG_CFLAGS
1175 CAIRO_SVG_LIBS'
1176
1177
1178 # Initialize some variables set by options.
1179 ac_init_help=
1180 ac_init_version=false
1181 ac_unrecognized_opts=
1182 ac_unrecognized_sep=
1183 # The variables have the same names as the options, with
1184 # dashes changed to underlines.
1185 cache_file=/dev/null
1186 exec_prefix=NONE
1187 no_create=
1188 no_recursion=
1189 prefix=NONE
1190 program_prefix=NONE
1191 program_suffix=NONE
1192 program_transform_name=s,x,x,
1193 silent=
1194 site=
1195 srcdir=
1196 verbose=
1197 x_includes=NONE
1198 x_libraries=NONE
1199
1200 # Installation directory options.
1201 # These are left unexpanded so users can "make install exec_prefix=/foo"
1202 # and all the variables that are supposed to be based on exec_prefix
1203 # by default will actually change.
1204 # Use braces instead of parens because sh, perl, etc. also accept them.
1205 # (The list follows the same order as the GNU Coding Standards.)
1206 bindir='${exec_prefix}/bin'
1207 sbindir='${exec_prefix}/sbin'
1208 libexecdir='${exec_prefix}/libexec'
1209 datarootdir='${prefix}/share'
1210 datadir='${datarootdir}'
1211 sysconfdir='${prefix}/etc'
1212 sharedstatedir='${prefix}/com'
1213 localstatedir='${prefix}/var'
1214 includedir='${prefix}/include'
1215 oldincludedir='/usr/include'
1216 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217 infodir='${datarootdir}/info'
1218 htmldir='${docdir}'
1219 dvidir='${docdir}'
1220 pdfdir='${docdir}'
1221 psdir='${docdir}'
1222 libdir='${exec_prefix}/lib'
1223 localedir='${datarootdir}/locale'
1224 mandir='${datarootdir}/man'
1225
1226 ac_prev=
1227 ac_dashdash=
1228 for ac_option
1229 do
1230   # If the previous option needs an argument, assign it.
1231   if test -n "$ac_prev"; then
1232     eval $ac_prev=\$ac_option
1233     ac_prev=
1234     continue
1235   fi
1236
1237   case $ac_option in
1238   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239   *=)   ac_optarg= ;;
1240   *)    ac_optarg=yes ;;
1241   esac
1242
1243   # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245   case $ac_dashdash$ac_option in
1246   --)
1247     ac_dashdash=yes ;;
1248
1249   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250     ac_prev=bindir ;;
1251   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252     bindir=$ac_optarg ;;
1253
1254   -build | --build | --buil | --bui | --bu)
1255     ac_prev=build_alias ;;
1256   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257     build_alias=$ac_optarg ;;
1258
1259   -cache-file | --cache-file | --cache-fil | --cache-fi \
1260   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261     ac_prev=cache_file ;;
1262   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264     cache_file=$ac_optarg ;;
1265
1266   --config-cache | -C)
1267     cache_file=config.cache ;;
1268
1269   -datadir | --datadir | --datadi | --datad)
1270     ac_prev=datadir ;;
1271   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272     datadir=$ac_optarg ;;
1273
1274   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275   | --dataroo | --dataro | --datar)
1276     ac_prev=datarootdir ;;
1277   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279     datarootdir=$ac_optarg ;;
1280
1281   -disable-* | --disable-*)
1282     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283     # Reject names that are not valid shell variable names.
1284     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285       as_fn_error $? "invalid feature name: $ac_useropt"
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "enable_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval enable_$ac_useropt=no ;;
1296
1297   -docdir | --docdir | --docdi | --doc | --do)
1298     ac_prev=docdir ;;
1299   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300     docdir=$ac_optarg ;;
1301
1302   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1303     ac_prev=dvidir ;;
1304   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305     dvidir=$ac_optarg ;;
1306
1307   -enable-* | --enable-*)
1308     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311       as_fn_error $? "invalid feature name: $ac_useropt"
1312     ac_useropt_orig=$ac_useropt
1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314     case $ac_user_opts in
1315       *"
1316 "enable_$ac_useropt"
1317 "*) ;;
1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319          ac_unrecognized_sep=', ';;
1320     esac
1321     eval enable_$ac_useropt=\$ac_optarg ;;
1322
1323   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325   | --exec | --exe | --ex)
1326     ac_prev=exec_prefix ;;
1327   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329   | --exec=* | --exe=* | --ex=*)
1330     exec_prefix=$ac_optarg ;;
1331
1332   -gas | --gas | --ga | --g)
1333     # Obsolete; use --with-gas.
1334     with_gas=yes ;;
1335
1336   -help | --help | --hel | --he | -h)
1337     ac_init_help=long ;;
1338   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339     ac_init_help=recursive ;;
1340   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341     ac_init_help=short ;;
1342
1343   -host | --host | --hos | --ho)
1344     ac_prev=host_alias ;;
1345   -host=* | --host=* | --hos=* | --ho=*)
1346     host_alias=$ac_optarg ;;
1347
1348   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349     ac_prev=htmldir ;;
1350   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351   | --ht=*)
1352     htmldir=$ac_optarg ;;
1353
1354   -includedir | --includedir | --includedi | --included | --include \
1355   | --includ | --inclu | --incl | --inc)
1356     ac_prev=includedir ;;
1357   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358   | --includ=* | --inclu=* | --incl=* | --inc=*)
1359     includedir=$ac_optarg ;;
1360
1361   -infodir | --infodir | --infodi | --infod | --info | --inf)
1362     ac_prev=infodir ;;
1363   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364     infodir=$ac_optarg ;;
1365
1366   -libdir | --libdir | --libdi | --libd)
1367     ac_prev=libdir ;;
1368   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369     libdir=$ac_optarg ;;
1370
1371   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372   | --libexe | --libex | --libe)
1373     ac_prev=libexecdir ;;
1374   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375   | --libexe=* | --libex=* | --libe=*)
1376     libexecdir=$ac_optarg ;;
1377
1378   -localedir | --localedir | --localedi | --localed | --locale)
1379     ac_prev=localedir ;;
1380   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381     localedir=$ac_optarg ;;
1382
1383   -localstatedir | --localstatedir | --localstatedi | --localstated \
1384   | --localstate | --localstat | --localsta | --localst | --locals)
1385     ac_prev=localstatedir ;;
1386   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388     localstatedir=$ac_optarg ;;
1389
1390   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391     ac_prev=mandir ;;
1392   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393     mandir=$ac_optarg ;;
1394
1395   -nfp | --nfp | --nf)
1396     # Obsolete; use --without-fp.
1397     with_fp=no ;;
1398
1399   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400   | --no-cr | --no-c | -n)
1401     no_create=yes ;;
1402
1403   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1405     no_recursion=yes ;;
1406
1407   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409   | --oldin | --oldi | --old | --ol | --o)
1410     ac_prev=oldincludedir ;;
1411   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414     oldincludedir=$ac_optarg ;;
1415
1416   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417     ac_prev=prefix ;;
1418   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419     prefix=$ac_optarg ;;
1420
1421   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422   | --program-pre | --program-pr | --program-p)
1423     ac_prev=program_prefix ;;
1424   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426     program_prefix=$ac_optarg ;;
1427
1428   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429   | --program-suf | --program-su | --program-s)
1430     ac_prev=program_suffix ;;
1431   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433     program_suffix=$ac_optarg ;;
1434
1435   -program-transform-name | --program-transform-name \
1436   | --program-transform-nam | --program-transform-na \
1437   | --program-transform-n | --program-transform- \
1438   | --program-transform | --program-transfor \
1439   | --program-transfo | --program-transf \
1440   | --program-trans | --program-tran \
1441   | --progr-tra | --program-tr | --program-t)
1442     ac_prev=program_transform_name ;;
1443   -program-transform-name=* | --program-transform-name=* \
1444   | --program-transform-nam=* | --program-transform-na=* \
1445   | --program-transform-n=* | --program-transform-=* \
1446   | --program-transform=* | --program-transfor=* \
1447   | --program-transfo=* | --program-transf=* \
1448   | --program-trans=* | --program-tran=* \
1449   | --progr-tra=* | --program-tr=* | --program-t=*)
1450     program_transform_name=$ac_optarg ;;
1451
1452   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453     ac_prev=pdfdir ;;
1454   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455     pdfdir=$ac_optarg ;;
1456
1457   -psdir | --psdir | --psdi | --psd | --ps)
1458     ac_prev=psdir ;;
1459   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1460     psdir=$ac_optarg ;;
1461
1462   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463   | -silent | --silent | --silen | --sile | --sil)
1464     silent=yes ;;
1465
1466   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467     ac_prev=sbindir ;;
1468   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469   | --sbi=* | --sb=*)
1470     sbindir=$ac_optarg ;;
1471
1472   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474   | --sharedst | --shareds | --shared | --share | --shar \
1475   | --sha | --sh)
1476     ac_prev=sharedstatedir ;;
1477   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480   | --sha=* | --sh=*)
1481     sharedstatedir=$ac_optarg ;;
1482
1483   -site | --site | --sit)
1484     ac_prev=site ;;
1485   -site=* | --site=* | --sit=*)
1486     site=$ac_optarg ;;
1487
1488   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489     ac_prev=srcdir ;;
1490   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491     srcdir=$ac_optarg ;;
1492
1493   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494   | --syscon | --sysco | --sysc | --sys | --sy)
1495     ac_prev=sysconfdir ;;
1496   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498     sysconfdir=$ac_optarg ;;
1499
1500   -target | --target | --targe | --targ | --tar | --ta | --t)
1501     ac_prev=target_alias ;;
1502   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503     target_alias=$ac_optarg ;;
1504
1505   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1506     verbose=yes ;;
1507
1508   -version | --version | --versio | --versi | --vers | -V)
1509     ac_init_version=: ;;
1510
1511   -with-* | --with-*)
1512     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513     # Reject names that are not valid shell variable names.
1514     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515       as_fn_error $? "invalid package name: $ac_useropt"
1516     ac_useropt_orig=$ac_useropt
1517     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518     case $ac_user_opts in
1519       *"
1520 "with_$ac_useropt"
1521 "*) ;;
1522       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523          ac_unrecognized_sep=', ';;
1524     esac
1525     eval with_$ac_useropt=\$ac_optarg ;;
1526
1527   -without-* | --without-*)
1528     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529     # Reject names that are not valid shell variable names.
1530     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531       as_fn_error $? "invalid package name: $ac_useropt"
1532     ac_useropt_orig=$ac_useropt
1533     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534     case $ac_user_opts in
1535       *"
1536 "with_$ac_useropt"
1537 "*) ;;
1538       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539          ac_unrecognized_sep=', ';;
1540     esac
1541     eval with_$ac_useropt=no ;;
1542
1543   --x)
1544     # Obsolete; use --with-x.
1545     with_x=yes ;;
1546
1547   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548   | --x-incl | --x-inc | --x-in | --x-i)
1549     ac_prev=x_includes ;;
1550   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552     x_includes=$ac_optarg ;;
1553
1554   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556     ac_prev=x_libraries ;;
1557   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559     x_libraries=$ac_optarg ;;
1560
1561   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562 Try \`$0 --help' for more information"
1563     ;;
1564
1565   *=*)
1566     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567     # Reject names that are not valid shell variable names.
1568     case $ac_envvar in #(
1569       '' | [0-9]* | *[!_$as_cr_alnum]* )
1570       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1571     esac
1572     eval $ac_envvar=\$ac_optarg
1573     export $ac_envvar ;;
1574
1575   *)
1576     # FIXME: should be removed in autoconf 3.0.
1577     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1580     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1581     ;;
1582
1583   esac
1584 done
1585
1586 if test -n "$ac_prev"; then
1587   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1588   as_fn_error $? "missing argument to $ac_option"
1589 fi
1590
1591 if test -n "$ac_unrecognized_opts"; then
1592   case $enable_option_checking in
1593     no) ;;
1594     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1595     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1596   esac
1597 fi
1598
1599 # Check all directory arguments for consistency.
1600 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601                 datadir sysconfdir sharedstatedir localstatedir includedir \
1602                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603                 libdir localedir mandir
1604 do
1605   eval ac_val=\$$ac_var
1606   # Remove trailing slashes.
1607   case $ac_val in
1608     */ )
1609       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610       eval $ac_var=\$ac_val;;
1611   esac
1612   # Be sure to have absolute directory names.
1613   case $ac_val in
1614     [\\/$]* | ?:[\\/]* )  continue;;
1615     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1616   esac
1617   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1618 done
1619
1620 # There might be people who depend on the old broken behavior: `$host'
1621 # used to hold the argument of --host etc.
1622 # FIXME: To remove some day.
1623 build=$build_alias
1624 host=$host_alias
1625 target=$target_alias
1626
1627 # FIXME: To remove some day.
1628 if test "x$host_alias" != x; then
1629   if test "x$build_alias" = x; then
1630     cross_compiling=maybe
1631     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632     If a cross compiler is detected then cross compile mode will be used" >&2
1633   elif test "x$build_alias" != "x$host_alias"; then
1634     cross_compiling=yes
1635   fi
1636 fi
1637
1638 ac_tool_prefix=
1639 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1640
1641 test "$silent" = yes && exec 6>/dev/null
1642
1643
1644 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645 ac_ls_di=`ls -di .` &&
1646 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1647   as_fn_error $? "working directory cannot be determined"
1648 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1649   as_fn_error $? "pwd does not report name of working directory"
1650
1651
1652 # Find the source files, if location was not specified.
1653 if test -z "$srcdir"; then
1654   ac_srcdir_defaulted=yes
1655   # Try the directory containing this script, then the parent directory.
1656   ac_confdir=`$as_dirname -- "$as_myself" ||
1657 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658          X"$as_myself" : 'X\(//\)[^/]' \| \
1659          X"$as_myself" : 'X\(//\)$' \| \
1660          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661 $as_echo X"$as_myself" |
1662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1663             s//\1/
1664             q
1665           }
1666           /^X\(\/\/\)[^/].*/{
1667             s//\1/
1668             q
1669           }
1670           /^X\(\/\/\)$/{
1671             s//\1/
1672             q
1673           }
1674           /^X\(\/\).*/{
1675             s//\1/
1676             q
1677           }
1678           s/.*/./; q'`
1679   srcdir=$ac_confdir
1680   if test ! -r "$srcdir/$ac_unique_file"; then
1681     srcdir=..
1682   fi
1683 else
1684   ac_srcdir_defaulted=no
1685 fi
1686 if test ! -r "$srcdir/$ac_unique_file"; then
1687   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1688   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1689 fi
1690 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1691 ac_abs_confdir=`(
1692         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1693         pwd)`
1694 # When building in place, set srcdir=.
1695 if test "$ac_abs_confdir" = "$ac_pwd"; then
1696   srcdir=.
1697 fi
1698 # Remove unnecessary trailing slashes from srcdir.
1699 # Double slashes in file names in object file debugging info
1700 # mess up M-x gdb in Emacs.
1701 case $srcdir in
1702 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703 esac
1704 for ac_var in $ac_precious_vars; do
1705   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706   eval ac_env_${ac_var}_value=\$${ac_var}
1707   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709 done
1710
1711 #
1712 # Report the --help message.
1713 #
1714 if test "$ac_init_help" = "long"; then
1715   # Omit some internal or obsolete options to make the list less imposing.
1716   # This message is too long to be a string in the A/UX 3.1 sh.
1717   cat <<_ACEOF
1718 \`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
1719
1720 Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723 VAR=VALUE.  See below for descriptions of some of the useful variables.
1724
1725 Defaults for the options are specified in brackets.
1726
1727 Configuration:
1728   -h, --help              display this help and exit
1729       --help=short        display options specific to this package
1730       --help=recursive    display the short help of all the included packages
1731   -V, --version           display version information and exit
1732   -q, --quiet, --silent   do not print \`checking ...' messages
1733       --cache-file=FILE   cache test results in FILE [disabled]
1734   -C, --config-cache      alias for \`--cache-file=config.cache'
1735   -n, --no-create         do not create output files
1736       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1737
1738 Installation directories:
1739   --prefix=PREFIX         install architecture-independent files in PREFIX
1740                           [$ac_default_prefix]
1741   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1742                           [PREFIX]
1743
1744 By default, \`make install' will install all the files in
1745 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1746 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747 for instance \`--prefix=\$HOME'.
1748
1749 For better control, use the options below.
1750
1751 Fine tuning of the installation directories:
1752   --bindir=DIR            user executables [EPREFIX/bin]
1753   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1754   --libexecdir=DIR        program executables [EPREFIX/libexec]
1755   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1756   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1757   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1758   --libdir=DIR            object code libraries [EPREFIX/lib]
1759   --includedir=DIR        C header files [PREFIX/include]
1760   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1761   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1762   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1763   --infodir=DIR           info documentation [DATAROOTDIR/info]
1764   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1765   --mandir=DIR            man documentation [DATAROOTDIR/man]
1766   --docdir=DIR            documentation root
1767                           [DATAROOTDIR/doc/ImageMagick-7.0.0]
1768   --htmldir=DIR           html documentation [DOCDIR]
1769   --dvidir=DIR            dvi documentation [DOCDIR]
1770   --pdfdir=DIR            pdf documentation [DOCDIR]
1771   --psdir=DIR             ps documentation [DOCDIR]
1772 _ACEOF
1773
1774   cat <<\_ACEOF
1775
1776 Program names:
1777   --program-prefix=PREFIX            prepend PREFIX to installed program names
1778   --program-suffix=SUFFIX            append SUFFIX to installed program names
1779   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1780
1781 X features:
1782   --x-includes=DIR    X include files are in DIR
1783   --x-libraries=DIR   X library files are in DIR
1784
1785 System types:
1786   --build=BUILD     configure for building on BUILD [guessed]
1787   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1788   --target=TARGET   configure for building compilers for TARGET [HOST]
1789 _ACEOF
1790 fi
1791
1792 if test -n "$ac_init_help"; then
1793   case $ac_init_help in
1794      short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
1795    esac
1796   cat <<\_ACEOF
1797
1798 Optional Features:
1799   --disable-option-checking  ignore unrecognized --enable/--with options
1800   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1801   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1802   --enable-silent-rules          less verbose build output (undo: `make V=1')
1803   --disable-silent-rules         verbose build output (undo: `make V=0')
1804   --disable-dependency-tracking  speeds up one-time build
1805   --enable-dependency-tracking   do not reject slow dependency extractors
1806   --bounds-checking       enable run-time bounds-checking
1807   --enable-osx-universal-binary
1808                           build universal binary on OS X [[default=no]]
1809   --disable-openmp        do not use OpenMP
1810   --disable-opencl        do not use OpenCL
1811   --disable-largefile     omit support for large files
1812   --enable-shared[=PKGS]  build shared libraries [default=yes]
1813   --enable-static[=PKGS]  build static libraries [default=yes]
1814   --enable-fast-install[=PKGS]
1815                           optimize for fast installation [default=yes]
1816   --disable-libtool-lock  avoid locking (might break parallel builds)
1817   --enable-ltdl-install   install libltdl
1818   --enable-delegate-build look for delegate libraries in build directory
1819   --disable-deprecated    exclude deprecated methods in MagickCore and
1820                           MagickWand API's
1821   --disable-installed     Formally install ImageMagick under PREFIX
1822   --disable-cipher        disable enciphering and deciphering image pixels
1823   --enable-embeddable     enable self-contained, embeddable,
1824                           zero-configuration ImageMagick
1825   --enable-hdri           accurately represent the wide range of intensity
1826                           levels found in real scenes
1827   --disable-assert        disable assert() statements in build
1828   --enable-maintainer-mode  enable make rules and dependencies not useful
1829                           (and sometimes confusing) to the casual installer
1830   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1831   --enable-efence         enable 'efence' memory debug support
1832   --enable-prof           enable 'prof' profiling support
1833   --enable-gprof          enable 'gprof' profiling support
1834   --enable-gcov           enable 'gcov' profiling support
1835   --disable-assert        turn off assertions
1836
1837 Optional Packages:
1838   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1839   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1840   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1841   --with-dmalloc          use dmalloc, as in
1842                           http://www.dmalloc.com/dmalloc.tar.gz
1843   --without-threads       disable threads support
1844   --with-pic              try to use only PIC/non-PIC objects [default=use
1845                           both]
1846   --with-sysroot=DIR Search for dependent libraries within DIR
1847                         (or the compiler's sysroot if not specified).
1848   --with-included-ltdl    use the GNU ltdl sources included here
1849   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1850   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1851   --with-modules          enable building dynamically loadable modules
1852   --with-method-prefix=PREFIX
1853                           prefix MagickCore API methods
1854   --with-quantum-depth=DEPTH
1855                           number of bits in a pixel quantum (default 16)
1856   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1857                           memory)
1858   --with-frozenpaths      freeze delegate paths
1859   --without-magick-plus-plus
1860                           disable build/install of Magick++
1861   --with-perl             enable build/install of PerlMagick
1862   --with-perl-options=OPTIONS
1863                           options to pass on command-line when generating
1864                           PerlMagick's build file
1865   --with-umem             enable umem memory allocation library support
1866   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1867   --without-bzlib         disable BZLIB support
1868   --with-x                use the X Window System
1869   --without-zlib          disable ZLIB support
1870   --with-autotrace        enable autotrace support
1871   --without-dps           disable Display Postscript support
1872   --without-djvu          disable DjVu support
1873   --with-dejavu-font-dir=DIR
1874                           DejaVu font directory
1875   --without-fftw          disable FFTW support
1876   --without-fpx           disable FlashPIX support
1877   --without-fontconfig    disable fontconfig support
1878   --without-freetype      disable Freetype support
1879   --without-gslib         enable Ghostscript library support
1880   --with-fontpath=DIR     prepend to default font search path
1881   --with-gs-font-dir=DIR  Ghostscript font directory
1882   --without-gvc           disable GVC support
1883   --without-jbig          disable JBIG support
1884   --without-jpeg          disable JPEG support
1885   --without-jp2           disable JPEG-2000 support
1886   --without-lcms          disable lcms (v1.1X) support
1887   --without-lcms2         disable lcms (v2.X) support
1888   --without-lqr           disable Liquid Rescale support
1889   --without-lzma          disable LZMA support
1890   --without-openexr       disable OpenEXR support
1891   --without-png           disable PNG support
1892   --without-rsvg          disable RSVG support
1893   --without-tiff          disable TIFF support
1894   --without-webp          disable WEBP support
1895   --with-windows-font-dir=DIR
1896                           directory containing MS-Windows fonts
1897   --without-wmf           disable WMF support
1898   --without-xml           disable XML support
1899
1900 Some influential environment variables:
1901   CC          C compiler command
1902   CFLAGS      C compiler flags
1903   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1904               nonstandard directory <lib dir>
1905   LIBS        libraries to pass to the linker, e.g. -l<library>
1906   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1907               you have headers in a nonstandard directory <include dir>
1908   CPP         C preprocessor
1909   CXX         C++ compiler command
1910   CXXFLAGS    C++ compiler flags
1911   PKG_CONFIG  path to pkg-config utility
1912   CXXCPP      C++ preprocessor
1913   XMKMF       Path to xmkmf, Makefile generator for X Window System
1914   AUTOTRACE_CFLAGS
1915               C compiler flags for AUTOTRACE, overriding pkg-config
1916   AUTOTRACE_LIBS
1917               linker flags for AUTOTRACE, overriding pkg-config
1918   FONTCONFIG_CFLAGS
1919               C compiler flags for FONTCONFIG, overriding pkg-config
1920   FONTCONFIG_LIBS
1921               linker flags for FONTCONFIG, overriding pkg-config
1922   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1923   GVC_LIBS    linker flags for GVC, overriding pkg-config
1924   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1925   LQR_LIBS    linker flags for LQR, overriding pkg-config
1926   OPENEXR_CFLAGS
1927               C compiler flags for OPENEXR, overriding pkg-config
1928   OPENEXR_LIBS
1929               linker flags for OPENEXR, overriding pkg-config
1930   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1931   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1932   CAIRO_SVG_CFLAGS
1933               C compiler flags for CAIRO_SVG, overriding pkg-config
1934   CAIRO_SVG_LIBS
1935               linker flags for CAIRO_SVG, overriding pkg-config
1936
1937 Use these variables to override the choices made by `configure' or to help
1938 it to find libraries and programs with nonstandard names/locations.
1939
1940 Report bugs to <http://www.imagemagick.org>.
1941 _ACEOF
1942 ac_status=$?
1943 fi
1944
1945 if test "$ac_init_help" = "recursive"; then
1946   # If there are subdirs, report their specific --help.
1947   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948     test -d "$ac_dir" ||
1949       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950       continue
1951     ac_builddir=.
1952
1953 case "$ac_dir" in
1954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955 *)
1956   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1957   # A ".." for each directory in $ac_dir_suffix.
1958   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959   case $ac_top_builddir_sub in
1960   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1962   esac ;;
1963 esac
1964 ac_abs_top_builddir=$ac_pwd
1965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966 # for backward compatibility:
1967 ac_top_builddir=$ac_top_build_prefix
1968
1969 case $srcdir in
1970   .)  # We are building in place.
1971     ac_srcdir=.
1972     ac_top_srcdir=$ac_top_builddir_sub
1973     ac_abs_top_srcdir=$ac_pwd ;;
1974   [\\/]* | ?:[\\/]* )  # Absolute name.
1975     ac_srcdir=$srcdir$ac_dir_suffix;
1976     ac_top_srcdir=$srcdir
1977     ac_abs_top_srcdir=$srcdir ;;
1978   *) # Relative name.
1979     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980     ac_top_srcdir=$ac_top_build_prefix$srcdir
1981     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1982 esac
1983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1984
1985     cd "$ac_dir" || { ac_status=$?; continue; }
1986     # Check for guested configure.
1987     if test -f "$ac_srcdir/configure.gnu"; then
1988       echo &&
1989       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1990     elif test -f "$ac_srcdir/configure"; then
1991       echo &&
1992       $SHELL "$ac_srcdir/configure" --help=recursive
1993     else
1994       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1995     fi || ac_status=$?
1996     cd "$ac_pwd" || { ac_status=$?; break; }
1997   done
1998 fi
1999
2000 test -n "$ac_init_help" && exit $ac_status
2001 if $ac_init_version; then
2002   cat <<\_ACEOF
2003 ImageMagick configure 7.0.0
2004 generated by GNU Autoconf 2.68
2005
2006 Copyright (C) 2010 Free Software Foundation, Inc.
2007 This configure script is free software; the Free Software Foundation
2008 gives unlimited permission to copy, distribute and modify it.
2009 _ACEOF
2010   exit
2011 fi
2012
2013 ## ------------------------ ##
2014 ## Autoconf initialization. ##
2015 ## ------------------------ ##
2016
2017 # ac_fn_c_try_compile LINENO
2018 # --------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_c_try_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext
2024   if { { ac_try="$ac_compile"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_compile") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_c_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest.$ac_objext; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_c_try_compile
2054
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_c_try_cpp ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069   ac_status=$?
2070   if test -s conftest.err; then
2071     grep -v '^ *+' conftest.err >conftest.er1
2072     cat conftest.er1 >&5
2073     mv -f conftest.er1 conftest.err
2074   fi
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } > conftest.i && {
2077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078          test ! -s conftest.err
2079        }; then :
2080   ac_retval=0
2081 else
2082   $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085     ac_retval=1
2086 fi
2087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_c_try_cpp
2091
2092 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095 # the include files in INCLUDES and setting the cache variable VAR
2096 # accordingly.
2097 ac_fn_c_check_header_mongrel ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   if eval \${$3+:} false; then :
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104   $as_echo_n "(cached) " >&6
2105 fi
2106 eval ac_res=\$$3
2107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 else
2110   # Is the header compilable?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112 $as_echo_n "checking $2 usability... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 $4
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_header_compiler=yes
2120 else
2121   ac_header_compiler=no
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125 $as_echo "$ac_header_compiler" >&6; }
2126
2127 # Is the header present?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129 $as_echo_n "checking $2 presence... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 #include <$2>
2133 _ACEOF
2134 if ac_fn_c_try_cpp "$LINENO"; then :
2135   ac_header_preproc=yes
2136 else
2137   ac_header_preproc=no
2138 fi
2139 rm -f conftest.err conftest.i conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141 $as_echo "$ac_header_preproc" >&6; }
2142
2143 # So?  What about this header?
2144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145   yes:no: )
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150     ;;
2151   no:yes:* )
2152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2155 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2159 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2160     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 ( $as_echo "## ----------------------------------------- ##
2163 ## Report this to http://www.imagemagick.org ##
2164 ## ----------------------------------------- ##"
2165      ) | sed "s/^/$as_me: WARNING:     /" >&2
2166     ;;
2167 esac
2168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171   $as_echo_n "(cached) " >&6
2172 else
2173   eval "$3=\$ac_header_compiler"
2174 fi
2175 eval ac_res=\$$3
2176                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180
2181 } # ac_fn_c_check_header_mongrel
2182
2183 # ac_fn_c_try_run LINENO
2184 # ----------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186 # that executables *can* be run.
2187 ac_fn_c_try_run ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   if { { ac_try="$ac_link"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_link") 2>&5
2198   ac_status=$?
2199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201   { { case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207   (eval "$ac_try") 2>&5
2208   ac_status=$?
2209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210   test $ac_status = 0; }; }; then :
2211   ac_retval=0
2212 else
2213   $as_echo "$as_me: program exited with status $ac_status" >&5
2214        $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217        ac_retval=$ac_status
2218 fi
2219   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221   as_fn_set_status $ac_retval
2222
2223 } # ac_fn_c_try_run
2224
2225 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2226 # -------------------------------------------------------
2227 # Tests whether HEADER exists and can be compiled using the include files in
2228 # INCLUDES, setting the cache variable VAR accordingly.
2229 ac_fn_c_check_header_compile ()
2230 {
2231   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $4
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   eval "$3=yes"
2244 else
2245   eval "$3=no"
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 fi
2249 eval ac_res=\$$3
2250                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253
2254 } # ac_fn_c_check_header_compile
2255
2256 # ac_fn_cxx_try_compile LINENO
2257 # ----------------------------
2258 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_compile ()
2260 {
2261   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262   rm -f conftest.$ac_objext
2263   if { { ac_try="$ac_compile"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270   (eval "$ac_compile") 2>conftest.err
2271   ac_status=$?
2272   if test -s conftest.err; then
2273     grep -v '^ *+' conftest.err >conftest.er1
2274     cat conftest.er1 >&5
2275     mv -f conftest.er1 conftest.err
2276   fi
2277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278   test $ac_status = 0; } && {
2279          test -z "$ac_cxx_werror_flag" ||
2280          test ! -s conftest.err
2281        } && test -s conftest.$ac_objext; then :
2282   ac_retval=0
2283 else
2284   $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287         ac_retval=1
2288 fi
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290   as_fn_set_status $ac_retval
2291
2292 } # ac_fn_cxx_try_compile
2293
2294 # ac_fn_c_try_link LINENO
2295 # -----------------------
2296 # Try to link conftest.$ac_ext, and return whether this succeeded.
2297 ac_fn_c_try_link ()
2298 {
2299   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300   rm -f conftest.$ac_objext conftest$ac_exeext
2301   if { { ac_try="$ac_link"
2302 case "(($ac_try" in
2303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304   *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308   (eval "$ac_link") 2>conftest.err
2309   ac_status=$?
2310   if test -s conftest.err; then
2311     grep -v '^ *+' conftest.err >conftest.er1
2312     cat conftest.er1 >&5
2313     mv -f conftest.er1 conftest.err
2314   fi
2315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316   test $ac_status = 0; } && {
2317          test -z "$ac_c_werror_flag" ||
2318          test ! -s conftest.err
2319        } && test -s conftest$ac_exeext && {
2320          test "$cross_compiling" = yes ||
2321          $as_test_x conftest$ac_exeext
2322        }; then :
2323   ac_retval=0
2324 else
2325   $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328         ac_retval=1
2329 fi
2330   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332   # interfere with the next link command; also delete a directory that is
2333   # left behind by Apple's compiler.  We do this before executing the actions.
2334   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2335   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336   as_fn_set_status $ac_retval
2337
2338 } # ac_fn_c_try_link
2339
2340 # ac_fn_c_check_func LINENO FUNC VAR
2341 # ----------------------------------
2342 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2343 ac_fn_c_check_func ()
2344 {
2345   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval \${$3+:} false; then :
2349   $as_echo_n "(cached) " >&6
2350 else
2351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2355 #define $2 innocuous_$2
2356
2357 /* System header to define __stub macros and hopefully few prototypes,
2358     which can conflict with char $2 (); below.
2359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360     <limits.h> exists even on freestanding compilers.  */
2361
2362 #ifdef __STDC__
2363 # include <limits.h>
2364 #else
2365 # include <assert.h>
2366 #endif
2367
2368 #undef $2
2369
2370 /* Override any GCC internal prototype to avoid an error.
2371    Use char because int might match the return type of a GCC
2372    builtin and then its argument prototype would still apply.  */
2373 #ifdef __cplusplus
2374 extern "C"
2375 #endif
2376 char $2 ();
2377 /* The GNU C library defines this for functions which it implements
2378     to always fail with ENOSYS.  Some functions are actually named
2379     something starting with __ and the normal name is an alias.  */
2380 #if defined __stub_$2 || defined __stub___$2
2381 choke me
2382 #endif
2383
2384 int
2385 main ()
2386 {
2387 return $2 ();
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_link "$LINENO"; then :
2393   eval "$3=yes"
2394 else
2395   eval "$3=no"
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext \
2398     conftest$ac_exeext conftest.$ac_ext
2399 fi
2400 eval ac_res=\$$3
2401                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2404
2405 } # ac_fn_c_check_func
2406
2407 # ac_fn_cxx_try_cpp LINENO
2408 # ------------------------
2409 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410 ac_fn_cxx_try_cpp ()
2411 {
2412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413   if { { ac_try="$ac_cpp conftest.$ac_ext"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421   ac_status=$?
2422   if test -s conftest.err; then
2423     grep -v '^ *+' conftest.err >conftest.er1
2424     cat conftest.er1 >&5
2425     mv -f conftest.er1 conftest.err
2426   fi
2427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428   test $ac_status = 0; } > conftest.i && {
2429          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430          test ! -s conftest.err
2431        }; then :
2432   ac_retval=0
2433 else
2434   $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2436
2437     ac_retval=1
2438 fi
2439   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440   as_fn_set_status $ac_retval
2441
2442 } # ac_fn_cxx_try_cpp
2443
2444 # ac_fn_cxx_try_link LINENO
2445 # -------------------------
2446 # Try to link conftest.$ac_ext, and return whether this succeeded.
2447 ac_fn_cxx_try_link ()
2448 {
2449   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450   rm -f conftest.$ac_objext conftest$ac_exeext
2451   if { { ac_try="$ac_link"
2452 case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458   (eval "$ac_link") 2>conftest.err
2459   ac_status=$?
2460   if test -s conftest.err; then
2461     grep -v '^ *+' conftest.err >conftest.er1
2462     cat conftest.er1 >&5
2463     mv -f conftest.er1 conftest.err
2464   fi
2465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466   test $ac_status = 0; } && {
2467          test -z "$ac_cxx_werror_flag" ||
2468          test ! -s conftest.err
2469        } && test -s conftest$ac_exeext && {
2470          test "$cross_compiling" = yes ||
2471          $as_test_x conftest$ac_exeext
2472        }; then :
2473   ac_retval=0
2474 else
2475   $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477
2478         ac_retval=1
2479 fi
2480   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482   # interfere with the next link command; also delete a directory that is
2483   # left behind by Apple's compiler.  We do this before executing the actions.
2484   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2485   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486   as_fn_set_status $ac_retval
2487
2488 } # ac_fn_cxx_try_link
2489
2490 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2491 # ---------------------------------------------
2492 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2493 # accordingly.
2494 ac_fn_c_check_decl ()
2495 {
2496   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497   as_decl_name=`echo $2|sed 's/ *(.*//'`
2498   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2500 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2501 if eval \${$3+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $4
2507 int
2508 main ()
2509 {
2510 #ifndef $as_decl_name
2511 #ifdef __cplusplus
2512   (void) $as_decl_use;
2513 #else
2514   (void) $as_decl_name;
2515 #endif
2516 #endif
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_c_try_compile "$LINENO"; then :
2523   eval "$3=yes"
2524 else
2525   eval "$3=no"
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 fi
2529 eval ac_res=\$$3
2530                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533
2534 } # ac_fn_c_check_decl
2535
2536 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2537 # -------------------------------------------
2538 # Tests whether TYPE exists after having included INCLUDES, setting cache
2539 # variable VAR accordingly.
2540 ac_fn_c_check_type ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   eval "$3=no"
2549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h.  */
2551 $4
2552 int
2553 main ()
2554 {
2555 if (sizeof ($2))
2556          return 0;
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h.  */
2564 $4
2565 int
2566 main ()
2567 {
2568 if (sizeof (($2)))
2569             return 0;
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_c_try_compile "$LINENO"; then :
2575
2576 else
2577   eval "$3=yes"
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 fi
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 fi
2583 eval ac_res=\$$3
2584                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587
2588 } # ac_fn_c_check_type
2589
2590 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2591 # ----------------------------------------------------
2592 # Tries to find if the field MEMBER exists in type AGGR, after including
2593 # INCLUDES, setting cache variable VAR accordingly.
2594 ac_fn_c_check_member ()
2595 {
2596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2598 $as_echo_n "checking for $2.$3... " >&6; }
2599 if eval \${$4+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h.  */
2604 $5
2605 int
2606 main ()
2607 {
2608 static $2 ac_aggr;
2609 if (ac_aggr.$3)
2610 return 0;
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 if ac_fn_c_try_compile "$LINENO"; then :
2616   eval "$4=yes"
2617 else
2618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h.  */
2620 $5
2621 int
2622 main ()
2623 {
2624 static $2 ac_aggr;
2625 if (sizeof ac_aggr.$3)
2626 return 0;
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632   eval "$4=yes"
2633 else
2634   eval "$4=no"
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 fi
2640 eval ac_res=\$$4
2641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2644
2645 } # ac_fn_c_check_member
2646
2647 # ac_fn_c_find_intX_t LINENO BITS VAR
2648 # -----------------------------------
2649 # Finds a signed integer type with width BITS, setting cache variable VAR
2650 # accordingly.
2651 ac_fn_c_find_intX_t ()
2652 {
2653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2655 $as_echo_n "checking for int$2_t... " >&6; }
2656 if eval \${$3+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   eval "$3=no"
2660      # Order is important - never check a type that is potentially smaller
2661      # than half of the expected target width.
2662      for ac_type in int$2_t 'int' 'long int' \
2663          'long long int' 'short int' 'signed char'; do
2664        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h.  */
2666 $ac_includes_default
2667              enum { N = $2 / 2 - 1 };
2668 int
2669 main ()
2670 {
2671 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2672 test_array [0] = 0
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h.  */
2681 $ac_includes_default
2682                 enum { N = $2 / 2 - 1 };
2683 int
2684 main ()
2685 {
2686 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2687                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2688 test_array [0] = 0
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2695
2696 else
2697   case $ac_type in #(
2698   int$2_t) :
2699     eval "$3=yes" ;; #(
2700   *) :
2701     eval "$3=\$ac_type" ;;
2702 esac
2703 fi
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707        if eval test \"x\$"$3"\" = x"no"; then :
2708
2709 else
2710   break
2711 fi
2712      done
2713 fi
2714 eval ac_res=\$$3
2715                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719 } # ac_fn_c_find_intX_t
2720
2721 # ac_fn_c_find_uintX_t LINENO BITS VAR
2722 # ------------------------------------
2723 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2724 # accordingly.
2725 ac_fn_c_find_uintX_t ()
2726 {
2727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2729 $as_echo_n "checking for uint$2_t... " >&6; }
2730 if eval \${$3+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   eval "$3=no"
2734      # Order is important - never check a type that is potentially smaller
2735      # than half of the expected target width.
2736      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2737          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2738        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h.  */
2740 $ac_includes_default
2741 int
2742 main ()
2743 {
2744 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2745 test_array [0] = 0
2746
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 if ac_fn_c_try_compile "$LINENO"; then :
2752   case $ac_type in #(
2753   uint$2_t) :
2754     eval "$3=yes" ;; #(
2755   *) :
2756     eval "$3=\$ac_type" ;;
2757 esac
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760        if eval test \"x\$"$3"\" = x"no"; then :
2761
2762 else
2763   break
2764 fi
2765      done
2766 fi
2767 eval ac_res=\$$3
2768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771
2772 } # ac_fn_c_find_uintX_t
2773
2774 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2775 # --------------------------------------------
2776 # Tries to find the compile-time value of EXPR in a program that includes
2777 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2778 # computed
2779 ac_fn_c_compute_int ()
2780 {
2781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782   if test "$cross_compiling" = yes; then
2783     # Depending upon the size, compute the lo and hi bounds.
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h.  */
2786 $4
2787 int
2788 main ()
2789 {
2790 static int test_array [1 - 2 * !(($2) >= 0)];
2791 test_array [0] = 0
2792
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 if ac_fn_c_try_compile "$LINENO"; then :
2798   ac_lo=0 ac_mid=0
2799   while :; do
2800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h.  */
2802 $4
2803 int
2804 main ()
2805 {
2806 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 test_array [0] = 0
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814   ac_hi=$ac_mid; break
2815 else
2816   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817                         if test $ac_lo -le $ac_mid; then
2818                           ac_lo= ac_hi=
2819                           break
2820                         fi
2821                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824   done
2825 else
2826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h.  */
2828 $4
2829 int
2830 main ()
2831 {
2832 static int test_array [1 - 2 * !(($2) < 0)];
2833 test_array [0] = 0
2834
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2840   ac_hi=-1 ac_mid=-1
2841   while :; do
2842     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844 $4
2845 int
2846 main ()
2847 {
2848 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2849 test_array [0] = 0
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856   ac_lo=$ac_mid; break
2857 else
2858   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859                         if test $ac_mid -le $ac_hi; then
2860                           ac_lo= ac_hi=
2861                           break
2862                         fi
2863                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866   done
2867 else
2868   ac_lo= ac_hi=
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h.  */
2878 $4
2879 int
2880 main ()
2881 {
2882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883 test_array [0] = 0
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"; then :
2890   ac_hi=$ac_mid
2891 else
2892   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2893 fi
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 done
2896 case $ac_lo in #((
2897 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2898 '') ac_retval=1 ;;
2899 esac
2900   else
2901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h.  */
2903 $4
2904 static long int longval () { return $2; }
2905 static unsigned long int ulongval () { return $2; }
2906 #include <stdio.h>
2907 #include <stdlib.h>
2908 int
2909 main ()
2910 {
2911
2912   FILE *f = fopen ("conftest.val", "w");
2913   if (! f)
2914     return 1;
2915   if (($2) < 0)
2916     {
2917       long int i = longval ();
2918       if (i != ($2))
2919         return 1;
2920       fprintf (f, "%ld", i);
2921     }
2922   else
2923     {
2924       unsigned long int i = ulongval ();
2925       if (i != ($2))
2926         return 1;
2927       fprintf (f, "%lu", i);
2928     }
2929   /* Do not output a trailing newline, as this causes \r\n confusion
2930      on some platforms.  */
2931   return ferror (f) || fclose (f) != 0;
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 if ac_fn_c_try_run "$LINENO"; then :
2938   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2939 else
2940   ac_retval=1
2941 fi
2942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2943   conftest.$ac_objext conftest.beam conftest.$ac_ext
2944 rm -f conftest.val
2945
2946   fi
2947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2948   as_fn_set_status $ac_retval
2949
2950 } # ac_fn_c_compute_int
2951
2952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2953 # ---------------------------------------------------------
2954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2955 # the include files in INCLUDES and setting the cache variable VAR
2956 # accordingly.
2957 ac_fn_cxx_check_header_mongrel ()
2958 {
2959   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2960   if eval \${$3+:} false; then :
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2962 $as_echo_n "checking for $2... " >&6; }
2963 if eval \${$3+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 fi
2966 eval ac_res=\$$3
2967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968 $as_echo "$ac_res" >&6; }
2969 else
2970   # Is the header compilable?
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2972 $as_echo_n "checking $2 usability... " >&6; }
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h.  */
2975 $4
2976 #include <$2>
2977 _ACEOF
2978 if ac_fn_cxx_try_compile "$LINENO"; then :
2979   ac_header_compiler=yes
2980 else
2981   ac_header_compiler=no
2982 fi
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2985 $as_echo "$ac_header_compiler" >&6; }
2986
2987 # Is the header present?
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2989 $as_echo_n "checking $2 presence... " >&6; }
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h.  */
2992 #include <$2>
2993 _ACEOF
2994 if ac_fn_cxx_try_cpp "$LINENO"; then :
2995   ac_header_preproc=yes
2996 else
2997   ac_header_preproc=no
2998 fi
2999 rm -f conftest.err conftest.i conftest.$ac_ext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3001 $as_echo "$ac_header_preproc" >&6; }
3002
3003 # So?  What about this header?
3004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3005   yes:no: )
3006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3010     ;;
3011   no:yes:* )
3012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3014     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3015 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3016     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3018     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3019 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3022 ( $as_echo "## ----------------------------------------- ##
3023 ## Report this to http://www.imagemagick.org ##
3024 ## ----------------------------------------- ##"
3025      ) | sed "s/^/$as_me: WARNING:     /" >&2
3026     ;;
3027 esac
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029 $as_echo_n "checking for $2... " >&6; }
3030 if eval \${$3+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   eval "$3=\$ac_header_compiler"
3034 fi
3035 eval ac_res=\$$3
3036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037 $as_echo "$ac_res" >&6; }
3038 fi
3039   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3040
3041 } # ac_fn_cxx_check_header_mongrel
3042 cat >config.log <<_ACEOF
3043 This file contains any messages produced by compilers while
3044 running configure, to aid debugging if configure makes a mistake.
3045
3046 It was created by ImageMagick $as_me 7.0.0, which was
3047 generated by GNU Autoconf 2.68.  Invocation command line was
3048
3049   $ $0 $@
3050
3051 _ACEOF
3052 exec 5>>config.log
3053 {
3054 cat <<_ASUNAME
3055 ## --------- ##
3056 ## Platform. ##
3057 ## --------- ##
3058
3059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3064
3065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3066 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3067
3068 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3069 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3071 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3072 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3073 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3074 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3075
3076 _ASUNAME
3077
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083     $as_echo "PATH: $as_dir"
3084   done
3085 IFS=$as_save_IFS
3086
3087 } >&5
3088
3089 cat >&5 <<_ACEOF
3090
3091
3092 ## ----------- ##
3093 ## Core tests. ##
3094 ## ----------- ##
3095
3096 _ACEOF
3097
3098
3099 # Keep a trace of the command line.
3100 # Strip out --no-create and --no-recursion so they do not pile up.
3101 # Strip out --silent because we don't want to record it for future runs.
3102 # Also quote any args containing shell meta-characters.
3103 # Make two passes to allow for proper duplicate-argument suppression.
3104 ac_configure_args=
3105 ac_configure_args0=
3106 ac_configure_args1=
3107 ac_must_keep_next=false
3108 for ac_pass in 1 2
3109 do
3110   for ac_arg
3111   do
3112     case $ac_arg in
3113     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3114     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3115     | -silent | --silent | --silen | --sile | --sil)
3116       continue ;;
3117     *\'*)
3118       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3119     esac
3120     case $ac_pass in
3121     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3122     2)
3123       as_fn_append ac_configure_args1 " '$ac_arg'"
3124       if test $ac_must_keep_next = true; then
3125         ac_must_keep_next=false # Got value, back to normal.
3126       else
3127         case $ac_arg in
3128           *=* | --config-cache | -C | -disable-* | --disable-* \
3129           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3130           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3131           | -with-* | --with-* | -without-* | --without-* | --x)
3132             case "$ac_configure_args0 " in
3133               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3134             esac
3135             ;;
3136           -* ) ac_must_keep_next=true ;;
3137         esac
3138       fi
3139       as_fn_append ac_configure_args " '$ac_arg'"
3140       ;;
3141     esac
3142   done
3143 done
3144 { ac_configure_args0=; unset ac_configure_args0;}
3145 { ac_configure_args1=; unset ac_configure_args1;}
3146
3147 # When interrupted or exit'd, cleanup temporary files, and complete
3148 # config.log.  We remove comments because anyway the quotes in there
3149 # would cause problems or look ugly.
3150 # WARNING: Use '\'' to represent an apostrophe within the trap.
3151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3152 trap 'exit_status=$?
3153   # Save into config.log some information that might help in debugging.
3154   {
3155     echo
3156
3157     $as_echo "## ---------------- ##
3158 ## Cache variables. ##
3159 ## ---------------- ##"
3160     echo
3161     # The following way of writing the cache mishandles newlines in values,
3162 (
3163   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3164     eval ac_val=\$$ac_var
3165     case $ac_val in #(
3166     *${as_nl}*)
3167       case $ac_var in #(
3168       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3170       esac
3171       case $ac_var in #(
3172       _ | IFS | as_nl) ;; #(
3173       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3174       *) { eval $ac_var=; unset $ac_var;} ;;
3175       esac ;;
3176     esac
3177   done
3178   (set) 2>&1 |
3179     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3180     *${as_nl}ac_space=\ *)
3181       sed -n \
3182         "s/'\''/'\''\\\\'\'''\''/g;
3183           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3184       ;; #(
3185     *)
3186       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3187       ;;
3188     esac |
3189     sort
3190 )
3191     echo
3192
3193     $as_echo "## ----------------- ##
3194 ## Output variables. ##
3195 ## ----------------- ##"
3196     echo
3197     for ac_var in $ac_subst_vars
3198     do
3199       eval ac_val=\$$ac_var
3200       case $ac_val in
3201       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202       esac
3203       $as_echo "$ac_var='\''$ac_val'\''"
3204     done | sort
3205     echo
3206
3207     if test -n "$ac_subst_files"; then
3208       $as_echo "## ------------------- ##
3209 ## File substitutions. ##
3210 ## ------------------- ##"
3211       echo
3212       for ac_var in $ac_subst_files
3213       do
3214         eval ac_val=\$$ac_var
3215         case $ac_val in
3216         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3217         esac
3218         $as_echo "$ac_var='\''$ac_val'\''"
3219       done | sort
3220       echo
3221     fi
3222
3223     if test -s confdefs.h; then
3224       $as_echo "## ----------- ##
3225 ## confdefs.h. ##
3226 ## ----------- ##"
3227       echo
3228       cat confdefs.h
3229       echo
3230     fi
3231     test "$ac_signal" != 0 &&
3232       $as_echo "$as_me: caught signal $ac_signal"
3233     $as_echo "$as_me: exit $exit_status"
3234   } >&5
3235   rm -f core *.core core.conftest.* &&
3236     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3237     exit $exit_status
3238 ' 0
3239 for ac_signal in 1 2 13 15; do
3240   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3241 done
3242 ac_signal=0
3243
3244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3245 rm -f -r conftest* confdefs.h
3246
3247 $as_echo "/* confdefs.h */" > confdefs.h
3248
3249 # Predefined preprocessor variables.
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_NAME "$PACKAGE_NAME"
3253 _ACEOF
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3257 _ACEOF
3258
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3261 _ACEOF
3262
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_STRING "$PACKAGE_STRING"
3265 _ACEOF
3266
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3269 _ACEOF
3270
3271 cat >>confdefs.h <<_ACEOF
3272 #define PACKAGE_URL "$PACKAGE_URL"
3273 _ACEOF
3274
3275
3276 # Let the site file select an alternate cache file if it wants to.
3277 # Prefer an explicitly selected file to automatically selected ones.
3278 ac_site_file1=NONE
3279 ac_site_file2=NONE
3280 if test -n "$CONFIG_SITE"; then
3281   # We do not want a PATH search for config.site.
3282   case $CONFIG_SITE in #((
3283     -*)  ac_site_file1=./$CONFIG_SITE;;
3284     */*) ac_site_file1=$CONFIG_SITE;;
3285     *)   ac_site_file1=./$CONFIG_SITE;;
3286   esac
3287 elif test "x$prefix" != xNONE; then
3288   ac_site_file1=$prefix/share/config.site
3289   ac_site_file2=$prefix/etc/config.site
3290 else
3291   ac_site_file1=$ac_default_prefix/share/config.site
3292   ac_site_file2=$ac_default_prefix/etc/config.site
3293 fi
3294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3295 do
3296   test "x$ac_site_file" = xNONE && continue
3297   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3298     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300     sed 's/^/| /' "$ac_site_file" >&5
3301     . "$ac_site_file" \
3302       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "failed to load site script $ac_site_file
3305 See \`config.log' for more details" "$LINENO" 5; }
3306   fi
3307 done
3308
3309 if test -r "$cache_file"; then
3310   # Some versions of bash will fail to source /dev/null (special files
3311   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3312   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3313     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3314 $as_echo "$as_me: loading cache $cache_file" >&6;}
3315     case $cache_file in
3316       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3317       *)                      . "./$cache_file";;
3318     esac
3319   fi
3320 else
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3322 $as_echo "$as_me: creating cache $cache_file" >&6;}
3323   >$cache_file
3324 fi
3325
3326 as_fn_append ac_header_list " stdlib.h"
3327 as_fn_append ac_header_list " unistd.h"
3328 as_fn_append ac_header_list " sys/param.h"
3329 # Check that the precious variables saved in the cache have kept the same
3330 # value.
3331 ac_cache_corrupted=false
3332 for ac_var in $ac_precious_vars; do
3333   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3334   eval ac_new_set=\$ac_env_${ac_var}_set
3335   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3336   eval ac_new_val=\$ac_env_${ac_var}_value
3337   case $ac_old_set,$ac_new_set in
3338     set,)
3339       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3340 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3341       ac_cache_corrupted=: ;;
3342     ,set)
3343       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3344 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3345       ac_cache_corrupted=: ;;
3346     ,);;
3347     *)
3348       if test "x$ac_old_val" != "x$ac_new_val"; then
3349         # differences in whitespace do not lead to failure.
3350         ac_old_val_w=`echo x $ac_old_val`
3351         ac_new_val_w=`echo x $ac_new_val`
3352         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3353           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3354 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3355           ac_cache_corrupted=:
3356         else
3357           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3358 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3359           eval $ac_var=\$ac_old_val
3360         fi
3361         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3362 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3363         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3364 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3365       fi;;
3366   esac
3367   # Pass precious variables to config.status.
3368   if test "$ac_new_set" = set; then
3369     case $ac_new_val in
3370     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3371     *) ac_arg=$ac_var=$ac_new_val ;;
3372     esac
3373     case " $ac_configure_args " in
3374       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3375       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3376     esac
3377   fi
3378 done
3379 if $ac_cache_corrupted; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3383 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3384   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3385 fi
3386 ## -------------------- ##
3387 ## Main body of script. ##
3388 ## -------------------- ##
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397
3398 ac_aux_dir=
3399 for ac_dir in config "$srcdir"/config; do
3400   if test -f "$ac_dir/install-sh"; then
3401     ac_aux_dir=$ac_dir
3402     ac_install_sh="$ac_aux_dir/install-sh -c"
3403     break
3404   elif test -f "$ac_dir/install.sh"; then
3405     ac_aux_dir=$ac_dir
3406     ac_install_sh="$ac_aux_dir/install.sh -c"
3407     break
3408   elif test -f "$ac_dir/shtool"; then
3409     ac_aux_dir=$ac_dir
3410     ac_install_sh="$ac_aux_dir/shtool install -c"
3411     break
3412   fi
3413 done
3414 if test -z "$ac_aux_dir"; then
3415   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3416 fi
3417
3418 # These three variables are undocumented and unsupported,
3419 # and are intended to be withdrawn in a future Autoconf release.
3420 # They can cause serious problems if a builder's source tree is in a directory
3421 # whose full name contains unusual characters.
3422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3424 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3425
3426
3427
3428
3429 ac_config_headers="$ac_config_headers config/config.h"
3430
3431
3432 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3433
3434 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 MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3435
3436
3437 #
3438 # Save initial user-tunable values
3439 #
3440 USER_LIBS=$LIBS
3441 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3442   eval isset=\${$var+set}
3443     if test "$isset" = 'set'; then
3444         eval val=$`echo $var`
3445         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3446     fi
3447 done
3448
3449
3450 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3451
3452
3453 # Source file containing package/library versioning information.
3454 . ${srcdir}/version.sh
3455
3456 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3457 # Make sure we can run config.sub.
3458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3459   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3460
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3462 $as_echo_n "checking build system type... " >&6; }
3463 if ${ac_cv_build+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   ac_build_alias=$build_alias
3467 test "x$ac_build_alias" = x &&
3468   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3469 test "x$ac_build_alias" = x &&
3470   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3472   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3473
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3476 $as_echo "$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3478 *-*-*) ;;
3479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3480 esac
3481 build=$ac_cv_build
3482 ac_save_IFS=$IFS; IFS='-'
3483 set x $ac_cv_build
3484 shift
3485 build_cpu=$1
3486 build_vendor=$2
3487 shift; shift
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3490 build_os=$*
3491 IFS=$ac_save_IFS
3492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3493
3494
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3496 $as_echo_n "checking host system type... " >&6; }
3497 if ${ac_cv_host+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test "x$host_alias" = x; then
3501   ac_cv_host=$ac_cv_build
3502 else
3503   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3504     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3505 fi
3506
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3509 $as_echo "$ac_cv_host" >&6; }
3510 case $ac_cv_host in
3511 *-*-*) ;;
3512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3513 esac
3514 host=$ac_cv_host
3515 ac_save_IFS=$IFS; IFS='-'
3516 set x $ac_cv_host
3517 shift
3518 host_cpu=$1
3519 host_vendor=$2
3520 shift; shift
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3523 host_os=$*
3524 IFS=$ac_save_IFS
3525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3526
3527
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3529 $as_echo_n "checking target system type... " >&6; }
3530 if ${ac_cv_target+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   if test "x$target_alias" = x; then
3534   ac_cv_target=$ac_cv_host
3535 else
3536   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3537     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3538 fi
3539
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3542 $as_echo "$ac_cv_target" >&6; }
3543 case $ac_cv_target in
3544 *-*-*) ;;
3545 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3546 esac
3547 target=$ac_cv_target
3548 ac_save_IFS=$IFS; IFS='-'
3549 set x $ac_cv_target
3550 shift
3551 target_cpu=$1
3552 target_vendor=$2
3553 shift; shift
3554 # Remember, the first character of IFS is used to create $*,
3555 # except with old shells:
3556 target_os=$*
3557 IFS=$ac_save_IFS
3558 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3559
3560
3561 # The aliases save the names the user supplied, while $host etc.
3562 # will get canonicalized.
3563 test -n "$target_alias" &&
3564   test "$program_prefix$program_suffix$program_transform_name" = \
3565     NONENONEs,x,x, &&
3566   program_prefix=${target_alias}-
3567
3568
3569
3570
3571 MAGICK_TARGET_CPU=$host_cpu
3572
3573
3574 MAGICK_TARGET_VENDOR=$host_vendor
3575
3576
3577 MAGICK_TARGET_OS=$host_os
3578
3579
3580 # Substitute library versioning
3581 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3582
3583 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3584
3585 MAGICK_SVN_REVISION=4944
3586
3587
3588
3589
3590 # Ensure that make can run correctly
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3592 $as_echo_n "checking whether build environment is sane... " >&6; }
3593 # Just in case
3594 sleep 1
3595 echo timestamp > conftest.file
3596 # Reject unsafe characters in $srcdir or the absolute working directory
3597 # name.  Accept space and tab only in the latter.
3598 am_lf='
3599 '
3600 case `pwd` in
3601   *[\\\"\#\$\&\'\`$am_lf]*)
3602     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3603 esac
3604 case $srcdir in
3605   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3606     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3607 esac
3608
3609 # Do `set' in a subshell so we don't clobber the current shell's
3610 # arguments.  Must try -L first in case configure is actually a
3611 # symlink; some systems play weird games with the mod time of symlinks
3612 # (eg FreeBSD returns the mod time of the symlink's containing
3613 # directory).
3614 if (
3615    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3616    if test "$*" = "X"; then
3617       # -L didn't work.
3618       set X `ls -t "$srcdir/configure" conftest.file`
3619    fi
3620    rm -f conftest.file
3621    if test "$*" != "X $srcdir/configure conftest.file" \
3622       && test "$*" != "X conftest.file $srcdir/configure"; then
3623
3624       # If neither matched, then we have a broken ls.  This can happen
3625       # if, for instance, CONFIG_SHELL is bash and it inherits a
3626       # broken ls alias from the environment.  This has actually
3627       # happened.  Such a system could not be considered "sane".
3628       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3629 alias in your environment" "$LINENO" 5
3630    fi
3631
3632    test "$2" = conftest.file
3633    )
3634 then
3635    # Ok.
3636    :
3637 else
3638    as_fn_error $? "newly created file is older than distributed files!
3639 Check your system clock" "$LINENO" 5
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3643
3644 am__api_version='1.11'
3645
3646 # Find a good install program.  We prefer a C program (faster),
3647 # so one script is as good as another.  But avoid the broken or
3648 # incompatible versions:
3649 # SysV /etc/install, /usr/sbin/install
3650 # SunOS /usr/etc/install
3651 # IRIX /sbin/install
3652 # AIX /bin/install
3653 # AmigaOS /C/install, which installs bootblocks on floppy discs
3654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657 # OS/2's system install, which has a completely different semantic
3658 # ./install, which can be erroneously created by make from ./install.sh.
3659 # Reject install programs that cannot install multiple files.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3661 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3662 if test -z "$INSTALL"; then
3663 if ${ac_cv_path_install+:} false; then :
3664   $as_echo_n "(cached) " >&6
3665 else
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671     # Account for people who put trailing slashes in PATH elements.
3672 case $as_dir/ in #((
3673   ./ | .// | /[cC]/* | \
3674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3676   /usr/ucb/* ) ;;
3677   *)
3678     # OSF1 and SCO ODT 3.0 have their own names for install.
3679     # Don't use installbsd from OSF since it installs stuff as root
3680     # by default.
3681     for ac_prog in ginstall scoinst install; do
3682       for ac_exec_ext in '' $ac_executable_extensions; do
3683         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684           if test $ac_prog = install &&
3685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686             # AIX install.  It has an incompatible calling convention.
3687             :
3688           elif test $ac_prog = install &&
3689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690             # program-specific install script used by HP pwplus--don't use.
3691             :
3692           else
3693             rm -rf conftest.one conftest.two conftest.dir
3694             echo one > conftest.one
3695             echo two > conftest.two
3696             mkdir conftest.dir
3697             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3698               test -s conftest.one && test -s conftest.two &&
3699               test -s conftest.dir/conftest.one &&
3700               test -s conftest.dir/conftest.two
3701             then
3702               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703               break 3
3704             fi
3705           fi
3706         fi
3707       done
3708     done
3709     ;;
3710 esac
3711
3712   done
3713 IFS=$as_save_IFS
3714
3715 rm -rf conftest.one conftest.two conftest.dir
3716
3717 fi
3718   if test "${ac_cv_path_install+set}" = set; then
3719     INSTALL=$ac_cv_path_install
3720   else
3721     # As a last resort, use the slow shell script.  Don't cache a
3722     # value for INSTALL within a source directory, because that will
3723     # break other packages using the cache if that directory is
3724     # removed, or if the value is a relative name.
3725     INSTALL=$ac_install_sh
3726   fi
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3729 $as_echo "$INSTALL" >&6; }
3730
3731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3732 # It thinks the first close brace ends the variable substitution.
3733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3734
3735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3736
3737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3738
3739 test "$program_prefix" != NONE &&
3740   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741 # Use a double $ so make ignores it.
3742 test "$program_suffix" != NONE &&
3743   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744 # Double any \ or $.
3745 # By default was `s,x,x', remove it if useless.
3746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3748
3749 # expand $ac_aux_dir to an absolute path
3750 am_aux_dir=`cd $ac_aux_dir && pwd`
3751
3752 if test x"${MISSING+set}" != xset; then
3753   case $am_aux_dir in
3754   *\ * | *\     *)
3755     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3756   *)
3757     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3758   esac
3759 fi
3760 # Use eval to expand $SHELL
3761 if eval "$MISSING --run true"; then
3762   am_missing_run="$MISSING --run "
3763 else
3764   am_missing_run=
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3766 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3767 fi
3768
3769 if test x"${install_sh}" != xset; then
3770   case $am_aux_dir in
3771   *\ * | *\     *)
3772     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3773   *)
3774     install_sh="\${SHELL} $am_aux_dir/install-sh"
3775   esac
3776 fi
3777
3778 # Installed binaries are usually stripped using `strip' when the user
3779 # run `make install-strip'.  However `strip' might not be the right
3780 # tool to use in cross-compilation environments, therefore Automake
3781 # will honor the `STRIP' environment variable to overrule this program.
3782 if test "$cross_compiling" != no; then
3783   if test -n "$ac_tool_prefix"; then
3784   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}strip; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_STRIP+:} false; then :
3789   $as_echo_n "(cached) " >&6
3790 else
3791   if test -n "$STRIP"; then
3792   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799     for ac_exec_ext in '' $ac_executable_extensions; do
3800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803     break 2
3804   fi
3805 done
3806   done
3807 IFS=$as_save_IFS
3808
3809 fi
3810 fi
3811 STRIP=$ac_cv_prog_STRIP
3812 if test -n "$STRIP"; then
3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3814 $as_echo "$STRIP" >&6; }
3815 else
3816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3818 fi
3819
3820
3821 fi
3822 if test -z "$ac_cv_prog_STRIP"; then
3823   ac_ct_STRIP=$STRIP
3824   # Extract the first word of "strip", so it can be a program name with args.
3825 set dummy strip; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   if test -n "$ac_ct_STRIP"; then
3832   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841     ac_cv_prog_ac_ct_STRIP="strip"
3842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843     break 2
3844   fi
3845 done
3846   done
3847 IFS=$as_save_IFS
3848
3849 fi
3850 fi
3851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3852 if test -n "$ac_ct_STRIP"; then
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3854 $as_echo "$ac_ct_STRIP" >&6; }
3855 else
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 fi
3859
3860   if test "x$ac_ct_STRIP" = x; then
3861     STRIP=":"
3862   else
3863     case $cross_compiling:$ac_tool_warned in
3864 yes:)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3868 esac
3869     STRIP=$ac_ct_STRIP
3870   fi
3871 else
3872   STRIP="$ac_cv_prog_STRIP"
3873 fi
3874
3875 fi
3876 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3879 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3880 if test -z "$MKDIR_P"; then
3881   if ${ac_cv_path_mkdir+:} false; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889     for ac_prog in mkdir gmkdir; do
3890          for ac_exec_ext in '' $ac_executable_extensions; do
3891            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3892            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3893              'mkdir (GNU coreutils) '* | \
3894              'mkdir (coreutils) '* | \
3895              'mkdir (fileutils) '4.1*)
3896                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3897                break 3;;
3898            esac
3899          done
3900        done
3901   done
3902 IFS=$as_save_IFS
3903
3904 fi
3905
3906   test -d ./--version && rmdir ./--version
3907   if test "${ac_cv_path_mkdir+set}" = set; then
3908     MKDIR_P="$ac_cv_path_mkdir -p"
3909   else
3910     # As a last resort, use the slow shell script.  Don't cache a
3911     # value for MKDIR_P within a source directory, because that will
3912     # break other packages using the cache if that directory is
3913     # removed, or if the value is a relative name.
3914     MKDIR_P="$ac_install_sh -d"
3915   fi
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3918 $as_echo "$MKDIR_P" >&6; }
3919
3920 mkdir_p="$MKDIR_P"
3921 case $mkdir_p in
3922   [\\/$]* | ?:[\\/]*) ;;
3923   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3924 esac
3925
3926 for ac_prog in gawk mawk nawk awk
3927 do
3928   # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_prog_AWK+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   if test -n "$AWK"; then
3936   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943     for ac_exec_ext in '' $ac_executable_extensions; do
3944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945     ac_cv_prog_AWK="$ac_prog"
3946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950   done
3951 IFS=$as_save_IFS
3952
3953 fi
3954 fi
3955 AWK=$ac_cv_prog_AWK
3956 if test -n "$AWK"; then
3957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3958 $as_echo "$AWK" >&6; }
3959 else
3960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965   test -n "$AWK" && break
3966 done
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3970 set x ${MAKE-make}
3971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975   cat >conftest.make <<\_ACEOF
3976 SHELL = /bin/sh
3977 all:
3978         @echo '@@@%%%=$(MAKE)=@@@%%%'
3979 _ACEOF
3980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3982   *@@@%%%=?*=@@@%%%*)
3983     eval ac_cv_prog_make_${ac_make}_set=yes;;
3984   *)
3985     eval ac_cv_prog_make_${ac_make}_set=no;;
3986 esac
3987 rm -f conftest.make
3988 fi
3989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991 $as_echo "yes" >&6; }
3992   SET_MAKE=
3993 else
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996   SET_MAKE="MAKE=${MAKE-make}"
3997 fi
3998
3999 rm -rf .tst 2>/dev/null
4000 mkdir .tst 2>/dev/null
4001 if test -d .tst; then
4002   am__leading_dot=.
4003 else
4004   am__leading_dot=_
4005 fi
4006 rmdir .tst 2>/dev/null
4007
4008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4009   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4010   # is not polluted with repeated "-I."
4011   am__isrc=' -I$(srcdir)'
4012   # test to see if srcdir already configured
4013   if test -f $srcdir/config.status; then
4014     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4015   fi
4016 fi
4017
4018 # test whether we have cygpath
4019 if test -z "$CYGPATH_W"; then
4020   if (cygpath --version) >/dev/null 2>/dev/null; then
4021     CYGPATH_W='cygpath -w'
4022   else
4023     CYGPATH_W=echo
4024   fi
4025 fi
4026
4027
4028 # Define the identity of the package.
4029  PACKAGE=$PACKAGE_NAME
4030  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4031
4032
4033 # Some tools Automake needs.
4034
4035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4036
4037
4038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4039
4040
4041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4042
4043
4044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4045
4046
4047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4048
4049 # We need awk for the "check" target.  The system "awk" is bad on
4050 # some platforms.
4051 # Always define AMTAR for backward compatibility.
4052
4053 AMTAR=${AMTAR-"${am_missing_run}tar"}
4054
4055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4056
4057
4058
4059
4060
4061
4062 # Enable support for silent build rules
4063 # Check whether --enable-silent-rules was given.
4064 if test "${enable_silent_rules+set}" = set; then :
4065   enableval=$enable_silent_rules;
4066 fi
4067
4068 case $enable_silent_rules in
4069 yes) AM_DEFAULT_VERBOSITY=0;;
4070 no)  AM_DEFAULT_VERBOSITY=1;;
4071 *)   AM_DEFAULT_VERBOSITY=0;;
4072 esac
4073 AM_BACKSLASH='\'
4074
4075
4076 MAGICK_LIB_VERSION="0x"
4077 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4078   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4079 fi
4080 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4081 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4082   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4083 fi
4084 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4085 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4086   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4087 fi
4088 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4089
4090
4091 # Definition used to define MagickLibVersionText in version.h
4092 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4093
4094
4095 # Definition used to define MagickLibVersionNumber in version.h
4096 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4097
4098
4099 # Regenerate config.status if ChangeLog or version.sh is updated.
4100 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4101
4102
4103 PERLMAINCC=$CC
4104
4105 MAGICK_CFLAGS=''
4106 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4107 MAGICK_PCFLAGS=$CPPFLAGS_USER
4108 MAGICK_LDFLAGS=''
4109 MAGICK_LIBS=''
4110 MAGICK_FEATURES=''
4111
4112 #
4113 # Evaluate shell variable equivalents to Makefile directory variables
4114 #
4115 if test "x$prefix" = xNONE; then
4116     prefix=$ac_default_prefix
4117 fi
4118 # Let make expand exec_prefix.
4119 if test "x$exec_prefix" = xNONE; then
4120     exec_prefix='${prefix}'
4121 fi
4122
4123 #
4124 eval "eval PREFIX_DIR=${prefix}"
4125
4126 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4127
4128 eval "eval BIN_DIR=$bindir"
4129
4130 eval "eval SBIN_DIR=$sbindir"
4131
4132 eval "eval LIBEXEC_DIR=$libexecdir"
4133
4134 eval "eval DATA_DIR=$datadir"
4135
4136 eval "eval DOC_DIR=$docdir"
4137
4138 eval "eval SYSCONF_DIR=$sysconfdir"
4139
4140 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4141
4142 eval "eval LOCALSTATE_DIR=$localstatedir"
4143
4144 eval "eval LIB_DIR=$libdir"
4145
4146 eval "eval INCLUDE_DIR=$includedir"
4147
4148 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4149
4150 eval "eval INFO_DIR=$infodir"
4151
4152 eval "eval MAN_DIR=$mandir"
4153
4154
4155 # Get full paths to source and build directories
4156 srcdirfull="`cd $srcdir && pwd`"
4157 builddir="`pwd`"
4158
4159 #
4160 # Compute variables useful for running uninstalled software.
4161 #
4162 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4163 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4164 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4165 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4166 DIRSEP=':'
4167 case "${build_os}" in
4168     mingw* )
4169         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4170         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4171         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4172         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4173         DIRSEP=';'
4174     ;;
4175 esac
4176 case "${host_os}" in
4177   mingw* )
4178     DIRSEP=';'
4179     ;;
4180 esac
4181
4182
4183
4184
4185
4186
4187
4188 #
4189 # Enable OS features.
4190 #
4191 DEPDIR="${am__leading_dot}deps"
4192
4193 ac_config_commands="$ac_config_commands depfiles"
4194
4195
4196 am_make=${MAKE-make}
4197 cat > confinc << 'END'
4198 am__doit:
4199         @echo this is the am__doit target
4200 .PHONY: am__doit
4201 END
4202 # If we don't find an include directive, just comment out the code.
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4204 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4205 am__include="#"
4206 am__quote=
4207 _am_result=none
4208 # First try GNU make style include.
4209 echo "include confinc" > confmf
4210 # Ignore all kinds of additional output from `make'.
4211 case `$am_make -s -f confmf 2> /dev/null` in #(
4212 *the\ am__doit\ target*)
4213   am__include=include
4214   am__quote=
4215   _am_result=GNU
4216   ;;
4217 esac
4218 # Now try BSD make style include.
4219 if test "$am__include" = "#"; then
4220    echo '.include "confinc"' > confmf
4221    case `$am_make -s -f confmf 2> /dev/null` in #(
4222    *the\ am__doit\ target*)
4223      am__include=.include
4224      am__quote="\""
4225      _am_result=BSD
4226      ;;
4227    esac
4228 fi
4229
4230
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4232 $as_echo "$_am_result" >&6; }
4233 rm -f confinc confmf
4234
4235 # Check whether --enable-dependency-tracking was given.
4236 if test "${enable_dependency_tracking+set}" = set; then :
4237   enableval=$enable_dependency_tracking;
4238 fi
4239
4240 if test "x$enable_dependency_tracking" != xno; then
4241   am_depcomp="$ac_aux_dir/depcomp"
4242   AMDEPBACKSLASH='\'
4243 fi
4244  if test "x$enable_dependency_tracking" != xno; then
4245   AMDEP_TRUE=
4246   AMDEP_FALSE='#'
4247 else
4248   AMDEP_TRUE='#'
4249   AMDEP_FALSE=
4250 fi
4251
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 if test -n "$ac_tool_prefix"; then
4259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_CC+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$CC"; then
4267   ac_cv_prog_CC="$CC" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296 fi
4297 if test -z "$ac_cv_prog_CC"; then
4298   ac_ct_CC=$CC
4299   # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -n "$ac_ct_CC"; then
4307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     ac_cv_prog_ac_ct_CC="gcc"
4317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321   done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 $as_echo "$ac_ct_CC" >&6; }
4330 else
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335   if test "x$ac_ct_CC" = x; then
4336     CC=""
4337   else
4338     case $cross_compiling:$ac_tool_warned in
4339 yes:)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344     CC=$ac_ct_CC
4345   fi
4346 else
4347   CC="$ac_cv_prog_CC"
4348 fi
4349
4350 if test -z "$CC"; then
4351           if test -n "$ac_tool_prefix"; then
4352     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}cc; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_CC+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if test -n "$CC"; then
4360   ac_cv_prog_CC="$CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_CC="${ac_tool_prefix}cc"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389   fi
4390 fi
4391 if test -z "$CC"; then
4392   # Extract the first word of "cc", so it can be a program name with args.
4393 set dummy cc; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_prog_CC+:} false; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   if test -n "$CC"; then
4400   ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402   ac_prog_rejected=no
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408     for ac_exec_ext in '' $ac_executable_extensions; do
4409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411        ac_prog_rejected=yes
4412        continue
4413      fi
4414     ac_cv_prog_CC="cc"
4415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419   done
4420 IFS=$as_save_IFS
4421
4422 if test $ac_prog_rejected = yes; then
4423   # We found a bogon in the path, so make sure we never use it.
4424   set dummy $ac_cv_prog_CC
4425   shift
4426   if test $# != 0; then
4427     # We chose a different compiler from the bogus one.
4428     # However, it has the same basename, so the bogon will be chosen
4429     # first if we set CC to just the basename; use the full file name.
4430     shift
4431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4432   fi
4433 fi
4434 fi
4435 fi
4436 CC=$ac_cv_prog_CC
4437 if test -n "$CC"; then
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439 $as_echo "$CC" >&6; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4443 fi
4444
4445
4446 fi
4447 if test -z "$CC"; then
4448   if test -n "$ac_tool_prefix"; then
4449   for ac_prog in cl.exe
4450   do
4451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_CC+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   if test -n "$CC"; then
4459   ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4482 else
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488     test -n "$CC" && break
4489   done
4490 fi
4491 if test -z "$CC"; then
4492   ac_ct_CC=$CC
4493   for ac_prog in cl.exe
4494 do
4495   # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if test -n "$ac_ct_CC"; then
4503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510     for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     ac_cv_prog_ac_ct_CC="$ac_prog"
4513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517   done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4526 else
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531
4532   test -n "$ac_ct_CC" && break
4533 done
4534
4535   if test "x$ac_ct_CC" = x; then
4536     CC=""
4537   else
4538     case $cross_compiling:$ac_tool_warned in
4539 yes:)
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4543 esac
4544     CC=$ac_ct_CC
4545   fi
4546 fi
4547
4548 fi
4549
4550
4551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "no acceptable C compiler found in \$PATH
4554 See \`config.log' for more details" "$LINENO" 5; }
4555
4556 # Provide some information about the compiler.
4557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4558 set X $ac_compile
4559 ac_compiler=$2
4560 for ac_option in --version -v -V -qversion; do
4561   { { ac_try="$ac_compiler $ac_option >&5"
4562 case "(($ac_try" in
4563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564   *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4569   ac_status=$?
4570   if test -s conftest.err; then
4571     sed '10a\
4572 ... rest of stderr output deleted ...
4573          10q' conftest.err >conftest.er1
4574     cat conftest.er1 >&5
4575   fi
4576   rm -f conftest.er1 conftest.err
4577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578   test $ac_status = 0; }
4579 done
4580
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 ac_clean_files_save=$ac_clean_files
4593 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4594 # Try to create an executable without -o first, disregard a.out.
4595 # It will help us diagnose broken compilers, and finding out an intuition
4596 # of exeext.
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4598 $as_echo_n "checking whether the C compiler works... " >&6; }
4599 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4600
4601 # The possible output files:
4602 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4603
4604 ac_rmfiles=
4605 for ac_file in $ac_files
4606 do
4607   case $ac_file in
4608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4609     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4610   esac
4611 done
4612 rm -f $ac_rmfiles
4613
4614 if { { ac_try="$ac_link_default"
4615 case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621   (eval "$ac_link_default") 2>&5
4622   ac_status=$?
4623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624   test $ac_status = 0; }; then :
4625   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4627 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4628 # so that the user can short-circuit this test for compilers unknown to
4629 # Autoconf.
4630 for ac_file in $ac_files ''
4631 do
4632   test -f "$ac_file" || continue
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4635         ;;
4636     [ab].out )
4637         # We found the default executable, but exeext='' is most
4638         # certainly right.
4639         break;;
4640     *.* )
4641         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4642         then :; else
4643            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644         fi
4645         # We set ac_cv_exeext here because the later test for it is not
4646         # safe: cross compilers may not add the suffix if given an `-o'
4647         # argument, so we may need to know it at that point already.
4648         # Even if this section looks crufty: it has the advantage of
4649         # actually working.
4650         break;;
4651     * )
4652         break;;
4653   esac
4654 done
4655 test "$ac_cv_exeext" = no && ac_cv_exeext=
4656
4657 else
4658   ac_file=''
4659 fi
4660 if test -z "$ac_file"; then :
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668 as_fn_error 77 "C compiler cannot create executables
4669 See \`config.log' for more details" "$LINENO" 5; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672 $as_echo "yes" >&6; }
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4675 $as_echo_n "checking for C compiler default output file name... " >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4677 $as_echo "$ac_file" >&6; }
4678 ac_exeext=$ac_cv_exeext
4679
4680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4681 ac_clean_files=$ac_clean_files_save
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4683 $as_echo_n "checking for suffix of executables... " >&6; }
4684 if { { ac_try="$ac_link"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691   (eval "$ac_link") 2>&5
4692   ac_status=$?
4693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694   test $ac_status = 0; }; then :
4695   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4697 # work properly (i.e., refer to `conftest.exe'), while it won't with
4698 # `rm'.
4699 for ac_file in conftest.exe conftest conftest.*; do
4700   test -f "$ac_file" || continue
4701   case $ac_file in
4702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4703     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4704           break;;
4705     * ) break;;
4706   esac
4707 done
4708 else
4709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4712 See \`config.log' for more details" "$LINENO" 5; }
4713 fi
4714 rm -f conftest conftest$ac_cv_exeext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4716 $as_echo "$ac_cv_exeext" >&6; }
4717
4718 rm -f conftest.$ac_ext
4719 EXEEXT=$ac_cv_exeext
4720 ac_exeext=$EXEEXT
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #include <stdio.h>
4724 int
4725 main ()
4726 {
4727 FILE *f = fopen ("conftest.out", "w");
4728  return ferror (f) || fclose (f) != 0;
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 ac_clean_files="$ac_clean_files conftest.out"
4735 # Check that the compiler produces executables we can run.  If not, either
4736 # the compiler is broken, or we cross compile.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4738 $as_echo_n "checking whether we are cross compiling... " >&6; }
4739 if test "$cross_compiling" != yes; then
4740   { { ac_try="$ac_link"
4741 case "(($ac_try" in
4742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743   *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747   (eval "$ac_link") 2>&5
4748   ac_status=$?
4749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750   test $ac_status = 0; }
4751   if { ac_try='./conftest$ac_cv_exeext'
4752   { { case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758   (eval "$ac_try") 2>&5
4759   ac_status=$?
4760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761   test $ac_status = 0; }; }; then
4762     cross_compiling=no
4763   else
4764     if test "$cross_compiling" = maybe; then
4765         cross_compiling=yes
4766     else
4767         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4769 as_fn_error $? "cannot run C compiled programs.
4770 If you meant to cross compile, use \`--host'.
4771 See \`config.log' for more details" "$LINENO" 5; }
4772     fi
4773   fi
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4776 $as_echo "$cross_compiling" >&6; }
4777
4778 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4779 ac_clean_files=$ac_clean_files_save
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4781 $as_echo_n "checking for suffix of object files... " >&6; }
4782 if ${ac_cv_objext+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h.  */
4787
4788 int
4789 main ()
4790 {
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.o conftest.obj
4797 if { { ac_try="$ac_compile"
4798 case "(($ac_try" in
4799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800   *) ac_try_echo=$ac_try;;
4801 esac
4802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803 $as_echo "$ac_try_echo"; } >&5
4804   (eval "$ac_compile") 2>&5
4805   ac_status=$?
4806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807   test $ac_status = 0; }; then :
4808   for ac_file in conftest.o conftest.obj conftest.*; do
4809   test -f "$ac_file" || continue;
4810   case $ac_file in
4811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4812     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4813        break;;
4814   esac
4815 done
4816 else
4817   $as_echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4822 as_fn_error $? "cannot compute suffix of object files: cannot compile
4823 See \`config.log' for more details" "$LINENO" 5; }
4824 fi
4825 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4828 $as_echo "$ac_cv_objext" >&6; }
4829 OBJEXT=$ac_cv_objext
4830 ac_objext=$OBJEXT
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4833 if ${ac_cv_c_compiler_gnu+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838
4839 int
4840 main ()
4841 {
4842 #ifndef __GNUC__
4843        choke me
4844 #endif
4845
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851   ac_compiler_gnu=yes
4852 else
4853   ac_compiler_gnu=no
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4857
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4862   GCC=yes
4863 else
4864   GCC=
4865 fi
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if ${ac_cv_prog_cc_g+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   ac_save_c_werror_flag=$ac_c_werror_flag
4874    ac_c_werror_flag=yes
4875    ac_cv_prog_cc_g=no
4876    CFLAGS="-g"
4877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h.  */
4879
4880 int
4881 main ()
4882 {
4883
4884   ;
4885   return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889   ac_cv_prog_cc_g=yes
4890 else
4891   CFLAGS=""
4892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h.  */
4894
4895 int
4896 main ()
4897 {
4898
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 if ac_fn_c_try_compile "$LINENO"; then :
4904
4905 else
4906   ac_c_werror_flag=$ac_save_c_werror_flag
4907          CFLAGS="-g"
4908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h.  */
4910
4911 int
4912 main ()
4913 {
4914
4915   ;
4916   return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920   ac_cv_prog_cc_g=yes
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927    ac_c_werror_flag=$ac_save_c_werror_flag
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4930 $as_echo "$ac_cv_prog_cc_g" >&6; }
4931 if test "$ac_test_CFLAGS" = set; then
4932   CFLAGS=$ac_save_CFLAGS
4933 elif test $ac_cv_prog_cc_g = yes; then
4934   if test "$GCC" = yes; then
4935     CFLAGS="-g -O2"
4936   else
4937     CFLAGS="-g"
4938   fi
4939 else
4940   if test "$GCC" = yes; then
4941     CFLAGS="-O2"
4942   else
4943     CFLAGS=
4944   fi
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4948 if ${ac_cv_prog_cc_c89+:} false; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   ac_cv_prog_cc_c89=no
4952 ac_save_CC=$CC
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h.  */
4955 #include <stdarg.h>
4956 #include <stdio.h>
4957 #include <sys/types.h>
4958 #include <sys/stat.h>
4959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4960 struct buf { int x; };
4961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4962 static char *e (p, i)
4963      char **p;
4964      int i;
4965 {
4966   return p[i];
4967 }
4968 static char *f (char * (*g) (char **, int), char **p, ...)
4969 {
4970   char *s;
4971   va_list v;
4972   va_start (v,p);
4973   s = g (p, va_arg (v,int));
4974   va_end (v);
4975   return s;
4976 }
4977
4978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4979    function prototypes and stuff, but not '\xHH' hex character constants.
4980    These don't provoke an error unfortunately, instead are silently treated
4981    as 'x'.  The following induces an error, until -std is added to get
4982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4983    array size at least.  It's necessary to write '\x00'==0 to get something
4984    that's true only with -std.  */
4985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4986
4987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4988    inside strings and character constants.  */
4989 #define FOO(x) 'x'
4990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4991
4992 int test (int i, double x);
4993 struct s1 {int (*f) (int a);};
4994 struct s2 {int (*f) (double a);};
4995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4996 int argc;
4997 char **argv;
4998 int
4999 main ()
5000 {
5001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5008 do
5009   CC="$ac_save_CC $ac_arg"
5010   if ac_fn_c_try_compile "$LINENO"; then :
5011   ac_cv_prog_cc_c89=$ac_arg
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext
5014   test "x$ac_cv_prog_cc_c89" != "xno" && break
5015 done
5016 rm -f conftest.$ac_ext
5017 CC=$ac_save_CC
5018
5019 fi
5020 # AC_CACHE_VAL
5021 case "x$ac_cv_prog_cc_c89" in
5022   x)
5023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5024 $as_echo "none needed" >&6; } ;;
5025   xno)
5026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5027 $as_echo "unsupported" >&6; } ;;
5028   *)
5029     CC="$CC $ac_cv_prog_cc_c89"
5030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5032 esac
5033 if test "x$ac_cv_prog_cc_c89" != xno; then :
5034
5035 fi
5036
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043 depcc="$CC"   am_compiler_list=
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5046 $as_echo_n "checking dependency style of $depcc... " >&6; }
5047 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051   # We make a subdir and do the tests there.  Otherwise we can end up
5052   # making bogus files that we don't know about and never remove.  For
5053   # instance it was reported that on HP-UX the gcc test will end up
5054   # making a dummy file named `D' -- because `-MD' means `put the output
5055   # in D'.
5056   mkdir conftest.dir
5057   # Copy depcomp to subdir because otherwise we won't find it if we're
5058   # using a relative directory.
5059   cp "$am_depcomp" conftest.dir
5060   cd conftest.dir
5061   # We will build objects and dependencies in a subdirectory because
5062   # it helps to detect inapplicable dependency modes.  For instance
5063   # both Tru64's cc and ICC support -MD to output dependencies as a
5064   # side effect of compilation, but ICC will put the dependencies in
5065   # the current directory while Tru64 will put them in the object
5066   # directory.
5067   mkdir sub
5068
5069   am_cv_CC_dependencies_compiler_type=none
5070   if test "$am_compiler_list" = ""; then
5071      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5072   fi
5073   am__universal=false
5074   case " $depcc " in #(
5075      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5076      esac
5077
5078   for depmode in $am_compiler_list; do
5079     # Setup a source with many dependencies, because some compilers
5080     # like to wrap large dependency lists on column 80 (with \), and
5081     # we should not choose a depcomp mode which is confused by this.
5082     #
5083     # We need to recreate these files for each test, as the compiler may
5084     # overwrite some of them when testing with obscure command lines.
5085     # This happens at least with the AIX C compiler.
5086     : > sub/conftest.c
5087     for i in 1 2 3 4 5 6; do
5088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090       # Solaris 8's {/usr,}/bin/sh.
5091       touch sub/conftst$i.h
5092     done
5093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5094
5095     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5096     # mode.  It turns out that the SunPro C++ compiler does not properly
5097     # handle `-M -o', and we need to detect this.  Also, some Intel
5098     # versions had trouble with output in subdirs
5099     am__obj=sub/conftest.${OBJEXT-o}
5100     am__minus_obj="-o $am__obj"
5101     case $depmode in
5102     gcc)
5103       # This depmode causes a compiler race in universal mode.
5104       test "$am__universal" = false || continue
5105       ;;
5106     nosideeffect)
5107       # after this tag, mechanisms are not by side-effect, so they'll
5108       # only be used when explicitly requested
5109       if test "x$enable_dependency_tracking" = xyes; then
5110         continue
5111       else
5112         break
5113       fi
5114       ;;
5115     msvisualcpp | msvcmsys)
5116       # This compiler won't grok `-c -o', but also, the minuso test has
5117       # not run yet.  These depmodes are late enough in the game, and
5118       # so weak that their functioning should not be impacted.
5119       am__obj=conftest.${OBJEXT-o}
5120       am__minus_obj=
5121       ;;
5122     none) break ;;
5123     esac
5124     if depmode=$depmode \
5125        source=sub/conftest.c object=$am__obj \
5126        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5127        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5128          >/dev/null 2>conftest.err &&
5129        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5130        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5132        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133       # icc doesn't choke on unknown options, it will just issue warnings
5134       # or remarks (even with -Werror).  So we grep stderr for any message
5135       # that says an option was ignored or not supported.
5136       # When given -MP, icc 7.0 and 7.1 complain thusly:
5137       #   icc: Command line warning: ignoring option '-M'; no argument required
5138       # The diagnosis changed in icc 8.0:
5139       #   icc: Command line remark: option '-MP' not supported
5140       if (grep 'ignoring option' conftest.err ||
5141           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142         am_cv_CC_dependencies_compiler_type=$depmode
5143         break
5144       fi
5145     fi
5146   done
5147
5148   cd ..
5149   rm -rf conftest.dir
5150 else
5151   am_cv_CC_dependencies_compiler_type=none
5152 fi
5153
5154 fi
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5156 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5158
5159  if
5160   test "x$enable_dependency_tracking" != xno \
5161   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5162   am__fastdepCC_TRUE=
5163   am__fastdepCC_FALSE='#'
5164 else
5165   am__fastdepCC_TRUE='#'
5166   am__fastdepCC_FALSE=
5167 fi
5168
5169
5170
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5180   CPP=
5181 fi
5182 if test -z "$CPP"; then
5183   if ${ac_cv_prog_CPP+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186       # Double quotes because CPP needs to be expanded
5187     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188     do
5189       ac_preproc_ok=false
5190 for ac_c_preproc_warn_flag in '' yes
5191 do
5192   # Use a header file that comes with gcc, so configuring glibc
5193   # with a fresh cross-compiler works.
5194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195   # <limits.h> exists even on freestanding compilers.
5196   # On the NeXT, cc -E runs the code through the compiler's parser,
5197   # not just through cpp. "Syntax error" is here to catch this case.
5198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h.  */
5200 #ifdef __STDC__
5201 # include <limits.h>
5202 #else
5203 # include <assert.h>
5204 #endif
5205                      Syntax error
5206 _ACEOF
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5208
5209 else
5210   # Broken: fails on valid input.
5211 continue
5212 fi
5213 rm -f conftest.err conftest.i conftest.$ac_ext
5214
5215   # OK, works on sane cases.  Now check whether nonexistent headers
5216   # can be detected and how.
5217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h.  */
5219 #include <ac_nonexistent.h>
5220 _ACEOF
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222   # Broken: success on invalid input.
5223 continue
5224 else
5225   # Passes both tests.
5226 ac_preproc_ok=:
5227 break
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5235   break
5236 fi
5237
5238     done
5239     ac_cv_prog_CPP=$CPP
5240
5241 fi
5242   CPP=$ac_cv_prog_CPP
5243 else
5244   ac_cv_prog_CPP=$CPP
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5248 ac_preproc_ok=false
5249 for ac_c_preproc_warn_flag in '' yes
5250 do
5251   # Use a header file that comes with gcc, so configuring glibc
5252   # with a fresh cross-compiler works.
5253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254   # <limits.h> exists even on freestanding compilers.
5255   # On the NeXT, cc -E runs the code through the compiler's parser,
5256   # not just through cpp. "Syntax error" is here to catch this case.
5257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h.  */
5259 #ifdef __STDC__
5260 # include <limits.h>
5261 #else
5262 # include <assert.h>
5263 #endif
5264                      Syntax error
5265 _ACEOF
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5267
5268 else
5269   # Broken: fails on valid input.
5270 continue
5271 fi
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5273
5274   # OK, works on sane cases.  Now check whether nonexistent headers
5275   # can be detected and how.
5276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h.  */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281   # Broken: success on invalid input.
5282 continue
5283 else
5284   # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5287 fi
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5289
5290 done
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.i conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5294
5295 else
5296   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details" "$LINENO" 5; }
5300 fi
5301
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5311 if ${ac_cv_path_GREP+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   if test -z "$GREP"; then
5315   ac_path_GREP_found=false
5316   # Loop through the user's path and test for each of PROGNAME-LIST
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_prog in grep ggrep; do
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5325       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5326 # Check for GNU ac_path_GREP and select it if it is found.
5327   # Check for GNU $ac_path_GREP
5328 case `"$ac_path_GREP" --version 2>&1` in
5329 *GNU*)
5330   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5331 *)
5332   ac_count=0
5333   $as_echo_n 0123456789 >"conftest.in"
5334   while :
5335   do
5336     cat "conftest.in" "conftest.in" >"conftest.tmp"
5337     mv "conftest.tmp" "conftest.in"
5338     cp "conftest.in" "conftest.nl"
5339     $as_echo 'GREP' >> "conftest.nl"
5340     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342     as_fn_arith $ac_count + 1 && ac_count=$as_val
5343     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344       # Best one so far, save it but keep looking for a better one
5345       ac_cv_path_GREP="$ac_path_GREP"
5346       ac_path_GREP_max=$ac_count
5347     fi
5348     # 10*(2^10) chars as input seems more than enough
5349     test $ac_count -gt 10 && break
5350   done
5351   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352 esac
5353
5354       $ac_path_GREP_found && break 3
5355     done
5356   done
5357   done
5358 IFS=$as_save_IFS
5359   if test -z "$ac_cv_path_GREP"; then
5360     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5361   fi
5362 else
5363   ac_cv_path_GREP=$GREP
5364 fi
5365
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368 $as_echo "$ac_cv_path_GREP" >&6; }
5369  GREP="$ac_cv_path_GREP"
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373 $as_echo_n "checking for egrep... " >&6; }
5374 if ${ac_cv_path_EGREP+:} false; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378    then ac_cv_path_EGREP="$GREP -E"
5379    else
5380      if test -z "$EGREP"; then
5381   ac_path_EGREP_found=false
5382   # Loop through the user's path and test for each of PROGNAME-LIST
5383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_prog in egrep; do
5389     for ac_exec_ext in '' $ac_executable_extensions; do
5390       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5391       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5392 # Check for GNU ac_path_EGREP and select it if it is found.
5393   # Check for GNU $ac_path_EGREP
5394 case `"$ac_path_EGREP" --version 2>&1` in
5395 *GNU*)
5396   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5397 *)
5398   ac_count=0
5399   $as_echo_n 0123456789 >"conftest.in"
5400   while :
5401   do
5402     cat "conftest.in" "conftest.in" >"conftest.tmp"
5403     mv "conftest.tmp" "conftest.in"
5404     cp "conftest.in" "conftest.nl"
5405     $as_echo 'EGREP' >> "conftest.nl"
5406     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408     as_fn_arith $ac_count + 1 && ac_count=$as_val
5409     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5410       # Best one so far, save it but keep looking for a better one
5411       ac_cv_path_EGREP="$ac_path_EGREP"
5412       ac_path_EGREP_max=$ac_count
5413     fi
5414     # 10*(2^10) chars as input seems more than enough
5415     test $ac_count -gt 10 && break
5416   done
5417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420       $ac_path_EGREP_found && break 3
5421     done
5422   done
5423   done
5424 IFS=$as_save_IFS
5425   if test -z "$ac_cv_path_EGREP"; then
5426     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427   fi
5428 else
5429   ac_cv_path_EGREP=$EGREP
5430 fi
5431
5432    fi
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5435 $as_echo "$ac_cv_path_EGREP" >&6; }
5436  EGREP="$ac_cv_path_EGREP"
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440 $as_echo_n "checking for ANSI C header files... " >&6; }
5441 if ${ac_cv_header_stdc+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h.  */
5446 #include <stdlib.h>
5447 #include <stdarg.h>
5448 #include <string.h>
5449 #include <float.h>
5450
5451 int
5452 main ()
5453 {
5454
5455   ;
5456   return 0;
5457 }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460   ac_cv_header_stdc=yes
5461 else
5462   ac_cv_header_stdc=no
5463 fi
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466 if test $ac_cv_header_stdc = yes; then
5467   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #include <string.h>
5471
5472 _ACEOF
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474   $EGREP "memchr" >/dev/null 2>&1; then :
5475
5476 else
5477   ac_cv_header_stdc=no
5478 fi
5479 rm -f conftest*
5480
5481 fi
5482
5483 if test $ac_cv_header_stdc = yes; then
5484   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487 #include <stdlib.h>
5488
5489 _ACEOF
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491   $EGREP "free" >/dev/null 2>&1; then :
5492
5493 else
5494   ac_cv_header_stdc=no
5495 fi
5496 rm -f conftest*
5497
5498 fi
5499
5500 if test $ac_cv_header_stdc = yes; then
5501   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502   if test "$cross_compiling" = yes; then :
5503   :
5504 else
5505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507 #include <ctype.h>
5508 #include <stdlib.h>
5509 #if ((' ' & 0x0FF) == 0x020)
5510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5512 #else
5513 # define ISLOWER(c) \
5514                    (('a' <= (c) && (c) <= 'i') \
5515                      || ('j' <= (c) && (c) <= 'r') \
5516                      || ('s' <= (c) && (c) <= 'z'))
5517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5518 #endif
5519
5520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521 int
5522 main ()
5523 {
5524   int i;
5525   for (i = 0; i < 256; i++)
5526     if (XOR (islower (i), ISLOWER (i))
5527         || toupper (i) != TOUPPER (i))
5528       return 2;
5529   return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_run "$LINENO"; then :
5533
5534 else
5535   ac_cv_header_stdc=no
5536 fi
5537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538   conftest.$ac_objext conftest.beam conftest.$ac_ext
5539 fi
5540
5541 fi
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544 $as_echo "$ac_cv_header_stdc" >&6; }
5545 if test $ac_cv_header_stdc = yes; then
5546
5547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548
5549 fi
5550
5551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553                   inttypes.h stdint.h unistd.h
5554 do :
5555   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5557 "
5558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5559   cat >>confdefs.h <<_ACEOF
5560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5562
5563 fi
5564
5565 done
5566
5567
5568
5569   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5570 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5571   MINIX=yes
5572 else
5573   MINIX=
5574 fi
5575
5576
5577   if test "$MINIX" = yes; then
5578
5579 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5580
5581
5582 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5583
5584
5585 $as_echo "#define _MINIX 1" >>confdefs.h
5586
5587   fi
5588
5589
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5592 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597
5598 #         define __EXTENSIONS__ 1
5599           $ac_includes_default
5600 int
5601 main ()
5602 {
5603
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609   ac_cv_safe_to_define___extensions__=yes
5610 else
5611   ac_cv_safe_to_define___extensions__=no
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5616 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5617   test $ac_cv_safe_to_define___extensions__ = yes &&
5618     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5619
5620   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5621
5622   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5623
5624   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5625
5626   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5627
5628
5629
5630 # Check for programs
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 if test -n "$ac_tool_prefix"; then
5637   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_CC+:} false; then :
5642   $as_echo_n "(cached) " >&6
5643 else
5644   if test -n "$CC"; then
5645   ac_cv_prog_CC="$CC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650   IFS=$as_save_IFS
5651   test -z "$as_dir" && as_dir=.
5652     for ac_exec_ext in '' $ac_executable_extensions; do
5653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656     break 2
5657   fi
5658 done
5659   done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 CC=$ac_cv_prog_CC
5665 if test -n "$CC"; then
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667 $as_echo "$CC" >&6; }
5668 else
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5671 fi
5672
5673
5674 fi
5675 if test -z "$ac_cv_prog_CC"; then
5676   ac_ct_CC=$CC
5677   # Extract the first word of "gcc", so it can be a program name with args.
5678 set dummy gcc; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5682   $as_echo_n "(cached) " >&6
5683 else
5684   if test -n "$ac_ct_CC"; then
5685   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690   IFS=$as_save_IFS
5691   test -z "$as_dir" && as_dir=.
5692     for ac_exec_ext in '' $ac_executable_extensions; do
5693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694     ac_cv_prog_ac_ct_CC="gcc"
5695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696     break 2
5697   fi
5698 done
5699   done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5705 if test -n "$ac_ct_CC"; then
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5707 $as_echo "$ac_ct_CC" >&6; }
5708 else
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713   if test "x$ac_ct_CC" = x; then
5714     CC=""
5715   else
5716     case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722     CC=$ac_ct_CC
5723   fi
5724 else
5725   CC="$ac_cv_prog_CC"
5726 fi
5727
5728 if test -z "$CC"; then
5729           if test -n "$ac_tool_prefix"; then
5730     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}cc; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_CC+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$CC"; then
5738   ac_cv_prog_CC="$CC" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_CC="${ac_tool_prefix}cc"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 CC=$ac_cv_prog_CC
5758 if test -n "$CC"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5760 $as_echo "$CC" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767   fi
5768 fi
5769 if test -z "$CC"; then
5770   # Extract the first word of "cc", so it can be a program name with args.
5771 set dummy cc; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_CC+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$CC"; then
5778   ac_cv_prog_CC="$CC" # Let the user override the test.
5779 else
5780   ac_prog_rejected=no
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786     for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5789        ac_prog_rejected=yes
5790        continue
5791      fi
5792     ac_cv_prog_CC="cc"
5793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797   done
5798 IFS=$as_save_IFS
5799
5800 if test $ac_prog_rejected = yes; then
5801   # We found a bogon in the path, so make sure we never use it.
5802   set dummy $ac_cv_prog_CC
5803   shift
5804   if test $# != 0; then
5805     # We chose a different compiler from the bogus one.
5806     # However, it has the same basename, so the bogon will be chosen
5807     # first if we set CC to just the basename; use the full file name.
5808     shift
5809     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5810   fi
5811 fi
5812 fi
5813 fi
5814 CC=$ac_cv_prog_CC
5815 if test -n "$CC"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5817 $as_echo "$CC" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824 fi
5825 if test -z "$CC"; then
5826   if test -n "$ac_tool_prefix"; then
5827   for ac_prog in cl.exe
5828   do
5829     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_CC+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$CC"; then
5837   ac_cv_prog_CC="$CC" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 CC=$ac_cv_prog_CC
5857 if test -n "$CC"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5859 $as_echo "$CC" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866     test -n "$CC" && break
5867   done
5868 fi
5869 if test -z "$CC"; then
5870   ac_ct_CC=$CC
5871   for ac_prog in cl.exe
5872 do
5873   # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$ac_ct_CC"; then
5881   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_prog_ac_ct_CC="$ac_prog"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5901 if test -n "$ac_ct_CC"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5903 $as_echo "$ac_ct_CC" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910   test -n "$ac_ct_CC" && break
5911 done
5912
5913   if test "x$ac_ct_CC" = x; then
5914     CC=""
5915   else
5916     case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922     CC=$ac_ct_CC
5923   fi
5924 fi
5925
5926 fi
5927
5928
5929 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5931 as_fn_error $? "no acceptable C compiler found in \$PATH
5932 See \`config.log' for more details" "$LINENO" 5; }
5933
5934 # Provide some information about the compiler.
5935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5936 set X $ac_compile
5937 ac_compiler=$2
5938 for ac_option in --version -v -V -qversion; do
5939   { { ac_try="$ac_compiler $ac_option >&5"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5947   ac_status=$?
5948   if test -s conftest.err; then
5949     sed '10a\
5950 ... rest of stderr output deleted ...
5951          10q' conftest.err >conftest.er1
5952     cat conftest.er1 >&5
5953   fi
5954   rm -f conftest.er1 conftest.err
5955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956   test $ac_status = 0; }
5957 done
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5961 if ${ac_cv_c_compiler_gnu+:} false; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h.  */
5966
5967 int
5968 main ()
5969 {
5970 #ifndef __GNUC__
5971        choke me
5972 #endif
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979   ac_compiler_gnu=yes
5980 else
5981   ac_compiler_gnu=no
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5985
5986 fi
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5988 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5989 if test $ac_compiler_gnu = yes; then
5990   GCC=yes
5991 else
5992   GCC=
5993 fi
5994 ac_test_CFLAGS=${CFLAGS+set}
5995 ac_save_CFLAGS=$CFLAGS
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5997 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5998 if ${ac_cv_prog_cc_g+:} false; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   ac_save_c_werror_flag=$ac_c_werror_flag
6002    ac_c_werror_flag=yes
6003    ac_cv_prog_cc_g=no
6004    CFLAGS="-g"
6005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h.  */
6007
6008 int
6009 main ()
6010 {
6011
6012   ;
6013   return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_compile "$LINENO"; then :
6017   ac_cv_prog_cc_g=yes
6018 else
6019   CFLAGS=""
6020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h.  */
6022
6023 int
6024 main ()
6025 {
6026
6027   ;
6028   return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032
6033 else
6034   ac_c_werror_flag=$ac_save_c_werror_flag
6035          CFLAGS="-g"
6036          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h.  */
6038
6039 int
6040 main ()
6041 {
6042
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048   ac_cv_prog_cc_g=yes
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055    ac_c_werror_flag=$ac_save_c_werror_flag
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6058 $as_echo "$ac_cv_prog_cc_g" >&6; }
6059 if test "$ac_test_CFLAGS" = set; then
6060   CFLAGS=$ac_save_CFLAGS
6061 elif test $ac_cv_prog_cc_g = yes; then
6062   if test "$GCC" = yes; then
6063     CFLAGS="-g -O2"
6064   else
6065     CFLAGS="-g"
6066   fi
6067 else
6068   if test "$GCC" = yes; then
6069     CFLAGS="-O2"
6070   else
6071     CFLAGS=
6072   fi
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6076 if ${ac_cv_prog_cc_c89+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   ac_cv_prog_cc_c89=no
6080 ac_save_CC=$CC
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083 #include <stdarg.h>
6084 #include <stdio.h>
6085 #include <sys/types.h>
6086 #include <sys/stat.h>
6087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6088 struct buf { int x; };
6089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090 static char *e (p, i)
6091      char **p;
6092      int i;
6093 {
6094   return p[i];
6095 }
6096 static char *f (char * (*g) (char **, int), char **p, ...)
6097 {
6098   char *s;
6099   va_list v;
6100   va_start (v,p);
6101   s = g (p, va_arg (v,int));
6102   va_end (v);
6103   return s;
6104 }
6105
6106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6107    function prototypes and stuff, but not '\xHH' hex character constants.
6108    These don't provoke an error unfortunately, instead are silently treated
6109    as 'x'.  The following induces an error, until -std is added to get
6110    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6111    array size at least.  It's necessary to write '\x00'==0 to get something
6112    that's true only with -std.  */
6113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114
6115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116    inside strings and character constants.  */
6117 #define FOO(x) 'x'
6118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119
6120 int test (int i, double x);
6121 struct s1 {int (*f) (int a);};
6122 struct s2 {int (*f) (double a);};
6123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6124 int argc;
6125 char **argv;
6126 int
6127 main ()
6128 {
6129 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6130   ;
6131   return 0;
6132 }
6133 _ACEOF
6134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136 do
6137   CC="$ac_save_CC $ac_arg"
6138   if ac_fn_c_try_compile "$LINENO"; then :
6139   ac_cv_prog_cc_c89=$ac_arg
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext
6142   test "x$ac_cv_prog_cc_c89" != "xno" && break
6143 done
6144 rm -f conftest.$ac_ext
6145 CC=$ac_save_CC
6146
6147 fi
6148 # AC_CACHE_VAL
6149 case "x$ac_cv_prog_cc_c89" in
6150   x)
6151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6152 $as_echo "none needed" >&6; } ;;
6153   xno)
6154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6155 $as_echo "unsupported" >&6; } ;;
6156   *)
6157     CC="$CC $ac_cv_prog_cc_c89"
6158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6160 esac
6161 if test "x$ac_cv_prog_cc_c89" != xno; then :
6162
6163 fi
6164
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171 depcc="$CC"   am_compiler_list=
6172
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6174 $as_echo_n "checking dependency style of $depcc... " >&6; }
6175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6179   # We make a subdir and do the tests there.  Otherwise we can end up
6180   # making bogus files that we don't know about and never remove.  For
6181   # instance it was reported that on HP-UX the gcc test will end up
6182   # making a dummy file named `D' -- because `-MD' means `put the output
6183   # in D'.
6184   mkdir conftest.dir
6185   # Copy depcomp to subdir because otherwise we won't find it if we're
6186   # using a relative directory.
6187   cp "$am_depcomp" conftest.dir
6188   cd conftest.dir
6189   # We will build objects and dependencies in a subdirectory because
6190   # it helps to detect inapplicable dependency modes.  For instance
6191   # both Tru64's cc and ICC support -MD to output dependencies as a
6192   # side effect of compilation, but ICC will put the dependencies in
6193   # the current directory while Tru64 will put them in the object
6194   # directory.
6195   mkdir sub
6196
6197   am_cv_CC_dependencies_compiler_type=none
6198   if test "$am_compiler_list" = ""; then
6199      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6200   fi
6201   am__universal=false
6202   case " $depcc " in #(
6203      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6204      esac
6205
6206   for depmode in $am_compiler_list; do
6207     # Setup a source with many dependencies, because some compilers
6208     # like to wrap large dependency lists on column 80 (with \), and
6209     # we should not choose a depcomp mode which is confused by this.
6210     #
6211     # We need to recreate these files for each test, as the compiler may
6212     # overwrite some of them when testing with obscure command lines.
6213     # This happens at least with the AIX C compiler.
6214     : > sub/conftest.c
6215     for i in 1 2 3 4 5 6; do
6216       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218       # Solaris 8's {/usr,}/bin/sh.
6219       touch sub/conftst$i.h
6220     done
6221     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6222
6223     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6224     # mode.  It turns out that the SunPro C++ compiler does not properly
6225     # handle `-M -o', and we need to detect this.  Also, some Intel
6226     # versions had trouble with output in subdirs
6227     am__obj=sub/conftest.${OBJEXT-o}
6228     am__minus_obj="-o $am__obj"
6229     case $depmode in
6230     gcc)
6231       # This depmode causes a compiler race in universal mode.
6232       test "$am__universal" = false || continue
6233       ;;
6234     nosideeffect)
6235       # after this tag, mechanisms are not by side-effect, so they'll
6236       # only be used when explicitly requested
6237       if test "x$enable_dependency_tracking" = xyes; then
6238         continue
6239       else
6240         break
6241       fi
6242       ;;
6243     msvisualcpp | msvcmsys)
6244       # This compiler won't grok `-c -o', but also, the minuso test has
6245       # not run yet.  These depmodes are late enough in the game, and
6246       # so weak that their functioning should not be impacted.
6247       am__obj=conftest.${OBJEXT-o}
6248       am__minus_obj=
6249       ;;
6250     none) break ;;
6251     esac
6252     if depmode=$depmode \
6253        source=sub/conftest.c object=$am__obj \
6254        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6256          >/dev/null 2>conftest.err &&
6257        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6258        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6259        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6260        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6261       # icc doesn't choke on unknown options, it will just issue warnings
6262       # or remarks (even with -Werror).  So we grep stderr for any message
6263       # that says an option was ignored or not supported.
6264       # When given -MP, icc 7.0 and 7.1 complain thusly:
6265       #   icc: Command line warning: ignoring option '-M'; no argument required
6266       # The diagnosis changed in icc 8.0:
6267       #   icc: Command line remark: option '-MP' not supported
6268       if (grep 'ignoring option' conftest.err ||
6269           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6270         am_cv_CC_dependencies_compiler_type=$depmode
6271         break
6272       fi
6273     fi
6274   done
6275
6276   cd ..
6277   rm -rf conftest.dir
6278 else
6279   am_cv_CC_dependencies_compiler_type=none
6280 fi
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6284 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6286
6287  if
6288   test "x$enable_dependency_tracking" != xno \
6289   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6290   am__fastdepCC_TRUE=
6291   am__fastdepCC_FALSE='#'
6292 else
6293   am__fastdepCC_TRUE='#'
6294   am__fastdepCC_FALSE=
6295 fi
6296
6297
6298 ac_ext=cpp
6299 ac_cpp='$CXXCPP $CPPFLAGS'
6300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6303 if test -z "$CXX"; then
6304   if test -n "$CCC"; then
6305     CXX=$CCC
6306   else
6307     if test -n "$ac_tool_prefix"; then
6308   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6309   do
6310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_CXX+:} false; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   if test -n "$CXX"; then
6318   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334
6335 fi
6336 fi
6337 CXX=$ac_cv_prog_CXX
6338 if test -n "$CXX"; then
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6340 $as_echo "$CXX" >&6; }
6341 else
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6344 fi
6345
6346
6347     test -n "$CXX" && break
6348   done
6349 fi
6350 if test -z "$CXX"; then
6351   ac_ct_CXX=$CXX
6352   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6353 do
6354   # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   if test -n "$ac_ct_CXX"; then
6362   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367   IFS=$as_save_IFS
6368   test -z "$as_dir" && as_dir=.
6369     for ac_exec_ext in '' $ac_executable_extensions; do
6370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371     ac_cv_prog_ac_ct_CXX="$ac_prog"
6372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373     break 2
6374   fi
6375 done
6376   done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6382 if test -n "$ac_ct_CXX"; then
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6384 $as_echo "$ac_ct_CXX" >&6; }
6385 else
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390
6391   test -n "$ac_ct_CXX" && break
6392 done
6393
6394   if test "x$ac_ct_CXX" = x; then
6395     CXX="g++"
6396   else
6397     case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403     CXX=$ac_ct_CXX
6404   fi
6405 fi
6406
6407   fi
6408 fi
6409 # Provide some information about the compiler.
6410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6411 set X $ac_compile
6412 ac_compiler=$2
6413 for ac_option in --version -v -V -qversion; do
6414   { { ac_try="$ac_compiler $ac_option >&5"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420 $as_echo "$ac_try_echo"; } >&5
6421   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6422   ac_status=$?
6423   if test -s conftest.err; then
6424     sed '10a\
6425 ... rest of stderr output deleted ...
6426          10q' conftest.err >conftest.er1
6427     cat conftest.er1 >&5
6428   fi
6429   rm -f conftest.er1 conftest.err
6430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431   test $ac_status = 0; }
6432 done
6433
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6437   $as_echo_n "(cached) " >&6
6438 else
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441
6442 int
6443 main ()
6444 {
6445 #ifndef __GNUC__
6446        choke me
6447 #endif
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_cxx_try_compile "$LINENO"; then :
6454   ac_compiler_gnu=yes
6455 else
6456   ac_compiler_gnu=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6460
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6464 if test $ac_compiler_gnu = yes; then
6465   GXX=yes
6466 else
6467   GXX=
6468 fi
6469 ac_test_CXXFLAGS=${CXXFLAGS+set}
6470 ac_save_CXXFLAGS=$CXXFLAGS
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6473 if ${ac_cv_prog_cxx_g+:} false; then :
6474   $as_echo_n "(cached) " >&6
6475 else
6476   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6477    ac_cxx_werror_flag=yes
6478    ac_cv_prog_cxx_g=no
6479    CXXFLAGS="-g"
6480    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h.  */
6482
6483 int
6484 main ()
6485 {
6486
6487   ;
6488   return 0;
6489 }
6490 _ACEOF
6491 if ac_fn_cxx_try_compile "$LINENO"; then :
6492   ac_cv_prog_cxx_g=yes
6493 else
6494   CXXFLAGS=""
6495       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h.  */
6497
6498 int
6499 main ()
6500 {
6501
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 if ac_fn_cxx_try_compile "$LINENO"; then :
6507
6508 else
6509   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6510          CXXFLAGS="-g"
6511          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h.  */
6513
6514 int
6515 main ()
6516 {
6517
6518   ;
6519   return 0;
6520 }
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6523   ac_cv_prog_cxx_g=yes
6524 fi
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6534 if test "$ac_test_CXXFLAGS" = set; then
6535   CXXFLAGS=$ac_save_CXXFLAGS
6536 elif test $ac_cv_prog_cxx_g = yes; then
6537   if test "$GXX" = yes; then
6538     CXXFLAGS="-g -O2"
6539   else
6540     CXXFLAGS="-g"
6541   fi
6542 else
6543   if test "$GXX" = yes; then
6544     CXXFLAGS="-O2"
6545   else
6546     CXXFLAGS=
6547   fi
6548 fi
6549 ac_ext=c
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
6555 depcc="$CXX"  am_compiler_list=
6556
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6558 $as_echo_n "checking dependency style of $depcc... " >&6; }
6559 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6563   # We make a subdir and do the tests there.  Otherwise we can end up
6564   # making bogus files that we don't know about and never remove.  For
6565   # instance it was reported that on HP-UX the gcc test will end up
6566   # making a dummy file named `D' -- because `-MD' means `put the output
6567   # in D'.
6568   mkdir conftest.dir
6569   # Copy depcomp to subdir because otherwise we won't find it if we're
6570   # using a relative directory.
6571   cp "$am_depcomp" conftest.dir
6572   cd conftest.dir
6573   # We will build objects and dependencies in a subdirectory because
6574   # it helps to detect inapplicable dependency modes.  For instance
6575   # both Tru64's cc and ICC support -MD to output dependencies as a
6576   # side effect of compilation, but ICC will put the dependencies in
6577   # the current directory while Tru64 will put them in the object
6578   # directory.
6579   mkdir sub
6580
6581   am_cv_CXX_dependencies_compiler_type=none
6582   if test "$am_compiler_list" = ""; then
6583      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6584   fi
6585   am__universal=false
6586   case " $depcc " in #(
6587      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6588      esac
6589
6590   for depmode in $am_compiler_list; do
6591     # Setup a source with many dependencies, because some compilers
6592     # like to wrap large dependency lists on column 80 (with \), and
6593     # we should not choose a depcomp mode which is confused by this.
6594     #
6595     # We need to recreate these files for each test, as the compiler may
6596     # overwrite some of them when testing with obscure command lines.
6597     # This happens at least with the AIX C compiler.
6598     : > sub/conftest.c
6599     for i in 1 2 3 4 5 6; do
6600       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6602       # Solaris 8's {/usr,}/bin/sh.
6603       touch sub/conftst$i.h
6604     done
6605     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6606
6607     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6608     # mode.  It turns out that the SunPro C++ compiler does not properly
6609     # handle `-M -o', and we need to detect this.  Also, some Intel
6610     # versions had trouble with output in subdirs
6611     am__obj=sub/conftest.${OBJEXT-o}
6612     am__minus_obj="-o $am__obj"
6613     case $depmode in
6614     gcc)
6615       # This depmode causes a compiler race in universal mode.
6616       test "$am__universal" = false || continue
6617       ;;
6618     nosideeffect)
6619       # after this tag, mechanisms are not by side-effect, so they'll
6620       # only be used when explicitly requested
6621       if test "x$enable_dependency_tracking" = xyes; then
6622         continue
6623       else
6624         break
6625       fi
6626       ;;
6627     msvisualcpp | msvcmsys)
6628       # This compiler won't grok `-c -o', but also, the minuso test has
6629       # not run yet.  These depmodes are late enough in the game, and
6630       # so weak that their functioning should not be impacted.
6631       am__obj=conftest.${OBJEXT-o}
6632       am__minus_obj=
6633       ;;
6634     none) break ;;
6635     esac
6636     if depmode=$depmode \
6637        source=sub/conftest.c object=$am__obj \
6638        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640          >/dev/null 2>conftest.err &&
6641        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645       # icc doesn't choke on unknown options, it will just issue warnings
6646       # or remarks (even with -Werror).  So we grep stderr for any message
6647       # that says an option was ignored or not supported.
6648       # When given -MP, icc 7.0 and 7.1 complain thusly:
6649       #   icc: Command line warning: ignoring option '-M'; no argument required
6650       # The diagnosis changed in icc 8.0:
6651       #   icc: Command line remark: option '-MP' not supported
6652       if (grep 'ignoring option' conftest.err ||
6653           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654         am_cv_CXX_dependencies_compiler_type=$depmode
6655         break
6656       fi
6657     fi
6658   done
6659
6660   cd ..
6661   rm -rf conftest.dir
6662 else
6663   am_cv_CXX_dependencies_compiler_type=none
6664 fi
6665
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6670
6671  if
6672   test "x$enable_dependency_tracking" != xno \
6673   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6674   am__fastdepCXX_TRUE=
6675   am__fastdepCXX_FALSE='#'
6676 else
6677   am__fastdepCXX_TRUE='#'
6678   am__fastdepCXX_FALSE=
6679 fi
6680
6681
6682    case $ac_cv_prog_cc_stdc in #(
6683   no) :
6684     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6685   *) :
6686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6687 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6688 if ${ac_cv_prog_cc_c99+:} false; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   ac_cv_prog_cc_c99=no
6692 ac_save_CC=$CC
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h.  */
6695 #include <stdarg.h>
6696 #include <stdbool.h>
6697 #include <stdlib.h>
6698 #include <wchar.h>
6699 #include <stdio.h>
6700
6701 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6702 #define debug(...) fprintf (stderr, __VA_ARGS__)
6703 #define showlist(...) puts (#__VA_ARGS__)
6704 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6705 static void
6706 test_varargs_macros (void)
6707 {
6708   int x = 1234;
6709   int y = 5678;
6710   debug ("Flag");
6711   debug ("X = %d\n", x);
6712   showlist (The first, second, and third items.);
6713   report (x>y, "x is %d but y is %d", x, y);
6714 }
6715
6716 // Check long long types.
6717 #define BIG64 18446744073709551615ull
6718 #define BIG32 4294967295ul
6719 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6720 #if !BIG_OK
6721   your preprocessor is broken;
6722 #endif
6723 #if BIG_OK
6724 #else
6725   your preprocessor is broken;
6726 #endif
6727 static long long int bignum = -9223372036854775807LL;
6728 static unsigned long long int ubignum = BIG64;
6729
6730 struct incomplete_array
6731 {
6732   int datasize;
6733   double data[];
6734 };
6735
6736 struct named_init {
6737   int number;
6738   const wchar_t *name;
6739   double average;
6740 };
6741
6742 typedef const char *ccp;
6743
6744 static inline int
6745 test_restrict (ccp restrict text)
6746 {
6747   // See if C++-style comments work.
6748   // Iterate through items via the restricted pointer.
6749   // Also check for declarations in for loops.
6750   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6751     continue;
6752   return 0;
6753 }
6754
6755 // Check varargs and va_copy.
6756 static void
6757 test_varargs (const char *format, ...)
6758 {
6759   va_list args;
6760   va_start (args, format);
6761   va_list args_copy;
6762   va_copy (args_copy, args);
6763
6764   const char *str;
6765   int number;
6766   float fnumber;
6767
6768   while (*format)
6769     {
6770       switch (*format++)
6771         {
6772         case 's': // string
6773           str = va_arg (args_copy, const char *);
6774           break;
6775         case 'd': // int
6776           number = va_arg (args_copy, int);
6777           break;
6778         case 'f': // float
6779           fnumber = va_arg (args_copy, double);
6780           break;
6781         default:
6782           break;
6783         }
6784     }
6785   va_end (args_copy);
6786   va_end (args);
6787 }
6788
6789 int
6790 main ()
6791 {
6792
6793   // Check bool.
6794   _Bool success = false;
6795
6796   // Check restrict.
6797   if (test_restrict ("String literal") == 0)
6798     success = true;
6799   char *restrict newvar = "Another string";
6800
6801   // Check varargs.
6802   test_varargs ("s, d' f .", "string", 65, 34.234);
6803   test_varargs_macros ();
6804
6805   // Check flexible array members.
6806   struct incomplete_array *ia =
6807     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6808   ia->datasize = 10;
6809   for (int i = 0; i < ia->datasize; ++i)
6810     ia->data[i] = i * 1.234;
6811
6812   // Check named initializers.
6813   struct named_init ni = {
6814     .number = 34,
6815     .name = L"Test wide string",
6816     .average = 543.34343,
6817   };
6818
6819   ni.number = 58;
6820
6821   int dynamic_array[ni.number];
6822   dynamic_array[ni.number - 1] = 543;
6823
6824   // work around unused variable warnings
6825   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6826           || dynamic_array[ni.number - 1] != 543);
6827
6828   ;
6829   return 0;
6830 }
6831 _ACEOF
6832 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6833 do
6834   CC="$ac_save_CC $ac_arg"
6835   if ac_fn_c_try_compile "$LINENO"; then :
6836   ac_cv_prog_cc_c99=$ac_arg
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext
6839   test "x$ac_cv_prog_cc_c99" != "xno" && break
6840 done
6841 rm -f conftest.$ac_ext
6842 CC=$ac_save_CC
6843
6844 fi
6845 # AC_CACHE_VAL
6846 case "x$ac_cv_prog_cc_c99" in
6847   x)
6848     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6849 $as_echo "none needed" >&6; } ;;
6850   xno)
6851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6852 $as_echo "unsupported" >&6; } ;;
6853   *)
6854     CC="$CC $ac_cv_prog_cc_c99"
6855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6856 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6857 esac
6858 if test "x$ac_cv_prog_cc_c99" != xno; then :
6859   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6860 else
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6863 if ${ac_cv_prog_cc_c89+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   ac_cv_prog_cc_c89=no
6867 ac_save_CC=$CC
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870 #include <stdarg.h>
6871 #include <stdio.h>
6872 #include <sys/types.h>
6873 #include <sys/stat.h>
6874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6875 struct buf { int x; };
6876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6877 static char *e (p, i)
6878      char **p;
6879      int i;
6880 {
6881   return p[i];
6882 }
6883 static char *f (char * (*g) (char **, int), char **p, ...)
6884 {
6885   char *s;
6886   va_list v;
6887   va_start (v,p);
6888   s = g (p, va_arg (v,int));
6889   va_end (v);
6890   return s;
6891 }
6892
6893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6894    function prototypes and stuff, but not '\xHH' hex character constants.
6895    These don't provoke an error unfortunately, instead are silently treated
6896    as 'x'.  The following induces an error, until -std is added to get
6897    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6898    array size at least.  It's necessary to write '\x00'==0 to get something
6899    that's true only with -std.  */
6900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6901
6902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6903    inside strings and character constants.  */
6904 #define FOO(x) 'x'
6905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6906
6907 int test (int i, double x);
6908 struct s1 {int (*f) (int a);};
6909 struct s2 {int (*f) (double a);};
6910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6911 int argc;
6912 char **argv;
6913 int
6914 main ()
6915 {
6916 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6922         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6923 do
6924   CC="$ac_save_CC $ac_arg"
6925   if ac_fn_c_try_compile "$LINENO"; then :
6926   ac_cv_prog_cc_c89=$ac_arg
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext
6929   test "x$ac_cv_prog_cc_c89" != "xno" && break
6930 done
6931 rm -f conftest.$ac_ext
6932 CC=$ac_save_CC
6933
6934 fi
6935 # AC_CACHE_VAL
6936 case "x$ac_cv_prog_cc_c89" in
6937   x)
6938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6939 $as_echo "none needed" >&6; } ;;
6940   xno)
6941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6942 $as_echo "unsupported" >&6; } ;;
6943   *)
6944     CC="$CC $ac_cv_prog_cc_c89"
6945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6946 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6947 esac
6948 if test "x$ac_cv_prog_cc_c89" != xno; then :
6949   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6950 else
6951   ac_cv_prog_cc_stdc=no
6952 fi
6953
6954 fi
6955  ;;
6956 esac
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6958 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6959   if ${ac_cv_prog_cc_stdc+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 fi
6962
6963   case $ac_cv_prog_cc_stdc in #(
6964   no) :
6965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6966 $as_echo "unsupported" >&6; } ;; #(
6967   '') :
6968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6969 $as_echo "none needed" >&6; } ;; #(
6970   *) :
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6972 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6973 esac
6974
6975 ac_ext=c
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6982 # On Suns, sometimes $CPP names a directory.
6983 if test -n "$CPP" && test -d "$CPP"; then
6984   CPP=
6985 fi
6986 if test -z "$CPP"; then
6987   if ${ac_cv_prog_CPP+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990       # Double quotes because CPP needs to be expanded
6991     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6992     do
6993       ac_preproc_ok=false
6994 for ac_c_preproc_warn_flag in '' yes
6995 do
6996   # Use a header file that comes with gcc, so configuring glibc
6997   # with a fresh cross-compiler works.
6998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999   # <limits.h> exists even on freestanding compilers.
7000   # On the NeXT, cc -E runs the code through the compiler's parser,
7001   # not just through cpp. "Syntax error" is here to catch this case.
7002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h.  */
7004 #ifdef __STDC__
7005 # include <limits.h>
7006 #else
7007 # include <assert.h>
7008 #endif
7009                      Syntax error
7010 _ACEOF
7011 if ac_fn_c_try_cpp "$LINENO"; then :
7012
7013 else
7014   # Broken: fails on valid input.
7015 continue
7016 fi
7017 rm -f conftest.err conftest.i conftest.$ac_ext
7018
7019   # OK, works on sane cases.  Now check whether nonexistent headers
7020   # can be detected and how.
7021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023 #include <ac_nonexistent.h>
7024 _ACEOF
7025 if ac_fn_c_try_cpp "$LINENO"; then :
7026   # Broken: success on invalid input.
7027 continue
7028 else
7029   # Passes both tests.
7030 ac_preproc_ok=:
7031 break
7032 fi
7033 rm -f conftest.err conftest.i conftest.$ac_ext
7034
7035 done
7036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7037 rm -f conftest.i conftest.err conftest.$ac_ext
7038 if $ac_preproc_ok; then :
7039   break
7040 fi
7041
7042     done
7043     ac_cv_prog_CPP=$CPP
7044
7045 fi
7046   CPP=$ac_cv_prog_CPP
7047 else
7048   ac_cv_prog_CPP=$CPP
7049 fi
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7051 $as_echo "$CPP" >&6; }
7052 ac_preproc_ok=false
7053 for ac_c_preproc_warn_flag in '' yes
7054 do
7055   # Use a header file that comes with gcc, so configuring glibc
7056   # with a fresh cross-compiler works.
7057   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058   # <limits.h> exists even on freestanding compilers.
7059   # On the NeXT, cc -E runs the code through the compiler's parser,
7060   # not just through cpp. "Syntax error" is here to catch this case.
7061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h.  */
7063 #ifdef __STDC__
7064 # include <limits.h>
7065 #else
7066 # include <assert.h>
7067 #endif
7068                      Syntax error
7069 _ACEOF
7070 if ac_fn_c_try_cpp "$LINENO"; then :
7071
7072 else
7073   # Broken: fails on valid input.
7074 continue
7075 fi
7076 rm -f conftest.err conftest.i conftest.$ac_ext
7077
7078   # OK, works on sane cases.  Now check whether nonexistent headers
7079   # can be detected and how.
7080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h.  */
7082 #include <ac_nonexistent.h>
7083 _ACEOF
7084 if ac_fn_c_try_cpp "$LINENO"; then :
7085   # Broken: success on invalid input.
7086 continue
7087 else
7088   # Passes both tests.
7089 ac_preproc_ok=:
7090 break
7091 fi
7092 rm -f conftest.err conftest.i conftest.$ac_ext
7093
7094 done
7095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7096 rm -f conftest.i conftest.err conftest.$ac_ext
7097 if $ac_preproc_ok; then :
7098
7099 else
7100   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7103 See \`config.log' for more details" "$LINENO" 5; }
7104 fi
7105
7106 ac_ext=c
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7113 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7114 if ${ac_cv_path_SED+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7118      for ac_i in 1 2 3 4 5 6 7; do
7119        ac_script="$ac_script$as_nl$ac_script"
7120      done
7121      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7122      { ac_script=; unset ac_script;}
7123      if test -z "$SED"; then
7124   ac_path_SED_found=false
7125   # Loop through the user's path and test for each of PROGNAME-LIST
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131     for ac_prog in sed gsed; do
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7134       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7135 # Check for GNU ac_path_SED and select it if it is found.
7136   # Check for GNU $ac_path_SED
7137 case `"$ac_path_SED" --version 2>&1` in
7138 *GNU*)
7139   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7140 *)
7141   ac_count=0
7142   $as_echo_n 0123456789 >"conftest.in"
7143   while :
7144   do
7145     cat "conftest.in" "conftest.in" >"conftest.tmp"
7146     mv "conftest.tmp" "conftest.in"
7147     cp "conftest.in" "conftest.nl"
7148     $as_echo '' >> "conftest.nl"
7149     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7151     as_fn_arith $ac_count + 1 && ac_count=$as_val
7152     if test $ac_count -gt ${ac_path_SED_max-0}; then
7153       # Best one so far, save it but keep looking for a better one
7154       ac_cv_path_SED="$ac_path_SED"
7155       ac_path_SED_max=$ac_count
7156     fi
7157     # 10*(2^10) chars as input seems more than enough
7158     test $ac_count -gt 10 && break
7159   done
7160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7161 esac
7162
7163       $ac_path_SED_found && break 3
7164     done
7165   done
7166   done
7167 IFS=$as_save_IFS
7168   if test -z "$ac_cv_path_SED"; then
7169     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7170   fi
7171 else
7172   ac_cv_path_SED=$SED
7173 fi
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7177 $as_echo "$ac_cv_path_SED" >&6; }
7178  SED="$ac_cv_path_SED"
7179   rm -f conftest.sed
7180
7181 test -z "$SED" && SED=sed
7182 Xsed="$SED -e 1s/^X//"
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7195 $as_echo_n "checking for fgrep... " >&6; }
7196 if ${ac_cv_path_FGREP+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7200    then ac_cv_path_FGREP="$GREP -F"
7201    else
7202      if test -z "$FGREP"; then
7203   ac_path_FGREP_found=false
7204   # Loop through the user's path and test for each of PROGNAME-LIST
7205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_prog in fgrep; do
7211     for ac_exec_ext in '' $ac_executable_extensions; do
7212       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7213       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7214 # Check for GNU ac_path_FGREP and select it if it is found.
7215   # Check for GNU $ac_path_FGREP
7216 case `"$ac_path_FGREP" --version 2>&1` in
7217 *GNU*)
7218   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7219 *)
7220   ac_count=0
7221   $as_echo_n 0123456789 >"conftest.in"
7222   while :
7223   do
7224     cat "conftest.in" "conftest.in" >"conftest.tmp"
7225     mv "conftest.tmp" "conftest.in"
7226     cp "conftest.in" "conftest.nl"
7227     $as_echo 'FGREP' >> "conftest.nl"
7228     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7230     as_fn_arith $ac_count + 1 && ac_count=$as_val
7231     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7232       # Best one so far, save it but keep looking for a better one
7233       ac_cv_path_FGREP="$ac_path_FGREP"
7234       ac_path_FGREP_max=$ac_count
7235     fi
7236     # 10*(2^10) chars as input seems more than enough
7237     test $ac_count -gt 10 && break
7238   done
7239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7240 esac
7241
7242       $ac_path_FGREP_found && break 3
7243     done
7244   done
7245   done
7246 IFS=$as_save_IFS
7247   if test -z "$ac_cv_path_FGREP"; then
7248     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7249   fi
7250 else
7251   ac_cv_path_FGREP=$FGREP
7252 fi
7253
7254    fi
7255 fi
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7257 $as_echo "$ac_cv_path_FGREP" >&6; }
7258  FGREP="$ac_cv_path_FGREP"
7259
7260
7261 test -z "$GREP" && GREP=grep
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7284 $as_echo_n "checking how to print strings... " >&6; }
7285 # Test print first, because it will be a builtin if present.
7286 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7287    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7288   ECHO='print -r --'
7289 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7290   ECHO='printf %s\n'
7291 else
7292   # Use this function as a fallback that always works.
7293   func_fallback_echo ()
7294   {
7295     eval 'cat <<_LTECHO_EOF
7296 $1
7297 _LTECHO_EOF'
7298   }
7299   ECHO='func_fallback_echo'
7300 fi
7301
7302 # func_echo_all arg...
7303 # Invoke $ECHO with all args, space-separated.
7304 func_echo_all ()
7305 {
7306     $ECHO ""
7307 }
7308
7309 case "$ECHO" in
7310   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7311 $as_echo "printf" >&6; } ;;
7312   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7313 $as_echo "print -r" >&6; } ;;
7314   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7315 $as_echo "cat" >&6; } ;;
7316 esac
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 # Check whether --with-gnu-ld was given.
7334 if test "${with_gnu_ld+set}" = set; then :
7335   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7336 else
7337   with_gnu_ld=no
7338 fi
7339
7340 ac_prog=ld
7341 if test "$GCC" = yes; then
7342   # Check if gcc -print-prog-name=ld gives a path.
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7344 $as_echo_n "checking for ld used by $CC... " >&6; }
7345   case $host in
7346   *-*-mingw*)
7347     # gcc leaves a trailing carriage return which upsets mingw
7348     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7349   *)
7350     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7351   esac
7352   case $ac_prog in
7353     # Accept absolute paths.
7354     [\\/]* | ?:[\\/]*)
7355       re_direlt='/[^/][^/]*/\.\./'
7356       # Canonicalize the pathname of ld
7357       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7358       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7359         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7360       done
7361       test -z "$LD" && LD="$ac_prog"
7362       ;;
7363   "")
7364     # If it fails, then pretend we aren't using GCC.
7365     ac_prog=ld
7366     ;;
7367   *)
7368     # If it is relative, then search for the first ld in PATH.
7369     with_gnu_ld=unknown
7370     ;;
7371   esac
7372 elif test "$with_gnu_ld" = yes; then
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7374 $as_echo_n "checking for GNU ld... " >&6; }
7375 else
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7377 $as_echo_n "checking for non-GNU ld... " >&6; }
7378 fi
7379 if ${lt_cv_path_LD+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -z "$LD"; then
7383   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384   for ac_dir in $PATH; do
7385     IFS="$lt_save_ifs"
7386     test -z "$ac_dir" && ac_dir=.
7387     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7388       lt_cv_path_LD="$ac_dir/$ac_prog"
7389       # Check to see if the program is GNU ld.  I'd rather use --version,
7390       # but apparently some variants of GNU ld only accept -v.
7391       # Break only if it was the GNU/non-GNU ld that we prefer.
7392       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7393       *GNU* | *'with BFD'*)
7394         test "$with_gnu_ld" != no && break
7395         ;;
7396       *)
7397         test "$with_gnu_ld" != yes && break
7398         ;;
7399       esac
7400     fi
7401   done
7402   IFS="$lt_save_ifs"
7403 else
7404   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7405 fi
7406 fi
7407
7408 LD="$lt_cv_path_LD"
7409 if test -n "$LD"; then
7410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7411 $as_echo "$LD" >&6; }
7412 else
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7419 if ${lt_cv_prog_gnu_ld+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7423 case `$LD -v 2>&1 </dev/null` in
7424 *GNU* | *'with BFD'*)
7425   lt_cv_prog_gnu_ld=yes
7426   ;;
7427 *)
7428   lt_cv_prog_gnu_ld=no
7429   ;;
7430 esac
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7434 with_gnu_ld=$lt_cv_prog_gnu_ld
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7446 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7447 if ${ac_cv_prog_cc_c99+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   ac_cv_prog_cc_c99=no
7451 ac_save_CC=$CC
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454 #include <stdarg.h>
7455 #include <stdbool.h>
7456 #include <stdlib.h>
7457 #include <wchar.h>
7458 #include <stdio.h>
7459
7460 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7461 #define debug(...) fprintf (stderr, __VA_ARGS__)
7462 #define showlist(...) puts (#__VA_ARGS__)
7463 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7464 static void
7465 test_varargs_macros (void)
7466 {
7467   int x = 1234;
7468   int y = 5678;
7469   debug ("Flag");
7470   debug ("X = %d\n", x);
7471   showlist (The first, second, and third items.);
7472   report (x>y, "x is %d but y is %d", x, y);
7473 }
7474
7475 // Check long long types.
7476 #define BIG64 18446744073709551615ull
7477 #define BIG32 4294967295ul
7478 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7479 #if !BIG_OK
7480   your preprocessor is broken;
7481 #endif
7482 #if BIG_OK
7483 #else
7484   your preprocessor is broken;
7485 #endif
7486 static long long int bignum = -9223372036854775807LL;
7487 static unsigned long long int ubignum = BIG64;
7488
7489 struct incomplete_array
7490 {
7491   int datasize;
7492   double data[];
7493 };
7494
7495 struct named_init {
7496   int number;
7497   const wchar_t *name;
7498   double average;
7499 };
7500
7501 typedef const char *ccp;
7502
7503 static inline int
7504 test_restrict (ccp restrict text)
7505 {
7506   // See if C++-style comments work.
7507   // Iterate through items via the restricted pointer.
7508   // Also check for declarations in for loops.
7509   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7510     continue;
7511   return 0;
7512 }
7513
7514 // Check varargs and va_copy.
7515 static void
7516 test_varargs (const char *format, ...)
7517 {
7518   va_list args;
7519   va_start (args, format);
7520   va_list args_copy;
7521   va_copy (args_copy, args);
7522
7523   const char *str;
7524   int number;
7525   float fnumber;
7526
7527   while (*format)
7528     {
7529       switch (*format++)
7530         {
7531         case 's': // string
7532           str = va_arg (args_copy, const char *);
7533           break;
7534         case 'd': // int
7535           number = va_arg (args_copy, int);
7536           break;
7537         case 'f': // float
7538           fnumber = va_arg (args_copy, double);
7539           break;
7540         default:
7541           break;
7542         }
7543     }
7544   va_end (args_copy);
7545   va_end (args);
7546 }
7547
7548 int
7549 main ()
7550 {
7551
7552   // Check bool.
7553   _Bool success = false;
7554
7555   // Check restrict.
7556   if (test_restrict ("String literal") == 0)
7557     success = true;
7558   char *restrict newvar = "Another string";
7559
7560   // Check varargs.
7561   test_varargs ("s, d' f .", "string", 65, 34.234);
7562   test_varargs_macros ();
7563
7564   // Check flexible array members.
7565   struct incomplete_array *ia =
7566     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7567   ia->datasize = 10;
7568   for (int i = 0; i < ia->datasize; ++i)
7569     ia->data[i] = i * 1.234;
7570
7571   // Check named initializers.
7572   struct named_init ni = {
7573     .number = 34,
7574     .name = L"Test wide string",
7575     .average = 543.34343,
7576   };
7577
7578   ni.number = 58;
7579
7580   int dynamic_array[ni.number];
7581   dynamic_array[ni.number - 1] = 543;
7582
7583   // work around unused variable warnings
7584   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7585           || dynamic_array[ni.number - 1] != 543);
7586
7587   ;
7588   return 0;
7589 }
7590 _ACEOF
7591 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7592 do
7593   CC="$ac_save_CC $ac_arg"
7594   if ac_fn_c_try_compile "$LINENO"; then :
7595   ac_cv_prog_cc_c99=$ac_arg
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext
7598   test "x$ac_cv_prog_cc_c99" != "xno" && break
7599 done
7600 rm -f conftest.$ac_ext
7601 CC=$ac_save_CC
7602
7603 fi
7604 # AC_CACHE_VAL
7605 case "x$ac_cv_prog_cc_c99" in
7606   x)
7607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7608 $as_echo "none needed" >&6; } ;;
7609   xno)
7610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7611 $as_echo "unsupported" >&6; } ;;
7612   *)
7613     CC="$CC $ac_cv_prog_cc_c99"
7614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7615 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7616 esac
7617 if test "x$ac_cv_prog_cc_c99" != xno; then :
7618
7619 fi
7620
7621
7622 if test "x$CC" != xcc; then
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7624 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7625 else
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7627 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7628 fi
7629 set dummy $CC; ac_cc=`$as_echo "$2" |
7630                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7631 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 int
7638 main ()
7639 {
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 # Make sure it works both with $CC and with simple cc.
7646 # We do the test twice because some compilers refuse to overwrite an
7647 # existing .o file with -o, though they will create one.
7648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7649 rm -f conftest2.*
7650 if { { case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7655 $as_echo "$ac_try_echo"; } >&5
7656   (eval "$ac_try") 2>&5
7657   ac_status=$?
7658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659   test $ac_status = 0; } &&
7660    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662   *) ac_try_echo=$ac_try;;
7663 esac
7664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7665 $as_echo "$ac_try_echo"; } >&5
7666   (eval "$ac_try") 2>&5
7667   ac_status=$?
7668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669   test $ac_status = 0; };
7670 then
7671   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7672   if test "x$CC" != xcc; then
7673     # Test first that cc exists at all.
7674     if { ac_try='cc -c conftest.$ac_ext >&5'
7675   { { case "(($ac_try" in
7676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677   *) ac_try_echo=$ac_try;;
7678 esac
7679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7680 $as_echo "$ac_try_echo"; } >&5
7681   (eval "$ac_try") 2>&5
7682   ac_status=$?
7683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684   test $ac_status = 0; }; }; then
7685       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7686       rm -f conftest2.*
7687       if { { case "(($ac_try" in
7688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689   *) ac_try_echo=$ac_try;;
7690 esac
7691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7692 $as_echo "$ac_try_echo"; } >&5
7693   (eval "$ac_try") 2>&5
7694   ac_status=$?
7695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696   test $ac_status = 0; } &&
7697          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699   *) ac_try_echo=$ac_try;;
7700 esac
7701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7702 $as_echo "$ac_try_echo"; } >&5
7703   (eval "$ac_try") 2>&5
7704   ac_status=$?
7705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706   test $ac_status = 0; };
7707       then
7708         # cc works too.
7709         :
7710       else
7711         # cc exists but doesn't like -o.
7712         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7713       fi
7714     fi
7715   fi
7716 else
7717   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7718 fi
7719 rm -f core conftest*
7720
7721 fi
7722 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724 $as_echo "yes" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728
7729 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7730
7731 fi
7732
7733 # FIXME: we rely on the cache variable name because
7734 # there is no other way.
7735 set dummy $CC
7736 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7737 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7738 if test "$am_t" != yes; then
7739    # Losing compiler, so override with the script.
7740    # FIXME: It is wrong to rewrite CC.
7741    # But if we don't then we get into trouble of one sort or another.
7742    # A longer-term fix would be to have automake use am__CC in this case,
7743    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7744    CC="$am_aux_dir/compile $CC"
7745 fi
7746
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7749 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7750 if ${ac_cv_cflags_warn_all+:} false; then :
7751   $as_echo_n "(cached) " >&6
7752 else
7753   ac_cv_cflags_warn_all="no, unknown"
7754  ac_ext=c
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760  ac_save_CFLAGS="$CFLAGS"
7761 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"    #
7762 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h.  */
7765
7766 int
7767 main ()
7768 {
7769
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 done
7779  CFLAGS="$ac_save_CFLAGS"
7780  ac_ext=c
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7789 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7790 case ".$ac_cv_cflags_warn_all" in
7791      .ok|.ok,*)  ;;
7792    .|.no|.no,*)
7793  ;;
7794    *)
7795    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7796    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7797   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7798   ac_status=$?
7799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800   test $ac_status = 0; }
7801    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7802   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7803   ac_status=$?
7804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805   test $ac_status = 0; }
7806                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7807    fi
7808  ;;
7809 esac
7810
7811
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7814 set x ${MAKE-make}
7815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   cat >conftest.make <<\_ACEOF
7820 SHELL = /bin/sh
7821 all:
7822         @echo '@@@%%%=$(MAKE)=@@@%%%'
7823 _ACEOF
7824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7826   *@@@%%%=?*=@@@%%%*)
7827     eval ac_cv_prog_make_${ac_make}_set=yes;;
7828   *)
7829     eval ac_cv_prog_make_${ac_make}_set=no;;
7830 esac
7831 rm -f conftest.make
7832 fi
7833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835 $as_echo "yes" >&6; }
7836   SET_MAKE=
7837 else
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840   SET_MAKE="MAKE=${MAKE-make}"
7841 fi
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7844 $as_echo_n "checking whether ln -s works... " >&6; }
7845 LN_S=$as_ln_s
7846 if test "$LN_S" = "ln -s"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7851 $as_echo "no, using $LN_S" >&6; }
7852 fi
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7855 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7856
7857 # Check whether --with-dmalloc was given.
7858 if test "${with_dmalloc+set}" = set; then :
7859   withval=$with_dmalloc; if test "$withval" = yes; then
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7862
7863 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7864
7865   LIBS="$LIBS -ldmalloc"
7866   LDFLAGS="$LDFLAGS -g"
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7879 $as_echo_n "checking for __attribute__... " >&6; }
7880 if ${ax_cv___attribute__+:} false; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h.  */
7885 #include <stdlib.h>
7886           static void foo(void) __attribute__ ((unused));
7887           static void
7888           foo(void) {
7889               exit(1);
7890           }
7891
7892 int
7893 main ()
7894 {
7895
7896   ;
7897   return 0;
7898 }
7899 _ACEOF
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901   ax_cv___attribute__=yes
7902 else
7903   ax_cv___attribute__=no
7904
7905 fi
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7910 $as_echo "$ax_cv___attribute__" >&6; }
7911   if test "$ax_cv___attribute__" = "yes"; then
7912
7913 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7914
7915   fi
7916
7917
7918
7919 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7920         if test -n "$ac_tool_prefix"; then
7921   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   case $PKG_CONFIG in
7929   [\\/]* | ?:[\\/]*)
7930   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7931   ;;
7932   *)
7933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936   IFS=$as_save_IFS
7937   test -z "$as_dir" && as_dir=.
7938     for ac_exec_ext in '' $ac_executable_extensions; do
7939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942     break 2
7943   fi
7944 done
7945   done
7946 IFS=$as_save_IFS
7947
7948   ;;
7949 esac
7950 fi
7951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7952 if test -n "$PKG_CONFIG"; then
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7954 $as_echo "$PKG_CONFIG" >&6; }
7955 else
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961 fi
7962 if test -z "$ac_cv_path_PKG_CONFIG"; then
7963   ac_pt_PKG_CONFIG=$PKG_CONFIG
7964   # Extract the first word of "pkg-config", so it can be a program name with args.
7965 set dummy pkg-config; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   case $ac_pt_PKG_CONFIG in
7972   [\\/]* | ?:[\\/]*)
7973   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7974   ;;
7975   *)
7976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979   IFS=$as_save_IFS
7980   test -z "$as_dir" && as_dir=.
7981     for ac_exec_ext in '' $ac_executable_extensions; do
7982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985     break 2
7986   fi
7987 done
7988   done
7989 IFS=$as_save_IFS
7990
7991   ;;
7992 esac
7993 fi
7994 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7995 if test -n "$ac_pt_PKG_CONFIG"; then
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7997 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7998 else
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003   if test "x$ac_pt_PKG_CONFIG" = x; then
8004     PKG_CONFIG=""
8005   else
8006     case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012     PKG_CONFIG=$ac_pt_PKG_CONFIG
8013   fi
8014 else
8015   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8016 fi
8017
8018 fi
8019 if test -n "$PKG_CONFIG"; then
8020         _pkg_min_version=0.9.0
8021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8022 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8023         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8024                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025 $as_echo "yes" >&6; }
8026         else
8027                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029                 PKG_CONFIG=""
8030         fi
8031
8032 fi
8033
8034 #
8035 # Enable run-time checking.
8036 #
8037 # Check whether --enable-bounds-checking was given.
8038 if test "${enable_bounds_checking+set}" = set; then :
8039   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8040 else
8041   enable_bounds_checking='no'
8042 fi
8043
8044
8045 if test "$enable_bounds_checking" = yes; then
8046
8047 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8048
8049 fi
8050
8051 #
8052 # Tests for Windows
8053 #
8054
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8057 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8058 if ${ax_cv_c_compiler_ms+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h.  */
8063
8064 int
8065 main ()
8066 {
8067 #ifndef _MSC_VER
8068        choke me
8069 #endif
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076   ax_compiler_ms=yes
8077 else
8078   ax_compiler_ms=no
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 ax_cv_c_compiler_ms=$ax_compiler_ms
8082
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8085 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8086
8087 GDI32_LIBS=''
8088 native_win32_build='no'
8089 cygwin_build='no'
8090 case "${host_os}" in
8091     cygwin* )
8092         cygwin_build='yes'
8093         GDI32_LIBS='-lgdi32'
8094     ;;
8095     mingw* )
8096         native_win32_build='yes'
8097         GDI32_LIBS='-lgdi32'
8098     ;;
8099 esac
8100 if test "${GDI32_LIBS}x" != 'x'; then
8101
8102 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8103
8104 fi
8105
8106  if test "${GDI32_LIBS}x" != 'x' ; then
8107   WINGDI32_DELEGATE_TRUE=
8108   WINGDI32_DELEGATE_FALSE='#'
8109 else
8110   WINGDI32_DELEGATE_TRUE='#'
8111   WINGDI32_DELEGATE_FALSE=
8112 fi
8113
8114  if test "${native_win32_build}" = 'yes' ; then
8115   WIN32_NATIVE_BUILD_TRUE=
8116   WIN32_NATIVE_BUILD_FALSE='#'
8117 else
8118   WIN32_NATIVE_BUILD_TRUE='#'
8119   WIN32_NATIVE_BUILD_FALSE=
8120 fi
8121
8122  if test "${cygwin_build}" = 'yes' ; then
8123   CYGWIN_BUILD_TRUE=
8124   CYGWIN_BUILD_FALSE='#'
8125 else
8126   CYGWIN_BUILD_TRUE='#'
8127   CYGWIN_BUILD_FALSE=
8128 fi
8129
8130  if test "x${CC}" = 'xcl.exe' ; then
8131   USING_CL_TRUE=
8132   USING_CL_FALSE='#'
8133 else
8134   USING_CL_TRUE='#'
8135   USING_CL_FALSE=
8136 fi
8137
8138
8139 WinPathScript="${srcdirfull}/winpath.sh"
8140
8141
8142 #
8143 # Compiler flags tweaks
8144 #
8145 if test "${GCC}" != "yes"; then
8146     case "${host}" in
8147         *-*-hpux* )
8148             # aCC: HP ANSI C++ B3910B A.03.34
8149             CFLAGS="${CFLAGS} -Wp,-H30000"
8150             if test -n "${CXXFLAGS}"; then
8151                 CXXFLAGS='-AA'
8152             else
8153                 CXXFLAGS="${CXXFLAGS} -AA"
8154             fi
8155         ;;
8156         *-dec-osf5.* )
8157             # Compaq alphaev68-dec-osf5.1 compiler
8158             if test -n "${CXXFLAGS}"; then
8159                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8160             else
8161                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8162             fi
8163   esac
8164 fi
8165
8166 # Check for lazy-loading.
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8168 $as_echo_n "checking for linker lazyload option... " >&6; }
8169 if ${im_cv_ld_lazyload+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172
8173 im_cv_ld_lazyload='none'
8174 case "${host}" in
8175   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8176     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8177        im_cv_ld_lazyload='-Wl,-zlazyload'
8178     fi
8179     ;;
8180 esac
8181
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8184 $as_echo "$im_cv_ld_lazyload" >&6; }
8185 if test "${im_cv_ld_lazyload}" != 'none' ; then
8186   if test -z "${LDFLAGS}" ; then
8187     LDFLAGS="${im_cv_ld_lazyload}"
8188   else
8189     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8190   fi
8191 fi
8192
8193 case "$host" in
8194 *darwin* | *-macos10*)
8195     # Check whether --enable-osx-universal-binary was given.
8196 if test "${enable_osx_universal_binary+set}" = set; then :
8197   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8198 else
8199   build_osxuniversal=no
8200 fi
8201
8202
8203   if test "${build_osxuniversal}" != no ; then
8204     if test "$enable_dependency_tracking" != no ; then
8205       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8206 Please re-run configure with these options:
8207   --disable-dependency-tracking --enable-osx-universal-binary
8208         " "$LINENO" 5
8209     fi
8210     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8211     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213   fi
8214   ;;
8215 esac
8216
8217 # Enable support for threads
8218
8219 # Check whether --with-threads was given.
8220 if test "${with_threads+set}" = set; then :
8221   withval=$with_threads; with_threads=$withval
8222 else
8223   with_threads='yes'
8224 fi
8225
8226
8227 have_threads=no
8228 if test "$with_threads" != 'no'; then
8229
8230
8231
8232 ac_ext=c
8233 ac_cpp='$CPP $CPPFLAGS'
8234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238 ax_pthread_ok=no
8239
8240 # We used to check for pthread.h first, but this fails if pthread.h
8241 # requires special compiler flags (e.g. on True64 or Sequent).
8242 # It gets checked for in the link test anyway.
8243
8244 # First of all, check if the user has set any of the PTHREAD_LIBS,
8245 # etcetera environment variables, and if threads linking works using
8246 # them:
8247 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8248         save_CFLAGS="$CFLAGS"
8249         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8250         save_LIBS="$LIBS"
8251         LIBS="$PTHREAD_LIBS $LIBS"
8252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8253 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8254         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h.  */
8256
8257 /* Override any GCC internal prototype to avoid an error.
8258    Use char because int might match the return type of a GCC
8259    builtin and then its argument prototype would still apply.  */
8260 #ifdef __cplusplus
8261 extern "C"
8262 #endif
8263 char pthread_join ();
8264 int
8265 main ()
8266 {
8267 return pthread_join ();
8268   ;
8269   return 0;
8270 }
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273   ax_pthread_ok=yes
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276     conftest$ac_exeext conftest.$ac_ext
8277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8278 $as_echo "$ax_pthread_ok" >&6; }
8279         if test x"$ax_pthread_ok" = xno; then
8280                 PTHREAD_LIBS=""
8281                 PTHREAD_CFLAGS=""
8282         fi
8283         LIBS="$save_LIBS"
8284         CFLAGS="$save_CFLAGS"
8285 fi
8286
8287 # We must check for the threads library under a number of different
8288 # names; the ordering is very important because some systems
8289 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8290 # libraries is broken (non-POSIX).
8291
8292 # Create a list of thread flags to try.  Items starting with a "-" are
8293 # C compiler flags, and other items are library names, except for "none"
8294 # which indicates that we try without any flags at all, and "pthread-config"
8295 # which is a program returning the flags for the Pth emulation library.
8296
8297 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8298
8299 # The ordering *is* (sometimes) important.  Some notes on the
8300 # individual items follow:
8301
8302 # pthreads: AIX (must check this before -lpthread)
8303 # none: in case threads are in libc; should be tried before -Kthread and
8304 #       other compiler flags to prevent continual compiler warnings
8305 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8306 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8307 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8308 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8309 # -pthreads: Solaris/gcc
8310 # -mthreads: Mingw32/gcc, Lynx/gcc
8311 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8312 #      doesn't hurt to check since this sometimes defines pthreads too;
8313 #      also defines -D_REENTRANT)
8314 #      ... -mt is also the pthreads flag for HP/aCC
8315 # pthread: Linux, etcetera
8316 # --thread-safe: KAI C++
8317 # pthread-config: use pthread-config program (for GNU Pth library)
8318
8319 case "${host_cpu}-${host_os}" in
8320         *solaris*)
8321
8322         # On Solaris (at least, for some versions), libc contains stubbed
8323         # (non-functional) versions of the pthreads routines, so link-based
8324         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8325         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8326         # a function called by this macro, so we could check for that, but
8327         # who knows whether they'll stub that too in a future libc.)  So,
8328         # we'll just look for -pthreads and -lpthread first:
8329
8330         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8331         ;;
8332
8333         *-darwin*)
8334         ax_pthread_flags="-pthread $ax_pthread_flags"
8335         ;;
8336 esac
8337
8338 if test x"$ax_pthread_ok" = xno; then
8339 for flag in $ax_pthread_flags; do
8340
8341         case $flag in
8342                 none)
8343                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8344 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8345                 ;;
8346
8347                 -*)
8348                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8349 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8350                 PTHREAD_CFLAGS="$flag"
8351                 ;;
8352
8353                 pthread-config)
8354                 # Extract the first word of "pthread-config", so it can be a program name with args.
8355 set dummy pthread-config; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   if test -n "$ax_pthread_config"; then
8362   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369     for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_prog_ax_pthread_config="yes"
8372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376   done
8377 IFS=$as_save_IFS
8378
8379   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8380 fi
8381 fi
8382 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8383 if test -n "$ax_pthread_config"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8385 $as_echo "$ax_pthread_config" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392                 if test x"$ax_pthread_config" = xno; then continue; fi
8393                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8394                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8395                 ;;
8396
8397                 *)
8398                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8399 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8400                 PTHREAD_LIBS="-l$flag"
8401                 ;;
8402         esac
8403
8404         save_LIBS="$LIBS"
8405         save_CFLAGS="$CFLAGS"
8406         LIBS="$PTHREAD_LIBS $LIBS"
8407         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8408
8409         # Check for various functions.  We must include pthread.h,
8410         # since some functions may be macros.  (On the Sequent, we
8411         # need a special flag -Kthread to make this header compile.)
8412         # We check for pthread_join because it is in -lpthread on IRIX
8413         # while pthread_create is in libc.  We check for pthread_attr_init
8414         # due to DEC craziness with -lpthreads.  We check for
8415         # pthread_cleanup_push because it is one of the few pthread
8416         # functions on Solaris that doesn't have a non-functional libc stub.
8417         # We try pthread_create on general principles.
8418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h.  */
8420 #include <pthread.h>
8421                      static void routine(void* a) {a=0;}
8422                      static void* start_routine(void* a) {return a;}
8423 int
8424 main ()
8425 {
8426 pthread_t th; pthread_attr_t attr;
8427                      pthread_create(&th,0,start_routine,0);
8428                      pthread_join(th, 0);
8429                      pthread_attr_init(&attr);
8430                      pthread_cleanup_push(routine, 0);
8431                      pthread_cleanup_pop(0);
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_link "$LINENO"; then :
8437   ax_pthread_ok=yes
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440     conftest$ac_exeext conftest.$ac_ext
8441
8442         LIBS="$save_LIBS"
8443         CFLAGS="$save_CFLAGS"
8444
8445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8446 $as_echo "$ax_pthread_ok" >&6; }
8447         if test "x$ax_pthread_ok" = xyes; then
8448                 break;
8449         fi
8450
8451         PTHREAD_LIBS=""
8452         PTHREAD_CFLAGS=""
8453 done
8454 fi
8455
8456 # Various other checks:
8457 if test "x$ax_pthread_ok" = xyes; then
8458         save_LIBS="$LIBS"
8459         LIBS="$PTHREAD_LIBS $LIBS"
8460         save_CFLAGS="$CFLAGS"
8461         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8462
8463         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8465 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8466         attr_name=unknown
8467         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8468             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h.  */
8470 #include <pthread.h>
8471 int
8472 main ()
8473 {
8474 int attr=$attr; return attr;
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480   attr_name=$attr; break
8481 fi
8482 rm -f core conftest.err conftest.$ac_objext \
8483     conftest$ac_exeext conftest.$ac_ext
8484         done
8485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8486 $as_echo "$attr_name" >&6; }
8487         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8488
8489 cat >>confdefs.h <<_ACEOF
8490 #define PTHREAD_CREATE_JOINABLE $attr_name
8491 _ACEOF
8492
8493         fi
8494
8495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8496 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8497         flag=no
8498         case "${host_cpu}-${host_os}" in
8499             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8500             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8501         esac
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8503 $as_echo "${flag}" >&6; }
8504         if test "x$flag" != xno; then
8505             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8506         fi
8507
8508         LIBS="$save_LIBS"
8509         CFLAGS="$save_CFLAGS"
8510
8511         # More AIX lossage: must compile with xlc_r or cc_r
8512         if test x"$GCC" != xyes; then
8513           for ac_prog in xlc_r cc_r
8514 do
8515   # Extract the first word of "$ac_prog", so it can be a program name with args.
8516 set dummy $ac_prog; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   if test -n "$PTHREAD_CC"; then
8523   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528   IFS=$as_save_IFS
8529   test -z "$as_dir" && as_dir=.
8530     for ac_exec_ext in '' $ac_executable_extensions; do
8531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532     ac_cv_prog_PTHREAD_CC="$ac_prog"
8533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534     break 2
8535   fi
8536 done
8537   done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8543 if test -n "$PTHREAD_CC"; then
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8545 $as_echo "$PTHREAD_CC" >&6; }
8546 else
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552   test -n "$PTHREAD_CC" && break
8553 done
8554 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8555
8556         else
8557           PTHREAD_CC=$CC
8558         fi
8559 else
8560         PTHREAD_CC="$CC"
8561 fi
8562
8563
8564
8565
8566
8567 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8568 if test x"$ax_pthread_ok" = xyes; then
8569
8570 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8571
8572         :
8573 else
8574         ax_pthread_ok=no
8575
8576 fi
8577 ac_ext=c
8578 ac_cpp='$CPP $CPPFLAGS'
8579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582
8583
8584     if test "$ax_pthread_ok" = yes; then
8585         have_threads=yes
8586         DEF_THREAD="$PTHREAD_CFLAGS"
8587         CFLAGS="$CFLAGS $DEF_THREAD"
8588         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8589         if test "$CC" != "$PTHREAD_CC"; then
8590             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8591 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8592             CC="$PTHREAD_CC"
8593         fi
8594
8595 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8596
8597     fi
8598 fi
8599
8600 # Enable support for OpenMP
8601 if test "$have_threads" != 'yes'; then
8602   ac_cv_prog_c_openmp=unsupported
8603 fi
8604
8605   OPENMP_CFLAGS=
8606   # Check whether --enable-openmp was given.
8607 if test "${enable_openmp+set}" = set; then :
8608   enableval=$enable_openmp;
8609 fi
8610
8611   if test "$enable_openmp" != no; then
8612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8613 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8614 if ${ac_cv_prog_c_openmp+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h.  */
8619
8620 #ifndef _OPENMP
8621  choke me
8622 #endif
8623 #include <omp.h>
8624 int main () { return omp_get_num_threads (); }
8625
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"; then :
8628   ac_cv_prog_c_openmp='none needed'
8629 else
8630   ac_cv_prog_c_openmp='unsupported'
8631                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8632             ac_save_CFLAGS=$CFLAGS
8633             CFLAGS="$CFLAGS $ac_option"
8634             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h.  */
8636
8637 #ifndef _OPENMP
8638  choke me
8639 #endif
8640 #include <omp.h>
8641 int main () { return omp_get_num_threads (); }
8642
8643 _ACEOF
8644 if ac_fn_c_try_link "$LINENO"; then :
8645   ac_cv_prog_c_openmp=$ac_option
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext \
8648     conftest$ac_exeext conftest.$ac_ext
8649             CFLAGS=$ac_save_CFLAGS
8650             if test "$ac_cv_prog_c_openmp" != unsupported; then
8651               break
8652             fi
8653           done
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext \
8656     conftest$ac_exeext conftest.$ac_ext
8657 fi
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8659 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8660     case $ac_cv_prog_c_openmp in #(
8661       "none needed" | unsupported)
8662         ;; #(
8663       *)
8664         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8665     esac
8666   fi
8667
8668
8669 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8670 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8671
8672 if test "$enable_openmp" != no; then
8673   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8674     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8675   fi
8676 fi
8677
8678 # Enable support for OpenCL
8679
8680
8681
8682 ac_ext=c
8683 ac_cpp='$CPP $CPPFLAGS'
8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688 ax_pthread_ok=no
8689
8690 # We used to check for pthread.h first, but this fails if pthread.h
8691 # requires special compiler flags (e.g. on True64 or Sequent).
8692 # It gets checked for in the link test anyway.
8693
8694 # First of all, check if the user has set any of the PTHREAD_LIBS,
8695 # etcetera environment variables, and if threads linking works using
8696 # them:
8697 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8698         save_CFLAGS="$CFLAGS"
8699         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8700         save_LIBS="$LIBS"
8701         LIBS="$PTHREAD_LIBS $LIBS"
8702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8703 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8704         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h.  */
8706
8707 /* Override any GCC internal prototype to avoid an error.
8708    Use char because int might match the return type of a GCC
8709    builtin and then its argument prototype would still apply.  */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 char pthread_join ();
8714 int
8715 main ()
8716 {
8717 return pthread_join ();
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"; then :
8723   ax_pthread_ok=yes
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext \
8726     conftest$ac_exeext conftest.$ac_ext
8727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8728 $as_echo "$ax_pthread_ok" >&6; }
8729         if test x"$ax_pthread_ok" = xno; then
8730                 PTHREAD_LIBS=""
8731                 PTHREAD_CFLAGS=""
8732         fi
8733         LIBS="$save_LIBS"
8734         CFLAGS="$save_CFLAGS"
8735 fi
8736
8737 # We must check for the threads library under a number of different
8738 # names; the ordering is very important because some systems
8739 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8740 # libraries is broken (non-POSIX).
8741
8742 # Create a list of thread flags to try.  Items starting with a "-" are
8743 # C compiler flags, and other items are library names, except for "none"
8744 # which indicates that we try without any flags at all, and "pthread-config"
8745 # which is a program returning the flags for the Pth emulation library.
8746
8747 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8748
8749 # The ordering *is* (sometimes) important.  Some notes on the
8750 # individual items follow:
8751
8752 # pthreads: AIX (must check this before -lpthread)
8753 # none: in case threads are in libc; should be tried before -Kthread and
8754 #       other compiler flags to prevent continual compiler warnings
8755 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8756 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8757 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8758 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8759 # -pthreads: Solaris/gcc
8760 # -mthreads: Mingw32/gcc, Lynx/gcc
8761 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8762 #      doesn't hurt to check since this sometimes defines pthreads too;
8763 #      also defines -D_REENTRANT)
8764 #      ... -mt is also the pthreads flag for HP/aCC
8765 # pthread: Linux, etcetera
8766 # --thread-safe: KAI C++
8767 # pthread-config: use pthread-config program (for GNU Pth library)
8768
8769 case "${host_cpu}-${host_os}" in
8770         *solaris*)
8771
8772         # On Solaris (at least, for some versions), libc contains stubbed
8773         # (non-functional) versions of the pthreads routines, so link-based
8774         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8775         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8776         # a function called by this macro, so we could check for that, but
8777         # who knows whether they'll stub that too in a future libc.)  So,
8778         # we'll just look for -pthreads and -lpthread first:
8779
8780         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8781         ;;
8782
8783         *-darwin*)
8784         ax_pthread_flags="-pthread $ax_pthread_flags"
8785         ;;
8786 esac
8787
8788 if test x"$ax_pthread_ok" = xno; then
8789 for flag in $ax_pthread_flags; do
8790
8791         case $flag in
8792                 none)
8793                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8794 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8795                 ;;
8796
8797                 -*)
8798                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8799 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8800                 PTHREAD_CFLAGS="$flag"
8801                 ;;
8802
8803                 pthread-config)
8804                 # Extract the first word of "pthread-config", so it can be a program name with args.
8805 set dummy pthread-config; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   if test -n "$ax_pthread_config"; then
8812   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   test -z "$as_dir" && as_dir=.
8819     for ac_exec_ext in '' $ac_executable_extensions; do
8820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821     ac_cv_prog_ax_pthread_config="yes"
8822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823     break 2
8824   fi
8825 done
8826   done
8827 IFS=$as_save_IFS
8828
8829   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8830 fi
8831 fi
8832 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8833 if test -n "$ax_pthread_config"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8835 $as_echo "$ax_pthread_config" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842                 if test x"$ax_pthread_config" = xno; then continue; fi
8843                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8844                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8845                 ;;
8846
8847                 *)
8848                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8849 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8850                 PTHREAD_LIBS="-l$flag"
8851                 ;;
8852         esac
8853
8854         save_LIBS="$LIBS"
8855         save_CFLAGS="$CFLAGS"
8856         LIBS="$PTHREAD_LIBS $LIBS"
8857         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8858
8859         # Check for various functions.  We must include pthread.h,
8860         # since some functions may be macros.  (On the Sequent, we
8861         # need a special flag -Kthread to make this header compile.)
8862         # We check for pthread_join because it is in -lpthread on IRIX
8863         # while pthread_create is in libc.  We check for pthread_attr_init
8864         # due to DEC craziness with -lpthreads.  We check for
8865         # pthread_cleanup_push because it is one of the few pthread
8866         # functions on Solaris that doesn't have a non-functional libc stub.
8867         # We try pthread_create on general principles.
8868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h.  */
8870 #include <pthread.h>
8871                      static void routine(void* a) {a=0;}
8872                      static void* start_routine(void* a) {return a;}
8873 int
8874 main ()
8875 {
8876 pthread_t th; pthread_attr_t attr;
8877                      pthread_create(&th,0,start_routine,0);
8878                      pthread_join(th, 0);
8879                      pthread_attr_init(&attr);
8880                      pthread_cleanup_push(routine, 0);
8881                      pthread_cleanup_pop(0);
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8887   ax_pthread_ok=yes
8888 fi
8889 rm -f core conftest.err conftest.$ac_objext \
8890     conftest$ac_exeext conftest.$ac_ext
8891
8892         LIBS="$save_LIBS"
8893         CFLAGS="$save_CFLAGS"
8894
8895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8896 $as_echo "$ax_pthread_ok" >&6; }
8897         if test "x$ax_pthread_ok" = xyes; then
8898                 break;
8899         fi
8900
8901         PTHREAD_LIBS=""
8902         PTHREAD_CFLAGS=""
8903 done
8904 fi
8905
8906 # Various other checks:
8907 if test "x$ax_pthread_ok" = xyes; then
8908         save_LIBS="$LIBS"
8909         LIBS="$PTHREAD_LIBS $LIBS"
8910         save_CFLAGS="$CFLAGS"
8911         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8912
8913         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8915 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8916         attr_name=unknown
8917         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8918             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h.  */
8920 #include <pthread.h>
8921 int
8922 main ()
8923 {
8924 int attr=$attr; return attr;
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930   attr_name=$attr; break
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext \
8933     conftest$ac_exeext conftest.$ac_ext
8934         done
8935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8936 $as_echo "$attr_name" >&6; }
8937         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define PTHREAD_CREATE_JOINABLE $attr_name
8941 _ACEOF
8942
8943         fi
8944
8945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8946 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8947         flag=no
8948         case "${host_cpu}-${host_os}" in
8949             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8950             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8951         esac
8952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8953 $as_echo "${flag}" >&6; }
8954         if test "x$flag" != xno; then
8955             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8956         fi
8957
8958         LIBS="$save_LIBS"
8959         CFLAGS="$save_CFLAGS"
8960
8961         # More AIX lossage: must compile with xlc_r or cc_r
8962         if test x"$GCC" != xyes; then
8963           for ac_prog in xlc_r cc_r
8964 do
8965   # Extract the first word of "$ac_prog", so it can be a program name with args.
8966 set dummy $ac_prog; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   if test -n "$PTHREAD_CC"; then
8973   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8974 else
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980     for ac_exec_ext in '' $ac_executable_extensions; do
8981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982     ac_cv_prog_PTHREAD_CC="$ac_prog"
8983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987   done
8988 IFS=$as_save_IFS
8989
8990 fi
8991 fi
8992 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8993 if test -n "$PTHREAD_CC"; then
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8995 $as_echo "$PTHREAD_CC" >&6; }
8996 else
8997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
8999 fi
9000
9001
9002   test -n "$PTHREAD_CC" && break
9003 done
9004 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9005
9006         else
9007           PTHREAD_CC=$CC
9008         fi
9009 else
9010         PTHREAD_CC="$CC"
9011 fi
9012
9013
9014
9015
9016
9017 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9018 if test x"$ax_pthread_ok" = xyes; then
9019
9020 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9021
9022         :
9023 else
9024         ax_pthread_ok=no
9025
9026 fi
9027 ac_ext=c
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034
9035 # Check whether --enable-opencl was given.
9036 if test "${enable_opencl+set}" = set; then :
9037   enableval=$enable_opencl; disable_opencl=$enableval
9038 else
9039   disable_opencl='yes'
9040 fi
9041
9042
9043 if test "$disable_opencl" = 'yes'; then
9044   ac_ext=c
9045 ac_cpp='$CPP $CPPFLAGS'
9046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9051 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9052 if ${ax_cv_c_compiler_ms+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h.  */
9057
9058 int
9059 main ()
9060 {
9061 #ifndef _MSC_VER
9062        choke me
9063 #endif
9064
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070   ax_compiler_ms=yes
9071 else
9072   ax_compiler_ms=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 ax_cv_c_compiler_ms=$ax_compiler_ms
9076
9077 fi
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9079 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9080   if test X$ax_compiler_ms = Xno; then :
9081   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9082 fi
9083
9084   ax_save_CPPFLAGS=$CPPFLAGS
9085   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9086   for ac_header in CL/cl.h OpenCL/cl.h
9087 do :
9088   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9091   cat >>confdefs.h <<_ACEOF
9092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093 _ACEOF
9094
9095 fi
9096
9097 done
9098
9099   CPPFLAGS=$ax_save_CPPFLAGS
9100
9101   for ac_header in windows.h
9102 do :
9103   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9104 if test "x$ac_cv_header_windows_h" = xyes; then :
9105   cat >>confdefs.h <<_ACEOF
9106 #define HAVE_WINDOWS_H 1
9107 _ACEOF
9108
9109 fi
9110
9111 done
9112
9113
9114
9115
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9117 $as_echo_n "checking for OpenCL library... " >&6; }
9118 if ${ax_cv_check_cl_libcl+:} false; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ax_cv_check_cl_libcl=no
9122   case $host_cpu in
9123     x86_64) ax_check_cl_libdir=lib64 ;;
9124     *)      ax_check_cl_libdir=lib ;;
9125   esac
9126   ax_save_CPPFLAGS=$CPPFLAGS
9127   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9128   ax_save_LIBS=$LIBS
9129   LIBS=""
9130   ax_check_libs="-lOpenCL -lCL -lclparser"
9131   for ax_lib in $ax_check_libs; do
9132     if test X$ax_compiler_ms = Xyes; then :
9133   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9134 else
9135   ax_try_lib=$ax_lib
9136 fi
9137     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h.  */
9140
9141   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142   #   include <windows.h>
9143   # endif
9144   # ifdef HAVE_CL_CL_H
9145   #   include <CL/cl.h>
9146   # elif defined(HAVE_OPENCL_CL_H)
9147   #   include <OpenCL/cl.h>
9148   # else
9149   #   error no CL.h
9150   # endif
9151 int
9152 main ()
9153 {
9154 clCreateContextFromType(0,0,0,0,0)
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160   ax_cv_check_cl_libcl=$ax_try_lib; break
9161 else
9162   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"
9163                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h.  */
9165
9166   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9167   #   include <windows.h>
9168   # endif
9169   # ifdef HAVE_CL_CL_H
9170   #   include <CL/cl.h>
9171   # elif defined(HAVE_OPENCL_CL_H)
9172   #   include <OpenCL/cl.h>
9173   # else
9174   #   error no CL.h
9175   # endif
9176 int
9177 main ()
9178 {
9179 clCreateContextFromType(0,0,0,0,0)
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_link "$LINENO"; then :
9185   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9186 else
9187   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"
9188                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h.  */
9190
9191   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9192   #   include <windows.h>
9193   # endif
9194   # ifdef HAVE_CL_CL_H
9195   #   include <CL/cl.h>
9196   # elif defined(HAVE_OPENCL_CL_H)
9197   #   include <OpenCL/cl.h>
9198   # else
9199   #   error no CL.h
9200   # endif
9201 int
9202 main ()
9203 {
9204 clCreateContextFromType(0,0,0,0,0)
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213     conftest$ac_exeext conftest.$ac_ext
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext \
9216     conftest$ac_exeext conftest.$ac_ext
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219     conftest$ac_exeext conftest.$ac_ext
9220   done
9221
9222   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9223   LIBS='-Wl,-framework,OpenCL'
9224         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h.  */
9226
9227   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9228   #   include <windows.h>
9229   # endif
9230   # ifdef HAVE_CL_CL_H
9231   #   include <CL/cl.h>
9232   # elif defined(HAVE_OPENCL_CL_H)
9233   #   include <OpenCL/cl.h>
9234   # else
9235   #   error no CL.h
9236   # endif
9237 int
9238 main ()
9239 {
9240 clCreateContextFromType(0,0,0,0,0)
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"; then :
9246   ax_cv_check_cl_libcl=$LIBS
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext \
9249     conftest$ac_exeext conftest.$ac_ext
9250 fi
9251
9252   LIBS=$ax_save_LIBS
9253   CPPFLAGS=$ax_save_CPPFLAGS
9254 fi
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9256 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9257
9258   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9259   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9260 else
9261   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9262 $as_echo "#define _OPENCL 1" >>confdefs.h
9263
9264 fi
9265   ac_ext=c
9266 ac_cpp='$CPP $CPPFLAGS'
9267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9270
9271 fi
9272
9273
9274
9275
9276 CFLAGS="$CL_CFLAGS $CFLAGS"
9277 LIBS="$CL_LIBS $LIBS"
9278
9279 if test "$enable_opencl" != no; then
9280   if test "_OPENCL" = '1'; then
9281     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9282   fi
9283 fi
9284
9285 ########
9286 #
9287 # Check for large file support
9288 #
9289 ########
9290 # Check whether --enable-largefile was given.
9291 if test "${enable_largefile+set}" = set; then :
9292   enableval=$enable_largefile;
9293 fi
9294
9295 if test "$enable_largefile" != no; then
9296
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9298 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9299 if ${ac_cv_sys_largefile_CC+:} false; then :
9300   $as_echo_n "(cached) " >&6
9301 else
9302   ac_cv_sys_largefile_CC=no
9303      if test "$GCC" != yes; then
9304        ac_save_CC=$CC
9305        while :; do
9306          # IRIX 6.2 and later do not support large files by default,
9307          # so use the C compiler's -n32 option if that helps.
9308          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h.  */
9310 #include <sys/types.h>
9311  /* Check that off_t can represent 2**63 - 1 correctly.
9312     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9313     since some C++ compilers masquerading as C compilers
9314     incorrectly reject 9223372036854775807.  */
9315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9316   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9317                        && LARGE_OFF_T % 2147483647 == 1)
9318                       ? 1 : -1];
9319 int
9320 main ()
9321 {
9322
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327          if ac_fn_c_try_compile "$LINENO"; then :
9328   break
9329 fi
9330 rm -f core conftest.err conftest.$ac_objext
9331          CC="$CC -n32"
9332          if ac_fn_c_try_compile "$LINENO"; then :
9333   ac_cv_sys_largefile_CC=' -n32'; break
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext
9336          break
9337        done
9338        CC=$ac_save_CC
9339        rm -f conftest.$ac_ext
9340     fi
9341 fi
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9343 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9344   if test "$ac_cv_sys_largefile_CC" != no; then
9345     CC=$CC$ac_cv_sys_largefile_CC
9346   fi
9347
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9349 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9350 if ${ac_cv_sys_file_offset_bits+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   while :; do
9354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h.  */
9356 #include <sys/types.h>
9357  /* Check that off_t can represent 2**63 - 1 correctly.
9358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9359     since some C++ compilers masquerading as C compilers
9360     incorrectly reject 9223372036854775807.  */
9361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9363                        && LARGE_OFF_T % 2147483647 == 1)
9364                       ? 1 : -1];
9365 int
9366 main ()
9367 {
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374   ac_cv_sys_file_offset_bits=no; break
9375 fi
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h.  */
9379 #define _FILE_OFFSET_BITS 64
9380 #include <sys/types.h>
9381  /* Check that off_t can represent 2**63 - 1 correctly.
9382     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9383     since some C++ compilers masquerading as C compilers
9384     incorrectly reject 9223372036854775807.  */
9385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9386   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9387                        && LARGE_OFF_T % 2147483647 == 1)
9388                       ? 1 : -1];
9389 int
9390 main ()
9391 {
9392
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398   ac_cv_sys_file_offset_bits=64; break
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401   ac_cv_sys_file_offset_bits=unknown
9402   break
9403 done
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9406 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9407 case $ac_cv_sys_file_offset_bits in #(
9408   no | unknown) ;;
9409   *)
9410 cat >>confdefs.h <<_ACEOF
9411 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9412 _ACEOF
9413 ;;
9414 esac
9415 rm -rf conftest*
9416   if test $ac_cv_sys_file_offset_bits = unknown; then
9417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9418 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9419 if ${ac_cv_sys_large_files+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   while :; do
9423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h.  */
9425 #include <sys/types.h>
9426  /* Check that off_t can represent 2**63 - 1 correctly.
9427     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9428     since some C++ compilers masquerading as C compilers
9429     incorrectly reject 9223372036854775807.  */
9430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9431   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9432                        && LARGE_OFF_T % 2147483647 == 1)
9433                       ? 1 : -1];
9434 int
9435 main ()
9436 {
9437
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443   ac_cv_sys_large_files=no; break
9444 fi
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h.  */
9448 #define _LARGE_FILES 1
9449 #include <sys/types.h>
9450  /* Check that off_t can represent 2**63 - 1 correctly.
9451     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9452     since some C++ compilers masquerading as C compilers
9453     incorrectly reject 9223372036854775807.  */
9454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9455   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9456                        && LARGE_OFF_T % 2147483647 == 1)
9457                       ? 1 : -1];
9458 int
9459 main ()
9460 {
9461
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467   ac_cv_sys_large_files=1; break
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470   ac_cv_sys_large_files=unknown
9471   break
9472 done
9473 fi
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9475 $as_echo "$ac_cv_sys_large_files" >&6; }
9476 case $ac_cv_sys_large_files in #(
9477   no | unknown) ;;
9478   *)
9479 cat >>confdefs.h <<_ACEOF
9480 #define _LARGE_FILES $ac_cv_sys_large_files
9481 _ACEOF
9482 ;;
9483 esac
9484 rm -rf conftest*
9485   fi
9486 fi
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9489 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9490 if ${ac_cv_sys_largefile_source+:} false; then :
9491   $as_echo_n "(cached) " >&6
9492 else
9493   while :; do
9494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h.  */
9496 #include <sys/types.h> /* for off_t */
9497      #include <stdio.h>
9498 int
9499 main ()
9500 {
9501 int (*fp) (FILE *, off_t, int) = fseeko;
9502      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508   ac_cv_sys_largefile_source=no; break
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext \
9511     conftest$ac_exeext conftest.$ac_ext
9512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h.  */
9514 #define _LARGEFILE_SOURCE 1
9515 #include <sys/types.h> /* for off_t */
9516      #include <stdio.h>
9517 int
9518 main ()
9519 {
9520 int (*fp) (FILE *, off_t, int) = fseeko;
9521      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527   ac_cv_sys_largefile_source=1; break
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530     conftest$ac_exeext conftest.$ac_ext
9531   ac_cv_sys_largefile_source=unknown
9532   break
9533 done
9534 fi
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9536 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9537 case $ac_cv_sys_largefile_source in #(
9538   no | unknown) ;;
9539   *)
9540 cat >>confdefs.h <<_ACEOF
9541 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9542 _ACEOF
9543 ;;
9544 esac
9545 rm -rf conftest*
9546
9547 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9548 # in glibc 2.1.3, but that breaks too many other things.
9549 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9550 if test $ac_cv_sys_largefile_source != unknown; then
9551
9552 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9553
9554 fi
9555
9556 LFS_CPPFLAGS=''
9557 if test "$enable_largefile" != no; then
9558     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9559         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9560     else
9561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9562 $as_echo_n "checking for native large file support... " >&6; }
9563         if test "$cross_compiling" = yes; then :
9564   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9566 as_fn_error $? "cannot run test program while cross compiling
9567 See \`config.log' for more details" "$LINENO" 5; }
9568 else
9569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h.  */
9571 #include <unistd.h>
9572           main () {
9573           exit(!(sizeof(off_t) == 8));
9574         }
9575 int
9576 main ()
9577 {
9578
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 if ac_fn_c_try_run "$LINENO"; then :
9584   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9585
9586          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9587 $as_echo "yes" >&6; }
9588 else
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 fi
9592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9593   conftest.$ac_objext conftest.beam conftest.$ac_ext
9594 fi
9595
9596     fi
9597     if test "$ac_cv_sys_large_files" != 'no'; then
9598         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9599     fi
9600     if test "$ac_cv_sys_largefile_source" != 'no'; then
9601         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9602     fi
9603 fi
9604
9605
9606 #
9607 # Configure libtool & libltdl
9608 #
9609 # Configure libtool
9610 enable_dlopen=yes
9611
9612
9613
9614 case `pwd` in
9615   *\ * | *\     *)
9616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9617 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9618 esac
9619
9620
9621
9622 macro_version='2.4'
9623 macro_revision='1.3293'
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 ltmain="$ac_aux_dir/ltmain.sh"
9638
9639 # Backslashify metacharacters that are still active within
9640 # double-quoted strings.
9641 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9642
9643 # Same as above, but do not quote variable references.
9644 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9645
9646 # Sed substitution to delay expansion of an escaped shell variable in a
9647 # double_quote_subst'ed string.
9648 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9649
9650 # Sed substitution to delay expansion of an escaped single quote.
9651 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9652
9653 # Sed substitution to avoid accidental globbing in evaled expressions
9654 no_glob_subst='s/\*/\\\*/g'
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9657 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9658 if ${lt_cv_path_NM+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   if test -n "$NM"; then
9662   # Let the user override the test.
9663   lt_cv_path_NM="$NM"
9664 else
9665   lt_nm_to_check="${ac_tool_prefix}nm"
9666   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9667     lt_nm_to_check="$lt_nm_to_check nm"
9668   fi
9669   for lt_tmp_nm in $lt_nm_to_check; do
9670     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9672       IFS="$lt_save_ifs"
9673       test -z "$ac_dir" && ac_dir=.
9674       tmp_nm="$ac_dir/$lt_tmp_nm"
9675       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9676         # Check to see if the nm accepts a BSD-compat flag.
9677         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9678         #   nm: unknown option "B" ignored
9679         # Tru64's nm complains that /dev/null is an invalid object file
9680         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9681         */dev/null* | *'Invalid file or object type'*)
9682           lt_cv_path_NM="$tmp_nm -B"
9683           break
9684           ;;
9685         *)
9686           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9687           */dev/null*)
9688             lt_cv_path_NM="$tmp_nm -p"
9689             break
9690             ;;
9691           *)
9692             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9693             continue # so that we can try to find one that supports BSD flags
9694             ;;
9695           esac
9696           ;;
9697         esac
9698       fi
9699     done
9700     IFS="$lt_save_ifs"
9701   done
9702   : ${lt_cv_path_NM=no}
9703 fi
9704 fi
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9706 $as_echo "$lt_cv_path_NM" >&6; }
9707 if test "$lt_cv_path_NM" != "no"; then
9708   NM="$lt_cv_path_NM"
9709 else
9710   # Didn't find any BSD compatible name lister, look for dumpbin.
9711   if test -n "$DUMPBIN"; then :
9712     # Let the user override the test.
9713   else
9714     if test -n "$ac_tool_prefix"; then
9715   for ac_prog in dumpbin "link -dump"
9716   do
9717     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_prog_DUMPBIN+:} false; then :
9722   $as_echo_n "(cached) " >&6
9723 else
9724   if test -n "$DUMPBIN"; then
9725   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9726 else
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in $PATH
9729 do
9730   IFS=$as_save_IFS
9731   test -z "$as_dir" && as_dir=.
9732     for ac_exec_ext in '' $ac_executable_extensions; do
9733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736     break 2
9737   fi
9738 done
9739   done
9740 IFS=$as_save_IFS
9741
9742 fi
9743 fi
9744 DUMPBIN=$ac_cv_prog_DUMPBIN
9745 if test -n "$DUMPBIN"; then
9746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9747 $as_echo "$DUMPBIN" >&6; }
9748 else
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9751 fi
9752
9753
9754     test -n "$DUMPBIN" && break
9755   done
9756 fi
9757 if test -z "$DUMPBIN"; then
9758   ac_ct_DUMPBIN=$DUMPBIN
9759   for ac_prog in dumpbin "link -dump"
9760 do
9761   # Extract the first word of "$ac_prog", so it can be a program name with args.
9762 set dummy $ac_prog; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   if test -n "$ac_ct_DUMPBIN"; then
9769   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774   IFS=$as_save_IFS
9775   test -z "$as_dir" && as_dir=.
9776     for ac_exec_ext in '' $ac_executable_extensions; do
9777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780     break 2
9781   fi
9782 done
9783   done
9784 IFS=$as_save_IFS
9785
9786 fi
9787 fi
9788 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9789 if test -n "$ac_ct_DUMPBIN"; then
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9791 $as_echo "$ac_ct_DUMPBIN" >&6; }
9792 else
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798   test -n "$ac_ct_DUMPBIN" && break
9799 done
9800
9801   if test "x$ac_ct_DUMPBIN" = x; then
9802     DUMPBIN=":"
9803   else
9804     case $cross_compiling:$ac_tool_warned in
9805 yes:)
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9808 ac_tool_warned=yes ;;
9809 esac
9810     DUMPBIN=$ac_ct_DUMPBIN
9811   fi
9812 fi
9813
9814     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9815     *COFF*)
9816       DUMPBIN="$DUMPBIN -symbols"
9817       ;;
9818     *)
9819       DUMPBIN=:
9820       ;;
9821     esac
9822   fi
9823
9824   if test "$DUMPBIN" != ":"; then
9825     NM="$DUMPBIN"
9826   fi
9827 fi
9828 test -z "$NM" && NM=nm
9829
9830
9831
9832
9833
9834
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9836 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9837 if ${lt_cv_nm_interface+:} false; then :
9838   $as_echo_n "(cached) " >&6
9839 else
9840   lt_cv_nm_interface="BSD nm"
9841   echo "int some_variable = 0;" > conftest.$ac_ext
9842   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9843   (eval "$ac_compile" 2>conftest.err)
9844   cat conftest.err >&5
9845   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9846   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9847   cat conftest.err >&5
9848   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9849   cat conftest.out >&5
9850   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9851     lt_cv_nm_interface="MS dumpbin"
9852   fi
9853   rm -f conftest*
9854 fi
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9856 $as_echo "$lt_cv_nm_interface" >&6; }
9857
9858 # find the maximum length of command line arguments
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9861 if ${lt_cv_sys_max_cmd_len+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864     i=0
9865   teststring="ABCD"
9866
9867   case $build_os in
9868   msdosdjgpp*)
9869     # On DJGPP, this test can blow up pretty badly due to problems in libc
9870     # (any single argument exceeding 2000 bytes causes a buffer overrun
9871     # during glob expansion).  Even if it were fixed, the result of this
9872     # check would be larger than it should be.
9873     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9874     ;;
9875
9876   gnu*)
9877     # Under GNU Hurd, this test is not required because there is
9878     # no limit to the length of command line arguments.
9879     # Libtool will interpret -1 as no limit whatsoever
9880     lt_cv_sys_max_cmd_len=-1;
9881     ;;
9882
9883   cygwin* | mingw* | cegcc*)
9884     # On Win9x/ME, this test blows up -- it succeeds, but takes
9885     # about 5 minutes as the teststring grows exponentially.
9886     # Worse, since 9x/ME are not pre-emptively multitasking,
9887     # you end up with a "frozen" computer, even though with patience
9888     # the test eventually succeeds (with a max line length of 256k).
9889     # Instead, let's just punt: use the minimum linelength reported by
9890     # all of the supported platforms: 8192 (on NT/2K/XP).
9891     lt_cv_sys_max_cmd_len=8192;
9892     ;;
9893
9894   mint*)
9895     # On MiNT this can take a long time and run out of memory.
9896     lt_cv_sys_max_cmd_len=8192;
9897     ;;
9898
9899   amigaos*)
9900     # On AmigaOS with pdksh, this test takes hours, literally.
9901     # So we just punt and use a minimum line length of 8192.
9902     lt_cv_sys_max_cmd_len=8192;
9903     ;;
9904
9905   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9906     # This has been around since 386BSD, at least.  Likely further.
9907     if test -x /sbin/sysctl; then
9908       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9909     elif test -x /usr/sbin/sysctl; then
9910       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9911     else
9912       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9913     fi
9914     # And add a safety zone
9915     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9916     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9917     ;;
9918
9919   interix*)
9920     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9921     lt_cv_sys_max_cmd_len=196608
9922     ;;
9923
9924   osf*)
9925     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9926     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9927     # nice to cause kernel panics so lets avoid the loop below.
9928     # First set a reasonable default.
9929     lt_cv_sys_max_cmd_len=16384
9930     #
9931     if test -x /sbin/sysconfig; then
9932       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9933         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9934       esac
9935     fi
9936     ;;
9937   sco3.2v5*)
9938     lt_cv_sys_max_cmd_len=102400
9939     ;;
9940   sysv5* | sco5v6* | sysv4.2uw2*)
9941     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9942     if test -n "$kargmax"; then
9943       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9944     else
9945       lt_cv_sys_max_cmd_len=32768
9946     fi
9947     ;;
9948   *)
9949     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9950     if test -n "$lt_cv_sys_max_cmd_len"; then
9951       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9952       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9953     else
9954       # Make teststring a little bigger before we do anything with it.
9955       # a 1K string should be a reasonable start.
9956       for i in 1 2 3 4 5 6 7 8 ; do
9957         teststring=$teststring$teststring
9958       done
9959       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9960       # If test is not a shell built-in, we'll probably end up computing a
9961       # maximum length that is only half of the actual maximum length, but
9962       # we can't tell.
9963       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9964                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9965               test $i != 17 # 1/2 MB should be enough
9966       do
9967         i=`expr $i + 1`
9968         teststring=$teststring$teststring
9969       done
9970       # Only check the string length outside the loop.
9971       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9972       teststring=
9973       # Add a significant safety factor because C++ compilers can tack on
9974       # massive amounts of additional arguments before passing them to the
9975       # linker.  It appears as though 1/2 is a usable value.
9976       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9977     fi
9978     ;;
9979   esac
9980
9981 fi
9982
9983 if test -n $lt_cv_sys_max_cmd_len ; then
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9985 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9986 else
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9988 $as_echo "none" >&6; }
9989 fi
9990 max_cmd_len=$lt_cv_sys_max_cmd_len
9991
9992
9993
9994
9995
9996
9997 : ${CP="cp -f"}
9998 : ${MV="mv -f"}
9999 : ${RM="rm -f"}
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10002 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10003 # Try some XSI features
10004 xsi_shell=no
10005 ( _lt_dummy="a/b/c"
10006   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10007       = c,a/b,b/c, \
10008     && eval 'test $(( 1 + 1 )) -eq 2 \
10009     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10010   && xsi_shell=yes
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10012 $as_echo "$xsi_shell" >&6; }
10013
10014
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10016 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10017 lt_shell_append=no
10018 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10019     >/dev/null 2>&1 \
10020   && lt_shell_append=yes
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10022 $as_echo "$lt_shell_append" >&6; }
10023
10024
10025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10026   lt_unset=unset
10027 else
10028   lt_unset=false
10029 fi
10030
10031
10032
10033
10034
10035 # test EBCDIC or ASCII
10036 case `echo X|tr X '\101'` in
10037  A) # ASCII based system
10038     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10039   lt_SP2NL='tr \040 \012'
10040   lt_NL2SP='tr \015\012 \040\040'
10041   ;;
10042  *) # EBCDIC based system
10043   lt_SP2NL='tr \100 \n'
10044   lt_NL2SP='tr \r\n \100\100'
10045   ;;
10046 esac
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10057 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10058 if ${lt_cv_to_host_file_cmd+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   case $host in
10062   *-*-mingw* )
10063     case $build in
10064       *-*-mingw* ) # actually msys
10065         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10066         ;;
10067       *-*-cygwin* )
10068         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10069         ;;
10070       * ) # otherwise, assume *nix
10071         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10072         ;;
10073     esac
10074     ;;
10075   *-*-cygwin* )
10076     case $build in
10077       *-*-mingw* ) # actually msys
10078         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10079         ;;
10080       *-*-cygwin* )
10081         lt_cv_to_host_file_cmd=func_convert_file_noop
10082         ;;
10083       * ) # otherwise, assume *nix
10084         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10085         ;;
10086     esac
10087     ;;
10088   * ) # unhandled hosts (and "normal" native builds)
10089     lt_cv_to_host_file_cmd=func_convert_file_noop
10090     ;;
10091 esac
10092
10093 fi
10094
10095 to_host_file_cmd=$lt_cv_to_host_file_cmd
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10097 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10098
10099
10100
10101
10102
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10104 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10105 if ${lt_cv_to_tool_file_cmd+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   #assume ordinary cross tools, or native build.
10109 lt_cv_to_tool_file_cmd=func_convert_file_noop
10110 case $host in
10111   *-*-mingw* )
10112     case $build in
10113       *-*-mingw* ) # actually msys
10114         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10115         ;;
10116     esac
10117     ;;
10118 esac
10119
10120 fi
10121
10122 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10124 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10125
10126
10127
10128
10129
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10131 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10132 if ${lt_cv_ld_reload_flag+:} false; then :
10133   $as_echo_n "(cached) " >&6
10134 else
10135   lt_cv_ld_reload_flag='-r'
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10138 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10139 reload_flag=$lt_cv_ld_reload_flag
10140 case $reload_flag in
10141 "" | " "*) ;;
10142 *) reload_flag=" $reload_flag" ;;
10143 esac
10144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10145 case $host_os in
10146   cygwin* | mingw* | pw32* | cegcc*)
10147     if test "$GCC" != yes; then
10148       reload_cmds=false
10149     fi
10150     ;;
10151   darwin*)
10152     if test "$GCC" = yes; then
10153       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10154     else
10155       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10156     fi
10157     ;;
10158 esac
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168 if test -n "$ac_tool_prefix"; then
10169   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10170 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_prog_OBJDUMP+:} false; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   if test -n "$OBJDUMP"; then
10177   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10178 else
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10181 do
10182   IFS=$as_save_IFS
10183   test -z "$as_dir" && as_dir=.
10184     for ac_exec_ext in '' $ac_executable_extensions; do
10185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188     break 2
10189   fi
10190 done
10191   done
10192 IFS=$as_save_IFS
10193
10194 fi
10195 fi
10196 OBJDUMP=$ac_cv_prog_OBJDUMP
10197 if test -n "$OBJDUMP"; then
10198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10199 $as_echo "$OBJDUMP" >&6; }
10200 else
10201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10203 fi
10204
10205
10206 fi
10207 if test -z "$ac_cv_prog_OBJDUMP"; then
10208   ac_ct_OBJDUMP=$OBJDUMP
10209   # Extract the first word of "objdump", so it can be a program name with args.
10210 set dummy objdump; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10214   $as_echo_n "(cached) " >&6
10215 else
10216   if test -n "$ac_ct_OBJDUMP"; then
10217   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10218 else
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10221 do
10222   IFS=$as_save_IFS
10223   test -z "$as_dir" && as_dir=.
10224     for ac_exec_ext in '' $ac_executable_extensions; do
10225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228     break 2
10229   fi
10230 done
10231   done
10232 IFS=$as_save_IFS
10233
10234 fi
10235 fi
10236 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10237 if test -n "$ac_ct_OBJDUMP"; then
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10239 $as_echo "$ac_ct_OBJDUMP" >&6; }
10240 else
10241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10243 fi
10244
10245   if test "x$ac_ct_OBJDUMP" = x; then
10246     OBJDUMP="false"
10247   else
10248     case $cross_compiling:$ac_tool_warned in
10249 yes:)
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10252 ac_tool_warned=yes ;;
10253 esac
10254     OBJDUMP=$ac_ct_OBJDUMP
10255   fi
10256 else
10257   OBJDUMP="$ac_cv_prog_OBJDUMP"
10258 fi
10259
10260 test -z "$OBJDUMP" && OBJDUMP=objdump
10261
10262
10263
10264
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10268 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10269 if ${lt_cv_deplibs_check_method+:} false; then :
10270   $as_echo_n "(cached) " >&6
10271 else
10272   lt_cv_file_magic_cmd='$MAGIC_CMD'
10273 lt_cv_file_magic_test_file=
10274 lt_cv_deplibs_check_method='unknown'
10275 # Need to set the preceding variable on all platforms that support
10276 # interlibrary dependencies.
10277 # 'none' -- dependencies not supported.
10278 # `unknown' -- same as none, but documents that we really don't know.
10279 # 'pass_all' -- all dependencies passed with no checks.
10280 # 'test_compile' -- check by making test program.
10281 # 'file_magic [[regex]]' -- check by looking for files in library path
10282 # which responds to the $file_magic_cmd with a given extended regex.
10283 # If you have `file' or equivalent on your system and you're not sure
10284 # whether `pass_all' will *always* work, you probably want this one.
10285
10286 case $host_os in
10287 aix[4-9]*)
10288   lt_cv_deplibs_check_method=pass_all
10289   ;;
10290
10291 beos*)
10292   lt_cv_deplibs_check_method=pass_all
10293   ;;
10294
10295 bsdi[45]*)
10296   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10297   lt_cv_file_magic_cmd='/usr/bin/file -L'
10298   lt_cv_file_magic_test_file=/shlib/libc.so
10299   ;;
10300
10301 cygwin*)
10302   # func_win32_libid is a shell function defined in ltmain.sh
10303   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10304   lt_cv_file_magic_cmd='func_win32_libid'
10305   ;;
10306
10307 mingw* | pw32*)
10308   # Base MSYS/MinGW do not provide the 'file' command needed by
10309   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10310   # unless we find 'file', for example because we are cross-compiling.
10311   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10312   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10313     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10314     lt_cv_file_magic_cmd='func_win32_libid'
10315   else
10316     # Keep this pattern in sync with the one in func_win32_libid.
10317     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10318     lt_cv_file_magic_cmd='$OBJDUMP -f'
10319   fi
10320   ;;
10321
10322 cegcc*)
10323   # use the weaker test based on 'objdump'. See mingw*.
10324   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10325   lt_cv_file_magic_cmd='$OBJDUMP -f'
10326   ;;
10327
10328 darwin* | rhapsody*)
10329   lt_cv_deplibs_check_method=pass_all
10330   ;;
10331
10332 freebsd* | dragonfly*)
10333   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10334     case $host_cpu in
10335     i*86 )
10336       # Not sure whether the presence of OpenBSD here was a mistake.
10337       # Let's accept both of them until this is cleared up.
10338       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10339       lt_cv_file_magic_cmd=/usr/bin/file
10340       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10341       ;;
10342     esac
10343   else
10344     lt_cv_deplibs_check_method=pass_all
10345   fi
10346   ;;
10347
10348 gnu*)
10349   lt_cv_deplibs_check_method=pass_all
10350   ;;
10351
10352 haiku*)
10353   lt_cv_deplibs_check_method=pass_all
10354   ;;
10355
10356 hpux10.20* | hpux11*)
10357   lt_cv_file_magic_cmd=/usr/bin/file
10358   case $host_cpu in
10359   ia64*)
10360     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10361     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10362     ;;
10363   hppa*64*)
10364     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]'
10365     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10366     ;;
10367   *)
10368     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10369     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10370     ;;
10371   esac
10372   ;;
10373
10374 interix[3-9]*)
10375   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10376   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10377   ;;
10378
10379 irix5* | irix6* | nonstopux*)
10380   case $LD in
10381   *-32|*"-32 ") libmagic=32-bit;;
10382   *-n32|*"-n32 ") libmagic=N32;;
10383   *-64|*"-64 ") libmagic=64-bit;;
10384   *) libmagic=never-match;;
10385   esac
10386   lt_cv_deplibs_check_method=pass_all
10387   ;;
10388
10389 # This must be Linux ELF.
10390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10391   lt_cv_deplibs_check_method=pass_all
10392   ;;
10393
10394 netbsd*)
10395   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10396     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10397   else
10398     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10399   fi
10400   ;;
10401
10402 newos6*)
10403   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10404   lt_cv_file_magic_cmd=/usr/bin/file
10405   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10406   ;;
10407
10408 *nto* | *qnx*)
10409   lt_cv_deplibs_check_method=pass_all
10410   ;;
10411
10412 openbsd*)
10413   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10415   else
10416     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10417   fi
10418   ;;
10419
10420 osf3* | osf4* | osf5*)
10421   lt_cv_deplibs_check_method=pass_all
10422   ;;
10423
10424 rdos*)
10425   lt_cv_deplibs_check_method=pass_all
10426   ;;
10427
10428 solaris*)
10429   lt_cv_deplibs_check_method=pass_all
10430   ;;
10431
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433   lt_cv_deplibs_check_method=pass_all
10434   ;;
10435
10436 sysv4 | sysv4.3*)
10437   case $host_vendor in
10438   motorola)
10439     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]'
10440     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10441     ;;
10442   ncr)
10443     lt_cv_deplibs_check_method=pass_all
10444     ;;
10445   sequent)
10446     lt_cv_file_magic_cmd='/bin/file'
10447     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10448     ;;
10449   sni)
10450     lt_cv_file_magic_cmd='/bin/file'
10451     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10452     lt_cv_file_magic_test_file=/lib/libc.so
10453     ;;
10454   siemens)
10455     lt_cv_deplibs_check_method=pass_all
10456     ;;
10457   pc)
10458     lt_cv_deplibs_check_method=pass_all
10459     ;;
10460   esac
10461   ;;
10462
10463 tpf*)
10464   lt_cv_deplibs_check_method=pass_all
10465   ;;
10466 esac
10467
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10470 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10471
10472 file_magic_glob=
10473 want_nocaseglob=no
10474 if test "$build" = "$host"; then
10475   case $host_os in
10476   mingw* | pw32*)
10477     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10478       want_nocaseglob=yes
10479     else
10480       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10481     fi
10482     ;;
10483   esac
10484 fi
10485
10486 file_magic_cmd=$lt_cv_file_magic_cmd
10487 deplibs_check_method=$lt_cv_deplibs_check_method
10488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511 if test -n "$ac_tool_prefix"; then
10512   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10513 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_prog_DLLTOOL+:} false; then :
10517   $as_echo_n "(cached) " >&6
10518 else
10519   if test -n "$DLLTOOL"; then
10520   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10521 else
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10524 do
10525   IFS=$as_save_IFS
10526   test -z "$as_dir" && as_dir=.
10527     for ac_exec_ext in '' $ac_executable_extensions; do
10528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531     break 2
10532   fi
10533 done
10534   done
10535 IFS=$as_save_IFS
10536
10537 fi
10538 fi
10539 DLLTOOL=$ac_cv_prog_DLLTOOL
10540 if test -n "$DLLTOOL"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10542 $as_echo "$DLLTOOL" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547
10548
10549 fi
10550 if test -z "$ac_cv_prog_DLLTOOL"; then
10551   ac_ct_DLLTOOL=$DLLTOOL
10552   # Extract the first word of "dlltool", so it can be a program name with args.
10553 set dummy dlltool; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10557   $as_echo_n "(cached) " >&6
10558 else
10559   if test -n "$ac_ct_DLLTOOL"; then
10560   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10561 else
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10564 do
10565   IFS=$as_save_IFS
10566   test -z "$as_dir" && as_dir=.
10567     for ac_exec_ext in '' $ac_executable_extensions; do
10568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574   done
10575 IFS=$as_save_IFS
10576
10577 fi
10578 fi
10579 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10580 if test -n "$ac_ct_DLLTOOL"; then
10581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10582 $as_echo "$ac_ct_DLLTOOL" >&6; }
10583 else
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10586 fi
10587
10588   if test "x$ac_ct_DLLTOOL" = x; then
10589     DLLTOOL="false"
10590   else
10591     case $cross_compiling:$ac_tool_warned in
10592 yes:)
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10595 ac_tool_warned=yes ;;
10596 esac
10597     DLLTOOL=$ac_ct_DLLTOOL
10598   fi
10599 else
10600   DLLTOOL="$ac_cv_prog_DLLTOOL"
10601 fi
10602
10603 test -z "$DLLTOOL" && DLLTOOL=dlltool
10604
10605
10606
10607
10608
10609
10610
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   lt_cv_sharedlib_from_linklib_cmd='unknown'
10617
10618 case $host_os in
10619 cygwin* | mingw* | pw32* | cegcc*)
10620   # two different shell functions defined in ltmain.sh
10621   # decide which to use based on capabilities of $DLLTOOL
10622   case `$DLLTOOL --help 2>&1` in
10623   *--identify-strict*)
10624     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10625     ;;
10626   *)
10627     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10628     ;;
10629   esac
10630   ;;
10631 *)
10632   # fallback: assume linklib IS sharedlib
10633   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10634   ;;
10635 esac
10636
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10642
10643
10644
10645
10646
10647
10648
10649 if test -n "$ac_tool_prefix"; then
10650   for ac_prog in ar
10651   do
10652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_AR+:} false; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   if test -n "$AR"; then
10660   ac_cv_prog_AR="$AR" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667     for ac_exec_ext in '' $ac_executable_extensions; do
10668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674   done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 AR=$ac_cv_prog_AR
10680 if test -n "$AR"; then
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10682 $as_echo "$AR" >&6; }
10683 else
10684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689     test -n "$AR" && break
10690   done
10691 fi
10692 if test -z "$AR"; then
10693   ac_ct_AR=$AR
10694   for ac_prog in ar
10695 do
10696   # Extract the first word of "$ac_prog", so it can be a program name with args.
10697 set dummy $ac_prog; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   if test -n "$ac_ct_AR"; then
10704   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10705 else
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $PATH
10708 do
10709   IFS=$as_save_IFS
10710   test -z "$as_dir" && as_dir=.
10711     for ac_exec_ext in '' $ac_executable_extensions; do
10712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713     ac_cv_prog_ac_ct_AR="$ac_prog"
10714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715     break 2
10716   fi
10717 done
10718   done
10719 IFS=$as_save_IFS
10720
10721 fi
10722 fi
10723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10724 if test -n "$ac_ct_AR"; then
10725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10726 $as_echo "$ac_ct_AR" >&6; }
10727 else
10728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10730 fi
10731
10732
10733   test -n "$ac_ct_AR" && break
10734 done
10735
10736   if test "x$ac_ct_AR" = x; then
10737     AR="false"
10738   else
10739     case $cross_compiling:$ac_tool_warned in
10740 yes:)
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743 ac_tool_warned=yes ;;
10744 esac
10745     AR=$ac_ct_AR
10746   fi
10747 fi
10748
10749 : ${AR=ar}
10750 : ${AR_FLAGS=cru}
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10763 $as_echo_n "checking for archiver @FILE support... " >&6; }
10764 if ${lt_cv_ar_at_file+:} false; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   lt_cv_ar_at_file=no
10768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 int
10772 main ()
10773 {
10774
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 if ac_fn_c_try_compile "$LINENO"; then :
10780   echo conftest.$ac_objext > conftest.lst
10781       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10782       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10783   (eval $lt_ar_try) 2>&5
10784   ac_status=$?
10785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786   test $ac_status = 0; }
10787       if test "$ac_status" -eq 0; then
10788         # Ensure the archiver fails upon bogus file names.
10789         rm -f conftest.$ac_objext libconftest.a
10790         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10791   (eval $lt_ar_try) 2>&5
10792   ac_status=$?
10793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794   test $ac_status = 0; }
10795         if test "$ac_status" -ne 0; then
10796           lt_cv_ar_at_file=@
10797         fi
10798       fi
10799       rm -f conftest.* libconftest.a
10800
10801 fi
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10806 $as_echo "$lt_cv_ar_at_file" >&6; }
10807
10808 if test "x$lt_cv_ar_at_file" = xno; then
10809   archiver_list_spec=
10810 else
10811   archiver_list_spec=$lt_cv_ar_at_file
10812 fi
10813
10814
10815
10816
10817
10818
10819
10820 if test -n "$ac_tool_prefix"; then
10821   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10822 set dummy ${ac_tool_prefix}strip; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_prog_STRIP+:} false; then :
10826   $as_echo_n "(cached) " >&6
10827 else
10828   if test -n "$STRIP"; then
10829   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10830 else
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10833 do
10834   IFS=$as_save_IFS
10835   test -z "$as_dir" && as_dir=.
10836     for ac_exec_ext in '' $ac_executable_extensions; do
10837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840     break 2
10841   fi
10842 done
10843   done
10844 IFS=$as_save_IFS
10845
10846 fi
10847 fi
10848 STRIP=$ac_cv_prog_STRIP
10849 if test -n "$STRIP"; then
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10851 $as_echo "$STRIP" >&6; }
10852 else
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856
10857
10858 fi
10859 if test -z "$ac_cv_prog_STRIP"; then
10860   ac_ct_STRIP=$STRIP
10861   # Extract the first word of "strip", so it can be a program name with args.
10862 set dummy strip; ac_word=$2
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864 $as_echo_n "checking for $ac_word... " >&6; }
10865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10866   $as_echo_n "(cached) " >&6
10867 else
10868   if test -n "$ac_ct_STRIP"; then
10869   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10870 else
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878     ac_cv_prog_ac_ct_STRIP="strip"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885
10886 fi
10887 fi
10888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10889 if test -n "$ac_ct_STRIP"; then
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10891 $as_echo "$ac_ct_STRIP" >&6; }
10892 else
10893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10895 fi
10896
10897   if test "x$ac_ct_STRIP" = x; then
10898     STRIP=":"
10899   else
10900     case $cross_compiling:$ac_tool_warned in
10901 yes:)
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904 ac_tool_warned=yes ;;
10905 esac
10906     STRIP=$ac_ct_STRIP
10907   fi
10908 else
10909   STRIP="$ac_cv_prog_STRIP"
10910 fi
10911
10912 test -z "$STRIP" && STRIP=:
10913
10914
10915
10916
10917
10918
10919 if test -n "$ac_tool_prefix"; then
10920   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if ${ac_cv_prog_RANLIB+:} false; then :
10925   $as_echo_n "(cached) " >&6
10926 else
10927   if test -n "$RANLIB"; then
10928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10929 else
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10932 do
10933   IFS=$as_save_IFS
10934   test -z "$as_dir" && as_dir=.
10935     for ac_exec_ext in '' $ac_executable_extensions; do
10936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939     break 2
10940   fi
10941 done
10942   done
10943 IFS=$as_save_IFS
10944
10945 fi
10946 fi
10947 RANLIB=$ac_cv_prog_RANLIB
10948 if test -n "$RANLIB"; then
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10950 $as_echo "$RANLIB" >&6; }
10951 else
10952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955
10956
10957 fi
10958 if test -z "$ac_cv_prog_RANLIB"; then
10959   ac_ct_RANLIB=$RANLIB
10960   # Extract the first word of "ranlib", so it can be a program name with args.
10961 set dummy ranlib; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10965   $as_echo_n "(cached) " >&6
10966 else
10967   if test -n "$ac_ct_RANLIB"; then
10968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10969 else
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973   IFS=$as_save_IFS
10974   test -z "$as_dir" && as_dir=.
10975     for ac_exec_ext in '' $ac_executable_extensions; do
10976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977     ac_cv_prog_ac_ct_RANLIB="ranlib"
10978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979     break 2
10980   fi
10981 done
10982   done
10983 IFS=$as_save_IFS
10984
10985 fi
10986 fi
10987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10988 if test -n "$ac_ct_RANLIB"; then
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10990 $as_echo "$ac_ct_RANLIB" >&6; }
10991 else
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10994 fi
10995
10996   if test "x$ac_ct_RANLIB" = x; then
10997     RANLIB=":"
10998   else
10999     case $cross_compiling:$ac_tool_warned in
11000 yes:)
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11003 ac_tool_warned=yes ;;
11004 esac
11005     RANLIB=$ac_ct_RANLIB
11006   fi
11007 else
11008   RANLIB="$ac_cv_prog_RANLIB"
11009 fi
11010
11011 test -z "$RANLIB" && RANLIB=:
11012
11013
11014
11015
11016
11017
11018 # Determine commands to create old-style static archives.
11019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11020 old_postinstall_cmds='chmod 644 $oldlib'
11021 old_postuninstall_cmds=
11022
11023 if test -n "$RANLIB"; then
11024   case $host_os in
11025   openbsd*)
11026     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11027     ;;
11028   *)
11029     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11030     ;;
11031   esac
11032   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11033 fi
11034
11035 case $host_os in
11036   darwin*)
11037     lock_old_archive_extraction=yes ;;
11038   *)
11039     lock_old_archive_extraction=no ;;
11040 esac
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 # If no C compiler was specified, use CC.
11081 LTCC=${LTCC-"$CC"}
11082
11083 # If no C compiler flags were specified, use CFLAGS.
11084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11085
11086 # Allow CC to be a program name with arguments.
11087 compiler=$CC
11088
11089
11090 # Check for command to grab the raw symbol name followed by C symbol from nm.
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096
11097 # These are sane defaults that work on at least a few old systems.
11098 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11099
11100 # Character class describing NM global symbol codes.
11101 symcode='[BCDEGRST]'
11102
11103 # Regexp to match symbols that can be accessed directly from C.
11104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11105
11106 # Define system-specific variables.
11107 case $host_os in
11108 aix*)
11109   symcode='[BCDT]'
11110   ;;
11111 cygwin* | mingw* | pw32* | cegcc*)
11112   symcode='[ABCDGISTW]'
11113   ;;
11114 hpux*)
11115   if test "$host_cpu" = ia64; then
11116     symcode='[ABCDEGRST]'
11117   fi
11118   ;;
11119 irix* | nonstopux*)
11120   symcode='[BCDEGRST]'
11121   ;;
11122 osf*)
11123   symcode='[BCDEGQRST]'
11124   ;;
11125 solaris*)
11126   symcode='[BDRT]'
11127   ;;
11128 sco3.2v5*)
11129   symcode='[DT]'
11130   ;;
11131 sysv4.2uw2*)
11132   symcode='[DT]'
11133   ;;
11134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11135   symcode='[ABDT]'
11136   ;;
11137 sysv4)
11138   symcode='[DFNSTU]'
11139   ;;
11140 esac
11141
11142 # If we're using GNU nm, then use its standard symbol codes.
11143 case `$NM -V 2>&1` in
11144 *GNU* | *'with BFD'*)
11145   symcode='[ABCDGIRSTW]' ;;
11146 esac
11147
11148 # Transform an extracted symbol line into a proper C declaration.
11149 # Some systems (esp. on ia64) link data and code symbols differently,
11150 # so use this general approach.
11151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11152
11153 # Transform an extracted symbol line into symbol name and symbol address
11154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11155 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'"
11156
11157 # Handle CRLF in mingw tool chain
11158 opt_cr=
11159 case $build_os in
11160 mingw*)
11161   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11162   ;;
11163 esac
11164
11165 # Try without a prefix underscore, then with it.
11166 for ac_symprfx in "" "_"; do
11167
11168   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11169   symxfrm="\\1 $ac_symprfx\\2 \\2"
11170
11171   # Write the raw and C identifiers.
11172   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11173     # Fake it for dumpbin and say T for any non-static function
11174     # and D for any global variable.
11175     # Also find C++ and __fastcall symbols from MSVC++,
11176     # which start with @ or ?.
11177     lt_cv_sys_global_symbol_pipe="$AWK '"\
11178 "     {last_section=section; section=\$ 3};"\
11179 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11180 "     \$ 0!~/External *\|/{next};"\
11181 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11182 "     {if(hide[section]) next};"\
11183 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11184 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11185 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11186 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11187 "     ' prfx=^$ac_symprfx"
11188   else
11189     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11190   fi
11191   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11192
11193   # Check to see that the pipe works correctly.
11194   pipe_works=no
11195
11196   rm -f conftest*
11197   cat > conftest.$ac_ext <<_LT_EOF
11198 #ifdef __cplusplus
11199 extern "C" {
11200 #endif
11201 char nm_test_var;
11202 void nm_test_func(void);
11203 void nm_test_func(void){}
11204 #ifdef __cplusplus
11205 }
11206 #endif
11207 int main(){nm_test_var='a';nm_test_func();return(0);}
11208 _LT_EOF
11209
11210   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11211   (eval $ac_compile) 2>&5
11212   ac_status=$?
11213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11214   test $ac_status = 0; }; then
11215     # Now try to grab the symbols.
11216     nlist=conftest.nm
11217     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11218   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11219   ac_status=$?
11220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221   test $ac_status = 0; } && test -s "$nlist"; then
11222       # Try sorting and uniquifying the output.
11223       if sort "$nlist" | uniq > "$nlist"T; then
11224         mv -f "$nlist"T "$nlist"
11225       else
11226         rm -f "$nlist"T
11227       fi
11228
11229       # Make sure that we snagged all the symbols we need.
11230       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11231         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11232           cat <<_LT_EOF > conftest.$ac_ext
11233 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11234 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11235 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11236    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11237 # define LT_DLSYM_CONST
11238 #elif defined(__osf__)
11239 /* This system does not cope well with relocations in const data.  */
11240 # define LT_DLSYM_CONST
11241 #else
11242 # define LT_DLSYM_CONST const
11243 #endif
11244
11245 #ifdef __cplusplus
11246 extern "C" {
11247 #endif
11248
11249 _LT_EOF
11250           # Now generate the symbol file.
11251           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11252
11253           cat <<_LT_EOF >> conftest.$ac_ext
11254
11255 /* The mapping between symbol names and symbols.  */
11256 LT_DLSYM_CONST struct {
11257   const char *name;
11258   void       *address;
11259 }
11260 lt__PROGRAM__LTX_preloaded_symbols[] =
11261 {
11262   { "@PROGRAM@", (void *) 0 },
11263 _LT_EOF
11264           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11265           cat <<\_LT_EOF >> conftest.$ac_ext
11266   {0, (void *) 0}
11267 };
11268
11269 /* This works around a problem in FreeBSD linker */
11270 #ifdef FREEBSD_WORKAROUND
11271 static const void *lt_preloaded_setup() {
11272   return lt__PROGRAM__LTX_preloaded_symbols;
11273 }
11274 #endif
11275
11276 #ifdef __cplusplus
11277 }
11278 #endif
11279 _LT_EOF
11280           # Now try linking the two files.
11281           mv conftest.$ac_objext conftstm.$ac_objext
11282           lt_globsym_save_LIBS=$LIBS
11283           lt_globsym_save_CFLAGS=$CFLAGS
11284           LIBS="conftstm.$ac_objext"
11285           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11286           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287   (eval $ac_link) 2>&5
11288   ac_status=$?
11289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11291             pipe_works=yes
11292           fi
11293           LIBS=$lt_globsym_save_LIBS
11294           CFLAGS=$lt_globsym_save_CFLAGS
11295         else
11296           echo "cannot find nm_test_func in $nlist" >&5
11297         fi
11298       else
11299         echo "cannot find nm_test_var in $nlist" >&5
11300       fi
11301     else
11302       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11303     fi
11304   else
11305     echo "$progname: failed program was:" >&5
11306     cat conftest.$ac_ext >&5
11307   fi
11308   rm -rf conftest* conftst*
11309
11310   # Do not use the global_symbol_pipe unless it works.
11311   if test "$pipe_works" = yes; then
11312     break
11313   else
11314     lt_cv_sys_global_symbol_pipe=
11315   fi
11316 done
11317
11318 fi
11319
11320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11321   lt_cv_sys_global_symbol_to_cdecl=
11322 fi
11323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11325 $as_echo "failed" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11328 $as_echo "ok" >&6; }
11329 fi
11330
11331 # Response file support.
11332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11333   nm_file_list_spec='@'
11334 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11335   nm_file_list_spec='@'
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11365 $as_echo_n "checking for sysroot... " >&6; }
11366
11367 # Check whether --with-sysroot was given.
11368 if test "${with_sysroot+set}" = set; then :
11369   withval=$with_sysroot;
11370 else
11371   with_sysroot=no
11372 fi
11373
11374
11375 lt_sysroot=
11376 case ${with_sysroot} in #(
11377  yes)
11378    if test "$GCC" = yes; then
11379      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11380    fi
11381    ;; #(
11382  /*)
11383    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11384    ;; #(
11385  no|'')
11386    ;; #(
11387  *)
11388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11389 $as_echo "${with_sysroot}" >&6; }
11390    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11391    ;;
11392 esac
11393
11394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11395 $as_echo "${lt_sysroot:-no}" >&6; }
11396
11397
11398
11399
11400
11401 # Check whether --enable-libtool-lock was given.
11402 if test "${enable_libtool_lock+set}" = set; then :
11403   enableval=$enable_libtool_lock;
11404 fi
11405
11406 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11407
11408 # Some flags need to be propagated to the compiler or linker for good
11409 # libtool support.
11410 case $host in
11411 ia64-*-hpux*)
11412   # Find out which ABI we are using.
11413   echo 'int i;' > conftest.$ac_ext
11414   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11415   (eval $ac_compile) 2>&5
11416   ac_status=$?
11417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418   test $ac_status = 0; }; then
11419     case `/usr/bin/file conftest.$ac_objext` in
11420       *ELF-32*)
11421         HPUX_IA64_MODE="32"
11422         ;;
11423       *ELF-64*)
11424         HPUX_IA64_MODE="64"
11425         ;;
11426     esac
11427   fi
11428   rm -rf conftest*
11429   ;;
11430 *-*-irix6*)
11431   # Find out which ABI we are using.
11432   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11433   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11434   (eval $ac_compile) 2>&5
11435   ac_status=$?
11436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437   test $ac_status = 0; }; then
11438     if test "$lt_cv_prog_gnu_ld" = yes; then
11439       case `/usr/bin/file conftest.$ac_objext` in
11440         *32-bit*)
11441           LD="${LD-ld} -melf32bsmip"
11442           ;;
11443         *N32*)
11444           LD="${LD-ld} -melf32bmipn32"
11445           ;;
11446         *64-bit*)
11447           LD="${LD-ld} -melf64bmip"
11448         ;;
11449       esac
11450     else
11451       case `/usr/bin/file conftest.$ac_objext` in
11452         *32-bit*)
11453           LD="${LD-ld} -32"
11454           ;;
11455         *N32*)
11456           LD="${LD-ld} -n32"
11457           ;;
11458         *64-bit*)
11459           LD="${LD-ld} -64"
11460           ;;
11461       esac
11462     fi
11463   fi
11464   rm -rf conftest*
11465   ;;
11466
11467 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11468 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11469   # Find out which ABI we are using.
11470   echo 'int i;' > conftest.$ac_ext
11471   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472   (eval $ac_compile) 2>&5
11473   ac_status=$?
11474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475   test $ac_status = 0; }; then
11476     case `/usr/bin/file conftest.o` in
11477       *32-bit*)
11478         case $host in
11479           x86_64-*kfreebsd*-gnu)
11480             LD="${LD-ld} -m elf_i386_fbsd"
11481             ;;
11482           x86_64-*linux*)
11483             LD="${LD-ld} -m elf_i386"
11484             ;;
11485           ppc64-*linux*|powerpc64-*linux*)
11486             LD="${LD-ld} -m elf32ppclinux"
11487             ;;
11488           s390x-*linux*)
11489             LD="${LD-ld} -m elf_s390"
11490             ;;
11491           sparc64-*linux*)
11492             LD="${LD-ld} -m elf32_sparc"
11493             ;;
11494         esac
11495         ;;
11496       *64-bit*)
11497         case $host in
11498           x86_64-*kfreebsd*-gnu)
11499             LD="${LD-ld} -m elf_x86_64_fbsd"
11500             ;;
11501           x86_64-*linux*)
11502             LD="${LD-ld} -m elf_x86_64"
11503             ;;
11504           ppc*-*linux*|powerpc*-*linux*)
11505             LD="${LD-ld} -m elf64ppc"
11506             ;;
11507           s390*-*linux*|s390*-*tpf*)
11508             LD="${LD-ld} -m elf64_s390"
11509             ;;
11510           sparc*-*linux*)
11511             LD="${LD-ld} -m elf64_sparc"
11512             ;;
11513         esac
11514         ;;
11515     esac
11516   fi
11517   rm -rf conftest*
11518   ;;
11519
11520 *-*-sco3.2v5*)
11521   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11522   SAVE_CFLAGS="$CFLAGS"
11523   CFLAGS="$CFLAGS -belf"
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11525 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11526 if ${lt_cv_cc_needs_belf+:} false; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   ac_ext=c
11530 ac_cpp='$CPP $CPPFLAGS'
11531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
11535      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h.  */
11537
11538 int
11539 main ()
11540 {
11541
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547   lt_cv_cc_needs_belf=yes
11548 else
11549   lt_cv_cc_needs_belf=no
11550 fi
11551 rm -f core conftest.err conftest.$ac_objext \
11552     conftest$ac_exeext conftest.$ac_ext
11553      ac_ext=c
11554 ac_cpp='$CPP $CPPFLAGS'
11555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11561 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11562   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11563     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11564     CFLAGS="$SAVE_CFLAGS"
11565   fi
11566   ;;
11567 sparc*-*solaris*)
11568   # Find out which ABI we are using.
11569   echo 'int i;' > conftest.$ac_ext
11570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11571   (eval $ac_compile) 2>&5
11572   ac_status=$?
11573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574   test $ac_status = 0; }; then
11575     case `/usr/bin/file conftest.o` in
11576     *64-bit*)
11577       case $lt_cv_prog_gnu_ld in
11578       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11579       *)
11580         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11581           LD="${LD-ld} -64"
11582         fi
11583         ;;
11584       esac
11585       ;;
11586     esac
11587   fi
11588   rm -rf conftest*
11589   ;;
11590 esac
11591
11592 need_locks="$enable_libtool_lock"
11593
11594 if test -n "$ac_tool_prefix"; then
11595   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11596 set dummy ${ac_tool_prefix}mt; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   if test -n "$MANIFEST_TOOL"; then
11603   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608   IFS=$as_save_IFS
11609   test -z "$as_dir" && as_dir=.
11610     for ac_exec_ext in '' $ac_executable_extensions; do
11611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614     break 2
11615   fi
11616 done
11617   done
11618 IFS=$as_save_IFS
11619
11620 fi
11621 fi
11622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11623 if test -n "$MANIFEST_TOOL"; then
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11625 $as_echo "$MANIFEST_TOOL" >&6; }
11626 else
11627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11629 fi
11630
11631
11632 fi
11633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11634   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11635   # Extract the first word of "mt", so it can be a program name with args.
11636 set dummy mt; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   if test -n "$ac_ct_MANIFEST_TOOL"; then
11643   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648   IFS=$as_save_IFS
11649   test -z "$as_dir" && as_dir=.
11650     for ac_exec_ext in '' $ac_executable_extensions; do
11651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654     break 2
11655   fi
11656 done
11657   done
11658 IFS=$as_save_IFS
11659
11660 fi
11661 fi
11662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11663 if test -n "$ac_ct_MANIFEST_TOOL"; then
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11666 else
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 fi
11670
11671   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11672     MANIFEST_TOOL=":"
11673   else
11674     case $cross_compiling:$ac_tool_warned in
11675 yes:)
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11678 ac_tool_warned=yes ;;
11679 esac
11680     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11681   fi
11682 else
11683   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11684 fi
11685
11686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11689 if ${lt_cv_path_mainfest_tool+:} false; then :
11690   $as_echo_n "(cached) " >&6
11691 else
11692   lt_cv_path_mainfest_tool=no
11693   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11694   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11695   cat conftest.err >&5
11696   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11697     lt_cv_path_mainfest_tool=yes
11698   fi
11699   rm -f conftest*
11700 fi
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11703 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11704   MANIFEST_TOOL=:
11705 fi
11706
11707
11708
11709
11710
11711
11712   case $host_os in
11713     rhapsody* | darwin*)
11714     if test -n "$ac_tool_prefix"; then
11715   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   if test -n "$DSYMUTIL"; then
11723   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11727 do
11728   IFS=$as_save_IFS
11729   test -z "$as_dir" && as_dir=.
11730     for ac_exec_ext in '' $ac_executable_extensions; do
11731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734     break 2
11735   fi
11736 done
11737   done
11738 IFS=$as_save_IFS
11739
11740 fi
11741 fi
11742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11743 if test -n "$DSYMUTIL"; then
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11745 $as_echo "$DSYMUTIL" >&6; }
11746 else
11747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749 fi
11750
11751
11752 fi
11753 if test -z "$ac_cv_prog_DSYMUTIL"; then
11754   ac_ct_DSYMUTIL=$DSYMUTIL
11755   # Extract the first word of "dsymutil", so it can be a program name with args.
11756 set dummy dsymutil; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   if test -n "$ac_ct_DSYMUTIL"; then
11763   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11767 do
11768   IFS=$as_save_IFS
11769   test -z "$as_dir" && as_dir=.
11770     for ac_exec_ext in '' $ac_executable_extensions; do
11771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774     break 2
11775   fi
11776 done
11777   done
11778 IFS=$as_save_IFS
11779
11780 fi
11781 fi
11782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11783 if test -n "$ac_ct_DSYMUTIL"; then
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11786 else
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11789 fi
11790
11791   if test "x$ac_ct_DSYMUTIL" = x; then
11792     DSYMUTIL=":"
11793   else
11794     case $cross_compiling:$ac_tool_warned in
11795 yes:)
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798 ac_tool_warned=yes ;;
11799 esac
11800     DSYMUTIL=$ac_ct_DSYMUTIL
11801   fi
11802 else
11803   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11804 fi
11805
11806     if test -n "$ac_tool_prefix"; then
11807   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_prog_NMEDIT+:} false; then :
11812   $as_echo_n "(cached) " >&6
11813 else
11814   if test -n "$NMEDIT"; then
11815   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11816 else
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11819 do
11820   IFS=$as_save_IFS
11821   test -z "$as_dir" && as_dir=.
11822     for ac_exec_ext in '' $ac_executable_extensions; do
11823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826     break 2
11827   fi
11828 done
11829   done
11830 IFS=$as_save_IFS
11831
11832 fi
11833 fi
11834 NMEDIT=$ac_cv_prog_NMEDIT
11835 if test -n "$NMEDIT"; then
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11837 $as_echo "$NMEDIT" >&6; }
11838 else
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842
11843
11844 fi
11845 if test -z "$ac_cv_prog_NMEDIT"; then
11846   ac_ct_NMEDIT=$NMEDIT
11847   # Extract the first word of "nmedit", so it can be a program name with args.
11848 set dummy nmedit; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11852   $as_echo_n "(cached) " >&6
11853 else
11854   if test -n "$ac_ct_NMEDIT"; then
11855   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11856 else
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860   IFS=$as_save_IFS
11861   test -z "$as_dir" && as_dir=.
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866     break 2
11867   fi
11868 done
11869   done
11870 IFS=$as_save_IFS
11871
11872 fi
11873 fi
11874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11875 if test -n "$ac_ct_NMEDIT"; then
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11877 $as_echo "$ac_ct_NMEDIT" >&6; }
11878 else
11879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882
11883   if test "x$ac_ct_NMEDIT" = x; then
11884     NMEDIT=":"
11885   else
11886     case $cross_compiling:$ac_tool_warned in
11887 yes:)
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890 ac_tool_warned=yes ;;
11891 esac
11892     NMEDIT=$ac_ct_NMEDIT
11893   fi
11894 else
11895   NMEDIT="$ac_cv_prog_NMEDIT"
11896 fi
11897
11898     if test -n "$ac_tool_prefix"; then
11899   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_LIPO+:} false; then :
11904   $as_echo_n "(cached) " >&6
11905 else
11906   if test -n "$LIPO"; then
11907   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912   IFS=$as_save_IFS
11913   test -z "$as_dir" && as_dir=.
11914     for ac_exec_ext in '' $ac_executable_extensions; do
11915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918     break 2
11919   fi
11920 done
11921   done
11922 IFS=$as_save_IFS
11923
11924 fi
11925 fi
11926 LIPO=$ac_cv_prog_LIPO
11927 if test -n "$LIPO"; then
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11929 $as_echo "$LIPO" >&6; }
11930 else
11931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936 fi
11937 if test -z "$ac_cv_prog_LIPO"; then
11938   ac_ct_LIPO=$LIPO
11939   # Extract the first word of "lipo", so it can be a program name with args.
11940 set dummy lipo; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if test -n "$ac_ct_LIPO"; then
11947   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956     ac_cv_prog_ac_ct_LIPO="lipo"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963
11964 fi
11965 fi
11966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11967 if test -n "$ac_ct_LIPO"; then
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11969 $as_echo "$ac_ct_LIPO" >&6; }
11970 else
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 fi
11974
11975   if test "x$ac_ct_LIPO" = x; then
11976     LIPO=":"
11977   else
11978     case $cross_compiling:$ac_tool_warned in
11979 yes:)
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11982 ac_tool_warned=yes ;;
11983 esac
11984     LIPO=$ac_ct_LIPO
11985   fi
11986 else
11987   LIPO="$ac_cv_prog_LIPO"
11988 fi
11989
11990     if test -n "$ac_tool_prefix"; then
11991   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11992 set dummy ${ac_tool_prefix}otool; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_prog_OTOOL+:} false; then :
11996   $as_echo_n "(cached) " >&6
11997 else
11998   if test -n "$OTOOL"; then
11999   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12000 else
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12003 do
12004   IFS=$as_save_IFS
12005   test -z "$as_dir" && as_dir=.
12006     for ac_exec_ext in '' $ac_executable_extensions; do
12007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010     break 2
12011   fi
12012 done
12013   done
12014 IFS=$as_save_IFS
12015
12016 fi
12017 fi
12018 OTOOL=$ac_cv_prog_OTOOL
12019 if test -n "$OTOOL"; then
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12021 $as_echo "$OTOOL" >&6; }
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026
12027
12028 fi
12029 if test -z "$ac_cv_prog_OTOOL"; then
12030   ac_ct_OTOOL=$OTOOL
12031   # Extract the first word of "otool", so it can be a program name with args.
12032 set dummy otool; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12036   $as_echo_n "(cached) " >&6
12037 else
12038   if test -n "$ac_ct_OTOOL"; then
12039   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046     for ac_exec_ext in '' $ac_executable_extensions; do
12047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048     ac_cv_prog_ac_ct_OTOOL="otool"
12049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053   done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12059 if test -n "$ac_ct_OTOOL"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12061 $as_echo "$ac_ct_OTOOL" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067   if test "x$ac_ct_OTOOL" = x; then
12068     OTOOL=":"
12069   else
12070     case $cross_compiling:$ac_tool_warned in
12071 yes:)
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12074 ac_tool_warned=yes ;;
12075 esac
12076     OTOOL=$ac_ct_OTOOL
12077   fi
12078 else
12079   OTOOL="$ac_cv_prog_OTOOL"
12080 fi
12081
12082     if test -n "$ac_tool_prefix"; then
12083   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_prog_OTOOL64+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   if test -n "$OTOOL64"; then
12091   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107
12108 fi
12109 fi
12110 OTOOL64=$ac_cv_prog_OTOOL64
12111 if test -n "$OTOOL64"; then
12112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12113 $as_echo "$OTOOL64" >&6; }
12114 else
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118
12119
12120 fi
12121 if test -z "$ac_cv_prog_OTOOL64"; then
12122   ac_ct_OTOOL64=$OTOOL64
12123   # Extract the first word of "otool64", so it can be a program name with args.
12124 set dummy otool64; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130   if test -n "$ac_ct_OTOOL64"; then
12131   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12135 do
12136   IFS=$as_save_IFS
12137   test -z "$as_dir" && as_dir=.
12138     for ac_exec_ext in '' $ac_executable_extensions; do
12139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140     ac_cv_prog_ac_ct_OTOOL64="otool64"
12141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142     break 2
12143   fi
12144 done
12145   done
12146 IFS=$as_save_IFS
12147
12148 fi
12149 fi
12150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12151 if test -n "$ac_ct_OTOOL64"; then
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12153 $as_echo "$ac_ct_OTOOL64" >&6; }
12154 else
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12157 fi
12158
12159   if test "x$ac_ct_OTOOL64" = x; then
12160     OTOOL64=":"
12161   else
12162     case $cross_compiling:$ac_tool_warned in
12163 yes:)
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166 ac_tool_warned=yes ;;
12167 esac
12168     OTOOL64=$ac_ct_OTOOL64
12169   fi
12170 else
12171   OTOOL64="$ac_cv_prog_OTOOL64"
12172 fi
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12201 $as_echo_n "checking for -single_module linker flag... " >&6; }
12202 if ${lt_cv_apple_cc_single_mod+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   lt_cv_apple_cc_single_mod=no
12206       if test -z "${LT_MULTI_MODULE}"; then
12207         # By default we will add the -single_module flag. You can override
12208         # by either setting the environment variable LT_MULTI_MODULE
12209         # non-empty at configure time, or by adding -multi_module to the
12210         # link flags.
12211         rm -rf libconftest.dylib*
12212         echo "int foo(void){return 1;}" > conftest.c
12213         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12214 -dynamiclib -Wl,-single_module conftest.c" >&5
12215         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12216           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12217         _lt_result=$?
12218         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12219           lt_cv_apple_cc_single_mod=yes
12220         else
12221           cat conftest.err >&5
12222         fi
12223         rm -rf libconftest.dylib*
12224         rm -f conftest.*
12225       fi
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12228 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12230 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12231 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   lt_cv_ld_exported_symbols_list=no
12235       save_LDFLAGS=$LDFLAGS
12236       echo "_main" > conftest.sym
12237       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h.  */
12240
12241 int
12242 main ()
12243 {
12244
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250   lt_cv_ld_exported_symbols_list=yes
12251 else
12252   lt_cv_ld_exported_symbols_list=no
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext \
12255     conftest$ac_exeext conftest.$ac_ext
12256         LDFLAGS="$save_LDFLAGS"
12257
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12262 $as_echo_n "checking for -force_load linker flag... " >&6; }
12263 if ${lt_cv_ld_force_load+:} false; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   lt_cv_ld_force_load=no
12267       cat > conftest.c << _LT_EOF
12268 int forced_loaded() { return 2;}
12269 _LT_EOF
12270       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12271       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12272       echo "$AR cru libconftest.a conftest.o" >&5
12273       $AR cru libconftest.a conftest.o 2>&5
12274       echo "$RANLIB libconftest.a" >&5
12275       $RANLIB libconftest.a 2>&5
12276       cat > conftest.c << _LT_EOF
12277 int main() { return 0;}
12278 _LT_EOF
12279       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12280       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12281       _lt_result=$?
12282       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12283         lt_cv_ld_force_load=yes
12284       else
12285         cat conftest.err >&5
12286       fi
12287         rm -f conftest.err libconftest.a conftest conftest.c
12288         rm -rf conftest.dSYM
12289
12290 fi
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12292 $as_echo "$lt_cv_ld_force_load" >&6; }
12293     case $host_os in
12294     rhapsody* | darwin1.[012])
12295       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12296     darwin1.*)
12297       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12298     darwin*) # darwin 5.x on
12299       # if running on 10.5 or later, the deployment target defaults
12300       # to the OS version, if on x86, and 10.4, the deployment
12301       # target defaults to 10.4. Don't you love it?
12302       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12303         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12304           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12305         10.[012]*)
12306           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12307         10.*)
12308           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12309       esac
12310     ;;
12311   esac
12312     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12313       _lt_dar_single_mod='$single_module'
12314     fi
12315     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12316       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12317     else
12318       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12319     fi
12320     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12321       _lt_dsymutil='~$DSYMUTIL $lib || :'
12322     else
12323       _lt_dsymutil=
12324     fi
12325     ;;
12326   esac
12327
12328 for ac_header in dlfcn.h
12329 do :
12330   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12331 "
12332 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12333   cat >>confdefs.h <<_ACEOF
12334 #define HAVE_DLFCN_H 1
12335 _ACEOF
12336
12337 fi
12338
12339 done
12340
12341
12342
12343
12344 func_stripname_cnf ()
12345 {
12346   case ${2} in
12347   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12348   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12349   esac
12350 } # func_stripname_cnf
12351
12352
12353
12354
12355
12356 # Set options
12357 enable_win32_dll=yes
12358
12359 case $host in
12360 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12361   if test -n "$ac_tool_prefix"; then
12362   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12363 set dummy ${ac_tool_prefix}as; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_prog_AS+:} false; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   if test -n "$AS"; then
12370   ac_cv_prog_AS="$AS" # Let the user override the test.
12371 else
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12374 do
12375   IFS=$as_save_IFS
12376   test -z "$as_dir" && as_dir=.
12377     for ac_exec_ext in '' $ac_executable_extensions; do
12378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379     ac_cv_prog_AS="${ac_tool_prefix}as"
12380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381     break 2
12382   fi
12383 done
12384   done
12385 IFS=$as_save_IFS
12386
12387 fi
12388 fi
12389 AS=$ac_cv_prog_AS
12390 if test -n "$AS"; then
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12392 $as_echo "$AS" >&6; }
12393 else
12394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$ac_cv_prog_AS"; then
12401   ac_ct_AS=$AS
12402   # Extract the first word of "as", so it can be a program name with args.
12403 set dummy as; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   if test -n "$ac_ct_AS"; then
12410   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415   IFS=$as_save_IFS
12416   test -z "$as_dir" && as_dir=.
12417     for ac_exec_ext in '' $ac_executable_extensions; do
12418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419     ac_cv_prog_ac_ct_AS="as"
12420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421     break 2
12422   fi
12423 done
12424   done
12425 IFS=$as_save_IFS
12426
12427 fi
12428 fi
12429 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12430 if test -n "$ac_ct_AS"; then
12431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12432 $as_echo "$ac_ct_AS" >&6; }
12433 else
12434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438   if test "x$ac_ct_AS" = x; then
12439     AS="false"
12440   else
12441     case $cross_compiling:$ac_tool_warned in
12442 yes:)
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445 ac_tool_warned=yes ;;
12446 esac
12447     AS=$ac_ct_AS
12448   fi
12449 else
12450   AS="$ac_cv_prog_AS"
12451 fi
12452
12453   if test -n "$ac_tool_prefix"; then
12454   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12455 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_prog_DLLTOOL+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   if test -n "$DLLTOOL"; then
12462   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12463 else
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467   IFS=$as_save_IFS
12468   test -z "$as_dir" && as_dir=.
12469     for ac_exec_ext in '' $ac_executable_extensions; do
12470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473     break 2
12474   fi
12475 done
12476   done
12477 IFS=$as_save_IFS
12478
12479 fi
12480 fi
12481 DLLTOOL=$ac_cv_prog_DLLTOOL
12482 if test -n "$DLLTOOL"; then
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12484 $as_echo "$DLLTOOL" >&6; }
12485 else
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490
12491 fi
12492 if test -z "$ac_cv_prog_DLLTOOL"; then
12493   ac_ct_DLLTOOL=$DLLTOOL
12494   # Extract the first word of "dlltool", so it can be a program name with args.
12495 set dummy dlltool; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501   if test -n "$ac_ct_DLLTOOL"; then
12502   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12503 else
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12506 do
12507   IFS=$as_save_IFS
12508   test -z "$as_dir" && as_dir=.
12509     for ac_exec_ext in '' $ac_executable_extensions; do
12510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513     break 2
12514   fi
12515 done
12516   done
12517 IFS=$as_save_IFS
12518
12519 fi
12520 fi
12521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12522 if test -n "$ac_ct_DLLTOOL"; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12524 $as_echo "$ac_ct_DLLTOOL" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529
12530   if test "x$ac_ct_DLLTOOL" = x; then
12531     DLLTOOL="false"
12532   else
12533     case $cross_compiling:$ac_tool_warned in
12534 yes:)
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537 ac_tool_warned=yes ;;
12538 esac
12539     DLLTOOL=$ac_ct_DLLTOOL
12540   fi
12541 else
12542   DLLTOOL="$ac_cv_prog_DLLTOOL"
12543 fi
12544
12545   if test -n "$ac_tool_prefix"; then
12546   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_OBJDUMP+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553   if test -n "$OBJDUMP"; then
12554   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12555 else
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12558 do
12559   IFS=$as_save_IFS
12560   test -z "$as_dir" && as_dir=.
12561     for ac_exec_ext in '' $ac_executable_extensions; do
12562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565     break 2
12566   fi
12567 done
12568   done
12569 IFS=$as_save_IFS
12570
12571 fi
12572 fi
12573 OBJDUMP=$ac_cv_prog_OBJDUMP
12574 if test -n "$OBJDUMP"; then
12575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12576 $as_echo "$OBJDUMP" >&6; }
12577 else
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_prog_OBJDUMP"; then
12585   ac_ct_OBJDUMP=$OBJDUMP
12586   # Extract the first word of "objdump", so it can be a program name with args.
12587 set dummy objdump; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   if test -n "$ac_ct_OBJDUMP"; then
12594   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599   IFS=$as_save_IFS
12600   test -z "$as_dir" && as_dir=.
12601     for ac_exec_ext in '' $ac_executable_extensions; do
12602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605     break 2
12606   fi
12607 done
12608   done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12614 if test -n "$ac_ct_OBJDUMP"; then
12615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12616 $as_echo "$ac_ct_OBJDUMP" >&6; }
12617 else
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622   if test "x$ac_ct_OBJDUMP" = x; then
12623     OBJDUMP="false"
12624   else
12625     case $cross_compiling:$ac_tool_warned in
12626 yes:)
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629 ac_tool_warned=yes ;;
12630 esac
12631     OBJDUMP=$ac_ct_OBJDUMP
12632   fi
12633 else
12634   OBJDUMP="$ac_cv_prog_OBJDUMP"
12635 fi
12636
12637   ;;
12638 esac
12639
12640 test -z "$AS" && AS=as
12641
12642
12643
12644
12645
12646 test -z "$DLLTOOL" && DLLTOOL=dlltool
12647
12648
12649
12650
12651
12652 test -z "$OBJDUMP" && OBJDUMP=objdump
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662             # Check whether --enable-shared was given.
12663 if test "${enable_shared+set}" = set; then :
12664   enableval=$enable_shared; p=${PACKAGE-default}
12665     case $enableval in
12666     yes) enable_shared=yes ;;
12667     no) enable_shared=no ;;
12668     *)
12669       enable_shared=no
12670       # Look at the argument we got.  We use all the common list separators.
12671       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672       for pkg in $enableval; do
12673         IFS="$lt_save_ifs"
12674         if test "X$pkg" = "X$p"; then
12675           enable_shared=yes
12676         fi
12677       done
12678       IFS="$lt_save_ifs"
12679       ;;
12680     esac
12681 else
12682   enable_shared=yes
12683 fi
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693   # Check whether --enable-static was given.
12694 if test "${enable_static+set}" = set; then :
12695   enableval=$enable_static; p=${PACKAGE-default}
12696     case $enableval in
12697     yes) enable_static=yes ;;
12698     no) enable_static=no ;;
12699     *)
12700      enable_static=no
12701       # Look at the argument we got.  We use all the common list separators.
12702       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703       for pkg in $enableval; do
12704         IFS="$lt_save_ifs"
12705         if test "X$pkg" = "X$p"; then
12706           enable_static=yes
12707         fi
12708       done
12709       IFS="$lt_save_ifs"
12710       ;;
12711     esac
12712 else
12713   enable_static=yes
12714 fi
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725 # Check whether --with-pic was given.
12726 if test "${with_pic+set}" = set; then :
12727   withval=$with_pic; pic_mode="$withval"
12728 else
12729   pic_mode=default
12730 fi
12731
12732
12733 test -z "$pic_mode" && pic_mode=default
12734
12735
12736
12737
12738
12739
12740
12741   # Check whether --enable-fast-install was given.
12742 if test "${enable_fast_install+set}" = set; then :
12743   enableval=$enable_fast_install; p=${PACKAGE-default}
12744     case $enableval in
12745     yes) enable_fast_install=yes ;;
12746     no) enable_fast_install=no ;;
12747     *)
12748       enable_fast_install=no
12749       # Look at the argument we got.  We use all the common list separators.
12750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12751       for pkg in $enableval; do
12752         IFS="$lt_save_ifs"
12753         if test "X$pkg" = "X$p"; then
12754           enable_fast_install=yes
12755         fi
12756       done
12757       IFS="$lt_save_ifs"
12758       ;;
12759     esac
12760 else
12761   enable_fast_install=yes
12762 fi
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 # This can be used to rebuild libtool when needed
12775 LIBTOOL_DEPS="$ltmain"
12776
12777 # Always use our own libtool.
12778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 test -z "$LN_S" && LN_S="ln -s"
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820 if test -n "${ZSH_VERSION+set}" ; then
12821    setopt NO_GLOB_SUBST
12822 fi
12823
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12825 $as_echo_n "checking for objdir... " >&6; }
12826 if ${lt_cv_objdir+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   rm -f .libs 2>/dev/null
12830 mkdir .libs 2>/dev/null
12831 if test -d .libs; then
12832   lt_cv_objdir=.libs
12833 else
12834   # MS-DOS does not allow filenames that begin with a dot.
12835   lt_cv_objdir=_libs
12836 fi
12837 rmdir .libs 2>/dev/null
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12840 $as_echo "$lt_cv_objdir" >&6; }
12841 objdir=$lt_cv_objdir
12842
12843
12844
12845
12846
12847 cat >>confdefs.h <<_ACEOF
12848 #define LT_OBJDIR "$lt_cv_objdir/"
12849 _ACEOF
12850
12851
12852
12853
12854 case $host_os in
12855 aix3*)
12856   # AIX sometimes has problems with the GCC collect2 program.  For some
12857   # reason, if we set the COLLECT_NAMES environment variable, the problems
12858   # vanish in a puff of smoke.
12859   if test "X${COLLECT_NAMES+set}" != Xset; then
12860     COLLECT_NAMES=
12861     export COLLECT_NAMES
12862   fi
12863   ;;
12864 esac
12865
12866 # Global variables:
12867 ofile=libtool
12868 can_build_shared=yes
12869
12870 # All known linkers require a `.a' archive for static linking (except MSVC,
12871 # which needs '.lib').
12872 libext=a
12873
12874 with_gnu_ld="$lt_cv_prog_gnu_ld"
12875
12876 old_CC="$CC"
12877 old_CFLAGS="$CFLAGS"
12878
12879 # Set sane defaults for various variables
12880 test -z "$CC" && CC=cc
12881 test -z "$LTCC" && LTCC=$CC
12882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12883 test -z "$LD" && LD=ld
12884 test -z "$ac_objext" && ac_objext=o
12885
12886 for cc_temp in $compiler""; do
12887   case $cc_temp in
12888     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12889     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12890     \-*) ;;
12891     *) break;;
12892   esac
12893 done
12894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12895
12896
12897 # Only perform the check for file, if the check method requires it
12898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12899 case $deplibs_check_method in
12900 file_magic*)
12901   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12904 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   case $MAGIC_CMD in
12908 [\\/*] |  ?:[\\/]*)
12909   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12910   ;;
12911 *)
12912   lt_save_MAGIC_CMD="$MAGIC_CMD"
12913   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12914   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12915   for ac_dir in $ac_dummy; do
12916     IFS="$lt_save_ifs"
12917     test -z "$ac_dir" && ac_dir=.
12918     if test -f $ac_dir/${ac_tool_prefix}file; then
12919       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12920       if test -n "$file_magic_test_file"; then
12921         case $deplibs_check_method in
12922         "file_magic "*)
12923           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12924           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12925           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12926             $EGREP "$file_magic_regex" > /dev/null; then
12927             :
12928           else
12929             cat <<_LT_EOF 1>&2
12930
12931 *** Warning: the command libtool uses to detect shared libraries,
12932 *** $file_magic_cmd, produces output that libtool cannot recognize.
12933 *** The result is that libtool may fail to recognize shared libraries
12934 *** as such.  This will affect the creation of libtool libraries that
12935 *** depend on shared libraries, but programs linked with such libtool
12936 *** libraries will work regardless of this problem.  Nevertheless, you
12937 *** may want to report the problem to your system manager and/or to
12938 *** bug-libtool@gnu.org
12939
12940 _LT_EOF
12941           fi ;;
12942         esac
12943       fi
12944       break
12945     fi
12946   done
12947   IFS="$lt_save_ifs"
12948   MAGIC_CMD="$lt_save_MAGIC_CMD"
12949   ;;
12950 esac
12951 fi
12952
12953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12954 if test -n "$MAGIC_CMD"; then
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12956 $as_echo "$MAGIC_CMD" >&6; }
12957 else
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960 fi
12961
12962
12963
12964
12965
12966 if test -z "$lt_cv_path_MAGIC_CMD"; then
12967   if test -n "$ac_tool_prefix"; then
12968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12969 $as_echo_n "checking for file... " >&6; }
12970 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   case $MAGIC_CMD in
12974 [\\/*] |  ?:[\\/]*)
12975   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12976   ;;
12977 *)
12978   lt_save_MAGIC_CMD="$MAGIC_CMD"
12979   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12980   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12981   for ac_dir in $ac_dummy; do
12982     IFS="$lt_save_ifs"
12983     test -z "$ac_dir" && ac_dir=.
12984     if test -f $ac_dir/file; then
12985       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12986       if test -n "$file_magic_test_file"; then
12987         case $deplibs_check_method in
12988         "file_magic "*)
12989           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12990           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12991           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12992             $EGREP "$file_magic_regex" > /dev/null; then
12993             :
12994           else
12995             cat <<_LT_EOF 1>&2
12996
12997 *** Warning: the command libtool uses to detect shared libraries,
12998 *** $file_magic_cmd, produces output that libtool cannot recognize.
12999 *** The result is that libtool may fail to recognize shared libraries
13000 *** as such.  This will affect the creation of libtool libraries that
13001 *** depend on shared libraries, but programs linked with such libtool
13002 *** libraries will work regardless of this problem.  Nevertheless, you
13003 *** may want to report the problem to your system manager and/or to
13004 *** bug-libtool@gnu.org
13005
13006 _LT_EOF
13007           fi ;;
13008         esac
13009       fi
13010       break
13011     fi
13012   done
13013   IFS="$lt_save_ifs"
13014   MAGIC_CMD="$lt_save_MAGIC_CMD"
13015   ;;
13016 esac
13017 fi
13018
13019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13020 if test -n "$MAGIC_CMD"; then
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13022 $as_echo "$MAGIC_CMD" >&6; }
13023 else
13024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13026 fi
13027
13028
13029   else
13030     MAGIC_CMD=:
13031   fi
13032 fi
13033
13034   fi
13035   ;;
13036 esac
13037
13038 # Use C for the default configuration in the libtool script
13039
13040 lt_save_CC="$CC"
13041 ac_ext=c
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047
13048 # Source file extension for C test sources.
13049 ac_ext=c
13050
13051 # Object file extension for compiled C test sources.
13052 objext=o
13053 objext=$objext
13054
13055 # Code to be used in simple compile tests
13056 lt_simple_compile_test_code="int some_variable = 0;"
13057
13058 # Code to be used in simple link tests
13059 lt_simple_link_test_code='int main(){return(0);}'
13060
13061
13062
13063
13064
13065
13066
13067 # If no C compiler was specified, use CC.
13068 LTCC=${LTCC-"$CC"}
13069
13070 # If no C compiler flags were specified, use CFLAGS.
13071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13072
13073 # Allow CC to be a program name with arguments.
13074 compiler=$CC
13075
13076 # Save the default compiler, since it gets overwritten when the other
13077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13078 compiler_DEFAULT=$CC
13079
13080 # save warnings/boilerplate of simple test code
13081 ac_outfile=conftest.$ac_objext
13082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13084 _lt_compiler_boilerplate=`cat conftest.err`
13085 $RM conftest*
13086
13087 ac_outfile=conftest.$ac_objext
13088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13090 _lt_linker_boilerplate=`cat conftest.err`
13091 $RM -r conftest*
13092
13093
13094 ## CAVEAT EMPTOR:
13095 ## There is no encapsulation within the following macros, do not change
13096 ## the running order or otherwise move them around unless you know exactly
13097 ## what you are doing...
13098 if test -n "$compiler"; then
13099
13100 lt_prog_compiler_no_builtin_flag=
13101
13102 if test "$GCC" = yes; then
13103   case $cc_basename in
13104   nvcc*)
13105     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13106   *)
13107     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13108   esac
13109
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13112 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13113   $as_echo_n "(cached) " >&6
13114 else
13115   lt_cv_prog_compiler_rtti_exceptions=no
13116    ac_outfile=conftest.$ac_objext
13117    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118    lt_compiler_flag="-fno-rtti -fno-exceptions"
13119    # Insert the option either (1) after the last *FLAGS variable, or
13120    # (2) before a word containing "conftest.", or (3) at the end.
13121    # Note that $ac_compile itself does not contain backslashes and begins
13122    # with a dollar sign (not a hyphen), so the echo should work correctly.
13123    # The option is referenced via a variable to avoid confusing sed.
13124    lt_compile=`echo "$ac_compile" | $SED \
13125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127    -e 's:$: $lt_compiler_flag:'`
13128    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13129    (eval "$lt_compile" 2>conftest.err)
13130    ac_status=$?
13131    cat conftest.err >&5
13132    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133    if (exit $ac_status) && test -s "$ac_outfile"; then
13134      # The compiler can only warn and ignore the option if not recognized
13135      # So say no if there are warnings other than the usual output.
13136      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13137      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139        lt_cv_prog_compiler_rtti_exceptions=yes
13140      fi
13141    fi
13142    $RM conftest*
13143
13144 fi
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13147
13148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13149     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13150 else
13151     :
13152 fi
13153
13154 fi
13155
13156
13157
13158
13159
13160
13161   lt_prog_compiler_wl=
13162 lt_prog_compiler_pic=
13163 lt_prog_compiler_static=
13164
13165
13166   if test "$GCC" = yes; then
13167     lt_prog_compiler_wl='-Wl,'
13168     lt_prog_compiler_static='-static'
13169
13170     case $host_os in
13171       aix*)
13172       # All AIX code is PIC.
13173       if test "$host_cpu" = ia64; then
13174         # AIX 5 now supports IA64 processor
13175         lt_prog_compiler_static='-Bstatic'
13176       fi
13177       ;;
13178
13179     amigaos*)
13180       case $host_cpu in
13181       powerpc)
13182             # see comment about AmigaOS4 .so support
13183             lt_prog_compiler_pic='-fPIC'
13184         ;;
13185       m68k)
13186             # FIXME: we need at least 68020 code to build shared libraries, but
13187             # adding the `-m68020' flag to GCC prevents building anything better,
13188             # like `-m68040'.
13189             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13190         ;;
13191       esac
13192       ;;
13193
13194     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195       # PIC is the default for these OSes.
13196       ;;
13197
13198     mingw* | cygwin* | pw32* | os2* | cegcc*)
13199       # This hack is so that the source file can tell whether it is being
13200       # built for inclusion in a dll (and should export symbols for example).
13201       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13202       # (--disable-auto-import) libraries
13203       lt_prog_compiler_pic='-DDLL_EXPORT'
13204       ;;
13205
13206     darwin* | rhapsody*)
13207       # PIC is the default on this platform
13208       # Common symbols not allowed in MH_DYLIB files
13209       lt_prog_compiler_pic='-fno-common'
13210       ;;
13211
13212     haiku*)
13213       # PIC is the default for Haiku.
13214       # The "-static" flag exists, but is broken.
13215       lt_prog_compiler_static=
13216       ;;
13217
13218     hpux*)
13219       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13220       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13221       # sets the default TLS model and affects inlining.
13222       case $host_cpu in
13223       hppa*64*)
13224         # +Z the default
13225         ;;
13226       *)
13227         lt_prog_compiler_pic='-fPIC'
13228         ;;
13229       esac
13230       ;;
13231
13232     interix[3-9]*)
13233       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13234       # Instead, we relocate shared libraries at runtime.
13235       ;;
13236
13237     msdosdjgpp*)
13238       # Just because we use GCC doesn't mean we suddenly get shared libraries
13239       # on systems that don't support them.
13240       lt_prog_compiler_can_build_shared=no
13241       enable_shared=no
13242       ;;
13243
13244     *nto* | *qnx*)
13245       # QNX uses GNU C++, but need to define -shared option too, otherwise
13246       # it will coredump.
13247       lt_prog_compiler_pic='-fPIC -shared'
13248       ;;
13249
13250     sysv4*MP*)
13251       if test -d /usr/nec; then
13252         lt_prog_compiler_pic=-Kconform_pic
13253       fi
13254       ;;
13255
13256     *)
13257       lt_prog_compiler_pic='-fPIC'
13258       ;;
13259     esac
13260
13261     case $cc_basename in
13262     nvcc*) # Cuda Compiler Driver 2.2
13263       lt_prog_compiler_wl='-Xlinker '
13264       lt_prog_compiler_pic='-Xcompiler -fPIC'
13265       ;;
13266     esac
13267   else
13268     # PORTME Check for flag to pass linker flags through the system compiler.
13269     case $host_os in
13270     aix*)
13271       lt_prog_compiler_wl='-Wl,'
13272       if test "$host_cpu" = ia64; then
13273         # AIX 5 now supports IA64 processor
13274         lt_prog_compiler_static='-Bstatic'
13275       else
13276         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13277       fi
13278       ;;
13279
13280     mingw* | cygwin* | pw32* | os2* | cegcc*)
13281       # This hack is so that the source file can tell whether it is being
13282       # built for inclusion in a dll (and should export symbols for example).
13283       lt_prog_compiler_pic='-DDLL_EXPORT'
13284       ;;
13285
13286     hpux9* | hpux10* | hpux11*)
13287       lt_prog_compiler_wl='-Wl,'
13288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13289       # not for PA HP-UX.
13290       case $host_cpu in
13291       hppa*64*|ia64*)
13292         # +Z the default
13293         ;;
13294       *)
13295         lt_prog_compiler_pic='+Z'
13296         ;;
13297       esac
13298       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13299       lt_prog_compiler_static='${wl}-a ${wl}archive'
13300       ;;
13301
13302     irix5* | irix6* | nonstopux*)
13303       lt_prog_compiler_wl='-Wl,'
13304       # PIC (with -KPIC) is the default.
13305       lt_prog_compiler_static='-non_shared'
13306       ;;
13307
13308     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13309       case $cc_basename in
13310       # old Intel for x86_64 which still supported -KPIC.
13311       ecc*)
13312         lt_prog_compiler_wl='-Wl,'
13313         lt_prog_compiler_pic='-KPIC'
13314         lt_prog_compiler_static='-static'
13315         ;;
13316       # icc used to be incompatible with GCC.
13317       # ICC 10 doesn't accept -KPIC any more.
13318       icc* | ifort*)
13319         lt_prog_compiler_wl='-Wl,'
13320         lt_prog_compiler_pic='-fPIC'
13321         lt_prog_compiler_static='-static'
13322         ;;
13323       # Lahey Fortran 8.1.
13324       lf95*)
13325         lt_prog_compiler_wl='-Wl,'
13326         lt_prog_compiler_pic='--shared'
13327         lt_prog_compiler_static='--static'
13328         ;;
13329       nagfor*)
13330         # NAG Fortran compiler
13331         lt_prog_compiler_wl='-Wl,-Wl,,'
13332         lt_prog_compiler_pic='-PIC'
13333         lt_prog_compiler_static='-Bstatic'
13334         ;;
13335       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13336         # Portland Group compilers (*not* the Pentium gcc compiler,
13337         # which looks to be a dead project)
13338         lt_prog_compiler_wl='-Wl,'
13339         lt_prog_compiler_pic='-fpic'
13340         lt_prog_compiler_static='-Bstatic'
13341         ;;
13342       ccc*)
13343         lt_prog_compiler_wl='-Wl,'
13344         # All Alpha code is PIC.
13345         lt_prog_compiler_static='-non_shared'
13346         ;;
13347       xl* | bgxl* | bgf* | mpixl*)
13348         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13349         lt_prog_compiler_wl='-Wl,'
13350         lt_prog_compiler_pic='-qpic'
13351         lt_prog_compiler_static='-qstaticlink'
13352         ;;
13353       *)
13354         case `$CC -V 2>&1 | sed 5q` in
13355         *Sun\ F* | *Sun*Fortran*)
13356           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13357           lt_prog_compiler_pic='-KPIC'
13358           lt_prog_compiler_static='-Bstatic'
13359           lt_prog_compiler_wl=''
13360           ;;
13361         *Sun\ C*)
13362           # Sun C 5.9
13363           lt_prog_compiler_pic='-KPIC'
13364           lt_prog_compiler_static='-Bstatic'
13365           lt_prog_compiler_wl='-Wl,'
13366           ;;
13367         esac
13368         ;;
13369       esac
13370       ;;
13371
13372     newsos6)
13373       lt_prog_compiler_pic='-KPIC'
13374       lt_prog_compiler_static='-Bstatic'
13375       ;;
13376
13377     *nto* | *qnx*)
13378       # QNX uses GNU C++, but need to define -shared option too, otherwise
13379       # it will coredump.
13380       lt_prog_compiler_pic='-fPIC -shared'
13381       ;;
13382
13383     osf3* | osf4* | osf5*)
13384       lt_prog_compiler_wl='-Wl,'
13385       # All OSF/1 code is PIC.
13386       lt_prog_compiler_static='-non_shared'
13387       ;;
13388
13389     rdos*)
13390       lt_prog_compiler_static='-non_shared'
13391       ;;
13392
13393     solaris*)
13394       lt_prog_compiler_pic='-KPIC'
13395       lt_prog_compiler_static='-Bstatic'
13396       case $cc_basename in
13397       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13398         lt_prog_compiler_wl='-Qoption ld ';;
13399       *)
13400         lt_prog_compiler_wl='-Wl,';;
13401       esac
13402       ;;
13403
13404     sunos4*)
13405       lt_prog_compiler_wl='-Qoption ld '
13406       lt_prog_compiler_pic='-PIC'
13407       lt_prog_compiler_static='-Bstatic'
13408       ;;
13409
13410     sysv4 | sysv4.2uw2* | sysv4.3*)
13411       lt_prog_compiler_wl='-Wl,'
13412       lt_prog_compiler_pic='-KPIC'
13413       lt_prog_compiler_static='-Bstatic'
13414       ;;
13415
13416     sysv4*MP*)
13417       if test -d /usr/nec ;then
13418         lt_prog_compiler_pic='-Kconform_pic'
13419         lt_prog_compiler_static='-Bstatic'
13420       fi
13421       ;;
13422
13423     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13424       lt_prog_compiler_wl='-Wl,'
13425       lt_prog_compiler_pic='-KPIC'
13426       lt_prog_compiler_static='-Bstatic'
13427       ;;
13428
13429     unicos*)
13430       lt_prog_compiler_wl='-Wl,'
13431       lt_prog_compiler_can_build_shared=no
13432       ;;
13433
13434     uts4*)
13435       lt_prog_compiler_pic='-pic'
13436       lt_prog_compiler_static='-Bstatic'
13437       ;;
13438
13439     *)
13440       lt_prog_compiler_can_build_shared=no
13441       ;;
13442     esac
13443   fi
13444
13445 case $host_os in
13446   # For platforms which do not support PIC, -DPIC is meaningless:
13447   *djgpp*)
13448     lt_prog_compiler_pic=
13449     ;;
13450   *)
13451     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13452     ;;
13453 esac
13454
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13456 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13457 if ${lt_cv_prog_compiler_pic+:} false; then :
13458   $as_echo_n "(cached) " >&6
13459 else
13460   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13463 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13464 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13465
13466 #
13467 # Check to make sure the PIC flag actually works.
13468 #
13469 if test -n "$lt_prog_compiler_pic"; then
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13472 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   lt_cv_prog_compiler_pic_works=no
13476    ac_outfile=conftest.$ac_objext
13477    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13478    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13479    # Insert the option either (1) after the last *FLAGS variable, or
13480    # (2) before a word containing "conftest.", or (3) at the end.
13481    # Note that $ac_compile itself does not contain backslashes and begins
13482    # with a dollar sign (not a hyphen), so the echo should work correctly.
13483    # The option is referenced via a variable to avoid confusing sed.
13484    lt_compile=`echo "$ac_compile" | $SED \
13485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487    -e 's:$: $lt_compiler_flag:'`
13488    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13489    (eval "$lt_compile" 2>conftest.err)
13490    ac_status=$?
13491    cat conftest.err >&5
13492    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493    if (exit $ac_status) && test -s "$ac_outfile"; then
13494      # The compiler can only warn and ignore the option if not recognized
13495      # So say no if there are warnings other than the usual output.
13496      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499        lt_cv_prog_compiler_pic_works=yes
13500      fi
13501    fi
13502    $RM conftest*
13503
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13507
13508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13509     case $lt_prog_compiler_pic in
13510      "" | " "*) ;;
13511      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13512      esac
13513 else
13514     lt_prog_compiler_pic=
13515      lt_prog_compiler_can_build_shared=no
13516 fi
13517
13518 fi
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530 #
13531 # Check to make sure the static flag actually works.
13532 #
13533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13536 if ${lt_cv_prog_compiler_static_works+:} false; then :
13537   $as_echo_n "(cached) " >&6
13538 else
13539   lt_cv_prog_compiler_static_works=no
13540    save_LDFLAGS="$LDFLAGS"
13541    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13543    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544      # The linker can only warn and ignore the option if not recognized
13545      # So say no if there are warnings
13546      if test -s conftest.err; then
13547        # Append any errors to the config.log.
13548        cat conftest.err 1>&5
13549        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13550        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551        if diff conftest.exp conftest.er2 >/dev/null; then
13552          lt_cv_prog_compiler_static_works=yes
13553        fi
13554      else
13555        lt_cv_prog_compiler_static_works=yes
13556      fi
13557    fi
13558    $RM -r conftest*
13559    LDFLAGS="$save_LDFLAGS"
13560
13561 fi
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13564
13565 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13566     :
13567 else
13568     lt_prog_compiler_static=
13569 fi
13570
13571
13572
13573
13574
13575
13576
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13579 if ${lt_cv_prog_compiler_c_o+:} false; then :
13580   $as_echo_n "(cached) " >&6
13581 else
13582   lt_cv_prog_compiler_c_o=no
13583    $RM -r conftest 2>/dev/null
13584    mkdir conftest
13585    cd conftest
13586    mkdir out
13587    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589    lt_compiler_flag="-o out/conftest2.$ac_objext"
13590    # Insert the option either (1) after the last *FLAGS variable, or
13591    # (2) before a word containing "conftest.", or (3) at the end.
13592    # Note that $ac_compile itself does not contain backslashes and begins
13593    # with a dollar sign (not a hyphen), so the echo should work correctly.
13594    lt_compile=`echo "$ac_compile" | $SED \
13595    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13597    -e 's:$: $lt_compiler_flag:'`
13598    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13599    (eval "$lt_compile" 2>out/conftest.err)
13600    ac_status=$?
13601    cat out/conftest.err >&5
13602    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13604    then
13605      # The compiler can only warn and ignore the option if not recognized
13606      # So say no if there are warnings
13607      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13608      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13609      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13610        lt_cv_prog_compiler_c_o=yes
13611      fi
13612    fi
13613    chmod u+w . 2>&5
13614    $RM conftest*
13615    # SGI C++ compiler will create directory out/ii_files/ for
13616    # template instantiation
13617    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13618    $RM out/* && rmdir out
13619    cd ..
13620    $RM -r conftest
13621    $RM conftest*
13622
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13626
13627
13628
13629
13630
13631
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13634 if ${lt_cv_prog_compiler_c_o+:} false; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   lt_cv_prog_compiler_c_o=no
13638    $RM -r conftest 2>/dev/null
13639    mkdir conftest
13640    cd conftest
13641    mkdir out
13642    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13643
13644    lt_compiler_flag="-o out/conftest2.$ac_objext"
13645    # Insert the option either (1) after the last *FLAGS variable, or
13646    # (2) before a word containing "conftest.", or (3) at the end.
13647    # Note that $ac_compile itself does not contain backslashes and begins
13648    # with a dollar sign (not a hyphen), so the echo should work correctly.
13649    lt_compile=`echo "$ac_compile" | $SED \
13650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13652    -e 's:$: $lt_compiler_flag:'`
13653    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13654    (eval "$lt_compile" 2>out/conftest.err)
13655    ac_status=$?
13656    cat out/conftest.err >&5
13657    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13659    then
13660      # The compiler can only warn and ignore the option if not recognized
13661      # So say no if there are warnings
13662      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13663      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13664      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13665        lt_cv_prog_compiler_c_o=yes
13666      fi
13667    fi
13668    chmod u+w . 2>&5
13669    $RM conftest*
13670    # SGI C++ compiler will create directory out/ii_files/ for
13671    # template instantiation
13672    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13673    $RM out/* && rmdir out
13674    cd ..
13675    $RM -r conftest
13676    $RM conftest*
13677
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13681
13682
13683
13684
13685 hard_links="nottested"
13686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13687   # do not overwrite the value of need_locks provided by the user
13688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13689 $as_echo_n "checking if we can lock with hard links... " >&6; }
13690   hard_links=yes
13691   $RM conftest*
13692   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13693   touch conftest.a
13694   ln conftest.a conftest.b 2>&5 || hard_links=no
13695   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13697 $as_echo "$hard_links" >&6; }
13698   if test "$hard_links" = no; then
13699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13701     need_locks=warn
13702   fi
13703 else
13704   need_locks=no
13705 fi
13706
13707
13708
13709
13710
13711
13712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714
13715   runpath_var=
13716   allow_undefined_flag=
13717   always_export_symbols=no
13718   archive_cmds=
13719   archive_expsym_cmds=
13720   compiler_needs_object=no
13721   enable_shared_with_static_runtimes=no
13722   export_dynamic_flag_spec=
13723   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13724   hardcode_automatic=no
13725   hardcode_direct=no
13726   hardcode_direct_absolute=no
13727   hardcode_libdir_flag_spec=
13728   hardcode_libdir_flag_spec_ld=
13729   hardcode_libdir_separator=
13730   hardcode_minus_L=no
13731   hardcode_shlibpath_var=unsupported
13732   inherit_rpath=no
13733   link_all_deplibs=unknown
13734   module_cmds=
13735   module_expsym_cmds=
13736   old_archive_from_new_cmds=
13737   old_archive_from_expsyms_cmds=
13738   thread_safe_flag_spec=
13739   whole_archive_flag_spec=
13740   # include_expsyms should be a list of space-separated symbols to be *always*
13741   # included in the symbol list
13742   include_expsyms=
13743   # exclude_expsyms can be an extended regexp of symbols to exclude
13744   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13745   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13746   # as well as any symbol that contains `d'.
13747   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13748   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13749   # platforms (ab)use it in PIC code, but their linkers get confused if
13750   # the symbol is explicitly referenced.  Since portable code cannot
13751   # rely on this symbol name, it's probably fine to never include it in
13752   # preloaded symbol tables.
13753   # Exclude shared library initialization/finalization symbols.
13754   extract_expsyms_cmds=
13755
13756   case $host_os in
13757   cygwin* | mingw* | pw32* | cegcc*)
13758     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13759     # When not using gcc, we currently assume that we are using
13760     # Microsoft Visual C++.
13761     if test "$GCC" != yes; then
13762       with_gnu_ld=no
13763     fi
13764     ;;
13765   interix*)
13766     # we just hope/assume this is gcc and not c89 (= MSVC++)
13767     with_gnu_ld=yes
13768     ;;
13769   openbsd*)
13770     with_gnu_ld=no
13771     ;;
13772   esac
13773
13774   ld_shlibs=yes
13775
13776   # On some targets, GNU ld is compatible enough with the native linker
13777   # that we're better off using the native interface for both.
13778   lt_use_gnu_ld_interface=no
13779   if test "$with_gnu_ld" = yes; then
13780     case $host_os in
13781       aix*)
13782         # The AIX port of GNU ld has always aspired to compatibility
13783         # with the native linker.  However, as the warning in the GNU ld
13784         # block says, versions before 2.19.5* couldn't really create working
13785         # shared libraries, regardless of the interface used.
13786         case `$LD -v 2>&1` in
13787           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13788           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13789           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13790           *)
13791             lt_use_gnu_ld_interface=yes
13792             ;;
13793         esac
13794         ;;
13795       *)
13796         lt_use_gnu_ld_interface=yes
13797         ;;
13798     esac
13799   fi
13800
13801   if test "$lt_use_gnu_ld_interface" = yes; then
13802     # If archive_cmds runs LD, not CC, wlarc should be empty
13803     wlarc='${wl}'
13804
13805     # Set some defaults for GNU ld with shared library support. These
13806     # are reset later if shared libraries are not supported. Putting them
13807     # here allows them to be overridden if necessary.
13808     runpath_var=LD_RUN_PATH
13809     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13810     export_dynamic_flag_spec='${wl}--export-dynamic'
13811     # ancient GNU ld didn't support --whole-archive et. al.
13812     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13813       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13814     else
13815       whole_archive_flag_spec=
13816     fi
13817     supports_anon_versioning=no
13818     case `$LD -v 2>&1` in
13819       *GNU\ gold*) supports_anon_versioning=yes ;;
13820       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13821       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13822       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13823       *\ 2.11.*) ;; # other 2.11 versions
13824       *) supports_anon_versioning=yes ;;
13825     esac
13826
13827     # See if GNU ld supports shared libraries.
13828     case $host_os in
13829     aix[3-9]*)
13830       # On AIX/PPC, the GNU linker is very broken
13831       if test "$host_cpu" != ia64; then
13832         ld_shlibs=no
13833         cat <<_LT_EOF 1>&2
13834
13835 *** Warning: the GNU linker, at least up to release 2.19, is reported
13836 *** to be unable to reliably create shared libraries on AIX.
13837 *** Therefore, libtool is disabling shared libraries support.  If you
13838 *** really care for shared libraries, you may want to install binutils
13839 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13840 *** You will then need to restart the configuration process.
13841
13842 _LT_EOF
13843       fi
13844       ;;
13845
13846     amigaos*)
13847       case $host_cpu in
13848       powerpc)
13849             # see comment about AmigaOS4 .so support
13850             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851             archive_expsym_cmds=''
13852         ;;
13853       m68k)
13854             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)'
13855             hardcode_libdir_flag_spec='-L$libdir'
13856             hardcode_minus_L=yes
13857         ;;
13858       esac
13859       ;;
13860
13861     beos*)
13862       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13863         allow_undefined_flag=unsupported
13864         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13865         # support --undefined.  This deserves some investigation.  FIXME
13866         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867       else
13868         ld_shlibs=no
13869       fi
13870       ;;
13871
13872     cygwin* | mingw* | pw32* | cegcc*)
13873       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13874       # as there is no search path for DLLs.
13875       hardcode_libdir_flag_spec='-L$libdir'
13876       export_dynamic_flag_spec='${wl}--export-all-symbols'
13877       allow_undefined_flag=unsupported
13878       always_export_symbols=no
13879       enable_shared_with_static_runtimes=yes
13880       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13881       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13882
13883       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13885         # If the export-symbols file already is a .def file (1st line
13886         # is EXPORTS), use it as is; otherwise, prepend...
13887         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888           cp $export_symbols $output_objdir/$soname.def;
13889         else
13890           echo EXPORTS > $output_objdir/$soname.def;
13891           cat $export_symbols >> $output_objdir/$soname.def;
13892         fi~
13893         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13894       else
13895         ld_shlibs=no
13896       fi
13897       ;;
13898
13899     haiku*)
13900       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901       link_all_deplibs=yes
13902       ;;
13903
13904     interix[3-9]*)
13905       hardcode_direct=no
13906       hardcode_shlibpath_var=no
13907       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908       export_dynamic_flag_spec='${wl}-E'
13909       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13910       # Instead, shared libraries are loaded at an image base (0x10000000 by
13911       # default) and relocated if they conflict, which is a slow very memory
13912       # consuming and fragmenting process.  To avoid this, we pick a random,
13913       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13914       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13915       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13916       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'
13917       ;;
13918
13919     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13920       tmp_diet=no
13921       if test "$host_os" = linux-dietlibc; then
13922         case $cc_basename in
13923           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13924         esac
13925       fi
13926       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13927          && test "$tmp_diet" = no
13928       then
13929         tmp_addflag=' $pic_flag'
13930         tmp_sharedflag='-shared'
13931         case $cc_basename,$host_cpu in
13932         pgcc*)                          # Portland Group C compiler
13933           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'
13934           tmp_addflag=' $pic_flag'
13935           ;;
13936         pgf77* | pgf90* | pgf95* | pgfortran*)
13937                                         # Portland Group f77 and f90 compilers
13938           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'
13939           tmp_addflag=' $pic_flag -Mnomain' ;;
13940         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13941           tmp_addflag=' -i_dynamic' ;;
13942         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13943           tmp_addflag=' -i_dynamic -nofor_main' ;;
13944         ifc* | ifort*)                  # Intel Fortran compiler
13945           tmp_addflag=' -nofor_main' ;;
13946         lf95*)                          # Lahey Fortran 8.1
13947           whole_archive_flag_spec=
13948           tmp_sharedflag='--shared' ;;
13949         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13950           tmp_sharedflag='-qmkshrobj'
13951           tmp_addflag= ;;
13952         nvcc*)  # Cuda Compiler Driver 2.2
13953           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'
13954           compiler_needs_object=yes
13955           ;;
13956         esac
13957         case `$CC -V 2>&1 | sed 5q` in
13958         *Sun\ C*)                       # Sun C 5.9
13959           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'
13960           compiler_needs_object=yes
13961           tmp_sharedflag='-G' ;;
13962         *Sun\ F*)                       # Sun Fortran 8.3
13963           tmp_sharedflag='-G' ;;
13964         esac
13965         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966
13967         if test "x$supports_anon_versioning" = xyes; then
13968           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13969             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13970             echo "local: *; };" >> $output_objdir/$libname.ver~
13971             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13972         fi
13973
13974         case $cc_basename in
13975         xlf* | bgf* | bgxlf* | mpixlf*)
13976           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13977           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13978           hardcode_libdir_flag_spec=
13979           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13980           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13981           if test "x$supports_anon_versioning" = xyes; then
13982             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13983               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984               echo "local: *; };" >> $output_objdir/$libname.ver~
13985               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13986           fi
13987           ;;
13988         esac
13989       else
13990         ld_shlibs=no
13991       fi
13992       ;;
13993
13994     netbsd*)
13995       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13996         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13997         wlarc=
13998       else
13999         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14001       fi
14002       ;;
14003
14004     solaris*)
14005       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14006         ld_shlibs=no
14007         cat <<_LT_EOF 1>&2
14008
14009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14010 *** create shared libraries on Solaris systems.  Therefore, libtool
14011 *** is disabling shared libraries support.  We urge you to upgrade GNU
14012 *** binutils to release 2.9.1 or newer.  Another option is to modify
14013 *** your PATH or compiler configuration so that the native linker is
14014 *** used, and then restart.
14015
14016 _LT_EOF
14017       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14018         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14020       else
14021         ld_shlibs=no
14022       fi
14023       ;;
14024
14025     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14026       case `$LD -v 2>&1` in
14027         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14028         ld_shlibs=no
14029         cat <<_LT_EOF 1>&2
14030
14031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14032 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14033 *** is disabling shared libraries support.  We urge you to upgrade GNU
14034 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14035 *** your PATH or compiler configuration so that the native linker is
14036 *** used, and then restart.
14037
14038 _LT_EOF
14039         ;;
14040         *)
14041           # For security reasons, it is highly recommended that you always
14042           # use absolute paths for naming shared libraries, and exclude the
14043           # DT_RUNPATH tag from executables and libraries.  But doing so
14044           # requires that you compile everything twice, which is a pain.
14045           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14046             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14047             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049           else
14050             ld_shlibs=no
14051           fi
14052         ;;
14053       esac
14054       ;;
14055
14056     sunos4*)
14057       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14058       wlarc=
14059       hardcode_direct=yes
14060       hardcode_shlibpath_var=no
14061       ;;
14062
14063     *)
14064       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14067       else
14068         ld_shlibs=no
14069       fi
14070       ;;
14071     esac
14072
14073     if test "$ld_shlibs" = no; then
14074       runpath_var=
14075       hardcode_libdir_flag_spec=
14076       export_dynamic_flag_spec=
14077       whole_archive_flag_spec=
14078     fi
14079   else
14080     # PORTME fill in a description of your system's linker (not GNU ld)
14081     case $host_os in
14082     aix3*)
14083       allow_undefined_flag=unsupported
14084       always_export_symbols=yes
14085       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'
14086       # Note: this linker hardcodes the directories in LIBPATH if there
14087       # are no directories specified by -L.
14088       hardcode_minus_L=yes
14089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14090         # Neither direct hardcoding nor static linking is supported with a
14091         # broken collect2.
14092         hardcode_direct=unsupported
14093       fi
14094       ;;
14095
14096     aix[4-9]*)
14097       if test "$host_cpu" = ia64; then
14098         # On IA64, the linker does run time linking by default, so we don't
14099         # have to do anything special.
14100         aix_use_runtimelinking=no
14101         exp_sym_flag='-Bexport'
14102         no_entry_flag=""
14103       else
14104         # If we're using GNU nm, then we don't want the "-C" option.
14105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14106         # Also, AIX nm treats weak defined symbols like other global
14107         # defined symbols, whereas GNU nm marks them as "W".
14108         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14109           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'
14110         else
14111           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'
14112         fi
14113         aix_use_runtimelinking=no
14114
14115         # Test if we are trying to use run time linking or normal
14116         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14117         # need to do runtime linking.
14118         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14119           for ld_flag in $LDFLAGS; do
14120           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14121             aix_use_runtimelinking=yes
14122             break
14123           fi
14124           done
14125           ;;
14126         esac
14127
14128         exp_sym_flag='-bexport'
14129         no_entry_flag='-bnoentry'
14130       fi
14131
14132       # When large executables or shared objects are built, AIX ld can
14133       # have problems creating the table of contents.  If linking a library
14134       # or program results in "error TOC overflow" add -mminimal-toc to
14135       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14136       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14137
14138       archive_cmds=''
14139       hardcode_direct=yes
14140       hardcode_direct_absolute=yes
14141       hardcode_libdir_separator=':'
14142       link_all_deplibs=yes
14143       file_list_spec='${wl}-f,'
14144
14145       if test "$GCC" = yes; then
14146         case $host_os in aix4.[012]|aix4.[012].*)
14147         # We only want to do this on AIX 4.2 and lower, the check
14148         # below for broken collect2 doesn't work under 4.3+
14149           collect2name=`${CC} -print-prog-name=collect2`
14150           if test -f "$collect2name" &&
14151            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14152           then
14153           # We have reworked collect2
14154           :
14155           else
14156           # We have old collect2
14157           hardcode_direct=unsupported
14158           # It fails to find uninstalled libraries when the uninstalled
14159           # path is not listed in the libpath.  Setting hardcode_minus_L
14160           # to unsupported forces relinking
14161           hardcode_minus_L=yes
14162           hardcode_libdir_flag_spec='-L$libdir'
14163           hardcode_libdir_separator=
14164           fi
14165           ;;
14166         esac
14167         shared_flag='-shared'
14168         if test "$aix_use_runtimelinking" = yes; then
14169           shared_flag="$shared_flag "'${wl}-G'
14170         fi
14171       else
14172         # not using gcc
14173         if test "$host_cpu" = ia64; then
14174         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14175         # chokes on -Wl,-G. The following line is correct:
14176           shared_flag='-G'
14177         else
14178           if test "$aix_use_runtimelinking" = yes; then
14179             shared_flag='${wl}-G'
14180           else
14181             shared_flag='${wl}-bM:SRE'
14182           fi
14183         fi
14184       fi
14185
14186       export_dynamic_flag_spec='${wl}-bexpall'
14187       # It seems that -bexpall does not export symbols beginning with
14188       # underscore (_), so it is better to generate a list of symbols to export.
14189       always_export_symbols=yes
14190       if test "$aix_use_runtimelinking" = yes; then
14191         # Warning - without using the other runtime loading flags (-brtl),
14192         # -berok will link without error, but may produce a broken library.
14193         allow_undefined_flag='-berok'
14194         # Determine the default libpath from the value encoded in an
14195         # empty executable.
14196         if test "${lt_cv_aix_libpath+set}" = set; then
14197   aix_libpath=$lt_cv_aix_libpath
14198 else
14199   if ${lt_cv_aix_libpath_+:} false; then :
14200   $as_echo_n "(cached) " >&6
14201 else
14202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h.  */
14204
14205 int
14206 main ()
14207 {
14208
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214
14215   lt_aix_libpath_sed='
14216       /Import File Strings/,/^$/ {
14217           /^0/ {
14218               s/^0  *\([^ ]*\) *$/\1/
14219               p
14220           }
14221       }'
14222   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223   # Check for a 64-bit object if we didn't find anything.
14224   if test -z "$lt_cv_aix_libpath_"; then
14225     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14226   fi
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext \
14229     conftest$ac_exeext conftest.$ac_ext
14230   if test -z "$lt_cv_aix_libpath_"; then
14231     lt_cv_aix_libpath_="/usr/lib:/lib"
14232   fi
14233
14234 fi
14235
14236   aix_libpath=$lt_cv_aix_libpath_
14237 fi
14238
14239         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14240         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"
14241       else
14242         if test "$host_cpu" = ia64; then
14243           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14244           allow_undefined_flag="-z nodefs"
14245           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"
14246         else
14247          # Determine the default libpath from the value encoded in an
14248          # empty executable.
14249          if test "${lt_cv_aix_libpath+set}" = set; then
14250   aix_libpath=$lt_cv_aix_libpath
14251 else
14252   if ${lt_cv_aix_libpath_+:} false; then :
14253   $as_echo_n "(cached) " >&6
14254 else
14255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h.  */
14257
14258 int
14259 main ()
14260 {
14261
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_c_try_link "$LINENO"; then :
14267
14268   lt_aix_libpath_sed='
14269       /Import File Strings/,/^$/ {
14270           /^0/ {
14271               s/^0  *\([^ ]*\) *$/\1/
14272               p
14273           }
14274       }'
14275   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276   # Check for a 64-bit object if we didn't find anything.
14277   if test -z "$lt_cv_aix_libpath_"; then
14278     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14279   fi
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282     conftest$ac_exeext conftest.$ac_ext
14283   if test -z "$lt_cv_aix_libpath_"; then
14284     lt_cv_aix_libpath_="/usr/lib:/lib"
14285   fi
14286
14287 fi
14288
14289   aix_libpath=$lt_cv_aix_libpath_
14290 fi
14291
14292          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14293           # Warning - without using the other run time loading flags,
14294           # -berok will link without error, but may produce a broken library.
14295           no_undefined_flag=' ${wl}-bernotok'
14296           allow_undefined_flag=' ${wl}-berok'
14297           if test "$with_gnu_ld" = yes; then
14298             # We only use this code for GNU lds that support --whole-archive.
14299             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14300           else
14301             # Exported symbols can be pulled into shared objects from archives
14302             whole_archive_flag_spec='$convenience'
14303           fi
14304           archive_cmds_need_lc=yes
14305           # This is similar to how AIX traditionally builds its shared libraries.
14306           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'
14307         fi
14308       fi
14309       ;;
14310
14311     amigaos*)
14312       case $host_cpu in
14313       powerpc)
14314             # see comment about AmigaOS4 .so support
14315             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14316             archive_expsym_cmds=''
14317         ;;
14318       m68k)
14319             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)'
14320             hardcode_libdir_flag_spec='-L$libdir'
14321             hardcode_minus_L=yes
14322         ;;
14323       esac
14324       ;;
14325
14326     bsdi[45]*)
14327       export_dynamic_flag_spec=-rdynamic
14328       ;;
14329
14330     cygwin* | mingw* | pw32* | cegcc*)
14331       # When not using gcc, we currently assume that we are using
14332       # Microsoft Visual C++.
14333       # hardcode_libdir_flag_spec is actually meaningless, as there is
14334       # no search path for DLLs.
14335       case $cc_basename in
14336       cl*)
14337         # Native MSVC
14338         hardcode_libdir_flag_spec=' '
14339         allow_undefined_flag=unsupported
14340         always_export_symbols=yes
14341         file_list_spec='@'
14342         # Tell ltmain to make .lib files, not .a files.
14343         libext=lib
14344         # Tell ltmain to make .dll files, not .so files.
14345         shrext_cmds=".dll"
14346         # FIXME: Setting linknames here is a bad hack.
14347         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14348         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14349             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14350           else
14351             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14352           fi~
14353           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14354           linknames='
14355         # The linker will not automatically build a static lib if we build a DLL.
14356         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14357         enable_shared_with_static_runtimes=yes
14358         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14359         # Don't use ranlib
14360         old_postinstall_cmds='chmod 644 $oldlib'
14361         postlink_cmds='lt_outputfile="@OUTPUT@"~
14362           lt_tool_outputfile="@TOOL_OUTPUT@"~
14363           case $lt_outputfile in
14364             *.exe|*.EXE) ;;
14365             *)
14366               lt_outputfile="$lt_outputfile.exe"
14367               lt_tool_outputfile="$lt_tool_outputfile.exe"
14368               ;;
14369           esac~
14370           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14371             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14372             $RM "$lt_outputfile.manifest";
14373           fi'
14374         ;;
14375       *)
14376         # Assume MSVC wrapper
14377         hardcode_libdir_flag_spec=' '
14378         allow_undefined_flag=unsupported
14379         # Tell ltmain to make .lib files, not .a files.
14380         libext=lib
14381         # Tell ltmain to make .dll files, not .so files.
14382         shrext_cmds=".dll"
14383         # FIXME: Setting linknames here is a bad hack.
14384         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14385         # The linker will automatically build a .lib file if we build a DLL.
14386         old_archive_from_new_cmds='true'
14387         # FIXME: Should let the user specify the lib program.
14388         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14389         enable_shared_with_static_runtimes=yes
14390         ;;
14391       esac
14392       ;;
14393
14394     darwin* | rhapsody*)
14395
14396
14397   archive_cmds_need_lc=no
14398   hardcode_direct=no
14399   hardcode_automatic=yes
14400   hardcode_shlibpath_var=unsupported
14401   if test "$lt_cv_ld_force_load" = "yes"; then
14402     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\"`'
14403   else
14404     whole_archive_flag_spec=''
14405   fi
14406   link_all_deplibs=yes
14407   allow_undefined_flag="$_lt_dar_allow_undefined"
14408   case $cc_basename in
14409      ifort*) _lt_dar_can_shared=yes ;;
14410      *) _lt_dar_can_shared=$GCC ;;
14411   esac
14412   if test "$_lt_dar_can_shared" = "yes"; then
14413     output_verbose_link_cmd=func_echo_all
14414     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14415     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14416     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}"
14417     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}"
14418
14419   else
14420   ld_shlibs=no
14421   fi
14422
14423       ;;
14424
14425     dgux*)
14426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427       hardcode_libdir_flag_spec='-L$libdir'
14428       hardcode_shlibpath_var=no
14429       ;;
14430
14431     freebsd1*)
14432       ld_shlibs=no
14433       ;;
14434
14435     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14436     # support.  Future versions do this automatically, but an explicit c++rt0.o
14437     # does not break anything, and helps significantly (at the cost of a little
14438     # extra space).
14439     freebsd2.2*)
14440       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14441       hardcode_libdir_flag_spec='-R$libdir'
14442       hardcode_direct=yes
14443       hardcode_shlibpath_var=no
14444       ;;
14445
14446     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14447     freebsd2*)
14448       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449       hardcode_direct=yes
14450       hardcode_minus_L=yes
14451       hardcode_shlibpath_var=no
14452       ;;
14453
14454     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14455     freebsd* | dragonfly*)
14456       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14457       hardcode_libdir_flag_spec='-R$libdir'
14458       hardcode_direct=yes
14459       hardcode_shlibpath_var=no
14460       ;;
14461
14462     hpux9*)
14463       if test "$GCC" = yes; then
14464         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14465       else
14466         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'
14467       fi
14468       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14469       hardcode_libdir_separator=:
14470       hardcode_direct=yes
14471
14472       # hardcode_minus_L: Not really in the search PATH,
14473       # but as the default location of the library.
14474       hardcode_minus_L=yes
14475       export_dynamic_flag_spec='${wl}-E'
14476       ;;
14477
14478     hpux10*)
14479       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14480         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14481       else
14482         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14483       fi
14484       if test "$with_gnu_ld" = no; then
14485         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14486         hardcode_libdir_flag_spec_ld='+b $libdir'
14487         hardcode_libdir_separator=:
14488         hardcode_direct=yes
14489         hardcode_direct_absolute=yes
14490         export_dynamic_flag_spec='${wl}-E'
14491         # hardcode_minus_L: Not really in the search PATH,
14492         # but as the default location of the library.
14493         hardcode_minus_L=yes
14494       fi
14495       ;;
14496
14497     hpux11*)
14498       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14499         case $host_cpu in
14500         hppa*64*)
14501           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502           ;;
14503         ia64*)
14504           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14505           ;;
14506         *)
14507           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508           ;;
14509         esac
14510       else
14511         case $host_cpu in
14512         hppa*64*)
14513           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14514           ;;
14515         ia64*)
14516           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14517           ;;
14518         *)
14519
14520           # Older versions of the 11.00 compiler do not understand -b yet
14521           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14523 $as_echo_n "checking if $CC understands -b... " >&6; }
14524 if ${lt_cv_prog_compiler__b+:} false; then :
14525   $as_echo_n "(cached) " >&6
14526 else
14527   lt_cv_prog_compiler__b=no
14528    save_LDFLAGS="$LDFLAGS"
14529    LDFLAGS="$LDFLAGS -b"
14530    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14531    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14532      # The linker can only warn and ignore the option if not recognized
14533      # So say no if there are warnings
14534      if test -s conftest.err; then
14535        # Append any errors to the config.log.
14536        cat conftest.err 1>&5
14537        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14538        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539        if diff conftest.exp conftest.er2 >/dev/null; then
14540          lt_cv_prog_compiler__b=yes
14541        fi
14542      else
14543        lt_cv_prog_compiler__b=yes
14544      fi
14545    fi
14546    $RM -r conftest*
14547    LDFLAGS="$save_LDFLAGS"
14548
14549 fi
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14551 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14552
14553 if test x"$lt_cv_prog_compiler__b" = xyes; then
14554     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14555 else
14556     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14557 fi
14558
14559           ;;
14560         esac
14561       fi
14562       if test "$with_gnu_ld" = no; then
14563         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14564         hardcode_libdir_separator=:
14565
14566         case $host_cpu in
14567         hppa*64*|ia64*)
14568           hardcode_direct=no
14569           hardcode_shlibpath_var=no
14570           ;;
14571         *)
14572           hardcode_direct=yes
14573           hardcode_direct_absolute=yes
14574           export_dynamic_flag_spec='${wl}-E'
14575
14576           # hardcode_minus_L: Not really in the search PATH,
14577           # but as the default location of the library.
14578           hardcode_minus_L=yes
14579           ;;
14580         esac
14581       fi
14582       ;;
14583
14584     irix5* | irix6* | nonstopux*)
14585       if test "$GCC" = yes; then
14586         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14587         # Try to use the -exported_symbol ld option, if it does not
14588         # work, assume that -exports_file does not work either and
14589         # implicitly export all symbols.
14590         # This should be the same for all languages, so no per-tag cache variable.
14591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14592 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14593 if ${lt_cv_irix_exported_symbol+:} false; then :
14594   $as_echo_n "(cached) " >&6
14595 else
14596   save_LDFLAGS="$LDFLAGS"
14597            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14598            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h.  */
14600 int foo (void) { return 0; }
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603   lt_cv_irix_exported_symbol=yes
14604 else
14605   lt_cv_irix_exported_symbol=no
14606 fi
14607 rm -f core conftest.err conftest.$ac_objext \
14608     conftest$ac_exeext conftest.$ac_ext
14609            LDFLAGS="$save_LDFLAGS"
14610 fi
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14612 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14613         if test "$lt_cv_irix_exported_symbol" = yes; then
14614           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
14615         fi
14616       else
14617         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'
14618         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'
14619       fi
14620       archive_cmds_need_lc='no'
14621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622       hardcode_libdir_separator=:
14623       inherit_rpath=yes
14624       link_all_deplibs=yes
14625       ;;
14626
14627     netbsd*)
14628       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14629         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14630       else
14631         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14632       fi
14633       hardcode_libdir_flag_spec='-R$libdir'
14634       hardcode_direct=yes
14635       hardcode_shlibpath_var=no
14636       ;;
14637
14638     newsos6)
14639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640       hardcode_direct=yes
14641       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14642       hardcode_libdir_separator=:
14643       hardcode_shlibpath_var=no
14644       ;;
14645
14646     *nto* | *qnx*)
14647       ;;
14648
14649     openbsd*)
14650       if test -f /usr/libexec/ld.so; then
14651         hardcode_direct=yes
14652         hardcode_shlibpath_var=no
14653         hardcode_direct_absolute=yes
14654         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14657           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14658           export_dynamic_flag_spec='${wl}-E'
14659         else
14660           case $host_os in
14661            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14662              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14663              hardcode_libdir_flag_spec='-R$libdir'
14664              ;;
14665            *)
14666              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14667              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14668              ;;
14669           esac
14670         fi
14671       else
14672         ld_shlibs=no
14673       fi
14674       ;;
14675
14676     os2*)
14677       hardcode_libdir_flag_spec='-L$libdir'
14678       hardcode_minus_L=yes
14679       allow_undefined_flag=unsupported
14680       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'
14681       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14682       ;;
14683
14684     osf3*)
14685       if test "$GCC" = yes; then
14686         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14687         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'
14688       else
14689         allow_undefined_flag=' -expect_unresolved \*'
14690         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'
14691       fi
14692       archive_cmds_need_lc='no'
14693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14694       hardcode_libdir_separator=:
14695       ;;
14696
14697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14698       if test "$GCC" = yes; then
14699         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14700         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14701         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14702       else
14703         allow_undefined_flag=' -expect_unresolved \*'
14704         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'
14705         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~
14706         $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'
14707
14708         # Both c and cxx compiler support -rpath directly
14709         hardcode_libdir_flag_spec='-rpath $libdir'
14710       fi
14711       archive_cmds_need_lc='no'
14712       hardcode_libdir_separator=:
14713       ;;
14714
14715     solaris*)
14716       no_undefined_flag=' -z defs'
14717       if test "$GCC" = yes; then
14718         wlarc='${wl}'
14719         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14720         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14721           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14722       else
14723         case `$CC -V 2>&1` in
14724         *"Compilers 5.0"*)
14725           wlarc=''
14726           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14728           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14729           ;;
14730         *)
14731           wlarc='${wl}'
14732           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14733           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14735           ;;
14736         esac
14737       fi
14738       hardcode_libdir_flag_spec='-R$libdir'
14739       hardcode_shlibpath_var=no
14740       case $host_os in
14741       solaris2.[0-5] | solaris2.[0-5].*) ;;
14742       *)
14743         # The compiler driver will combine and reorder linker options,
14744         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14745         # but is careful enough not to reorder.
14746         # Supported since Solaris 2.6 (maybe 2.5.1?)
14747         if test "$GCC" = yes; then
14748           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14749         else
14750           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14751         fi
14752         ;;
14753       esac
14754       link_all_deplibs=yes
14755       ;;
14756
14757     sunos4*)
14758       if test "x$host_vendor" = xsequent; then
14759         # Use $CC to link under sequent, because it throws in some extra .o
14760         # files that make .init and .fini sections work.
14761         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14762       else
14763         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14764       fi
14765       hardcode_libdir_flag_spec='-L$libdir'
14766       hardcode_direct=yes
14767       hardcode_minus_L=yes
14768       hardcode_shlibpath_var=no
14769       ;;
14770
14771     sysv4)
14772       case $host_vendor in
14773         sni)
14774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775           hardcode_direct=yes # is this really true???
14776         ;;
14777         siemens)
14778           ## LD is ld it makes a PLAMLIB
14779           ## CC just makes a GrossModule.
14780           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14781           reload_cmds='$CC -r -o $output$reload_objs'
14782           hardcode_direct=no
14783         ;;
14784         motorola)
14785           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14787         ;;
14788       esac
14789       runpath_var='LD_RUN_PATH'
14790       hardcode_shlibpath_var=no
14791       ;;
14792
14793     sysv4.3*)
14794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14795       hardcode_shlibpath_var=no
14796       export_dynamic_flag_spec='-Bexport'
14797       ;;
14798
14799     sysv4*MP*)
14800       if test -d /usr/nec; then
14801         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802         hardcode_shlibpath_var=no
14803         runpath_var=LD_RUN_PATH
14804         hardcode_runpath_var=yes
14805         ld_shlibs=yes
14806       fi
14807       ;;
14808
14809     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14810       no_undefined_flag='${wl}-z,text'
14811       archive_cmds_need_lc=no
14812       hardcode_shlibpath_var=no
14813       runpath_var='LD_RUN_PATH'
14814
14815       if test "$GCC" = yes; then
14816         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818       else
14819         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821       fi
14822       ;;
14823
14824     sysv5* | sco3.2v5* | sco5v6*)
14825       # Note: We can NOT use -z defs as we might desire, because we do not
14826       # link with -lc, and that would cause any symbols used from libc to
14827       # always be unresolved, which means just about no library would
14828       # ever link correctly.  If we're not using GNU ld we use -z text
14829       # though, which does catch some bad symbols but isn't as heavy-handed
14830       # as -z defs.
14831       no_undefined_flag='${wl}-z,text'
14832       allow_undefined_flag='${wl}-z,nodefs'
14833       archive_cmds_need_lc=no
14834       hardcode_shlibpath_var=no
14835       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14836       hardcode_libdir_separator=':'
14837       link_all_deplibs=yes
14838       export_dynamic_flag_spec='${wl}-Bexport'
14839       runpath_var='LD_RUN_PATH'
14840
14841       if test "$GCC" = yes; then
14842         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844       else
14845         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847       fi
14848       ;;
14849
14850     uts4*)
14851       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852       hardcode_libdir_flag_spec='-L$libdir'
14853       hardcode_shlibpath_var=no
14854       ;;
14855
14856     *)
14857       ld_shlibs=no
14858       ;;
14859     esac
14860
14861     if test x$host_vendor = xsni; then
14862       case $host in
14863       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14864         export_dynamic_flag_spec='${wl}-Blargedynsym'
14865         ;;
14866       esac
14867     fi
14868   fi
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14871 $as_echo "$ld_shlibs" >&6; }
14872 test "$ld_shlibs" = no && can_build_shared=no
14873
14874 with_gnu_ld=$with_gnu_ld
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890 #
14891 # Do we need to explicitly link libc?
14892 #
14893 case "x$archive_cmds_need_lc" in
14894 x|xyes)
14895   # Assume -lc should be added
14896   archive_cmds_need_lc=yes
14897
14898   if test "$enable_shared" = yes && test "$GCC" = yes; then
14899     case $archive_cmds in
14900     *'~'*)
14901       # FIXME: we may have to deal with multi-command sequences.
14902       ;;
14903     '$CC '*)
14904       # Test whether the compiler implicitly links with -lc since on some
14905       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14906       # to ld, don't add -lc before -lgcc.
14907       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14909 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14910   $as_echo_n "(cached) " >&6
14911 else
14912   $RM conftest*
14913         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14914
14915         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14916   (eval $ac_compile) 2>&5
14917   ac_status=$?
14918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919   test $ac_status = 0; } 2>conftest.err; then
14920           soname=conftest
14921           lib=conftest
14922           libobjs=conftest.$ac_objext
14923           deplibs=
14924           wl=$lt_prog_compiler_wl
14925           pic_flag=$lt_prog_compiler_pic
14926           compiler_flags=-v
14927           linker_flags=-v
14928           verstring=
14929           output_objdir=.
14930           libname=conftest
14931           lt_save_allow_undefined_flag=$allow_undefined_flag
14932           allow_undefined_flag=
14933           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14934   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14935   ac_status=$?
14936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937   test $ac_status = 0; }
14938           then
14939             lt_cv_archive_cmds_need_lc=no
14940           else
14941             lt_cv_archive_cmds_need_lc=yes
14942           fi
14943           allow_undefined_flag=$lt_save_allow_undefined_flag
14944         else
14945           cat conftest.err 1>&5
14946         fi
14947         $RM conftest*
14948
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14951 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14952       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14953       ;;
14954     esac
14955   fi
14956   ;;
14957 esac
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15116 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15117
15118 if test "$GCC" = yes; then
15119   case $host_os in
15120     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15121     *) lt_awk_arg="/^libraries:/" ;;
15122   esac
15123   case $host_os in
15124     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15125     *) lt_sed_strip_eq="s,=/,/,g" ;;
15126   esac
15127   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15128   case $lt_search_path_spec in
15129   *\;*)
15130     # if the path contains ";" then we assume it to be the separator
15131     # otherwise default to the standard path separator (i.e. ":") - it is
15132     # assumed that no part of a normal pathname contains ";" but that should
15133     # okay in the real world where ";" in dirpaths is itself problematic.
15134     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15135     ;;
15136   *)
15137     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15138     ;;
15139   esac
15140   # Ok, now we have the path, separated by spaces, we can step through it
15141   # and add multilib dir if necessary.
15142   lt_tmp_lt_search_path_spec=
15143   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15144   for lt_sys_path in $lt_search_path_spec; do
15145     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15146       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15147     else
15148       test -d "$lt_sys_path" && \
15149         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15150     fi
15151   done
15152   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15153 BEGIN {RS=" "; FS="/|\n";} {
15154   lt_foo="";
15155   lt_count=0;
15156   for (lt_i = NF; lt_i > 0; lt_i--) {
15157     if ($lt_i != "" && $lt_i != ".") {
15158       if ($lt_i == "..") {
15159         lt_count++;
15160       } else {
15161         if (lt_count == 0) {
15162           lt_foo="/" $lt_i lt_foo;
15163         } else {
15164           lt_count--;
15165         }
15166       }
15167     }
15168   }
15169   if (lt_foo != "") { lt_freq[lt_foo]++; }
15170   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15171 }'`
15172   # AWK program above erroneously prepends '/' to C:/dos/paths
15173   # for these hosts.
15174   case $host_os in
15175     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15176       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15177   esac
15178   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15179 else
15180   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15181 fi
15182 library_names_spec=
15183 libname_spec='lib$name'
15184 soname_spec=
15185 shrext_cmds=".so"
15186 postinstall_cmds=
15187 postuninstall_cmds=
15188 finish_cmds=
15189 finish_eval=
15190 shlibpath_var=
15191 shlibpath_overrides_runpath=unknown
15192 version_type=none
15193 dynamic_linker="$host_os ld.so"
15194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15195 need_lib_prefix=unknown
15196 hardcode_into_libs=no
15197
15198 # when you set need_version to no, make sure it does not cause -set_version
15199 # flags to be left without arguments
15200 need_version=unknown
15201
15202 case $host_os in
15203 aix3*)
15204   version_type=linux
15205   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15206   shlibpath_var=LIBPATH
15207
15208   # AIX 3 has no versioning support, so we append a major version to the name.
15209   soname_spec='${libname}${release}${shared_ext}$major'
15210   ;;
15211
15212 aix[4-9]*)
15213   version_type=linux
15214   need_lib_prefix=no
15215   need_version=no
15216   hardcode_into_libs=yes
15217   if test "$host_cpu" = ia64; then
15218     # AIX 5 supports IA64
15219     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15220     shlibpath_var=LD_LIBRARY_PATH
15221   else
15222     # With GCC up to 2.95.x, collect2 would create an import file
15223     # for dependence libraries.  The import file would start with
15224     # the line `#! .'.  This would cause the generated library to
15225     # depend on `.', always an invalid library.  This was fixed in
15226     # development snapshots of GCC prior to 3.0.
15227     case $host_os in
15228       aix4 | aix4.[01] | aix4.[01].*)
15229       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15230            echo ' yes '
15231            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15232         :
15233       else
15234         can_build_shared=no
15235       fi
15236       ;;
15237     esac
15238     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15239     # soname into executable. Probably we can add versioning support to
15240     # collect2, so additional links can be useful in future.
15241     if test "$aix_use_runtimelinking" = yes; then
15242       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15243       # instead of lib<name>.a to let people know that these are not
15244       # typical AIX shared libraries.
15245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246     else
15247       # We preserve .a as extension for shared libraries through AIX4.2
15248       # and later when we are not doing run time linking.
15249       library_names_spec='${libname}${release}.a $libname.a'
15250       soname_spec='${libname}${release}${shared_ext}$major'
15251     fi
15252     shlibpath_var=LIBPATH
15253   fi
15254   ;;
15255
15256 amigaos*)
15257   case $host_cpu in
15258   powerpc)
15259     # Since July 2007 AmigaOS4 officially supports .so libraries.
15260     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262     ;;
15263   m68k)
15264     library_names_spec='$libname.ixlibrary $libname.a'
15265     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15266     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'
15267     ;;
15268   esac
15269   ;;
15270
15271 beos*)
15272   library_names_spec='${libname}${shared_ext}'
15273   dynamic_linker="$host_os ld.so"
15274   shlibpath_var=LIBRARY_PATH
15275   ;;
15276
15277 bsdi[45]*)
15278   version_type=linux
15279   need_version=no
15280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281   soname_spec='${libname}${release}${shared_ext}$major'
15282   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15283   shlibpath_var=LD_LIBRARY_PATH
15284   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15285   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15286   # the default ld.so.conf also contains /usr/contrib/lib and
15287   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15288   # libtool to hard-code these into programs
15289   ;;
15290
15291 cygwin* | mingw* | pw32* | cegcc*)
15292   version_type=windows
15293   shrext_cmds=".dll"
15294   need_version=no
15295   need_lib_prefix=no
15296
15297   case $GCC,$cc_basename in
15298   yes,*)
15299     # gcc
15300     library_names_spec='$libname.dll.a'
15301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302     postinstall_cmds='base_file=`basename \${file}`~
15303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15304       dldir=$destdir/`dirname \$dlpath`~
15305       test -d \$dldir || mkdir -p \$dldir~
15306       $install_prog $dir/$dlname \$dldir/$dlname~
15307       chmod a+x \$dldir/$dlname~
15308       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15309         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15310       fi'
15311     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15312       dlpath=$dir/\$dldll~
15313        $RM \$dlpath'
15314     shlibpath_overrides_runpath=yes
15315
15316     case $host_os in
15317     cygwin*)
15318       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15319       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320
15321       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15322       ;;
15323     mingw* | cegcc*)
15324       # MinGW DLLs use traditional 'lib' prefix
15325       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15326       ;;
15327     pw32*)
15328       # pw32 DLLs use 'pw' prefix rather than 'lib'
15329       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330       ;;
15331     esac
15332     dynamic_linker='Win32 ld.exe'
15333     ;;
15334
15335   *,cl*)
15336     # Native MSVC
15337     libname_spec='$name'
15338     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339     library_names_spec='${libname}.dll.lib'
15340
15341     case $build_os in
15342     mingw*)
15343       sys_lib_search_path_spec=
15344       lt_save_ifs=$IFS
15345       IFS=';'
15346       for lt_path in $LIB
15347       do
15348         IFS=$lt_save_ifs
15349         # Let DOS variable expansion print the short 8.3 style file name.
15350         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15351         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15352       done
15353       IFS=$lt_save_ifs
15354       # Convert to MSYS style.
15355       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15356       ;;
15357     cygwin*)
15358       # Convert to unix form, then to dos form, then back to unix form
15359       # but this time dos style (no spaces!) so that the unix form looks
15360       # like /cygdrive/c/PROGRA~1:/cygdr...
15361       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15362       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15363       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15364       ;;
15365     *)
15366       sys_lib_search_path_spec="$LIB"
15367       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15368         # It is most probably a Windows format PATH.
15369         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15370       else
15371         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15372       fi
15373       # FIXME: find the short name or the path components, as spaces are
15374       # common. (e.g. "Program Files" -> "PROGRA~1")
15375       ;;
15376     esac
15377
15378     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379     postinstall_cmds='base_file=`basename \${file}`~
15380       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15381       dldir=$destdir/`dirname \$dlpath`~
15382       test -d \$dldir || mkdir -p \$dldir~
15383       $install_prog $dir/$dlname \$dldir/$dlname'
15384     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15385       dlpath=$dir/\$dldll~
15386        $RM \$dlpath'
15387     shlibpath_overrides_runpath=yes
15388     dynamic_linker='Win32 link.exe'
15389     ;;
15390
15391   *)
15392     # Assume MSVC wrapper
15393     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15394     dynamic_linker='Win32 ld.exe'
15395     ;;
15396   esac
15397   # FIXME: first we should search . and the directory the executable is in
15398   shlibpath_var=PATH
15399   ;;
15400
15401 darwin* | rhapsody*)
15402   dynamic_linker="$host_os dyld"
15403   version_type=darwin
15404   need_lib_prefix=no
15405   need_version=no
15406   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15407   soname_spec='${libname}${release}${major}$shared_ext'
15408   shlibpath_overrides_runpath=yes
15409   shlibpath_var=DYLD_LIBRARY_PATH
15410   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15411
15412   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15413   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15414   ;;
15415
15416 dgux*)
15417   version_type=linux
15418   need_lib_prefix=no
15419   need_version=no
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421   soname_spec='${libname}${release}${shared_ext}$major'
15422   shlibpath_var=LD_LIBRARY_PATH
15423   ;;
15424
15425 freebsd1*)
15426   dynamic_linker=no
15427   ;;
15428
15429 freebsd* | dragonfly*)
15430   # DragonFly does not have aout.  When/if they implement a new
15431   # versioning mechanism, adjust this.
15432   if test -x /usr/bin/objformat; then
15433     objformat=`/usr/bin/objformat`
15434   else
15435     case $host_os in
15436     freebsd[123]*) objformat=aout ;;
15437     *) objformat=elf ;;
15438     esac
15439   fi
15440   version_type=freebsd-$objformat
15441   case $version_type in
15442     freebsd-elf*)
15443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444       need_version=no
15445       need_lib_prefix=no
15446       ;;
15447     freebsd-*)
15448       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449       need_version=yes
15450       ;;
15451   esac
15452   shlibpath_var=LD_LIBRARY_PATH
15453   case $host_os in
15454   freebsd2*)
15455     shlibpath_overrides_runpath=yes
15456     ;;
15457   freebsd3.[01]* | freebsdelf3.[01]*)
15458     shlibpath_overrides_runpath=yes
15459     hardcode_into_libs=yes
15460     ;;
15461   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463     shlibpath_overrides_runpath=no
15464     hardcode_into_libs=yes
15465     ;;
15466   *) # from 4.6 on, and DragonFly
15467     shlibpath_overrides_runpath=yes
15468     hardcode_into_libs=yes
15469     ;;
15470   esac
15471   ;;
15472
15473 gnu*)
15474   version_type=linux
15475   need_lib_prefix=no
15476   need_version=no
15477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478   soname_spec='${libname}${release}${shared_ext}$major'
15479   shlibpath_var=LD_LIBRARY_PATH
15480   hardcode_into_libs=yes
15481   ;;
15482
15483 haiku*)
15484   version_type=linux
15485   need_lib_prefix=no
15486   need_version=no
15487   dynamic_linker="$host_os runtime_loader"
15488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15489   soname_spec='${libname}${release}${shared_ext}$major'
15490   shlibpath_var=LIBRARY_PATH
15491   shlibpath_overrides_runpath=yes
15492   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15493   hardcode_into_libs=yes
15494   ;;
15495
15496 hpux9* | hpux10* | hpux11*)
15497   # Give a soname corresponding to the major version so that dld.sl refuses to
15498   # link against other versions.
15499   version_type=sunos
15500   need_lib_prefix=no
15501   need_version=no
15502   case $host_cpu in
15503   ia64*)
15504     shrext_cmds='.so'
15505     hardcode_into_libs=yes
15506     dynamic_linker="$host_os dld.so"
15507     shlibpath_var=LD_LIBRARY_PATH
15508     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510     soname_spec='${libname}${release}${shared_ext}$major'
15511     if test "X$HPUX_IA64_MODE" = X32; then
15512       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15513     else
15514       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15515     fi
15516     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15517     ;;
15518   hppa*64*)
15519     shrext_cmds='.sl'
15520     hardcode_into_libs=yes
15521     dynamic_linker="$host_os dld.sl"
15522     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15523     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525     soname_spec='${libname}${release}${shared_ext}$major'
15526     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15527     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528     ;;
15529   *)
15530     shrext_cmds='.sl'
15531     dynamic_linker="$host_os dld.sl"
15532     shlibpath_var=SHLIB_PATH
15533     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535     soname_spec='${libname}${release}${shared_ext}$major'
15536     ;;
15537   esac
15538   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15539   postinstall_cmds='chmod 555 $lib'
15540   # or fails outright, so override atomically:
15541   install_override_mode=555
15542   ;;
15543
15544 interix[3-9]*)
15545   version_type=linux
15546   need_lib_prefix=no
15547   need_version=no
15548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549   soname_spec='${libname}${release}${shared_ext}$major'
15550   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551   shlibpath_var=LD_LIBRARY_PATH
15552   shlibpath_overrides_runpath=no
15553   hardcode_into_libs=yes
15554   ;;
15555
15556 irix5* | irix6* | nonstopux*)
15557   case $host_os in
15558     nonstopux*) version_type=nonstopux ;;
15559     *)
15560         if test "$lt_cv_prog_gnu_ld" = yes; then
15561                 version_type=linux
15562         else
15563                 version_type=irix
15564         fi ;;
15565   esac
15566   need_lib_prefix=no
15567   need_version=no
15568   soname_spec='${libname}${release}${shared_ext}$major'
15569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15570   case $host_os in
15571   irix5* | nonstopux*)
15572     libsuff= shlibsuff=
15573     ;;
15574   *)
15575     case $LD in # libtool.m4 will add one of these switches to LD
15576     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577       libsuff= shlibsuff= libmagic=32-bit;;
15578     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579       libsuff=32 shlibsuff=N32 libmagic=N32;;
15580     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582     *) libsuff= shlibsuff= libmagic=never-match;;
15583     esac
15584     ;;
15585   esac
15586   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587   shlibpath_overrides_runpath=no
15588   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590   hardcode_into_libs=yes
15591   ;;
15592
15593 # No shared lib support for Linux oldld, aout, or coff.
15594 linux*oldld* | linux*aout* | linux*coff*)
15595   dynamic_linker=no
15596   ;;
15597
15598 # This must be Linux ELF.
15599 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15600   version_type=linux
15601   need_lib_prefix=no
15602   need_version=no
15603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604   soname_spec='${libname}${release}${shared_ext}$major'
15605   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606   shlibpath_var=LD_LIBRARY_PATH
15607   shlibpath_overrides_runpath=no
15608
15609   # Some binutils ld are patched to set DT_RUNPATH
15610   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15611   $as_echo_n "(cached) " >&6
15612 else
15613   lt_cv_shlibpath_overrides_runpath=no
15614     save_LDFLAGS=$LDFLAGS
15615     save_libdir=$libdir
15616     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15617          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15618     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h.  */
15620
15621 int
15622 main ()
15623 {
15624
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 if ac_fn_c_try_link "$LINENO"; then :
15630   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15631   lt_cv_shlibpath_overrides_runpath=yes
15632 fi
15633 fi
15634 rm -f core conftest.err conftest.$ac_objext \
15635     conftest$ac_exeext conftest.$ac_ext
15636     LDFLAGS=$save_LDFLAGS
15637     libdir=$save_libdir
15638
15639 fi
15640
15641   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15642
15643   # This implies no fast_install, which is unacceptable.
15644   # Some rework will be needed to allow for fast_install
15645   # before this can be enabled.
15646   hardcode_into_libs=yes
15647
15648   # Add ABI-specific directories to the system library path.
15649   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15650
15651   # Append ld.so.conf contents to the search path
15652   if test -f /etc/ld.so.conf; then
15653     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' ' '`
15654     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15655
15656   fi
15657
15658   # We used to test for /lib/ld.so.1 and disable shared libraries on
15659   # powerpc, because MkLinux only supported shared libraries with the
15660   # GNU dynamic linker.  Since this was broken with cross compilers,
15661   # most powerpc-linux boxes support dynamic linking these days and
15662   # people can always --disable-shared, the test was removed, and we
15663   # assume the GNU/Linux dynamic linker is in use.
15664   dynamic_linker='GNU/Linux ld.so'
15665   ;;
15666
15667 netbsd*)
15668   version_type=sunos
15669   need_lib_prefix=no
15670   need_version=no
15671   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674     dynamic_linker='NetBSD (a.out) ld.so'
15675   else
15676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677     soname_spec='${libname}${release}${shared_ext}$major'
15678     dynamic_linker='NetBSD ld.elf_so'
15679   fi
15680   shlibpath_var=LD_LIBRARY_PATH
15681   shlibpath_overrides_runpath=yes
15682   hardcode_into_libs=yes
15683   ;;
15684
15685 newsos6)
15686   version_type=linux
15687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   shlibpath_overrides_runpath=yes
15690   ;;
15691
15692 *nto* | *qnx*)
15693   version_type=qnx
15694   need_lib_prefix=no
15695   need_version=no
15696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697   soname_spec='${libname}${release}${shared_ext}$major'
15698   shlibpath_var=LD_LIBRARY_PATH
15699   shlibpath_overrides_runpath=no
15700   hardcode_into_libs=yes
15701   dynamic_linker='ldqnx.so'
15702   ;;
15703
15704 openbsd*)
15705   version_type=sunos
15706   sys_lib_dlsearch_path_spec="/usr/lib"
15707   need_lib_prefix=no
15708   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15709   case $host_os in
15710     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15711     *)                          need_version=no  ;;
15712   esac
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15717     case $host_os in
15718       openbsd2.[89] | openbsd2.[89].*)
15719         shlibpath_overrides_runpath=no
15720         ;;
15721       *)
15722         shlibpath_overrides_runpath=yes
15723         ;;
15724       esac
15725   else
15726     shlibpath_overrides_runpath=yes
15727   fi
15728   ;;
15729
15730 os2*)
15731   libname_spec='$name'
15732   shrext_cmds=".dll"
15733   need_lib_prefix=no
15734   library_names_spec='$libname${shared_ext} $libname.a'
15735   dynamic_linker='OS/2 ld.exe'
15736   shlibpath_var=LIBPATH
15737   ;;
15738
15739 osf3* | osf4* | osf5*)
15740   version_type=osf
15741   need_lib_prefix=no
15742   need_version=no
15743   soname_spec='${libname}${release}${shared_ext}$major'
15744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745   shlibpath_var=LD_LIBRARY_PATH
15746   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15747   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15748   ;;
15749
15750 rdos*)
15751   dynamic_linker=no
15752   ;;
15753
15754 solaris*)
15755   version_type=linux
15756   need_lib_prefix=no
15757   need_version=no
15758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759   soname_spec='${libname}${release}${shared_ext}$major'
15760   shlibpath_var=LD_LIBRARY_PATH
15761   shlibpath_overrides_runpath=yes
15762   hardcode_into_libs=yes
15763   # ldd complains unless libraries are executable
15764   postinstall_cmds='chmod +x $lib'
15765   ;;
15766
15767 sunos4*)
15768   version_type=sunos
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15770   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   shlibpath_overrides_runpath=yes
15773   if test "$with_gnu_ld" = yes; then
15774     need_lib_prefix=no
15775   fi
15776   need_version=yes
15777   ;;
15778
15779 sysv4 | sysv4.3*)
15780   version_type=linux
15781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782   soname_spec='${libname}${release}${shared_ext}$major'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   case $host_vendor in
15785     sni)
15786       shlibpath_overrides_runpath=no
15787       need_lib_prefix=no
15788       runpath_var=LD_RUN_PATH
15789       ;;
15790     siemens)
15791       need_lib_prefix=no
15792       ;;
15793     motorola)
15794       need_lib_prefix=no
15795       need_version=no
15796       shlibpath_overrides_runpath=no
15797       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15798       ;;
15799   esac
15800   ;;
15801
15802 sysv4*MP*)
15803   if test -d /usr/nec ;then
15804     version_type=linux
15805     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15806     soname_spec='$libname${shared_ext}.$major'
15807     shlibpath_var=LD_LIBRARY_PATH
15808   fi
15809   ;;
15810
15811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15812   version_type=freebsd-elf
15813   need_lib_prefix=no
15814   need_version=no
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15816   soname_spec='${libname}${release}${shared_ext}$major'
15817   shlibpath_var=LD_LIBRARY_PATH
15818   shlibpath_overrides_runpath=yes
15819   hardcode_into_libs=yes
15820   if test "$with_gnu_ld" = yes; then
15821     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15822   else
15823     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15824     case $host_os in
15825       sco3.2v5*)
15826         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15827         ;;
15828     esac
15829   fi
15830   sys_lib_dlsearch_path_spec='/usr/lib'
15831   ;;
15832
15833 tpf*)
15834   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15835   version_type=linux
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   shlibpath_overrides_runpath=no
15841   hardcode_into_libs=yes
15842   ;;
15843
15844 uts4*)
15845   version_type=linux
15846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847   soname_spec='${libname}${release}${shared_ext}$major'
15848   shlibpath_var=LD_LIBRARY_PATH
15849   ;;
15850
15851 *)
15852   dynamic_linker=no
15853   ;;
15854 esac
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15856 $as_echo "$dynamic_linker" >&6; }
15857 test "$dynamic_linker" = no && can_build_shared=no
15858
15859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860 if test "$GCC" = yes; then
15861   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15862 fi
15863
15864 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15865   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15866 fi
15867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15868   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15869 fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15963 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15964 hardcode_action=
15965 if test -n "$hardcode_libdir_flag_spec" ||
15966    test -n "$runpath_var" ||
15967    test "X$hardcode_automatic" = "Xyes" ; then
15968
15969   # We can hardcode non-existent directories.
15970   if test "$hardcode_direct" != no &&
15971      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15972      # have to relink, otherwise we might link with an installed library
15973      # when we should be linking with a yet-to-be-installed one
15974      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15975      test "$hardcode_minus_L" != no; then
15976     # Linking always hardcodes the temporary library directory.
15977     hardcode_action=relink
15978   else
15979     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15980     hardcode_action=immediate
15981   fi
15982 else
15983   # We cannot hardcode anything, or else we can only hardcode existing
15984   # directories.
15985   hardcode_action=unsupported
15986 fi
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15988 $as_echo "$hardcode_action" >&6; }
15989
15990 if test "$hardcode_action" = relink ||
15991    test "$inherit_rpath" = yes; then
15992   # Fast installation is not supported
15993   enable_fast_install=no
15994 elif test "$shlibpath_overrides_runpath" = yes ||
15995      test "$enable_shared" = no; then
15996   # Fast installation is not necessary
15997   enable_fast_install=needless
15998 fi
15999
16000
16001
16002
16003
16004
16005   if test "x$enable_dlopen" != xyes; then
16006   enable_dlopen=unknown
16007   enable_dlopen_self=unknown
16008   enable_dlopen_self_static=unknown
16009 else
16010   lt_cv_dlopen=no
16011   lt_cv_dlopen_libs=
16012
16013   case $host_os in
16014   beos*)
16015     lt_cv_dlopen="load_add_on"
16016     lt_cv_dlopen_libs=
16017     lt_cv_dlopen_self=yes
16018     ;;
16019
16020   mingw* | pw32* | cegcc*)
16021     lt_cv_dlopen="LoadLibrary"
16022     lt_cv_dlopen_libs=
16023     ;;
16024
16025   cygwin*)
16026     lt_cv_dlopen="dlopen"
16027     lt_cv_dlopen_libs=
16028     ;;
16029
16030   darwin*)
16031   # if libdl is installed we need to link against it
16032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16034 if ${ac_cv_lib_dl_dlopen+:} false; then :
16035   $as_echo_n "(cached) " >&6
16036 else
16037   ac_check_lib_save_LIBS=$LIBS
16038 LIBS="-ldl  $LIBS"
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h.  */
16041
16042 /* Override any GCC internal prototype to avoid an error.
16043    Use char because int might match the return type of a GCC
16044    builtin and then its argument prototype would still apply.  */
16045 #ifdef __cplusplus
16046 extern "C"
16047 #endif
16048 char dlopen ();
16049 int
16050 main ()
16051 {
16052 return dlopen ();
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_c_try_link "$LINENO"; then :
16058   ac_cv_lib_dl_dlopen=yes
16059 else
16060   ac_cv_lib_dl_dlopen=no
16061 fi
16062 rm -f core conftest.err conftest.$ac_objext \
16063     conftest$ac_exeext conftest.$ac_ext
16064 LIBS=$ac_check_lib_save_LIBS
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16069   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16070 else
16071
16072     lt_cv_dlopen="dyld"
16073     lt_cv_dlopen_libs=
16074     lt_cv_dlopen_self=yes
16075
16076 fi
16077
16078     ;;
16079
16080   *)
16081     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16082 if test "x$ac_cv_func_shl_load" = xyes; then :
16083   lt_cv_dlopen="shl_load"
16084 else
16085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16087 if ${ac_cv_lib_dld_shl_load+:} false; then :
16088   $as_echo_n "(cached) " >&6
16089 else
16090   ac_check_lib_save_LIBS=$LIBS
16091 LIBS="-ldld  $LIBS"
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h.  */
16094
16095 /* Override any GCC internal prototype to avoid an error.
16096    Use char because int might match the return type of a GCC
16097    builtin and then its argument prototype would still apply.  */
16098 #ifdef __cplusplus
16099 extern "C"
16100 #endif
16101 char shl_load ();
16102 int
16103 main ()
16104 {
16105 return shl_load ();
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 if ac_fn_c_try_link "$LINENO"; then :
16111   ac_cv_lib_dld_shl_load=yes
16112 else
16113   ac_cv_lib_dld_shl_load=no
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext \
16116     conftest$ac_exeext conftest.$ac_ext
16117 LIBS=$ac_check_lib_save_LIBS
16118 fi
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16122   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16123 else
16124   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16125 if test "x$ac_cv_func_dlopen" = xyes; then :
16126   lt_cv_dlopen="dlopen"
16127 else
16128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16130 if ${ac_cv_lib_dl_dlopen+:} false; then :
16131   $as_echo_n "(cached) " >&6
16132 else
16133   ac_check_lib_save_LIBS=$LIBS
16134 LIBS="-ldl  $LIBS"
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h.  */
16137
16138 /* Override any GCC internal prototype to avoid an error.
16139    Use char because int might match the return type of a GCC
16140    builtin and then its argument prototype would still apply.  */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char dlopen ();
16145 int
16146 main ()
16147 {
16148 return dlopen ();
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 if ac_fn_c_try_link "$LINENO"; then :
16154   ac_cv_lib_dl_dlopen=yes
16155 else
16156   ac_cv_lib_dl_dlopen=no
16157 fi
16158 rm -f core conftest.err conftest.$ac_objext \
16159     conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16161 fi
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16165   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16166 else
16167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16169 if ${ac_cv_lib_svld_dlopen+:} false; then :
16170   $as_echo_n "(cached) " >&6
16171 else
16172   ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lsvld  $LIBS"
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h.  */
16176
16177 /* Override any GCC internal prototype to avoid an error.
16178    Use char because int might match the return type of a GCC
16179    builtin and then its argument prototype would still apply.  */
16180 #ifdef __cplusplus
16181 extern "C"
16182 #endif
16183 char dlopen ();
16184 int
16185 main ()
16186 {
16187 return dlopen ();
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"; then :
16193   ac_cv_lib_svld_dlopen=yes
16194 else
16195   ac_cv_lib_svld_dlopen=no
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext \
16198     conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16204   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16205 else
16206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16208 if ${ac_cv_lib_dld_dld_link+:} false; then :
16209   $as_echo_n "(cached) " >&6
16210 else
16211   ac_check_lib_save_LIBS=$LIBS
16212 LIBS="-ldld  $LIBS"
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h.  */
16215
16216 /* Override any GCC internal prototype to avoid an error.
16217    Use char because int might match the return type of a GCC
16218    builtin and then its argument prototype would still apply.  */
16219 #ifdef __cplusplus
16220 extern "C"
16221 #endif
16222 char dld_link ();
16223 int
16224 main ()
16225 {
16226 return dld_link ();
16227   ;
16228   return 0;
16229 }
16230 _ACEOF
16231 if ac_fn_c_try_link "$LINENO"; then :
16232   ac_cv_lib_dld_dld_link=yes
16233 else
16234   ac_cv_lib_dld_dld_link=no
16235 fi
16236 rm -f core conftest.err conftest.$ac_objext \
16237     conftest$ac_exeext conftest.$ac_ext
16238 LIBS=$ac_check_lib_save_LIBS
16239 fi
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16243   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16244 fi
16245
16246
16247 fi
16248
16249
16250 fi
16251
16252
16253 fi
16254
16255
16256 fi
16257
16258
16259 fi
16260
16261     ;;
16262   esac
16263
16264   if test "x$lt_cv_dlopen" != xno; then
16265     enable_dlopen=yes
16266   else
16267     enable_dlopen=no
16268   fi
16269
16270   case $lt_cv_dlopen in
16271   dlopen)
16272     save_CPPFLAGS="$CPPFLAGS"
16273     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16274
16275     save_LDFLAGS="$LDFLAGS"
16276     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16277
16278     save_LIBS="$LIBS"
16279     LIBS="$lt_cv_dlopen_libs $LIBS"
16280
16281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16283 if ${lt_cv_dlopen_self+:} false; then :
16284   $as_echo_n "(cached) " >&6
16285 else
16286           if test "$cross_compiling" = yes; then :
16287   lt_cv_dlopen_self=cross
16288 else
16289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16290   lt_status=$lt_dlunknown
16291   cat > conftest.$ac_ext <<_LT_EOF
16292 #line $LINENO "configure"
16293 #include "confdefs.h"
16294
16295 #if HAVE_DLFCN_H
16296 #include <dlfcn.h>
16297 #endif
16298
16299 #include <stdio.h>
16300
16301 #ifdef RTLD_GLOBAL
16302 #  define LT_DLGLOBAL           RTLD_GLOBAL
16303 #else
16304 #  ifdef DL_GLOBAL
16305 #    define LT_DLGLOBAL         DL_GLOBAL
16306 #  else
16307 #    define LT_DLGLOBAL         0
16308 #  endif
16309 #endif
16310
16311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16312    find out it does not work in some platform. */
16313 #ifndef LT_DLLAZY_OR_NOW
16314 #  ifdef RTLD_LAZY
16315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16316 #  else
16317 #    ifdef DL_LAZY
16318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16319 #    else
16320 #      ifdef RTLD_NOW
16321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16322 #      else
16323 #        ifdef DL_NOW
16324 #          define LT_DLLAZY_OR_NOW      DL_NOW
16325 #        else
16326 #          define LT_DLLAZY_OR_NOW      0
16327 #        endif
16328 #      endif
16329 #    endif
16330 #  endif
16331 #endif
16332
16333 /* When -fvisbility=hidden is used, assume the code has been annotated
16334    correspondingly for the symbols needed.  */
16335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16336 int fnord () __attribute__((visibility("default")));
16337 #endif
16338
16339 int fnord () { return 42; }
16340 int main ()
16341 {
16342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16343   int status = $lt_dlunknown;
16344
16345   if (self)
16346     {
16347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16348       else
16349         {
16350           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16351           else puts (dlerror ());
16352         }
16353       /* dlclose (self); */
16354     }
16355   else
16356     puts (dlerror ());
16357
16358   return status;
16359 }
16360 _LT_EOF
16361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16362   (eval $ac_link) 2>&5
16363   ac_status=$?
16364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16366     (./conftest; exit; ) >&5 2>/dev/null
16367     lt_status=$?
16368     case x$lt_status in
16369       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16370       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16371       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16372     esac
16373   else :
16374     # compilation failed
16375     lt_cv_dlopen_self=no
16376   fi
16377 fi
16378 rm -fr conftest*
16379
16380
16381 fi
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16383 $as_echo "$lt_cv_dlopen_self" >&6; }
16384
16385     if test "x$lt_cv_dlopen_self" = xyes; then
16386       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16388 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16389 if ${lt_cv_dlopen_self_static+:} false; then :
16390   $as_echo_n "(cached) " >&6
16391 else
16392           if test "$cross_compiling" = yes; then :
16393   lt_cv_dlopen_self_static=cross
16394 else
16395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16396   lt_status=$lt_dlunknown
16397   cat > conftest.$ac_ext <<_LT_EOF
16398 #line $LINENO "configure"
16399 #include "confdefs.h"
16400
16401 #if HAVE_DLFCN_H
16402 #include <dlfcn.h>
16403 #endif
16404
16405 #include <stdio.h>
16406
16407 #ifdef RTLD_GLOBAL
16408 #  define LT_DLGLOBAL           RTLD_GLOBAL
16409 #else
16410 #  ifdef DL_GLOBAL
16411 #    define LT_DLGLOBAL         DL_GLOBAL
16412 #  else
16413 #    define LT_DLGLOBAL         0
16414 #  endif
16415 #endif
16416
16417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16418    find out it does not work in some platform. */
16419 #ifndef LT_DLLAZY_OR_NOW
16420 #  ifdef RTLD_LAZY
16421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16422 #  else
16423 #    ifdef DL_LAZY
16424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16425 #    else
16426 #      ifdef RTLD_NOW
16427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16428 #      else
16429 #        ifdef DL_NOW
16430 #          define LT_DLLAZY_OR_NOW      DL_NOW
16431 #        else
16432 #          define LT_DLLAZY_OR_NOW      0
16433 #        endif
16434 #      endif
16435 #    endif
16436 #  endif
16437 #endif
16438
16439 /* When -fvisbility=hidden is used, assume the code has been annotated
16440    correspondingly for the symbols needed.  */
16441 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16442 int fnord () __attribute__((visibility("default")));
16443 #endif
16444
16445 int fnord () { return 42; }
16446 int main ()
16447 {
16448   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16449   int status = $lt_dlunknown;
16450
16451   if (self)
16452     {
16453       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16454       else
16455         {
16456           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16457           else puts (dlerror ());
16458         }
16459       /* dlclose (self); */
16460     }
16461   else
16462     puts (dlerror ());
16463
16464   return status;
16465 }
16466 _LT_EOF
16467   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16468   (eval $ac_link) 2>&5
16469   ac_status=$?
16470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16472     (./conftest; exit; ) >&5 2>/dev/null
16473     lt_status=$?
16474     case x$lt_status in
16475       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16476       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16477       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16478     esac
16479   else :
16480     # compilation failed
16481     lt_cv_dlopen_self_static=no
16482   fi
16483 fi
16484 rm -fr conftest*
16485
16486
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16489 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16490     fi
16491
16492     CPPFLAGS="$save_CPPFLAGS"
16493     LDFLAGS="$save_LDFLAGS"
16494     LIBS="$save_LIBS"
16495     ;;
16496   esac
16497
16498   case $lt_cv_dlopen_self in
16499   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16500   *) enable_dlopen_self=unknown ;;
16501   esac
16502
16503   case $lt_cv_dlopen_self_static in
16504   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16505   *) enable_dlopen_self_static=unknown ;;
16506   esac
16507 fi
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525 striplib=
16526 old_striplib=
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16528 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16529 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16530   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16531   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533 $as_echo "yes" >&6; }
16534 else
16535 # FIXME - insert some real tests, host_os isn't really good enough
16536   case $host_os in
16537   darwin*)
16538     if test -n "$STRIP" ; then
16539       striplib="$STRIP -x"
16540       old_striplib="$STRIP -S"
16541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542 $as_echo "yes" >&6; }
16543     else
16544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16546     fi
16547     ;;
16548   *)
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16551     ;;
16552   esac
16553 fi
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566   # Report which library types will actually be built
16567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16568 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16570 $as_echo "$can_build_shared" >&6; }
16571
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16573 $as_echo_n "checking whether to build shared libraries... " >&6; }
16574   test "$can_build_shared" = "no" && enable_shared=no
16575
16576   # On AIX, shared libraries and static libraries use the same namespace, and
16577   # are all built from PIC.
16578   case $host_os in
16579   aix3*)
16580     test "$enable_shared" = yes && enable_static=no
16581     if test -n "$RANLIB"; then
16582       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16583       postinstall_cmds='$RANLIB $lib'
16584     fi
16585     ;;
16586
16587   aix[4-9]*)
16588     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16589       test "$enable_shared" = yes && enable_static=no
16590     fi
16591     ;;
16592   esac
16593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16594 $as_echo "$enable_shared" >&6; }
16595
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16597 $as_echo_n "checking whether to build static libraries... " >&6; }
16598   # Make sure either enable_shared or enable_static is yes.
16599   test "$enable_shared" = yes || enable_static=yes
16600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16601 $as_echo "$enable_static" >&6; }
16602
16603
16604
16605
16606 fi
16607 ac_ext=c
16608 ac_cpp='$CPP $CPPFLAGS'
16609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612
16613 CC="$lt_save_CC"
16614
16615       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16616     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16617     (test "X$CXX" != "Xg++"))) ; then
16618   ac_ext=cpp
16619 ac_cpp='$CXXCPP $CPPFLAGS'
16620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16625 if test -z "$CXXCPP"; then
16626   if ${ac_cv_prog_CXXCPP+:} false; then :
16627   $as_echo_n "(cached) " >&6
16628 else
16629       # Double quotes because CXXCPP needs to be expanded
16630     for CXXCPP in "$CXX -E" "/lib/cpp"
16631     do
16632       ac_preproc_ok=false
16633 for ac_cxx_preproc_warn_flag in '' yes
16634 do
16635   # Use a header file that comes with gcc, so configuring glibc
16636   # with a fresh cross-compiler works.
16637   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638   # <limits.h> exists even on freestanding compilers.
16639   # On the NeXT, cc -E runs the code through the compiler's parser,
16640   # not just through cpp. "Syntax error" is here to catch this case.
16641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h.  */
16643 #ifdef __STDC__
16644 # include <limits.h>
16645 #else
16646 # include <assert.h>
16647 #endif
16648                      Syntax error
16649 _ACEOF
16650 if ac_fn_cxx_try_cpp "$LINENO"; then :
16651
16652 else
16653   # Broken: fails on valid input.
16654 continue
16655 fi
16656 rm -f conftest.err conftest.i conftest.$ac_ext
16657
16658   # OK, works on sane cases.  Now check whether nonexistent headers
16659   # can be detected and how.
16660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h.  */
16662 #include <ac_nonexistent.h>
16663 _ACEOF
16664 if ac_fn_cxx_try_cpp "$LINENO"; then :
16665   # Broken: success on invalid input.
16666 continue
16667 else
16668   # Passes both tests.
16669 ac_preproc_ok=:
16670 break
16671 fi
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16673
16674 done
16675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16676 rm -f conftest.i conftest.err conftest.$ac_ext
16677 if $ac_preproc_ok; then :
16678   break
16679 fi
16680
16681     done
16682     ac_cv_prog_CXXCPP=$CXXCPP
16683
16684 fi
16685   CXXCPP=$ac_cv_prog_CXXCPP
16686 else
16687   ac_cv_prog_CXXCPP=$CXXCPP
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16690 $as_echo "$CXXCPP" >&6; }
16691 ac_preproc_ok=false
16692 for ac_cxx_preproc_warn_flag in '' yes
16693 do
16694   # Use a header file that comes with gcc, so configuring glibc
16695   # with a fresh cross-compiler works.
16696   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697   # <limits.h> exists even on freestanding compilers.
16698   # On the NeXT, cc -E runs the code through the compiler's parser,
16699   # not just through cpp. "Syntax error" is here to catch this case.
16700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h.  */
16702 #ifdef __STDC__
16703 # include <limits.h>
16704 #else
16705 # include <assert.h>
16706 #endif
16707                      Syntax error
16708 _ACEOF
16709 if ac_fn_cxx_try_cpp "$LINENO"; then :
16710
16711 else
16712   # Broken: fails on valid input.
16713 continue
16714 fi
16715 rm -f conftest.err conftest.i conftest.$ac_ext
16716
16717   # OK, works on sane cases.  Now check whether nonexistent headers
16718   # can be detected and how.
16719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h.  */
16721 #include <ac_nonexistent.h>
16722 _ACEOF
16723 if ac_fn_cxx_try_cpp "$LINENO"; then :
16724   # Broken: success on invalid input.
16725 continue
16726 else
16727   # Passes both tests.
16728 ac_preproc_ok=:
16729 break
16730 fi
16731 rm -f conftest.err conftest.i conftest.$ac_ext
16732
16733 done
16734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16735 rm -f conftest.i conftest.err conftest.$ac_ext
16736 if $ac_preproc_ok; then :
16737
16738 else
16739   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16741 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16742 See \`config.log' for more details" "$LINENO" 5; }
16743 fi
16744
16745 ac_ext=c
16746 ac_cpp='$CPP $CPPFLAGS'
16747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750
16751 else
16752   _lt_caught_CXX_error=yes
16753 fi
16754
16755 ac_ext=cpp
16756 ac_cpp='$CXXCPP $CPPFLAGS'
16757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16760
16761 archive_cmds_need_lc_CXX=no
16762 allow_undefined_flag_CXX=
16763 always_export_symbols_CXX=no
16764 archive_expsym_cmds_CXX=
16765 compiler_needs_object_CXX=no
16766 export_dynamic_flag_spec_CXX=
16767 hardcode_direct_CXX=no
16768 hardcode_direct_absolute_CXX=no
16769 hardcode_libdir_flag_spec_CXX=
16770 hardcode_libdir_flag_spec_ld_CXX=
16771 hardcode_libdir_separator_CXX=
16772 hardcode_minus_L_CXX=no
16773 hardcode_shlibpath_var_CXX=unsupported
16774 hardcode_automatic_CXX=no
16775 inherit_rpath_CXX=no
16776 module_cmds_CXX=
16777 module_expsym_cmds_CXX=
16778 link_all_deplibs_CXX=unknown
16779 old_archive_cmds_CXX=$old_archive_cmds
16780 reload_flag_CXX=$reload_flag
16781 reload_cmds_CXX=$reload_cmds
16782 no_undefined_flag_CXX=
16783 whole_archive_flag_spec_CXX=
16784 enable_shared_with_static_runtimes_CXX=no
16785
16786 # Source file extension for C++ test sources.
16787 ac_ext=cpp
16788
16789 # Object file extension for compiled C++ test sources.
16790 objext=o
16791 objext_CXX=$objext
16792
16793 # No sense in running all these tests if we already determined that
16794 # the CXX compiler isn't working.  Some variables (like enable_shared)
16795 # are currently assumed to apply to all compilers on this platform,
16796 # and will be corrupted by setting them based on a non-working compiler.
16797 if test "$_lt_caught_CXX_error" != yes; then
16798   # Code to be used in simple compile tests
16799   lt_simple_compile_test_code="int some_variable = 0;"
16800
16801   # Code to be used in simple link tests
16802   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16803
16804   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16805
16806
16807
16808
16809
16810
16811 # If no C compiler was specified, use CC.
16812 LTCC=${LTCC-"$CC"}
16813
16814 # If no C compiler flags were specified, use CFLAGS.
16815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16816
16817 # Allow CC to be a program name with arguments.
16818 compiler=$CC
16819
16820
16821   # save warnings/boilerplate of simple test code
16822   ac_outfile=conftest.$ac_objext
16823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16825 _lt_compiler_boilerplate=`cat conftest.err`
16826 $RM conftest*
16827
16828   ac_outfile=conftest.$ac_objext
16829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16831 _lt_linker_boilerplate=`cat conftest.err`
16832 $RM -r conftest*
16833
16834
16835   # Allow CC to be a program name with arguments.
16836   lt_save_CC=$CC
16837   lt_save_CFLAGS=$CFLAGS
16838   lt_save_LD=$LD
16839   lt_save_GCC=$GCC
16840   GCC=$GXX
16841   lt_save_with_gnu_ld=$with_gnu_ld
16842   lt_save_path_LD=$lt_cv_path_LD
16843   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16844     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16845   else
16846     $as_unset lt_cv_prog_gnu_ld
16847   fi
16848   if test -n "${lt_cv_path_LDCXX+set}"; then
16849     lt_cv_path_LD=$lt_cv_path_LDCXX
16850   else
16851     $as_unset lt_cv_path_LD
16852   fi
16853   test -z "${LDCXX+set}" || LD=$LDCXX
16854   CC=${CXX-"c++"}
16855   CFLAGS=$CXXFLAGS
16856   compiler=$CC
16857   compiler_CXX=$CC
16858   for cc_temp in $compiler""; do
16859   case $cc_temp in
16860     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16861     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16862     \-*) ;;
16863     *) break;;
16864   esac
16865 done
16866 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16867
16868
16869   if test -n "$compiler"; then
16870     # We don't want -fno-exception when compiling C++ code, so set the
16871     # no_builtin_flag separately
16872     if test "$GXX" = yes; then
16873       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16874     else
16875       lt_prog_compiler_no_builtin_flag_CXX=
16876     fi
16877
16878     if test "$GXX" = yes; then
16879       # Set up default GNU C++ configuration
16880
16881
16882
16883 # Check whether --with-gnu-ld was given.
16884 if test "${with_gnu_ld+set}" = set; then :
16885   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16886 else
16887   with_gnu_ld=no
16888 fi
16889
16890 ac_prog=ld
16891 if test "$GCC" = yes; then
16892   # Check if gcc -print-prog-name=ld gives a path.
16893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16894 $as_echo_n "checking for ld used by $CC... " >&6; }
16895   case $host in
16896   *-*-mingw*)
16897     # gcc leaves a trailing carriage return which upsets mingw
16898     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16899   *)
16900     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16901   esac
16902   case $ac_prog in
16903     # Accept absolute paths.
16904     [\\/]* | ?:[\\/]*)
16905       re_direlt='/[^/][^/]*/\.\./'
16906       # Canonicalize the pathname of ld
16907       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16908       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16909         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16910       done
16911       test -z "$LD" && LD="$ac_prog"
16912       ;;
16913   "")
16914     # If it fails, then pretend we aren't using GCC.
16915     ac_prog=ld
16916     ;;
16917   *)
16918     # If it is relative, then search for the first ld in PATH.
16919     with_gnu_ld=unknown
16920     ;;
16921   esac
16922 elif test "$with_gnu_ld" = yes; then
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16924 $as_echo_n "checking for GNU ld... " >&6; }
16925 else
16926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16927 $as_echo_n "checking for non-GNU ld... " >&6; }
16928 fi
16929 if ${lt_cv_path_LD+:} false; then :
16930   $as_echo_n "(cached) " >&6
16931 else
16932   if test -z "$LD"; then
16933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16934   for ac_dir in $PATH; do
16935     IFS="$lt_save_ifs"
16936     test -z "$ac_dir" && ac_dir=.
16937     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16938       lt_cv_path_LD="$ac_dir/$ac_prog"
16939       # Check to see if the program is GNU ld.  I'd rather use --version,
16940       # but apparently some variants of GNU ld only accept -v.
16941       # Break only if it was the GNU/non-GNU ld that we prefer.
16942       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16943       *GNU* | *'with BFD'*)
16944         test "$with_gnu_ld" != no && break
16945         ;;
16946       *)
16947         test "$with_gnu_ld" != yes && break
16948         ;;
16949       esac
16950     fi
16951   done
16952   IFS="$lt_save_ifs"
16953 else
16954   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16955 fi
16956 fi
16957
16958 LD="$lt_cv_path_LD"
16959 if test -n "$LD"; then
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16961 $as_echo "$LD" >&6; }
16962 else
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16965 fi
16966 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16968 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16969 if ${lt_cv_prog_gnu_ld+:} false; then :
16970   $as_echo_n "(cached) " >&6
16971 else
16972   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16973 case `$LD -v 2>&1 </dev/null` in
16974 *GNU* | *'with BFD'*)
16975   lt_cv_prog_gnu_ld=yes
16976   ;;
16977 *)
16978   lt_cv_prog_gnu_ld=no
16979   ;;
16980 esac
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16983 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16984 with_gnu_ld=$lt_cv_prog_gnu_ld
16985
16986
16987
16988
16989
16990
16991
16992       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16993       # archiving commands below assume that GNU ld is being used.
16994       if test "$with_gnu_ld" = yes; then
16995         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16996         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16997
16998         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16999         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17000
17001         # If archive_cmds runs LD, not CC, wlarc should be empty
17002         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17003         #     investigate it a little bit more. (MM)
17004         wlarc='${wl}'
17005
17006         # ancient GNU ld didn't support --whole-archive et. al.
17007         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17008           $GREP 'no-whole-archive' > /dev/null; then
17009           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17010         else
17011           whole_archive_flag_spec_CXX=
17012         fi
17013       else
17014         with_gnu_ld=no
17015         wlarc=
17016
17017         # A generic and very simple default shared library creation
17018         # command for GNU C++ for the case where it uses the native
17019         # linker, instead of GNU ld.  If possible, this setting should
17020         # overridden to take advantage of the native linker features on
17021         # the platform it is being used on.
17022         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17023       fi
17024
17025       # Commands to make compiler produce verbose output that lists
17026       # what "hidden" libraries, object files and flags are used when
17027       # linking a shared library.
17028       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17029
17030     else
17031       GXX=no
17032       with_gnu_ld=no
17033       wlarc=
17034     fi
17035
17036     # PORTME: fill in a description of your system's C++ link characteristics
17037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17039     ld_shlibs_CXX=yes
17040     case $host_os in
17041       aix3*)
17042         # FIXME: insert proper C++ library support
17043         ld_shlibs_CXX=no
17044         ;;
17045       aix[4-9]*)
17046         if test "$host_cpu" = ia64; then
17047           # On IA64, the linker does run time linking by default, so we don't
17048           # have to do anything special.
17049           aix_use_runtimelinking=no
17050           exp_sym_flag='-Bexport'
17051           no_entry_flag=""
17052         else
17053           aix_use_runtimelinking=no
17054
17055           # Test if we are trying to use run time linking or normal
17056           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057           # need to do runtime linking.
17058           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17059             for ld_flag in $LDFLAGS; do
17060               case $ld_flag in
17061               *-brtl*)
17062                 aix_use_runtimelinking=yes
17063                 break
17064                 ;;
17065               esac
17066             done
17067             ;;
17068           esac
17069
17070           exp_sym_flag='-bexport'
17071           no_entry_flag='-bnoentry'
17072         fi
17073
17074         # When large executables or shared objects are built, AIX ld can
17075         # have problems creating the table of contents.  If linking a library
17076         # or program results in "error TOC overflow" add -mminimal-toc to
17077         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17078         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17079
17080         archive_cmds_CXX=''
17081         hardcode_direct_CXX=yes
17082         hardcode_direct_absolute_CXX=yes
17083         hardcode_libdir_separator_CXX=':'
17084         link_all_deplibs_CXX=yes
17085         file_list_spec_CXX='${wl}-f,'
17086
17087         if test "$GXX" = yes; then
17088           case $host_os in aix4.[012]|aix4.[012].*)
17089           # We only want to do this on AIX 4.2 and lower, the check
17090           # below for broken collect2 doesn't work under 4.3+
17091           collect2name=`${CC} -print-prog-name=collect2`
17092           if test -f "$collect2name" &&
17093              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17094           then
17095             # We have reworked collect2
17096             :
17097           else
17098             # We have old collect2
17099             hardcode_direct_CXX=unsupported
17100             # It fails to find uninstalled libraries when the uninstalled
17101             # path is not listed in the libpath.  Setting hardcode_minus_L
17102             # to unsupported forces relinking
17103             hardcode_minus_L_CXX=yes
17104             hardcode_libdir_flag_spec_CXX='-L$libdir'
17105             hardcode_libdir_separator_CXX=
17106           fi
17107           esac
17108           shared_flag='-shared'
17109           if test "$aix_use_runtimelinking" = yes; then
17110             shared_flag="$shared_flag "'${wl}-G'
17111           fi
17112         else
17113           # not using gcc
17114           if test "$host_cpu" = ia64; then
17115           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17116           # chokes on -Wl,-G. The following line is correct:
17117           shared_flag='-G'
17118           else
17119             if test "$aix_use_runtimelinking" = yes; then
17120               shared_flag='${wl}-G'
17121             else
17122               shared_flag='${wl}-bM:SRE'
17123             fi
17124           fi
17125         fi
17126
17127         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17128         # It seems that -bexpall does not export symbols beginning with
17129         # underscore (_), so it is better to generate a list of symbols to
17130         # export.
17131         always_export_symbols_CXX=yes
17132         if test "$aix_use_runtimelinking" = yes; then
17133           # Warning - without using the other runtime loading flags (-brtl),
17134           # -berok will link without error, but may produce a broken library.
17135           allow_undefined_flag_CXX='-berok'
17136           # Determine the default libpath from the value encoded in an empty
17137           # executable.
17138           if test "${lt_cv_aix_libpath+set}" = set; then
17139   aix_libpath=$lt_cv_aix_libpath
17140 else
17141   if ${lt_cv_aix_libpath__CXX+:} false; then :
17142   $as_echo_n "(cached) " >&6
17143 else
17144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h.  */
17146
17147 int
17148 main ()
17149 {
17150
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 if ac_fn_cxx_try_link "$LINENO"; then :
17156
17157   lt_aix_libpath_sed='
17158       /Import File Strings/,/^$/ {
17159           /^0/ {
17160               s/^0  *\([^ ]*\) *$/\1/
17161               p
17162           }
17163       }'
17164   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17165   # Check for a 64-bit object if we didn't find anything.
17166   if test -z "$lt_cv_aix_libpath__CXX"; then
17167     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17168   fi
17169 fi
17170 rm -f core conftest.err conftest.$ac_objext \
17171     conftest$ac_exeext conftest.$ac_ext
17172   if test -z "$lt_cv_aix_libpath__CXX"; then
17173     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17174   fi
17175
17176 fi
17177
17178   aix_libpath=$lt_cv_aix_libpath__CXX
17179 fi
17180
17181           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17182
17183           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"
17184         else
17185           if test "$host_cpu" = ia64; then
17186             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17187             allow_undefined_flag_CXX="-z nodefs"
17188             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"
17189           else
17190             # Determine the default libpath from the value encoded in an
17191             # empty executable.
17192             if test "${lt_cv_aix_libpath+set}" = set; then
17193   aix_libpath=$lt_cv_aix_libpath
17194 else
17195   if ${lt_cv_aix_libpath__CXX+:} false; then :
17196   $as_echo_n "(cached) " >&6
17197 else
17198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h.  */
17200
17201 int
17202 main ()
17203 {
17204
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 if ac_fn_cxx_try_link "$LINENO"; then :
17210
17211   lt_aix_libpath_sed='
17212       /Import File Strings/,/^$/ {
17213           /^0/ {
17214               s/^0  *\([^ ]*\) *$/\1/
17215               p
17216           }
17217       }'
17218   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17219   # Check for a 64-bit object if we didn't find anything.
17220   if test -z "$lt_cv_aix_libpath__CXX"; then
17221     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17222   fi
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext \
17225     conftest$ac_exeext conftest.$ac_ext
17226   if test -z "$lt_cv_aix_libpath__CXX"; then
17227     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17228   fi
17229
17230 fi
17231
17232   aix_libpath=$lt_cv_aix_libpath__CXX
17233 fi
17234
17235             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17236             # Warning - without using the other run time loading flags,
17237             # -berok will link without error, but may produce a broken library.
17238             no_undefined_flag_CXX=' ${wl}-bernotok'
17239             allow_undefined_flag_CXX=' ${wl}-berok'
17240             if test "$with_gnu_ld" = yes; then
17241               # We only use this code for GNU lds that support --whole-archive.
17242               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17243             else
17244               # Exported symbols can be pulled into shared objects from archives
17245               whole_archive_flag_spec_CXX='$convenience'
17246             fi
17247             archive_cmds_need_lc_CXX=yes
17248             # This is similar to how AIX traditionally builds its shared
17249             # libraries.
17250             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'
17251           fi
17252         fi
17253         ;;
17254
17255       beos*)
17256         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17257           allow_undefined_flag_CXX=unsupported
17258           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17259           # support --undefined.  This deserves some investigation.  FIXME
17260           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261         else
17262           ld_shlibs_CXX=no
17263         fi
17264         ;;
17265
17266       chorus*)
17267         case $cc_basename in
17268           *)
17269           # FIXME: insert proper C++ library support
17270           ld_shlibs_CXX=no
17271           ;;
17272         esac
17273         ;;
17274
17275       cygwin* | mingw* | pw32* | cegcc*)
17276         case $GXX,$cc_basename in
17277         ,cl* | no,cl*)
17278           # Native MSVC
17279           # hardcode_libdir_flag_spec is actually meaningless, as there is
17280           # no search path for DLLs.
17281           hardcode_libdir_flag_spec_CXX=' '
17282           allow_undefined_flag_CXX=unsupported
17283           always_export_symbols_CXX=yes
17284           file_list_spec_CXX='@'
17285           # Tell ltmain to make .lib files, not .a files.
17286           libext=lib
17287           # Tell ltmain to make .dll files, not .so files.
17288           shrext_cmds=".dll"
17289           # FIXME: Setting linknames here is a bad hack.
17290           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17291           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17293             else
17294               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17295             fi~
17296             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17297             linknames='
17298           # The linker will not automatically build a static lib if we build a DLL.
17299           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17300           enable_shared_with_static_runtimes_CXX=yes
17301           # Don't use ranlib
17302           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17303           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17304             lt_tool_outputfile="@TOOL_OUTPUT@"~
17305             case $lt_outputfile in
17306               *.exe|*.EXE) ;;
17307               *)
17308                 lt_outputfile="$lt_outputfile.exe"
17309                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17310                 ;;
17311             esac~
17312             func_to_tool_file "$lt_outputfile"~
17313             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17314               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17315               $RM "$lt_outputfile.manifest";
17316             fi'
17317           ;;
17318         *)
17319           # g++
17320           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17321           # as there is no search path for DLLs.
17322           hardcode_libdir_flag_spec_CXX='-L$libdir'
17323           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17324           allow_undefined_flag_CXX=unsupported
17325           always_export_symbols_CXX=no
17326           enable_shared_with_static_runtimes_CXX=yes
17327
17328           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17329             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'
17330             # If the export-symbols file already is a .def file (1st line
17331             # is EXPORTS), use it as is; otherwise, prepend...
17332             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333               cp $export_symbols $output_objdir/$soname.def;
17334             else
17335               echo EXPORTS > $output_objdir/$soname.def;
17336               cat $export_symbols >> $output_objdir/$soname.def;
17337             fi~
17338             $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'
17339           else
17340             ld_shlibs_CXX=no
17341           fi
17342           ;;
17343         esac
17344         ;;
17345       darwin* | rhapsody*)
17346
17347
17348   archive_cmds_need_lc_CXX=no
17349   hardcode_direct_CXX=no
17350   hardcode_automatic_CXX=yes
17351   hardcode_shlibpath_var_CXX=unsupported
17352   if test "$lt_cv_ld_force_load" = "yes"; then
17353     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\"`'
17354   else
17355     whole_archive_flag_spec_CXX=''
17356   fi
17357   link_all_deplibs_CXX=yes
17358   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17359   case $cc_basename in
17360      ifort*) _lt_dar_can_shared=yes ;;
17361      *) _lt_dar_can_shared=$GCC ;;
17362   esac
17363   if test "$_lt_dar_can_shared" = "yes"; then
17364     output_verbose_link_cmd=func_echo_all
17365     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}"
17366     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17367     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}"
17368     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}"
17369        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17370       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}"
17371       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}"
17372     fi
17373
17374   else
17375   ld_shlibs_CXX=no
17376   fi
17377
17378         ;;
17379
17380       dgux*)
17381         case $cc_basename in
17382           ec++*)
17383             # FIXME: insert proper C++ library support
17384             ld_shlibs_CXX=no
17385             ;;
17386           ghcx*)
17387             # Green Hills C++ Compiler
17388             # FIXME: insert proper C++ library support
17389             ld_shlibs_CXX=no
17390             ;;
17391           *)
17392             # FIXME: insert proper C++ library support
17393             ld_shlibs_CXX=no
17394             ;;
17395         esac
17396         ;;
17397
17398       freebsd[12]*)
17399         # C++ shared libraries reported to be fairly broken before
17400         # switch to ELF
17401         ld_shlibs_CXX=no
17402         ;;
17403
17404       freebsd-elf*)
17405         archive_cmds_need_lc_CXX=no
17406         ;;
17407
17408       freebsd* | dragonfly*)
17409         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17410         # conventions
17411         ld_shlibs_CXX=yes
17412         ;;
17413
17414       gnu*)
17415         ;;
17416
17417       haiku*)
17418         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419         link_all_deplibs_CXX=yes
17420         ;;
17421
17422       hpux9*)
17423         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17424         hardcode_libdir_separator_CXX=:
17425         export_dynamic_flag_spec_CXX='${wl}-E'
17426         hardcode_direct_CXX=yes
17427         hardcode_minus_L_CXX=yes # Not in the search PATH,
17428                                              # but as the default
17429                                              # location of the library.
17430
17431         case $cc_basename in
17432           CC*)
17433             # FIXME: insert proper C++ library support
17434             ld_shlibs_CXX=no
17435             ;;
17436           aCC*)
17437             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'
17438             # Commands to make compiler produce verbose output that lists
17439             # what "hidden" libraries, object files and flags are used when
17440             # linking a shared library.
17441             #
17442             # There doesn't appear to be a way to prevent this compiler from
17443             # explicitly linking system object files so we need to strip them
17444             # from the output so that they don't get included in the library
17445             # dependencies.
17446             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"'
17447             ;;
17448           *)
17449             if test "$GXX" = yes; then
17450               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17451             else
17452               # FIXME: insert proper C++ library support
17453               ld_shlibs_CXX=no
17454             fi
17455             ;;
17456         esac
17457         ;;
17458
17459       hpux10*|hpux11*)
17460         if test $with_gnu_ld = no; then
17461           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17462           hardcode_libdir_separator_CXX=:
17463
17464           case $host_cpu in
17465             hppa*64*|ia64*)
17466               ;;
17467             *)
17468               export_dynamic_flag_spec_CXX='${wl}-E'
17469               ;;
17470           esac
17471         fi
17472         case $host_cpu in
17473           hppa*64*|ia64*)
17474             hardcode_direct_CXX=no
17475             hardcode_shlibpath_var_CXX=no
17476             ;;
17477           *)
17478             hardcode_direct_CXX=yes
17479             hardcode_direct_absolute_CXX=yes
17480             hardcode_minus_L_CXX=yes # Not in the search PATH,
17481                                                  # but as the default
17482                                                  # location of the library.
17483             ;;
17484         esac
17485
17486         case $cc_basename in
17487           CC*)
17488             # FIXME: insert proper C++ library support
17489             ld_shlibs_CXX=no
17490             ;;
17491           aCC*)
17492             case $host_cpu in
17493               hppa*64*)
17494                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17495                 ;;
17496               ia64*)
17497                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17498                 ;;
17499               *)
17500                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17501                 ;;
17502             esac
17503             # Commands to make compiler produce verbose output that lists
17504             # what "hidden" libraries, object files and flags are used when
17505             # linking a shared library.
17506             #
17507             # There doesn't appear to be a way to prevent this compiler from
17508             # explicitly linking system object files so we need to strip them
17509             # from the output so that they don't get included in the library
17510             # dependencies.
17511             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"'
17512             ;;
17513           *)
17514             if test "$GXX" = yes; then
17515               if test $with_gnu_ld = no; then
17516                 case $host_cpu in
17517                   hppa*64*)
17518                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17519                     ;;
17520                   ia64*)
17521                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17522                     ;;
17523                   *)
17524                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17525                     ;;
17526                 esac
17527               fi
17528             else
17529               # FIXME: insert proper C++ library support
17530               ld_shlibs_CXX=no
17531             fi
17532             ;;
17533         esac
17534         ;;
17535
17536       interix[3-9]*)
17537         hardcode_direct_CXX=no
17538         hardcode_shlibpath_var_CXX=no
17539         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17540         export_dynamic_flag_spec_CXX='${wl}-E'
17541         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17542         # Instead, shared libraries are loaded at an image base (0x10000000 by
17543         # default) and relocated if they conflict, which is a slow very memory
17544         # consuming and fragmenting process.  To avoid this, we pick a random,
17545         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17546         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17547         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'
17548         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'
17549         ;;
17550       irix5* | irix6*)
17551         case $cc_basename in
17552           CC*)
17553             # SGI C++
17554             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'
17555
17556             # Archives containing C++ object files must be created using
17557             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17558             # necessary to make sure instantiated templates are included
17559             # in the archive.
17560             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17561             ;;
17562           *)
17563             if test "$GXX" = yes; then
17564               if test "$with_gnu_ld" = no; then
17565                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17566               else
17567                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
17568               fi
17569             fi
17570             link_all_deplibs_CXX=yes
17571             ;;
17572         esac
17573         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17574         hardcode_libdir_separator_CXX=:
17575         inherit_rpath_CXX=yes
17576         ;;
17577
17578       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17579         case $cc_basename in
17580           KCC*)
17581             # Kuck and Associates, Inc. (KAI) C++ Compiler
17582
17583             # KCC will only create a shared library if the output file
17584             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17585             # to its proper name (with version) after linking.
17586             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'
17587             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'
17588             # Commands to make compiler produce verbose output that lists
17589             # what "hidden" libraries, object files and flags are used when
17590             # linking a shared library.
17591             #
17592             # There doesn't appear to be a way to prevent this compiler from
17593             # explicitly linking system object files so we need to strip them
17594             # from the output so that they don't get included in the library
17595             # dependencies.
17596             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"'
17597
17598             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17599             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17600
17601             # Archives containing C++ object files must be created using
17602             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17603             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17604             ;;
17605           icpc* | ecpc* )
17606             # Intel C++
17607             with_gnu_ld=yes
17608             # version 8.0 and above of icpc choke on multiply defined symbols
17609             # if we add $predep_objects and $postdep_objects, however 7.1 and
17610             # earlier do not add the objects themselves.
17611             case `$CC -V 2>&1` in
17612               *"Version 7."*)
17613                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614                 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'
17615                 ;;
17616               *)  # Version 8.0 or newer
17617                 tmp_idyn=
17618                 case $host_cpu in
17619                   ia64*) tmp_idyn=' -i_dynamic';;
17620                 esac
17621                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622                 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'
17623                 ;;
17624             esac
17625             archive_cmds_need_lc_CXX=no
17626             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17627             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17628             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17629             ;;
17630           pgCC* | pgcpp*)
17631             # Portland Group C++ compiler
17632             case `$CC -V` in
17633             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17634               prelink_cmds_CXX='tpldir=Template.dir~
17635                 rm -rf $tpldir~
17636                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17637                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17638               old_archive_cmds_CXX='tpldir=Template.dir~
17639                 rm -rf $tpldir~
17640                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17641                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17642                 $RANLIB $oldlib'
17643               archive_cmds_CXX='tpldir=Template.dir~
17644                 rm -rf $tpldir~
17645                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17646                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17647               archive_expsym_cmds_CXX='tpldir=Template.dir~
17648                 rm -rf $tpldir~
17649                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17650                 $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'
17651               ;;
17652             *) # Version 6 and above use weak symbols
17653               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17654               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'
17655               ;;
17656             esac
17657
17658             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17659             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17660             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'
17661             ;;
17662           cxx*)
17663             # Compaq C++
17664             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665             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'
17666
17667             runpath_var=LD_RUN_PATH
17668             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17669             hardcode_libdir_separator_CXX=:
17670
17671             # Commands to make compiler produce verbose output that lists
17672             # what "hidden" libraries, object files and flags are used when
17673             # linking a shared library.
17674             #
17675             # There doesn't appear to be a way to prevent this compiler from
17676             # explicitly linking system object files so we need to strip them
17677             # from the output so that they don't get included in the library
17678             # dependencies.
17679             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'
17680             ;;
17681           xl* | mpixl* | bgxl*)
17682             # IBM XL 8.0 on PPC, with GNU ld
17683             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17684             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17685             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686             if test "x$supports_anon_versioning" = xyes; then
17687               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17688                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17689                 echo "local: *; };" >> $output_objdir/$libname.ver~
17690                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17691             fi
17692             ;;
17693           *)
17694             case `$CC -V 2>&1 | sed 5q` in
17695             *Sun\ C*)
17696               # Sun C++ 5.9
17697               no_undefined_flag_CXX=' -zdefs'
17698               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699               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'
17700               hardcode_libdir_flag_spec_CXX='-R$libdir'
17701               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'
17702               compiler_needs_object_CXX=yes
17703
17704               # Not sure whether something based on
17705               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17706               # would be better.
17707               output_verbose_link_cmd='func_echo_all'
17708
17709               # Archives containing C++ object files must be created using
17710               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17711               # necessary to make sure instantiated templates are included
17712               # in the archive.
17713               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17714               ;;
17715             esac
17716             ;;
17717         esac
17718         ;;
17719
17720       lynxos*)
17721         # FIXME: insert proper C++ library support
17722         ld_shlibs_CXX=no
17723         ;;
17724
17725       m88k*)
17726         # FIXME: insert proper C++ library support
17727         ld_shlibs_CXX=no
17728         ;;
17729
17730       mvs*)
17731         case $cc_basename in
17732           cxx*)
17733             # FIXME: insert proper C++ library support
17734             ld_shlibs_CXX=no
17735             ;;
17736           *)
17737             # FIXME: insert proper C++ library support
17738             ld_shlibs_CXX=no
17739             ;;
17740         esac
17741         ;;
17742
17743       netbsd*)
17744         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17746           wlarc=
17747           hardcode_libdir_flag_spec_CXX='-R$libdir'
17748           hardcode_direct_CXX=yes
17749           hardcode_shlibpath_var_CXX=no
17750         fi
17751         # Workaround some broken pre-1.5 toolchains
17752         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17753         ;;
17754
17755       *nto* | *qnx*)
17756         ld_shlibs_CXX=yes
17757         ;;
17758
17759       openbsd2*)
17760         # C++ shared libraries are fairly broken
17761         ld_shlibs_CXX=no
17762         ;;
17763
17764       openbsd*)
17765         if test -f /usr/libexec/ld.so; then
17766           hardcode_direct_CXX=yes
17767           hardcode_shlibpath_var_CXX=no
17768           hardcode_direct_absolute_CXX=yes
17769           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17770           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17771           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17773             export_dynamic_flag_spec_CXX='${wl}-E'
17774             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17775           fi
17776           output_verbose_link_cmd=func_echo_all
17777         else
17778           ld_shlibs_CXX=no
17779         fi
17780         ;;
17781
17782       osf3* | osf4* | osf5*)
17783         case $cc_basename in
17784           KCC*)
17785             # Kuck and Associates, Inc. (KAI) C++ Compiler
17786
17787             # KCC will only create a shared library if the output file
17788             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17789             # to its proper name (with version) after linking.
17790             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'
17791
17792             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17793             hardcode_libdir_separator_CXX=:
17794
17795             # Archives containing C++ object files must be created using
17796             # the KAI C++ compiler.
17797             case $host in
17798               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17799               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17800             esac
17801             ;;
17802           RCC*)
17803             # Rational C++ 2.4.1
17804             # FIXME: insert proper C++ library support
17805             ld_shlibs_CXX=no
17806             ;;
17807           cxx*)
17808             case $host in
17809               osf3*)
17810                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17811                 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'
17812                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17813                 ;;
17814               *)
17815                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17816                 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'
17817                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17818                   echo "-hidden">> $lib.exp~
17819                   $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~
17820                   $RM $lib.exp'
17821                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17822                 ;;
17823             esac
17824
17825             hardcode_libdir_separator_CXX=:
17826
17827             # Commands to make compiler produce verbose output that lists
17828             # what "hidden" libraries, object files and flags are used when
17829             # linking a shared library.
17830             #
17831             # There doesn't appear to be a way to prevent this compiler from
17832             # explicitly linking system object files so we need to strip them
17833             # from the output so that they don't get included in the library
17834             # dependencies.
17835             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"'
17836             ;;
17837           *)
17838             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17839               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17840               case $host in
17841                 osf3*)
17842                   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'
17843                   ;;
17844                 *)
17845                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17846                   ;;
17847               esac
17848
17849               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17850               hardcode_libdir_separator_CXX=:
17851
17852               # Commands to make compiler produce verbose output that lists
17853               # what "hidden" libraries, object files and flags are used when
17854               # linking a shared library.
17855               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17856
17857             else
17858               # FIXME: insert proper C++ library support
17859               ld_shlibs_CXX=no
17860             fi
17861             ;;
17862         esac
17863         ;;
17864
17865       psos*)
17866         # FIXME: insert proper C++ library support
17867         ld_shlibs_CXX=no
17868         ;;
17869
17870       sunos4*)
17871         case $cc_basename in
17872           CC*)
17873             # Sun C++ 4.x
17874             # FIXME: insert proper C++ library support
17875             ld_shlibs_CXX=no
17876             ;;
17877           lcc*)
17878             # Lucid
17879             # FIXME: insert proper C++ library support
17880             ld_shlibs_CXX=no
17881             ;;
17882           *)
17883             # FIXME: insert proper C++ library support
17884             ld_shlibs_CXX=no
17885             ;;
17886         esac
17887         ;;
17888
17889       solaris*)
17890         case $cc_basename in
17891           CC* | sunCC*)
17892             # Sun C++ 4.2, 5.x and Centerline C++
17893             archive_cmds_need_lc_CXX=yes
17894             no_undefined_flag_CXX=' -zdefs'
17895             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17897               $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'
17898
17899             hardcode_libdir_flag_spec_CXX='-R$libdir'
17900             hardcode_shlibpath_var_CXX=no
17901             case $host_os in
17902               solaris2.[0-5] | solaris2.[0-5].*) ;;
17903               *)
17904                 # The compiler driver will combine and reorder linker options,
17905                 # but understands `-z linker_flag'.
17906                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17908                 ;;
17909             esac
17910             link_all_deplibs_CXX=yes
17911
17912             output_verbose_link_cmd='func_echo_all'
17913
17914             # Archives containing C++ object files must be created using
17915             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17916             # necessary to make sure instantiated templates are included
17917             # in the archive.
17918             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17919             ;;
17920           gcx*)
17921             # Green Hills C++ Compiler
17922             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17923
17924             # The C++ compiler must be used to create the archive.
17925             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17926             ;;
17927           *)
17928             # GNU C++ compiler with Solaris linker
17929             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17930               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17931               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17932                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17933                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17934                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17935
17936                 # Commands to make compiler produce verbose output that lists
17937                 # what "hidden" libraries, object files and flags are used when
17938                 # linking a shared library.
17939                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17940               else
17941                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17942                 # platform.
17943                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17944                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17945                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17946
17947                 # Commands to make compiler produce verbose output that lists
17948                 # what "hidden" libraries, object files and flags are used when
17949                 # linking a shared library.
17950                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17951               fi
17952
17953               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17954               case $host_os in
17955                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17956                 *)
17957                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17958                   ;;
17959               esac
17960             fi
17961             ;;
17962         esac
17963         ;;
17964
17965     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966       no_undefined_flag_CXX='${wl}-z,text'
17967       archive_cmds_need_lc_CXX=no
17968       hardcode_shlibpath_var_CXX=no
17969       runpath_var='LD_RUN_PATH'
17970
17971       case $cc_basename in
17972         CC*)
17973           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975           ;;
17976         *)
17977           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979           ;;
17980       esac
17981       ;;
17982
17983       sysv5* | sco3.2v5* | sco5v6*)
17984         # Note: We can NOT use -z defs as we might desire, because we do not
17985         # link with -lc, and that would cause any symbols used from libc to
17986         # always be unresolved, which means just about no library would
17987         # ever link correctly.  If we're not using GNU ld we use -z text
17988         # though, which does catch some bad symbols but isn't as heavy-handed
17989         # as -z defs.
17990         no_undefined_flag_CXX='${wl}-z,text'
17991         allow_undefined_flag_CXX='${wl}-z,nodefs'
17992         archive_cmds_need_lc_CXX=no
17993         hardcode_shlibpath_var_CXX=no
17994         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17995         hardcode_libdir_separator_CXX=':'
17996         link_all_deplibs_CXX=yes
17997         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17998         runpath_var='LD_RUN_PATH'
17999
18000         case $cc_basename in
18001           CC*)
18002             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18005               '"$old_archive_cmds_CXX"
18006             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18007               '"$reload_cmds_CXX"
18008             ;;
18009           *)
18010             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012             ;;
18013         esac
18014       ;;
18015
18016       tandem*)
18017         case $cc_basename in
18018           NCC*)
18019             # NonStop-UX NCC 3.20
18020             # FIXME: insert proper C++ library support
18021             ld_shlibs_CXX=no
18022             ;;
18023           *)
18024             # FIXME: insert proper C++ library support
18025             ld_shlibs_CXX=no
18026             ;;
18027         esac
18028         ;;
18029
18030       vxworks*)
18031         # FIXME: insert proper C++ library support
18032         ld_shlibs_CXX=no
18033         ;;
18034
18035       *)
18036         # FIXME: insert proper C++ library support
18037         ld_shlibs_CXX=no
18038         ;;
18039     esac
18040
18041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18042 $as_echo "$ld_shlibs_CXX" >&6; }
18043     test "$ld_shlibs_CXX" = no && can_build_shared=no
18044
18045     GCC_CXX="$GXX"
18046     LD_CXX="$LD"
18047
18048     ## CAVEAT EMPTOR:
18049     ## There is no encapsulation within the following macros, do not change
18050     ## the running order or otherwise move them around unless you know exactly
18051     ## what you are doing...
18052     # Dependencies to place before and after the object being linked:
18053 predep_objects_CXX=
18054 postdep_objects_CXX=
18055 predeps_CXX=
18056 postdeps_CXX=
18057 compiler_lib_search_path_CXX=
18058
18059 cat > conftest.$ac_ext <<_LT_EOF
18060 class Foo
18061 {
18062 public:
18063   Foo (void) { a = 0; }
18064 private:
18065   int a;
18066 };
18067 _LT_EOF
18068
18069
18070 _lt_libdeps_save_CFLAGS=$CFLAGS
18071 case "$CC $CFLAGS " in #(
18072 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18073 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18074 esac
18075
18076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18077   (eval $ac_compile) 2>&5
18078   ac_status=$?
18079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080   test $ac_status = 0; }; then
18081   # Parse the compiler output and extract the necessary
18082   # objects, libraries and library flags.
18083
18084   # Sentinel used to keep track of whether or not we are before
18085   # the conftest object file.
18086   pre_test_object_deps_done=no
18087
18088   for p in `eval "$output_verbose_link_cmd"`; do
18089     case ${prev}${p} in
18090
18091     -L* | -R* | -l*)
18092        # Some compilers place space between "-{L,R}" and the path.
18093        # Remove the space.
18094        if test $p = "-L" ||
18095           test $p = "-R"; then
18096          prev=$p
18097          continue
18098        fi
18099
18100        # Expand the sysroot to ease extracting the directories later.
18101        if test -z "$prev"; then
18102          case $p in
18103          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18104          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18105          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18106          esac
18107        fi
18108        case $p in
18109        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18110        esac
18111        if test "$pre_test_object_deps_done" = no; then
18112          case ${prev} in
18113          -L | -R)
18114            # Internal compiler library paths should come after those
18115            # provided the user.  The postdeps already come after the
18116            # user supplied libs so there is no need to process them.
18117            if test -z "$compiler_lib_search_path_CXX"; then
18118              compiler_lib_search_path_CXX="${prev}${p}"
18119            else
18120              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18121            fi
18122            ;;
18123          # The "-l" case would never come before the object being
18124          # linked, so don't bother handling this case.
18125          esac
18126        else
18127          if test -z "$postdeps_CXX"; then
18128            postdeps_CXX="${prev}${p}"
18129          else
18130            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18131          fi
18132        fi
18133        prev=
18134        ;;
18135
18136     *.lto.$objext) ;; # Ignore GCC LTO objects
18137     *.$objext)
18138        # This assumes that the test object file only shows up
18139        # once in the compiler output.
18140        if test "$p" = "conftest.$objext"; then
18141          pre_test_object_deps_done=yes
18142          continue
18143        fi
18144
18145        if test "$pre_test_object_deps_done" = no; then
18146          if test -z "$predep_objects_CXX"; then
18147            predep_objects_CXX="$p"
18148          else
18149            predep_objects_CXX="$predep_objects_CXX $p"
18150          fi
18151        else
18152          if test -z "$postdep_objects_CXX"; then
18153            postdep_objects_CXX="$p"
18154          else
18155            postdep_objects_CXX="$postdep_objects_CXX $p"
18156          fi
18157        fi
18158        ;;
18159
18160     *) ;; # Ignore the rest.
18161
18162     esac
18163   done
18164
18165   # Clean up.
18166   rm -f a.out a.exe
18167 else
18168   echo "libtool.m4: error: problem compiling CXX test program"
18169 fi
18170
18171 $RM -f confest.$objext
18172 CFLAGS=$_lt_libdeps_save_CFLAGS
18173
18174 # PORTME: override above test on systems where it is broken
18175 case $host_os in
18176 interix[3-9]*)
18177   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18178   # hack all around it, let's just trust "g++" to DTRT.
18179   predep_objects_CXX=
18180   postdep_objects_CXX=
18181   postdeps_CXX=
18182   ;;
18183
18184 linux*)
18185   case `$CC -V 2>&1 | sed 5q` in
18186   *Sun\ C*)
18187     # Sun C++ 5.9
18188
18189     # The more standards-conforming stlport4 library is
18190     # incompatible with the Cstd library. Avoid specifying
18191     # it if it's in CXXFLAGS. Ignore libCrun as
18192     # -library=stlport4 depends on it.
18193     case " $CXX $CXXFLAGS " in
18194     *" -library=stlport4 "*)
18195       solaris_use_stlport4=yes
18196       ;;
18197     esac
18198
18199     if test "$solaris_use_stlport4" != yes; then
18200       postdeps_CXX='-library=Cstd -library=Crun'
18201     fi
18202     ;;
18203   esac
18204   ;;
18205
18206 solaris*)
18207   case $cc_basename in
18208   CC* | sunCC*)
18209     # The more standards-conforming stlport4 library is
18210     # incompatible with the Cstd library. Avoid specifying
18211     # it if it's in CXXFLAGS. Ignore libCrun as
18212     # -library=stlport4 depends on it.
18213     case " $CXX $CXXFLAGS " in
18214     *" -library=stlport4 "*)
18215       solaris_use_stlport4=yes
18216       ;;
18217     esac
18218
18219     # Adding this requires a known-good setup of shared libraries for
18220     # Sun compiler versions before 5.6, else PIC objects from an old
18221     # archive will be linked into the output, leading to subtle bugs.
18222     if test "$solaris_use_stlport4" != yes; then
18223       postdeps_CXX='-library=Cstd -library=Crun'
18224     fi
18225     ;;
18226   esac
18227   ;;
18228 esac
18229
18230
18231 case " $postdeps_CXX " in
18232 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18233 esac
18234  compiler_lib_search_dirs_CXX=
18235 if test -n "${compiler_lib_search_path_CXX}"; then
18236  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18237 fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269     lt_prog_compiler_wl_CXX=
18270 lt_prog_compiler_pic_CXX=
18271 lt_prog_compiler_static_CXX=
18272
18273
18274   # C++ specific cases for pic, static, wl, etc.
18275   if test "$GXX" = yes; then
18276     lt_prog_compiler_wl_CXX='-Wl,'
18277     lt_prog_compiler_static_CXX='-static'
18278
18279     case $host_os in
18280     aix*)
18281       # All AIX code is PIC.
18282       if test "$host_cpu" = ia64; then
18283         # AIX 5 now supports IA64 processor
18284         lt_prog_compiler_static_CXX='-Bstatic'
18285       fi
18286       ;;
18287
18288     amigaos*)
18289       case $host_cpu in
18290       powerpc)
18291             # see comment about AmigaOS4 .so support
18292             lt_prog_compiler_pic_CXX='-fPIC'
18293         ;;
18294       m68k)
18295             # FIXME: we need at least 68020 code to build shared libraries, but
18296             # adding the `-m68020' flag to GCC prevents building anything better,
18297             # like `-m68040'.
18298             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18299         ;;
18300       esac
18301       ;;
18302
18303     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18304       # PIC is the default for these OSes.
18305       ;;
18306     mingw* | cygwin* | os2* | pw32* | cegcc*)
18307       # This hack is so that the source file can tell whether it is being
18308       # built for inclusion in a dll (and should export symbols for example).
18309       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18310       # (--disable-auto-import) libraries
18311       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18312       ;;
18313     darwin* | rhapsody*)
18314       # PIC is the default on this platform
18315       # Common symbols not allowed in MH_DYLIB files
18316       lt_prog_compiler_pic_CXX='-fno-common'
18317       ;;
18318     *djgpp*)
18319       # DJGPP does not support shared libraries at all
18320       lt_prog_compiler_pic_CXX=
18321       ;;
18322     haiku*)
18323       # PIC is the default for Haiku.
18324       # The "-static" flag exists, but is broken.
18325       lt_prog_compiler_static_CXX=
18326       ;;
18327     interix[3-9]*)
18328       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18329       # Instead, we relocate shared libraries at runtime.
18330       ;;
18331     sysv4*MP*)
18332       if test -d /usr/nec; then
18333         lt_prog_compiler_pic_CXX=-Kconform_pic
18334       fi
18335       ;;
18336     hpux*)
18337       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18338       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18339       # sets the default TLS model and affects inlining.
18340       case $host_cpu in
18341       hppa*64*)
18342         ;;
18343       *)
18344         lt_prog_compiler_pic_CXX='-fPIC'
18345         ;;
18346       esac
18347       ;;
18348     *qnx* | *nto*)
18349       # QNX uses GNU C++, but need to define -shared option too, otherwise
18350       # it will coredump.
18351       lt_prog_compiler_pic_CXX='-fPIC -shared'
18352       ;;
18353     *)
18354       lt_prog_compiler_pic_CXX='-fPIC'
18355       ;;
18356     esac
18357   else
18358     case $host_os in
18359       aix[4-9]*)
18360         # All AIX code is PIC.
18361         if test "$host_cpu" = ia64; then
18362           # AIX 5 now supports IA64 processor
18363           lt_prog_compiler_static_CXX='-Bstatic'
18364         else
18365           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18366         fi
18367         ;;
18368       chorus*)
18369         case $cc_basename in
18370         cxch68*)
18371           # Green Hills C++ Compiler
18372           # _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"
18373           ;;
18374         esac
18375         ;;
18376       mingw* | cygwin* | os2* | pw32* | cegcc*)
18377         # This hack is so that the source file can tell whether it is being
18378         # built for inclusion in a dll (and should export symbols for example).
18379         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18380         ;;
18381       dgux*)
18382         case $cc_basename in
18383           ec++*)
18384             lt_prog_compiler_pic_CXX='-KPIC'
18385             ;;
18386           ghcx*)
18387             # Green Hills C++ Compiler
18388             lt_prog_compiler_pic_CXX='-pic'
18389             ;;
18390           *)
18391             ;;
18392         esac
18393         ;;
18394       freebsd* | dragonfly*)
18395         # FreeBSD uses GNU C++
18396         ;;
18397       hpux9* | hpux10* | hpux11*)
18398         case $cc_basename in
18399           CC*)
18400             lt_prog_compiler_wl_CXX='-Wl,'
18401             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18402             if test "$host_cpu" != ia64; then
18403               lt_prog_compiler_pic_CXX='+Z'
18404             fi
18405             ;;
18406           aCC*)
18407             lt_prog_compiler_wl_CXX='-Wl,'
18408             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18409             case $host_cpu in
18410             hppa*64*|ia64*)
18411               # +Z the default
18412               ;;
18413             *)
18414               lt_prog_compiler_pic_CXX='+Z'
18415               ;;
18416             esac
18417             ;;
18418           *)
18419             ;;
18420         esac
18421         ;;
18422       interix*)
18423         # This is c89, which is MS Visual C++ (no shared libs)
18424         # Anyone wants to do a port?
18425         ;;
18426       irix5* | irix6* | nonstopux*)
18427         case $cc_basename in
18428           CC*)
18429             lt_prog_compiler_wl_CXX='-Wl,'
18430             lt_prog_compiler_static_CXX='-non_shared'
18431             # CC pic flag -KPIC is the default.
18432             ;;
18433           *)
18434             ;;
18435         esac
18436         ;;
18437       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18438         case $cc_basename in
18439           KCC*)
18440             # KAI C++ Compiler
18441             lt_prog_compiler_wl_CXX='--backend -Wl,'
18442             lt_prog_compiler_pic_CXX='-fPIC'
18443             ;;
18444           ecpc* )
18445             # old Intel C++ for x86_64 which still supported -KPIC.
18446             lt_prog_compiler_wl_CXX='-Wl,'
18447             lt_prog_compiler_pic_CXX='-KPIC'
18448             lt_prog_compiler_static_CXX='-static'
18449             ;;
18450           icpc* )
18451             # Intel C++, used to be incompatible with GCC.
18452             # ICC 10 doesn't accept -KPIC any more.
18453             lt_prog_compiler_wl_CXX='-Wl,'
18454             lt_prog_compiler_pic_CXX='-fPIC'
18455             lt_prog_compiler_static_CXX='-static'
18456             ;;
18457           pgCC* | pgcpp*)
18458             # Portland Group C++ compiler
18459             lt_prog_compiler_wl_CXX='-Wl,'
18460             lt_prog_compiler_pic_CXX='-fpic'
18461             lt_prog_compiler_static_CXX='-Bstatic'
18462             ;;
18463           cxx*)
18464             # Compaq C++
18465             # Make sure the PIC flag is empty.  It appears that all Alpha
18466             # Linux and Compaq Tru64 Unix objects are PIC.
18467             lt_prog_compiler_pic_CXX=
18468             lt_prog_compiler_static_CXX='-non_shared'
18469             ;;
18470           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18471             # IBM XL 8.0, 9.0 on PPC and BlueGene
18472             lt_prog_compiler_wl_CXX='-Wl,'
18473             lt_prog_compiler_pic_CXX='-qpic'
18474             lt_prog_compiler_static_CXX='-qstaticlink'
18475             ;;
18476           *)
18477             case `$CC -V 2>&1 | sed 5q` in
18478             *Sun\ C*)
18479               # Sun C++ 5.9
18480               lt_prog_compiler_pic_CXX='-KPIC'
18481               lt_prog_compiler_static_CXX='-Bstatic'
18482               lt_prog_compiler_wl_CXX='-Qoption ld '
18483               ;;
18484             esac
18485             ;;
18486         esac
18487         ;;
18488       lynxos*)
18489         ;;
18490       m88k*)
18491         ;;
18492       mvs*)
18493         case $cc_basename in
18494           cxx*)
18495             lt_prog_compiler_pic_CXX='-W c,exportall'
18496             ;;
18497           *)
18498             ;;
18499         esac
18500         ;;
18501       netbsd*)
18502         ;;
18503       *qnx* | *nto*)
18504         # QNX uses GNU C++, but need to define -shared option too, otherwise
18505         # it will coredump.
18506         lt_prog_compiler_pic_CXX='-fPIC -shared'
18507         ;;
18508       osf3* | osf4* | osf5*)
18509         case $cc_basename in
18510           KCC*)
18511             lt_prog_compiler_wl_CXX='--backend -Wl,'
18512             ;;
18513           RCC*)
18514             # Rational C++ 2.4.1
18515             lt_prog_compiler_pic_CXX='-pic'
18516             ;;
18517           cxx*)
18518             # Digital/Compaq C++
18519             lt_prog_compiler_wl_CXX='-Wl,'
18520             # Make sure the PIC flag is empty.  It appears that all Alpha
18521             # Linux and Compaq Tru64 Unix objects are PIC.
18522             lt_prog_compiler_pic_CXX=
18523             lt_prog_compiler_static_CXX='-non_shared'
18524             ;;
18525           *)
18526             ;;
18527         esac
18528         ;;
18529       psos*)
18530         ;;
18531       solaris*)
18532         case $cc_basename in
18533           CC* | sunCC*)
18534             # Sun C++ 4.2, 5.x and Centerline C++
18535             lt_prog_compiler_pic_CXX='-KPIC'
18536             lt_prog_compiler_static_CXX='-Bstatic'
18537             lt_prog_compiler_wl_CXX='-Qoption ld '
18538             ;;
18539           gcx*)
18540             # Green Hills C++ Compiler
18541             lt_prog_compiler_pic_CXX='-PIC'
18542             ;;
18543           *)
18544             ;;
18545         esac
18546         ;;
18547       sunos4*)
18548         case $cc_basename in
18549           CC*)
18550             # Sun C++ 4.x
18551             lt_prog_compiler_pic_CXX='-pic'
18552             lt_prog_compiler_static_CXX='-Bstatic'
18553             ;;
18554           lcc*)
18555             # Lucid
18556             lt_prog_compiler_pic_CXX='-pic'
18557             ;;
18558           *)
18559             ;;
18560         esac
18561         ;;
18562       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18563         case $cc_basename in
18564           CC*)
18565             lt_prog_compiler_wl_CXX='-Wl,'
18566             lt_prog_compiler_pic_CXX='-KPIC'
18567             lt_prog_compiler_static_CXX='-Bstatic'
18568             ;;
18569         esac
18570         ;;
18571       tandem*)
18572         case $cc_basename in
18573           NCC*)
18574             # NonStop-UX NCC 3.20
18575             lt_prog_compiler_pic_CXX='-KPIC'
18576             ;;
18577           *)
18578             ;;
18579         esac
18580         ;;
18581       vxworks*)
18582         ;;
18583       *)
18584         lt_prog_compiler_can_build_shared_CXX=no
18585         ;;
18586     esac
18587   fi
18588
18589 case $host_os in
18590   # For platforms which do not support PIC, -DPIC is meaningless:
18591   *djgpp*)
18592     lt_prog_compiler_pic_CXX=
18593     ;;
18594   *)
18595     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18596     ;;
18597 esac
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18601 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18602   $as_echo_n "(cached) " >&6
18603 else
18604   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18607 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18608 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18609
18610 #
18611 # Check to make sure the PIC flag actually works.
18612 #
18613 if test -n "$lt_prog_compiler_pic_CXX"; then
18614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18616 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18617   $as_echo_n "(cached) " >&6
18618 else
18619   lt_cv_prog_compiler_pic_works_CXX=no
18620    ac_outfile=conftest.$ac_objext
18621    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18622    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18623    # Insert the option either (1) after the last *FLAGS variable, or
18624    # (2) before a word containing "conftest.", or (3) at the end.
18625    # Note that $ac_compile itself does not contain backslashes and begins
18626    # with a dollar sign (not a hyphen), so the echo should work correctly.
18627    # The option is referenced via a variable to avoid confusing sed.
18628    lt_compile=`echo "$ac_compile" | $SED \
18629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18631    -e 's:$: $lt_compiler_flag:'`
18632    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18633    (eval "$lt_compile" 2>conftest.err)
18634    ac_status=$?
18635    cat conftest.err >&5
18636    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637    if (exit $ac_status) && test -s "$ac_outfile"; then
18638      # The compiler can only warn and ignore the option if not recognized
18639      # So say no if there are warnings other than the usual output.
18640      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18643        lt_cv_prog_compiler_pic_works_CXX=yes
18644      fi
18645    fi
18646    $RM conftest*
18647
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18650 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18651
18652 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18653     case $lt_prog_compiler_pic_CXX in
18654      "" | " "*) ;;
18655      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18656      esac
18657 else
18658     lt_prog_compiler_pic_CXX=
18659      lt_prog_compiler_can_build_shared_CXX=no
18660 fi
18661
18662 fi
18663
18664
18665
18666
18667
18668 #
18669 # Check to make sure the static flag actually works.
18670 #
18671 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18674 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18675   $as_echo_n "(cached) " >&6
18676 else
18677   lt_cv_prog_compiler_static_works_CXX=no
18678    save_LDFLAGS="$LDFLAGS"
18679    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18680    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18681    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18682      # The linker can only warn and ignore the option if not recognized
18683      # So say no if there are warnings
18684      if test -s conftest.err; then
18685        # Append any errors to the config.log.
18686        cat conftest.err 1>&5
18687        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18688        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18689        if diff conftest.exp conftest.er2 >/dev/null; then
18690          lt_cv_prog_compiler_static_works_CXX=yes
18691        fi
18692      else
18693        lt_cv_prog_compiler_static_works_CXX=yes
18694      fi
18695    fi
18696    $RM -r conftest*
18697    LDFLAGS="$save_LDFLAGS"
18698
18699 fi
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18701 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18702
18703 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18704     :
18705 else
18706     lt_prog_compiler_static_CXX=
18707 fi
18708
18709
18710
18711
18712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18714 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   lt_cv_prog_compiler_c_o_CXX=no
18718    $RM -r conftest 2>/dev/null
18719    mkdir conftest
18720    cd conftest
18721    mkdir out
18722    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18723
18724    lt_compiler_flag="-o out/conftest2.$ac_objext"
18725    # Insert the option either (1) after the last *FLAGS variable, or
18726    # (2) before a word containing "conftest.", or (3) at the end.
18727    # Note that $ac_compile itself does not contain backslashes and begins
18728    # with a dollar sign (not a hyphen), so the echo should work correctly.
18729    lt_compile=`echo "$ac_compile" | $SED \
18730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18732    -e 's:$: $lt_compiler_flag:'`
18733    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18734    (eval "$lt_compile" 2>out/conftest.err)
18735    ac_status=$?
18736    cat out/conftest.err >&5
18737    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18739    then
18740      # The compiler can only warn and ignore the option if not recognized
18741      # So say no if there are warnings
18742      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18743      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18744      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18745        lt_cv_prog_compiler_c_o_CXX=yes
18746      fi
18747    fi
18748    chmod u+w . 2>&5
18749    $RM conftest*
18750    # SGI C++ compiler will create directory out/ii_files/ for
18751    # template instantiation
18752    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18753    $RM out/* && rmdir out
18754    cd ..
18755    $RM -r conftest
18756    $RM conftest*
18757
18758 fi
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18761
18762
18763
18764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18766 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18767   $as_echo_n "(cached) " >&6
18768 else
18769   lt_cv_prog_compiler_c_o_CXX=no
18770    $RM -r conftest 2>/dev/null
18771    mkdir conftest
18772    cd conftest
18773    mkdir out
18774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18775
18776    lt_compiler_flag="-o out/conftest2.$ac_objext"
18777    # Insert the option either (1) after the last *FLAGS variable, or
18778    # (2) before a word containing "conftest.", or (3) at the end.
18779    # Note that $ac_compile itself does not contain backslashes and begins
18780    # with a dollar sign (not a hyphen), so the echo should work correctly.
18781    lt_compile=`echo "$ac_compile" | $SED \
18782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18784    -e 's:$: $lt_compiler_flag:'`
18785    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18786    (eval "$lt_compile" 2>out/conftest.err)
18787    ac_status=$?
18788    cat out/conftest.err >&5
18789    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18791    then
18792      # The compiler can only warn and ignore the option if not recognized
18793      # So say no if there are warnings
18794      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18797        lt_cv_prog_compiler_c_o_CXX=yes
18798      fi
18799    fi
18800    chmod u+w . 2>&5
18801    $RM conftest*
18802    # SGI C++ compiler will create directory out/ii_files/ for
18803    # template instantiation
18804    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18805    $RM out/* && rmdir out
18806    cd ..
18807    $RM -r conftest
18808    $RM conftest*
18809
18810 fi
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18812 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18813
18814
18815
18816
18817 hard_links="nottested"
18818 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18819   # do not overwrite the value of need_locks provided by the user
18820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18821 $as_echo_n "checking if we can lock with hard links... " >&6; }
18822   hard_links=yes
18823   $RM conftest*
18824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18825   touch conftest.a
18826   ln conftest.a conftest.b 2>&5 || hard_links=no
18827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18829 $as_echo "$hard_links" >&6; }
18830   if test "$hard_links" = no; then
18831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18833     need_locks=warn
18834   fi
18835 else
18836   need_locks=no
18837 fi
18838
18839
18840
18841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18843
18844   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18845   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18846   case $host_os in
18847   aix[4-9]*)
18848     # If we're using GNU nm, then we don't want the "-C" option.
18849     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18850     # Also, AIX nm treats weak defined symbols like other global defined
18851     # symbols, whereas GNU nm marks them as "W".
18852     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18853       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'
18854     else
18855       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'
18856     fi
18857     ;;
18858   pw32*)
18859     export_symbols_cmds_CXX="$ltdll_cmds"
18860     ;;
18861   cygwin* | mingw* | cegcc*)
18862     case $cc_basename in
18863     cl*) ;;
18864     *)
18865       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18866       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18867       ;;
18868     esac
18869     ;;
18870   *)
18871     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18872     ;;
18873   esac
18874
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18876 $as_echo "$ld_shlibs_CXX" >&6; }
18877 test "$ld_shlibs_CXX" = no && can_build_shared=no
18878
18879 with_gnu_ld_CXX=$with_gnu_ld
18880
18881
18882
18883
18884
18885
18886 #
18887 # Do we need to explicitly link libc?
18888 #
18889 case "x$archive_cmds_need_lc_CXX" in
18890 x|xyes)
18891   # Assume -lc should be added
18892   archive_cmds_need_lc_CXX=yes
18893
18894   if test "$enable_shared" = yes && test "$GCC" = yes; then
18895     case $archive_cmds_CXX in
18896     *'~'*)
18897       # FIXME: we may have to deal with multi-command sequences.
18898       ;;
18899     '$CC '*)
18900       # Test whether the compiler implicitly links with -lc since on some
18901       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902       # to ld, don't add -lc before -lgcc.
18903       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18905 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18906   $as_echo_n "(cached) " >&6
18907 else
18908   $RM conftest*
18909         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18910
18911         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18912   (eval $ac_compile) 2>&5
18913   ac_status=$?
18914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915   test $ac_status = 0; } 2>conftest.err; then
18916           soname=conftest
18917           lib=conftest
18918           libobjs=conftest.$ac_objext
18919           deplibs=
18920           wl=$lt_prog_compiler_wl_CXX
18921           pic_flag=$lt_prog_compiler_pic_CXX
18922           compiler_flags=-v
18923           linker_flags=-v
18924           verstring=
18925           output_objdir=.
18926           libname=conftest
18927           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18928           allow_undefined_flag_CXX=
18929           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18930   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18931   ac_status=$?
18932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933   test $ac_status = 0; }
18934           then
18935             lt_cv_archive_cmds_need_lc_CXX=no
18936           else
18937             lt_cv_archive_cmds_need_lc_CXX=yes
18938           fi
18939           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18940         else
18941           cat conftest.err 1>&5
18942         fi
18943         $RM conftest*
18944
18945 fi
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18947 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18948       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18949       ;;
18950     esac
18951   fi
18952   ;;
18953 esac
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19019 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19020
19021 library_names_spec=
19022 libname_spec='lib$name'
19023 soname_spec=
19024 shrext_cmds=".so"
19025 postinstall_cmds=
19026 postuninstall_cmds=
19027 finish_cmds=
19028 finish_eval=
19029 shlibpath_var=
19030 shlibpath_overrides_runpath=unknown
19031 version_type=none
19032 dynamic_linker="$host_os ld.so"
19033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034 need_lib_prefix=unknown
19035 hardcode_into_libs=no
19036
19037 # when you set need_version to no, make sure it does not cause -set_version
19038 # flags to be left without arguments
19039 need_version=unknown
19040
19041 case $host_os in
19042 aix3*)
19043   version_type=linux
19044   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19045   shlibpath_var=LIBPATH
19046
19047   # AIX 3 has no versioning support, so we append a major version to the name.
19048   soname_spec='${libname}${release}${shared_ext}$major'
19049   ;;
19050
19051 aix[4-9]*)
19052   version_type=linux
19053   need_lib_prefix=no
19054   need_version=no
19055   hardcode_into_libs=yes
19056   if test "$host_cpu" = ia64; then
19057     # AIX 5 supports IA64
19058     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19059     shlibpath_var=LD_LIBRARY_PATH
19060   else
19061     # With GCC up to 2.95.x, collect2 would create an import file
19062     # for dependence libraries.  The import file would start with
19063     # the line `#! .'.  This would cause the generated library to
19064     # depend on `.', always an invalid library.  This was fixed in
19065     # development snapshots of GCC prior to 3.0.
19066     case $host_os in
19067       aix4 | aix4.[01] | aix4.[01].*)
19068       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19069            echo ' yes '
19070            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19071         :
19072       else
19073         can_build_shared=no
19074       fi
19075       ;;
19076     esac
19077     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19078     # soname into executable. Probably we can add versioning support to
19079     # collect2, so additional links can be useful in future.
19080     if test "$aix_use_runtimelinking" = yes; then
19081       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19082       # instead of lib<name>.a to let people know that these are not
19083       # typical AIX shared libraries.
19084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085     else
19086       # We preserve .a as extension for shared libraries through AIX4.2
19087       # and later when we are not doing run time linking.
19088       library_names_spec='${libname}${release}.a $libname.a'
19089       soname_spec='${libname}${release}${shared_ext}$major'
19090     fi
19091     shlibpath_var=LIBPATH
19092   fi
19093   ;;
19094
19095 amigaos*)
19096   case $host_cpu in
19097   powerpc)
19098     # Since July 2007 AmigaOS4 officially supports .so libraries.
19099     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101     ;;
19102   m68k)
19103     library_names_spec='$libname.ixlibrary $libname.a'
19104     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19105     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'
19106     ;;
19107   esac
19108   ;;
19109
19110 beos*)
19111   library_names_spec='${libname}${shared_ext}'
19112   dynamic_linker="$host_os ld.so"
19113   shlibpath_var=LIBRARY_PATH
19114   ;;
19115
19116 bsdi[45]*)
19117   version_type=linux
19118   need_version=no
19119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19120   soname_spec='${libname}${release}${shared_ext}$major'
19121   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19122   shlibpath_var=LD_LIBRARY_PATH
19123   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19124   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19125   # the default ld.so.conf also contains /usr/contrib/lib and
19126   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19127   # libtool to hard-code these into programs
19128   ;;
19129
19130 cygwin* | mingw* | pw32* | cegcc*)
19131   version_type=windows
19132   shrext_cmds=".dll"
19133   need_version=no
19134   need_lib_prefix=no
19135
19136   case $GCC,$cc_basename in
19137   yes,*)
19138     # gcc
19139     library_names_spec='$libname.dll.a'
19140     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19141     postinstall_cmds='base_file=`basename \${file}`~
19142       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19143       dldir=$destdir/`dirname \$dlpath`~
19144       test -d \$dldir || mkdir -p \$dldir~
19145       $install_prog $dir/$dlname \$dldir/$dlname~
19146       chmod a+x \$dldir/$dlname~
19147       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19148         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19149       fi'
19150     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19151       dlpath=$dir/\$dldll~
19152        $RM \$dlpath'
19153     shlibpath_overrides_runpath=yes
19154
19155     case $host_os in
19156     cygwin*)
19157       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19158       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19159
19160       ;;
19161     mingw* | cegcc*)
19162       # MinGW DLLs use traditional 'lib' prefix
19163       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19164       ;;
19165     pw32*)
19166       # pw32 DLLs use 'pw' prefix rather than 'lib'
19167       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19168       ;;
19169     esac
19170     dynamic_linker='Win32 ld.exe'
19171     ;;
19172
19173   *,cl*)
19174     # Native MSVC
19175     libname_spec='$name'
19176     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19177     library_names_spec='${libname}.dll.lib'
19178
19179     case $build_os in
19180     mingw*)
19181       sys_lib_search_path_spec=
19182       lt_save_ifs=$IFS
19183       IFS=';'
19184       for lt_path in $LIB
19185       do
19186         IFS=$lt_save_ifs
19187         # Let DOS variable expansion print the short 8.3 style file name.
19188         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19189         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19190       done
19191       IFS=$lt_save_ifs
19192       # Convert to MSYS style.
19193       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19194       ;;
19195     cygwin*)
19196       # Convert to unix form, then to dos form, then back to unix form
19197       # but this time dos style (no spaces!) so that the unix form looks
19198       # like /cygdrive/c/PROGRA~1:/cygdr...
19199       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19200       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19201       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19202       ;;
19203     *)
19204       sys_lib_search_path_spec="$LIB"
19205       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19206         # It is most probably a Windows format PATH.
19207         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19208       else
19209         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19210       fi
19211       # FIXME: find the short name or the path components, as spaces are
19212       # common. (e.g. "Program Files" -> "PROGRA~1")
19213       ;;
19214     esac
19215
19216     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19217     postinstall_cmds='base_file=`basename \${file}`~
19218       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19219       dldir=$destdir/`dirname \$dlpath`~
19220       test -d \$dldir || mkdir -p \$dldir~
19221       $install_prog $dir/$dlname \$dldir/$dlname'
19222     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19223       dlpath=$dir/\$dldll~
19224        $RM \$dlpath'
19225     shlibpath_overrides_runpath=yes
19226     dynamic_linker='Win32 link.exe'
19227     ;;
19228
19229   *)
19230     # Assume MSVC wrapper
19231     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19232     dynamic_linker='Win32 ld.exe'
19233     ;;
19234   esac
19235   # FIXME: first we should search . and the directory the executable is in
19236   shlibpath_var=PATH
19237   ;;
19238
19239 darwin* | rhapsody*)
19240   dynamic_linker="$host_os dyld"
19241   version_type=darwin
19242   need_lib_prefix=no
19243   need_version=no
19244   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19245   soname_spec='${libname}${release}${major}$shared_ext'
19246   shlibpath_overrides_runpath=yes
19247   shlibpath_var=DYLD_LIBRARY_PATH
19248   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19249
19250   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19251   ;;
19252
19253 dgux*)
19254   version_type=linux
19255   need_lib_prefix=no
19256   need_version=no
19257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19258   soname_spec='${libname}${release}${shared_ext}$major'
19259   shlibpath_var=LD_LIBRARY_PATH
19260   ;;
19261
19262 freebsd1*)
19263   dynamic_linker=no
19264   ;;
19265
19266 freebsd* | dragonfly*)
19267   # DragonFly does not have aout.  When/if they implement a new
19268   # versioning mechanism, adjust this.
19269   if test -x /usr/bin/objformat; then
19270     objformat=`/usr/bin/objformat`
19271   else
19272     case $host_os in
19273     freebsd[123]*) objformat=aout ;;
19274     *) objformat=elf ;;
19275     esac
19276   fi
19277   version_type=freebsd-$objformat
19278   case $version_type in
19279     freebsd-elf*)
19280       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19281       need_version=no
19282       need_lib_prefix=no
19283       ;;
19284     freebsd-*)
19285       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19286       need_version=yes
19287       ;;
19288   esac
19289   shlibpath_var=LD_LIBRARY_PATH
19290   case $host_os in
19291   freebsd2*)
19292     shlibpath_overrides_runpath=yes
19293     ;;
19294   freebsd3.[01]* | freebsdelf3.[01]*)
19295     shlibpath_overrides_runpath=yes
19296     hardcode_into_libs=yes
19297     ;;
19298   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19299   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19300     shlibpath_overrides_runpath=no
19301     hardcode_into_libs=yes
19302     ;;
19303   *) # from 4.6 on, and DragonFly
19304     shlibpath_overrides_runpath=yes
19305     hardcode_into_libs=yes
19306     ;;
19307   esac
19308   ;;
19309
19310 gnu*)
19311   version_type=linux
19312   need_lib_prefix=no
19313   need_version=no
19314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19315   soname_spec='${libname}${release}${shared_ext}$major'
19316   shlibpath_var=LD_LIBRARY_PATH
19317   hardcode_into_libs=yes
19318   ;;
19319
19320 haiku*)
19321   version_type=linux
19322   need_lib_prefix=no
19323   need_version=no
19324   dynamic_linker="$host_os runtime_loader"
19325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19326   soname_spec='${libname}${release}${shared_ext}$major'
19327   shlibpath_var=LIBRARY_PATH
19328   shlibpath_overrides_runpath=yes
19329   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19330   hardcode_into_libs=yes
19331   ;;
19332
19333 hpux9* | hpux10* | hpux11*)
19334   # Give a soname corresponding to the major version so that dld.sl refuses to
19335   # link against other versions.
19336   version_type=sunos
19337   need_lib_prefix=no
19338   need_version=no
19339   case $host_cpu in
19340   ia64*)
19341     shrext_cmds='.so'
19342     hardcode_into_libs=yes
19343     dynamic_linker="$host_os dld.so"
19344     shlibpath_var=LD_LIBRARY_PATH
19345     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347     soname_spec='${libname}${release}${shared_ext}$major'
19348     if test "X$HPUX_IA64_MODE" = X32; then
19349       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19350     else
19351       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19352     fi
19353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19354     ;;
19355   hppa*64*)
19356     shrext_cmds='.sl'
19357     hardcode_into_libs=yes
19358     dynamic_linker="$host_os dld.sl"
19359     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19360     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362     soname_spec='${libname}${release}${shared_ext}$major'
19363     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19365     ;;
19366   *)
19367     shrext_cmds='.sl'
19368     dynamic_linker="$host_os dld.sl"
19369     shlibpath_var=SHLIB_PATH
19370     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372     soname_spec='${libname}${release}${shared_ext}$major'
19373     ;;
19374   esac
19375   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19376   postinstall_cmds='chmod 555 $lib'
19377   # or fails outright, so override atomically:
19378   install_override_mode=555
19379   ;;
19380
19381 interix[3-9]*)
19382   version_type=linux
19383   need_lib_prefix=no
19384   need_version=no
19385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19386   soname_spec='${libname}${release}${shared_ext}$major'
19387   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19388   shlibpath_var=LD_LIBRARY_PATH
19389   shlibpath_overrides_runpath=no
19390   hardcode_into_libs=yes
19391   ;;
19392
19393 irix5* | irix6* | nonstopux*)
19394   case $host_os in
19395     nonstopux*) version_type=nonstopux ;;
19396     *)
19397         if test "$lt_cv_prog_gnu_ld" = yes; then
19398                 version_type=linux
19399         else
19400                 version_type=irix
19401         fi ;;
19402   esac
19403   need_lib_prefix=no
19404   need_version=no
19405   soname_spec='${libname}${release}${shared_ext}$major'
19406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19407   case $host_os in
19408   irix5* | nonstopux*)
19409     libsuff= shlibsuff=
19410     ;;
19411   *)
19412     case $LD in # libtool.m4 will add one of these switches to LD
19413     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19414       libsuff= shlibsuff= libmagic=32-bit;;
19415     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19416       libsuff=32 shlibsuff=N32 libmagic=N32;;
19417     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19418       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19419     *) libsuff= shlibsuff= libmagic=never-match;;
19420     esac
19421     ;;
19422   esac
19423   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19424   shlibpath_overrides_runpath=no
19425   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19426   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19427   hardcode_into_libs=yes
19428   ;;
19429
19430 # No shared lib support for Linux oldld, aout, or coff.
19431 linux*oldld* | linux*aout* | linux*coff*)
19432   dynamic_linker=no
19433   ;;
19434
19435 # This must be Linux ELF.
19436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19437   version_type=linux
19438   need_lib_prefix=no
19439   need_version=no
19440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19441   soname_spec='${libname}${release}${shared_ext}$major'
19442   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19443   shlibpath_var=LD_LIBRARY_PATH
19444   shlibpath_overrides_runpath=no
19445
19446   # Some binutils ld are patched to set DT_RUNPATH
19447   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   lt_cv_shlibpath_overrides_runpath=no
19451     save_LDFLAGS=$LDFLAGS
19452     save_libdir=$libdir
19453     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19454          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h.  */
19457
19458 int
19459 main ()
19460 {
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 if ac_fn_cxx_try_link "$LINENO"; then :
19467   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19468   lt_cv_shlibpath_overrides_runpath=yes
19469 fi
19470 fi
19471 rm -f core conftest.err conftest.$ac_objext \
19472     conftest$ac_exeext conftest.$ac_ext
19473     LDFLAGS=$save_LDFLAGS
19474     libdir=$save_libdir
19475
19476 fi
19477
19478   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19479
19480   # This implies no fast_install, which is unacceptable.
19481   # Some rework will be needed to allow for fast_install
19482   # before this can be enabled.
19483   hardcode_into_libs=yes
19484
19485   # Add ABI-specific directories to the system library path.
19486   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19487
19488   # Append ld.so.conf contents to the search path
19489   if test -f /etc/ld.so.conf; then
19490     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' ' '`
19491     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19492
19493   fi
19494
19495   # We used to test for /lib/ld.so.1 and disable shared libraries on
19496   # powerpc, because MkLinux only supported shared libraries with the
19497   # GNU dynamic linker.  Since this was broken with cross compilers,
19498   # most powerpc-linux boxes support dynamic linking these days and
19499   # people can always --disable-shared, the test was removed, and we
19500   # assume the GNU/Linux dynamic linker is in use.
19501   dynamic_linker='GNU/Linux ld.so'
19502   ;;
19503
19504 netbsd*)
19505   version_type=sunos
19506   need_lib_prefix=no
19507   need_version=no
19508   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19510     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19511     dynamic_linker='NetBSD (a.out) ld.so'
19512   else
19513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19514     soname_spec='${libname}${release}${shared_ext}$major'
19515     dynamic_linker='NetBSD ld.elf_so'
19516   fi
19517   shlibpath_var=LD_LIBRARY_PATH
19518   shlibpath_overrides_runpath=yes
19519   hardcode_into_libs=yes
19520   ;;
19521
19522 newsos6)
19523   version_type=linux
19524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525   shlibpath_var=LD_LIBRARY_PATH
19526   shlibpath_overrides_runpath=yes
19527   ;;
19528
19529 *nto* | *qnx*)
19530   version_type=qnx
19531   need_lib_prefix=no
19532   need_version=no
19533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534   soname_spec='${libname}${release}${shared_ext}$major'
19535   shlibpath_var=LD_LIBRARY_PATH
19536   shlibpath_overrides_runpath=no
19537   hardcode_into_libs=yes
19538   dynamic_linker='ldqnx.so'
19539   ;;
19540
19541 openbsd*)
19542   version_type=sunos
19543   sys_lib_dlsearch_path_spec="/usr/lib"
19544   need_lib_prefix=no
19545   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19546   case $host_os in
19547     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19548     *)                          need_version=no  ;;
19549   esac
19550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19551   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19552   shlibpath_var=LD_LIBRARY_PATH
19553   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19554     case $host_os in
19555       openbsd2.[89] | openbsd2.[89].*)
19556         shlibpath_overrides_runpath=no
19557         ;;
19558       *)
19559         shlibpath_overrides_runpath=yes
19560         ;;
19561       esac
19562   else
19563     shlibpath_overrides_runpath=yes
19564   fi
19565   ;;
19566
19567 os2*)
19568   libname_spec='$name'
19569   shrext_cmds=".dll"
19570   need_lib_prefix=no
19571   library_names_spec='$libname${shared_ext} $libname.a'
19572   dynamic_linker='OS/2 ld.exe'
19573   shlibpath_var=LIBPATH
19574   ;;
19575
19576 osf3* | osf4* | osf5*)
19577   version_type=osf
19578   need_lib_prefix=no
19579   need_version=no
19580   soname_spec='${libname}${release}${shared_ext}$major'
19581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19582   shlibpath_var=LD_LIBRARY_PATH
19583   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19584   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19585   ;;
19586
19587 rdos*)
19588   dynamic_linker=no
19589   ;;
19590
19591 solaris*)
19592   version_type=linux
19593   need_lib_prefix=no
19594   need_version=no
19595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596   soname_spec='${libname}${release}${shared_ext}$major'
19597   shlibpath_var=LD_LIBRARY_PATH
19598   shlibpath_overrides_runpath=yes
19599   hardcode_into_libs=yes
19600   # ldd complains unless libraries are executable
19601   postinstall_cmds='chmod +x $lib'
19602   ;;
19603
19604 sunos4*)
19605   version_type=sunos
19606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19607   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19608   shlibpath_var=LD_LIBRARY_PATH
19609   shlibpath_overrides_runpath=yes
19610   if test "$with_gnu_ld" = yes; then
19611     need_lib_prefix=no
19612   fi
19613   need_version=yes
19614   ;;
19615
19616 sysv4 | sysv4.3*)
19617   version_type=linux
19618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19619   soname_spec='${libname}${release}${shared_ext}$major'
19620   shlibpath_var=LD_LIBRARY_PATH
19621   case $host_vendor in
19622     sni)
19623       shlibpath_overrides_runpath=no
19624       need_lib_prefix=no
19625       runpath_var=LD_RUN_PATH
19626       ;;
19627     siemens)
19628       need_lib_prefix=no
19629       ;;
19630     motorola)
19631       need_lib_prefix=no
19632       need_version=no
19633       shlibpath_overrides_runpath=no
19634       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19635       ;;
19636   esac
19637   ;;
19638
19639 sysv4*MP*)
19640   if test -d /usr/nec ;then
19641     version_type=linux
19642     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19643     soname_spec='$libname${shared_ext}.$major'
19644     shlibpath_var=LD_LIBRARY_PATH
19645   fi
19646   ;;
19647
19648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19649   version_type=freebsd-elf
19650   need_lib_prefix=no
19651   need_version=no
19652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19653   soname_spec='${libname}${release}${shared_ext}$major'
19654   shlibpath_var=LD_LIBRARY_PATH
19655   shlibpath_overrides_runpath=yes
19656   hardcode_into_libs=yes
19657   if test "$with_gnu_ld" = yes; then
19658     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19659   else
19660     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19661     case $host_os in
19662       sco3.2v5*)
19663         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19664         ;;
19665     esac
19666   fi
19667   sys_lib_dlsearch_path_spec='/usr/lib'
19668   ;;
19669
19670 tpf*)
19671   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19672   version_type=linux
19673   need_lib_prefix=no
19674   need_version=no
19675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19676   shlibpath_var=LD_LIBRARY_PATH
19677   shlibpath_overrides_runpath=no
19678   hardcode_into_libs=yes
19679   ;;
19680
19681 uts4*)
19682   version_type=linux
19683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684   soname_spec='${libname}${release}${shared_ext}$major'
19685   shlibpath_var=LD_LIBRARY_PATH
19686   ;;
19687
19688 *)
19689   dynamic_linker=no
19690   ;;
19691 esac
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19693 $as_echo "$dynamic_linker" >&6; }
19694 test "$dynamic_linker" = no && can_build_shared=no
19695
19696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19697 if test "$GCC" = yes; then
19698   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19699 fi
19700
19701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19702   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19703 fi
19704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19705   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19706 fi
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19747 hardcode_action_CXX=
19748 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19749    test -n "$runpath_var_CXX" ||
19750    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19751
19752   # We can hardcode non-existent directories.
19753   if test "$hardcode_direct_CXX" != no &&
19754      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19755      # have to relink, otherwise we might link with an installed library
19756      # when we should be linking with a yet-to-be-installed one
19757      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19758      test "$hardcode_minus_L_CXX" != no; then
19759     # Linking always hardcodes the temporary library directory.
19760     hardcode_action_CXX=relink
19761   else
19762     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19763     hardcode_action_CXX=immediate
19764   fi
19765 else
19766   # We cannot hardcode anything, or else we can only hardcode existing
19767   # directories.
19768   hardcode_action_CXX=unsupported
19769 fi
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19771 $as_echo "$hardcode_action_CXX" >&6; }
19772
19773 if test "$hardcode_action_CXX" = relink ||
19774    test "$inherit_rpath_CXX" = yes; then
19775   # Fast installation is not supported
19776   enable_fast_install=no
19777 elif test "$shlibpath_overrides_runpath" = yes ||
19778      test "$enable_shared" = no; then
19779   # Fast installation is not necessary
19780   enable_fast_install=needless
19781 fi
19782
19783
19784
19785
19786
19787
19788
19789   fi # test -n "$compiler"
19790
19791   CC=$lt_save_CC
19792   CFLAGS=$lt_save_CFLAGS
19793   LDCXX=$LD
19794   LD=$lt_save_LD
19795   GCC=$lt_save_GCC
19796   with_gnu_ld=$lt_save_with_gnu_ld
19797   lt_cv_path_LDCXX=$lt_cv_path_LD
19798   lt_cv_path_LD=$lt_save_path_LD
19799   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19800   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19801 fi # test "$_lt_caught_CXX_error" != yes
19802
19803 ac_ext=c
19804 ac_cpp='$CPP $CPPFLAGS'
19805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821         ac_config_commands="$ac_config_commands libtool"
19822
19823
19824
19825
19826 # Only expand once:
19827
19828
19829
19830
19831
19832 # Configure libltdl
19833
19834
19835
19836
19837
19838
19839
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19841 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19842 if ${libltdl_cv_shlibext+:} false; then :
19843   $as_echo_n "(cached) " >&6
19844 else
19845
19846 module=yes
19847 eval libltdl_cv_shlibext=$shrext_cmds
19848
19849 fi
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19851 $as_echo "$libltdl_cv_shlibext" >&6; }
19852 if test -n "$libltdl_cv_shlibext"; then
19853
19854 cat >>confdefs.h <<_ACEOF
19855 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19856 _ACEOF
19857
19858 fi
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19861 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19862 if ${lt_cv_module_path_var+:} false; then :
19863   $as_echo_n "(cached) " >&6
19864 else
19865   lt_cv_module_path_var="$shlibpath_var"
19866 fi
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19868 $as_echo "$lt_cv_module_path_var" >&6; }
19869 if test -n "$lt_cv_module_path_var"; then
19870
19871 cat >>confdefs.h <<_ACEOF
19872 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19873 _ACEOF
19874
19875 fi
19876
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19878 $as_echo_n "checking for the default library search path... " >&6; }
19879 if ${lt_cv_sys_dlsearch_path+:} false; then :
19880   $as_echo_n "(cached) " >&6
19881 else
19882   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19883 fi
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19885 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19886 if test -n "$lt_cv_sys_dlsearch_path"; then
19887   sys_dlsearch_path=
19888   for dir in $lt_cv_sys_dlsearch_path; do
19889     if test -z "$sys_dlsearch_path"; then
19890       sys_dlsearch_path="$dir"
19891     else
19892       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19893     fi
19894   done
19895
19896 cat >>confdefs.h <<_ACEOF
19897 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19898 _ACEOF
19899
19900 fi
19901
19902
19903 LT_DLLOADERS=
19904
19905
19906 ac_ext=c
19907 ac_cpp='$CPP $CPPFLAGS'
19908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19911
19912
19913 LIBADD_DLOPEN=
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19915 $as_echo_n "checking for library containing dlopen... " >&6; }
19916 if ${ac_cv_search_dlopen+:} false; then :
19917   $as_echo_n "(cached) " >&6
19918 else
19919   ac_func_search_save_LIBS=$LIBS
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h.  */
19922
19923 /* Override any GCC internal prototype to avoid an error.
19924    Use char because int might match the return type of a GCC
19925    builtin and then its argument prototype would still apply.  */
19926 #ifdef __cplusplus
19927 extern "C"
19928 #endif
19929 char dlopen ();
19930 int
19931 main ()
19932 {
19933 return dlopen ();
19934   ;
19935   return 0;
19936 }
19937 _ACEOF
19938 for ac_lib in '' dl; do
19939   if test -z "$ac_lib"; then
19940     ac_res="none required"
19941   else
19942     ac_res=-l$ac_lib
19943     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19944   fi
19945   if ac_fn_c_try_link "$LINENO"; then :
19946   ac_cv_search_dlopen=$ac_res
19947 fi
19948 rm -f core conftest.err conftest.$ac_objext \
19949     conftest$ac_exeext
19950   if ${ac_cv_search_dlopen+:} false; then :
19951   break
19952 fi
19953 done
19954 if ${ac_cv_search_dlopen+:} false; then :
19955
19956 else
19957   ac_cv_search_dlopen=no
19958 fi
19959 rm conftest.$ac_ext
19960 LIBS=$ac_func_search_save_LIBS
19961 fi
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19963 $as_echo "$ac_cv_search_dlopen" >&6; }
19964 ac_res=$ac_cv_search_dlopen
19965 if test "$ac_res" != no; then :
19966   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19967
19968 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19969
19970         if test "$ac_cv_search_dlopen" != "none required" ; then
19971           LIBADD_DLOPEN="-ldl"
19972         fi
19973         libltdl_cv_lib_dl_dlopen="yes"
19974         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19975 else
19976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977 /* end confdefs.h.  */
19978 #if HAVE_DLFCN_H
19979 #  include <dlfcn.h>
19980 #endif
19981
19982 int
19983 main ()
19984 {
19985 dlopen(0, 0);
19986   ;
19987   return 0;
19988 }
19989 _ACEOF
19990 if ac_fn_c_try_link "$LINENO"; then :
19991
19992 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19993
19994             libltdl_cv_func_dlopen="yes"
19995             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19996 else
19997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19998 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19999 if ${ac_cv_lib_svld_dlopen+:} false; then :
20000   $as_echo_n "(cached) " >&6
20001 else
20002   ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lsvld  $LIBS"
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h.  */
20006
20007 /* Override any GCC internal prototype to avoid an error.
20008    Use char because int might match the return type of a GCC
20009    builtin and then its argument prototype would still apply.  */
20010 #ifdef __cplusplus
20011 extern "C"
20012 #endif
20013 char dlopen ();
20014 int
20015 main ()
20016 {
20017 return dlopen ();
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_link "$LINENO"; then :
20023   ac_cv_lib_svld_dlopen=yes
20024 else
20025   ac_cv_lib_svld_dlopen=no
20026 fi
20027 rm -f core conftest.err conftest.$ac_objext \
20028     conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20032 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20033 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20034
20035 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20036
20037                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20038                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20039 fi
20040
20041 fi
20042 rm -f core conftest.err conftest.$ac_objext \
20043     conftest$ac_exeext conftest.$ac_ext
20044 fi
20045
20046 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20047 then
20048   lt_save_LIBS="$LIBS"
20049   LIBS="$LIBS $LIBADD_DLOPEN"
20050   for ac_func in dlerror
20051 do :
20052   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20053 if test "x$ac_cv_func_dlerror" = xyes; then :
20054   cat >>confdefs.h <<_ACEOF
20055 #define HAVE_DLERROR 1
20056 _ACEOF
20057
20058 fi
20059 done
20060
20061   LIBS="$lt_save_LIBS"
20062 fi
20063
20064
20065 LIBADD_SHL_LOAD=
20066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20067 if test "x$ac_cv_func_shl_load" = xyes; then :
20068
20069 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20070
20071         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20072 else
20073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20075 if ${ac_cv_lib_dld_shl_load+:} false; then :
20076   $as_echo_n "(cached) " >&6
20077 else
20078   ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-ldld  $LIBS"
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h.  */
20082
20083 /* Override any GCC internal prototype to avoid an error.
20084    Use char because int might match the return type of a GCC
20085    builtin and then its argument prototype would still apply.  */
20086 #ifdef __cplusplus
20087 extern "C"
20088 #endif
20089 char shl_load ();
20090 int
20091 main ()
20092 {
20093 return shl_load ();
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 if ac_fn_c_try_link "$LINENO"; then :
20099   ac_cv_lib_dld_shl_load=yes
20100 else
20101   ac_cv_lib_dld_shl_load=no
20102 fi
20103 rm -f core conftest.err conftest.$ac_objext \
20104     conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20106 fi
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20110
20111 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20112
20113             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20114             LIBADD_SHL_LOAD="-ldld"
20115 fi
20116
20117 fi
20118
20119
20120
20121 case $host_os in
20122 darwin[1567].*)
20123 # We only want this for pre-Mac OS X 10.4.
20124   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20125 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20126
20127 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20128
20129         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20130 fi
20131
20132   ;;
20133 beos*)
20134   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20135   ;;
20136 cygwin* | mingw* | os2* | pw32*)
20137   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20138 "
20139 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20140   ac_have_decl=1
20141 else
20142   ac_have_decl=0
20143 fi
20144
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20147 _ACEOF
20148
20149   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20150   ;;
20151 esac
20152
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20154 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20155 if ${ac_cv_lib_dld_dld_link+:} false; then :
20156   $as_echo_n "(cached) " >&6
20157 else
20158   ac_check_lib_save_LIBS=$LIBS
20159 LIBS="-ldld  $LIBS"
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h.  */
20162
20163 /* Override any GCC internal prototype to avoid an error.
20164    Use char because int might match the return type of a GCC
20165    builtin and then its argument prototype would still apply.  */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char dld_link ();
20170 int
20171 main ()
20172 {
20173 return dld_link ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 if ac_fn_c_try_link "$LINENO"; then :
20179   ac_cv_lib_dld_dld_link=yes
20180 else
20181   ac_cv_lib_dld_dld_link=no
20182 fi
20183 rm -f core conftest.err conftest.$ac_objext \
20184     conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20186 fi
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20188 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20189 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20190
20191 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20192
20193                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20194 fi
20195
20196
20197
20198
20199 LT_DLPREOPEN=
20200 if test -n "$LT_DLLOADERS"
20201 then
20202   for lt_loader in $LT_DLLOADERS; do
20203     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20204   done
20205
20206 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20207
20208 fi
20209
20210
20211 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20212
20213
20214 ac_ext=c
20215 ac_cpp='$CPP $CPPFLAGS'
20216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219
20220
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20222 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20223 if ${lt_cv_sys_symbol_underscore+:} false; then :
20224   $as_echo_n "(cached) " >&6
20225 else
20226   lt_cv_sys_symbol_underscore=no
20227   cat > conftest.$ac_ext <<_LT_EOF
20228 void nm_test_func(){}
20229 int main(){nm_test_func;return 0;}
20230 _LT_EOF
20231   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20232   (eval $ac_compile) 2>&5
20233   ac_status=$?
20234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235   test $ac_status = 0; }; then
20236     # Now try to grab the symbols.
20237     ac_nlist=conftest.nm
20238     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20239   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20240   ac_status=$?
20241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20242   test $ac_status = 0; } && test -s "$ac_nlist"; then
20243       # See whether the symbols have a leading underscore.
20244       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20245         lt_cv_sys_symbol_underscore=yes
20246       else
20247         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20248           :
20249         else
20250           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20251         fi
20252       fi
20253     else
20254       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20255     fi
20256   else
20257     echo "configure: failed program was:" >&5
20258     cat conftest.c >&5
20259   fi
20260   rm -rf conftest*
20261
20262 fi
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20264 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20265   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20266
20267
20268 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20269   if test x"$libltdl_cv_func_dlopen" = xyes ||
20270      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20272 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20273 if ${libltdl_cv_need_uscore+:} false; then :
20274   $as_echo_n "(cached) " >&6
20275 else
20276   libltdl_cv_need_uscore=unknown
20277           save_LIBS="$LIBS"
20278           LIBS="$LIBS $LIBADD_DLOPEN"
20279           if test "$cross_compiling" = yes; then :
20280   libltdl_cv_need_uscore=cross
20281 else
20282   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20283   lt_status=$lt_dlunknown
20284   cat > conftest.$ac_ext <<_LT_EOF
20285 #line $LINENO "configure"
20286 #include "confdefs.h"
20287
20288 #if HAVE_DLFCN_H
20289 #include <dlfcn.h>
20290 #endif
20291
20292 #include <stdio.h>
20293
20294 #ifdef RTLD_GLOBAL
20295 #  define LT_DLGLOBAL           RTLD_GLOBAL
20296 #else
20297 #  ifdef DL_GLOBAL
20298 #    define LT_DLGLOBAL         DL_GLOBAL
20299 #  else
20300 #    define LT_DLGLOBAL         0
20301 #  endif
20302 #endif
20303
20304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20305    find out it does not work in some platform. */
20306 #ifndef LT_DLLAZY_OR_NOW
20307 #  ifdef RTLD_LAZY
20308 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20309 #  else
20310 #    ifdef DL_LAZY
20311 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20312 #    else
20313 #      ifdef RTLD_NOW
20314 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20315 #      else
20316 #        ifdef DL_NOW
20317 #          define LT_DLLAZY_OR_NOW      DL_NOW
20318 #        else
20319 #          define LT_DLLAZY_OR_NOW      0
20320 #        endif
20321 #      endif
20322 #    endif
20323 #  endif
20324 #endif
20325
20326 /* When -fvisbility=hidden is used, assume the code has been annotated
20327    correspondingly for the symbols needed.  */
20328 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20329 int fnord () __attribute__((visibility("default")));
20330 #endif
20331
20332 int fnord () { return 42; }
20333 int main ()
20334 {
20335   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20336   int status = $lt_dlunknown;
20337
20338   if (self)
20339     {
20340       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20341       else
20342         {
20343           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20344           else puts (dlerror ());
20345         }
20346       /* dlclose (self); */
20347     }
20348   else
20349     puts (dlerror ());
20350
20351   return status;
20352 }
20353 _LT_EOF
20354   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20355   (eval $ac_link) 2>&5
20356   ac_status=$?
20357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20358   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20359     (./conftest; exit; ) >&5 2>/dev/null
20360     lt_status=$?
20361     case x$lt_status in
20362       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20363       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20364       x$lt_dlunknown|x*)  ;;
20365     esac
20366   else :
20367     # compilation failed
20368
20369   fi
20370 fi
20371 rm -fr conftest*
20372
20373           LIBS="$save_LIBS"
20374
20375 fi
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20377 $as_echo "$libltdl_cv_need_uscore" >&6; }
20378   fi
20379 fi
20380
20381 if test x"$libltdl_cv_need_uscore" = xyes; then
20382
20383 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20384
20385 fi
20386
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20388 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20389 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20390   $as_echo_n "(cached) " >&6
20391 else
20392   # PORTME does your system automatically load deplibs for dlopen?
20393   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20394   # For now, we just catch OSes we know something about -- in the
20395   # future, we'll try test this programmatically.
20396   lt_cv_sys_dlopen_deplibs=unknown
20397   case $host_os in
20398   aix3*|aix4.1.*|aix4.2.*)
20399     # Unknown whether this is true for these versions of AIX, but
20400     # we want this `case' here to explicitly catch those versions.
20401     lt_cv_sys_dlopen_deplibs=unknown
20402     ;;
20403   aix[4-9]*)
20404     lt_cv_sys_dlopen_deplibs=yes
20405     ;;
20406   amigaos*)
20407     case $host_cpu in
20408     powerpc)
20409       lt_cv_sys_dlopen_deplibs=no
20410       ;;
20411     esac
20412     ;;
20413   darwin*)
20414     # Assuming the user has installed a libdl from somewhere, this is true
20415     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20416     lt_cv_sys_dlopen_deplibs=yes
20417     ;;
20418   freebsd* | dragonfly*)
20419     lt_cv_sys_dlopen_deplibs=yes
20420     ;;
20421   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20422     # GNU and its variants, using gnu ld.so (Glibc)
20423     lt_cv_sys_dlopen_deplibs=yes
20424     ;;
20425   hpux10*|hpux11*)
20426     lt_cv_sys_dlopen_deplibs=yes
20427     ;;
20428   interix*)
20429     lt_cv_sys_dlopen_deplibs=yes
20430     ;;
20431   irix[12345]*|irix6.[01]*)
20432     # Catch all versions of IRIX before 6.2, and indicate that we don't
20433     # know how it worked for any of those versions.
20434     lt_cv_sys_dlopen_deplibs=unknown
20435     ;;
20436   irix*)
20437     # The case above catches anything before 6.2, and it's known that
20438     # at 6.2 and later dlopen does load deplibs.
20439     lt_cv_sys_dlopen_deplibs=yes
20440     ;;
20441   netbsd*)
20442     lt_cv_sys_dlopen_deplibs=yes
20443     ;;
20444   openbsd*)
20445     lt_cv_sys_dlopen_deplibs=yes
20446     ;;
20447   osf[1234]*)
20448     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20449     # it did *not* use an RPATH in a shared library to find objects the
20450     # library depends on, so we explicitly say `no'.
20451     lt_cv_sys_dlopen_deplibs=no
20452     ;;
20453   osf5.0|osf5.0a|osf5.1)
20454     # dlopen *does* load deplibs and with the right loader patch applied
20455     # it even uses RPATH in a shared library to search for shared objects
20456     # that the library depends on, but there's no easy way to know if that
20457     # patch is installed.  Since this is the case, all we can really
20458     # say is unknown -- it depends on the patch being installed.  If
20459     # it is, this changes to `yes'.  Without it, it would be `no'.
20460     lt_cv_sys_dlopen_deplibs=unknown
20461     ;;
20462   osf*)
20463     # the two cases above should catch all versions of osf <= 5.1.  Read
20464     # the comments above for what we know about them.
20465     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20466     # is used to find them so we can finally say `yes'.
20467     lt_cv_sys_dlopen_deplibs=yes
20468     ;;
20469   qnx*)
20470     lt_cv_sys_dlopen_deplibs=yes
20471     ;;
20472   solaris*)
20473     lt_cv_sys_dlopen_deplibs=yes
20474     ;;
20475   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20476     libltdl_cv_sys_dlopen_deplibs=yes
20477     ;;
20478   esac
20479
20480 fi
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20482 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20483 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20484
20485 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20486
20487 fi
20488
20489 :
20490
20491 for ac_header in argz.h
20492 do :
20493   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20494 "
20495 if test "x$ac_cv_header_argz_h" = xyes; then :
20496   cat >>confdefs.h <<_ACEOF
20497 #define HAVE_ARGZ_H 1
20498 _ACEOF
20499
20500 fi
20501
20502 done
20503
20504
20505 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20506 #  include <argz.h>
20507 #endif
20508 "
20509 if test "x$ac_cv_type_error_t" = xyes; then :
20510
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_ERROR_T 1
20513 _ACEOF
20514
20515
20516 else
20517
20518 $as_echo "#define error_t int" >>confdefs.h
20519
20520
20521 $as_echo "#define __error_t_defined 1" >>confdefs.h
20522
20523 fi
20524
20525
20526 ARGZ_H=
20527 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20528         argz_next argz_stringify
20529 do :
20530   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20533   cat >>confdefs.h <<_ACEOF
20534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20535 _ACEOF
20536
20537 else
20538   ARGZ_H=argz.h;
20539
20540   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20541
20542 fi
20543 done
20544
20545
20546 if test -z "$ARGZ_H"; then :
20547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20548 $as_echo_n "checking if argz actually works... " >&6; }
20549 if ${lt_cv_sys_argz_works+:} false; then :
20550   $as_echo_n "(cached) " >&6
20551 else
20552   case $host_os in #(
20553          *cygwin*)
20554            lt_cv_sys_argz_works=no
20555            if test "$cross_compiling" != no; then
20556              lt_cv_sys_argz_works="guessing no"
20557            else
20558              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20559              save_IFS=$IFS
20560              IFS=-.
20561              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20562              IFS=$save_IFS
20563              lt_os_major=${2-0}
20564              lt_os_minor=${3-0}
20565              lt_os_micro=${4-0}
20566              if test "$lt_os_major" -gt 1 \
20567                 || { test "$lt_os_major" -eq 1 \
20568                   && { test "$lt_os_minor" -gt 5 \
20569                     || { test "$lt_os_minor" -eq 5 \
20570                       && test "$lt_os_micro" -gt 24; }; }; }; then
20571                lt_cv_sys_argz_works=yes
20572              fi
20573            fi
20574            ;; #(
20575          *) lt_cv_sys_argz_works=yes ;;
20576          esac
20577 fi
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20579 $as_echo "$lt_cv_sys_argz_works" >&6; }
20580      if test "$lt_cv_sys_argz_works" = yes; then :
20581
20582 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20583
20584 else
20585   ARGZ_H=argz.h
20586
20587
20588   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20589
20590 fi
20591 fi
20592
20593
20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20596 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20597 if ${libltdl_cv_preloaded_symbols+:} false; then :
20598   $as_echo_n "(cached) " >&6
20599 else
20600   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20601     libltdl_cv_preloaded_symbols=yes
20602   else
20603     libltdl_cv_preloaded_symbols=no
20604   fi
20605
20606 fi
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20608 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20609 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20610
20611 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20612
20613 fi
20614
20615 # Set options
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627 # Check whether --with-included_ltdl was given.
20628 if test "${with_included_ltdl+set}" = set; then :
20629   withval=$with_included_ltdl;
20630 fi
20631
20632
20633 if test "x$with_included_ltdl" != xyes; then
20634   # We are not being forced to use the included libltdl sources, so
20635   # decide whether there is a useful installed version we can use.
20636   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20637
20638 "
20639 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20640   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20641             #include <ltdl.h>
20642 "
20643 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20645 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20646 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20647   $as_echo_n "(cached) " >&6
20648 else
20649   ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-lltdl  $LIBS"
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h.  */
20653
20654 /* Override any GCC internal prototype to avoid an error.
20655    Use char because int might match the return type of a GCC
20656    builtin and then its argument prototype would still apply.  */
20657 #ifdef __cplusplus
20658 extern "C"
20659 #endif
20660 char lt_dladvise_preload ();
20661 int
20662 main ()
20663 {
20664 return lt_dladvise_preload ();
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 if ac_fn_c_try_link "$LINENO"; then :
20670   ac_cv_lib_ltdl_lt_dladvise_preload=yes
20671 else
20672   ac_cv_lib_ltdl_lt_dladvise_preload=no
20673 fi
20674 rm -f core conftest.err conftest.$ac_objext \
20675     conftest$ac_exeext conftest.$ac_ext
20676 LIBS=$ac_check_lib_save_LIBS
20677 fi
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20679 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20680 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20681   with_included_ltdl=no
20682 else
20683   with_included_ltdl=yes
20684 fi
20685
20686 else
20687   with_included_ltdl=yes
20688 fi
20689
20690 else
20691   with_included_ltdl=yes
20692 fi
20693
20694
20695 fi
20696
20697
20698
20699
20700 # Check whether --with-ltdl_include was given.
20701 if test "${with_ltdl_include+set}" = set; then :
20702   withval=$with_ltdl_include;
20703 fi
20704
20705
20706 if test -n "$with_ltdl_include"; then
20707   if test -f "$with_ltdl_include/ltdl.h"; then :
20708   else
20709     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20710   fi
20711 else
20712   with_ltdl_include=no
20713 fi
20714
20715
20716 # Check whether --with-ltdl_lib was given.
20717 if test "${with_ltdl_lib+set}" = set; then :
20718   withval=$with_ltdl_lib;
20719 fi
20720
20721
20722 if test -n "$with_ltdl_lib"; then
20723   if test -f "$with_ltdl_lib/libltdl.la"; then :
20724   else
20725     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20726   fi
20727 else
20728   with_ltdl_lib=no
20729 fi
20730
20731 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20732   ,yes,no,no,)
20733         case $enable_ltdl_convenience in
20734   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20735   "") enable_ltdl_convenience=yes
20736       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20737 esac
20738 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20739 LTDLDEPS=$LIBLTDL
20740 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20741
20742
20743
20744
20745
20746 # For backwards non-gettext consistent compatibility...
20747 INCLTDL="$LTDLINCL"
20748
20749
20750         ;;
20751   ,no,no,no,)
20752         # If the included ltdl is not to be used, then use the
20753         # preinstalled libltdl we found.
20754
20755 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20756
20757         LIBLTDL=-lltdl
20758         LTDLDEPS=
20759         LTDLINCL=
20760         ;;
20761   ,no*,no,*)
20762         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20763         ;;
20764   *)    with_included_ltdl=no
20765         LIBLTDL="-L$with_ltdl_lib -lltdl"
20766         LTDLDEPS=
20767         LTDLINCL="-I$with_ltdl_include"
20768         ;;
20769 esac
20770 INCLTDL="$LTDLINCL"
20771
20772 # Report our decision...
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20774 $as_echo_n "checking where to find libltdl headers... " >&6; }
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20776 $as_echo "$LTDLINCL" >&6; }
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20778 $as_echo_n "checking where to find libltdl library... " >&6; }
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20780 $as_echo "$LIBLTDL" >&6; }
20781
20782
20783
20784 # Check whether --enable-ltdl-install was given.
20785 if test "${enable_ltdl_install+set}" = set; then :
20786   enableval=$enable_ltdl_install;
20787 fi
20788
20789
20790 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20791   *yes*) ;;
20792   *) enable_ltdl_convenience=yes ;;
20793 esac
20794
20795  if test x"${enable_ltdl_install-no}" != xno; then
20796   INSTALL_LTDL_TRUE=
20797   INSTALL_LTDL_FALSE='#'
20798 else
20799   INSTALL_LTDL_TRUE='#'
20800   INSTALL_LTDL_FALSE=
20801 fi
20802
20803   if test x"${enable_ltdl_convenience-no}" != xno; then
20804   CONVENIENCE_LTDL_TRUE=
20805   CONVENIENCE_LTDL_FALSE='#'
20806 else
20807   CONVENIENCE_LTDL_TRUE='#'
20808   CONVENIENCE_LTDL_FALSE=
20809 fi
20810
20811
20812
20813
20814
20815
20816 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20817 # the user used.  This is so that ltdl.h can pick up the parent projects
20818 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20819 # definitions required by ltdl.c.
20820 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20821
20822
20823
20824 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20825 do :
20826   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20827 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20828 "
20829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20830   cat >>confdefs.h <<_ACEOF
20831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20832 _ACEOF
20833
20834 fi
20835
20836 done
20837
20838
20839 for ac_func in closedir opendir readdir
20840 do :
20841   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20844   cat >>confdefs.h <<_ACEOF
20845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20846 _ACEOF
20847
20848 else
20849
20850
20851   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20852
20853 fi
20854 done
20855
20856 for ac_func in strlcat strlcpy
20857 do :
20858   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20861   cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863 _ACEOF
20864
20865 else
20866
20867
20868   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20869
20870 fi
20871 done
20872
20873
20874
20875 cat >>confdefs.h <<_ACEOF
20876 #define LT_LIBEXT "$libext"
20877 _ACEOF
20878
20879
20880 name=
20881 eval "lt_libprefix=\"$libname_spec\""
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define LT_LIBPREFIX "$lt_libprefix"
20885 _ACEOF
20886
20887
20888 name=ltdl
20889 eval "LTDLOPEN=\"$libname_spec\""
20890
20891
20892
20893
20894
20895
20896
20897
20898 # Only expand once:
20899
20900
20901
20902 # Check to see if building shared libraries
20903 libtool_build_shared_libs='no'
20904 if test "$enable_shared" = 'yes'; then
20905     libtool_build_shared_libs='yes'
20906 fi
20907
20908 # Check to see if building static libraries
20909 libtool_build_static_libs='no'
20910 if test "$enable_static" = 'yes'; then
20911     libtool_build_static_libs='yes'
20912 fi
20913
20914  if test "${libtool_build_shared_libs}" = 'yes'; then
20915   WITH_SHARED_LIBS_TRUE=
20916   WITH_SHARED_LIBS_FALSE='#'
20917 else
20918   WITH_SHARED_LIBS_TRUE='#'
20919   WITH_SHARED_LIBS_FALSE=
20920 fi
20921
20922 #
20923 # Enable support for building loadable modules
20924 #
20925
20926 # Check whether --with-modules was given.
20927 if test "${with_modules+set}" = set; then :
20928   withval=$with_modules; with_modules=$withval
20929 else
20930   with_modules='no'
20931 fi
20932
20933
20934 # Only allow building loadable modules if we are building shared libraries
20935 if test "$with_modules" != 'no' ; then
20936     if test "$libtool_build_shared_libs" = 'no'; then
20937         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20938 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20939         with_modules='no'
20940     fi
20941 fi
20942 if test "$with_modules" != 'no'; then
20943
20944 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20945
20946 fi
20947  if test "$with_modules" != 'no'; then
20948   WITH_MODULES_TRUE=
20949   WITH_MODULES_FALSE='#'
20950 else
20951   WITH_MODULES_TRUE='#'
20952   WITH_MODULES_FALSE=
20953 fi
20954
20955
20956 # Enable building/use of libltdl if we are building shared libraries regardless
20957 # of whether modules are built or not.
20958 with_ltdl='no'
20959 if test "$libtool_build_shared_libs" != 'no'; then
20960     with_ltdl='yes'
20961 fi
20962
20963  if test "$with_ltdl" != 'no'; then
20964   WITH_LTDL_TRUE=
20965   WITH_LTDL_FALSE='#'
20966 else
20967   WITH_LTDL_TRUE='#'
20968   WITH_LTDL_FALSE=
20969 fi
20970
20971 if test "$with_ltdl" != 'no'; then
20972
20973 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20974
20975
20976     # Set DLLDFLAGS
20977     if test X"$enable_shared" = Xyes; then
20978         DLLDFLAGS=-export-dynamic
20979
20980     fi
20981 fi
20982
20983 # Enable build using delegate libraries built in subdirectories rather than installed
20984 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20985 # Check whether --enable-delegate-build was given.
20986 if test "${enable_delegate_build+set}" = set; then :
20987   enableval=$enable_delegate_build; enable_delegate_build=$enableval
20988 else
20989   enable_delegate_build='no'
20990 fi
20991
20992
20993 # Check whether --enable-deprecated was given.
20994 if test "${enable_deprecated+set}" = set; then :
20995   enableval=$enable_deprecated; enable_deprecated=$enableval
20996 else
20997   enable_deprecated='no'
20998 fi
20999
21000
21001 if test "$enable_deprecated" = 'yes'; then
21002
21003 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21004
21005 else
21006   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21007 fi
21008
21009 # Build a version of ImageMagick which operates uninstalled.
21010 # Used to build distributions located via MAGICK_HOME / executable path
21011 # Check whether --enable-installed was given.
21012 if test "${enable_installed+set}" = set; then :
21013   enableval=$enable_installed; enable_installed=$enableval
21014 else
21015   enable_installed='yes'
21016 fi
21017
21018
21019 if test "$enable_installed" = 'yes'; then
21020
21021 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21022
21023 else
21024     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21025 fi
21026
21027 # Permit enciphering and deciphering image pixels.
21028 # Check whether --enable-cipher was given.
21029 if test "${enable_cipher+set}" = set; then :
21030   enableval=$enable_cipher; enable_cipher=$enableval
21031 else
21032   enable_cipher='yes'
21033 fi
21034
21035
21036 if test "$enable_cipher" = 'yes'; then
21037
21038 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21039
21040 fi
21041
21042 # Build an embeddable version of ImageMagick.
21043 # Check whether --enable-embeddable was given.
21044 if test "${enable_embeddable+set}" = set; then :
21045   enableval=$enable_embeddable; enable_embeddable=$enableval
21046 else
21047   enable_embeddable='no'
21048 fi
21049
21050
21051 if test "$enable_embeddable" = 'yes'; then
21052
21053 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
21054
21055 fi
21056
21057 # Build a high dynamic range version of ImageMagick.
21058 # Check whether --enable-hdri was given.
21059 if test "${enable_hdri+set}" = set; then :
21060   enableval=$enable_hdri; enable_hdri=$enableval
21061 else
21062   enable_hdri='no'
21063 fi
21064
21065
21066 MAGICK_HDRI=""
21067 if test "$enable_hdri" = 'yes'; then
21068     MAGICK_HDRI="HDRI"
21069
21070 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21071
21072     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21073 fi
21074
21075 # Build a version of ImageMagick with assert statements.
21076 # Check whether --enable-assert was given.
21077 if test "${enable_assert+set}" = set; then :
21078   enableval=$enable_assert; enable_assert=$enableval
21079 else
21080   enable_assert='yes'
21081 fi
21082
21083
21084 if test "$enable_assert" = 'no'; then
21085
21086 $as_echo "#define NDEBUG 1" >>confdefs.h
21087
21088 fi
21089
21090 # Add configure option --enable-maintainer-mode which enables dependency
21091 # checking and generation useful to package maintainers.  This is made an
21092 # option to avoid confusing end users.
21093
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21095 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21096     # Check whether --enable-maintainer-mode was given.
21097 if test "${enable_maintainer_mode+set}" = set; then :
21098   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21099 else
21100   USE_MAINTAINER_MODE=no
21101 fi
21102
21103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21104 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21105    if test $USE_MAINTAINER_MODE = yes; then
21106   MAINTAINER_MODE_TRUE=
21107   MAINTAINER_MODE_FALSE='#'
21108 else
21109   MAINTAINER_MODE_TRUE='#'
21110   MAINTAINER_MODE_FALSE=
21111 fi
21112
21113   MAINT=$MAINTAINER_MODE_TRUE
21114
21115
21116
21117
21118 # Enable ccmalloc memory debugging support
21119 # Check whether --enable-ccmalloc was given.
21120 if test "${enable_ccmalloc+set}" = set; then :
21121   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21122 else
21123   enable_ccmalloc='no'
21124 fi
21125
21126
21127 # Enable Electric Fence memory debugging support
21128 # Check whether --enable-efence was given.
21129 if test "${enable_efence+set}" = set; then :
21130   enableval=$enable_efence; enable_efence=$enableval
21131 else
21132   enable_efence='no'
21133 fi
21134
21135
21136 # Enable prof-based profiling support
21137 # Check whether --enable-prof was given.
21138 if test "${enable_prof+set}" = set; then :
21139   enableval=$enable_prof; enable_prof=$enableval
21140 else
21141   enable_prof='no'
21142 fi
21143
21144
21145 # Enable gprof-based profiling support
21146 # Check whether --enable-gprof was given.
21147 if test "${enable_gprof+set}" = set; then :
21148   enableval=$enable_gprof; enable_gprof=$enableval
21149 else
21150   enable_gprof='no'
21151 fi
21152
21153
21154 # Enable gcov-based profiling support
21155 # Check whether --enable-gcov was given.
21156 if test "${enable_gcov+set}" = set; then :
21157   enableval=$enable_gcov; enable_gcov=$enableval
21158 else
21159   enable_gcov='no'
21160 fi
21161
21162
21163 enable_profiling='no'
21164 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21165     enable_profiling='yes'
21166     if test "$libtool_build_shared_libs" = 'yes'; then
21167         echo "Warning: Can not profile code using shared libraries"
21168     fi
21169 fi
21170
21171 # Magick API method prefix
21172
21173 # Check whether --with-method-prefix was given.
21174 if test "${with_method_prefix+set}" = set; then :
21175   withval=$with_method_prefix; with_method_prefix=$enableval
21176 else
21177   with_method_prefix=''
21178 fi
21179
21180
21181 if test "$with_method_prefix" != ''; then
21182
21183 cat >>confdefs.h <<_ACEOF
21184 #define NAMESPACE_PREFIX $with_method_prefix
21185 _ACEOF
21186
21187 fi
21188
21189 # Number of bits in a Quantum
21190
21191 # Check whether --with-quantum-depth was given.
21192 if test "${with_quantum_depth+set}" = set; then :
21193   withval=$with_quantum_depth; with_quantum_depth=$withval
21194 else
21195   with_quantum_depth=16
21196 fi
21197
21198
21199 if test "$with_quantum_depth" != '8'; then
21200     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21201 fi
21202
21203 case "${with_quantum_depth}" in
21204     8 ) ;;
21205     16 ) ;;
21206     32 ) ;;
21207     64 ) ;;
21208     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21209 esac
21210 QUANTUM_DEPTH="$with_quantum_depth"
21211
21212 cat >>confdefs.h <<_ACEOF
21213 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21214 _ACEOF
21215
21216
21217 # Set pixel cache threshold
21218
21219 # Check whether --with-cache was given.
21220 if test "${with_cache+set}" = set; then :
21221   withval=$with_cache; with_cache=$withval
21222 else
21223   with_cache=''
21224 fi
21225
21226
21227 if test "$with_cache" != ''; then
21228
21229 cat >>confdefs.h <<_ACEOF
21230 #define PixelCacheThreshold $with_cache
21231 _ACEOF
21232
21233     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21234 fi
21235
21236 # Disable/Enable support for full delegate paths
21237
21238 # Check whether --with-frozenpaths was given.
21239 if test "${with_frozenpaths+set}" = set; then :
21240   withval=$with_frozenpaths; with_frozenpaths=$withval
21241 else
21242   with_frozenpaths='no'
21243 fi
21244
21245
21246 # Enable build/install of Magick++
21247
21248 # Check whether --with-magick-plus-plus was given.
21249 if test "${with_magick_plus_plus+set}" = set; then :
21250   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21251 else
21252   with_magick_plus_plus='yes'
21253 fi
21254
21255
21256 # Disable build/install of PerlMagick.
21257
21258 # Check whether --with-perl was given.
21259 if test "${with_perl+set}" = set; then :
21260   withval=$with_perl; with_perl=$withval
21261 else
21262   with_perl='no'
21263 fi
21264
21265
21266 # Options to pass when configuring PerlMagick
21267
21268 # Check whether --with-perl-options was given.
21269 if test "${with_perl_options+set}" = set; then :
21270   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21271 fi
21272
21273
21274
21275 # Enable umem, object-caching memory allocation library.
21276
21277 # Check whether --with-umem was given.
21278 if test "${with_umem+set}" = set; then :
21279   withval=$with_umem; with_umem=$withval
21280 else
21281   with_umem='no'
21282 fi
21283
21284 if test "$with_umem" != 'yes' ; then
21285     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21286 fi
21287
21288 #
21289 # Specify path to shared libstdc++ if not in normal location
21290 #
21291
21292 # Check whether --with-libstdc was given.
21293 if test "${with_libstdc+set}" = set; then :
21294   withval=$with_libstdc; with_libstdc=$withval
21295 else
21296   with_libstdc=''
21297 fi
21298
21299
21300 if test "$with_libstdc" != ''; then
21301     if test -d "$with_libstdc"; then
21302         LIBSTDCLDFLAGS="-L$with_libstdc"
21303     fi
21304 fi
21305
21306
21307 # Does gcc required -traditional?
21308 if test $ac_cv_c_compiler_gnu = yes; then
21309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21310 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21311 if ${ac_cv_prog_gcc_traditional+:} false; then :
21312   $as_echo_n "(cached) " >&6
21313 else
21314     ac_pattern="Autoconf.*'x'"
21315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h.  */
21317 #include <sgtty.h>
21318 Autoconf TIOCGETP
21319 _ACEOF
21320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21321   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21322   ac_cv_prog_gcc_traditional=yes
21323 else
21324   ac_cv_prog_gcc_traditional=no
21325 fi
21326 rm -f conftest*
21327
21328
21329   if test $ac_cv_prog_gcc_traditional = no; then
21330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h.  */
21332 #include <termio.h>
21333 Autoconf TCGETA
21334 _ACEOF
21335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21336   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21337   ac_cv_prog_gcc_traditional=yes
21338 fi
21339 rm -f conftest*
21340
21341   fi
21342 fi
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21344 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21345   if test $ac_cv_prog_gcc_traditional = yes; then
21346     CC="$CC -traditional"
21347   fi
21348 fi
21349
21350
21351 ########
21352 #
21353 # Set defines required to build DLLs and modules using MinGW
21354 #
21355 ########
21356 # These options are set for multi-thread DLL module build
21357 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21358 #  module:              _DLL
21359 #  executable/Magick++: _DLL _MAGICKMOD_
21360 MODULE_EXTRA_CPPFLAGS=''
21361 LIBRARY_EXTRA_CPPFLAGS=''
21362 if test "${native_win32_build}" = 'yes'; then
21363     if test "${libtool_build_shared_libs}" = 'yes'; then
21364         CPPFLAGS="$CPPFLAGS -D_DLL"
21365         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21366         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21367         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21368         if test "$with_modules" = 'yes'; then
21369             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21370         else
21371             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21372         fi
21373     else
21374         CPPFLAGS="$CPPFLAGS -D_LIB"
21375         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21376         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21377     fi
21378     if test "$with_threads" = 'yes'; then
21379          CPPFLAGS="$CPPFLAGS -D_MT"
21380          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21381          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21382     fi
21383 fi
21384
21385
21386
21387 # Check standard headers
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21389 $as_echo_n "checking for ANSI C header files... " >&6; }
21390 if ${ac_cv_header_stdc+:} false; then :
21391   $as_echo_n "(cached) " >&6
21392 else
21393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h.  */
21395 #include <stdlib.h>
21396 #include <stdarg.h>
21397 #include <string.h>
21398 #include <float.h>
21399
21400 int
21401 main ()
21402 {
21403
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 if ac_fn_c_try_compile "$LINENO"; then :
21409   ac_cv_header_stdc=yes
21410 else
21411   ac_cv_header_stdc=no
21412 fi
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414
21415 if test $ac_cv_header_stdc = yes; then
21416   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h.  */
21419 #include <string.h>
21420
21421 _ACEOF
21422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21423   $EGREP "memchr" >/dev/null 2>&1; then :
21424
21425 else
21426   ac_cv_header_stdc=no
21427 fi
21428 rm -f conftest*
21429
21430 fi
21431
21432 if test $ac_cv_header_stdc = yes; then
21433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435 /* end confdefs.h.  */
21436 #include <stdlib.h>
21437
21438 _ACEOF
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440   $EGREP "free" >/dev/null 2>&1; then :
21441
21442 else
21443   ac_cv_header_stdc=no
21444 fi
21445 rm -f conftest*
21446
21447 fi
21448
21449 if test $ac_cv_header_stdc = yes; then
21450   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21451   if test "$cross_compiling" = yes; then :
21452   :
21453 else
21454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h.  */
21456 #include <ctype.h>
21457 #include <stdlib.h>
21458 #if ((' ' & 0x0FF) == 0x020)
21459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21461 #else
21462 # define ISLOWER(c) \
21463                    (('a' <= (c) && (c) <= 'i') \
21464                      || ('j' <= (c) && (c) <= 'r') \
21465                      || ('s' <= (c) && (c) <= 'z'))
21466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21467 #endif
21468
21469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21470 int
21471 main ()
21472 {
21473   int i;
21474   for (i = 0; i < 256; i++)
21475     if (XOR (islower (i), ISLOWER (i))
21476         || toupper (i) != TOUPPER (i))
21477       return 2;
21478   return 0;
21479 }
21480 _ACEOF
21481 if ac_fn_c_try_run "$LINENO"; then :
21482
21483 else
21484   ac_cv_header_stdc=no
21485 fi
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487   conftest.$ac_objext conftest.beam conftest.$ac_ext
21488 fi
21489
21490 fi
21491 fi
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21493 $as_echo "$ac_cv_header_stdc" >&6; }
21494 if test $ac_cv_header_stdc = yes; then
21495
21496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21497
21498 fi
21499
21500 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21502     header files.  Compilation cannot proceed.  Please install the ANSI C
21503     headers and rerun this script." >&5
21504 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21505     header files.  Compilation cannot proceed.  Please install the ANSI C
21506     headers and rerun this script." >&2;};
21507 fi
21508
21509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21510 $as_echo_n "checking whether to enable assertions... " >&6; }
21511   # Check whether --enable-assert was given.
21512 if test "${enable_assert+set}" = set; then :
21513   enableval=$enable_assert; ac_enable_assert=$enableval
21514      if       test "x$enableval" = xno; then :
21515
21516 $as_echo "#define NDEBUG 1" >>confdefs.h
21517
21518 elif test "x$enableval" != xyes; then :
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21520 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21521         ac_enable_assert=yes
21522 fi
21523 else
21524   ac_enable_assert=yes
21525 fi
21526
21527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21528 $as_echo "$ac_enable_assert" >&6; }
21529
21530 ac_header_dirent=no
21531 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21532   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21534 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21535 if eval \${$as_ac_Header+:} false; then :
21536   $as_echo_n "(cached) " >&6
21537 else
21538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539 /* end confdefs.h.  */
21540 #include <sys/types.h>
21541 #include <$ac_hdr>
21542
21543 int
21544 main ()
21545 {
21546 if ((DIR *) 0)
21547 return 0;
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 if ac_fn_c_try_compile "$LINENO"; then :
21553   eval "$as_ac_Header=yes"
21554 else
21555   eval "$as_ac_Header=no"
21556 fi
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 fi
21559 eval ac_res=\$$as_ac_Header
21560                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21561 $as_echo "$ac_res" >&6; }
21562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21563   cat >>confdefs.h <<_ACEOF
21564 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21565 _ACEOF
21566
21567 ac_header_dirent=$ac_hdr; break
21568 fi
21569
21570 done
21571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21572 if test $ac_header_dirent = dirent.h; then
21573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21574 $as_echo_n "checking for library containing opendir... " >&6; }
21575 if ${ac_cv_search_opendir+:} false; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   ac_func_search_save_LIBS=$LIBS
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h.  */
21581
21582 /* Override any GCC internal prototype to avoid an error.
21583    Use char because int might match the return type of a GCC
21584    builtin and then its argument prototype would still apply.  */
21585 #ifdef __cplusplus
21586 extern "C"
21587 #endif
21588 char opendir ();
21589 int
21590 main ()
21591 {
21592 return opendir ();
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 for ac_lib in '' dir; do
21598   if test -z "$ac_lib"; then
21599     ac_res="none required"
21600   else
21601     ac_res=-l$ac_lib
21602     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21603   fi
21604   if ac_fn_c_try_link "$LINENO"; then :
21605   ac_cv_search_opendir=$ac_res
21606 fi
21607 rm -f core conftest.err conftest.$ac_objext \
21608     conftest$ac_exeext
21609   if ${ac_cv_search_opendir+:} false; then :
21610   break
21611 fi
21612 done
21613 if ${ac_cv_search_opendir+:} false; then :
21614
21615 else
21616   ac_cv_search_opendir=no
21617 fi
21618 rm conftest.$ac_ext
21619 LIBS=$ac_func_search_save_LIBS
21620 fi
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21622 $as_echo "$ac_cv_search_opendir" >&6; }
21623 ac_res=$ac_cv_search_opendir
21624 if test "$ac_res" != no; then :
21625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21626
21627 fi
21628
21629 else
21630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21631 $as_echo_n "checking for library containing opendir... " >&6; }
21632 if ${ac_cv_search_opendir+:} false; then :
21633   $as_echo_n "(cached) " >&6
21634 else
21635   ac_func_search_save_LIBS=$LIBS
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h.  */
21638
21639 /* Override any GCC internal prototype to avoid an error.
21640    Use char because int might match the return type of a GCC
21641    builtin and then its argument prototype would still apply.  */
21642 #ifdef __cplusplus
21643 extern "C"
21644 #endif
21645 char opendir ();
21646 int
21647 main ()
21648 {
21649 return opendir ();
21650   ;
21651   return 0;
21652 }
21653 _ACEOF
21654 for ac_lib in '' x; do
21655   if test -z "$ac_lib"; then
21656     ac_res="none required"
21657   else
21658     ac_res=-l$ac_lib
21659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21660   fi
21661   if ac_fn_c_try_link "$LINENO"; then :
21662   ac_cv_search_opendir=$ac_res
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext \
21665     conftest$ac_exeext
21666   if ${ac_cv_search_opendir+:} false; then :
21667   break
21668 fi
21669 done
21670 if ${ac_cv_search_opendir+:} false; then :
21671
21672 else
21673   ac_cv_search_opendir=no
21674 fi
21675 rm conftest.$ac_ext
21676 LIBS=$ac_func_search_save_LIBS
21677 fi
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21679 $as_echo "$ac_cv_search_opendir" >&6; }
21680 ac_res=$ac_cv_search_opendir
21681 if test "$ac_res" != no; then :
21682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21683
21684 fi
21685
21686 fi
21687
21688
21689 # Check additional headers
21690 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 xlocale.h
21691 do :
21692   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21695   cat >>confdefs.h <<_ACEOF
21696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21697 _ACEOF
21698
21699 fi
21700
21701 done
21702
21703
21704 ########
21705 #
21706 # Checks for typedefs, structures, and compiler characteristics.
21707 #
21708 ########
21709
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21711 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21712 if ${ac_cv_header_stdbool_h+:} false; then :
21713   $as_echo_n "(cached) " >&6
21714 else
21715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h.  */
21717
21718 #include <stdbool.h>
21719 #ifndef bool
21720  "error: bool is not defined"
21721 #endif
21722 #ifndef false
21723  "error: false is not defined"
21724 #endif
21725 #if false
21726  "error: false is not 0"
21727 #endif
21728 #ifndef true
21729  "error: true is not defined"
21730 #endif
21731 #if true != 1
21732  "error: true is not 1"
21733 #endif
21734 #ifndef __bool_true_false_are_defined
21735  "error: __bool_true_false_are_defined is not defined"
21736 #endif
21737
21738         struct s { _Bool s: 1; _Bool t; } s;
21739
21740         char a[true == 1 ? 1 : -1];
21741         char b[false == 0 ? 1 : -1];
21742         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21743         char d[(bool) 0.5 == true ? 1 : -1];
21744         /* See body of main program for 'e'.  */
21745         char f[(_Bool) 0.0 == false ? 1 : -1];
21746         char g[true];
21747         char h[sizeof (_Bool)];
21748         char i[sizeof s.t];
21749         enum { j = false, k = true, l = false * true, m = true * 256 };
21750         /* The following fails for
21751            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21752         _Bool n[m];
21753         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21754         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21755         /* Catch a bug in an HP-UX C compiler.  See
21756            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21757            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21758          */
21759         _Bool q = true;
21760         _Bool *pq = &q;
21761
21762 int
21763 main ()
21764 {
21765
21766         bool e = &s;
21767         *pq |= q;
21768         *pq |= ! q;
21769         /* Refer to every declared value, to avoid compiler optimizations.  */
21770         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21771                 + !m + !n + !o + !p + !q + !pq);
21772
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 if ac_fn_c_try_compile "$LINENO"; then :
21778   ac_cv_header_stdbool_h=yes
21779 else
21780   ac_cv_header_stdbool_h=no
21781 fi
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783 fi
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21785 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21786 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21787 if test "x$ac_cv_type__Bool" = xyes; then :
21788
21789 cat >>confdefs.h <<_ACEOF
21790 #define HAVE__BOOL 1
21791 _ACEOF
21792
21793
21794 fi
21795
21796 if test $ac_cv_header_stdbool_h = yes; then
21797
21798 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21799
21800 fi
21801
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21803 $as_echo_n "checking for working volatile... " >&6; }
21804 if ${ac_cv_c_volatile+:} false; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h.  */
21809
21810 int
21811 main ()
21812 {
21813
21814 volatile int x;
21815 int * volatile y = (int *) 0;
21816 return !x && !y;
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 if ac_fn_c_try_compile "$LINENO"; then :
21822   ac_cv_c_volatile=yes
21823 else
21824   ac_cv_c_volatile=no
21825 fi
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827 fi
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21829 $as_echo "$ac_cv_c_volatile" >&6; }
21830 if test $ac_cv_c_volatile = no; then
21831
21832 $as_echo "#define volatile /**/" >>confdefs.h
21833
21834 fi
21835
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21837 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21838 if ${ac_cv_c_stringize+:} false; then :
21839   $as_echo_n "(cached) " >&6
21840 else
21841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h.  */
21843 #define x(y) #y
21844
21845 char *s = x(teststring);
21846 _ACEOF
21847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21848   $EGREP "#teststring" >/dev/null 2>&1; then :
21849   ac_cv_c_stringize=no
21850 else
21851   ac_cv_c_stringize=yes
21852 fi
21853 rm -f conftest*
21854
21855 fi
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21857 $as_echo "$ac_cv_c_stringize" >&6; }
21858 if test $ac_cv_c_stringize = yes; then
21859
21860 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21861
21862 fi
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21865 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21866 if ${ac_cv_header_stat_broken+:} false; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h.  */
21871 #include <sys/types.h>
21872 #include <sys/stat.h>
21873
21874 #if defined S_ISBLK && defined S_IFDIR
21875 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21876 #endif
21877
21878 #if defined S_ISBLK && defined S_IFCHR
21879 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21880 #endif
21881
21882 #if defined S_ISLNK && defined S_IFREG
21883 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21884 #endif
21885
21886 #if defined S_ISSOCK && defined S_IFREG
21887 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21888 #endif
21889
21890 _ACEOF
21891 if ac_fn_c_try_compile "$LINENO"; then :
21892   ac_cv_header_stat_broken=no
21893 else
21894   ac_cv_header_stat_broken=yes
21895 fi
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897 fi
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21899 $as_echo "$ac_cv_header_stat_broken" >&6; }
21900 if test $ac_cv_header_stat_broken = yes; then
21901
21902 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21903
21904 fi
21905
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21907 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21908 if ${ac_cv_header_time+:} false; then :
21909   $as_echo_n "(cached) " >&6
21910 else
21911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h.  */
21913 #include <sys/types.h>
21914 #include <sys/time.h>
21915 #include <time.h>
21916
21917 int
21918 main ()
21919 {
21920 if ((struct tm *) 0)
21921 return 0;
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 if ac_fn_c_try_compile "$LINENO"; then :
21927   ac_cv_header_time=yes
21928 else
21929   ac_cv_header_time=no
21930 fi
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 fi
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21934 $as_echo "$ac_cv_header_time" >&6; }
21935 if test $ac_cv_header_time = yes; then
21936
21937 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21938
21939 fi
21940
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21942 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21943 if ${ac_cv_struct_tm+:} false; then :
21944   $as_echo_n "(cached) " >&6
21945 else
21946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h.  */
21948 #include <sys/types.h>
21949 #include <time.h>
21950
21951 int
21952 main ()
21953 {
21954 struct tm tm;
21955                                      int *p = &tm.tm_sec;
21956                                      return !p;
21957   ;
21958   return 0;
21959 }
21960 _ACEOF
21961 if ac_fn_c_try_compile "$LINENO"; then :
21962   ac_cv_struct_tm=time.h
21963 else
21964   ac_cv_struct_tm=sys/time.h
21965 fi
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967 fi
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21969 $as_echo "$ac_cv_struct_tm" >&6; }
21970 if test $ac_cv_struct_tm = sys/time.h; then
21971
21972 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21973
21974 fi
21975
21976 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21977 #include <$ac_cv_struct_tm>
21978
21979 "
21980 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21981
21982 cat >>confdefs.h <<_ACEOF
21983 #define HAVE_STRUCT_TM_TM_ZONE 1
21984 _ACEOF
21985
21986
21987 fi
21988
21989 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21990
21991 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21992
21993 else
21994   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21995 "
21996 if test "x$ac_cv_have_decl_tzname" = xyes; then :
21997   ac_have_decl=1
21998 else
21999   ac_have_decl=0
22000 fi
22001
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_DECL_TZNAME $ac_have_decl
22004 _ACEOF
22005
22006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22007 $as_echo_n "checking for tzname... " >&6; }
22008 if ${ac_cv_var_tzname+:} false; then :
22009   $as_echo_n "(cached) " >&6
22010 else
22011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h.  */
22013 #include <time.h>
22014 #if !HAVE_DECL_TZNAME
22015 extern char *tzname[];
22016 #endif
22017
22018 int
22019 main ()
22020 {
22021 return tzname[0][0];
22022   ;
22023   return 0;
22024 }
22025 _ACEOF
22026 if ac_fn_c_try_link "$LINENO"; then :
22027   ac_cv_var_tzname=yes
22028 else
22029   ac_cv_var_tzname=no
22030 fi
22031 rm -f core conftest.err conftest.$ac_objext \
22032     conftest$ac_exeext conftest.$ac_ext
22033 fi
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22035 $as_echo "$ac_cv_var_tzname" >&6; }
22036   if test $ac_cv_var_tzname = yes; then
22037
22038 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22039
22040   fi
22041 fi
22042
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22044 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22045 if ${ac_cv_sys_interpreter+:} false; then :
22046   $as_echo_n "(cached) " >&6
22047 else
22048   echo '#! /bin/cat
22049 exit 69
22050 ' >conftest
22051 chmod u+x conftest
22052 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22053 if test $? -ne 69; then
22054    ac_cv_sys_interpreter=yes
22055 else
22056    ac_cv_sys_interpreter=no
22057 fi
22058 rm -f conftest
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22061 $as_echo "$ac_cv_sys_interpreter" >&6; }
22062 interpval=$ac_cv_sys_interpreter
22063
22064
22065 # If the C compiler supports the keyword inline, do nothing. Otherwise
22066 # define inline to __inline__ or __inline if it accepts one of those,
22067 # otherwise define inline to be empty.
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22069 $as_echo_n "checking for inline... " >&6; }
22070 if ${ac_cv_c_inline+:} false; then :
22071   $as_echo_n "(cached) " >&6
22072 else
22073   ac_cv_c_inline=no
22074 for ac_kw in inline __inline__ __inline; do
22075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h.  */
22077 #ifndef __cplusplus
22078 typedef int foo_t;
22079 static $ac_kw foo_t static_foo () {return 0; }
22080 $ac_kw foo_t foo () {return 0; }
22081 #endif
22082
22083 _ACEOF
22084 if ac_fn_c_try_compile "$LINENO"; then :
22085   ac_cv_c_inline=$ac_kw
22086 fi
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088   test "$ac_cv_c_inline" != no && break
22089 done
22090
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22093 $as_echo "$ac_cv_c_inline" >&6; }
22094
22095 case $ac_cv_c_inline in
22096   inline | yes) ;;
22097   *)
22098     case $ac_cv_c_inline in
22099       no) ac_val=;;
22100       *) ac_val=$ac_cv_c_inline;;
22101     esac
22102     cat >>confdefs.h <<_ACEOF
22103 #ifndef __cplusplus
22104 #define inline $ac_val
22105 #endif
22106 _ACEOF
22107     ;;
22108 esac
22109
22110
22111 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22112 # define restrict to __restrict__ or __restrict if it accepts one of those,
22113 # otherwise define restrict to be empty.
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22115 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22116 if ${ac_cv_c_restrict+:} false; then :
22117   $as_echo_n "(cached) " >&6
22118 else
22119   ac_cv_c_restrict=no
22120    # The order here caters to the fact that C++ does not require restrict.
22121    for ac_kw in __restrict __restrict__ _Restrict restrict; do
22122      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h.  */
22124 typedef int * int_ptr;
22125         int foo (int_ptr $ac_kw ip) {
22126         return ip[0];
22127        }
22128 int
22129 main ()
22130 {
22131 int s[1];
22132         int * $ac_kw t = s;
22133         t[0] = 0;
22134         return foo(t)
22135   ;
22136   return 0;
22137 }
22138 _ACEOF
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140   ac_cv_c_restrict=$ac_kw
22141 fi
22142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143      test "$ac_cv_c_restrict" != no && break
22144    done
22145
22146 fi
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22148 $as_echo "$ac_cv_c_restrict" >&6; }
22149
22150  case $ac_cv_c_restrict in
22151    restrict) ;;
22152    no) $as_echo "#define restrict /**/" >>confdefs.h
22153  ;;
22154    *)  cat >>confdefs.h <<_ACEOF
22155 #define restrict $ac_cv_c_restrict
22156 _ACEOF
22157  ;;
22158  esac
22159
22160
22161 # If words are stored with the most significant byte first (like
22162 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22164 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22165 if ${ac_cv_c_bigendian+:} false; then :
22166   $as_echo_n "(cached) " >&6
22167 else
22168   ac_cv_c_bigendian=unknown
22169     # See if we're dealing with a universal compiler.
22170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h.  */
22172 #ifndef __APPLE_CC__
22173                not a universal capable compiler
22174              #endif
22175              typedef int dummy;
22176
22177 _ACEOF
22178 if ac_fn_c_try_compile "$LINENO"; then :
22179
22180         # Check for potential -arch flags.  It is not universal unless
22181         # there are at least two -arch flags with different values.
22182         ac_arch=
22183         ac_prev=
22184         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22185          if test -n "$ac_prev"; then
22186            case $ac_word in
22187              i?86 | x86_64 | ppc | ppc64)
22188                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22189                  ac_arch=$ac_word
22190                else
22191                  ac_cv_c_bigendian=universal
22192                  break
22193                fi
22194                ;;
22195            esac
22196            ac_prev=
22197          elif test "x$ac_word" = "x-arch"; then
22198            ac_prev=arch
22199          fi
22200        done
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203     if test $ac_cv_c_bigendian = unknown; then
22204       # See if sys/param.h defines the BYTE_ORDER macro.
22205       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h.  */
22207 #include <sys/types.h>
22208              #include <sys/param.h>
22209
22210 int
22211 main ()
22212 {
22213 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22214                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22215                      && LITTLE_ENDIAN)
22216               bogus endian macros
22217              #endif
22218
22219   ;
22220   return 0;
22221 }
22222 _ACEOF
22223 if ac_fn_c_try_compile "$LINENO"; then :
22224   # It does; now see whether it defined to BIG_ENDIAN or not.
22225          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h.  */
22227 #include <sys/types.h>
22228                 #include <sys/param.h>
22229
22230 int
22231 main ()
22232 {
22233 #if BYTE_ORDER != BIG_ENDIAN
22234                  not big endian
22235                 #endif
22236
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 if ac_fn_c_try_compile "$LINENO"; then :
22242   ac_cv_c_bigendian=yes
22243 else
22244   ac_cv_c_bigendian=no
22245 fi
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 fi
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249     fi
22250     if test $ac_cv_c_bigendian = unknown; then
22251       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h.  */
22254 #include <limits.h>
22255
22256 int
22257 main ()
22258 {
22259 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22260               bogus endian macros
22261              #endif
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 if ac_fn_c_try_compile "$LINENO"; then :
22268   # It does; now see whether it defined to _BIG_ENDIAN or not.
22269          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h.  */
22271 #include <limits.h>
22272
22273 int
22274 main ()
22275 {
22276 #ifndef _BIG_ENDIAN
22277                  not big endian
22278                 #endif
22279
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 if ac_fn_c_try_compile "$LINENO"; then :
22285   ac_cv_c_bigendian=yes
22286 else
22287   ac_cv_c_bigendian=no
22288 fi
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 fi
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292     fi
22293     if test $ac_cv_c_bigendian = unknown; then
22294       # Compile a test program.
22295       if test "$cross_compiling" = yes; then :
22296   # Try to guess by grepping values from an object file.
22297          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22298 /* end confdefs.h.  */
22299 short int ascii_mm[] =
22300                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22301                 short int ascii_ii[] =
22302                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22303                 int use_ascii (int i) {
22304                   return ascii_mm[i] + ascii_ii[i];
22305                 }
22306                 short int ebcdic_ii[] =
22307                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22308                 short int ebcdic_mm[] =
22309                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22310                 int use_ebcdic (int i) {
22311                   return ebcdic_mm[i] + ebcdic_ii[i];
22312                 }
22313                 extern int foo;
22314
22315 int
22316 main ()
22317 {
22318 return use_ascii (foo) == use_ebcdic (foo);
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 if ac_fn_c_try_compile "$LINENO"; then :
22324   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22325               ac_cv_c_bigendian=yes
22326             fi
22327             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22328               if test "$ac_cv_c_bigendian" = unknown; then
22329                 ac_cv_c_bigendian=no
22330               else
22331                 # finding both strings is unlikely to happen, but who knows?
22332                 ac_cv_c_bigendian=unknown
22333               fi
22334             fi
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 else
22338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h.  */
22340 $ac_includes_default
22341 int
22342 main ()
22343 {
22344
22345              /* Are we little or big endian?  From Harbison&Steele.  */
22346              union
22347              {
22348                long int l;
22349                char c[sizeof (long int)];
22350              } u;
22351              u.l = 1;
22352              return u.c[sizeof (long int) - 1] == 1;
22353
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 if ac_fn_c_try_run "$LINENO"; then :
22359   ac_cv_c_bigendian=no
22360 else
22361   ac_cv_c_bigendian=yes
22362 fi
22363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22364   conftest.$ac_objext conftest.beam conftest.$ac_ext
22365 fi
22366
22367     fi
22368 fi
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22370 $as_echo "$ac_cv_c_bigendian" >&6; }
22371  case $ac_cv_c_bigendian in #(
22372    yes)
22373      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22374 ;; #(
22375    no)
22376       ;; #(
22377    universal)
22378
22379 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22380
22381      ;; #(
22382    *)
22383      as_fn_error $? "unknown endianness
22384  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22385  esac
22386
22387
22388 # Define to a suitable type, if standard headers do not define it.
22389 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22390 case $ac_cv_c_int8_t in #(
22391   no|yes) ;; #(
22392   *)
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define int8_t $ac_cv_c_int8_t
22396 _ACEOF
22397 ;;
22398 esac
22399
22400 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22401 case $ac_cv_c_int16_t in #(
22402   no|yes) ;; #(
22403   *)
22404
22405 cat >>confdefs.h <<_ACEOF
22406 #define int16_t $ac_cv_c_int16_t
22407 _ACEOF
22408 ;;
22409 esac
22410
22411 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22412 case $ac_cv_c_int32_t in #(
22413   no|yes) ;; #(
22414   *)
22415
22416 cat >>confdefs.h <<_ACEOF
22417 #define int32_t $ac_cv_c_int32_t
22418 _ACEOF
22419 ;;
22420 esac
22421
22422 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22423 case $ac_cv_c_int64_t in #(
22424   no|yes) ;; #(
22425   *)
22426
22427 cat >>confdefs.h <<_ACEOF
22428 #define int64_t $ac_cv_c_int64_t
22429 _ACEOF
22430 ;;
22431 esac
22432
22433
22434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22435 $as_echo_n "checking for long long int... " >&6; }
22436 if ${ac_cv_type_long_long_int+:} false; then :
22437   $as_echo_n "(cached) " >&6
22438 else
22439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h.  */
22441
22442   /* For now, do not test the preprocessor; as of 2007 there are too many
22443          implementations with broken preprocessors.  Perhaps this can
22444          be revisited in 2012.  In the meantime, code should not expect
22445          #if to work with literals wider than 32 bits.  */
22446       /* Test literals.  */
22447       long long int ll = 9223372036854775807ll;
22448       long long int nll = -9223372036854775807LL;
22449       unsigned long long int ull = 18446744073709551615ULL;
22450       /* Test constant expressions.   */
22451       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22452                      ? 1 : -1)];
22453       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22454                      ? 1 : -1)];
22455       int i = 63;
22456 int
22457 main ()
22458 {
22459 /* Test availability of runtime routines for shift and division.  */
22460       long long int llmax = 9223372036854775807ll;
22461       unsigned long long int ullmax = 18446744073709551615ull;
22462       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22463               | (llmax / ll) | (llmax % ll)
22464               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22465               | (ullmax / ull) | (ullmax % ull));
22466   ;
22467   return 0;
22468 }
22469
22470 _ACEOF
22471 if ac_fn_c_try_link "$LINENO"; then :
22472                           if test "$cross_compiling" = yes; then :
22473   ac_cv_type_long_long_int=yes
22474 else
22475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h.  */
22477 #include <limits.h>
22478                #ifndef LLONG_MAX
22479                # define HALF \
22480                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22481                # define LLONG_MAX (HALF - 1 + HALF)
22482                #endif
22483 int
22484 main ()
22485 {
22486 long long int n = 1;
22487                int i;
22488                for (i = 0; ; i++)
22489                  {
22490                    long long int m = n << i;
22491                    if (m >> i != n)
22492                      return 1;
22493                    if (LLONG_MAX / 2 < m)
22494                      break;
22495                  }
22496                return 0;
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 if ac_fn_c_try_run "$LINENO"; then :
22502   ac_cv_type_long_long_int=yes
22503 else
22504   ac_cv_type_long_long_int=no
22505 fi
22506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22507   conftest.$ac_objext conftest.beam conftest.$ac_ext
22508 fi
22509
22510 else
22511   ac_cv_type_long_long_int=no
22512 fi
22513 rm -f core conftest.err conftest.$ac_objext \
22514     conftest$ac_exeext conftest.$ac_ext
22515 fi
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22517 $as_echo "$ac_cv_type_long_long_int" >&6; }
22518   if test $ac_cv_type_long_long_int = yes; then
22519
22520 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22521
22522   fi
22523
22524
22525
22526   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22527 if test "x$ac_cv_type_intmax_t" = xyes; then :
22528
22529 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22530
22531 else
22532   test $ac_cv_type_long_long_int = yes \
22533        && ac_type='long long int' \
22534        || ac_type='long int'
22535
22536 cat >>confdefs.h <<_ACEOF
22537 #define intmax_t $ac_type
22538 _ACEOF
22539
22540 fi
22541
22542
22543
22544   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22545 if test "x$ac_cv_type_intptr_t" = xyes; then :
22546
22547 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22548
22549 else
22550   for ac_type in 'int' 'long int' 'long long int'; do
22551        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h.  */
22553 $ac_includes_default
22554 int
22555 main ()
22556 {
22557 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22558 test_array [0] = 0
22559
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 if ac_fn_c_try_compile "$LINENO"; then :
22565
22566 cat >>confdefs.h <<_ACEOF
22567 #define intptr_t $ac_type
22568 _ACEOF
22569
22570           ac_type=
22571 fi
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573        test -z "$ac_type" && break
22574      done
22575 fi
22576
22577
22578
22579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22580 $as_echo_n "checking for long double... " >&6; }
22581 if ${ac_cv_type_long_double+:} false; then :
22582   $as_echo_n "(cached) " >&6
22583 else
22584   if test "$GCC" = yes; then
22585        ac_cv_type_long_double=yes
22586      else
22587        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h.  */
22589 /* The Stardent Vistra knows sizeof (long double), but does
22590                  not support it.  */
22591               long double foo = 0.0L;
22592 int
22593 main ()
22594 {
22595 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22596               sizeof (double) <= sizeof (long double))];
22597 test_array [0] = 0
22598
22599   ;
22600   return 0;
22601 }
22602 _ACEOF
22603 if ac_fn_c_try_compile "$LINENO"; then :
22604   ac_cv_type_long_double=yes
22605 else
22606   ac_cv_type_long_double=no
22607 fi
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609      fi
22610 fi
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22612 $as_echo "$ac_cv_type_long_double" >&6; }
22613   if test $ac_cv_type_long_double = yes; then
22614
22615 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22616
22617   fi
22618
22619
22620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22621 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22622 if ${ac_cv_type_long_double_wider+:} false; then :
22623   $as_echo_n "(cached) " >&6
22624 else
22625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h.  */
22627 #include <float.h>
22628             long double const a[] =
22629               {
22630                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22631                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22632               };
22633             long double
22634             f (long double x)
22635             {
22636                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22637                         + (x ? f (x) : 'c'));
22638             }
22639
22640 int
22641 main ()
22642 {
22643 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22644                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
22645                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
22646                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22647             && (int) LDBL_EPSILON == 0
22648           )];
22649 test_array [0] = 0
22650
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 if ac_fn_c_try_compile "$LINENO"; then :
22656   ac_cv_type_long_double_wider=yes
22657 else
22658   ac_cv_type_long_double_wider=no
22659 fi
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 fi
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22663 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22664   if test $ac_cv_type_long_double_wider = yes; then
22665
22666 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22667
22668   fi
22669
22670
22671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22672 $as_echo_n "checking for long long int... " >&6; }
22673 if ${ac_cv_type_long_long_int+:} false; then :
22674   $as_echo_n "(cached) " >&6
22675 else
22676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h.  */
22678
22679   /* For now, do not test the preprocessor; as of 2007 there are too many
22680          implementations with broken preprocessors.  Perhaps this can
22681          be revisited in 2012.  In the meantime, code should not expect
22682          #if to work with literals wider than 32 bits.  */
22683       /* Test literals.  */
22684       long long int ll = 9223372036854775807ll;
22685       long long int nll = -9223372036854775807LL;
22686       unsigned long long int ull = 18446744073709551615ULL;
22687       /* Test constant expressions.   */
22688       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22689                      ? 1 : -1)];
22690       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22691                      ? 1 : -1)];
22692       int i = 63;
22693 int
22694 main ()
22695 {
22696 /* Test availability of runtime routines for shift and division.  */
22697       long long int llmax = 9223372036854775807ll;
22698       unsigned long long int ullmax = 18446744073709551615ull;
22699       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22700               | (llmax / ll) | (llmax % ll)
22701               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22702               | (ullmax / ull) | (ullmax % ull));
22703   ;
22704   return 0;
22705 }
22706
22707 _ACEOF
22708 if ac_fn_c_try_link "$LINENO"; then :
22709                           if test "$cross_compiling" = yes; then :
22710   ac_cv_type_long_long_int=yes
22711 else
22712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714 #include <limits.h>
22715                #ifndef LLONG_MAX
22716                # define HALF \
22717                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22718                # define LLONG_MAX (HALF - 1 + HALF)
22719                #endif
22720 int
22721 main ()
22722 {
22723 long long int n = 1;
22724                int i;
22725                for (i = 0; ; i++)
22726                  {
22727                    long long int m = n << i;
22728                    if (m >> i != n)
22729                      return 1;
22730                    if (LLONG_MAX / 2 < m)
22731                      break;
22732                  }
22733                return 0;
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 if ac_fn_c_try_run "$LINENO"; then :
22739   ac_cv_type_long_long_int=yes
22740 else
22741   ac_cv_type_long_long_int=no
22742 fi
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22744   conftest.$ac_objext conftest.beam conftest.$ac_ext
22745 fi
22746
22747 else
22748   ac_cv_type_long_long_int=no
22749 fi
22750 rm -f core conftest.err conftest.$ac_objext \
22751     conftest$ac_exeext conftest.$ac_ext
22752 fi
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22754 $as_echo "$ac_cv_type_long_long_int" >&6; }
22755   if test $ac_cv_type_long_long_int = yes; then
22756
22757 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22758
22759   fi
22760
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22762 $as_echo_n "checking for mbstate_t... " >&6; }
22763 if ${ac_cv_type_mbstate_t+:} false; then :
22764   $as_echo_n "(cached) " >&6
22765 else
22766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h.  */
22768 $ac_includes_default
22769 #           include <wchar.h>
22770 int
22771 main ()
22772 {
22773 mbstate_t x; return sizeof x;
22774   ;
22775   return 0;
22776 }
22777 _ACEOF
22778 if ac_fn_c_try_compile "$LINENO"; then :
22779   ac_cv_type_mbstate_t=yes
22780 else
22781   ac_cv_type_mbstate_t=no
22782 fi
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 fi
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22786 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22787    if test $ac_cv_type_mbstate_t = yes; then
22788
22789 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22790
22791    else
22792
22793 $as_echo "#define mbstate_t int" >>confdefs.h
22794
22795    fi
22796 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22797 if test "x$ac_cv_type_mode_t" = xyes; then :
22798
22799 else
22800
22801 cat >>confdefs.h <<_ACEOF
22802 #define mode_t int
22803 _ACEOF
22804
22805 fi
22806
22807 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22808 if test "x$ac_cv_type_off_t" = xyes; then :
22809
22810 else
22811
22812 cat >>confdefs.h <<_ACEOF
22813 #define off_t long int
22814 _ACEOF
22815
22816 fi
22817
22818 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22819 if test "x$ac_cv_type_pid_t" = xyes; then :
22820
22821 else
22822
22823 cat >>confdefs.h <<_ACEOF
22824 #define pid_t int
22825 _ACEOF
22826
22827 fi
22828
22829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22830 if test "x$ac_cv_type_size_t" = xyes; then :
22831
22832 else
22833
22834 cat >>confdefs.h <<_ACEOF
22835 #define size_t unsigned int
22836 _ACEOF
22837
22838 fi
22839
22840 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22841 if test "x$ac_cv_type_ssize_t" = xyes; then :
22842
22843 else
22844
22845 cat >>confdefs.h <<_ACEOF
22846 #define ssize_t int
22847 _ACEOF
22848
22849 fi
22850
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22852 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22853 if ${ac_cv_type_uid_t+:} false; then :
22854   $as_echo_n "(cached) " >&6
22855 else
22856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h.  */
22858 #include <sys/types.h>
22859
22860 _ACEOF
22861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22862   $EGREP "uid_t" >/dev/null 2>&1; then :
22863   ac_cv_type_uid_t=yes
22864 else
22865   ac_cv_type_uid_t=no
22866 fi
22867 rm -f conftest*
22868
22869 fi
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22871 $as_echo "$ac_cv_type_uid_t" >&6; }
22872 if test $ac_cv_type_uid_t = no; then
22873
22874 $as_echo "#define uid_t int" >>confdefs.h
22875
22876
22877 $as_echo "#define gid_t int" >>confdefs.h
22878
22879 fi
22880
22881 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22882 case $ac_cv_c_uint8_t in #(
22883   no|yes) ;; #(
22884   *)
22885
22886 $as_echo "#define _UINT8_T 1" >>confdefs.h
22887
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define uint8_t $ac_cv_c_uint8_t
22891 _ACEOF
22892 ;;
22893   esac
22894
22895 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22896 case $ac_cv_c_uint16_t in #(
22897   no|yes) ;; #(
22898   *)
22899
22900
22901 cat >>confdefs.h <<_ACEOF
22902 #define uint16_t $ac_cv_c_uint16_t
22903 _ACEOF
22904 ;;
22905   esac
22906
22907 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22908 case $ac_cv_c_uint32_t in #(
22909   no|yes) ;; #(
22910   *)
22911
22912 $as_echo "#define _UINT32_T 1" >>confdefs.h
22913
22914
22915 cat >>confdefs.h <<_ACEOF
22916 #define uint32_t $ac_cv_c_uint32_t
22917 _ACEOF
22918 ;;
22919   esac
22920
22921 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22922 case $ac_cv_c_uint64_t in #(
22923   no|yes) ;; #(
22924   *)
22925
22926 $as_echo "#define _UINT64_T 1" >>confdefs.h
22927
22928
22929 cat >>confdefs.h <<_ACEOF
22930 #define uint64_t $ac_cv_c_uint64_t
22931 _ACEOF
22932 ;;
22933   esac
22934
22935
22936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22937 $as_echo_n "checking for unsigned long long int... " >&6; }
22938 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h.  */
22943
22944   /* For now, do not test the preprocessor; as of 2007 there are too many
22945          implementations with broken preprocessors.  Perhaps this can
22946          be revisited in 2012.  In the meantime, code should not expect
22947          #if to work with literals wider than 32 bits.  */
22948       /* Test literals.  */
22949       long long int ll = 9223372036854775807ll;
22950       long long int nll = -9223372036854775807LL;
22951       unsigned long long int ull = 18446744073709551615ULL;
22952       /* Test constant expressions.   */
22953       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22954                      ? 1 : -1)];
22955       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22956                      ? 1 : -1)];
22957       int i = 63;
22958 int
22959 main ()
22960 {
22961 /* Test availability of runtime routines for shift and division.  */
22962       long long int llmax = 9223372036854775807ll;
22963       unsigned long long int ullmax = 18446744073709551615ull;
22964       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22965               | (llmax / ll) | (llmax % ll)
22966               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22967               | (ullmax / ull) | (ullmax % ull));
22968   ;
22969   return 0;
22970 }
22971
22972 _ACEOF
22973 if ac_fn_c_try_link "$LINENO"; then :
22974   ac_cv_type_unsigned_long_long_int=yes
22975 else
22976   ac_cv_type_unsigned_long_long_int=no
22977 fi
22978 rm -f core conftest.err conftest.$ac_objext \
22979     conftest$ac_exeext conftest.$ac_ext
22980 fi
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22982 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22983   if test $ac_cv_type_unsigned_long_long_int = yes; then
22984
22985 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22986
22987   fi
22988
22989
22990
22991   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22992 if test "x$ac_cv_type_uintmax_t" = xyes; then :
22993
22994 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22995
22996 else
22997   test $ac_cv_type_unsigned_long_long_int = yes \
22998        && ac_type='unsigned long long int' \
22999        || ac_type='unsigned long int'
23000
23001 cat >>confdefs.h <<_ACEOF
23002 #define uintmax_t $ac_type
23003 _ACEOF
23004
23005 fi
23006
23007
23008
23009   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23010 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23011
23012 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23013
23014 else
23015   for ac_type in 'unsigned int' 'unsigned long int' \
23016         'unsigned long long int'; do
23017        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h.  */
23019 $ac_includes_default
23020 int
23021 main ()
23022 {
23023 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23024 test_array [0] = 0
23025
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 if ac_fn_c_try_compile "$LINENO"; then :
23031
23032 cat >>confdefs.h <<_ACEOF
23033 #define uintptr_t $ac_type
23034 _ACEOF
23035
23036           ac_type=
23037 fi
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039        test -z "$ac_type" && break
23040      done
23041 fi
23042
23043
23044
23045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23046 $as_echo_n "checking for unsigned long long int... " >&6; }
23047 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23048   $as_echo_n "(cached) " >&6
23049 else
23050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h.  */
23052
23053   /* For now, do not test the preprocessor; as of 2007 there are too many
23054          implementations with broken preprocessors.  Perhaps this can
23055          be revisited in 2012.  In the meantime, code should not expect
23056          #if to work with literals wider than 32 bits.  */
23057       /* Test literals.  */
23058       long long int ll = 9223372036854775807ll;
23059       long long int nll = -9223372036854775807LL;
23060       unsigned long long int ull = 18446744073709551615ULL;
23061       /* Test constant expressions.   */
23062       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23063                      ? 1 : -1)];
23064       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23065                      ? 1 : -1)];
23066       int i = 63;
23067 int
23068 main ()
23069 {
23070 /* Test availability of runtime routines for shift and division.  */
23071       long long int llmax = 9223372036854775807ll;
23072       unsigned long long int ullmax = 18446744073709551615ull;
23073       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23074               | (llmax / ll) | (llmax % ll)
23075               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23076               | (ullmax / ull) | (ullmax % ull));
23077   ;
23078   return 0;
23079 }
23080
23081 _ACEOF
23082 if ac_fn_c_try_link "$LINENO"; then :
23083   ac_cv_type_unsigned_long_long_int=yes
23084 else
23085   ac_cv_type_unsigned_long_long_int=no
23086 fi
23087 rm -f core conftest.err conftest.$ac_objext \
23088     conftest$ac_exeext conftest.$ac_ext
23089 fi
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23091 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23092   if test $ac_cv_type_unsigned_long_long_int = yes; then
23093
23094 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23095
23096   fi
23097
23098
23099 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23100 # C compiler predefines it.
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23102 $as_echo_n "checking whether char is unsigned... " >&6; }
23103 if ${ac_cv_c_char_unsigned+:} false; then :
23104   $as_echo_n "(cached) " >&6
23105 else
23106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h.  */
23108 $ac_includes_default
23109 int
23110 main ()
23111 {
23112 static int test_array [1 - 2 * !(((char) -1) < 0)];
23113 test_array [0] = 0
23114
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 if ac_fn_c_try_compile "$LINENO"; then :
23120   ac_cv_c_char_unsigned=no
23121 else
23122   ac_cv_c_char_unsigned=yes
23123 fi
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 fi
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23127 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23128 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23129   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23130
23131 fi
23132
23133
23134 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23135 # The cast to long int works around a bug in the HP C Compiler
23136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23138 # This bug is HP SR number 8606223364.
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23140 $as_echo_n "checking size of signed short... " >&6; }
23141 if ${ac_cv_sizeof_signed_short+:} false; then :
23142   $as_echo_n "(cached) " >&6
23143 else
23144   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23145
23146 else
23147   if test "$ac_cv_type_signed_short" = yes; then
23148      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23150 as_fn_error 77 "cannot compute sizeof (signed short)
23151 See \`config.log' for more details" "$LINENO" 5; }
23152    else
23153      ac_cv_sizeof_signed_short=0
23154    fi
23155 fi
23156
23157 fi
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23159 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23160
23161
23162
23163 cat >>confdefs.h <<_ACEOF
23164 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23165 _ACEOF
23166
23167
23168
23169 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23170 # The cast to long int works around a bug in the HP C Compiler
23171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23173 # This bug is HP SR number 8606223364.
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23175 $as_echo_n "checking size of unsigned short... " >&6; }
23176 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23177   $as_echo_n "(cached) " >&6
23178 else
23179   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23180
23181 else
23182   if test "$ac_cv_type_unsigned_short" = yes; then
23183      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23185 as_fn_error 77 "cannot compute sizeof (unsigned short)
23186 See \`config.log' for more details" "$LINENO" 5; }
23187    else
23188      ac_cv_sizeof_unsigned_short=0
23189    fi
23190 fi
23191
23192 fi
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23194 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23195
23196
23197
23198 cat >>confdefs.h <<_ACEOF
23199 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23200 _ACEOF
23201
23202
23203
23204 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23205 # The cast to long int works around a bug in the HP C Compiler
23206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23208 # This bug is HP SR number 8606223364.
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23210 $as_echo_n "checking size of signed int... " >&6; }
23211 if ${ac_cv_sizeof_signed_int+:} false; then :
23212   $as_echo_n "(cached) " >&6
23213 else
23214   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23215
23216 else
23217   if test "$ac_cv_type_signed_int" = yes; then
23218      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23220 as_fn_error 77 "cannot compute sizeof (signed int)
23221 See \`config.log' for more details" "$LINENO" 5; }
23222    else
23223      ac_cv_sizeof_signed_int=0
23224    fi
23225 fi
23226
23227 fi
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23229 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23230
23231
23232
23233 cat >>confdefs.h <<_ACEOF
23234 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23235 _ACEOF
23236
23237
23238
23239 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23240 # The cast to long int works around a bug in the HP C Compiler
23241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23243 # This bug is HP SR number 8606223364.
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23245 $as_echo_n "checking size of unsigned int... " >&6; }
23246 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23247   $as_echo_n "(cached) " >&6
23248 else
23249   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23250
23251 else
23252   if test "$ac_cv_type_unsigned_int" = yes; then
23253      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23255 as_fn_error 77 "cannot compute sizeof (unsigned int)
23256 See \`config.log' for more details" "$LINENO" 5; }
23257    else
23258      ac_cv_sizeof_unsigned_int=0
23259    fi
23260 fi
23261
23262 fi
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23264 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23265
23266
23267
23268 cat >>confdefs.h <<_ACEOF
23269 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23270 _ACEOF
23271
23272
23273
23274 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23275 # The cast to long int works around a bug in the HP C Compiler
23276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278 # This bug is HP SR number 8606223364.
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23280 $as_echo_n "checking size of signed long... " >&6; }
23281 if ${ac_cv_sizeof_signed_long+:} false; then :
23282   $as_echo_n "(cached) " >&6
23283 else
23284   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23285
23286 else
23287   if test "$ac_cv_type_signed_long" = yes; then
23288      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23290 as_fn_error 77 "cannot compute sizeof (signed long)
23291 See \`config.log' for more details" "$LINENO" 5; }
23292    else
23293      ac_cv_sizeof_signed_long=0
23294    fi
23295 fi
23296
23297 fi
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23299 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23300
23301
23302
23303 cat >>confdefs.h <<_ACEOF
23304 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23305 _ACEOF
23306
23307
23308
23309 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23310 # The cast to long int works around a bug in the HP C Compiler
23311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23313 # This bug is HP SR number 8606223364.
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23315 $as_echo_n "checking size of unsigned long... " >&6; }
23316 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23317   $as_echo_n "(cached) " >&6
23318 else
23319   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23320
23321 else
23322   if test "$ac_cv_type_unsigned_long" = yes; then
23323      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23325 as_fn_error 77 "cannot compute sizeof (unsigned long)
23326 See \`config.log' for more details" "$LINENO" 5; }
23327    else
23328      ac_cv_sizeof_unsigned_long=0
23329    fi
23330 fi
23331
23332 fi
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23334 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23335
23336
23337
23338 cat >>confdefs.h <<_ACEOF
23339 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23340 _ACEOF
23341
23342
23343
23344 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23345 # 'signed long long' is not supported then the value defined is zero.
23346 # The cast to long int works around a bug in the HP C Compiler
23347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349 # This bug is HP SR number 8606223364.
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23351 $as_echo_n "checking size of signed long long... " >&6; }
23352 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23353   $as_echo_n "(cached) " >&6
23354 else
23355   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23356
23357 else
23358   if test "$ac_cv_type_signed_long_long" = yes; then
23359      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23361 as_fn_error 77 "cannot compute sizeof (signed long long)
23362 See \`config.log' for more details" "$LINENO" 5; }
23363    else
23364      ac_cv_sizeof_signed_long_long=0
23365    fi
23366 fi
23367
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23370 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23371
23372
23373
23374 cat >>confdefs.h <<_ACEOF
23375 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23376 _ACEOF
23377
23378
23379
23380 # Obtain size of a 'unsigned long long' and define as
23381 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23382 # supported then the value defined is zero.
23383 # The cast to long int works around a bug in the HP C Compiler
23384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23386 # This bug is HP SR number 8606223364.
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23388 $as_echo_n "checking size of unsigned long long... " >&6; }
23389 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23390   $as_echo_n "(cached) " >&6
23391 else
23392   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
23393
23394 else
23395   if test "$ac_cv_type_unsigned_long_long" = yes; then
23396      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23398 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23399 See \`config.log' for more details" "$LINENO" 5; }
23400    else
23401      ac_cv_sizeof_unsigned_long_long=0
23402    fi
23403 fi
23404
23405 fi
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23407 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23408
23409
23410
23411 cat >>confdefs.h <<_ACEOF
23412 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23413 _ACEOF
23414
23415
23416
23417 # Obtain size of off_t and define as SIZEOF_OFF_T
23418 # The cast to long int works around a bug in the HP C Compiler
23419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23421 # This bug is HP SR number 8606223364.
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23423 $as_echo_n "checking size of off_t... " >&6; }
23424 if ${ac_cv_sizeof_off_t+:} false; then :
23425   $as_echo_n "(cached) " >&6
23426 else
23427   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23428
23429 else
23430   if test "$ac_cv_type_off_t" = yes; then
23431      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23433 as_fn_error 77 "cannot compute sizeof (off_t)
23434 See \`config.log' for more details" "$LINENO" 5; }
23435    else
23436      ac_cv_sizeof_off_t=0
23437    fi
23438 fi
23439
23440 fi
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23442 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23443
23444
23445
23446 cat >>confdefs.h <<_ACEOF
23447 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23448 _ACEOF
23449
23450
23451
23452 # Obtain size of size_t and define as SIZEOF_SIZE_T
23453 # The cast to long int works around a bug in the HP C Compiler
23454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23456 # This bug is HP SR number 8606223364.
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23458 $as_echo_n "checking size of size_t... " >&6; }
23459 if ${ac_cv_sizeof_size_t+:} false; then :
23460   $as_echo_n "(cached) " >&6
23461 else
23462   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23463
23464 else
23465   if test "$ac_cv_type_size_t" = yes; then
23466      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23468 as_fn_error 77 "cannot compute sizeof (size_t)
23469 See \`config.log' for more details" "$LINENO" 5; }
23470    else
23471      ac_cv_sizeof_size_t=0
23472    fi
23473 fi
23474
23475 fi
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23477 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23478
23479
23480
23481 cat >>confdefs.h <<_ACEOF
23482 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23483 _ACEOF
23484
23485
23486
23487 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23488 # The cast to long int works around a bug in the HP C Compiler
23489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23491 # This bug is HP SR number 8606223364.
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23493 $as_echo_n "checking size of ssize_t... " >&6; }
23494 if ${ac_cv_sizeof_ssize_t+:} false; then :
23495   $as_echo_n "(cached) " >&6
23496 else
23497   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
23498
23499 else
23500   if test "$ac_cv_type_ssize_t" = yes; then
23501      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23503 as_fn_error 77 "cannot compute sizeof (ssize_t)
23504 See \`config.log' for more details" "$LINENO" 5; }
23505    else
23506      ac_cv_sizeof_ssize_t=0
23507    fi
23508 fi
23509
23510 fi
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23512 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23513
23514
23515
23516 cat >>confdefs.h <<_ACEOF
23517 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23518 _ACEOF
23519
23520
23521
23522 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23523 # The cast to long int works around a bug in the HP C Compiler
23524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23526 # This bug is HP SR number 8606223364.
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23528 $as_echo_n "checking size of unsigned int*... " >&6; }
23529 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23530   $as_echo_n "(cached) " >&6
23531 else
23532   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
23533
23534 else
23535   if test "$ac_cv_type_unsigned_intp" = yes; then
23536      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23538 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23539 See \`config.log' for more details" "$LINENO" 5; }
23540    else
23541      ac_cv_sizeof_unsigned_intp=0
23542    fi
23543 fi
23544
23545 fi
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23547 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23548
23549
23550
23551 cat >>confdefs.h <<_ACEOF
23552 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23553 _ACEOF
23554
23555
23556
23557 #
23558 # Compute sized types for current CPU and compiler options.
23559 #
23560
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23562 $as_echo_n "checking for signed 8-bit type... " >&6; }
23563 INT8_T='signed char'
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23565 $as_echo "$INT8_T" >&6; }
23566
23567
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23569 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23570 UINT8_T='unsigned char'
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23572 $as_echo "$UINT8_T" >&6; }
23573
23574
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23576 $as_echo_n "checking for signed 16-bit type... " >&6; }
23577 INT16_T='signed short'
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23579 $as_echo "$INT16_T" >&6; }
23580
23581
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23583 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23584 UINT16_T='unsigned short'
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23586 $as_echo "$UINT16_T" >&6; }
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23590 $as_echo_n "checking for signed 32-bit type... " >&6; }
23591 INT32_T='none'
23592 INT32_F='none'
23593 if test $ac_cv_sizeof_signed_int -eq 4; then
23594   INT32_T='signed int'
23595   INT32_F='""'
23596 elif test $ac_cv_sizeof_signed_long -eq 4; then
23597   INT32_T='signed long'
23598   INT32_F='"l"'
23599 fi
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23601 $as_echo "$INT32_T" >&6; }
23602
23603
23604
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23606 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23607 UINT32_T='none'
23608 UINT32_F='none'
23609 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23610   UINT32_T='unsigned int'
23611   UINT32_F='""'
23612 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23613   UINT32_T='unsigned long'
23614   UINT32_F='"l"'
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23617 $as_echo "$UINT32_T" >&6; }
23618
23619
23620
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23622 $as_echo_n "checking for signed 64-bit type... " >&6; }
23623 INT64_T='none'
23624 INT64_F='none'
23625 if test $ac_cv_sizeof_signed_long -eq 8; then
23626   INT64_T='signed long'
23627   INT64_F='"l"'
23628 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23629   INT64_T='signed long long'
23630   INT64_F='"ll"'
23631 fi
23632 case "${build_os}" in
23633   mingw* )
23634     INT64_F='"I64"'
23635     ;;
23636 esac
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23638 $as_echo "$INT64_T" >&6; }
23639
23640
23641
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23643 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23644 UINT64_T='none'
23645 UINT64_F='none'
23646 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23647   UINT64_T='unsigned long'
23648   UINT64_F='"l"'
23649 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23650   UINT64_T='unsigned long long'
23651   UINT64_F='"ll"'
23652 fi
23653 case "${build_os}" in
23654   mingw* )
23655     UINT64_F='"I64"'
23656     ;;
23657 esac
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23659 $as_echo "$UINT64_T" >&6; }
23660
23661
23662
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23664 $as_echo_n "checking for unsigned maximum type... " >&6; }
23665 UINTMAX_T='none'
23666 UINTMAX_F='none'
23667 if test "$UINT64_T" != 'none'; then
23668   UINTMAX_T=$UINT64_T
23669   UINTMAX_F=$UINT64_F
23670 elif test "$UINT32_T" != 'none'; then
23671   UINTMAX_T=$UINT32_T
23672   UINTMAX_F=$UINT32_F
23673 fi
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23675 $as_echo "$UINTMAX_T" >&6; }
23676
23677
23678
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23680 $as_echo_n "checking for pointer difference type... " >&6; }
23681 UINTPTR_T='none'
23682 UINTPTR_F='none'
23683 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23684   UINTPTR_T='unsigned long'
23685   UINTPTR_F='"l"'
23686 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23687   UINTPTR_T='unsigned long long'
23688   UINTPTR_F='"ll"'
23689 fi
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23691 $as_echo "$UINTPTR_T" >&6; }
23692
23693
23694
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23696 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h.  */
23699
23700 int
23701 main ()
23702 {
23703 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23704   ;
23705   return 0;
23706 }
23707 _ACEOF
23708 if ac_fn_c_try_compile "$LINENO"; then :
23709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23710 $as_echo "yes" >&6; }
23711 else
23712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23713 $as_echo "no" >&6; }
23714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23715 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h.  */
23718
23719 int
23720 main ()
23721 {
23722 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23729 $as_echo "yes" >&6; }
23730
23731 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23732
23733 else
23734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23735 $as_echo "no" >&6; }
23736
23737 $as_echo "#define __func__ __FILE__" >>confdefs.h
23738
23739 fi
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 fi
23742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743
23744 ########
23745 #
23746 # Check for functions
23747 #
23748 ########
23749 for ac_header in stdlib.h unistd.h
23750 do :
23751   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23754   cat >>confdefs.h <<_ACEOF
23755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23756 _ACEOF
23757
23758 fi
23759
23760 done
23761
23762 for ac_func in getpagesize
23763 do :
23764   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23765 if test "x$ac_cv_func_getpagesize" = xyes; then :
23766   cat >>confdefs.h <<_ACEOF
23767 #define HAVE_GETPAGESIZE 1
23768 _ACEOF
23769
23770 fi
23771 done
23772
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23774 $as_echo_n "checking for working mmap file i/o... " >&6; }
23775 if ${magick_cv_func_mmap_fileio+:} false; then :
23776   $as_echo_n "(cached) " >&6
23777 else
23778   if test "$cross_compiling" = yes; then :
23779   magick_cv_func_mmap_fileio=no
23780 else
23781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h.  */
23783 $ac_includes_default
23784 /* malloc might have been renamed as rpl_malloc. */
23785 #undef malloc
23786
23787 /*
23788    This test is derived from GNU Autoconf's similar macro.
23789    The purpose of this test is to verify that files may be memory
23790    mapped, and that memory mapping and file I/O are coherent.
23791
23792    The test creates a test file, memory maps the file, updates
23793    the file using the memory map, and then reads the file using
23794    file I/O to verify that the file contains the updates.
23795 */
23796
23797 #include <fcntl.h>
23798 #include <sys/mman.h>
23799
23800 #if !STDC_HEADERS && !HAVE_STDLIB_H
23801 char *malloc ();
23802 #endif
23803
23804 /* This mess was copied from the GNU getpagesize.h.  */
23805 #if !HAVE_GETPAGESIZE
23806 /* Assume that all systems that can run configure have sys/param.h.  */
23807 # if !HAVE_SYS_PARAM_H
23808 #  define HAVE_SYS_PARAM_H 1
23809 # endif
23810
23811 # ifdef _SC_PAGESIZE
23812 #  define getpagesize() sysconf(_SC_PAGESIZE)
23813 # else /* no _SC_PAGESIZE */
23814 #  if HAVE_SYS_PARAM_H
23815 #   include <sys/param.h>
23816 #   ifdef EXEC_PAGESIZE
23817 #    define getpagesize() EXEC_PAGESIZE
23818 #   else /* no EXEC_PAGESIZE */
23819 #    ifdef NBPG
23820 #     define getpagesize() NBPG * CLSIZE
23821 #     ifndef CLSIZE
23822 #      define CLSIZE 1
23823 #     endif /* no CLSIZE */
23824 #    else /* no NBPG */
23825 #     ifdef NBPC
23826 #      define getpagesize() NBPC
23827 #     else /* no NBPC */
23828 #      ifdef PAGESIZE
23829 #       define getpagesize() PAGESIZE
23830 #      endif /* PAGESIZE */
23831 #     endif /* no NBPC */
23832 #    endif /* no NBPG */
23833 #   endif /* no EXEC_PAGESIZE */
23834 #  else /* no HAVE_SYS_PARAM_H */
23835 #   define getpagesize() 8192   /* punt totally */
23836 #  endif /* no HAVE_SYS_PARAM_H */
23837 # endif /* no _SC_PAGESIZE */
23838
23839 #endif /* no HAVE_GETPAGESIZE */
23840
23841 int
23842 main ()
23843 {
23844   char *data, *data2, *data3;
23845   int i, pagesize;
23846   int fd;
23847
23848   pagesize = getpagesize ();
23849
23850   /* First, make a file with some known garbage in it. */
23851   data = (char *) malloc (pagesize);
23852   if (!data)
23853     exit (1);
23854   for (i = 0; i < pagesize; ++i)
23855     *(data + i) = rand ();
23856   umask (0);
23857   fd = creat ("conftest.mmap", 0600);
23858   if (fd < 0)
23859     exit (1);
23860   if (write (fd, data, pagesize) != pagesize)
23861     exit (1);
23862   close (fd);
23863
23864   /* Mmap the file as read/write/shared and verify that we see the
23865   same garbage. */
23866   fd = open ("conftest.mmap", O_RDWR);
23867   if (fd < 0)
23868     exit (1);
23869   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23870   if (data2 == 0)
23871     exit (1);
23872   for (i = 0; i < pagesize; ++i)
23873     if (*(data + i) != *(data2 + i))
23874       exit (1);
23875
23876   /* Finally, make sure that changes to the mapped area
23877      percolate back to the file as seen by read().  */
23878   for (i = 0; i < pagesize; ++i)
23879     *(data2 + i) = *(data2 + i) + 1;
23880   data3 = (char *) malloc (pagesize);
23881   if (!data3)
23882     exit (1);
23883   if (read (fd, data3, pagesize) != pagesize)
23884     exit (1);
23885   for (i = 0; i < pagesize; ++i)
23886     if (*(data2 + i) != *(data3 + i))
23887       exit (1);
23888   close (fd);
23889   exit (0);
23890 }
23891 _ACEOF
23892 if ac_fn_c_try_run "$LINENO"; then :
23893   magick_cv_func_mmap_fileio=yes
23894 else
23895   magick_cv_func_mmap_fileio=no
23896 fi
23897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23898   conftest.$ac_objext conftest.beam conftest.$ac_ext
23899 fi
23900
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23903 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23904 if test $magick_cv_func_mmap_fileio = yes; then
23905
23906 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23907
23908 fi
23909 rm -f conftest.mmap
23910
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23912 $as_echo_n "checking whether closedir returns void... " >&6; }
23913 if ${ac_cv_func_closedir_void+:} false; then :
23914   $as_echo_n "(cached) " >&6
23915 else
23916   if test "$cross_compiling" = yes; then :
23917   ac_cv_func_closedir_void=yes
23918 else
23919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920 /* end confdefs.h.  */
23921 $ac_includes_default
23922 #include <$ac_header_dirent>
23923 #ifndef __cplusplus
23924 int closedir ();
23925 #endif
23926
23927 int
23928 main ()
23929 {
23930 return closedir (opendir (".")) != 0;
23931   ;
23932   return 0;
23933 }
23934 _ACEOF
23935 if ac_fn_c_try_run "$LINENO"; then :
23936   ac_cv_func_closedir_void=no
23937 else
23938   ac_cv_func_closedir_void=yes
23939 fi
23940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23941   conftest.$ac_objext conftest.beam conftest.$ac_ext
23942 fi
23943
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23946 $as_echo "$ac_cv_func_closedir_void" >&6; }
23947 if test $ac_cv_func_closedir_void = yes; then
23948
23949 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23950
23951 fi
23952
23953
23954
23955
23956   for ac_header in $ac_header_list
23957 do :
23958   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23960 "
23961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23962   cat >>confdefs.h <<_ACEOF
23963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23964 _ACEOF
23965
23966 fi
23967
23968 done
23969
23970
23971
23972
23973
23974
23975
23976
23977 for ac_func in getpagesize
23978 do :
23979   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23980 if test "x$ac_cv_func_getpagesize" = xyes; then :
23981   cat >>confdefs.h <<_ACEOF
23982 #define HAVE_GETPAGESIZE 1
23983 _ACEOF
23984
23985 fi
23986 done
23987
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23989 $as_echo_n "checking for working mmap... " >&6; }
23990 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23991   $as_echo_n "(cached) " >&6
23992 else
23993   if test "$cross_compiling" = yes; then :
23994   ac_cv_func_mmap_fixed_mapped=no
23995 else
23996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h.  */
23998 $ac_includes_default
23999 /* malloc might have been renamed as rpl_malloc. */
24000 #undef malloc
24001
24002 /* Thanks to Mike Haertel and Jim Avera for this test.
24003    Here is a matrix of mmap possibilities:
24004         mmap private not fixed
24005         mmap private fixed at somewhere currently unmapped
24006         mmap private fixed at somewhere already mapped
24007         mmap shared not fixed
24008         mmap shared fixed at somewhere currently unmapped
24009         mmap shared fixed at somewhere already mapped
24010    For private mappings, we should verify that changes cannot be read()
24011    back from the file, nor mmap's back from the file at a different
24012    address.  (There have been systems where private was not correctly
24013    implemented like the infamous i386 svr4.0, and systems where the
24014    VM page cache was not coherent with the file system buffer cache
24015    like early versions of FreeBSD and possibly contemporary NetBSD.)
24016    For shared mappings, we should conversely verify that changes get
24017    propagated back to all the places they're supposed to be.
24018
24019    Grep wants private fixed already mapped.
24020    The main things grep needs to know about mmap are:
24021    * does it exist and is it safe to write into the mmap'd area
24022    * how to use it (BSD variants)  */
24023
24024 #include <fcntl.h>
24025 #include <sys/mman.h>
24026
24027 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24028 char *malloc ();
24029 #endif
24030
24031 /* This mess was copied from the GNU getpagesize.h.  */
24032 #ifndef HAVE_GETPAGESIZE
24033 # ifdef _SC_PAGESIZE
24034 #  define getpagesize() sysconf(_SC_PAGESIZE)
24035 # else /* no _SC_PAGESIZE */
24036 #  ifdef HAVE_SYS_PARAM_H
24037 #   include <sys/param.h>
24038 #   ifdef EXEC_PAGESIZE
24039 #    define getpagesize() EXEC_PAGESIZE
24040 #   else /* no EXEC_PAGESIZE */
24041 #    ifdef NBPG
24042 #     define getpagesize() NBPG * CLSIZE
24043 #     ifndef CLSIZE
24044 #      define CLSIZE 1
24045 #     endif /* no CLSIZE */
24046 #    else /* no NBPG */
24047 #     ifdef NBPC
24048 #      define getpagesize() NBPC
24049 #     else /* no NBPC */
24050 #      ifdef PAGESIZE
24051 #       define getpagesize() PAGESIZE
24052 #      endif /* PAGESIZE */
24053 #     endif /* no NBPC */
24054 #    endif /* no NBPG */
24055 #   endif /* no EXEC_PAGESIZE */
24056 #  else /* no HAVE_SYS_PARAM_H */
24057 #   define getpagesize() 8192   /* punt totally */
24058 #  endif /* no HAVE_SYS_PARAM_H */
24059 # endif /* no _SC_PAGESIZE */
24060
24061 #endif /* no HAVE_GETPAGESIZE */
24062
24063 int
24064 main ()
24065 {
24066   char *data, *data2, *data3;
24067   const char *cdata2;
24068   int i, pagesize;
24069   int fd, fd2;
24070
24071   pagesize = getpagesize ();
24072
24073   /* First, make a file with some known garbage in it. */
24074   data = (char *) malloc (pagesize);
24075   if (!data)
24076     return 1;
24077   for (i = 0; i < pagesize; ++i)
24078     *(data + i) = rand ();
24079   umask (0);
24080   fd = creat ("conftest.mmap", 0600);
24081   if (fd < 0)
24082     return 2;
24083   if (write (fd, data, pagesize) != pagesize)
24084     return 3;
24085   close (fd);
24086
24087   /* Next, check that the tail of a page is zero-filled.  File must have
24088      non-zero length, otherwise we risk SIGBUS for entire page.  */
24089   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24090   if (fd2 < 0)
24091     return 4;
24092   cdata2 = "";
24093   if (write (fd2, cdata2, 1) != 1)
24094     return 5;
24095   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24096   if (data2 == MAP_FAILED)
24097     return 6;
24098   for (i = 0; i < pagesize; ++i)
24099     if (*(data2 + i))
24100       return 7;
24101   close (fd2);
24102   if (munmap (data2, pagesize))
24103     return 8;
24104
24105   /* Next, try to mmap the file at a fixed address which already has
24106      something else allocated at it.  If we can, also make sure that
24107      we see the same garbage.  */
24108   fd = open ("conftest.mmap", O_RDWR);
24109   if (fd < 0)
24110     return 9;
24111   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24112                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24113     return 10;
24114   for (i = 0; i < pagesize; ++i)
24115     if (*(data + i) != *(data2 + i))
24116       return 11;
24117
24118   /* Finally, make sure that changes to the mapped area do not
24119      percolate back to the file as seen by read().  (This is a bug on
24120      some variants of i386 svr4.0.)  */
24121   for (i = 0; i < pagesize; ++i)
24122     *(data2 + i) = *(data2 + i) + 1;
24123   data3 = (char *) malloc (pagesize);
24124   if (!data3)
24125     return 12;
24126   if (read (fd, data3, pagesize) != pagesize)
24127     return 13;
24128   for (i = 0; i < pagesize; ++i)
24129     if (*(data + i) != *(data3 + i))
24130       return 14;
24131   close (fd);
24132   return 0;
24133 }
24134 _ACEOF
24135 if ac_fn_c_try_run "$LINENO"; then :
24136   ac_cv_func_mmap_fixed_mapped=yes
24137 else
24138   ac_cv_func_mmap_fixed_mapped=no
24139 fi
24140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24141   conftest.$ac_objext conftest.beam conftest.$ac_ext
24142 fi
24143
24144 fi
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24146 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24148
24149 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24150
24151 fi
24152 rm -f conftest.mmap conftest.txt
24153
24154 for ac_header in vfork.h
24155 do :
24156   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24157 if test "x$ac_cv_header_vfork_h" = xyes; then :
24158   cat >>confdefs.h <<_ACEOF
24159 #define HAVE_VFORK_H 1
24160 _ACEOF
24161
24162 fi
24163
24164 done
24165
24166 for ac_func in fork vfork
24167 do :
24168   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24171   cat >>confdefs.h <<_ACEOF
24172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24173 _ACEOF
24174
24175 fi
24176 done
24177
24178 if test "x$ac_cv_func_fork" = xyes; then
24179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24180 $as_echo_n "checking for working fork... " >&6; }
24181 if ${ac_cv_func_fork_works+:} false; then :
24182   $as_echo_n "(cached) " >&6
24183 else
24184   if test "$cross_compiling" = yes; then :
24185   ac_cv_func_fork_works=cross
24186 else
24187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190 int
24191 main ()
24192 {
24193
24194           /* By Ruediger Kuhlmann. */
24195           return fork () < 0;
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 if ac_fn_c_try_run "$LINENO"; then :
24202   ac_cv_func_fork_works=yes
24203 else
24204   ac_cv_func_fork_works=no
24205 fi
24206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24207   conftest.$ac_objext conftest.beam conftest.$ac_ext
24208 fi
24209
24210 fi
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24212 $as_echo "$ac_cv_func_fork_works" >&6; }
24213
24214 else
24215   ac_cv_func_fork_works=$ac_cv_func_fork
24216 fi
24217 if test "x$ac_cv_func_fork_works" = xcross; then
24218   case $host in
24219     *-*-amigaos* | *-*-msdosdjgpp*)
24220       # Override, as these systems have only a dummy fork() stub
24221       ac_cv_func_fork_works=no
24222       ;;
24223     *)
24224       ac_cv_func_fork_works=yes
24225       ;;
24226   esac
24227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24228 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24229 fi
24230 ac_cv_func_vfork_works=$ac_cv_func_vfork
24231 if test "x$ac_cv_func_vfork" = xyes; then
24232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24233 $as_echo_n "checking for working vfork... " >&6; }
24234 if ${ac_cv_func_vfork_works+:} false; then :
24235   $as_echo_n "(cached) " >&6
24236 else
24237   if test "$cross_compiling" = yes; then :
24238   ac_cv_func_vfork_works=cross
24239 else
24240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h.  */
24242 /* Thanks to Paul Eggert for this test.  */
24243 $ac_includes_default
24244 #include <sys/wait.h>
24245 #ifdef HAVE_VFORK_H
24246 # include <vfork.h>
24247 #endif
24248 /* On some sparc systems, changes by the child to local and incoming
24249    argument registers are propagated back to the parent.  The compiler
24250    is told about this with #include <vfork.h>, but some compilers
24251    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24252    static variable whose address is put into a register that is
24253    clobbered by the vfork.  */
24254 static void
24255 #ifdef __cplusplus
24256 sparc_address_test (int arg)
24257 # else
24258 sparc_address_test (arg) int arg;
24259 #endif
24260 {
24261   static pid_t child;
24262   if (!child) {
24263     child = vfork ();
24264     if (child < 0) {
24265       perror ("vfork");
24266       _exit(2);
24267     }
24268     if (!child) {
24269       arg = getpid();
24270       write(-1, "", 0);
24271       _exit (arg);
24272     }
24273   }
24274 }
24275
24276 int
24277 main ()
24278 {
24279   pid_t parent = getpid ();
24280   pid_t child;
24281
24282   sparc_address_test (0);
24283
24284   child = vfork ();
24285
24286   if (child == 0) {
24287     /* Here is another test for sparc vfork register problems.  This
24288        test uses lots of local variables, at least as many local
24289        variables as main has allocated so far including compiler
24290        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24291        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24292        reuse the register of parent for one of the local variables,
24293        since it will think that parent can't possibly be used any more
24294        in this routine.  Assigning to the local variable will thus
24295        munge parent in the parent process.  */
24296     pid_t
24297       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24298       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24299     /* Convince the compiler that p..p7 are live; otherwise, it might
24300        use the same hardware register for all 8 local variables.  */
24301     if (p != p1 || p != p2 || p != p3 || p != p4
24302         || p != p5 || p != p6 || p != p7)
24303       _exit(1);
24304
24305     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24306        from child file descriptors.  If the child closes a descriptor
24307        before it execs or exits, this munges the parent's descriptor
24308        as well.  Test for this by closing stdout in the child.  */
24309     _exit(close(fileno(stdout)) != 0);
24310   } else {
24311     int status;
24312     struct stat st;
24313
24314     while (wait(&status) != child)
24315       ;
24316     return (
24317          /* Was there some problem with vforking?  */
24318          child < 0
24319
24320          /* Did the child fail?  (This shouldn't happen.)  */
24321          || status
24322
24323          /* Did the vfork/compiler bug occur?  */
24324          || parent != getpid()
24325
24326          /* Did the file descriptor bug occur?  */
24327          || fstat(fileno(stdout), &st) != 0
24328          );
24329   }
24330 }
24331 _ACEOF
24332 if ac_fn_c_try_run "$LINENO"; then :
24333   ac_cv_func_vfork_works=yes
24334 else
24335   ac_cv_func_vfork_works=no
24336 fi
24337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24338   conftest.$ac_objext conftest.beam conftest.$ac_ext
24339 fi
24340
24341 fi
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24343 $as_echo "$ac_cv_func_vfork_works" >&6; }
24344
24345 fi;
24346 if test "x$ac_cv_func_fork_works" = xcross; then
24347   ac_cv_func_vfork_works=$ac_cv_func_vfork
24348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24349 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24350 fi
24351
24352 if test "x$ac_cv_func_vfork_works" = xyes; then
24353
24354 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24355
24356 else
24357
24358 $as_echo "#define vfork fork" >>confdefs.h
24359
24360 fi
24361 if test "x$ac_cv_func_fork_works" = xyes; then
24362
24363 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24364
24365 fi
24366
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24368 $as_echo_n "checking for working memcmp... " >&6; }
24369 if ${ac_cv_func_memcmp_working+:} false; then :
24370   $as_echo_n "(cached) " >&6
24371 else
24372   if test "$cross_compiling" = yes; then :
24373   ac_cv_func_memcmp_working=no
24374 else
24375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h.  */
24377 $ac_includes_default
24378 int
24379 main ()
24380 {
24381
24382   /* Some versions of memcmp are not 8-bit clean.  */
24383   char c0 = '\100', c1 = '\200', c2 = '\201';
24384   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24385     return 1;
24386
24387   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24388      or more and with at least one buffer not starting on a 4-byte boundary.
24389      William Lewis provided this test program.   */
24390   {
24391     char foo[21];
24392     char bar[21];
24393     int i;
24394     for (i = 0; i < 4; i++)
24395       {
24396         char *a = foo + i;
24397         char *b = bar + i;
24398         strcpy (a, "--------01111111");
24399         strcpy (b, "--------10000000");
24400         if (memcmp (a, b, 16) >= 0)
24401           return 1;
24402       }
24403     return 0;
24404   }
24405
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 if ac_fn_c_try_run "$LINENO"; then :
24411   ac_cv_func_memcmp_working=yes
24412 else
24413   ac_cv_func_memcmp_working=no
24414 fi
24415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24416   conftest.$ac_objext conftest.beam conftest.$ac_ext
24417 fi
24418
24419 fi
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24421 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24422 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24423   *" memcmp.$ac_objext "* ) ;;
24424   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24425  ;;
24426 esac
24427
24428
24429 for ac_header in sys/select.h sys/socket.h
24430 do :
24431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24434   cat >>confdefs.h <<_ACEOF
24435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24436 _ACEOF
24437
24438 fi
24439
24440 done
24441
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24443 $as_echo_n "checking types of arguments for select... " >&6; }
24444 if ${ac_cv_func_select_args+:} false; then :
24445   $as_echo_n "(cached) " >&6
24446 else
24447   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24448  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24449   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h.  */
24452 $ac_includes_default
24453 #ifdef HAVE_SYS_SELECT_H
24454 # include <sys/select.h>
24455 #endif
24456 #ifdef HAVE_SYS_SOCKET_H
24457 # include <sys/socket.h>
24458 #endif
24459
24460 int
24461 main ()
24462 {
24463 extern int select ($ac_arg1,
24464                                             $ac_arg234, $ac_arg234, $ac_arg234,
24465                                             $ac_arg5);
24466   ;
24467   return 0;
24468 }
24469 _ACEOF
24470 if ac_fn_c_try_compile "$LINENO"; then :
24471   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24472 fi
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474   done
24475  done
24476 done
24477 # Provide a safe default value.
24478 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24479
24480 fi
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24482 $as_echo "$ac_cv_func_select_args" >&6; }
24483 ac_save_IFS=$IFS; IFS=','
24484 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24485 IFS=$ac_save_IFS
24486 shift
24487
24488 cat >>confdefs.h <<_ACEOF
24489 #define SELECT_TYPE_ARG1 $1
24490 _ACEOF
24491
24492
24493 cat >>confdefs.h <<_ACEOF
24494 #define SELECT_TYPE_ARG234 ($2)
24495 _ACEOF
24496
24497
24498 cat >>confdefs.h <<_ACEOF
24499 #define SELECT_TYPE_ARG5 ($3)
24500 _ACEOF
24501
24502 rm -f conftest*
24503
24504 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24505   $as_echo_n "(cached) " >&6
24506 else
24507   ac_cv_func_setvbuf_reversed=no
24508 fi
24509
24510
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24512 $as_echo_n "checking return type of signal handlers... " >&6; }
24513 if ${ac_cv_type_signal+:} false; then :
24514   $as_echo_n "(cached) " >&6
24515 else
24516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h.  */
24518 #include <sys/types.h>
24519 #include <signal.h>
24520
24521 int
24522 main ()
24523 {
24524 return *(signal (0, 0)) (0) == 1;
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 if ac_fn_c_try_compile "$LINENO"; then :
24530   ac_cv_type_signal=int
24531 else
24532   ac_cv_type_signal=void
24533 fi
24534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535 fi
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24537 $as_echo "$ac_cv_type_signal" >&6; }
24538
24539 cat >>confdefs.h <<_ACEOF
24540 #define RETSIGTYPE $ac_cv_type_signal
24541 _ACEOF
24542
24543
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24545 $as_echo_n "checking for working strtod... " >&6; }
24546 if ${ac_cv_func_strtod+:} false; then :
24547   $as_echo_n "(cached) " >&6
24548 else
24549   if test "$cross_compiling" = yes; then :
24550   ac_cv_func_strtod=no
24551 else
24552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h.  */
24554
24555 $ac_includes_default
24556 #ifndef strtod
24557 double strtod ();
24558 #endif
24559 int
24560 main()
24561 {
24562   {
24563     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
24564     char *string = " +69";
24565     char *term;
24566     double value;
24567     value = strtod (string, &term);
24568     if (value != 69 || term != (string + 4))
24569       return 1;
24570   }
24571
24572   {
24573     /* Under Solaris 2.4, strtod returns the wrong value for the
24574        terminating character under some conditions.  */
24575     char *string = "NaN";
24576     char *term;
24577     strtod (string, &term);
24578     if (term != string && *(term - 1) == 0)
24579       return 1;
24580   }
24581   return 0;
24582 }
24583
24584 _ACEOF
24585 if ac_fn_c_try_run "$LINENO"; then :
24586   ac_cv_func_strtod=yes
24587 else
24588   ac_cv_func_strtod=no
24589 fi
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24591   conftest.$ac_objext conftest.beam conftest.$ac_ext
24592 fi
24593
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24596 $as_echo "$ac_cv_func_strtod" >&6; }
24597 if test $ac_cv_func_strtod = no; then
24598   case " $LIBOBJS " in
24599   *" strtod.$ac_objext "* ) ;;
24600   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24601  ;;
24602 esac
24603
24604 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24605 if test "x$ac_cv_func_pow" = xyes; then :
24606
24607 fi
24608
24609 if test $ac_cv_func_pow = no; then
24610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24611 $as_echo_n "checking for pow in -lm... " >&6; }
24612 if ${ac_cv_lib_m_pow+:} false; then :
24613   $as_echo_n "(cached) " >&6
24614 else
24615   ac_check_lib_save_LIBS=$LIBS
24616 LIBS="-lm  $LIBS"
24617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24618 /* end confdefs.h.  */
24619
24620 /* Override any GCC internal prototype to avoid an error.
24621    Use char because int might match the return type of a GCC
24622    builtin and then its argument prototype would still apply.  */
24623 #ifdef __cplusplus
24624 extern "C"
24625 #endif
24626 char pow ();
24627 int
24628 main ()
24629 {
24630 return pow ();
24631   ;
24632   return 0;
24633 }
24634 _ACEOF
24635 if ac_fn_c_try_link "$LINENO"; then :
24636   ac_cv_lib_m_pow=yes
24637 else
24638   ac_cv_lib_m_pow=no
24639 fi
24640 rm -f core conftest.err conftest.$ac_objext \
24641     conftest$ac_exeext conftest.$ac_ext
24642 LIBS=$ac_check_lib_save_LIBS
24643 fi
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24645 $as_echo "$ac_cv_lib_m_pow" >&6; }
24646 if test "x$ac_cv_lib_m_pow" = xyes; then :
24647   POW_LIB=-lm
24648 else
24649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24650 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24651 fi
24652
24653 fi
24654
24655 fi
24656
24657 for ac_func in vprintf
24658 do :
24659   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24660 if test "x$ac_cv_func_vprintf" = xyes; then :
24661   cat >>confdefs.h <<_ACEOF
24662 #define HAVE_VPRINTF 1
24663 _ACEOF
24664
24665 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24666 if test "x$ac_cv_func__doprnt" = xyes; then :
24667
24668 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24669
24670 fi
24671
24672 fi
24673 done
24674
24675
24676
24677 #
24678 # Find math library
24679 #
24680 MATH_LIBS=''
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24682 $as_echo_n "checking for sqrt in -lm... " >&6; }
24683 if ${ac_cv_lib_m_sqrt+:} false; then :
24684   $as_echo_n "(cached) " >&6
24685 else
24686   ac_check_lib_save_LIBS=$LIBS
24687 LIBS="-lm  $LIBS"
24688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24689 /* end confdefs.h.  */
24690
24691 /* Override any GCC internal prototype to avoid an error.
24692    Use char because int might match the return type of a GCC
24693    builtin and then its argument prototype would still apply.  */
24694 #ifdef __cplusplus
24695 extern "C"
24696 #endif
24697 char sqrt ();
24698 int
24699 main ()
24700 {
24701 return sqrt ();
24702   ;
24703   return 0;
24704 }
24705 _ACEOF
24706 if ac_fn_c_try_link "$LINENO"; then :
24707   ac_cv_lib_m_sqrt=yes
24708 else
24709   ac_cv_lib_m_sqrt=no
24710 fi
24711 rm -f core conftest.err conftest.$ac_objext \
24712     conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24714 fi
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24716 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24717 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24718   MATH_LIBS="-lm"
24719 fi
24720
24721 LIBS="$MATH_LIBS $LIBS"
24722
24723
24724 for ac_func in acosh asinh atanh 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 newlocale _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 strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
24725 do :
24726   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24729   cat >>confdefs.h <<_ACEOF
24730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24731 _ACEOF
24732
24733 fi
24734 done
24735
24736
24737 #
24738 # Check for clock_gettime().
24739 #
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24741 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24742 if ${ac_cv_search_clock_gettime+:} false; then :
24743   $as_echo_n "(cached) " >&6
24744 else
24745   ac_func_search_save_LIBS=$LIBS
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h.  */
24748
24749 /* Override any GCC internal prototype to avoid an error.
24750    Use char because int might match the return type of a GCC
24751    builtin and then its argument prototype would still apply.  */
24752 #ifdef __cplusplus
24753 extern "C"
24754 #endif
24755 char clock_gettime ();
24756 int
24757 main ()
24758 {
24759 return clock_gettime ();
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 for ac_lib in '' rt; do
24765   if test -z "$ac_lib"; then
24766     ac_res="none required"
24767   else
24768     ac_res=-l$ac_lib
24769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24770   fi
24771   if ac_fn_c_try_link "$LINENO"; then :
24772   ac_cv_search_clock_gettime=$ac_res
24773 fi
24774 rm -f core conftest.err conftest.$ac_objext \
24775     conftest$ac_exeext
24776   if ${ac_cv_search_clock_gettime+:} false; then :
24777   break
24778 fi
24779 done
24780 if ${ac_cv_search_clock_gettime+:} false; then :
24781
24782 else
24783   ac_cv_search_clock_gettime=no
24784 fi
24785 rm conftest.$ac_ext
24786 LIBS=$ac_func_search_save_LIBS
24787 fi
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24789 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24790 ac_res=$ac_cv_search_clock_gettime
24791 if test "$ac_res" != no; then :
24792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24793
24794
24795 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24796
24797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24798 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h.  */
24801
24802     #include <time.h>
24803 int
24804 main ()
24805 {
24806 clockid_t clockType = CLOCK_REALTIME;
24807   ;
24808   return 0;
24809 }
24810 _ACEOF
24811 if ac_fn_c_try_compile "$LINENO"; then :
24812
24813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24814 $as_echo "yes" >&6; }
24815
24816 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24817
24818
24819 else
24820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24821 $as_echo "no" >&6; }
24822
24823 fi
24824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24825
24826 else
24827
24828     for ac_func in gettimeofday ftime
24829 do :
24830   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24833   cat >>confdefs.h <<_ACEOF
24834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24835 _ACEOF
24836  break
24837 fi
24838 done
24839
24840
24841
24842 fi
24843
24844
24845 ########
24846 #
24847 # Check for function prototypes
24848 #
24849 ########
24850
24851 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24852 #include <unistd.h>
24853 "
24854 if test "x$ac_cv_have_decl_pread" = xyes; then :
24855   ac_have_decl=1
24856 else
24857   ac_have_decl=0
24858 fi
24859
24860 cat >>confdefs.h <<_ACEOF
24861 #define HAVE_DECL_PREAD $ac_have_decl
24862 _ACEOF
24863 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24864 #include <unistd.h>
24865 "
24866 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24867   ac_have_decl=1
24868 else
24869   ac_have_decl=0
24870 fi
24871
24872 cat >>confdefs.h <<_ACEOF
24873 #define HAVE_DECL_PWRITE $ac_have_decl
24874 _ACEOF
24875
24876
24877 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24878 #include <strings.h>
24879 "
24880 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24881   ac_have_decl=1
24882 else
24883   ac_have_decl=0
24884 fi
24885
24886 cat >>confdefs.h <<_ACEOF
24887 #define HAVE_DECL_STRLCPY $ac_have_decl
24888 _ACEOF
24889
24890
24891 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24892 #include <stdio.h>
24893 #include <stdarg.h>
24894 "
24895 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24896   ac_have_decl=1
24897 else
24898   ac_have_decl=0
24899 fi
24900
24901 cat >>confdefs.h <<_ACEOF
24902 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24903 _ACEOF
24904
24905
24906 ########
24907 #
24908 # C++ Support Tests (For Magick++)
24909 #
24910 ########
24911 have_magick_plus_plus='no'
24912 if test "$with_magick_plus_plus" = 'yes'; then
24913     OLIBS="$LIBS"
24914     LIBS=''
24915     ac_ext=cpp
24916 ac_cpp='$CXXCPP $CPPFLAGS'
24917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24920
24921
24922     # Full set of headers used...
24923     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24924     # functional iomanip iosfwd iostream iterator list string strstream utility
24925     ac_ext=cpp
24926 ac_cpp='$CXXCPP $CPPFLAGS'
24927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24930
24931     ac_ext=cpp
24932 ac_cpp='$CXXCPP $CPPFLAGS'
24933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24936 if test -z "$CXX"; then
24937   if test -n "$CCC"; then
24938     CXX=$CCC
24939   else
24940     if test -n "$ac_tool_prefix"; then
24941   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24942   do
24943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24946 $as_echo_n "checking for $ac_word... " >&6; }
24947 if ${ac_cv_prog_CXX+:} false; then :
24948   $as_echo_n "(cached) " >&6
24949 else
24950   if test -n "$CXX"; then
24951   ac_cv_prog_CXX="$CXX" # Let the user override the test.
24952 else
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24955 do
24956   IFS=$as_save_IFS
24957   test -z "$as_dir" && as_dir=.
24958     for ac_exec_ext in '' $ac_executable_extensions; do
24959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24960     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24962     break 2
24963   fi
24964 done
24965   done
24966 IFS=$as_save_IFS
24967
24968 fi
24969 fi
24970 CXX=$ac_cv_prog_CXX
24971 if test -n "$CXX"; then
24972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24973 $as_echo "$CXX" >&6; }
24974 else
24975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24976 $as_echo "no" >&6; }
24977 fi
24978
24979
24980     test -n "$CXX" && break
24981   done
24982 fi
24983 if test -z "$CXX"; then
24984   ac_ct_CXX=$CXX
24985   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24986 do
24987   # Extract the first word of "$ac_prog", so it can be a program name with args.
24988 set dummy $ac_prog; ac_word=$2
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24990 $as_echo_n "checking for $ac_word... " >&6; }
24991 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24992   $as_echo_n "(cached) " >&6
24993 else
24994   if test -n "$ac_ct_CXX"; then
24995   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24996 else
24997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998 for as_dir in $PATH
24999 do
25000   IFS=$as_save_IFS
25001   test -z "$as_dir" && as_dir=.
25002     for ac_exec_ext in '' $ac_executable_extensions; do
25003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25004     ac_cv_prog_ac_ct_CXX="$ac_prog"
25005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25006     break 2
25007   fi
25008 done
25009   done
25010 IFS=$as_save_IFS
25011
25012 fi
25013 fi
25014 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25015 if test -n "$ac_ct_CXX"; then
25016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25017 $as_echo "$ac_ct_CXX" >&6; }
25018 else
25019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25020 $as_echo "no" >&6; }
25021 fi
25022
25023
25024   test -n "$ac_ct_CXX" && break
25025 done
25026
25027   if test "x$ac_ct_CXX" = x; then
25028     CXX="g++"
25029   else
25030     case $cross_compiling:$ac_tool_warned in
25031 yes:)
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25034 ac_tool_warned=yes ;;
25035 esac
25036     CXX=$ac_ct_CXX
25037   fi
25038 fi
25039
25040   fi
25041 fi
25042 # Provide some information about the compiler.
25043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25044 set X $ac_compile
25045 ac_compiler=$2
25046 for ac_option in --version -v -V -qversion; do
25047   { { ac_try="$ac_compiler $ac_option >&5"
25048 case "(($ac_try" in
25049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050   *) ac_try_echo=$ac_try;;
25051 esac
25052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25053 $as_echo "$ac_try_echo"; } >&5
25054   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25055   ac_status=$?
25056   if test -s conftest.err; then
25057     sed '10a\
25058 ... rest of stderr output deleted ...
25059          10q' conftest.err >conftest.er1
25060     cat conftest.er1 >&5
25061   fi
25062   rm -f conftest.er1 conftest.err
25063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064   test $ac_status = 0; }
25065 done
25066
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25068 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25069 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25070   $as_echo_n "(cached) " >&6
25071 else
25072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h.  */
25074
25075 int
25076 main ()
25077 {
25078 #ifndef __GNUC__
25079        choke me
25080 #endif
25081
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 if ac_fn_cxx_try_compile "$LINENO"; then :
25087   ac_compiler_gnu=yes
25088 else
25089   ac_compiler_gnu=no
25090 fi
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25093
25094 fi
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25096 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25097 if test $ac_compiler_gnu = yes; then
25098   GXX=yes
25099 else
25100   GXX=
25101 fi
25102 ac_test_CXXFLAGS=${CXXFLAGS+set}
25103 ac_save_CXXFLAGS=$CXXFLAGS
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25105 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25106 if ${ac_cv_prog_cxx_g+:} false; then :
25107   $as_echo_n "(cached) " >&6
25108 else
25109   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25110    ac_cxx_werror_flag=yes
25111    ac_cv_prog_cxx_g=no
25112    CXXFLAGS="-g"
25113    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h.  */
25115
25116 int
25117 main ()
25118 {
25119
25120   ;
25121   return 0;
25122 }
25123 _ACEOF
25124 if ac_fn_cxx_try_compile "$LINENO"; then :
25125   ac_cv_prog_cxx_g=yes
25126 else
25127   CXXFLAGS=""
25128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h.  */
25130
25131 int
25132 main ()
25133 {
25134
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 if ac_fn_cxx_try_compile "$LINENO"; then :
25140
25141 else
25142   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25143          CXXFLAGS="-g"
25144          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h.  */
25146
25147 int
25148 main ()
25149 {
25150
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 if ac_fn_cxx_try_compile "$LINENO"; then :
25156   ac_cv_prog_cxx_g=yes
25157 fi
25158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159 fi
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 fi
25162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25164 fi
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25166 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25167 if test "$ac_test_CXXFLAGS" = set; then
25168   CXXFLAGS=$ac_save_CXXFLAGS
25169 elif test $ac_cv_prog_cxx_g = yes; then
25170   if test "$GXX" = yes; then
25171     CXXFLAGS="-g -O2"
25172   else
25173     CXXFLAGS="-g"
25174   fi
25175 else
25176   if test "$GXX" = yes; then
25177     CXXFLAGS="-O2"
25178   else
25179     CXXFLAGS=
25180   fi
25181 fi
25182 ac_ext=cpp
25183 ac_cpp='$CXXCPP $CPPFLAGS'
25184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25187
25188 depcc="$CXX"  am_compiler_list=
25189
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25191 $as_echo_n "checking dependency style of $depcc... " >&6; }
25192 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25193   $as_echo_n "(cached) " >&6
25194 else
25195   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25196   # We make a subdir and do the tests there.  Otherwise we can end up
25197   # making bogus files that we don't know about and never remove.  For
25198   # instance it was reported that on HP-UX the gcc test will end up
25199   # making a dummy file named `D' -- because `-MD' means `put the output
25200   # in D'.
25201   mkdir conftest.dir
25202   # Copy depcomp to subdir because otherwise we won't find it if we're
25203   # using a relative directory.
25204   cp "$am_depcomp" conftest.dir
25205   cd conftest.dir
25206   # We will build objects and dependencies in a subdirectory because
25207   # it helps to detect inapplicable dependency modes.  For instance
25208   # both Tru64's cc and ICC support -MD to output dependencies as a
25209   # side effect of compilation, but ICC will put the dependencies in
25210   # the current directory while Tru64 will put them in the object
25211   # directory.
25212   mkdir sub
25213
25214   am_cv_CXX_dependencies_compiler_type=none
25215   if test "$am_compiler_list" = ""; then
25216      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25217   fi
25218   am__universal=false
25219   case " $depcc " in #(
25220      *\ -arch\ *\ -arch\ *) am__universal=true ;;
25221      esac
25222
25223   for depmode in $am_compiler_list; do
25224     # Setup a source with many dependencies, because some compilers
25225     # like to wrap large dependency lists on column 80 (with \), and
25226     # we should not choose a depcomp mode which is confused by this.
25227     #
25228     # We need to recreate these files for each test, as the compiler may
25229     # overwrite some of them when testing with obscure command lines.
25230     # This happens at least with the AIX C compiler.
25231     : > sub/conftest.c
25232     for i in 1 2 3 4 5 6; do
25233       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25234       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25235       # Solaris 8's {/usr,}/bin/sh.
25236       touch sub/conftst$i.h
25237     done
25238     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25239
25240     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25241     # mode.  It turns out that the SunPro C++ compiler does not properly
25242     # handle `-M -o', and we need to detect this.  Also, some Intel
25243     # versions had trouble with output in subdirs
25244     am__obj=sub/conftest.${OBJEXT-o}
25245     am__minus_obj="-o $am__obj"
25246     case $depmode in
25247     gcc)
25248       # This depmode causes a compiler race in universal mode.
25249       test "$am__universal" = false || continue
25250       ;;
25251     nosideeffect)
25252       # after this tag, mechanisms are not by side-effect, so they'll
25253       # only be used when explicitly requested
25254       if test "x$enable_dependency_tracking" = xyes; then
25255         continue
25256       else
25257         break
25258       fi
25259       ;;
25260     msvisualcpp | msvcmsys)
25261       # This compiler won't grok `-c -o', but also, the minuso test has
25262       # not run yet.  These depmodes are late enough in the game, and
25263       # so weak that their functioning should not be impacted.
25264       am__obj=conftest.${OBJEXT-o}
25265       am__minus_obj=
25266       ;;
25267     none) break ;;
25268     esac
25269     if depmode=$depmode \
25270        source=sub/conftest.c object=$am__obj \
25271        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25272        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25273          >/dev/null 2>conftest.err &&
25274        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25275        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25276        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25277        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25278       # icc doesn't choke on unknown options, it will just issue warnings
25279       # or remarks (even with -Werror).  So we grep stderr for any message
25280       # that says an option was ignored or not supported.
25281       # When given -MP, icc 7.0 and 7.1 complain thusly:
25282       #   icc: Command line warning: ignoring option '-M'; no argument required
25283       # The diagnosis changed in icc 8.0:
25284       #   icc: Command line remark: option '-MP' not supported
25285       if (grep 'ignoring option' conftest.err ||
25286           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25287         am_cv_CXX_dependencies_compiler_type=$depmode
25288         break
25289       fi
25290     fi
25291   done
25292
25293   cd ..
25294   rm -rf conftest.dir
25295 else
25296   am_cv_CXX_dependencies_compiler_type=none
25297 fi
25298
25299 fi
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25301 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25302 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25303
25304  if
25305   test "x$enable_dependency_tracking" != xno \
25306   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25307   am__fastdepCXX_TRUE=
25308   am__fastdepCXX_FALSE='#'
25309 else
25310   am__fastdepCXX_TRUE='#'
25311   am__fastdepCXX_FALSE=
25312 fi
25313
25314
25315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25316 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25317 if ${ax_cv_cxx_bool+:} false; then :
25318   $as_echo_n "(cached) " >&6
25319 else
25320
25321  ac_ext=cpp
25322 ac_cpp='$CXXCPP $CPPFLAGS'
25323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25326
25327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h.  */
25329
25330 int f(int  x){return 1;}
25331 int f(char x){return 1;}
25332 int f(bool x){return 1;}
25333
25334 int
25335 main ()
25336 {
25337 bool b = true; return f(b);
25338   ;
25339   return 0;
25340 }
25341 _ACEOF
25342 if ac_fn_cxx_try_compile "$LINENO"; then :
25343   ax_cv_cxx_bool=yes
25344 else
25345   ax_cv_cxx_bool=no
25346 fi
25347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25348  ac_ext=cpp
25349 ac_cpp='$CXXCPP $CPPFLAGS'
25350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25353
25354
25355 fi
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25357 $as_echo "$ax_cv_cxx_bool" >&6; }
25358 if test "$ax_cv_cxx_bool" = yes; then
25359
25360 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25361
25362 fi
25363
25364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25365 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25366 if ${ax_cv_cxx_namespaces+:} false; then :
25367   $as_echo_n "(cached) " >&6
25368 else
25369
25370  ac_ext=cpp
25371 ac_cpp='$CXXCPP $CPPFLAGS'
25372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25375
25376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377 /* end confdefs.h.  */
25378 namespace Outer { namespace Inner { int i = 0; }}
25379 int
25380 main ()
25381 {
25382 using namespace Outer::Inner; return i;
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 if ac_fn_cxx_try_compile "$LINENO"; then :
25388   ax_cv_cxx_namespaces=yes
25389 else
25390   ax_cv_cxx_namespaces=no
25391 fi
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393  ac_ext=cpp
25394 ac_cpp='$CXXCPP $CPPFLAGS'
25395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25398
25399
25400 fi
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25402 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25403 if test "$ax_cv_cxx_namespaces" = yes; then
25404
25405 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25406
25407 fi
25408
25409
25410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25411 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25412 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25413   $as_echo_n "(cached) " >&6
25414 else
25415
25416   ac_ext=cpp
25417 ac_cpp='$CXXCPP $CPPFLAGS'
25418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25421
25422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25423 /* end confdefs.h.  */
25424 #include <iostream>
25425                   std::istream& is = std::cin;
25426 int
25427 main ()
25428 {
25429
25430   ;
25431   return 0;
25432 }
25433 _ACEOF
25434 if ac_fn_cxx_try_compile "$LINENO"; then :
25435   ax_cv_cxx_have_std_namespace=yes
25436 else
25437   ax_cv_cxx_have_std_namespace=no
25438 fi
25439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440   ac_ext=cpp
25441 ac_cpp='$CXXCPP $CPPFLAGS'
25442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25445
25446
25447 fi
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25449 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25450   if test "$ax_cv_cxx_have_std_namespace" = yes; then
25451
25452 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25453
25454   fi
25455
25456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25457 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25458 if ${ac_cv_cxx_have_std_libs+:} false; then :
25459   $as_echo_n "(cached) " >&6
25460 else
25461
25462
25463  ac_ext=cpp
25464 ac_cpp='$CXXCPP $CPPFLAGS'
25465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25468
25469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h.  */
25471 #include <iostream>
25472 #include <map>
25473 #include <iomanip>
25474 #include <cmath>
25475 #ifdef HAVE_NAMESPACES
25476 using namespace std;
25477 #endif
25478 int
25479 main ()
25480 {
25481 return 0;
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 if ac_fn_cxx_try_compile "$LINENO"; then :
25487   ac_cv_cxx_have_std_libs=yes
25488 else
25489   ac_cv_cxx_have_std_libs=no
25490 fi
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492  ac_ext=cpp
25493 ac_cpp='$CXXCPP $CPPFLAGS'
25494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25497
25498
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25501 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25502 if test "$ac_cv_cxx_have_std_libs" = yes; then
25503
25504 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25505
25506 fi
25507
25508
25509   OPENMP_CXXFLAGS=
25510   # Check whether --enable-openmp was given.
25511 if test "${enable_openmp+set}" = set; then :
25512   enableval=$enable_openmp;
25513 fi
25514
25515   if test "$enable_openmp" != no; then
25516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25517 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25518 if ${ac_cv_prog_cxx_openmp+:} false; then :
25519   $as_echo_n "(cached) " >&6
25520 else
25521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523
25524 #ifndef _OPENMP
25525  choke me
25526 #endif
25527 #include <omp.h>
25528 int main () { return omp_get_num_threads (); }
25529
25530 _ACEOF
25531 if ac_fn_cxx_try_link "$LINENO"; then :
25532   ac_cv_prog_cxx_openmp='none needed'
25533 else
25534   ac_cv_prog_cxx_openmp='unsupported'
25535                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25536             ac_save_CXXFLAGS=$CXXFLAGS
25537             CXXFLAGS="$CXXFLAGS $ac_option"
25538             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h.  */
25540
25541 #ifndef _OPENMP
25542  choke me
25543 #endif
25544 #include <omp.h>
25545 int main () { return omp_get_num_threads (); }
25546
25547 _ACEOF
25548 if ac_fn_cxx_try_link "$LINENO"; then :
25549   ac_cv_prog_cxx_openmp=$ac_option
25550 fi
25551 rm -f core conftest.err conftest.$ac_objext \
25552     conftest$ac_exeext conftest.$ac_ext
25553             CXXFLAGS=$ac_save_CXXFLAGS
25554             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25555               break
25556             fi
25557           done
25558 fi
25559 rm -f core conftest.err conftest.$ac_objext \
25560     conftest$ac_exeext conftest.$ac_ext
25561 fi
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25563 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25564     case $ac_cv_prog_cxx_openmp in #(
25565       "none needed" | unsupported)
25566         ;; #(
25567       *)
25568         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25569     esac
25570   fi
25571
25572
25573     ac_ext=c
25574 ac_cpp='$CPP $CPPFLAGS'
25575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25578
25579
25580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25581 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25582     if \
25583         test $ax_cv_cxx_bool = 'yes' && \
25584         test $ax_cv_cxx_namespaces = 'yes' && \
25585         test $ac_cv_cxx_have_std_libs = 'yes' && \
25586         test $ax_cv_cxx_have_std_namespace = 'yes'; then
25587         have_magick_plus_plus='yes'
25588     else
25589         have_magick_plus_plus='no (failed tests)'
25590     fi
25591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25592 $as_echo "$have_magick_plus_plus" >&6; }
25593     LIBS="$OLIBS"
25594 fi
25595  if test "$have_magick_plus_plus" = 'yes'; then
25596   WITH_MAGICK_PLUS_PLUS_TRUE=
25597   WITH_MAGICK_PLUS_PLUS_FALSE='#'
25598 else
25599   WITH_MAGICK_PLUS_PLUS_TRUE='#'
25600   WITH_MAGICK_PLUS_PLUS_FALSE=
25601 fi
25602
25603
25604 # Only check for delegate libraries in subdirectories if requested.
25605 if test "$enable_delegate_build" != 'no'; then
25606     # Check for delegate sub-directories and add -I & -L options as required.
25607     # This presumes that delegates are installed as detailed in the ImageMagick
25608     # README. If delegates are installed in a standard location where the
25609     # compiler will automatically find them then these options should not be
25610     # required.
25611
25612     #
25613     # Most delegates have includes in the same directory as the library, but not all...
25614     #
25615     # Includes
25616     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
25617         if test -d "$builddir/$dir"; then
25618             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25619         else
25620             if test -d "$srcdirfull/$dir"; then
25621                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25622             fi
25623         fi
25624     done
25625
25626     # Libraries
25627     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
25628     if test -d "$builddir/$dir/.libs"; then
25629         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25630     else
25631         if test -d "$srcdirfull/$dir/.libs"; then
25632             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25633         fi
25634     fi
25635     if test -d "$builddir/$dir"; then
25636         LDFLAGS="$LDFLAGS -L$builddir/$dir"
25637     else
25638         if test -d "$srcdirfull/$dir"; then
25639             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25640         fi
25641     fi
25642   done
25643 fi
25644
25645 # Assume that delegate headers reside under same directory as ImageMagick
25646 # installation prefix.
25647 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25648
25649 #
25650 # Find the X11 RGB database
25651 #
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25653 $as_echo_n "checking for X11 configure files... " >&6; }
25654 if ${im_cv_x_configure+:} false; then :
25655   $as_echo_n "(cached) " >&6
25656 else
25657   # Look for the header file in a standard set of common directories.
25658 # Check X11 before X11Rn because it is often a symlink to the current release.
25659     for ac_dir in          \
25660     /lib/usr/lib/X11       \
25661     /usr/X11/lib           \
25662     /usr/X11R4/lib         \
25663     /usr/X11R5/lib         \
25664     /usr/X11R6/lib         \
25665     /usr/X11R7/lib         \
25666     /usr/X386/lib          \
25667     /usr/XFree86/lib/X11   \
25668     /usr/athena/lib        \
25669     /usr/lib               \
25670     /usr/lib/X11           \
25671     /usr/lib/X11R4         \
25672     /usr/lib/X11R5         \
25673     /usr/lib/X11R6         \
25674     /usr/lib/X11R7         \
25675     /usr/local/X11/lib     \
25676     /usr/local/X11R4/lib   \
25677     /usr/local/X11R5/lib   \
25678     /usr/local/X11R6/lib   \
25679     /usr/local/lib         \
25680     /usr/local/lib/X11     \
25681     /usr/local/lib/X11R4   \
25682     /usr/local/lib/X11R5   \
25683     /usr/local/lib/X11R6   \
25684     /usr/local/lib/X11R7   \
25685     /usr/local/x11r5/lib   \
25686     /usr/lpp/Xamples/lib   \
25687     /usr/openwin/lib       \
25688     /usr/openwin/share/lib \
25689     /usr/unsupported/lib   \
25690     /usr/x386/lib          \
25691     ; do
25692     if test -f "$ac_dir/X11/rgb.txt"; then
25693       im_cv_x_configure="$ac_dir/X11/"
25694       break
25695     elif test -f "$ac_dir/rgb.txt"; then
25696       im_cv_x_configure="$ac_dir/"
25697       break
25698     fi
25699
25700   done
25701 fi
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25703 $as_echo "$im_cv_x_configure" >&6; }
25704 X11_CONFIGURE_PATH="$im_cv_x_configure"
25705 case "${build_os}" in
25706   mingw* )
25707     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25708   ;;
25709 esac
25710
25711 cat >>confdefs.h <<_ACEOF
25712 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25713 _ACEOF
25714
25715
25716 #
25717 # Find OpenMP library
25718 #
25719 GOMP_LIBS=''
25720 if test "$enable_openmp" != 'no'; then
25721   if test "${GCC}" = "yes"; then
25722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25723 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25724 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25725   $as_echo_n "(cached) " >&6
25726 else
25727   ac_check_lib_save_LIBS=$LIBS
25728 LIBS="-lgomp  $LIBS"
25729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25730 /* end confdefs.h.  */
25731
25732 /* Override any GCC internal prototype to avoid an error.
25733    Use char because int might match the return type of a GCC
25734    builtin and then its argument prototype would still apply.  */
25735 #ifdef __cplusplus
25736 extern "C"
25737 #endif
25738 char GOMP_parallel_start ();
25739 int
25740 main ()
25741 {
25742 return GOMP_parallel_start ();
25743   ;
25744   return 0;
25745 }
25746 _ACEOF
25747 if ac_fn_c_try_link "$LINENO"; then :
25748   ac_cv_lib_gomp_GOMP_parallel_start=yes
25749 else
25750   ac_cv_lib_gomp_GOMP_parallel_start=no
25751 fi
25752 rm -f core conftest.err conftest.$ac_objext \
25753     conftest$ac_exeext conftest.$ac_ext
25754 LIBS=$ac_check_lib_save_LIBS
25755 fi
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25757 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25758 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25759   GOMP_LIBS="-lgomp"
25760 fi
25761   # gcc
25762   else
25763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25764 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25765 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25766   $as_echo_n "(cached) " >&6
25767 else
25768   ac_check_lib_save_LIBS=$LIBS
25769 LIBS="-lmtsk  $LIBS"
25770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25771 /* end confdefs.h.  */
25772
25773 /* Override any GCC internal prototype to avoid an error.
25774    Use char because int might match the return type of a GCC
25775    builtin and then its argument prototype would still apply.  */
25776 #ifdef __cplusplus
25777 extern "C"
25778 #endif
25779 char sunw_mp_register_warn ();
25780 int
25781 main ()
25782 {
25783 return sunw_mp_register_warn ();
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 if ac_fn_c_try_link "$LINENO"; then :
25789   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25790 else
25791   ac_cv_lib_mtsk_sunw_mp_register_warn=no
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext \
25794     conftest$ac_exeext conftest.$ac_ext
25795 LIBS=$ac_check_lib_save_LIBS
25796 fi
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25798 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25799 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25800   GOMP_LIBS="-lmtsk"
25801 fi
25802   # solaris cc
25803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25804 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25805 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25806   $as_echo_n "(cached) " >&6
25807 else
25808   ac_check_lib_save_LIBS=$LIBS
25809 LIBS="-lxlsmp  $LIBS"
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813 /* Override any GCC internal prototype to avoid an error.
25814    Use char because int might match the return type of a GCC
25815    builtin and then its argument prototype would still apply.  */
25816 #ifdef __cplusplus
25817 extern "C"
25818 #endif
25819 char _xlsmpFlush ();
25820 int
25821 main ()
25822 {
25823 return _xlsmpFlush ();
25824   ;
25825   return 0;
25826 }
25827 _ACEOF
25828 if ac_fn_c_try_link "$LINENO"; then :
25829   ac_cv_lib_xlsmp__xlsmpFlush=yes
25830 else
25831   ac_cv_lib_xlsmp__xlsmpFlush=no
25832 fi
25833 rm -f core conftest.err conftest.$ac_objext \
25834     conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25836 fi
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25838 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25839 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25840   GOMP_LIBS="-lxlsmp"
25841 fi
25842   # AIX xlc
25843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25844 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25845 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25846   $as_echo_n "(cached) " >&6
25847 else
25848   ac_check_lib_save_LIBS=$LIBS
25849 LIBS="-lmp  $LIBS"
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852
25853 /* Override any GCC internal prototype to avoid an error.
25854    Use char because int might match the return type of a GCC
25855    builtin and then its argument prototype would still apply.  */
25856 #ifdef __cplusplus
25857 extern "C"
25858 #endif
25859 char mp_destroy ();
25860 int
25861 main ()
25862 {
25863 return mp_destroy ();
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 if ac_fn_c_try_link "$LINENO"; then :
25869   ac_cv_lib_mp_mp_destroy=yes
25870 else
25871   ac_cv_lib_mp_mp_destroy=no
25872 fi
25873 rm -f core conftest.err conftest.$ac_objext \
25874     conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25876 fi
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25878 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25879 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25880   GOMP_LIBS="-lmp"
25881 fi
25882   # SGI IRIX 6.5 MIPSpro C/C++
25883   fi
25884   LIBS="$GOMP_LIBS $LIBS"
25885 fi
25886
25887
25888 #
25889 # Find Posix threads library
25890 #
25891 THREAD_LIBS=''
25892 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25893
25894     if test "x$PTHREAD_LIBS" = "x"; then
25895     case "${host_cpu}-${host_os}" in
25896       *-freebsd*)
25897
25898
25899
25900 ac_ext=c
25901 ac_cpp='$CPP $CPPFLAGS'
25902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25905
25906 magick_pthread_lib_ok=no
25907
25908 LIB=-lc_r
25909 save_LIBS="$LIBS"
25910 LIBS="$LIBS $LIB"
25911
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25913 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h.  */
25916 #include <pthread.h>
25917 int
25918 main ()
25919 {
25920   pthread_t th;
25921   pthread_join(th, 0);
25922   pthread_attr_init(0);
25923   pthread_cleanup_push(0, 0);
25924   pthread_create(0,0,0,0);
25925   pthread_cleanup_pop(0);
25926   ;
25927   return 0;
25928 }
25929 _ACEOF
25930 if ac_fn_c_try_link "$LINENO"; then :
25931   magick_pthread_lib_ok=yes
25932 fi
25933 rm -f core conftest.err conftest.$ac_objext \
25934     conftest$ac_exeext conftest.$ac_ext
25935
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25937 $as_echo "${magick_pthread_lib_ok}" >&6; }
25938 if test "$magick_pthread_lib_ok" = yes
25939 then
25940   PTHREAD_LIBS=-lc_r
25941   :
25942 else
25943
25944   :
25945 fi
25946
25947 LIBS="$save_LIBS"
25948
25949 ac_ext=c
25950 ac_cpp='$CPP $CPPFLAGS'
25951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25954
25955  ;;
25956     esac
25957     fi
25958
25959     for lib in pthread pthreads; do
25960         if test "x$PTHREAD_LIBS" = "x"; then
25961
25962
25963
25964 ac_ext=c
25965 ac_cpp='$CPP $CPPFLAGS'
25966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25969
25970 magick_pthread_lib_ok=no
25971
25972 LIB=-l$lib
25973 save_LIBS="$LIBS"
25974 LIBS="$LIBS $LIB"
25975
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25977 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979 /* end confdefs.h.  */
25980 #include <pthread.h>
25981 int
25982 main ()
25983 {
25984   pthread_t th;
25985   pthread_join(th, 0);
25986   pthread_attr_init(0);
25987   pthread_cleanup_push(0, 0);
25988   pthread_create(0,0,0,0);
25989   pthread_cleanup_pop(0);
25990   ;
25991   return 0;
25992 }
25993 _ACEOF
25994 if ac_fn_c_try_link "$LINENO"; then :
25995   magick_pthread_lib_ok=yes
25996 fi
25997 rm -f core conftest.err conftest.$ac_objext \
25998     conftest$ac_exeext conftest.$ac_ext
25999
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26001 $as_echo "${magick_pthread_lib_ok}" >&6; }
26002 if test "$magick_pthread_lib_ok" = yes
26003 then
26004   PTHREAD_LIBS=-l$lib
26005   :
26006 else
26007
26008   :
26009 fi
26010
26011 LIBS="$save_LIBS"
26012
26013 ac_ext=c
26014 ac_cpp='$CPP $CPPFLAGS'
26015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26018
26019
26020         fi
26021     done
26022
26023     THREAD_LIBS="$PTHREAD_LIBS"
26024     LIBS="$LIBS $THREAD_LIBS"
26025 fi
26026
26027
26028 #
26029 # Check for umem.
26030 #
26031 have_umem='no'
26032 UMEM_LIBS=''
26033 if test "$with_umem" != 'no'; then
26034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26035 $as_echo_n "checking for UMEM support ... " >&6; }
26036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26037 $as_echo "" >&6; }
26038   failed=0
26039   passed=0
26040   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26041 if test "x$ac_cv_header_umem_h" = xyes; then :
26042   passed=`expr $passed + 1`
26043 else
26044   failed=`expr $failed + 1`
26045 fi
26046
26047
26048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26049 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26050 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26051   $as_echo_n "(cached) " >&6
26052 else
26053   ac_check_lib_save_LIBS=$LIBS
26054 LIBS="-lumem  $LIBS"
26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h.  */
26057
26058 /* Override any GCC internal prototype to avoid an error.
26059    Use char because int might match the return type of a GCC
26060    builtin and then its argument prototype would still apply.  */
26061 #ifdef __cplusplus
26062 extern "C"
26063 #endif
26064 char umem_alloc ();
26065 int
26066 main ()
26067 {
26068 return umem_alloc ();
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 if ac_fn_c_try_link "$LINENO"; then :
26074   ac_cv_lib_umem_umem_alloc=yes
26075 else
26076   ac_cv_lib_umem_umem_alloc=no
26077 fi
26078 rm -f core conftest.err conftest.$ac_objext \
26079     conftest$ac_exeext conftest.$ac_ext
26080 LIBS=$ac_check_lib_save_LIBS
26081 fi
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26083 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26084 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26085   passed=`expr $passed + 1`
26086 else
26087   failed=`expr $failed + 1`
26088 fi
26089
26090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26091 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26092 if ${ac_cv_lib_umem_umem_free+:} false; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lumem  $LIBS"
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h.  */
26099
26100 /* Override any GCC internal prototype to avoid an error.
26101    Use char because int might match the return type of a GCC
26102    builtin and then its argument prototype would still apply.  */
26103 #ifdef __cplusplus
26104 extern "C"
26105 #endif
26106 char umem_free ();
26107 int
26108 main ()
26109 {
26110 return umem_free ();
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 if ac_fn_c_try_link "$LINENO"; then :
26116   ac_cv_lib_umem_umem_free=yes
26117 else
26118   ac_cv_lib_umem_umem_free=no
26119 fi
26120 rm -f core conftest.err conftest.$ac_objext \
26121     conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26123 fi
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26125 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26126 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26127   passed=`expr $passed + 1`
26128 else
26129   failed=`expr $failed + 1`
26130 fi
26131
26132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26133 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26134   if test $passed -gt 0; then
26135     if test $failed -gt 0; then
26136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26137 $as_echo "no -- some components failed test" >&6; }
26138       have_umem='no (failed tests)'
26139     else
26140       UMEM_LIBS='-lumem'
26141       LIBS="$UMEM_LIBS $LIBS"
26142
26143 $as_echo "#define HasUMEM 1" >>confdefs.h
26144
26145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26147       have_umem='yes'
26148     fi
26149   else
26150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26151 $as_echo "no" >&6; }
26152   fi
26153 fi
26154  if test "$have_umem" = 'yes'; then
26155   HasUMEM_TRUE=
26156   HasUMEM_FALSE='#'
26157 else
26158   HasUMEM_TRUE='#'
26159   HasUMEM_FALSE=
26160 fi
26161
26162
26163
26164 #
26165 # Add support for ccmalloc memory debugging library if requested
26166 #
26167 have_ccmalloc='no'
26168 CCMALLOC_LIBS=''
26169 if test "$enable_ccmalloc" = 'yes'; then
26170     # Extract the first word of "ccmalloc", so it can be a program name with args.
26171 set dummy ccmalloc; ac_word=$2
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26173 $as_echo_n "checking for $ac_word... " >&6; }
26174 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26175   $as_echo_n "(cached) " >&6
26176 else
26177   case $CCMALLOCDelegate in
26178   [\\/]* | ?:[\\/]*)
26179   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26180   ;;
26181   *)
26182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26183 for as_dir in $PATH
26184 do
26185   IFS=$as_save_IFS
26186   test -z "$as_dir" && as_dir=.
26187     for ac_exec_ext in '' $ac_executable_extensions; do
26188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26189     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26191     break 2
26192   fi
26193 done
26194   done
26195 IFS=$as_save_IFS
26196
26197   ;;
26198 esac
26199 fi
26200 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26201 if test -n "$CCMALLOCDelegate"; then
26202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26203 $as_echo "$CCMALLOCDelegate" >&6; }
26204 else
26205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26207 fi
26208
26209
26210     if test -n "$CCMALLOCDelegate"; then
26211         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26212         OLIBS="$LIBS"
26213         # Assume that gcc is used with ccmalloc.
26214         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26215        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26216 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26217 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26218   $as_echo_n "(cached) " >&6
26219 else
26220   ac_check_lib_save_LIBS=$LIBS
26221 LIBS="-lccmalloc -ldl $LIBS"
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h.  */
26224
26225 /* Override any GCC internal prototype to avoid an error.
26226    Use char because int might match the return type of a GCC
26227    builtin and then its argument prototype would still apply.  */
26228 #ifdef __cplusplus
26229 extern "C"
26230 #endif
26231 char ccmalloc_malloc ();
26232 int
26233 main ()
26234 {
26235 return ccmalloc_malloc ();
26236   ;
26237   return 0;
26238 }
26239 _ACEOF
26240 if ac_fn_c_try_link "$LINENO"; then :
26241   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26242 else
26243   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26244 fi
26245 rm -f core conftest.err conftest.$ac_objext \
26246     conftest$ac_exeext conftest.$ac_ext
26247 LIBS=$ac_check_lib_save_LIBS
26248 fi
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26250 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26251 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26252   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26253 fi
26254
26255         if test -n "$CCMALLOC_LIBS"; then
26256             LIBS="$OLIBS"
26257             LIBS="$LIBS $CCMALLOC_LIBS"
26258             have_ccmalloc='yes'
26259         else
26260             LIBS="$OLIBS"
26261         fi
26262     fi
26263 fi
26264
26265 #
26266 # Add support for efence memory debugging library if requested
26267 #
26268 if test "$enable_efence" = 'yes'; then
26269     EFENCE_LIBS='-lefence'
26270     LIBS="$EFENCE_LIBS $LIBS"
26271 fi
26272
26273
26274 #
26275 # Check for BZLIB
26276 #
26277
26278
26279 # Check whether --with-bzlib was given.
26280 if test "${with_bzlib+set}" = set; then :
26281   withval=$with_bzlib; with_bzlib=$withval
26282 else
26283   with_bzlib='yes'
26284 fi
26285
26286
26287 if test "$with_bzlib" != 'yes'; then
26288     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26289 fi
26290
26291 have_bzlib='no'
26292 if test "$with_bzlib" != 'no'; then
26293     BZLIB_LIBS=''
26294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26295 $as_echo "-------------------------------------------------------------" >&6; }
26296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26297 $as_echo_n "checking for BZLIB... " >&6; }
26298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26299 $as_echo "" >&6; }
26300     failed=0
26301     passed=0
26302     found_libbz=0
26303     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26304 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26305   passed=`expr $passed + 1`
26306 else
26307   failed=`expr $failed + 1`
26308 fi
26309
26310
26311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26312 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26313 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26314   $as_echo_n "(cached) " >&6
26315 else
26316   ac_check_lib_save_LIBS=$LIBS
26317 LIBS="-lbz2  $LIBS"
26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h.  */
26320
26321 /* Override any GCC internal prototype to avoid an error.
26322    Use char because int might match the return type of a GCC
26323    builtin and then its argument prototype would still apply.  */
26324 #ifdef __cplusplus
26325 extern "C"
26326 #endif
26327 char BZ2_bzDecompress ();
26328 int
26329 main ()
26330 {
26331 return BZ2_bzDecompress ();
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 if ac_fn_c_try_link "$LINENO"; then :
26337   ac_cv_lib_bz2_BZ2_bzDecompress=yes
26338 else
26339   ac_cv_lib_bz2_BZ2_bzDecompress=no
26340 fi
26341 rm -f core conftest.err conftest.$ac_objext \
26342     conftest$ac_exeext conftest.$ac_ext
26343 LIBS=$ac_check_lib_save_LIBS
26344 fi
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26346 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26347 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26348   found_libbz=`expr $found_libbz + 1`
26349 fi
26350
26351     if test "$native_win32_build" = 'yes'; then
26352       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26353 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26354 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26355   $as_echo_n "(cached) " >&6
26356 else
26357   ac_check_lib_save_LIBS=$LIBS
26358 LIBS="-lbz2  $LIBS"
26359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h.  */
26361
26362 /* Override any GCC internal prototype to avoid an error.
26363    Use char because int might match the return type of a GCC
26364    builtin and then its argument prototype would still apply.  */
26365 #ifdef __cplusplus
26366 extern "C"
26367 #endif
26368 char _imp__BZ2_decompress ();
26369 int
26370 main ()
26371 {
26372 return _imp__BZ2_decompress ();
26373   ;
26374   return 0;
26375 }
26376 _ACEOF
26377 if ac_fn_c_try_link "$LINENO"; then :
26378   ac_cv_lib_bz2__imp__BZ2_decompress=yes
26379 else
26380   ac_cv_lib_bz2__imp__BZ2_decompress=no
26381 fi
26382 rm -f core conftest.err conftest.$ac_objext \
26383     conftest$ac_exeext conftest.$ac_ext
26384 LIBS=$ac_check_lib_save_LIBS
26385 fi
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26387 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26388 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26389   found_libbz=`expr $found_libbz + 1`
26390 fi
26391
26392     fi
26393     if test $found_libbz -gt 0; then
26394       passed=`expr $passed + 1`
26395     else
26396       failed=`expr $failed + 1`
26397     fi
26398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26399 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26400     if test $passed -gt 0; then
26401       if test $failed -gt 0; then
26402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26403 $as_echo "no -- some components failed test" >&6; }
26404         have_bzlib='no (failed tests)'
26405       else
26406         BZLIB_LIBS='-lbz2'
26407         LIBS="$BZLIB_LIBS $LIBS"
26408
26409 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26410
26411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26412 $as_echo "yes" >&6; }
26413         have_bzlib='yes'
26414       fi
26415     else
26416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26417 $as_echo "no" >&6; }
26418     fi
26419 fi
26420  if test "$have_bzlib" = 'yes'; then
26421   BZLIB_DELEGATE_TRUE=
26422   BZLIB_DELEGATE_FALSE='#'
26423 else
26424   BZLIB_DELEGATE_TRUE='#'
26425   BZLIB_DELEGATE_FALSE=
26426 fi
26427
26428
26429
26430 #
26431 # Find the X11 include and library directories.
26432 #
26433 IPC_LIBS=''
26434 X11_LIBS=''
26435 XEXT_LIBS=''
26436 XT_LIBS=''
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26438 $as_echo_n "checking for X... " >&6; }
26439
26440
26441 # Check whether --with-x was given.
26442 if test "${with_x+set}" = set; then :
26443   withval=$with_x;
26444 fi
26445
26446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26447 if test "x$with_x" = xno; then
26448   # The user explicitly disabled X.
26449   have_x=disabled
26450 else
26451   case $x_includes,$x_libraries in #(
26452     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26453     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26454   $as_echo_n "(cached) " >&6
26455 else
26456   # One or both of the vars are not set, and there is no cached value.
26457 ac_x_includes=no ac_x_libraries=no
26458 rm -f -r conftest.dir
26459 if mkdir conftest.dir; then
26460   cd conftest.dir
26461   cat >Imakefile <<'_ACEOF'
26462 incroot:
26463         @echo incroot='${INCROOT}'
26464 usrlibdir:
26465         @echo usrlibdir='${USRLIBDIR}'
26466 libdir:
26467         @echo libdir='${LIBDIR}'
26468 _ACEOF
26469   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26470     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26471     for ac_var in incroot usrlibdir libdir; do
26472       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26473     done
26474     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26475     for ac_extension in a so sl dylib la dll; do
26476       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26477          test -f "$ac_im_libdir/libX11.$ac_extension"; then
26478         ac_im_usrlibdir=$ac_im_libdir; break
26479       fi
26480     done
26481     # Screen out bogus values from the imake configuration.  They are
26482     # bogus both because they are the default anyway, and because
26483     # using them would break gcc on systems where it needs fixed includes.
26484     case $ac_im_incroot in
26485         /usr/include) ac_x_includes= ;;
26486         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26487     esac
26488     case $ac_im_usrlibdir in
26489         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26490         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26491     esac
26492   fi
26493   cd ..
26494   rm -f -r conftest.dir
26495 fi
26496
26497 # Standard set of common directories for X headers.
26498 # Check X11 before X11Rn because it is often a symlink to the current release.
26499 ac_x_header_dirs='
26500 /usr/X11/include
26501 /usr/X11R7/include
26502 /usr/X11R6/include
26503 /usr/X11R5/include
26504 /usr/X11R4/include
26505
26506 /usr/include/X11
26507 /usr/include/X11R7
26508 /usr/include/X11R6
26509 /usr/include/X11R5
26510 /usr/include/X11R4
26511
26512 /usr/local/X11/include
26513 /usr/local/X11R7/include
26514 /usr/local/X11R6/include
26515 /usr/local/X11R5/include
26516 /usr/local/X11R4/include
26517
26518 /usr/local/include/X11
26519 /usr/local/include/X11R7
26520 /usr/local/include/X11R6
26521 /usr/local/include/X11R5
26522 /usr/local/include/X11R4
26523
26524 /usr/X386/include
26525 /usr/x386/include
26526 /usr/XFree86/include/X11
26527
26528 /usr/include
26529 /usr/local/include
26530 /usr/unsupported/include
26531 /usr/athena/include
26532 /usr/local/x11r5/include
26533 /usr/lpp/Xamples/include
26534
26535 /usr/openwin/include
26536 /usr/openwin/share/include'
26537
26538 if test "$ac_x_includes" = no; then
26539   # Guess where to find include files, by looking for Xlib.h.
26540   # First, try using that file with no special directory specified.
26541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h.  */
26543 #include <X11/Xlib.h>
26544 _ACEOF
26545 if ac_fn_c_try_cpp "$LINENO"; then :
26546   # We can compile using X headers with no special include directory.
26547 ac_x_includes=
26548 else
26549   for ac_dir in $ac_x_header_dirs; do
26550   if test -r "$ac_dir/X11/Xlib.h"; then
26551     ac_x_includes=$ac_dir
26552     break
26553   fi
26554 done
26555 fi
26556 rm -f conftest.err conftest.i conftest.$ac_ext
26557 fi # $ac_x_includes = no
26558
26559 if test "$ac_x_libraries" = no; then
26560   # Check for the libraries.
26561   # See if we find them without any special options.
26562   # Don't add to $LIBS permanently.
26563   ac_save_LIBS=$LIBS
26564   LIBS="-lX11 $LIBS"
26565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h.  */
26567 #include <X11/Xlib.h>
26568 int
26569 main ()
26570 {
26571 XrmInitialize ()
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 if ac_fn_c_try_link "$LINENO"; then :
26577   LIBS=$ac_save_LIBS
26578 # We can link X programs with no special library path.
26579 ac_x_libraries=
26580 else
26581   LIBS=$ac_save_LIBS
26582 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26583 do
26584   # Don't even attempt the hair of trying to link an X program!
26585   for ac_extension in a so sl dylib la dll; do
26586     if test -r "$ac_dir/libX11.$ac_extension"; then
26587       ac_x_libraries=$ac_dir
26588       break 2
26589     fi
26590   done
26591 done
26592 fi
26593 rm -f core conftest.err conftest.$ac_objext \
26594     conftest$ac_exeext conftest.$ac_ext
26595 fi # $ac_x_libraries = no
26596
26597 case $ac_x_includes,$ac_x_libraries in #(
26598   no,* | *,no | *\'*)
26599     # Didn't find X, or a directory has "'" in its name.
26600     ac_cv_have_x="have_x=no";; #(
26601   *)
26602     # Record where we found X for the cache.
26603     ac_cv_have_x="have_x=yes\
26604         ac_x_includes='$ac_x_includes'\
26605         ac_x_libraries='$ac_x_libraries'"
26606 esac
26607 fi
26608 ;; #(
26609     *) have_x=yes;;
26610   esac
26611   eval "$ac_cv_have_x"
26612 fi # $with_x != no
26613
26614 if test "$have_x" != yes; then
26615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26616 $as_echo "$have_x" >&6; }
26617   no_x=yes
26618 else
26619   # If each of the values was on the command line, it overrides each guess.
26620   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26621   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26622   # Update the cache value to reflect the command line values.
26623   ac_cv_have_x="have_x=yes\
26624         ac_x_includes='$x_includes'\
26625         ac_x_libraries='$x_libraries'"
26626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26627 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26628 fi
26629
26630 if test "$no_x" = yes; then
26631   # Not all programs may use this symbol, but it does not hurt to define it.
26632
26633 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26634
26635   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26636 else
26637   if test -n "$x_includes"; then
26638     X_CFLAGS="$X_CFLAGS -I$x_includes"
26639   fi
26640
26641   # It would also be nice to do this for all -L options, not just this one.
26642   if test -n "$x_libraries"; then
26643     X_LIBS="$X_LIBS -L$x_libraries"
26644     # For Solaris; some versions of Sun CC require a space after -R and
26645     # others require no space.  Words are not sufficient . . . .
26646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26647 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26648     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26649     ac_xsave_c_werror_flag=$ac_c_werror_flag
26650     ac_c_werror_flag=yes
26651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26652 /* end confdefs.h.  */
26653
26654 int
26655 main ()
26656 {
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_c_try_link "$LINENO"; then :
26663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664 $as_echo "no" >&6; }
26665        X_LIBS="$X_LIBS -R$x_libraries"
26666 else
26667   LIBS="$ac_xsave_LIBS -R $x_libraries"
26668        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h.  */
26670
26671 int
26672 main ()
26673 {
26674
26675   ;
26676   return 0;
26677 }
26678 _ACEOF
26679 if ac_fn_c_try_link "$LINENO"; then :
26680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26681 $as_echo "yes" >&6; }
26682           X_LIBS="$X_LIBS -R $x_libraries"
26683 else
26684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26685 $as_echo "neither works" >&6; }
26686 fi
26687 rm -f core conftest.err conftest.$ac_objext \
26688     conftest$ac_exeext conftest.$ac_ext
26689 fi
26690 rm -f core conftest.err conftest.$ac_objext \
26691     conftest$ac_exeext conftest.$ac_ext
26692     ac_c_werror_flag=$ac_xsave_c_werror_flag
26693     LIBS=$ac_xsave_LIBS
26694   fi
26695
26696   # Check for system-dependent libraries X programs must link with.
26697   # Do this before checking for the system-independent R6 libraries
26698   # (-lICE), since we may need -lsocket or whatever for X linking.
26699
26700   if test "$ISC" = yes; then
26701     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26702   else
26703     # Martyn Johnson says this is needed for Ultrix, if the X
26704     # libraries were built with DECnet support.  And Karl Berry says
26705     # the Alpha needs dnet_stub (dnet does not exist).
26706     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h.  */
26709
26710 /* Override any GCC internal prototype to avoid an error.
26711    Use char because int might match the return type of a GCC
26712    builtin and then its argument prototype would still apply.  */
26713 #ifdef __cplusplus
26714 extern "C"
26715 #endif
26716 char XOpenDisplay ();
26717 int
26718 main ()
26719 {
26720 return XOpenDisplay ();
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 if ac_fn_c_try_link "$LINENO"; then :
26726
26727 else
26728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26729 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26730 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26731   $as_echo_n "(cached) " >&6
26732 else
26733   ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-ldnet  $LIBS"
26735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h.  */
26737
26738 /* Override any GCC internal prototype to avoid an error.
26739    Use char because int might match the return type of a GCC
26740    builtin and then its argument prototype would still apply.  */
26741 #ifdef __cplusplus
26742 extern "C"
26743 #endif
26744 char dnet_ntoa ();
26745 int
26746 main ()
26747 {
26748 return dnet_ntoa ();
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_c_try_link "$LINENO"; then :
26754   ac_cv_lib_dnet_dnet_ntoa=yes
26755 else
26756   ac_cv_lib_dnet_dnet_ntoa=no
26757 fi
26758 rm -f core conftest.err conftest.$ac_objext \
26759     conftest$ac_exeext conftest.$ac_ext
26760 LIBS=$ac_check_lib_save_LIBS
26761 fi
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26763 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26764 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26765   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26766 fi
26767
26768     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26770 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26771 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26772   $as_echo_n "(cached) " >&6
26773 else
26774   ac_check_lib_save_LIBS=$LIBS
26775 LIBS="-ldnet_stub  $LIBS"
26776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777 /* end confdefs.h.  */
26778
26779 /* Override any GCC internal prototype to avoid an error.
26780    Use char because int might match the return type of a GCC
26781    builtin and then its argument prototype would still apply.  */
26782 #ifdef __cplusplus
26783 extern "C"
26784 #endif
26785 char dnet_ntoa ();
26786 int
26787 main ()
26788 {
26789 return dnet_ntoa ();
26790   ;
26791   return 0;
26792 }
26793 _ACEOF
26794 if ac_fn_c_try_link "$LINENO"; then :
26795   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26796 else
26797   ac_cv_lib_dnet_stub_dnet_ntoa=no
26798 fi
26799 rm -f core conftest.err conftest.$ac_objext \
26800     conftest$ac_exeext conftest.$ac_ext
26801 LIBS=$ac_check_lib_save_LIBS
26802 fi
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26804 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26805 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26806   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26807 fi
26808
26809     fi
26810 fi
26811 rm -f core conftest.err conftest.$ac_objext \
26812     conftest$ac_exeext conftest.$ac_ext
26813     LIBS="$ac_xsave_LIBS"
26814
26815     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26816     # to get the SysV transport functions.
26817     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26818     # needs -lnsl.
26819     # The nsl library prevents programs from opening the X display
26820     # on Irix 5.2, according to T.E. Dickey.
26821     # The functions gethostbyname, getservbyname, and inet_addr are
26822     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26823     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26824 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26825
26826 fi
26827
26828     if test $ac_cv_func_gethostbyname = no; then
26829       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26830 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26831 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26832   $as_echo_n "(cached) " >&6
26833 else
26834   ac_check_lib_save_LIBS=$LIBS
26835 LIBS="-lnsl  $LIBS"
26836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26837 /* end confdefs.h.  */
26838
26839 /* Override any GCC internal prototype to avoid an error.
26840    Use char because int might match the return type of a GCC
26841    builtin and then its argument prototype would still apply.  */
26842 #ifdef __cplusplus
26843 extern "C"
26844 #endif
26845 char gethostbyname ();
26846 int
26847 main ()
26848 {
26849 return gethostbyname ();
26850   ;
26851   return 0;
26852 }
26853 _ACEOF
26854 if ac_fn_c_try_link "$LINENO"; then :
26855   ac_cv_lib_nsl_gethostbyname=yes
26856 else
26857   ac_cv_lib_nsl_gethostbyname=no
26858 fi
26859 rm -f core conftest.err conftest.$ac_objext \
26860     conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26862 fi
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26864 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26865 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26866   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26867 fi
26868
26869       if test $ac_cv_lib_nsl_gethostbyname = no; then
26870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26871 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26872 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26873   $as_echo_n "(cached) " >&6
26874 else
26875   ac_check_lib_save_LIBS=$LIBS
26876 LIBS="-lbsd  $LIBS"
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h.  */
26879
26880 /* Override any GCC internal prototype to avoid an error.
26881    Use char because int might match the return type of a GCC
26882    builtin and then its argument prototype would still apply.  */
26883 #ifdef __cplusplus
26884 extern "C"
26885 #endif
26886 char gethostbyname ();
26887 int
26888 main ()
26889 {
26890 return gethostbyname ();
26891   ;
26892   return 0;
26893 }
26894 _ACEOF
26895 if ac_fn_c_try_link "$LINENO"; then :
26896   ac_cv_lib_bsd_gethostbyname=yes
26897 else
26898   ac_cv_lib_bsd_gethostbyname=no
26899 fi
26900 rm -f core conftest.err conftest.$ac_objext \
26901     conftest$ac_exeext conftest.$ac_ext
26902 LIBS=$ac_check_lib_save_LIBS
26903 fi
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26905 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26906 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26907   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26908 fi
26909
26910       fi
26911     fi
26912
26913     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26914     # socket/setsockopt and other routines are undefined under SCO ODT
26915     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26916     # on later versions), says Simon Leinen: it contains gethostby*
26917     # variants that don't use the name server (or something).  -lsocket
26918     # must be given before -lnsl if both are needed.  We assume that
26919     # if connect needs -lnsl, so does gethostbyname.
26920     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26921 if test "x$ac_cv_func_connect" = xyes; then :
26922
26923 fi
26924
26925     if test $ac_cv_func_connect = no; then
26926       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26927 $as_echo_n "checking for connect in -lsocket... " >&6; }
26928 if ${ac_cv_lib_socket_connect+:} false; then :
26929   $as_echo_n "(cached) " >&6
26930 else
26931   ac_check_lib_save_LIBS=$LIBS
26932 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h.  */
26935
26936 /* Override any GCC internal prototype to avoid an error.
26937    Use char because int might match the return type of a GCC
26938    builtin and then its argument prototype would still apply.  */
26939 #ifdef __cplusplus
26940 extern "C"
26941 #endif
26942 char connect ();
26943 int
26944 main ()
26945 {
26946 return connect ();
26947   ;
26948   return 0;
26949 }
26950 _ACEOF
26951 if ac_fn_c_try_link "$LINENO"; then :
26952   ac_cv_lib_socket_connect=yes
26953 else
26954   ac_cv_lib_socket_connect=no
26955 fi
26956 rm -f core conftest.err conftest.$ac_objext \
26957     conftest$ac_exeext conftest.$ac_ext
26958 LIBS=$ac_check_lib_save_LIBS
26959 fi
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26961 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26962 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26963   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26964 fi
26965
26966     fi
26967
26968     # Guillermo Gomez says -lposix is necessary on A/UX.
26969     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26970 if test "x$ac_cv_func_remove" = xyes; then :
26971
26972 fi
26973
26974     if test $ac_cv_func_remove = no; then
26975       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26976 $as_echo_n "checking for remove in -lposix... " >&6; }
26977 if ${ac_cv_lib_posix_remove+:} false; then :
26978   $as_echo_n "(cached) " >&6
26979 else
26980   ac_check_lib_save_LIBS=$LIBS
26981 LIBS="-lposix  $LIBS"
26982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h.  */
26984
26985 /* Override any GCC internal prototype to avoid an error.
26986    Use char because int might match the return type of a GCC
26987    builtin and then its argument prototype would still apply.  */
26988 #ifdef __cplusplus
26989 extern "C"
26990 #endif
26991 char remove ();
26992 int
26993 main ()
26994 {
26995 return remove ();
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 if ac_fn_c_try_link "$LINENO"; then :
27001   ac_cv_lib_posix_remove=yes
27002 else
27003   ac_cv_lib_posix_remove=no
27004 fi
27005 rm -f core conftest.err conftest.$ac_objext \
27006     conftest$ac_exeext conftest.$ac_ext
27007 LIBS=$ac_check_lib_save_LIBS
27008 fi
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27010 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27011 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27012   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27013 fi
27014
27015     fi
27016
27017     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27018     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27019 if test "x$ac_cv_func_shmat" = xyes; then :
27020
27021 fi
27022
27023     if test $ac_cv_func_shmat = no; then
27024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27025 $as_echo_n "checking for shmat in -lipc... " >&6; }
27026 if ${ac_cv_lib_ipc_shmat+:} false; then :
27027   $as_echo_n "(cached) " >&6
27028 else
27029   ac_check_lib_save_LIBS=$LIBS
27030 LIBS="-lipc  $LIBS"
27031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27032 /* end confdefs.h.  */
27033
27034 /* Override any GCC internal prototype to avoid an error.
27035    Use char because int might match the return type of a GCC
27036    builtin and then its argument prototype would still apply.  */
27037 #ifdef __cplusplus
27038 extern "C"
27039 #endif
27040 char shmat ();
27041 int
27042 main ()
27043 {
27044 return shmat ();
27045   ;
27046   return 0;
27047 }
27048 _ACEOF
27049 if ac_fn_c_try_link "$LINENO"; then :
27050   ac_cv_lib_ipc_shmat=yes
27051 else
27052   ac_cv_lib_ipc_shmat=no
27053 fi
27054 rm -f core conftest.err conftest.$ac_objext \
27055     conftest$ac_exeext conftest.$ac_ext
27056 LIBS=$ac_check_lib_save_LIBS
27057 fi
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27059 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27060 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27061   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27062 fi
27063
27064     fi
27065   fi
27066
27067   # Check for libraries that X11R6 Xt/Xaw programs need.
27068   ac_save_LDFLAGS=$LDFLAGS
27069   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27070   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27071   # check for ICE first), but we must link in the order -lSM -lICE or
27072   # we get undefined symbols.  So assume we have SM if we have ICE.
27073   # These have to be linked with before -lX11, unlike the other
27074   # libraries we check for below, so use a different variable.
27075   # John Interrante, Karl Berry
27076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27077 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27078 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27079   $as_echo_n "(cached) " >&6
27080 else
27081   ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h.  */
27085
27086 /* Override any GCC internal prototype to avoid an error.
27087    Use char because int might match the return type of a GCC
27088    builtin and then its argument prototype would still apply.  */
27089 #ifdef __cplusplus
27090 extern "C"
27091 #endif
27092 char IceConnectionNumber ();
27093 int
27094 main ()
27095 {
27096 return IceConnectionNumber ();
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 if ac_fn_c_try_link "$LINENO"; then :
27102   ac_cv_lib_ICE_IceConnectionNumber=yes
27103 else
27104   ac_cv_lib_ICE_IceConnectionNumber=no
27105 fi
27106 rm -f core conftest.err conftest.$ac_objext \
27107     conftest$ac_exeext conftest.$ac_ext
27108 LIBS=$ac_check_lib_save_LIBS
27109 fi
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27111 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27112 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27113   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27114 fi
27115
27116   LDFLAGS=$ac_save_LDFLAGS
27117
27118 fi
27119
27120 if test "$no_x" != 'yes'; then
27121     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27122 $as_echo "-------------------------------------------------------------" >&6; }
27123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27124 $as_echo_n "checking for X11... " >&6; }
27125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27126 $as_echo "" >&6; }
27127     LDFLAGS="$LDFLAGS $X_LIBS"
27128     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27129     LIBS="$X11_LIBS $LIBS"
27130     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27131
27132
27133 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27134
27135     #
27136     # Check for X11 shared memory extension
27137     #
27138     # shmctl is required to support the shared memory extension
27139     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27140 if test "x$ac_cv_func_shmctl" = xyes; then :
27141   have_shmctl='yes'
27142 fi
27143
27144     if test "$have_shmctl" != 'yes'; then
27145         PERSIST_LIBS=$LIBS
27146         LIBS="$LIBS -lcygipc"
27147         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27148 /* end confdefs.h.  */
27149
27150 /* Override any GCC internal prototype to avoid an error.
27151    Use char because int might match the return type of a GCC
27152    builtin and then its argument prototype would still apply.  */
27153 #ifdef __cplusplus
27154 extern "C"
27155 #endif
27156 char shmctl ();
27157 int
27158 main ()
27159 {
27160 return shmctl ();
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 if ac_fn_c_try_link "$LINENO"; then :
27166   have_shmctl='yes'; IPC_LIBS='-lcygipc'
27167 fi
27168 rm -f core conftest.err conftest.$ac_objext \
27169     conftest$ac_exeext conftest.$ac_ext
27170         LIBS=$PERSIST_LIBS
27171     fi
27172
27173     if test "$have_shmctl" = 'yes'; then
27174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27175 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27176 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27177   $as_echo_n "(cached) " >&6
27178 else
27179   ac_check_lib_save_LIBS=$LIBS
27180 LIBS="-lXext  $LIBS"
27181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27182 /* end confdefs.h.  */
27183
27184 /* Override any GCC internal prototype to avoid an error.
27185    Use char because int might match the return type of a GCC
27186    builtin and then its argument prototype would still apply.  */
27187 #ifdef __cplusplus
27188 extern "C"
27189 #endif
27190 char XShmAttach ();
27191 int
27192 main ()
27193 {
27194 return XShmAttach ();
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 if ac_fn_c_try_link "$LINENO"; then :
27200   ac_cv_lib_Xext_XShmAttach=yes
27201 else
27202   ac_cv_lib_Xext_XShmAttach=no
27203 fi
27204 rm -f core conftest.err conftest.$ac_objext \
27205     conftest$ac_exeext conftest.$ac_ext
27206 LIBS=$ac_check_lib_save_LIBS
27207 fi
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27209 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27210 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27211   XEXT_LIBS='-lXext' ;
27212 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27213
27214 fi
27215
27216     fi
27217
27218     #
27219     # Check for X11 shape extension
27220     #
27221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27222 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27223 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27224   $as_echo_n "(cached) " >&6
27225 else
27226   ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lXext  $LIBS"
27228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27229 /* end confdefs.h.  */
27230
27231 /* Override any GCC internal prototype to avoid an error.
27232    Use char because int might match the return type of a GCC
27233    builtin and then its argument prototype would still apply.  */
27234 #ifdef __cplusplus
27235 extern "C"
27236 #endif
27237 char XShapeCombineMask ();
27238 int
27239 main ()
27240 {
27241 return XShapeCombineMask ();
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 if ac_fn_c_try_link "$LINENO"; then :
27247   ac_cv_lib_Xext_XShapeCombineMask=yes
27248 else
27249   ac_cv_lib_Xext_XShapeCombineMask=no
27250 fi
27251 rm -f core conftest.err conftest.$ac_objext \
27252     conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27254 fi
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27256 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27257 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27258   XEXT_LIBS='-lXext' ;
27259 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27260
27261 fi
27262
27263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27264 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27265 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27266   $as_echo_n "(cached) " >&6
27267 else
27268   ac_check_lib_save_LIBS=$LIBS
27269 LIBS="-lXt  $LIBS"
27270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27271 /* end confdefs.h.  */
27272
27273 /* Override any GCC internal prototype to avoid an error.
27274    Use char because int might match the return type of a GCC
27275    builtin and then its argument prototype would still apply.  */
27276 #ifdef __cplusplus
27277 extern "C"
27278 #endif
27279 char XtSetEventDispatcher ();
27280 int
27281 main ()
27282 {
27283 return XtSetEventDispatcher ();
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 if ac_fn_c_try_link "$LINENO"; then :
27289   ac_cv_lib_Xt_XtSetEventDispatcher=yes
27290 else
27291   ac_cv_lib_Xt_XtSetEventDispatcher=no
27292 fi
27293 rm -f core conftest.err conftest.$ac_objext \
27294     conftest$ac_exeext conftest.$ac_ext
27295 LIBS=$ac_check_lib_save_LIBS
27296 fi
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27298 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27299 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27300   XT_LIBS='-lXt'
27301 fi
27302
27303     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27304 fi
27305 if test "$no_x" != 'yes'; then
27306   have_x='yes'
27307 else
27308   have_x='no'
27309 fi
27310  if test "$have_x" = 'yes'; then
27311   X11_DELEGATE_TRUE=
27312   X11_DELEGATE_FALSE='#'
27313 else
27314   X11_DELEGATE_TRUE='#'
27315   X11_DELEGATE_FALSE=
27316 fi
27317
27318
27319
27320
27321
27322 #
27323 # Check for ZLIB
27324 #
27325
27326 # Check whether --with-zlib was given.
27327 if test "${with_zlib+set}" = set; then :
27328   withval=$with_zlib; with_zlib=$withval
27329 else
27330   with_zlib='yes'
27331 fi
27332
27333
27334 if test "$with_zlib" != 'yes'; then
27335     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27336 fi
27337
27338 have_zlib='no'
27339 ZLIB_LIBS=''
27340 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27342 $as_echo "-------------------------------------------------------------" >&6; }
27343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27344 $as_echo_n "checking for ZLIB... " >&6; }
27345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27346 $as_echo "" >&6; }
27347     ZLIB_LIBS=''
27348     failed=0
27349     passed=0
27350     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27351 if test "x$ac_cv_header_zconf_h" = xyes; then :
27352   passed=`expr $passed + 1`
27353 else
27354   failed=`expr $failed + 1`
27355 fi
27356
27357
27358     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27359 if test "x$ac_cv_header_zlib_h" = xyes; then :
27360   passed=`expr $passed + 1`
27361 else
27362   failed=`expr $failed + 1`
27363 fi
27364
27365
27366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27367 $as_echo_n "checking for compress in -lz... " >&6; }
27368 if ${ac_cv_lib_z_compress+:} false; then :
27369   $as_echo_n "(cached) " >&6
27370 else
27371   ac_check_lib_save_LIBS=$LIBS
27372 LIBS="-lz  $LIBS"
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375
27376 /* Override any GCC internal prototype to avoid an error.
27377    Use char because int might match the return type of a GCC
27378    builtin and then its argument prototype would still apply.  */
27379 #ifdef __cplusplus
27380 extern "C"
27381 #endif
27382 char compress ();
27383 int
27384 main ()
27385 {
27386 return compress ();
27387   ;
27388   return 0;
27389 }
27390 _ACEOF
27391 if ac_fn_c_try_link "$LINENO"; then :
27392   ac_cv_lib_z_compress=yes
27393 else
27394   ac_cv_lib_z_compress=no
27395 fi
27396 rm -f core conftest.err conftest.$ac_objext \
27397     conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27399 fi
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27401 $as_echo "$ac_cv_lib_z_compress" >&6; }
27402 if test "x$ac_cv_lib_z_compress" = xyes; then :
27403   passed=`expr $passed + 1`
27404 else
27405   failed=`expr $failed + 1`
27406 fi
27407
27408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27409 $as_echo_n "checking for uncompress in -lz... " >&6; }
27410 if ${ac_cv_lib_z_uncompress+:} false; then :
27411   $as_echo_n "(cached) " >&6
27412 else
27413   ac_check_lib_save_LIBS=$LIBS
27414 LIBS="-lz  $LIBS"
27415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27416 /* end confdefs.h.  */
27417
27418 /* Override any GCC internal prototype to avoid an error.
27419    Use char because int might match the return type of a GCC
27420    builtin and then its argument prototype would still apply.  */
27421 #ifdef __cplusplus
27422 extern "C"
27423 #endif
27424 char uncompress ();
27425 int
27426 main ()
27427 {
27428 return uncompress ();
27429   ;
27430   return 0;
27431 }
27432 _ACEOF
27433 if ac_fn_c_try_link "$LINENO"; then :
27434   ac_cv_lib_z_uncompress=yes
27435 else
27436   ac_cv_lib_z_uncompress=no
27437 fi
27438 rm -f core conftest.err conftest.$ac_objext \
27439     conftest$ac_exeext conftest.$ac_ext
27440 LIBS=$ac_check_lib_save_LIBS
27441 fi
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27443 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27444 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27445   passed=`expr $passed + 1`
27446 else
27447   failed=`expr $failed + 1`
27448 fi
27449
27450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27451 $as_echo_n "checking for deflate in -lz... " >&6; }
27452 if ${ac_cv_lib_z_deflate+:} false; then :
27453   $as_echo_n "(cached) " >&6
27454 else
27455   ac_check_lib_save_LIBS=$LIBS
27456 LIBS="-lz  $LIBS"
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h.  */
27459
27460 /* Override any GCC internal prototype to avoid an error.
27461    Use char because int might match the return type of a GCC
27462    builtin and then its argument prototype would still apply.  */
27463 #ifdef __cplusplus
27464 extern "C"
27465 #endif
27466 char deflate ();
27467 int
27468 main ()
27469 {
27470 return deflate ();
27471   ;
27472   return 0;
27473 }
27474 _ACEOF
27475 if ac_fn_c_try_link "$LINENO"; then :
27476   ac_cv_lib_z_deflate=yes
27477 else
27478   ac_cv_lib_z_deflate=no
27479 fi
27480 rm -f core conftest.err conftest.$ac_objext \
27481     conftest$ac_exeext conftest.$ac_ext
27482 LIBS=$ac_check_lib_save_LIBS
27483 fi
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27485 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27486 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27487   passed=`expr $passed + 1`
27488 else
27489   failed=`expr $failed + 1`
27490 fi
27491
27492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27493 $as_echo_n "checking for inflate in -lz... " >&6; }
27494 if ${ac_cv_lib_z_inflate+:} false; then :
27495   $as_echo_n "(cached) " >&6
27496 else
27497   ac_check_lib_save_LIBS=$LIBS
27498 LIBS="-lz  $LIBS"
27499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27500 /* end confdefs.h.  */
27501
27502 /* Override any GCC internal prototype to avoid an error.
27503    Use char because int might match the return type of a GCC
27504    builtin and then its argument prototype would still apply.  */
27505 #ifdef __cplusplus
27506 extern "C"
27507 #endif
27508 char inflate ();
27509 int
27510 main ()
27511 {
27512 return inflate ();
27513   ;
27514   return 0;
27515 }
27516 _ACEOF
27517 if ac_fn_c_try_link "$LINENO"; then :
27518   ac_cv_lib_z_inflate=yes
27519 else
27520   ac_cv_lib_z_inflate=no
27521 fi
27522 rm -f core conftest.err conftest.$ac_objext \
27523     conftest$ac_exeext conftest.$ac_ext
27524 LIBS=$ac_check_lib_save_LIBS
27525 fi
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27527 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27528 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27529   passed=`expr $passed + 1`
27530 else
27531   failed=`expr $failed + 1`
27532 fi
27533
27534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27535 $as_echo_n "checking for gzseek in -lz... " >&6; }
27536 if ${ac_cv_lib_z_gzseek+:} false; then :
27537   $as_echo_n "(cached) " >&6
27538 else
27539   ac_check_lib_save_LIBS=$LIBS
27540 LIBS="-lz  $LIBS"
27541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h.  */
27543
27544 /* Override any GCC internal prototype to avoid an error.
27545    Use char because int might match the return type of a GCC
27546    builtin and then its argument prototype would still apply.  */
27547 #ifdef __cplusplus
27548 extern "C"
27549 #endif
27550 char gzseek ();
27551 int
27552 main ()
27553 {
27554 return gzseek ();
27555   ;
27556   return 0;
27557 }
27558 _ACEOF
27559 if ac_fn_c_try_link "$LINENO"; then :
27560   ac_cv_lib_z_gzseek=yes
27561 else
27562   ac_cv_lib_z_gzseek=no
27563 fi
27564 rm -f core conftest.err conftest.$ac_objext \
27565     conftest$ac_exeext conftest.$ac_ext
27566 LIBS=$ac_check_lib_save_LIBS
27567 fi
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27569 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27570 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27571   passed=`expr $passed + 1`
27572 else
27573   failed=`expr $failed + 1`
27574 fi
27575
27576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27577 $as_echo_n "checking for gztell in -lz... " >&6; }
27578 if ${ac_cv_lib_z_gztell+:} false; then :
27579   $as_echo_n "(cached) " >&6
27580 else
27581   ac_check_lib_save_LIBS=$LIBS
27582 LIBS="-lz  $LIBS"
27583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27584 /* end confdefs.h.  */
27585
27586 /* Override any GCC internal prototype to avoid an error.
27587    Use char because int might match the return type of a GCC
27588    builtin and then its argument prototype would still apply.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 #endif
27592 char gztell ();
27593 int
27594 main ()
27595 {
27596 return gztell ();
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 if ac_fn_c_try_link "$LINENO"; then :
27602   ac_cv_lib_z_gztell=yes
27603 else
27604   ac_cv_lib_z_gztell=no
27605 fi
27606 rm -f core conftest.err conftest.$ac_objext \
27607     conftest$ac_exeext conftest.$ac_ext
27608 LIBS=$ac_check_lib_save_LIBS
27609 fi
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27611 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27612 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27613   passed=`expr $passed + 1`
27614 else
27615   failed=`expr $failed + 1`
27616 fi
27617
27618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27619 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27620     if test $passed -gt 0; then
27621         if test $failed -gt 0; then
27622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27623 $as_echo "no -- some components failed test" >&6; }
27624             have_zlib='no (failed tests)'
27625         else
27626             ZLIB_LIBS='-lz'
27627             LIBS="$ZLIB_LIBS $LIBS"
27628
27629 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27630
27631             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27632 $as_echo "yes" >&6; }
27633             have_zlib='yes'
27634         fi
27635     else
27636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27637 $as_echo "no" >&6; }
27638     fi
27639 fi
27640  if test "$have_zlib" = 'yes'; then
27641   ZLIB_DELEGATE_TRUE=
27642   ZLIB_DELEGATE_FALSE='#'
27643 else
27644   ZLIB_DELEGATE_TRUE='#'
27645   ZLIB_DELEGATE_FALSE=
27646 fi
27647
27648
27649
27650 #
27651 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27652 #
27653 LIB_DL=''
27654 if test "$enable_profiling" = 'yes'; then
27655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27657 if ${ac_cv_lib_dl_dlopen+:} false; then :
27658   $as_echo_n "(cached) " >&6
27659 else
27660   ac_check_lib_save_LIBS=$LIBS
27661 LIBS="-ldl  $LIBS"
27662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663 /* end confdefs.h.  */
27664
27665 /* Override any GCC internal prototype to avoid an error.
27666    Use char because int might match the return type of a GCC
27667    builtin and then its argument prototype would still apply.  */
27668 #ifdef __cplusplus
27669 extern "C"
27670 #endif
27671 char dlopen ();
27672 int
27673 main ()
27674 {
27675 return dlopen ();
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 if ac_fn_c_try_link "$LINENO"; then :
27681   ac_cv_lib_dl_dlopen=yes
27682 else
27683   ac_cv_lib_dl_dlopen=no
27684 fi
27685 rm -f core conftest.err conftest.$ac_objext \
27686     conftest$ac_exeext conftest.$ac_ext
27687 LIBS=$ac_check_lib_save_LIBS
27688 fi
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27692   LIB_DL='-ldl'
27693 fi
27694
27695     LIBS="$LIB_DL $LIBS"
27696 fi
27697
27698
27699
27700 #
27701 # Check for Autotrace delegate library.
27702 #
27703
27704 # Check whether --with-autotrace was given.
27705 if test "${with_autotrace+set}" = set; then :
27706   withval=$with_autotrace; with_autotrace=$withval
27707 else
27708   with_autotrace='no'
27709 fi
27710
27711
27712 if test "$with_autotrace" != 'yes'; then
27713     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27714 fi
27715
27716 have_autotrace='no'
27717 AUTOTRACE_CFLAGS=""
27718 AUTOTRACE_LIBS=""
27719 AUTOTRACE_PKG=""
27720 if test "x$with_autotrace" = "xyes"; then
27721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27722 $as_echo "-------------------------------------------------------------" >&6; }
27723
27724 pkg_failed=no
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27726 $as_echo_n "checking for AUTOTRACE... " >&6; }
27727
27728 if test -n "$AUTOTRACE_CFLAGS"; then
27729     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27730  elif test -n "$PKG_CONFIG"; then
27731     if test -n "$PKG_CONFIG" && \
27732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27733   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27734   ac_status=$?
27735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736   test $ac_status = 0; }; then
27737   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27738 else
27739   pkg_failed=yes
27740 fi
27741  else
27742     pkg_failed=untried
27743 fi
27744 if test -n "$AUTOTRACE_LIBS"; then
27745     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27746  elif test -n "$PKG_CONFIG"; then
27747     if test -n "$PKG_CONFIG" && \
27748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27749   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27750   ac_status=$?
27751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752   test $ac_status = 0; }; then
27753   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27754 else
27755   pkg_failed=yes
27756 fi
27757  else
27758     pkg_failed=untried
27759 fi
27760
27761
27762
27763 if test $pkg_failed = yes; then
27764
27765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27766         _pkg_short_errors_supported=yes
27767 else
27768         _pkg_short_errors_supported=no
27769 fi
27770         if test $_pkg_short_errors_supported = yes; then
27771                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27772         else
27773                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27774         fi
27775         # Put the nasty error message in config.log where it belongs
27776         echo "$AUTOTRACE_PKG_ERRORS" >&5
27777
27778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27779 $as_echo "no" >&6; }
27780                 have_autotrace=no
27781 elif test $pkg_failed = untried; then
27782         have_autotrace=no
27783 else
27784         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27785         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27787 $as_echo "yes" >&6; }
27788         have_autotrace=yes
27789 fi
27790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27791 $as_echo "" >&6; }
27792 fi
27793
27794 if test "$have_autotrace" = 'yes'; then
27795     failed=0
27796
27797 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27798
27799     if test "$with_modules" = 'no'; then
27800     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27801     fi
27802 fi
27803
27804  if test "$have_autotrace" = 'yes'; then
27805   AUTOTRACE_DELEGATE_TRUE=
27806   AUTOTRACE_DELEGATE_FALSE='#'
27807 else
27808   AUTOTRACE_DELEGATE_TRUE='#'
27809   AUTOTRACE_DELEGATE_FALSE=
27810 fi
27811
27812
27813
27814
27815
27816 #
27817 # Check for Display Postscript delegate library.
27818 #
27819
27820 # Check whether --with-dps was given.
27821 if test "${with_dps+set}" = set; then :
27822   withval=$with_dps; with_dps=$withval
27823 else
27824   with_dps='yes'
27825 fi
27826
27827
27828 if test "$with_dps" != 'yes'; then
27829     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27830 fi
27831
27832 have_dps='no'
27833 DPS_LIBS=''
27834 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27836 $as_echo "-------------------------------------------------------------" >&6; }
27837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27838 $as_echo_n "checking for DPS... " >&6; }
27839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27840 $as_echo "" >&6; }
27841     failed=0
27842     passed=0
27843     PERSIST_CPPFLAGS="$CPPFLAGS"
27844     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27845     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27846 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27847   passed=`expr $passed + 1`
27848 else
27849   failed=`expr $failed + 1`
27850 fi
27851
27852
27853     # DPS issues:
27854     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27855     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27856     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27857     # ImageMagick itself doesn't use -lXt.
27858     have_libdps='no'
27859     LIBDPS_XT=''
27860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27861 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27862 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27863   $as_echo_n "(cached) " >&6
27864 else
27865   ac_check_lib_save_LIBS=$LIBS
27866 LIBS="-ldps  $LIBS"
27867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27868 /* end confdefs.h.  */
27869
27870 /* Override any GCC internal prototype to avoid an error.
27871    Use char because int might match the return type of a GCC
27872    builtin and then its argument prototype would still apply.  */
27873 #ifdef __cplusplus
27874 extern "C"
27875 #endif
27876 char DPSInitialize ();
27877 int
27878 main ()
27879 {
27880 return DPSInitialize ();
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 if ac_fn_c_try_link "$LINENO"; then :
27886   ac_cv_lib_dps_DPSInitialize=yes
27887 else
27888   ac_cv_lib_dps_DPSInitialize=no
27889 fi
27890 rm -f core conftest.err conftest.$ac_objext \
27891     conftest$ac_exeext conftest.$ac_ext
27892 LIBS=$ac_check_lib_save_LIBS
27893 fi
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27895 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27896 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27897   have_libdps='yes'
27898 else
27899   have_libdps='no'
27900 fi
27901
27902     if test "$have_libdps" != 'yes'; then
27903         # Unset cache variable so we can try again.
27904         unset ac_cv_lib_dps_DPSInitialize
27905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27906 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27907 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27908   $as_echo_n "(cached) " >&6
27909 else
27910   ac_check_lib_save_LIBS=$LIBS
27911 LIBS="-ldps -lXt $LIBS"
27912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h.  */
27914
27915 /* Override any GCC internal prototype to avoid an error.
27916    Use char because int might match the return type of a GCC
27917    builtin and then its argument prototype would still apply.  */
27918 #ifdef __cplusplus
27919 extern "C"
27920 #endif
27921 char DPSInitialize ();
27922 int
27923 main ()
27924 {
27925 return DPSInitialize ();
27926   ;
27927   return 0;
27928 }
27929 _ACEOF
27930 if ac_fn_c_try_link "$LINENO"; then :
27931   ac_cv_lib_dps_DPSInitialize=yes
27932 else
27933   ac_cv_lib_dps_DPSInitialize=no
27934 fi
27935 rm -f core conftest.err conftest.$ac_objext \
27936     conftest$ac_exeext conftest.$ac_ext
27937 LIBS=$ac_check_lib_save_LIBS
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27940 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27941 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27942   have_libdps='yes'
27943 else
27944   have_libdps='no'
27945 fi
27946
27947         if test "$have_libdps" = 'yes'; then
27948             LIBDPS_XT='-lXt'
27949         fi
27950     fi
27951     if test "$have_libdps" = 'yes'; then
27952         passed=`expr $passed + 1`
27953     else
27954         failed=`expr $failed + 1`
27955     fi
27956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27957 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27958 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27959   $as_echo_n "(cached) " >&6
27960 else
27961   ac_check_lib_save_LIBS=$LIBS
27962 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h.  */
27965
27966 /* Override any GCC internal prototype to avoid an error.
27967    Use char because int might match the return type of a GCC
27968    builtin and then its argument prototype would still apply.  */
27969 #ifdef __cplusplus
27970 extern "C"
27971 #endif
27972 char XDPSPixelsPerPoint ();
27973 int
27974 main ()
27975 {
27976 return XDPSPixelsPerPoint ();
27977   ;
27978   return 0;
27979 }
27980 _ACEOF
27981 if ac_fn_c_try_link "$LINENO"; then :
27982   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27983 else
27984   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27985 fi
27986 rm -f core conftest.err conftest.$ac_objext \
27987     conftest$ac_exeext conftest.$ac_ext
27988 LIBS=$ac_check_lib_save_LIBS
27989 fi
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27991 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27992 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27993   passed=`expr $passed + 1`
27994 else
27995   failed=`expr $failed + 1`
27996 fi
27997
27998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
27999 $as_echo_n "checking if DPS package is complete... " >&6; }
28000     if test $passed -gt 0; then
28001         if test $failed -gt 0; then
28002             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28003 $as_echo "no -- some components failed test" >&6; }
28004             have_dps='no (failed tests)'
28005             CPPFLAGS="$PERSIST_CPPFLAGS"
28006         else
28007             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28008             LIBS="$DPS_LIBS $LIBS"
28009
28010 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28011
28012             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28013 $as_echo "yes" >&6; }
28014             have_dps='yes'
28015         fi
28016     else
28017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28018 $as_echo "no" >&6; }
28019         CPPFLAGS=$PERSIST_CPPFLAGS
28020     fi
28021 fi
28022  if test "$have_dps" = 'yes'; then
28023   DPS_DELEGATE_TRUE=
28024   DPS_DELEGATE_FALSE='#'
28025 else
28026   DPS_DELEGATE_TRUE='#'
28027   DPS_DELEGATE_FALSE=
28028 fi
28029
28030
28031
28032
28033 #
28034 # Check for DJVU delegate library.
28035 #
28036
28037 # Check whether --with-djvu was given.
28038 if test "${with_djvu+set}" = set; then :
28039   withval=$with_djvu; with_djvu=$withval
28040 else
28041   with_djvu='yes'
28042 fi
28043
28044
28045 if test "$with_djvu" != 'yes'; then
28046     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28047 fi
28048
28049 have_djvu='no'
28050 DJVU_LIBS=''
28051 if test "$with_djvu" != 'no'; then
28052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28053 $as_echo "-------------------------------------------------------------" >&6; }
28054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28055 $as_echo_n "checking for DJVU... " >&6; }
28056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28057 $as_echo "" >&6; }
28058     failed=0
28059     passed=0
28060     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28061 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28062   passed=`expr $passed + 1`
28063 else
28064   failed=`expr $failed + 1`
28065 fi
28066
28067
28068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28069 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28070 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28071   $as_echo_n "(cached) " >&6
28072 else
28073   ac_check_lib_save_LIBS=$LIBS
28074 LIBS="-ldjvulibre  $LIBS"
28075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28076 /* end confdefs.h.  */
28077
28078 /* Override any GCC internal prototype to avoid an error.
28079    Use char because int might match the return type of a GCC
28080    builtin and then its argument prototype would still apply.  */
28081 #ifdef __cplusplus
28082 extern "C"
28083 #endif
28084 char ddjvu_context_create ();
28085 int
28086 main ()
28087 {
28088 return ddjvu_context_create ();
28089   ;
28090   return 0;
28091 }
28092 _ACEOF
28093 if ac_fn_c_try_link "$LINENO"; then :
28094   ac_cv_lib_djvulibre_ddjvu_context_create=yes
28095 else
28096   ac_cv_lib_djvulibre_ddjvu_context_create=no
28097 fi
28098 rm -f core conftest.err conftest.$ac_objext \
28099     conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28101 fi
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28103 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28104 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28105   passed=`expr $passed + 1`
28106 else
28107   failed=`expr $failed + 1`
28108 fi
28109
28110     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28111 $as_echo_n "checking if DJVU package is complete... " >&6; }
28112     if test $passed -gt 0; then
28113         if test $failed -gt 0; then
28114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28115 $as_echo "no -- some components failed test" >&6; }
28116             have_djvu='no (failed tests)'
28117         else
28118             DJVU_LIBS='-ldjvulibre'
28119             LIBS="$DJVU_LIBS $LIBS"
28120
28121 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28122
28123             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28124 $as_echo "yes" >&6; }
28125             have_djvu='yes'
28126         fi
28127     else
28128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28129 $as_echo "no" >&6; }
28130     fi
28131 fi
28132  if test "$have_djvu" = 'yes'; then
28133   DJVU_DELEGATE_TRUE=
28134   DJVU_DELEGATE_FALSE='#'
28135 else
28136   DJVU_DELEGATE_TRUE='#'
28137   DJVU_DELEGATE_FALSE=
28138 fi
28139
28140
28141
28142
28143 #
28144 # Set DejaVu font directory.
28145 #
28146
28147 # Check whether --with-dejavu-font-dir was given.
28148 if test "${with_dejavu_font_dir+set}" = set; then :
28149   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28150 else
28151   with_dejavu_font_dir='default'
28152 fi
28153
28154
28155 if test "$with_dejavu_font_dir" != 'default'; then
28156     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28157 fi
28158
28159
28160 #
28161 # Check for FFTW delegate library.
28162 #
28163
28164 # Check whether --with-fftw was given.
28165 if test "${with_fftw+set}" = set; then :
28166   withval=$with_fftw; with_fftw=$withval
28167 else
28168   with_fftw='yes'
28169 fi
28170
28171
28172 if test "$with_fftw" != 'yes'; then
28173     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28174 fi
28175
28176 have_fftw='no'
28177 FFTW_LIBS=''
28178 if test "$with_fftw" != 'no'; then
28179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28180 $as_echo "-------------------------------------------------------------" >&6; }
28181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28182 $as_echo_n "checking for FFTW... " >&6; }
28183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28184 $as_echo "" >&6; }
28185     failed=0
28186     passed=0
28187     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28188 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28189   passed=`expr $passed + 1`
28190 else
28191   failed=`expr $failed + 1`
28192 fi
28193
28194
28195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28196 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28197 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28198   $as_echo_n "(cached) " >&6
28199 else
28200   ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-lfftw3  $LIBS"
28202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h.  */
28204
28205 /* Override any GCC internal prototype to avoid an error.
28206    Use char because int might match the return type of a GCC
28207    builtin and then its argument prototype would still apply.  */
28208 #ifdef __cplusplus
28209 extern "C"
28210 #endif
28211 char fftw_execute ();
28212 int
28213 main ()
28214 {
28215 return fftw_execute ();
28216   ;
28217   return 0;
28218 }
28219 _ACEOF
28220 if ac_fn_c_try_link "$LINENO"; then :
28221   ac_cv_lib_fftw3_fftw_execute=yes
28222 else
28223   ac_cv_lib_fftw3_fftw_execute=no
28224 fi
28225 rm -f core conftest.err conftest.$ac_objext \
28226     conftest$ac_exeext conftest.$ac_ext
28227 LIBS=$ac_check_lib_save_LIBS
28228 fi
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28230 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28231 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28232   passed=`expr $passed + 1`
28233 else
28234   failed=`expr $failed + 1`
28235 fi
28236
28237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28238 $as_echo_n "checking if FFTW package is complete... " >&6; }
28239     if test $passed -gt 0; then
28240         if test $failed -gt 0; then
28241             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28242 $as_echo "no -- some components failed test" >&6; }
28243             have_fftw='no (failed tests)'
28244         else
28245             FFTW_LIBS='-lfftw3'
28246             LIBS="$FFTW_LIBS $LIBS"
28247
28248 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28249
28250             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28251 $as_echo "yes" >&6; }
28252             have_fftw='yes'
28253         fi
28254     else
28255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28256 $as_echo "no" >&6; }
28257     fi
28258 fi
28259  if test "$have_fftw" = 'yes'; then
28260   FFTW_DELEGATE_TRUE=
28261   FFTW_DELEGATE_FALSE='#'
28262 else
28263   FFTW_DELEGATE_TRUE='#'
28264   FFTW_DELEGATE_FALSE=
28265 fi
28266
28267
28268
28269
28270 #
28271 # Check for FlashPIX delegate library.
28272 #
28273
28274 # Check whether --with-fpx was given.
28275 if test "${with_fpx+set}" = set; then :
28276   withval=$with_fpx; with_fpx=$withval
28277 else
28278   with_fpx='yes'
28279 fi
28280
28281
28282 if test "$with_fpx" != 'yes'; then
28283     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28284 fi
28285
28286 have_fpx='no'
28287 FPX_LIBS=''
28288 if test "$with_fpx" != 'no'; then
28289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28290 $as_echo "-------------------------------------------------------------" >&6; }
28291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28292 $as_echo_n "checking for FlashPIX... " >&6; }
28293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28294 $as_echo "" >&6; }
28295     failed=0
28296     passed=0
28297     ac_ext=cpp
28298 ac_cpp='$CXXCPP $CPPFLAGS'
28299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28302
28303
28304 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28305 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28306   passed=`expr $passed + 1`
28307 else
28308   failed=`expr $failed + 1`
28309 fi
28310
28311
28312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28313 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28314 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28315   $as_echo_n "(cached) " >&6
28316 else
28317   ac_check_lib_save_LIBS=$LIBS
28318 LIBS="-lfpx  $LIBS"
28319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28320 /* end confdefs.h.  */
28321
28322 /* Override any GCC internal prototype to avoid an error.
28323    Use char because int might match the return type of a GCC
28324    builtin and then its argument prototype would still apply.  */
28325 #ifdef __cplusplus
28326 extern "C"
28327 #endif
28328 char FPX_OpenImageByFilename ();
28329 int
28330 main ()
28331 {
28332 return FPX_OpenImageByFilename ();
28333   ;
28334   return 0;
28335 }
28336 _ACEOF
28337 if ac_fn_cxx_try_link "$LINENO"; then :
28338   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28339 else
28340   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28341 fi
28342 rm -f core conftest.err conftest.$ac_objext \
28343     conftest$ac_exeext conftest.$ac_ext
28344 LIBS=$ac_check_lib_save_LIBS
28345 fi
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28347 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28348 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28349   passed=`expr $passed + 1`
28350 else
28351   failed=`expr $failed + 1`
28352 fi
28353
28354     ac_ext=c
28355 ac_cpp='$CPP $CPPFLAGS'
28356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28359
28360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28361 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28362     if test $passed -gt 0; then
28363         if test $failed -gt 0; then
28364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28365 $as_echo "no -- some components failed test" >&6; }
28366             have_fpx='no (failed tests)'
28367         else
28368             FPX_LIBS='-lfpx'
28369
28370 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28371
28372             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28373 $as_echo "yes" >&6; }
28374             have_fpx='yes'
28375             PERLMAINCC="$CXX"
28376         fi
28377     else
28378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28379 $as_echo "no" >&6; }
28380     fi
28381 fi
28382  if test "$have_fpx" = 'yes'; then
28383   FPX_DELEGATE_TRUE=
28384   FPX_DELEGATE_FALSE='#'
28385 else
28386   FPX_DELEGATE_TRUE='#'
28387   FPX_DELEGATE_FALSE=
28388 fi
28389
28390
28391
28392
28393 #
28394 # Check for fontconfig delegate library.
28395 #
28396
28397 # Check whether --with-fontconfig was given.
28398 if test "${with_fontconfig+set}" = set; then :
28399   withval=$with_fontconfig; with_fontconfig=$withval
28400 else
28401   with_fontconfig=$have_x
28402 fi
28403
28404
28405 if test "$with_fontconfig" != 'yes'; then
28406     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28407 fi
28408
28409 have_fontconfig='no'
28410 FONTCONFIG_CFLAGS=""
28411 FONTCONFIG_LIBS=""
28412 FONTCONFIG_PKG=""
28413 if test "x$with_fontconfig" = "xyes"; then
28414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28415 $as_echo "-------------------------------------------------------------" >&6; }
28416
28417 pkg_failed=no
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28419 $as_echo_n "checking for FONTCONFIG... " >&6; }
28420
28421 if test -n "$FONTCONFIG_CFLAGS"; then
28422     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28423  elif test -n "$PKG_CONFIG"; then
28424     if test -n "$PKG_CONFIG" && \
28425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28426   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28427   ac_status=$?
28428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429   test $ac_status = 0; }; then
28430   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28431 else
28432   pkg_failed=yes
28433 fi
28434  else
28435     pkg_failed=untried
28436 fi
28437 if test -n "$FONTCONFIG_LIBS"; then
28438     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28439  elif test -n "$PKG_CONFIG"; then
28440     if test -n "$PKG_CONFIG" && \
28441     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28442   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28443   ac_status=$?
28444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28445   test $ac_status = 0; }; then
28446   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28447 else
28448   pkg_failed=yes
28449 fi
28450  else
28451     pkg_failed=untried
28452 fi
28453
28454
28455
28456 if test $pkg_failed = yes; then
28457
28458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28459         _pkg_short_errors_supported=yes
28460 else
28461         _pkg_short_errors_supported=no
28462 fi
28463         if test $_pkg_short_errors_supported = yes; then
28464                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28465         else
28466                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28467         fi
28468         # Put the nasty error message in config.log where it belongs
28469         echo "$FONTCONFIG_PKG_ERRORS" >&5
28470
28471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28472 $as_echo "no" >&6; }
28473                 have_fontconfig=no
28474 elif test $pkg_failed = untried; then
28475         have_fontconfig=no
28476 else
28477         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28478         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480 $as_echo "yes" >&6; }
28481         have_fontconfig=yes
28482 fi
28483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28484 $as_echo "" >&6; }
28485 fi
28486
28487 if test "$have_fontconfig" = 'yes'; then
28488
28489 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28490
28491   if test "$with_modules" = 'no'; then
28492     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28493   fi
28494 fi
28495
28496  if test "$have_fontconfig" = 'yes'; then
28497   FONTCONFIG_DELEGATE_TRUE=
28498   FONTCONFIG_DELEGATE_FALSE='#'
28499 else
28500   FONTCONFIG_DELEGATE_TRUE='#'
28501   FONTCONFIG_DELEGATE_FALSE=
28502 fi
28503
28504
28505
28506
28507
28508 #
28509 # Check for freetype delegate library.
28510 #
28511
28512 # Check whether --with-freetype was given.
28513 if test "${with_freetype+set}" = set; then :
28514   withval=$with_freetype; with_freetype=$withval
28515 else
28516   with_freetype='yes'
28517 fi
28518
28519
28520
28521 if test "$with_freetype" != 'yes'; then
28522     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28523 fi
28524
28525 have_freetype='no'
28526 FREETYPE_LIBS=''
28527 if test "$with_freetype" != 'no'; then
28528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28529 $as_echo "-------------------------------------------------------------" >&6; }
28530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
28531 $as_echo_n "checking for FreeType 2.0... " >&6; }
28532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28533 $as_echo "" >&6; }
28534     failed=0
28535     passed=0
28536     PERSIST_LIBS="$LIBS"
28537     PERSIST_CPPFLAGS="$CPPFLAGS"
28538     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28539         :
28540     else
28541         freetype_config=''
28542         for ac_prog in freetype-config
28543 do
28544   # Extract the first word of "$ac_prog", so it can be a program name with args.
28545 set dummy $ac_prog; ac_word=$2
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28547 $as_echo_n "checking for $ac_word... " >&6; }
28548 if ${ac_cv_prog_freetype_config+:} false; then :
28549   $as_echo_n "(cached) " >&6
28550 else
28551   if test -n "$freetype_config"; then
28552   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28553 else
28554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28555 for as_dir in $PATH
28556 do
28557   IFS=$as_save_IFS
28558   test -z "$as_dir" && as_dir=.
28559     for ac_exec_ext in '' $ac_executable_extensions; do
28560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28561     ac_cv_prog_freetype_config="$ac_prog"
28562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28563     break 2
28564   fi
28565 done
28566   done
28567 IFS=$as_save_IFS
28568
28569 fi
28570 fi
28571 freetype_config=$ac_cv_prog_freetype_config
28572 if test -n "$freetype_config"; then
28573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28574 $as_echo "$freetype_config" >&6; }
28575 else
28576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28577 $as_echo "no" >&6; }
28578 fi
28579
28580
28581   test -n "$freetype_config" && break
28582 done
28583         if test -n "$freetype_config"; then
28584             freetype_cflags=`$freetype_config --cflags`
28585             freetype_libs=`$freetype_config --libs`
28586             LIBS="$LIBS $freetype_libs"
28587             CPPFLAGS="$freetype_cflags $CPPFLAGS"
28588         fi
28589     fi
28590
28591     if test "$FREETYPE_LIBS" = ''; then
28592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28593 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28594 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28595   $as_echo_n "(cached) " >&6
28596 else
28597   ac_check_lib_save_LIBS=$LIBS
28598 LIBS="-lfreetype  $LIBS"
28599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28600 /* end confdefs.h.  */
28601
28602 /* Override any GCC internal prototype to avoid an error.
28603    Use char because int might match the return type of a GCC
28604    builtin and then its argument prototype would still apply.  */
28605 #ifdef __cplusplus
28606 extern "C"
28607 #endif
28608 char FT_Init_FreeType ();
28609 int
28610 main ()
28611 {
28612 return FT_Init_FreeType ();
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 if ac_fn_c_try_link "$LINENO"; then :
28618   ac_cv_lib_freetype_FT_Init_FreeType=yes
28619 else
28620   ac_cv_lib_freetype_FT_Init_FreeType=no
28621 fi
28622 rm -f core conftest.err conftest.$ac_objext \
28623     conftest$ac_exeext conftest.$ac_ext
28624 LIBS=$ac_check_lib_save_LIBS
28625 fi
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28627 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28628 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28629   FREETYPE_LIBS='-lfreetype'
28630 fi
28631
28632         if test "$FREETYPE_LIBS" != ''; then
28633             passed=`expr $passed + 1`
28634         else
28635             failed=`expr $failed + 1`
28636             LIBS="$PERSIST_LIBS"
28637         fi
28638     fi
28639
28640     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28641 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28642   FT2BUILD_H='#include <ft2build.h>'
28643 else
28644   ft2build=''
28645 fi
28646
28647
28648     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28649 "
28650 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28651   have_freetype_h='yes'
28652 else
28653   have_freetype_h='no'
28654 fi
28655
28656
28657     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28658         passed=`expr $passed + 1`
28659     else
28660         failed=`expr $failed + 1`
28661         CPPFLAGS="$PERSIST_CPPFLAGS"
28662     fi
28663
28664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28665 $as_echo_n "checking if FreeType package is complete... " >&6; }
28666     if test $passed -gt 0; then
28667         if test $failed -gt 0; then
28668             FREETYPE_LIBS=''
28669             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28670 $as_echo "no -- some components failed test" >&6; }
28671             have_freetype='no (failed tests)'
28672         else
28673             LIBS="$FREETYPE_LIBS $LIBS"
28674
28675 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28676
28677             if test "$ac_cv_header_ft2build_h" = 'yes'; then
28678
28679 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28680
28681             fi
28682             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28683 $as_echo "yes" >&6; }
28684             have_freetype='yes'
28685         fi
28686     else
28687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28688 $as_echo "no" >&6; }
28689     fi
28690 fi
28691  if test "$have_freetype" = 'yes'; then
28692   FREETYPE_DELEGATE_TRUE=
28693   FREETYPE_DELEGATE_FALSE='#'
28694 else
28695   FREETYPE_DELEGATE_TRUE='#'
28696   FREETYPE_DELEGATE_FALSE=
28697 fi
28698
28699
28700
28701
28702
28703 #
28704 # Check for Ghostscript library or framework.
28705 #
28706 # Test for iapi.h & test for gsapi_new_instance in -lgs
28707 # or -framework Ghostscript
28708
28709
28710 # Check whether --with-gslib was given.
28711 if test "${with_gslib+set}" = set; then :
28712   withval=$with_gslib; with_gslib=$withval
28713 else
28714   with_gslib='no'
28715 fi
28716
28717
28718 gslib_framework='no'
28719 if test "$with_gslib" != 'yes'; then
28720     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28721 fi
28722
28723 have_gslib='no'
28724 GS_LIBS=''
28725 if test "$with_gslib" != 'no'; then
28726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28727 $as_echo "-------------------------------------------------------------" >&6; }
28728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28729 $as_echo_n "checking for Ghostscript... " >&6; }
28730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28731 $as_echo "" >&6; }
28732     framework=0
28733     failed=0
28734     passed=0
28735     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28736 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28737   passed=`expr $passed + 1`
28738 else
28739   failed=`expr $failed + 1`
28740 fi
28741
28742
28743     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28744 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28745   passed=`expr $passed + 1`
28746 else
28747   failed=`expr $failed + 1`
28748 fi
28749
28750
28751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28752 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28753 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28754   $as_echo_n "(cached) " >&6
28755 else
28756   ac_check_framework_save_LIBS=$LIBS
28757 LIBS="-framework Ghostscript  $LIBS"
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h.  */
28760
28761 /* Override any GCC internal prototype to avoid an error.
28762    Use char because int might match the return type of a GCC
28763    builtin and then its argument prototype would still apply.  */
28764 #ifdef __cplusplus
28765 extern "C"
28766 #endif
28767 char gsapi_new_instance ();
28768 int
28769 main ()
28770 {
28771 return gsapi_new_instance ();
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 if ac_fn_c_try_link "$LINENO"; then :
28777   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28778 else
28779   ac_cv_framework_Ghostscript_gsapi_new_instance=no
28780 fi
28781 rm -f core conftest.err conftest.$ac_objext \
28782     conftest$ac_exeext conftest.$ac_ext
28783 LIBS=$ac_check_framework_save_LIBS
28784 fi
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28786 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28787 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28788   framework=`expr $framework + 1`
28789 else
28790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28791 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28792 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28793   $as_echo_n "(cached) " >&6
28794 else
28795   ac_check_lib_save_LIBS=$LIBS
28796 LIBS="-lgs  $LIBS"
28797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798 /* end confdefs.h.  */
28799
28800 /* Override any GCC internal prototype to avoid an error.
28801    Use char because int might match the return type of a GCC
28802    builtin and then its argument prototype would still apply.  */
28803 #ifdef __cplusplus
28804 extern "C"
28805 #endif
28806 char gsapi_new_instance ();
28807 int
28808 main ()
28809 {
28810 return gsapi_new_instance ();
28811   ;
28812   return 0;
28813 }
28814 _ACEOF
28815 if ac_fn_c_try_link "$LINENO"; then :
28816   ac_cv_lib_gs_gsapi_new_instance=yes
28817 else
28818   ac_cv_lib_gs_gsapi_new_instance=no
28819 fi
28820 rm -f core conftest.err conftest.$ac_objext \
28821     conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28823 fi
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28825 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28826 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28827   passed=`expr $passed + 1`
28828 else
28829   failed=`expr $failed + 1`
28830 fi
28831
28832 fi
28833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28834 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28835     if test $passed -gt 0; then
28836         if test $failed -gt 0; then
28837             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28838 $as_echo "no -- some components failed test" >&6; }
28839             have_gslib='no (failed tests)'
28840         else
28841             if test $framework -gt 0; then
28842                 GS_LIBS='-framework Ghostscript'
28843                 gslib_framework='yes'
28844                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28845 $as_echo "yes, using framework." >&6; }
28846             else
28847                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28848 $as_echo "yes, using library." >&6; }
28849                 GS_LIBS='-lgs'
28850             fi
28851             LIBS="$GS_LIBS $LIBS"
28852
28853 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28854
28855             have_gslib='yes'
28856         fi
28857     else
28858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859 $as_echo "no" >&6; }
28860     fi
28861 fi
28862  if test "$have_gslib" = 'yes'; then
28863   GS_DELEGATE_TRUE=
28864   GS_DELEGATE_FALSE='#'
28865 else
28866   GS_DELEGATE_TRUE='#'
28867   GS_DELEGATE_FALSE=
28868 fi
28869
28870
28871
28872 # Set default font search path
28873
28874 # Check whether --with-fontpath was given.
28875 if test "${with_fontpath+set}" = set; then :
28876   withval=$with_fontpath; with_fontpath=$withval
28877 else
28878   with_fontpath=''
28879 fi
28880
28881
28882 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28883     with_fontpath=''
28884 else
28885
28886 cat >>confdefs.h <<_ACEOF
28887 #define MAGICK_FONT_PATH "$with_fontpath"
28888 _ACEOF
28889
28890 fi
28891 if test "$with_fontpath=" != ''; then
28892     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28893 fi
28894
28895 # Set Ghostscript font directory
28896
28897 # Check whether --with-gs-font-dir was given.
28898 if test "${with_gs_font_dir+set}" = set; then :
28899   withval=$with_gs_font_dir; with_gs_font_dir=$withval
28900 else
28901   with_gs_font_dir='default'
28902 fi
28903
28904
28905 if test "$with_gs_font_dir" != 'default'; then
28906     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28907 fi
28908
28909
28910 #
28911 # Check for GVC delegate library.
28912 #
28913
28914 # Check whether --with-gvc was given.
28915 if test "${with_gvc+set}" = set; then :
28916   withval=$with_gvc; with_gvc=$withval
28917 else
28918   with_gvc='yes'
28919 fi
28920
28921
28922 if test "$with_gvc" != 'yes'; then
28923     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28924 fi
28925
28926 GVC_PKG=""
28927 if test "x$with_gvc" = "xyes"; then
28928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28929 $as_echo "-------------------------------------------------------------" >&6; }
28930
28931 pkg_failed=no
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28933 $as_echo_n "checking for GVC... " >&6; }
28934
28935 if test -n "$GVC_CFLAGS"; then
28936     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28937  elif test -n "$PKG_CONFIG"; then
28938     if test -n "$PKG_CONFIG" && \
28939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28940   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28941   ac_status=$?
28942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28943   test $ac_status = 0; }; then
28944   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28945 else
28946   pkg_failed=yes
28947 fi
28948  else
28949     pkg_failed=untried
28950 fi
28951 if test -n "$GVC_LIBS"; then
28952     pkg_cv_GVC_LIBS="$GVC_LIBS"
28953  elif test -n "$PKG_CONFIG"; then
28954     if test -n "$PKG_CONFIG" && \
28955     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28956   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28957   ac_status=$?
28958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28959   test $ac_status = 0; }; then
28960   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28961 else
28962   pkg_failed=yes
28963 fi
28964  else
28965     pkg_failed=untried
28966 fi
28967
28968
28969
28970 if test $pkg_failed = yes; then
28971
28972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28973         _pkg_short_errors_supported=yes
28974 else
28975         _pkg_short_errors_supported=no
28976 fi
28977         if test $_pkg_short_errors_supported = yes; then
28978                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28979         else
28980                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28981         fi
28982         # Put the nasty error message in config.log where it belongs
28983         echo "$GVC_PKG_ERRORS" >&5
28984
28985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28986 $as_echo "no" >&6; }
28987                 have_gvc=no
28988 elif test $pkg_failed = untried; then
28989         have_gvc=no
28990 else
28991         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28992         GVC_LIBS=$pkg_cv_GVC_LIBS
28993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28994 $as_echo "yes" >&6; }
28995         have_gvc=yes
28996 fi
28997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28998 $as_echo "" >&6; }
28999 fi
29000
29001 if test "$have_gvc" = 'yes'; then
29002
29003 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29004
29005     if test "$with_modules" = 'no'; then
29006         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29007     fi
29008 fi
29009
29010  if test "$have_gvc" = 'yes'; then
29011   GVC_DELEGATE_TRUE=
29012   GVC_DELEGATE_FALSE='#'
29013 else
29014   GVC_DELEGATE_TRUE='#'
29015   GVC_DELEGATE_FALSE=
29016 fi
29017
29018
29019
29020
29021
29022 #
29023 # Check for JBIG delegate library.
29024 #
29025
29026
29027 # Check whether --with-jbig was given.
29028 if test "${with_jbig+set}" = set; then :
29029   withval=$with_jbig; with_jbig=$withval
29030 else
29031   with_jbig='yes'
29032 fi
29033
29034
29035 have_jbig='no'
29036 JBIG_LIBS=''
29037 if test "$with_jbig" != 'no'; then
29038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29039 $as_echo "-------------------------------------------------------------" >&6; }
29040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29041 $as_echo_n "checking for JBIG... " >&6; }
29042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29043 $as_echo "" >&6; }
29044     failed=0
29045     passed=0
29046     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29047 if test "x$ac_cv_header_jbig_h" = xyes; then :
29048   passed=`expr $passed + 1`
29049 else
29050   failed=`expr $failed + 1`
29051 fi
29052
29053
29054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29055 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29056 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29057   $as_echo_n "(cached) " >&6
29058 else
29059   ac_check_lib_save_LIBS=$LIBS
29060 LIBS="-ljbig  $LIBS"
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h.  */
29063
29064 /* Override any GCC internal prototype to avoid an error.
29065    Use char because int might match the return type of a GCC
29066    builtin and then its argument prototype would still apply.  */
29067 #ifdef __cplusplus
29068 extern "C"
29069 #endif
29070 char jbg_dec_init ();
29071 int
29072 main ()
29073 {
29074 return jbg_dec_init ();
29075   ;
29076   return 0;
29077 }
29078 _ACEOF
29079 if ac_fn_c_try_link "$LINENO"; then :
29080   ac_cv_lib_jbig_jbg_dec_init=yes
29081 else
29082   ac_cv_lib_jbig_jbg_dec_init=no
29083 fi
29084 rm -f core conftest.err conftest.$ac_objext \
29085     conftest$ac_exeext conftest.$ac_ext
29086 LIBS=$ac_check_lib_save_LIBS
29087 fi
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29089 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29090 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29091   passed=`expr $passed + 1`
29092 else
29093   failed=`expr $failed + 1`
29094 fi
29095
29096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29097 $as_echo_n "checking if JBIG package is complete... " >&6; }
29098     if test $passed -gt 0; then
29099         if test $failed -gt 0; then
29100             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29101 $as_echo "no -- some components failed test" >&6; }
29102             have_jbig='no (failed tests)'
29103         else
29104             JBIG_LIBS='-ljbig'
29105             LIBS="$JBIG_LIBS $LIBS"
29106
29107 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29108
29109             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29110 $as_echo "yes" >&6; }
29111             have_jbig='yes'
29112         fi
29113     else
29114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29115 $as_echo "no" >&6; }
29116     fi
29117 fi
29118  if test "$have_jbig" = 'yes'; then
29119   JBIG_DELEGATE_TRUE=
29120   JBIG_DELEGATE_FALSE='#'
29121 else
29122   JBIG_DELEGATE_TRUE='#'
29123   JBIG_DELEGATE_FALSE=
29124 fi
29125
29126
29127
29128
29129 #
29130 # Check for JPEG delegate library.
29131 #
29132
29133 # Check whether --with-jpeg was given.
29134 if test "${with_jpeg+set}" = set; then :
29135   withval=$with_jpeg; with_jpeg=$withval
29136 else
29137   with_jpeg='yes'
29138 fi
29139
29140
29141 if test "$with_jpeg" != 'yes'; then
29142     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29143 fi
29144
29145 have_jpeg='no'
29146 JPEG_LIBS=''
29147 if test "$with_jpeg" != 'no'; then
29148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29149 $as_echo "-------------------------------------------------------------" >&6; }
29150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29151 $as_echo_n "checking for JPEG... " >&6; }
29152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29153 $as_echo "" >&6; }
29154     failed=0
29155     passed=0
29156     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29157 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29158   passed=`expr $passed + 1`
29159 else
29160   failed=`expr $failed + 1`
29161 fi
29162
29163
29164     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29165 if test "x$ac_cv_header_jerror_h" = xyes; then :
29166   passed=`expr $passed + 1`
29167 else
29168   failed=`expr $failed + 1`
29169 fi
29170
29171
29172     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29173 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29174   passed=`expr $passed + 1`
29175 else
29176   failed=`expr $failed + 1`
29177 fi
29178
29179
29180     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29181 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29182   passed=`expr $passed + 1`
29183 else
29184   failed=`expr $failed + 1`
29185 fi
29186
29187
29188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29189 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29190 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29191   $as_echo_n "(cached) " >&6
29192 else
29193   ac_check_lib_save_LIBS=$LIBS
29194 LIBS="-ljpeg  $LIBS"
29195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h.  */
29197
29198 /* Override any GCC internal prototype to avoid an error.
29199    Use char because int might match the return type of a GCC
29200    builtin and then its argument prototype would still apply.  */
29201 #ifdef __cplusplus
29202 extern "C"
29203 #endif
29204 char jpeg_read_header ();
29205 int
29206 main ()
29207 {
29208 return jpeg_read_header ();
29209   ;
29210   return 0;
29211 }
29212 _ACEOF
29213 if ac_fn_c_try_link "$LINENO"; then :
29214   ac_cv_lib_jpeg_jpeg_read_header=yes
29215 else
29216   ac_cv_lib_jpeg_jpeg_read_header=no
29217 fi
29218 rm -f core conftest.err conftest.$ac_objext \
29219     conftest$ac_exeext conftest.$ac_ext
29220 LIBS=$ac_check_lib_save_LIBS
29221 fi
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29223 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29224 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29225   passed=`expr $passed + 1`
29226 else
29227   failed=`expr $failed + 1`
29228 fi
29229
29230
29231 # Test for compatible JPEG library
29232 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29234 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29235 if ${ac_cv_jpeg_version_ok+:} false; then :
29236   $as_echo_n "(cached) " >&6
29237 else
29238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29239 /* end confdefs.h.  */
29240 #include <stdio.h>
29241 #include <stdlib.h>
29242 #include <jpeglib.h>
29243
29244 int
29245 main ()
29246 {
29247
29248 #if JPEG_LIB_VERSION < 62
29249 #error IJG JPEG library must be version 6b or newer!
29250 #endif
29251 return 0;
29252
29253   ;
29254   return 0;
29255 }
29256 _ACEOF
29257 if ac_fn_c_try_compile "$LINENO"; then :
29258   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29259 else
29260   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29261 fi
29262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29263 fi
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29265 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29266 fi
29267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29268 $as_echo_n "checking if JPEG package is complete... " >&6; }
29269     if test $passed -gt 0; then
29270         if test $failed -gt 0; then
29271             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29272 $as_echo "no -- some components failed test" >&6; }
29273             have_jpeg='no (failed tests)'
29274         else
29275             JPEG_LIBS='-ljpeg'
29276             LIBS="$JPEG_LIBS $LIBS"
29277
29278 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29279
29280             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 $as_echo "yes" >&6; }
29282             have_jpeg='yes'
29283         fi
29284     else
29285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29286 $as_echo "no" >&6; }
29287     fi
29288 fi
29289  if test "$have_jpeg" = 'yes'; then
29290   JPEG_DELEGATE_TRUE=
29291   JPEG_DELEGATE_FALSE='#'
29292 else
29293   JPEG_DELEGATE_TRUE='#'
29294   JPEG_DELEGATE_FALSE=
29295 fi
29296
29297
29298
29299
29300 #
29301 # Check for JPEG Version 2 delegate library.
29302 #
29303
29304 # Check whether --with-jp2 was given.
29305 if test "${with_jp2+set}" = set; then :
29306   withval=$with_jp2; with_jp2=$withval
29307 else
29308   with_jp2='yes'
29309 fi
29310
29311
29312 if test "$with_jp2" != 'yes'; then
29313     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29314 fi
29315
29316 have_jp2='no'
29317 JP2_LIBS=''
29318 if test "$with_jp2" != 'no'; then
29319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29320 $as_echo "-------------------------------------------------------------" >&6; }
29321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29322 $as_echo_n "checking for JPEG Version 2... " >&6; }
29323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29324 $as_echo "" >&6; }
29325     failed=0
29326     passed=0
29327     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29328 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29329   passed=`expr $passed + 1`
29330 else
29331   failed=`expr $failed + 1`
29332 fi
29333
29334
29335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29336 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29337 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29338   $as_echo_n "(cached) " >&6
29339 else
29340   ac_check_lib_save_LIBS=$LIBS
29341 LIBS="-ljasper  $LIBS"
29342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29343 /* end confdefs.h.  */
29344
29345 /* Override any GCC internal prototype to avoid an error.
29346    Use char because int might match the return type of a GCC
29347    builtin and then its argument prototype would still apply.  */
29348 #ifdef __cplusplus
29349 extern "C"
29350 #endif
29351 char jas_stream_fopen ();
29352 int
29353 main ()
29354 {
29355 return jas_stream_fopen ();
29356   ;
29357   return 0;
29358 }
29359 _ACEOF
29360 if ac_fn_c_try_link "$LINENO"; then :
29361   ac_cv_lib_jasper_jas_stream_fopen=yes
29362 else
29363   ac_cv_lib_jasper_jas_stream_fopen=no
29364 fi
29365 rm -f core conftest.err conftest.$ac_objext \
29366     conftest$ac_exeext conftest.$ac_ext
29367 LIBS=$ac_check_lib_save_LIBS
29368 fi
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29370 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29371 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29372   passed=`expr $passed + 1`
29373 else
29374   failed=`expr $failed + 1`
29375 fi
29376
29377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29378 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29379     if test $passed -gt 0; then
29380         if test $failed -gt 0; then
29381             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29382 $as_echo "no -- some components failed test" >&6; }
29383             have_jp2='no (failed tests)'
29384         else
29385             JP2_LIBS='-ljasper'
29386             LIBS="$JP2_LIBS $LIBS"
29387
29388 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29389
29390             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29391 $as_echo "yes" >&6; }
29392             have_jp2='yes'
29393         fi
29394     else
29395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29396 $as_echo "no" >&6; }
29397     fi
29398 fi
29399  if test "$have_jp2" = 'yes'; then
29400   JP2_DELEGATE_TRUE=
29401   JP2_DELEGATE_FALSE='#'
29402 else
29403   JP2_DELEGATE_TRUE='#'
29404   JP2_DELEGATE_FALSE=
29405 fi
29406
29407
29408
29409
29410 #
29411 # Check for LCMS delegate library.
29412 #
29413 # Disable LCMS.
29414
29415 # Check whether --with-lcms was given.
29416 if test "${with_lcms+set}" = set; then :
29417   withval=$with_lcms; with_lcms=$withval
29418 else
29419   with_lcms='yes'
29420 fi
29421
29422 if test "$with_lcms" != 'yes' ; then
29423     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29424 fi
29425
29426 # Disable LCMS2.
29427
29428 # Check whether --with-lcms2 was given.
29429 if test "${with_lcms2+set}" = set; then :
29430   withval=$with_lcms2; with_lcms2=$withval
29431 else
29432   with_lcms2='yes'
29433 fi
29434
29435 if test "$with_lcms2" != 'yes' ; then
29436     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29437 fi
29438
29439 have_lcms2='no'
29440 LCMS_LIBS=''
29441 if test "$with_lcms2" != 'no'; then
29442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29443 $as_echo "-------------------------------------------------------------" >&6; }
29444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29445 $as_echo_n "checking for LCMS v2... " >&6; }
29446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29447 $as_echo "" >&6; }
29448     failed=0
29449     passed=0
29450     have_lcms_header='no'
29451
29452     # Check for <lcms2.h>
29453     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29454 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29455   have_lcms_header='yes'
29456 fi
29457
29458
29459     if test "$have_lcms_header" = 'yes'; then
29460
29461 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29462
29463        passed=`expr $passed + 1`
29464     fi
29465
29466     # Check for <lcms2/lcms2.h)
29467     if test "$have_lcms_header" != 'yes'; then
29468       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29469 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29470   have_lcms_header='yes'
29471 fi
29472
29473
29474       if test "$have_lcms_header" = 'yes'; then
29475         passed=`expr $passed + 1`
29476
29477 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29478
29479       fi
29480     fi
29481
29482     # Failed to find lcms header?
29483     if test "$have_lcms_header" != 'yes'; then
29484       failed=`expr $failed + 1`
29485     fi
29486
29487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29488 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29489 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29490   $as_echo_n "(cached) " >&6
29491 else
29492   ac_check_lib_save_LIBS=$LIBS
29493 LIBS="-llcms2  $LIBS"
29494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495 /* end confdefs.h.  */
29496
29497 /* Override any GCC internal prototype to avoid an error.
29498    Use char because int might match the return type of a GCC
29499    builtin and then its argument prototype would still apply.  */
29500 #ifdef __cplusplus
29501 extern "C"
29502 #endif
29503 char cmsSetLogErrorHandler ();
29504 int
29505 main ()
29506 {
29507 return cmsSetLogErrorHandler ();
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 if ac_fn_c_try_link "$LINENO"; then :
29513   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29514 else
29515   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29516 fi
29517 rm -f core conftest.err conftest.$ac_objext \
29518     conftest$ac_exeext conftest.$ac_ext
29519 LIBS=$ac_check_lib_save_LIBS
29520 fi
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29522 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29523 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29524   passed=`expr $passed + 1`
29525 else
29526   failed=`expr $failed + 1`
29527 fi
29528
29529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29530 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29531     if test $passed -gt 0; then
29532       if test $failed -gt 0; then
29533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29534 $as_echo "no -- some components failed test" >&6; }
29535         have_lcms2='no (failed tests)'
29536       else
29537         LCMS_LIBS='-llcms2'
29538         LIBS="$LCMS_LIBS $LIBS"
29539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29540 $as_echo "yes" >&6; }
29541         have_lcms2='yes'
29542       fi
29543     else
29544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29545 $as_echo "no" >&6; }
29546     fi
29547 fi
29548
29549 #
29550 # Check for LCMS v1 (1.11 or later)
29551 #
29552 if test $have_lcms2 = 'yes'; then
29553   with_lcms='no'
29554 fi
29555
29556 have_lcms='no'
29557 if test "$with_lcms" != 'no'; then
29558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29559 $as_echo "-------------------------------------------------------------" >&6; }
29560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29561 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29563 $as_echo "" >&6; }
29564     failed=0
29565     passed=0
29566     have_lcms_header='no'
29567
29568     # Check for <lcms.h>
29569     if test "$have_lcms_header" != 'yes'; then
29570       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29571 if test "x$ac_cv_header_lcms_h" = xyes; then :
29572   have_lcms_header='yes'
29573 fi
29574
29575
29576       if test "$have_lcms_header" = 'yes'; then
29577         passed=`expr $passed + 1`
29578
29579 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29580
29581       fi
29582     fi
29583
29584     # Check for <lcms/lcms.h>
29585     if test "$have_lcms_header" != 'yes'; then
29586       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29587 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29588   have_lcms_header='yes'
29589 fi
29590
29591
29592       if test "$have_lcms_header" = 'yes'; then
29593         passed=`expr $passed + 1`
29594
29595 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29596
29597       fi
29598     fi
29599
29600     # Failed to find lcms header?
29601     if test "$have_lcms_header" != 'yes'; then
29602       failed=`expr $failed + 1`
29603     fi
29604
29605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29606 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29607 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29608   $as_echo_n "(cached) " >&6
29609 else
29610   ac_check_lib_save_LIBS=$LIBS
29611 LIBS="-llcms  $LIBS"
29612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29613 /* end confdefs.h.  */
29614
29615 /* Override any GCC internal prototype to avoid an error.
29616    Use char because int might match the return type of a GCC
29617    builtin and then its argument prototype would still apply.  */
29618 #ifdef __cplusplus
29619 extern "C"
29620 #endif
29621 char cmsSetErrorHandler ();
29622 int
29623 main ()
29624 {
29625 return cmsSetErrorHandler ();
29626   ;
29627   return 0;
29628 }
29629 _ACEOF
29630 if ac_fn_c_try_link "$LINENO"; then :
29631   ac_cv_lib_lcms_cmsSetErrorHandler=yes
29632 else
29633   ac_cv_lib_lcms_cmsSetErrorHandler=no
29634 fi
29635 rm -f core conftest.err conftest.$ac_objext \
29636     conftest$ac_exeext conftest.$ac_ext
29637 LIBS=$ac_check_lib_save_LIBS
29638 fi
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29640 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29641 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29642   passed=`expr $passed + 1`
29643 else
29644   failed=`expr $failed + 1`
29645 fi
29646
29647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29648 $as_echo_n "checking if LCMS package is complete... " >&6; }
29649     if test $passed -gt 0; then
29650       if test $failed -gt 0; then
29651         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29652 $as_echo "no -- some components failed test" >&6; }
29653         have_lcms='no (failed tests)'
29654       else
29655         LCMS_LIBS='-llcms'
29656         LIBS="$LCMS_LIBS $LIBS"
29657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29658 $as_echo "yes" >&6; }
29659         have_lcms='yes'
29660       fi
29661     else
29662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29663 $as_echo "no" >&6; }
29664     fi
29665 fi
29666
29667  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29668   LCMS_DELEGATE_TRUE=
29669   LCMS_DELEGATE_FALSE='#'
29670 else
29671   LCMS_DELEGATE_TRUE='#'
29672   LCMS_DELEGATE_FALSE=
29673 fi
29674
29675 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29676
29677 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29678
29679 fi
29680
29681
29682
29683
29684 #
29685 # Check for the LQR (Liquid Rescale) delegate library.
29686 #
29687
29688 # Check whether --with-lqr was given.
29689 if test "${with_lqr+set}" = set; then :
29690   withval=$with_lqr; with_lqr=$withval
29691 else
29692   with_lqr='yes'
29693 fi
29694
29695
29696 if test "$with_lqr" != 'yes'; then
29697     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29698 fi
29699
29700 have_lqr='no'
29701 LQR_CFLAGS=""
29702 LQR_LIBS=""
29703 LQR_PKG=""
29704 if test "x$with_lqr" = "xyes"; then
29705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29706 $as_echo "-------------------------------------------------------------" >&6; }
29707
29708 pkg_failed=no
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29710 $as_echo_n "checking for LQR... " >&6; }
29711
29712 if test -n "$LQR_CFLAGS"; then
29713     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29714  elif test -n "$PKG_CONFIG"; then
29715     if test -n "$PKG_CONFIG" && \
29716     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29717   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29718   ac_status=$?
29719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720   test $ac_status = 0; }; then
29721   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29722 else
29723   pkg_failed=yes
29724 fi
29725  else
29726     pkg_failed=untried
29727 fi
29728 if test -n "$LQR_LIBS"; then
29729     pkg_cv_LQR_LIBS="$LQR_LIBS"
29730  elif test -n "$PKG_CONFIG"; then
29731     if test -n "$PKG_CONFIG" && \
29732     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29733   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29734   ac_status=$?
29735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29736   test $ac_status = 0; }; then
29737   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29738 else
29739   pkg_failed=yes
29740 fi
29741  else
29742     pkg_failed=untried
29743 fi
29744
29745
29746
29747 if test $pkg_failed = yes; then
29748
29749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29750         _pkg_short_errors_supported=yes
29751 else
29752         _pkg_short_errors_supported=no
29753 fi
29754         if test $_pkg_short_errors_supported = yes; then
29755                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29756         else
29757                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29758         fi
29759         # Put the nasty error message in config.log where it belongs
29760         echo "$LQR_PKG_ERRORS" >&5
29761
29762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29763 $as_echo "no" >&6; }
29764                 have_lqr=no
29765 elif test $pkg_failed = untried; then
29766         have_lqr=no
29767 else
29768         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29769         LQR_LIBS=$pkg_cv_LQR_LIBS
29770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29771 $as_echo "yes" >&6; }
29772         have_lqr=yes
29773 fi
29774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29775 $as_echo "" >&6; }
29776 fi
29777
29778 if test "$have_lqr" = 'yes'; then
29779
29780 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29781
29782     CFLAGS="$LQR_CFLAGS $CFLAGS"
29783 fi
29784
29785  if test "$have_lqr" = 'yes'; then
29786   LQR_DELEGATE_TRUE=
29787   LQR_DELEGATE_FALSE='#'
29788 else
29789   LQR_DELEGATE_TRUE='#'
29790   LQR_DELEGATE_FALSE=
29791 fi
29792
29793
29794
29795
29796
29797 # Disable LZMA (lzma library)
29798
29799 # Check whether --with-lzma was given.
29800 if test "${with_lzma+set}" = set; then :
29801   withval=$with_lzma; with_lzma=$withval
29802 else
29803   with_lzma='yes'
29804 fi
29805
29806 if test "$with_lzma" != 'yes' ; then
29807     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29808 fi
29809
29810 #
29811 # Check for LZMA
29812 #
29813 have_lzma='no'
29814 LZMA_LIBS=''
29815 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29817 $as_echo "-------------------------------------------------------------" >&6; }
29818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29819 $as_echo_n "checking for LZMA... " >&6; }
29820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29821 $as_echo "" >&6; }
29822   failed=0
29823   passed=0
29824   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29825 if test "x$ac_cv_header_lzma_h" = xyes; then :
29826   passed=`expr $passed + 1`
29827 else
29828   failed=`expr $failed + 1`
29829 fi
29830
29831
29832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29833 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29834 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29835   $as_echo_n "(cached) " >&6
29836 else
29837   ac_check_lib_save_LIBS=$LIBS
29838 LIBS="-llzma  $LIBS"
29839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29840 /* end confdefs.h.  */
29841
29842 /* Override any GCC internal prototype to avoid an error.
29843    Use char because int might match the return type of a GCC
29844    builtin and then its argument prototype would still apply.  */
29845 #ifdef __cplusplus
29846 extern "C"
29847 #endif
29848 char lzma_code ();
29849 int
29850 main ()
29851 {
29852 return lzma_code ();
29853   ;
29854   return 0;
29855 }
29856 _ACEOF
29857 if ac_fn_c_try_link "$LINENO"; then :
29858   ac_cv_lib_lzma_lzma_code=yes
29859 else
29860   ac_cv_lib_lzma_lzma_code=no
29861 fi
29862 rm -f core conftest.err conftest.$ac_objext \
29863     conftest$ac_exeext conftest.$ac_ext
29864 LIBS=$ac_check_lib_save_LIBS
29865 fi
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29867 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29868 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29869   passed=`expr $passed + 1`
29870 else
29871   failed=`expr $failed + 1`
29872 fi
29873
29874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29875 $as_echo_n "checking if LZMA package is complete... " >&6; }
29876   if test $passed -gt 0; then
29877     if test $failed -gt 0; then
29878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29879 $as_echo "no -- some components failed test" >&6; }
29880       have_lzma='no (failed tests)'
29881     else
29882       LZMA_LIBS='-llzma'
29883       LIBS="$LZMA_LIBS $LIBS"
29884
29885 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29886
29887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888 $as_echo "yes" >&6; }
29889       have_lzma='yes'
29890     fi
29891   else
29892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29893 $as_echo "no" >&6; }
29894   fi
29895 fi
29896  if test "$have_lzma" = 'yes'; then
29897   LZMA_DELEGATE_TRUE=
29898   LZMA_DELEGATE_FALSE='#'
29899 else
29900   LZMA_DELEGATE_TRUE='#'
29901   LZMA_DELEGATE_FALSE=
29902 fi
29903
29904
29905
29906
29907 #
29908 # Check for the OpenEXR delegate library.
29909 #
29910
29911 # Check whether --with-openexr was given.
29912 if test "${with_openexr+set}" = set; then :
29913   withval=$with_openexr; with_openexr=$withval
29914 else
29915   with_openexr='yes'
29916 fi
29917
29918
29919 if test "$with_openexr" != 'yes'; then
29920     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29921 fi
29922
29923 have_openexr='no'
29924 OPENEXR_CFLAGS=""
29925 OPENEXR_LIBS=""
29926 OPENEXR_PKG=""
29927 if test "x$with_openexr" = "xyes"; then
29928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29929 $as_echo "-------------------------------------------------------------" >&6; }
29930
29931 pkg_failed=no
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29933 $as_echo_n "checking for OPENEXR... " >&6; }
29934
29935 if test -n "$OPENEXR_CFLAGS"; then
29936     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29937  elif test -n "$PKG_CONFIG"; then
29938     if test -n "$PKG_CONFIG" && \
29939     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29940   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29941   ac_status=$?
29942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943   test $ac_status = 0; }; then
29944   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29945 else
29946   pkg_failed=yes
29947 fi
29948  else
29949     pkg_failed=untried
29950 fi
29951 if test -n "$OPENEXR_LIBS"; then
29952     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29953  elif test -n "$PKG_CONFIG"; then
29954     if test -n "$PKG_CONFIG" && \
29955     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29956   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29957   ac_status=$?
29958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959   test $ac_status = 0; }; then
29960   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29961 else
29962   pkg_failed=yes
29963 fi
29964  else
29965     pkg_failed=untried
29966 fi
29967
29968
29969
29970 if test $pkg_failed = yes; then
29971
29972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29973         _pkg_short_errors_supported=yes
29974 else
29975         _pkg_short_errors_supported=no
29976 fi
29977         if test $_pkg_short_errors_supported = yes; then
29978                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29979         else
29980                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29981         fi
29982         # Put the nasty error message in config.log where it belongs
29983         echo "$OPENEXR_PKG_ERRORS" >&5
29984
29985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986 $as_echo "no" >&6; }
29987                 have_openexr=no
29988 elif test $pkg_failed = untried; then
29989         have_openexr=no
29990 else
29991         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29992         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29994 $as_echo "yes" >&6; }
29995         have_openexr=yes
29996 fi
29997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29998 $as_echo "" >&6; }
29999 fi
30000
30001 if test "$have_openexr" = 'yes'; then
30002
30003 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30004
30005     if test "$with_modules" = 'no'; then
30006         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30007     fi
30008 fi
30009
30010  if test "$have_openexr" = 'yes'; then
30011   OPENEXR_DELEGATE_TRUE=
30012   OPENEXR_DELEGATE_FALSE='#'
30013 else
30014   OPENEXR_DELEGATE_TRUE='#'
30015   OPENEXR_DELEGATE_FALSE=
30016 fi
30017
30018
30019
30020
30021
30022 #
30023 # Check for PNG delegate library.
30024 #
30025
30026 # Check whether --with-png was given.
30027 if test "${with_png+set}" = set; then :
30028   withval=$with_png; with_png=$withval
30029 else
30030   with_png='yes'
30031 fi
30032
30033
30034 if test "$with_png" != 'yes'; then
30035     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30036 fi
30037
30038 have_png='no'
30039 PNG_LIBS=''
30040 if test "$with_png" != 'no'; then
30041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30042 $as_echo "-------------------------------------------------------------" >&6; }
30043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
30044 $as_echo_n "checking for PNG... " >&6; }
30045     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30046 $as_echo "" >&6; }
30047     failed=0
30048     passed=0
30049     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30050 if test "x$ac_cv_header_png_h" = xyes; then :
30051   passed=`expr $passed + 1`
30052 else
30053   failed=`expr $failed + 1`
30054 fi
30055
30056
30057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30058 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30059 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30060   $as_echo_n "(cached) " >&6
30061 else
30062   ac_check_lib_save_LIBS=$LIBS
30063 LIBS="-lpng  $LIBS"
30064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30065 /* end confdefs.h.  */
30066
30067 /* Override any GCC internal prototype to avoid an error.
30068    Use char because int might match the return type of a GCC
30069    builtin and then its argument prototype would still apply.  */
30070 #ifdef __cplusplus
30071 extern "C"
30072 #endif
30073 char png_get_io_ptr ();
30074 int
30075 main ()
30076 {
30077 return png_get_io_ptr ();
30078   ;
30079   return 0;
30080 }
30081 _ACEOF
30082 if ac_fn_c_try_link "$LINENO"; then :
30083   ac_cv_lib_png_png_get_io_ptr=yes
30084 else
30085   ac_cv_lib_png_png_get_io_ptr=no
30086 fi
30087 rm -f core conftest.err conftest.$ac_objext \
30088     conftest$ac_exeext conftest.$ac_ext
30089 LIBS=$ac_check_lib_save_LIBS
30090 fi
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30092 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30093 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30094   passed=`expr $passed + 1`
30095 else
30096   failed=`expr $failed + 1`
30097 fi
30098
30099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
30100 $as_echo_n "checking if PNG package is complete... " >&6; }
30101     if test $passed -gt 0; then
30102         if test $failed -gt 0; then
30103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30104 $as_echo "no -- some components failed test" >&6; }
30105             have_png='no (failed tests)'
30106         else
30107             PNG_LIBS='-lpng'
30108             LIBS="$PNG_LIBS $LIBS"
30109
30110 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30111
30112             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30113 $as_echo "yes" >&6; }
30114             have_png='yes'
30115         fi
30116     else
30117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30118 $as_echo "no" >&6; }
30119     fi
30120 fi
30121  if test "$have_png" = 'yes'; then
30122   PNG_DELEGATE_TRUE=
30123   PNG_DELEGATE_FALSE='#'
30124 else
30125   PNG_DELEGATE_TRUE='#'
30126   PNG_DELEGATE_FALSE=
30127 fi
30128
30129
30130
30131
30132 #
30133 # Check for RSVG delegate library.
30134 #
30135
30136 # Check whether --with-rsvg was given.
30137 if test "${with_rsvg+set}" = set; then :
30138   withval=$with_rsvg; with_rsvg=$withval
30139 else
30140   with_rsvg=$have_x
30141 fi
30142
30143
30144 if test "$with_rsvg" != 'yes'; then
30145     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30146 fi
30147
30148 have_rsvg='no'
30149 have_cairo='no'
30150 RSVG_CFLAGS=""
30151 RSVG_LIBS=""
30152 RSVG_PKG=""
30153 if test "x$with_rsvg" = "xyes"; then
30154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30155 $as_echo "-------------------------------------------------------------" >&6; }
30156
30157 pkg_failed=no
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30159 $as_echo_n "checking for RSVG... " >&6; }
30160
30161 if test -n "$RSVG_CFLAGS"; then
30162     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30163  elif test -n "$PKG_CONFIG"; then
30164     if test -n "$PKG_CONFIG" && \
30165     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30166   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30167   ac_status=$?
30168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30169   test $ac_status = 0; }; then
30170   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30171 else
30172   pkg_failed=yes
30173 fi
30174  else
30175     pkg_failed=untried
30176 fi
30177 if test -n "$RSVG_LIBS"; then
30178     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30179  elif test -n "$PKG_CONFIG"; then
30180     if test -n "$PKG_CONFIG" && \
30181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30182   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30183   ac_status=$?
30184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185   test $ac_status = 0; }; then
30186   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30187 else
30188   pkg_failed=yes
30189 fi
30190  else
30191     pkg_failed=untried
30192 fi
30193
30194
30195
30196 if test $pkg_failed = yes; then
30197
30198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30199         _pkg_short_errors_supported=yes
30200 else
30201         _pkg_short_errors_supported=no
30202 fi
30203         if test $_pkg_short_errors_supported = yes; then
30204                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30205         else
30206                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30207         fi
30208         # Put the nasty error message in config.log where it belongs
30209         echo "$RSVG_PKG_ERRORS" >&5
30210
30211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212 $as_echo "no" >&6; }
30213                 have_rsvg=no
30214 elif test $pkg_failed = untried; then
30215         have_rsvg=no
30216 else
30217         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30218         RSVG_LIBS=$pkg_cv_RSVG_LIBS
30219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30220 $as_echo "yes" >&6; }
30221         have_rsvg=yes
30222 fi
30223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30224 $as_echo "" >&6; }
30225
30226 pkg_failed=no
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30228 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30229
30230 if test -n "$CAIRO_SVG_CFLAGS"; then
30231     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30232  elif test -n "$PKG_CONFIG"; then
30233     if test -n "$PKG_CONFIG" && \
30234     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30235   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30236   ac_status=$?
30237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30238   test $ac_status = 0; }; then
30239   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30240 else
30241   pkg_failed=yes
30242 fi
30243  else
30244     pkg_failed=untried
30245 fi
30246 if test -n "$CAIRO_SVG_LIBS"; then
30247     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30248  elif test -n "$PKG_CONFIG"; then
30249     if test -n "$PKG_CONFIG" && \
30250     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30251   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30252   ac_status=$?
30253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254   test $ac_status = 0; }; then
30255   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30256 else
30257   pkg_failed=yes
30258 fi
30259  else
30260     pkg_failed=untried
30261 fi
30262
30263
30264
30265 if test $pkg_failed = yes; then
30266
30267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30268         _pkg_short_errors_supported=yes
30269 else
30270         _pkg_short_errors_supported=no
30271 fi
30272         if test $_pkg_short_errors_supported = yes; then
30273                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30274         else
30275                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30276         fi
30277         # Put the nasty error message in config.log where it belongs
30278         echo "$CAIRO_SVG_PKG_ERRORS" >&5
30279
30280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30281 $as_echo "no" >&6; }
30282                 have_cairo=no
30283 elif test $pkg_failed = untried; then
30284         have_cairo=no
30285 else
30286         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30287         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30289 $as_echo "yes" >&6; }
30290         have_cairo=yes
30291 fi
30292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30293 $as_echo "" >&6; }
30294 fi
30295
30296 if test "$have_rsvg" = 'yes'; then
30297
30298 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
30299
30300     if test "$with_modules" = 'no'; then
30301         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30302     fi
30303 fi
30304
30305 if test "$have_cairo" = 'yes'; then
30306
30307 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
30308
30309     if test "$with_modules" = 'no'; then
30310         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30311     fi
30312 fi
30313
30314  if test "$have_rsvg" = 'yes'; then
30315   RSVG_DELEGATE_TRUE=
30316   RSVG_DELEGATE_FALSE='#'
30317 else
30318   RSVG_DELEGATE_TRUE='#'
30319   RSVG_DELEGATE_FALSE=
30320 fi
30321
30322  if test "$have_cairo" = 'yes'; then
30323   CAIRO_DELEGATE_TRUE=
30324   CAIRO_DELEGATE_FALSE='#'
30325 else
30326   CAIRO_DELEGATE_TRUE='#'
30327   CAIRO_DELEGATE_FALSE=
30328 fi
30329
30330
30331
30332
30333
30334 #
30335 # Check for TIFF delegate library.
30336 #
30337
30338 # Check whether --with-tiff was given.
30339 if test "${with_tiff+set}" = set; then :
30340   withval=$with_tiff; with_tiff=$withval
30341 else
30342   with_tiff='yes'
30343 fi
30344
30345
30346 if test "$with_tiff" != 'yes'; then
30347     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30348 fi
30349
30350 have_tiff='no'
30351 TIFF_LIBS=''
30352 if test "$with_tiff" != 'no'; then
30353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30354 $as_echo "-------------------------------------------------------------" >&6; }
30355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
30356 $as_echo_n "checking for TIFF... " >&6; }
30357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30358 $as_echo "" >&6; }
30359     failed=0
30360     passed=0
30361     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
30362 if test "x$ac_cv_header_tiff_h" = xyes; then :
30363   passed=`expr $passed + 1`
30364 else
30365   failed=`expr $failed + 1`
30366 fi
30367
30368
30369     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
30370 if test "x$ac_cv_header_tiffio_h" = xyes; then :
30371   passed=`expr $passed + 1`
30372 else
30373   failed=`expr $failed + 1`
30374 fi
30375
30376
30377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
30378 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
30379 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
30380   $as_echo_n "(cached) " >&6
30381 else
30382   ac_check_lib_save_LIBS=$LIBS
30383 LIBS="-ltiff  $LIBS"
30384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30385 /* end confdefs.h.  */
30386
30387 /* Override any GCC internal prototype to avoid an error.
30388    Use char because int might match the return type of a GCC
30389    builtin and then its argument prototype would still apply.  */
30390 #ifdef __cplusplus
30391 extern "C"
30392 #endif
30393 char TIFFOpen ();
30394 int
30395 main ()
30396 {
30397 return TIFFOpen ();
30398   ;
30399   return 0;
30400 }
30401 _ACEOF
30402 if ac_fn_c_try_link "$LINENO"; then :
30403   ac_cv_lib_tiff_TIFFOpen=yes
30404 else
30405   ac_cv_lib_tiff_TIFFOpen=no
30406 fi
30407 rm -f core conftest.err conftest.$ac_objext \
30408     conftest$ac_exeext conftest.$ac_ext
30409 LIBS=$ac_check_lib_save_LIBS
30410 fi
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30412 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
30413 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
30414   passed=`expr $passed + 1`
30415 else
30416   failed=`expr $failed + 1`
30417 fi
30418
30419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
30420 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
30421 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
30422   $as_echo_n "(cached) " >&6
30423 else
30424   ac_check_lib_save_LIBS=$LIBS
30425 LIBS="-ltiff  $LIBS"
30426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30427 /* end confdefs.h.  */
30428
30429 /* Override any GCC internal prototype to avoid an error.
30430    Use char because int might match the return type of a GCC
30431    builtin and then its argument prototype would still apply.  */
30432 #ifdef __cplusplus
30433 extern "C"
30434 #endif
30435 char TIFFClientOpen ();
30436 int
30437 main ()
30438 {
30439 return TIFFClientOpen ();
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 if ac_fn_c_try_link "$LINENO"; then :
30445   ac_cv_lib_tiff_TIFFClientOpen=yes
30446 else
30447   ac_cv_lib_tiff_TIFFClientOpen=no
30448 fi
30449 rm -f core conftest.err conftest.$ac_objext \
30450     conftest$ac_exeext conftest.$ac_ext
30451 LIBS=$ac_check_lib_save_LIBS
30452 fi
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
30454 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
30455 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
30456   passed=`expr $passed + 1`
30457 else
30458   failed=`expr $failed + 1`
30459 fi
30460
30461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30462 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
30463 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
30464   $as_echo_n "(cached) " >&6
30465 else
30466   ac_check_lib_save_LIBS=$LIBS
30467 LIBS="-ltiff  $LIBS"
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h.  */
30470
30471 /* Override any GCC internal prototype to avoid an error.
30472    Use char because int might match the return type of a GCC
30473    builtin and then its argument prototype would still apply.  */
30474 #ifdef __cplusplus
30475 extern "C"
30476 #endif
30477 char TIFFIsBigEndian ();
30478 int
30479 main ()
30480 {
30481 return TIFFIsBigEndian ();
30482   ;
30483   return 0;
30484 }
30485 _ACEOF
30486 if ac_fn_c_try_link "$LINENO"; then :
30487   ac_cv_lib_tiff_TIFFIsBigEndian=yes
30488 else
30489   ac_cv_lib_tiff_TIFFIsBigEndian=no
30490 fi
30491 rm -f core conftest.err conftest.$ac_objext \
30492     conftest$ac_exeext conftest.$ac_ext
30493 LIBS=$ac_check_lib_save_LIBS
30494 fi
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30496 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
30497 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
30498   passed=`expr $passed + 1`
30499 else
30500   failed=`expr $failed + 1`
30501 fi
30502
30503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
30504 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
30505 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
30506   $as_echo_n "(cached) " >&6
30507 else
30508   ac_check_lib_save_LIBS=$LIBS
30509 LIBS="-ltiff  $LIBS"
30510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30511 /* end confdefs.h.  */
30512
30513 /* Override any GCC internal prototype to avoid an error.
30514    Use char because int might match the return type of a GCC
30515    builtin and then its argument prototype would still apply.  */
30516 #ifdef __cplusplus
30517 extern "C"
30518 #endif
30519 char TIFFIsByteSwapped ();
30520 int
30521 main ()
30522 {
30523 return TIFFIsByteSwapped ();
30524   ;
30525   return 0;
30526 }
30527 _ACEOF
30528 if ac_fn_c_try_link "$LINENO"; then :
30529   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30530 else
30531   ac_cv_lib_tiff_TIFFIsByteSwapped=no
30532 fi
30533 rm -f core conftest.err conftest.$ac_objext \
30534     conftest$ac_exeext conftest.$ac_ext
30535 LIBS=$ac_check_lib_save_LIBS
30536 fi
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
30538 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
30539 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
30540   passed=`expr $passed + 1`
30541 else
30542   failed=`expr $failed + 1`
30543 fi
30544
30545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
30546 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
30547 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
30548   $as_echo_n "(cached) " >&6
30549 else
30550   ac_check_lib_save_LIBS=$LIBS
30551 LIBS="-ltiff  $LIBS"
30552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553 /* end confdefs.h.  */
30554
30555 /* Override any GCC internal prototype to avoid an error.
30556    Use char because int might match the return type of a GCC
30557    builtin and then its argument prototype would still apply.  */
30558 #ifdef __cplusplus
30559 extern "C"
30560 #endif
30561 char TIFFReadRGBATile ();
30562 int
30563 main ()
30564 {
30565 return TIFFReadRGBATile ();
30566   ;
30567   return 0;
30568 }
30569 _ACEOF
30570 if ac_fn_c_try_link "$LINENO"; then :
30571   ac_cv_lib_tiff_TIFFReadRGBATile=yes
30572 else
30573   ac_cv_lib_tiff_TIFFReadRGBATile=no
30574 fi
30575 rm -f core conftest.err conftest.$ac_objext \
30576     conftest$ac_exeext conftest.$ac_ext
30577 LIBS=$ac_check_lib_save_LIBS
30578 fi
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
30580 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
30581 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
30582   passed=`expr $passed + 1`
30583 else
30584   failed=`expr $failed + 1`
30585 fi
30586
30587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
30588 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
30589 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
30590   $as_echo_n "(cached) " >&6
30591 else
30592   ac_check_lib_save_LIBS=$LIBS
30593 LIBS="-ltiff  $LIBS"
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h.  */
30596
30597 /* Override any GCC internal prototype to avoid an error.
30598    Use char because int might match the return type of a GCC
30599    builtin and then its argument prototype would still apply.  */
30600 #ifdef __cplusplus
30601 extern "C"
30602 #endif
30603 char TIFFReadRGBAStrip ();
30604 int
30605 main ()
30606 {
30607 return TIFFReadRGBAStrip ();
30608   ;
30609   return 0;
30610 }
30611 _ACEOF
30612 if ac_fn_c_try_link "$LINENO"; then :
30613   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30614 else
30615   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
30616 fi
30617 rm -f core conftest.err conftest.$ac_objext \
30618     conftest$ac_exeext conftest.$ac_ext
30619 LIBS=$ac_check_lib_save_LIBS
30620 fi
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
30622 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
30623 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
30624   passed=`expr $passed + 1`
30625 else
30626   failed=`expr $failed + 1`
30627 fi
30628
30629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
30630 $as_echo_n "checking if TIFF package is complete... " >&6; }
30631     if test $passed -gt 0; then
30632         if test $failed -gt 0; then
30633             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30634 $as_echo "no -- some components failed test" >&6; }
30635             have_tiff='no (failed tests)'
30636         else
30637             TIFF_LIBS='-ltiff'
30638             LIBS="$TIFF_LIBS $LIBS"
30639
30640 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
30641
30642             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30643 $as_echo "yes" >&6; }
30644             have_tiff='yes'
30645             for ac_header in tiffconf.h
30646 do :
30647   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
30648 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
30649   cat >>confdefs.h <<_ACEOF
30650 #define HAVE_TIFFCONF_H 1
30651 _ACEOF
30652
30653 fi
30654
30655 done
30656
30657             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
30658               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30659               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
30660 do :
30661   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30664   cat >>confdefs.h <<_ACEOF
30665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30666 _ACEOF
30667
30668 fi
30669 done
30670
30671         fi
30672     else
30673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30674 $as_echo "no" >&6; }
30675     fi
30676 fi
30677  if test "$have_tiff" = 'yes'; then
30678   TIFF_DELEGATE_TRUE=
30679   TIFF_DELEGATE_FALSE='#'
30680 else
30681   TIFF_DELEGATE_TRUE='#'
30682   TIFF_DELEGATE_FALSE=
30683 fi
30684
30685
30686
30687
30688 #
30689 # Check for WEBP delegate library.
30690 #
30691
30692 # Check whether --with-webp was given.
30693 if test "${with_webp+set}" = set; then :
30694   withval=$with_webp; with_webp=$withval
30695 else
30696   with_webp='yes'
30697 fi
30698
30699
30700 if test "$with_webp" != 'yes'; then
30701     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30702 fi
30703
30704 have_webp='no'
30705 WEBP_LIBS=''
30706 if test "$with_webp" != 'no'; then
30707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30708 $as_echo "-------------------------------------------------------------" >&6; }
30709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30710 $as_echo_n "checking for WEBP... " >&6; }
30711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30712 $as_echo "" >&6; }
30713     failed=0
30714     passed=0
30715     ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30716 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30717   passed=`expr $passed + 1`
30718 else
30719   failed=`expr $failed + 1`
30720 fi
30721
30722
30723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30724 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30725 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30726   $as_echo_n "(cached) " >&6
30727 else
30728   ac_check_lib_save_LIBS=$LIBS
30729 LIBS="-lwebp  $LIBS"
30730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30731 /* end confdefs.h.  */
30732
30733 /* Override any GCC internal prototype to avoid an error.
30734    Use char because int might match the return type of a GCC
30735    builtin and then its argument prototype would still apply.  */
30736 #ifdef __cplusplus
30737 extern "C"
30738 #endif
30739 char WebPDecodeRGB ();
30740 int
30741 main ()
30742 {
30743 return WebPDecodeRGB ();
30744   ;
30745   return 0;
30746 }
30747 _ACEOF
30748 if ac_fn_c_try_link "$LINENO"; then :
30749   ac_cv_lib_webp_WebPDecodeRGB=yes
30750 else
30751   ac_cv_lib_webp_WebPDecodeRGB=no
30752 fi
30753 rm -f core conftest.err conftest.$ac_objext \
30754     conftest$ac_exeext conftest.$ac_ext
30755 LIBS=$ac_check_lib_save_LIBS
30756 fi
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30758 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30759 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30760   passed=`expr $passed + 1`
30761 else
30762   failed=`expr $failed + 1`
30763 fi
30764
30765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30766 $as_echo_n "checking if WEBP package is complete... " >&6; }
30767     if test $passed -gt 0; then
30768         if test $failed -gt 0; then
30769             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30770 $as_echo "no -- some components failed test" >&6; }
30771             have_webp='no (failed tests)'
30772         else
30773             WEBP_LIBS='-lwebp'
30774             LIBS="$WEBP_LIBS $LIBS"
30775
30776 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30777
30778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30779 $as_echo "yes" >&6; }
30780             have_webp='yes'
30781         fi
30782     else
30783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30784 $as_echo "no" >&6; }
30785     fi
30786 fi
30787  if test "$have_webp" = 'yes'; then
30788   WEBP_DELEGATE_TRUE=
30789   WEBP_DELEGATE_FALSE='#'
30790 else
30791   WEBP_DELEGATE_TRUE='#'
30792   WEBP_DELEGATE_FALSE=
30793 fi
30794
30795
30796
30797
30798 #
30799 # Set Windows font directory.
30800 #
30801
30802 # Check whether --with-windows-font-dir was given.
30803 if test "${with_windows_font_dir+set}" = set; then :
30804   withval=$with_windows_font_dir; with_windows_font_dir=$withval
30805 else
30806   with_windows_font_dir=''
30807 fi
30808
30809 if test "$with_windows_font_dir" != '' ; then
30810     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30811 fi
30812
30813
30814 #
30815 # Check for WMF delegate library.
30816 #
30817
30818 # Check whether --with-wmf was given.
30819 if test "${with_wmf+set}" = set; then :
30820   withval=$with_wmf; with_wmf=$withval
30821 else
30822   with_wmf='yes'
30823 fi
30824
30825
30826 if test "$with_wmf" != 'yes'; then
30827     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30828 fi
30829
30830 have_wmf='no'
30831 WMF_LIBS=''
30832 if test "$with_wmf" != 'no'; then
30833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30834 $as_echo "-------------------------------------------------------------" >&6; }
30835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
30836 $as_echo_n "checking for WMF... " >&6; }
30837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30838 $as_echo "" >&6; }
30839     failed=0
30840     passed=0
30841     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
30842 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
30843   passed=`expr $passed + 1`
30844 else
30845   failed=`expr $failed + 1`
30846 fi
30847
30848
30849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30850 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
30851 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
30852   $as_echo_n "(cached) " >&6
30853 else
30854   ac_check_lib_save_LIBS=$LIBS
30855 LIBS="-lwmf "-lwmflite" $LIBS"
30856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30857 /* end confdefs.h.  */
30858
30859 /* Override any GCC internal prototype to avoid an error.
30860    Use char because int might match the return type of a GCC
30861    builtin and then its argument prototype would still apply.  */
30862 #ifdef __cplusplus
30863 extern "C"
30864 #endif
30865 char wmf_eps_function ();
30866 int
30867 main ()
30868 {
30869 return wmf_eps_function ();
30870   ;
30871   return 0;
30872 }
30873 _ACEOF
30874 if ac_fn_c_try_link "$LINENO"; then :
30875   ac_cv_lib_wmf_wmf_eps_function=yes
30876 else
30877   ac_cv_lib_wmf_wmf_eps_function=no
30878 fi
30879 rm -f core conftest.err conftest.$ac_objext \
30880     conftest$ac_exeext conftest.$ac_ext
30881 LIBS=$ac_check_lib_save_LIBS
30882 fi
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30884 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
30885 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
30886   passed=`expr $passed + 1`
30887 else
30888   failed=`expr $failed + 1`
30889 fi
30890
30891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30892 $as_echo_n "checking if WMF package is complete... " >&6; }
30893     if test $passed -gt 0; then
30894         if test $failed -gt 0; then
30895             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30896 $as_echo "no -- some components failed test" >&6; }
30897             have_wmf='no (failed tests)'
30898         else
30899             WMF_LIBS='-lwmf -lwmflite'
30900             LIBS="$WMF_LIBS $LIBS"
30901
30902 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
30903
30904             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30906             have_wmf='yes'
30907         fi
30908     else
30909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30910 $as_echo "no" >&6; }
30911     fi
30912 fi
30913  if test "$have_wmf" = 'yes'; then
30914   WMF_DELEGATE_TRUE=
30915   WMF_DELEGATE_FALSE='#'
30916 else
30917   WMF_DELEGATE_TRUE='#'
30918   WMF_DELEGATE_FALSE=
30919 fi
30920
30921
30922
30923
30924
30925
30926 #
30927 # Check for XML delegate library.
30928 #
30929
30930 # Check whether --with-xml was given.
30931 if test "${with_xml+set}" = set; then :
30932   withval=$with_xml; with_xml=$withval
30933 else
30934   with_xml=$have_x
30935 fi
30936
30937
30938 if test "$with_xml" != 'yes' ; then
30939     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30940 fi
30941
30942 have_xml='no'
30943 XML_LIBS=''
30944 if test "$with_xml" != 'no'; then
30945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30946 $as_echo "-------------------------------------------------------------" >&6; }
30947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
30948 $as_echo_n "checking for XML... " >&6; }
30949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30950 $as_echo "" >&6; }
30951     PERSIST_LDFLAGS=$LDFLAGS
30952     PERSIST_CPPFLAGS=$CPPFLAGS
30953     xml2_config=''
30954     for ac_prog in xml2-config
30955 do
30956   # Extract the first word of "$ac_prog", so it can be a program name with args.
30957 set dummy $ac_prog; ac_word=$2
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30959 $as_echo_n "checking for $ac_word... " >&6; }
30960 if ${ac_cv_prog_xml2_config+:} false; then :
30961   $as_echo_n "(cached) " >&6
30962 else
30963   if test -n "$xml2_config"; then
30964   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30965 else
30966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967 for as_dir in $PATH
30968 do
30969   IFS=$as_save_IFS
30970   test -z "$as_dir" && as_dir=.
30971     for ac_exec_ext in '' $ac_executable_extensions; do
30972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30973     ac_cv_prog_xml2_config="$ac_prog"
30974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30975     break 2
30976   fi
30977 done
30978   done
30979 IFS=$as_save_IFS
30980
30981 fi
30982 fi
30983 xml2_config=$ac_cv_prog_xml2_config
30984 if test -n "$xml2_config"; then
30985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
30986 $as_echo "$xml2_config" >&6; }
30987 else
30988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30990 fi
30991
30992
30993   test -n "$xml2_config" && break
30994 done
30995     if test -n "$xml2_config"; then
30996         # Debian installs libxml headers under /usr/include/libxml2/libxml with
30997         # the shared library installed under /usr/lib, whereas the package
30998         # installs itself under $prefix/libxml and $prefix/lib.
30999         xml2_prefix=`xml2-config --prefix`
31000         if test -d "${xml2_prefix}/include/libxml2"; then
31001             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31002         fi
31003         if test "${xml2_prefix}" != '/usr'; then
31004             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31005         fi
31006     fi
31007     failed=0
31008     passed=0
31009     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31010 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31011   passed=`expr $passed + 1`
31012 else
31013   failed=`expr $failed + 1`
31014 fi
31015
31016
31017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
31018 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
31019 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
31020   $as_echo_n "(cached) " >&6
31021 else
31022   ac_check_lib_save_LIBS=$LIBS
31023 LIBS="-lxml2  $LIBS"
31024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31025 /* end confdefs.h.  */
31026
31027 /* Override any GCC internal prototype to avoid an error.
31028    Use char because int might match the return type of a GCC
31029    builtin and then its argument prototype would still apply.  */
31030 #ifdef __cplusplus
31031 extern "C"
31032 #endif
31033 char xmlParseExternalEntity ();
31034 int
31035 main ()
31036 {
31037 return xmlParseExternalEntity ();
31038   ;
31039   return 0;
31040 }
31041 _ACEOF
31042 if ac_fn_c_try_link "$LINENO"; then :
31043   ac_cv_lib_xml2_xmlParseExternalEntity=yes
31044 else
31045   ac_cv_lib_xml2_xmlParseExternalEntity=no
31046 fi
31047 rm -f core conftest.err conftest.$ac_objext \
31048     conftest$ac_exeext conftest.$ac_ext
31049 LIBS=$ac_check_lib_save_LIBS
31050 fi
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
31052 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
31053 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
31054   passed=`expr $passed + 1`
31055 else
31056   failed=`expr $failed + 1`
31057 fi
31058
31059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31060 $as_echo_n "checking if XML package is complete... " >&6; }
31061     if test $passed -gt 0; then
31062         if test $failed -gt 0; then
31063             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31064 $as_echo "no -- some components failed test" >&6; }
31065             have_xml='no (failed tests)'
31066             LDFLAGS="$PERSIST_LDFLAGS"
31067             CPPFLAGS="$PERSIST_CPPFLAGS"
31068         else
31069             XML_LIBS='-lxml2'
31070             LIBS="$XML_LIBS $LIBS"
31071
31072 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31073
31074             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31075 $as_echo "yes" >&6; }
31076             have_xml='yes'
31077         fi
31078     else
31079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31080 $as_echo "no" >&6; }
31081     fi
31082 fi
31083  if test "$have_xml" = 'yes'; then
31084   XML_DELEGATE_TRUE=
31085   XML_DELEGATE_FALSE='#'
31086 else
31087   XML_DELEGATE_TRUE='#'
31088   XML_DELEGATE_FALSE=
31089 fi
31090
31091
31092
31093
31094 # Substitute compiler name to build/link PerlMagick
31095 #
31096
31097
31098 #
31099 # Configure install Paths
31100 #
31101
31102 # Subdirectory under lib to place ImageMagick lib files
31103 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31104
31105 cat >>confdefs.h <<_ACEOF
31106 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31107 _ACEOF
31108
31109
31110 # Path to ImageMagick bin directory
31111 EXECUTABLE_PATH="${BIN_DIR}"
31112 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31113 case "${build_os}" in
31114   mingw* )
31115     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31116     ;;
31117 esac
31118
31119 cat >>confdefs.h <<_ACEOF
31120 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31121 _ACEOF
31122
31123
31124
31125 # Path to ImageMagick lib
31126 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31127 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31128 case "${build_os}" in
31129   mingw* )
31130     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31131     ;;
31132 esac
31133
31134 cat >>confdefs.h <<_ACEOF
31135 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31136 _ACEOF
31137
31138
31139
31140 #
31141 # Subdirectory under lib to place ImageMagick coder module files
31142 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31143
31144 cat >>confdefs.h <<_ACEOF
31145 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31146 _ACEOF
31147
31148 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31149 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31150 case "${build_os}" in
31151   mingw* )
31152     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31153     ;;
31154 esac
31155
31156 cat >>confdefs.h <<_ACEOF
31157 #define CODER_PATH "$DEFINE_CODER_PATH"
31158 _ACEOF
31159
31160
31161
31162 #
31163 # Subdirectory under lib to place ImageMagick filter module files
31164 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31165
31166 cat >>confdefs.h <<_ACEOF
31167 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31168 _ACEOF
31169
31170 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31171 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31172 case "${build_os}" in
31173   mingw* )
31174     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31175     ;;
31176 esac
31177
31178 cat >>confdefs.h <<_ACEOF
31179 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31180 _ACEOF
31181
31182
31183
31184 #
31185 # Path to ImageMagick documentation files
31186 DOCUMENTATION_RELATIVE_PATH=""
31187 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31188 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31189 case "${build_os}" in
31190   mingw* )
31191     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31192     ;;
31193 esac
31194
31195 cat >>confdefs.h <<_ACEOF
31196 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31197 _ACEOF
31198
31199
31200
31201 # Subdirectory to place ImageMagick configuration files
31202 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
31203
31204 cat >>confdefs.h <<_ACEOF
31205 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31206 _ACEOF
31207
31208 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31209 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31210 case "${build_os}" in
31211   mingw* )
31212     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31213     ;;
31214 esac
31215
31216 cat >>confdefs.h <<_ACEOF
31217 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31218 _ACEOF
31219
31220
31221
31222 # Subdirectory to place ImageMagick configuration files
31223 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
31224
31225 cat >>confdefs.h <<_ACEOF
31226 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
31227 _ACEOF
31228
31229 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31230 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
31231 case "${build_os}" in
31232   mingw* )
31233     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
31234     ;;
31235 esac
31236
31237 cat >>confdefs.h <<_ACEOF
31238 #define SHARE_PATH "$DEFINE_SHARE_PATH"
31239 _ACEOF
31240
31241
31242
31243 #
31244 # program_transform_name is formed for use in a Makefile, so create a
31245 # modified version for use in a shell script.
31246 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31247
31248 # Default delegate definitions
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31250 $as_echo "-------------------------------------------------------------" >&6; }
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
31252 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31254 $as_echo "" >&6; }
31255 AutotraceDecodeDelegateDefault='autotrace'
31256 BlenderDecodeDelegateDefault='blender'
31257 BZIPDelegateDefault='bzip2'
31258 BrowseDelegateDefault='xdg-open'
31259 CGMDecodeDelegateDefault='ralcgm'
31260 CatDelegateDefault='cat'
31261 DNGDecodeDelegateDefault='ufraw-batch'
31262 GVCDecodeDelegateDefault='dot'
31263 DVIDecodeDelegateDefault='dvips'
31264 EchoDelegateDefault='echo'
31265 EditorDelegateDefault='xterm'
31266 FIGDecodeDelegateDefault='fig2dev'
31267 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31268 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31269 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31270 GnuplotDecodeDelegateDefault='gnuplot'
31271 HPGLDecodeDelegateDefault='hp2xx'
31272 HTMLDecodeDelegateDefault='html2ps'
31273 ILBMDecodeDelegateDefault='ilbmtoppm'
31274 ILBMEncodeDelegateDefault='ppmtoilbm'
31275 LPDelegateDefault='lp'
31276 LPRDelegateDefault='lpr'
31277 LZWDecodeDelegateDefault='uncompress'
31278 LZWEncodeDelegateDefault='compress'
31279 LaunchDelegateDefault='gimp'
31280 MANDelegateDefault='groff'
31281 MPEGDecodeDelegateDefault='ffmpeg'
31282 MPEGEncodeDelegateDefault='ffmpeg'
31283 MrSIDDecodeDelegateDefault='mrsidgeodecode'
31284 MVDelegateDefault='mv'
31285 PCLDelegateDefault='pcl6'
31286 PGPDecodeDelegateDefault='pgpv'
31287 POVDelegateDefault='povray'
31288 if test "$native_win32_build" = 'yes'; then
31289     PSDelegateDefault='gswin32c'
31290 elif test "$gslib_framework" = 'yes'; then
31291     PSDelegateDefault='gsc'
31292 else
31293     PSDelegateDefault='gs'
31294 fi
31295 RLEEncodeDelegateDefault='rawtorle'
31296 RMDelegateDefault='rm'
31297 RSVGDecodeDelegateDefault='rsvg'
31298 SCANDecodeDelegateDefault='scanimage'
31299 TXTDelegateDefault='enscript'
31300 UniconvertorDelegateDefault='uniconvertor'
31301 WMFDecodeDelegateDefault='wmf2eps'
31302 WWWDecodeDelegateDefault='curl'
31303 XPSDelegateDefault='gxps'
31304 ZipDelegateDefault='gzip'
31305
31306 # Search for delegates
31307 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31308 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31310 $as_echo_n "checking for $ac_word... " >&6; }
31311 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
31312   $as_echo_n "(cached) " >&6
31313 else
31314   case $AutotraceDecodeDelegate in
31315   [\\/]* | ?:[\\/]*)
31316   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31317   ;;
31318   *)
31319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320 for as_dir in $PATH
31321 do
31322   IFS=$as_save_IFS
31323   test -z "$as_dir" && as_dir=.
31324     for ac_exec_ext in '' $ac_executable_extensions; do
31325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31326     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31328     break 2
31329   fi
31330 done
31331   done
31332 IFS=$as_save_IFS
31333
31334   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31335   ;;
31336 esac
31337 fi
31338 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31339 if test -n "$AutotraceDecodeDelegate"; then
31340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
31341 $as_echo "$AutotraceDecodeDelegate" >&6; }
31342 else
31343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31344 $as_echo "no" >&6; }
31345 fi
31346
31347
31348 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31349 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31351 $as_echo_n "checking for $ac_word... " >&6; }
31352 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
31353   $as_echo_n "(cached) " >&6
31354 else
31355   case $BlenderDecodeDelegate in
31356   [\\/]* | ?:[\\/]*)
31357   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31358   ;;
31359   *)
31360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31361 for as_dir in $PATH
31362 do
31363   IFS=$as_save_IFS
31364   test -z "$as_dir" && as_dir=.
31365     for ac_exec_ext in '' $ac_executable_extensions; do
31366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31367     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31369     break 2
31370   fi
31371 done
31372   done
31373 IFS=$as_save_IFS
31374
31375   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31376   ;;
31377 esac
31378 fi
31379 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31380 if test -n "$BlenderDecodeDelegate"; then
31381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
31382 $as_echo "$BlenderDecodeDelegate" >&6; }
31383 else
31384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31385 $as_echo "no" >&6; }
31386 fi
31387
31388
31389 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31390 set dummy "$BZIPDelegateDefault"; ac_word=$2
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31392 $as_echo_n "checking for $ac_word... " >&6; }
31393 if ${ac_cv_path_BZIPDelegate+:} false; then :
31394   $as_echo_n "(cached) " >&6
31395 else
31396   case $BZIPDelegate in
31397   [\\/]* | ?:[\\/]*)
31398   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31399   ;;
31400   *)
31401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31402 for as_dir in $PATH
31403 do
31404   IFS=$as_save_IFS
31405   test -z "$as_dir" && as_dir=.
31406     for ac_exec_ext in '' $ac_executable_extensions; do
31407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31408     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
31409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31410     break 2
31411   fi
31412 done
31413   done
31414 IFS=$as_save_IFS
31415
31416   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31417   ;;
31418 esac
31419 fi
31420 BZIPDelegate=$ac_cv_path_BZIPDelegate
31421 if test -n "$BZIPDelegate"; then
31422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
31423 $as_echo "$BZIPDelegate" >&6; }
31424 else
31425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31426 $as_echo "no" >&6; }
31427 fi
31428
31429
31430 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31431 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31433 $as_echo_n "checking for $ac_word... " >&6; }
31434 if ${ac_cv_path_BrowseDelegate+:} false; then :
31435   $as_echo_n "(cached) " >&6
31436 else
31437   case $BrowseDelegate in
31438   [\\/]* | ?:[\\/]*)
31439   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31440   ;;
31441   *)
31442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31443 for as_dir in $PATH
31444 do
31445   IFS=$as_save_IFS
31446   test -z "$as_dir" && as_dir=.
31447     for ac_exec_ext in '' $ac_executable_extensions; do
31448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31449     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
31450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31451     break 2
31452   fi
31453 done
31454   done
31455 IFS=$as_save_IFS
31456
31457   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31458   ;;
31459 esac
31460 fi
31461 BrowseDelegate=$ac_cv_path_BrowseDelegate
31462 if test -n "$BrowseDelegate"; then
31463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
31464 $as_echo "$BrowseDelegate" >&6; }
31465 else
31466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31467 $as_echo "no" >&6; }
31468 fi
31469
31470
31471 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31472 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31474 $as_echo_n "checking for $ac_word... " >&6; }
31475 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
31476   $as_echo_n "(cached) " >&6
31477 else
31478   case $CGMDecodeDelegate in
31479   [\\/]* | ?:[\\/]*)
31480   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31481   ;;
31482   *)
31483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31484 for as_dir in $PATH
31485 do
31486   IFS=$as_save_IFS
31487   test -z "$as_dir" && as_dir=.
31488     for ac_exec_ext in '' $ac_executable_extensions; do
31489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31490     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31492     break 2
31493   fi
31494 done
31495   done
31496 IFS=$as_save_IFS
31497
31498   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31499   ;;
31500 esac
31501 fi
31502 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31503 if test -n "$CGMDecodeDelegate"; then
31504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
31505 $as_echo "$CGMDecodeDelegate" >&6; }
31506 else
31507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31508 $as_echo "no" >&6; }
31509 fi
31510
31511
31512 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31513 set dummy "$CatDelegateDefault"; ac_word=$2
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31515 $as_echo_n "checking for $ac_word... " >&6; }
31516 if ${ac_cv_path_CatDelegate+:} false; then :
31517   $as_echo_n "(cached) " >&6
31518 else
31519   case $CatDelegate in
31520   [\\/]* | ?:[\\/]*)
31521   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31522   ;;
31523   *)
31524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31525 for as_dir in $PATH
31526 do
31527   IFS=$as_save_IFS
31528   test -z "$as_dir" && as_dir=.
31529     for ac_exec_ext in '' $ac_executable_extensions; do
31530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31531     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
31532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31533     break 2
31534   fi
31535 done
31536   done
31537 IFS=$as_save_IFS
31538
31539   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31540   ;;
31541 esac
31542 fi
31543 CatDelegate=$ac_cv_path_CatDelegate
31544 if test -n "$CatDelegate"; then
31545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
31546 $as_echo "$CatDelegate" >&6; }
31547 else
31548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31549 $as_echo "no" >&6; }
31550 fi
31551
31552
31553 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31554 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31556 $as_echo_n "checking for $ac_word... " >&6; }
31557 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
31558   $as_echo_n "(cached) " >&6
31559 else
31560   case $DNGDecodeDelegate in
31561   [\\/]* | ?:[\\/]*)
31562   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31563   ;;
31564   *)
31565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31566 for as_dir in $PATH
31567 do
31568   IFS=$as_save_IFS
31569   test -z "$as_dir" && as_dir=.
31570     for ac_exec_ext in '' $ac_executable_extensions; do
31571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31572     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31574     break 2
31575   fi
31576 done
31577   done
31578 IFS=$as_save_IFS
31579
31580   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31581   ;;
31582 esac
31583 fi
31584 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31585 if test -n "$DNGDecodeDelegate"; then
31586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
31587 $as_echo "$DNGDecodeDelegate" >&6; }
31588 else
31589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31590 $as_echo "no" >&6; }
31591 fi
31592
31593
31594 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31595 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31597 $as_echo_n "checking for $ac_word... " >&6; }
31598 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
31599   $as_echo_n "(cached) " >&6
31600 else
31601   case $GVCDecodeDelegate in
31602   [\\/]* | ?:[\\/]*)
31603   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31604   ;;
31605   *)
31606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607 for as_dir in $PATH
31608 do
31609   IFS=$as_save_IFS
31610   test -z "$as_dir" && as_dir=.
31611     for ac_exec_ext in '' $ac_executable_extensions; do
31612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31615     break 2
31616   fi
31617 done
31618   done
31619 IFS=$as_save_IFS
31620
31621   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31622   ;;
31623 esac
31624 fi
31625 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31626 if test -n "$GVCDecodeDelegate"; then
31627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
31628 $as_echo "$GVCDecodeDelegate" >&6; }
31629 else
31630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31631 $as_echo "no" >&6; }
31632 fi
31633
31634
31635 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31636 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31638 $as_echo_n "checking for $ac_word... " >&6; }
31639 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
31640   $as_echo_n "(cached) " >&6
31641 else
31642   case $DVIDecodeDelegate in
31643   [\\/]* | ?:[\\/]*)
31644   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31645   ;;
31646   *)
31647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648 for as_dir in $PATH
31649 do
31650   IFS=$as_save_IFS
31651   test -z "$as_dir" && as_dir=.
31652     for ac_exec_ext in '' $ac_executable_extensions; do
31653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31656     break 2
31657   fi
31658 done
31659   done
31660 IFS=$as_save_IFS
31661
31662   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31663   ;;
31664 esac
31665 fi
31666 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31667 if test -n "$DVIDecodeDelegate"; then
31668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
31669 $as_echo "$DVIDecodeDelegate" >&6; }
31670 else
31671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31672 $as_echo "no" >&6; }
31673 fi
31674
31675
31676 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31677 set dummy "$EchoDelegateDefault"; ac_word=$2
31678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31679 $as_echo_n "checking for $ac_word... " >&6; }
31680 if ${ac_cv_path_EchoDelegate+:} false; then :
31681   $as_echo_n "(cached) " >&6
31682 else
31683   case $EchoDelegate in
31684   [\\/]* | ?:[\\/]*)
31685   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31686   ;;
31687   *)
31688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31689 for as_dir in $PATH
31690 do
31691   IFS=$as_save_IFS
31692   test -z "$as_dir" && as_dir=.
31693     for ac_exec_ext in '' $ac_executable_extensions; do
31694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31695     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
31696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31697     break 2
31698   fi
31699 done
31700   done
31701 IFS=$as_save_IFS
31702
31703   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31704   ;;
31705 esac
31706 fi
31707 EchoDelegate=$ac_cv_path_EchoDelegate
31708 if test -n "$EchoDelegate"; then
31709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
31710 $as_echo "$EchoDelegate" >&6; }
31711 else
31712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713 $as_echo "no" >&6; }
31714 fi
31715
31716
31717 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31718 set dummy "$EditorDelegateDefault"; ac_word=$2
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31720 $as_echo_n "checking for $ac_word... " >&6; }
31721 if ${ac_cv_path_EditorDelegate+:} false; then :
31722   $as_echo_n "(cached) " >&6
31723 else
31724   case $EditorDelegate in
31725   [\\/]* | ?:[\\/]*)
31726   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31727   ;;
31728   *)
31729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31730 for as_dir in $PATH
31731 do
31732   IFS=$as_save_IFS
31733   test -z "$as_dir" && as_dir=.
31734     for ac_exec_ext in '' $ac_executable_extensions; do
31735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31736     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
31737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31738     break 2
31739   fi
31740 done
31741   done
31742 IFS=$as_save_IFS
31743
31744   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31745   ;;
31746 esac
31747 fi
31748 EditorDelegate=$ac_cv_path_EditorDelegate
31749 if test -n "$EditorDelegate"; then
31750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
31751 $as_echo "$EditorDelegate" >&6; }
31752 else
31753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31754 $as_echo "no" >&6; }
31755 fi
31756
31757
31758 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31759 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31761 $as_echo_n "checking for $ac_word... " >&6; }
31762 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
31763   $as_echo_n "(cached) " >&6
31764 else
31765   case $FIGDecodeDelegate in
31766   [\\/]* | ?:[\\/]*)
31767   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31768   ;;
31769   *)
31770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771 for as_dir in $PATH
31772 do
31773   IFS=$as_save_IFS
31774   test -z "$as_dir" && as_dir=.
31775     for ac_exec_ext in '' $ac_executable_extensions; do
31776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31779     break 2
31780   fi
31781 done
31782   done
31783 IFS=$as_save_IFS
31784
31785   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31786   ;;
31787 esac
31788 fi
31789 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31790 if test -n "$FIGDecodeDelegate"; then
31791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
31792 $as_echo "$FIGDecodeDelegate" >&6; }
31793 else
31794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31795 $as_echo "no" >&6; }
31796 fi
31797
31798
31799 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31800 set dummy "$ConvertDelegateDefault"; ac_word=$2
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31802 $as_echo_n "checking for $ac_word... " >&6; }
31803 if ${ac_cv_path_ConvertDelegate+:} false; then :
31804   $as_echo_n "(cached) " >&6
31805 else
31806   case $ConvertDelegate in
31807   [\\/]* | ?:[\\/]*)
31808   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31809   ;;
31810   *)
31811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31812 for as_dir in $PATH
31813 do
31814   IFS=$as_save_IFS
31815   test -z "$as_dir" && as_dir=.
31816     for ac_exec_ext in '' $ac_executable_extensions; do
31817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31818     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
31819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31820     break 2
31821   fi
31822 done
31823   done
31824 IFS=$as_save_IFS
31825
31826   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31827   ;;
31828 esac
31829 fi
31830 ConvertDelegate=$ac_cv_path_ConvertDelegate
31831 if test -n "$ConvertDelegate"; then
31832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
31833 $as_echo "$ConvertDelegate" >&6; }
31834 else
31835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836 $as_echo "no" >&6; }
31837 fi
31838
31839
31840 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31841 set dummy "$DisplayDelegateDefault"; ac_word=$2
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31843 $as_echo_n "checking for $ac_word... " >&6; }
31844 if ${ac_cv_path_DisplayDelegate+:} false; then :
31845   $as_echo_n "(cached) " >&6
31846 else
31847   case $DisplayDelegate in
31848   [\\/]* | ?:[\\/]*)
31849   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31850   ;;
31851   *)
31852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853 for as_dir in $PATH
31854 do
31855   IFS=$as_save_IFS
31856   test -z "$as_dir" && as_dir=.
31857     for ac_exec_ext in '' $ac_executable_extensions; do
31858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31859     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
31860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31861     break 2
31862   fi
31863 done
31864   done
31865 IFS=$as_save_IFS
31866
31867   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31868   ;;
31869 esac
31870 fi
31871 DisplayDelegate=$ac_cv_path_DisplayDelegate
31872 if test -n "$DisplayDelegate"; then
31873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
31874 $as_echo "$DisplayDelegate" >&6; }
31875 else
31876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31877 $as_echo "no" >&6; }
31878 fi
31879
31880
31881 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31882 set dummy "$MogrifyDelegateDefault"; ac_word=$2
31883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31884 $as_echo_n "checking for $ac_word... " >&6; }
31885 if ${ac_cv_path_MogrifyDelegate+:} false; then :
31886   $as_echo_n "(cached) " >&6
31887 else
31888   case $MogrifyDelegate in
31889   [\\/]* | ?:[\\/]*)
31890   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31891   ;;
31892   *)
31893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31894 for as_dir in $PATH
31895 do
31896   IFS=$as_save_IFS
31897   test -z "$as_dir" && as_dir=.
31898     for ac_exec_ext in '' $ac_executable_extensions; do
31899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31900     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
31901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31902     break 2
31903   fi
31904 done
31905   done
31906 IFS=$as_save_IFS
31907
31908   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31909   ;;
31910 esac
31911 fi
31912 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31913 if test -n "$MogrifyDelegate"; then
31914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
31915 $as_echo "$MogrifyDelegate" >&6; }
31916 else
31917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918 $as_echo "no" >&6; }
31919 fi
31920
31921
31922 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31923 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31925 $as_echo_n "checking for $ac_word... " >&6; }
31926 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
31927   $as_echo_n "(cached) " >&6
31928 else
31929   case $GnuplotDecodeDelegate in
31930   [\\/]* | ?:[\\/]*)
31931   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31932   ;;
31933   *)
31934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935 for as_dir in $PATH
31936 do
31937   IFS=$as_save_IFS
31938   test -z "$as_dir" && as_dir=.
31939     for ac_exec_ext in '' $ac_executable_extensions; do
31940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31941     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31943     break 2
31944   fi
31945 done
31946   done
31947 IFS=$as_save_IFS
31948
31949   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31950   ;;
31951 esac
31952 fi
31953 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31954 if test -n "$GnuplotDecodeDelegate"; then
31955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
31956 $as_echo "$GnuplotDecodeDelegate" >&6; }
31957 else
31958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31959 $as_echo "no" >&6; }
31960 fi
31961
31962
31963 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31964 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31966 $as_echo_n "checking for $ac_word... " >&6; }
31967 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
31968   $as_echo_n "(cached) " >&6
31969 else
31970   case $HPGLDecodeDelegate in
31971   [\\/]* | ?:[\\/]*)
31972   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31973   ;;
31974   *)
31975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976 for as_dir in $PATH
31977 do
31978   IFS=$as_save_IFS
31979   test -z "$as_dir" && as_dir=.
31980     for ac_exec_ext in '' $ac_executable_extensions; do
31981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31982     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31984     break 2
31985   fi
31986 done
31987   done
31988 IFS=$as_save_IFS
31989
31990   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31991   ;;
31992 esac
31993 fi
31994 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31995 if test -n "$HPGLDecodeDelegate"; then
31996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
31997 $as_echo "$HPGLDecodeDelegate" >&6; }
31998 else
31999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32000 $as_echo "no" >&6; }
32001 fi
32002
32003
32004 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32005 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32007 $as_echo_n "checking for $ac_word... " >&6; }
32008 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32009   $as_echo_n "(cached) " >&6
32010 else
32011   case $HTMLDecodeDelegate in
32012   [\\/]* | ?:[\\/]*)
32013   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32014   ;;
32015   *)
32016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32017 for as_dir in $PATH
32018 do
32019   IFS=$as_save_IFS
32020   test -z "$as_dir" && as_dir=.
32021     for ac_exec_ext in '' $ac_executable_extensions; do
32022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32023     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32025     break 2
32026   fi
32027 done
32028   done
32029 IFS=$as_save_IFS
32030
32031   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32032   ;;
32033 esac
32034 fi
32035 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32036 if test -n "$HTMLDecodeDelegate"; then
32037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32038 $as_echo "$HTMLDecodeDelegate" >&6; }
32039 else
32040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32042 fi
32043
32044
32045 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32046 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32048 $as_echo_n "checking for $ac_word... " >&6; }
32049 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32050   $as_echo_n "(cached) " >&6
32051 else
32052   case $ILBMDecodeDelegate in
32053   [\\/]* | ?:[\\/]*)
32054   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32055   ;;
32056   *)
32057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32058 for as_dir in $PATH
32059 do
32060   IFS=$as_save_IFS
32061   test -z "$as_dir" && as_dir=.
32062     for ac_exec_ext in '' $ac_executable_extensions; do
32063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32064     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32066     break 2
32067   fi
32068 done
32069   done
32070 IFS=$as_save_IFS
32071
32072   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32073   ;;
32074 esac
32075 fi
32076 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32077 if test -n "$ILBMDecodeDelegate"; then
32078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32079 $as_echo "$ILBMDecodeDelegate" >&6; }
32080 else
32081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32082 $as_echo "no" >&6; }
32083 fi
32084
32085
32086 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32087 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32089 $as_echo_n "checking for $ac_word... " >&6; }
32090 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32091   $as_echo_n "(cached) " >&6
32092 else
32093   case $ILBMEncodeDelegate in
32094   [\\/]* | ?:[\\/]*)
32095   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32096   ;;
32097   *)
32098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099 for as_dir in $PATH
32100 do
32101   IFS=$as_save_IFS
32102   test -z "$as_dir" && as_dir=.
32103     for ac_exec_ext in '' $ac_executable_extensions; do
32104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32105     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32107     break 2
32108   fi
32109 done
32110   done
32111 IFS=$as_save_IFS
32112
32113   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32114   ;;
32115 esac
32116 fi
32117 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32118 if test -n "$ILBMEncodeDelegate"; then
32119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32120 $as_echo "$ILBMEncodeDelegate" >&6; }
32121 else
32122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32123 $as_echo "no" >&6; }
32124 fi
32125
32126
32127 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32128 set dummy "$LPDelegateDefault"; ac_word=$2
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32130 $as_echo_n "checking for $ac_word... " >&6; }
32131 if ${ac_cv_path_LPDelegate+:} false; then :
32132   $as_echo_n "(cached) " >&6
32133 else
32134   case $LPDelegate in
32135   [\\/]* | ?:[\\/]*)
32136   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32137   ;;
32138   *)
32139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140 for as_dir in $PATH
32141 do
32142   IFS=$as_save_IFS
32143   test -z "$as_dir" && as_dir=.
32144     for ac_exec_ext in '' $ac_executable_extensions; do
32145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32148     break 2
32149   fi
32150 done
32151   done
32152 IFS=$as_save_IFS
32153
32154   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32155   ;;
32156 esac
32157 fi
32158 LPDelegate=$ac_cv_path_LPDelegate
32159 if test -n "$LPDelegate"; then
32160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32161 $as_echo "$LPDelegate" >&6; }
32162 else
32163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32164 $as_echo "no" >&6; }
32165 fi
32166
32167
32168 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32169 set dummy "$LPRDelegateDefault"; ac_word=$2
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32171 $as_echo_n "checking for $ac_word... " >&6; }
32172 if ${ac_cv_path_LPRDelegate+:} false; then :
32173   $as_echo_n "(cached) " >&6
32174 else
32175   case $LPRDelegate in
32176   [\\/]* | ?:[\\/]*)
32177   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32178   ;;
32179   *)
32180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181 for as_dir in $PATH
32182 do
32183   IFS=$as_save_IFS
32184   test -z "$as_dir" && as_dir=.
32185     for ac_exec_ext in '' $ac_executable_extensions; do
32186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32187     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32189     break 2
32190   fi
32191 done
32192   done
32193 IFS=$as_save_IFS
32194
32195   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32196   ;;
32197 esac
32198 fi
32199 LPRDelegate=$ac_cv_path_LPRDelegate
32200 if test -n "$LPRDelegate"; then
32201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
32202 $as_echo "$LPRDelegate" >&6; }
32203 else
32204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32205 $as_echo "no" >&6; }
32206 fi
32207
32208
32209 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32210 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32212 $as_echo_n "checking for $ac_word... " >&6; }
32213 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
32214   $as_echo_n "(cached) " >&6
32215 else
32216   case $LZWDecodeDelegate in
32217   [\\/]* | ?:[\\/]*)
32218   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32219   ;;
32220   *)
32221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32222 for as_dir in $PATH
32223 do
32224   IFS=$as_save_IFS
32225   test -z "$as_dir" && as_dir=.
32226     for ac_exec_ext in '' $ac_executable_extensions; do
32227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32228     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32230     break 2
32231   fi
32232 done
32233   done
32234 IFS=$as_save_IFS
32235
32236   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32237   ;;
32238 esac
32239 fi
32240 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32241 if test -n "$LZWDecodeDelegate"; then
32242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
32243 $as_echo "$LZWDecodeDelegate" >&6; }
32244 else
32245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32246 $as_echo "no" >&6; }
32247 fi
32248
32249
32250 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32251 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32253 $as_echo_n "checking for $ac_word... " >&6; }
32254 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
32255   $as_echo_n "(cached) " >&6
32256 else
32257   case $LZWEncodeDelegate in
32258   [\\/]* | ?:[\\/]*)
32259   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32260   ;;
32261   *)
32262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32263 for as_dir in $PATH
32264 do
32265   IFS=$as_save_IFS
32266   test -z "$as_dir" && as_dir=.
32267     for ac_exec_ext in '' $ac_executable_extensions; do
32268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32269     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32271     break 2
32272   fi
32273 done
32274   done
32275 IFS=$as_save_IFS
32276
32277   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32278   ;;
32279 esac
32280 fi
32281 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32282 if test -n "$LZWEncodeDelegate"; then
32283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
32284 $as_echo "$LZWEncodeDelegate" >&6; }
32285 else
32286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32287 $as_echo "no" >&6; }
32288 fi
32289
32290
32291 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32292 set dummy "$LaunchDelegateDefault"; 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 ${ac_cv_path_LaunchDelegate+:} false; then :
32296   $as_echo_n "(cached) " >&6
32297 else
32298   case $LaunchDelegate in
32299   [\\/]* | ?:[\\/]*)
32300   ac_cv_path_LaunchDelegate="$LaunchDelegate" # 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_LaunchDelegate="$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   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32319   ;;
32320 esac
32321 fi
32322 LaunchDelegate=$ac_cv_path_LaunchDelegate
32323 if test -n "$LaunchDelegate"; then
32324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
32325 $as_echo "$LaunchDelegate" >&6; }
32326 else
32327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32328 $as_echo "no" >&6; }
32329 fi
32330
32331
32332 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32333 set dummy "$MANDelegateDefault"; ac_word=$2
32334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32335 $as_echo_n "checking for $ac_word... " >&6; }
32336 if ${ac_cv_path_MANDelegate+:} false; then :
32337   $as_echo_n "(cached) " >&6
32338 else
32339   case $MANDelegate in
32340   [\\/]* | ?:[\\/]*)
32341   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32342   ;;
32343   *)
32344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345 for as_dir in $PATH
32346 do
32347   IFS=$as_save_IFS
32348   test -z "$as_dir" && as_dir=.
32349     for ac_exec_ext in '' $ac_executable_extensions; do
32350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32351     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
32352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32353     break 2
32354   fi
32355 done
32356   done
32357 IFS=$as_save_IFS
32358
32359   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32360   ;;
32361 esac
32362 fi
32363 MANDelegate=$ac_cv_path_MANDelegate
32364 if test -n "$MANDelegate"; then
32365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
32366 $as_echo "$MANDelegate" >&6; }
32367 else
32368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32369 $as_echo "no" >&6; }
32370 fi
32371
32372
32373 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32374 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32376 $as_echo_n "checking for $ac_word... " >&6; }
32377 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
32378   $as_echo_n "(cached) " >&6
32379 else
32380   case $MPEGDecodeDelegate in
32381   [\\/]* | ?:[\\/]*)
32382   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32383   ;;
32384   *)
32385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386 for as_dir in $PATH
32387 do
32388   IFS=$as_save_IFS
32389   test -z "$as_dir" && as_dir=.
32390     for ac_exec_ext in '' $ac_executable_extensions; do
32391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32392     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32394     break 2
32395   fi
32396 done
32397   done
32398 IFS=$as_save_IFS
32399
32400   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32401   ;;
32402 esac
32403 fi
32404 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32405 if test -n "$MPEGDecodeDelegate"; then
32406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
32407 $as_echo "$MPEGDecodeDelegate" >&6; }
32408 else
32409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32410 $as_echo "no" >&6; }
32411 fi
32412
32413
32414 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32415 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32417 $as_echo_n "checking for $ac_word... " >&6; }
32418 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
32419   $as_echo_n "(cached) " >&6
32420 else
32421   case $MPEGEncodeDelegate in
32422   [\\/]* | ?:[\\/]*)
32423   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32424   ;;
32425   *)
32426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32427 for as_dir in $PATH
32428 do
32429   IFS=$as_save_IFS
32430   test -z "$as_dir" && as_dir=.
32431     for ac_exec_ext in '' $ac_executable_extensions; do
32432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32433     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32435     break 2
32436   fi
32437 done
32438   done
32439 IFS=$as_save_IFS
32440
32441   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32442   ;;
32443 esac
32444 fi
32445 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32446 if test -n "$MPEGEncodeDelegate"; then
32447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
32448 $as_echo "$MPEGEncodeDelegate" >&6; }
32449 else
32450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451 $as_echo "no" >&6; }
32452 fi
32453
32454
32455 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32456 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32458 $as_echo_n "checking for $ac_word... " >&6; }
32459 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
32460   $as_echo_n "(cached) " >&6
32461 else
32462   case $MrSIDDecodeDelegate in
32463   [\\/]* | ?:[\\/]*)
32464   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32465   ;;
32466   *)
32467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32468 for as_dir in $PATH
32469 do
32470   IFS=$as_save_IFS
32471   test -z "$as_dir" && as_dir=.
32472     for ac_exec_ext in '' $ac_executable_extensions; do
32473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32474     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32476     break 2
32477   fi
32478 done
32479   done
32480 IFS=$as_save_IFS
32481
32482   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32483   ;;
32484 esac
32485 fi
32486 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32487 if test -n "$MrSIDDecodeDelegate"; then
32488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32489 $as_echo "$MrSIDDecodeDelegate" >&6; }
32490 else
32491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32492 $as_echo "no" >&6; }
32493 fi
32494
32495
32496 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32497 set dummy "$MVDelegateDefault"; ac_word=$2
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32499 $as_echo_n "checking for $ac_word... " >&6; }
32500 if ${ac_cv_path_MVDelegate+:} false; then :
32501   $as_echo_n "(cached) " >&6
32502 else
32503   case $MVDelegate in
32504   [\\/]* | ?:[\\/]*)
32505   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32506   ;;
32507   *)
32508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32509 for as_dir in $PATH
32510 do
32511   IFS=$as_save_IFS
32512   test -z "$as_dir" && as_dir=.
32513     for ac_exec_ext in '' $ac_executable_extensions; do
32514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32515     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
32516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32517     break 2
32518   fi
32519 done
32520   done
32521 IFS=$as_save_IFS
32522
32523   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32524   ;;
32525 esac
32526 fi
32527 MVDelegate=$ac_cv_path_MVDelegate
32528 if test -n "$MVDelegate"; then
32529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
32530 $as_echo "$MVDelegate" >&6; }
32531 else
32532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32533 $as_echo "no" >&6; }
32534 fi
32535
32536
32537 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32538 set dummy "$PCLDelegateDefault"; ac_word=$2
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32540 $as_echo_n "checking for $ac_word... " >&6; }
32541 if ${ac_cv_path_PCLDelegate+:} false; then :
32542   $as_echo_n "(cached) " >&6
32543 else
32544   case $PCLDelegate in
32545   [\\/]* | ?:[\\/]*)
32546   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32547   ;;
32548   *)
32549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32550 for as_dir in $PATH
32551 do
32552   IFS=$as_save_IFS
32553   test -z "$as_dir" && as_dir=.
32554     for ac_exec_ext in '' $ac_executable_extensions; do
32555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32556     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
32557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32558     break 2
32559   fi
32560 done
32561   done
32562 IFS=$as_save_IFS
32563
32564   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32565   ;;
32566 esac
32567 fi
32568 PCLDelegate=$ac_cv_path_PCLDelegate
32569 if test -n "$PCLDelegate"; then
32570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
32571 $as_echo "$PCLDelegate" >&6; }
32572 else
32573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32574 $as_echo "no" >&6; }
32575 fi
32576
32577
32578 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32579 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32581 $as_echo_n "checking for $ac_word... " >&6; }
32582 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
32583   $as_echo_n "(cached) " >&6
32584 else
32585   case $PGPDecodeDelegate in
32586   [\\/]* | ?:[\\/]*)
32587   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32588   ;;
32589   *)
32590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32591 for as_dir in $PATH
32592 do
32593   IFS=$as_save_IFS
32594   test -z "$as_dir" && as_dir=.
32595     for ac_exec_ext in '' $ac_executable_extensions; do
32596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32597     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32599     break 2
32600   fi
32601 done
32602   done
32603 IFS=$as_save_IFS
32604
32605   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32606   ;;
32607 esac
32608 fi
32609 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32610 if test -n "$PGPDecodeDelegate"; then
32611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
32612 $as_echo "$PGPDecodeDelegate" >&6; }
32613 else
32614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615 $as_echo "no" >&6; }
32616 fi
32617
32618
32619 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32620 set dummy "$POVDelegateDefault"; ac_word=$2
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32622 $as_echo_n "checking for $ac_word... " >&6; }
32623 if ${ac_cv_path_POVDelegate+:} false; then :
32624   $as_echo_n "(cached) " >&6
32625 else
32626   case $POVDelegate in
32627   [\\/]* | ?:[\\/]*)
32628   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32629   ;;
32630   *)
32631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32632 for as_dir in $PATH
32633 do
32634   IFS=$as_save_IFS
32635   test -z "$as_dir" && as_dir=.
32636     for ac_exec_ext in '' $ac_executable_extensions; do
32637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32638     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
32639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32640     break 2
32641   fi
32642 done
32643   done
32644 IFS=$as_save_IFS
32645
32646   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32647   ;;
32648 esac
32649 fi
32650 POVDelegate=$ac_cv_path_POVDelegate
32651 if test -n "$POVDelegate"; then
32652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
32653 $as_echo "$POVDelegate" >&6; }
32654 else
32655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32656 $as_echo "no" >&6; }
32657 fi
32658
32659
32660 for ac_prog in gsx gsc "$PSDelegateDefault"
32661 do
32662   # Extract the first word of "$ac_prog", so it can be a program name with args.
32663 set dummy $ac_prog; ac_word=$2
32664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32665 $as_echo_n "checking for $ac_word... " >&6; }
32666 if ${ac_cv_path_PSDelegate+:} false; then :
32667   $as_echo_n "(cached) " >&6
32668 else
32669   case $PSDelegate in
32670   [\\/]* | ?:[\\/]*)
32671   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32672   ;;
32673   *)
32674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675 for as_dir in $PATH
32676 do
32677   IFS=$as_save_IFS
32678   test -z "$as_dir" && as_dir=.
32679     for ac_exec_ext in '' $ac_executable_extensions; do
32680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32681     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
32682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32683     break 2
32684   fi
32685 done
32686   done
32687 IFS=$as_save_IFS
32688
32689   ;;
32690 esac
32691 fi
32692 PSDelegate=$ac_cv_path_PSDelegate
32693 if test -n "$PSDelegate"; then
32694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
32695 $as_echo "$PSDelegate" >&6; }
32696 else
32697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32698 $as_echo "no" >&6; }
32699 fi
32700
32701
32702   test -n "$PSDelegate" && break
32703 done
32704 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32705
32706 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32707 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32709 $as_echo_n "checking for $ac_word... " >&6; }
32710 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
32711   $as_echo_n "(cached) " >&6
32712 else
32713   case $RLEEncodeDelegate in
32714   [\\/]* | ?:[\\/]*)
32715   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
32716   ;;
32717   *)
32718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719 for as_dir in $PATH
32720 do
32721   IFS=$as_save_IFS
32722   test -z "$as_dir" && as_dir=.
32723     for ac_exec_ext in '' $ac_executable_extensions; do
32724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32725     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32727     break 2
32728   fi
32729 done
32730   done
32731 IFS=$as_save_IFS
32732
32733   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32734   ;;
32735 esac
32736 fi
32737 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32738 if test -n "$RLEEncodeDelegate"; then
32739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
32740 $as_echo "$RLEEncodeDelegate" >&6; }
32741 else
32742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32744 fi
32745
32746
32747 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32748 set dummy "$RMDelegateDefault"; ac_word=$2
32749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32750 $as_echo_n "checking for $ac_word... " >&6; }
32751 if ${ac_cv_path_RMDelegate+:} false; then :
32752   $as_echo_n "(cached) " >&6
32753 else
32754   case $RMDelegate in
32755   [\\/]* | ?:[\\/]*)
32756   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32757   ;;
32758   *)
32759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760 for as_dir in $PATH
32761 do
32762   IFS=$as_save_IFS
32763   test -z "$as_dir" && as_dir=.
32764     for ac_exec_ext in '' $ac_executable_extensions; do
32765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32766     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
32767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32768     break 2
32769   fi
32770 done
32771   done
32772 IFS=$as_save_IFS
32773
32774   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32775   ;;
32776 esac
32777 fi
32778 RMDelegate=$ac_cv_path_RMDelegate
32779 if test -n "$RMDelegate"; then
32780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
32781 $as_echo "$RMDelegate" >&6; }
32782 else
32783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32784 $as_echo "no" >&6; }
32785 fi
32786
32787
32788 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32789 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32791 $as_echo_n "checking for $ac_word... " >&6; }
32792 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
32793   $as_echo_n "(cached) " >&6
32794 else
32795   case $RSVGDecodeDelegate in
32796   [\\/]* | ?:[\\/]*)
32797   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32798   ;;
32799   *)
32800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32801 for as_dir in $PATH
32802 do
32803   IFS=$as_save_IFS
32804   test -z "$as_dir" && as_dir=.
32805     for ac_exec_ext in '' $ac_executable_extensions; do
32806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32807     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32809     break 2
32810   fi
32811 done
32812   done
32813 IFS=$as_save_IFS
32814
32815   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32816   ;;
32817 esac
32818 fi
32819 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32820 if test -n "$RSVGDecodeDelegate"; then
32821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32822 $as_echo "$RSVGDecodeDelegate" >&6; }
32823 else
32824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32825 $as_echo "no" >&6; }
32826 fi
32827
32828
32829 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32830 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32832 $as_echo_n "checking for $ac_word... " >&6; }
32833 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
32834   $as_echo_n "(cached) " >&6
32835 else
32836   case $SCANDecodeDelegate in
32837   [\\/]* | ?:[\\/]*)
32838   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32839   ;;
32840   *)
32841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32842 for as_dir in $PATH
32843 do
32844   IFS=$as_save_IFS
32845   test -z "$as_dir" && as_dir=.
32846     for ac_exec_ext in '' $ac_executable_extensions; do
32847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32848     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32850     break 2
32851   fi
32852 done
32853   done
32854 IFS=$as_save_IFS
32855
32856   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32857   ;;
32858 esac
32859 fi
32860 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32861 if test -n "$SCANDecodeDelegate"; then
32862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
32863 $as_echo "$SCANDecodeDelegate" >&6; }
32864 else
32865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32866 $as_echo "no" >&6; }
32867 fi
32868
32869
32870 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32871 set dummy "$TXTDelegateDefault"; ac_word=$2
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32873 $as_echo_n "checking for $ac_word... " >&6; }
32874 if ${ac_cv_path_TXTDelegate+:} false; then :
32875   $as_echo_n "(cached) " >&6
32876 else
32877   case $TXTDelegate in
32878   [\\/]* | ?:[\\/]*)
32879   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32880   ;;
32881   *)
32882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883 for as_dir in $PATH
32884 do
32885   IFS=$as_save_IFS
32886   test -z "$as_dir" && as_dir=.
32887     for ac_exec_ext in '' $ac_executable_extensions; do
32888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32889     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
32890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32891     break 2
32892   fi
32893 done
32894   done
32895 IFS=$as_save_IFS
32896
32897   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32898   ;;
32899 esac
32900 fi
32901 TXTDelegate=$ac_cv_path_TXTDelegate
32902 if test -n "$TXTDelegate"; then
32903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
32904 $as_echo "$TXTDelegate" >&6; }
32905 else
32906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32907 $as_echo "no" >&6; }
32908 fi
32909
32910
32911 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32912 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32914 $as_echo_n "checking for $ac_word... " >&6; }
32915 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
32916   $as_echo_n "(cached) " >&6
32917 else
32918   case $UniconvertorDelegate in
32919   [\\/]* | ?:[\\/]*)
32920   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32921   ;;
32922   *)
32923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32924 for as_dir in $PATH
32925 do
32926   IFS=$as_save_IFS
32927   test -z "$as_dir" && as_dir=.
32928     for ac_exec_ext in '' $ac_executable_extensions; do
32929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32930     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32932     break 2
32933   fi
32934 done
32935   done
32936 IFS=$as_save_IFS
32937
32938   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32939   ;;
32940 esac
32941 fi
32942 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32943 if test -n "$UniconvertorDelegate"; then
32944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32945 $as_echo "$UniconvertorDelegate" >&6; }
32946 else
32947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32948 $as_echo "no" >&6; }
32949 fi
32950
32951
32952 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32953 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32955 $as_echo_n "checking for $ac_word... " >&6; }
32956 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
32957   $as_echo_n "(cached) " >&6
32958 else
32959   case $WMFDecodeDelegate in
32960   [\\/]* | ?:[\\/]*)
32961   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32962   ;;
32963   *)
32964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32965 for as_dir in $PATH
32966 do
32967   IFS=$as_save_IFS
32968   test -z "$as_dir" && as_dir=.
32969     for ac_exec_ext in '' $ac_executable_extensions; do
32970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32971     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32973     break 2
32974   fi
32975 done
32976   done
32977 IFS=$as_save_IFS
32978
32979   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32980   ;;
32981 esac
32982 fi
32983 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32984 if test -n "$WMFDecodeDelegate"; then
32985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
32986 $as_echo "$WMFDecodeDelegate" >&6; }
32987 else
32988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32989 $as_echo "no" >&6; }
32990 fi
32991
32992
32993 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32994 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32996 $as_echo_n "checking for $ac_word... " >&6; }
32997 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
32998   $as_echo_n "(cached) " >&6
32999 else
33000   case $WWWDecodeDelegate in
33001   [\\/]* | ?:[\\/]*)
33002   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33003   ;;
33004   *)
33005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006 for as_dir in $PATH
33007 do
33008   IFS=$as_save_IFS
33009   test -z "$as_dir" && as_dir=.
33010     for ac_exec_ext in '' $ac_executable_extensions; do
33011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33012     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33014     break 2
33015   fi
33016 done
33017   done
33018 IFS=$as_save_IFS
33019
33020   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33021   ;;
33022 esac
33023 fi
33024 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33025 if test -n "$WWWDecodeDelegate"; then
33026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33027 $as_echo "$WWWDecodeDelegate" >&6; }
33028 else
33029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 $as_echo "no" >&6; }
33031 fi
33032
33033
33034 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33035 set dummy "$XPSDelegateDefault"; ac_word=$2
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33037 $as_echo_n "checking for $ac_word... " >&6; }
33038 if ${ac_cv_path_XPSDelegate+:} false; then :
33039   $as_echo_n "(cached) " >&6
33040 else
33041   case $XPSDelegate in
33042   [\\/]* | ?:[\\/]*)
33043   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33044   ;;
33045   *)
33046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047 for as_dir in $PATH
33048 do
33049   IFS=$as_save_IFS
33050   test -z "$as_dir" && as_dir=.
33051     for ac_exec_ext in '' $ac_executable_extensions; do
33052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33053     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33055     break 2
33056   fi
33057 done
33058   done
33059 IFS=$as_save_IFS
33060
33061   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33062   ;;
33063 esac
33064 fi
33065 XPSDelegate=$ac_cv_path_XPSDelegate
33066 if test -n "$XPSDelegate"; then
33067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33068 $as_echo "$XPSDelegate" >&6; }
33069 else
33070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33072 fi
33073
33074
33075 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33076 set dummy "$ZipDelegateDefault"; ac_word=$2
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33078 $as_echo_n "checking for $ac_word... " >&6; }
33079 if ${ac_cv_path_ZipDelegate+:} false; then :
33080   $as_echo_n "(cached) " >&6
33081 else
33082   case $ZipDelegate in
33083   [\\/]* | ?:[\\/]*)
33084   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33085   ;;
33086   *)
33087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088 for as_dir in $PATH
33089 do
33090   IFS=$as_save_IFS
33091   test -z "$as_dir" && as_dir=.
33092     for ac_exec_ext in '' $ac_executable_extensions; do
33093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33096     break 2
33097   fi
33098 done
33099   done
33100 IFS=$as_save_IFS
33101
33102   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33103   ;;
33104 esac
33105 fi
33106 ZipDelegate=$ac_cv_path_ZipDelegate
33107 if test -n "$ZipDelegate"; then
33108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33109 $as_echo "$ZipDelegate" >&6; }
33110 else
33111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112 $as_echo "no" >&6; }
33113 fi
33114
33115
33116
33117 # Prefer lpr to lp; lp needs options tacked on.
33118 if test "$LPRDelegate" != no; then
33119     PrintDelegate="$LPRDelegate"
33120 else
33121     PrintDelegate="$LPDelegate -c -s"
33122 fi
33123
33124
33125 # Installed ImageMagick utiltity paths
33126 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33127 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33128 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33129
33130 # Set delegate booleans
33131 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33132 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33133 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33134 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33135 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33136 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33137 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33138 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33139 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33140 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33141
33142 #
33143 # Test for font directories
33144 #
33145 type_include_files=''
33146
33147 # Dejavu fonts.
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33149 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33150 dejavu_font_dir=''
33151 if test "${with_dejavu_font_dir}" != 'default'; then
33152   dejavu_font_dir="${with_dejavu_font_dir}/"
33153 else
33154   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33155     if test -f "${font_dir}DejaVuSerif.ttf"; then
33156       dejavu_font_dir="${font_dir}"
33157       break 1
33158     fi
33159   done
33160 fi
33161 if test "${dejavu_font_dir}x" != 'x'; then
33162   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33164 $as_echo "$dejavu_font_dir" >&6; }
33165 else
33166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33167 $as_echo "not found!" >&6; };
33168 fi
33169
33170
33171 # Windows
33172 windows_font_dir=''
33173 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33174    windows_font_dir="${with_windows_font_dir}/"
33175 fi
33176 if test "${windows_font_dir}x" != 'x'; then
33177     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33178       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33179     fi
33180     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33181       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33182     fi
33183     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33184       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33185     fi
33186 fi
33187 if test "${windows_font_dir}x" != 'x'; then
33188   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33189 fi
33190
33191
33192 # Ghostscript
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
33194 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33195 ghostscript_font_dir=''
33196 if test "${with_gs_font_dir}" != 'default'; then
33197   ghostscript_font_dir="${with_gs_font_dir}/"
33198 else
33199   if test "${native_win32_build}" = 'yes'; then
33200     # Native Windows Build
33201     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33202       if test -f "${font_dir}a010013l.pfb"; then
33203         ghostscript_font_dir="$font_dir"
33204         break 1
33205       fi
33206     done
33207     if test "${PSDelegate}" != 'gswin32c'; then
33208       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33209     fi
33210   else
33211     # Linux / Mac OS X / Unix Build
33212     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
33213       if test -f "${font_dir}a010013l.pfb"; then
33214         ghostscript_font_dir="${font_dir}"
33215         break 1
33216       fi
33217     done
33218     if test "${ghostscript_font_dir}x" = 'x'; then
33219       if test "$PSDelegate" != 'gs'; then
33220         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33221       fi
33222     fi
33223   fi
33224 fi
33225 if test "${ghostscript_font_dir}x" != 'x'; then
33226   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
33227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33228 $as_echo "$ghostscript_font_dir" >&6; }
33229 else
33230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33231 $as_echo "not found!" >&6; };
33232 fi
33233
33234 case "${build_os}" in
33235   mingw* )
33236     PSDelegate=`$WinPathScript "$PSDelegate" 1`
33237     ;;
33238 esac
33239
33240
33241
33242 #
33243 # Handle case where user doesn't want frozen paths
33244 #
33245 if test "$with_frozenpaths" != 'yes'; then
33246   # Re-set delegate definitions to default (no paths)
33247   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
33248   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33249   BZIPDelegate="$BZIPDelegateDefault"
33250   BrowseDelegate="$BrowseDelegateDefault"
33251   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33252   CatDelegate="$CatDelegateDefault"
33253   ConvertDelegate="$ConvertDelegateDefault"
33254   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33255   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33256   EchoDelegate="$EchoDelegateDefault"
33257   EditorDelegate="$EditorDelegateDefault"
33258   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33259   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33260   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33261   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33262   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33263   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33264   LPDelegate="$LPDelegateDefault"
33265   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33266   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33267   LaunchDelegate="$LaunchDelegateDefault"
33268   MANDelegate="$MANDelegateDefault"
33269   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33270   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
33271   MogrifyDelegate="$MogrifyDelegateDefault"
33272   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33273   MVDelegate="$MVDelegateDefault"
33274   PCLDelegate="$PCLDelegateDefault"
33275   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33276   POVDelegate="$POVDelegateDefault"
33277   PSDelegate="$PSDelegateDefault"
33278   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33279   RMDelegate="$RMDelegateDefault"
33280   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
33281   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33282   ShowImageDelegate="$ShowImageDelegateDefault"
33283   TXTDelegate="$TXTDelegateDefault"
33284   UniconvertorDelegate="$UniconvertorDelegateDefault"
33285   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33286   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33287   XPSDelegate="$XPSDelegateDefault"
33288   ZipDelegate="$ZipDelegateDefault"
33289 fi
33290
33291 # Delegate substitutions
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334 #
33335 # RPM support.
33336 #
33337 RPM=''
33338 for ac_prog in gnutar gtar tar
33339 do
33340   # Extract the first word of "$ac_prog", so it can be a program name with args.
33341 set dummy $ac_prog; ac_word=$2
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33343 $as_echo_n "checking for $ac_word... " >&6; }
33344 if ${ac_cv_prog_TAR+:} false; then :
33345   $as_echo_n "(cached) " >&6
33346 else
33347   if test -n "$TAR"; then
33348   ac_cv_prog_TAR="$TAR" # Let the user override the test.
33349 else
33350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33351 for as_dir in $PATH
33352 do
33353   IFS=$as_save_IFS
33354   test -z "$as_dir" && as_dir=.
33355     for ac_exec_ext in '' $ac_executable_extensions; do
33356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33357     ac_cv_prog_TAR="$ac_prog"
33358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33359     break 2
33360   fi
33361 done
33362   done
33363 IFS=$as_save_IFS
33364
33365 fi
33366 fi
33367 TAR=$ac_cv_prog_TAR
33368 if test -n "$TAR"; then
33369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
33370 $as_echo "$TAR" >&6; }
33371 else
33372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33373 $as_echo "no" >&6; }
33374 fi
33375
33376
33377   test -n "$TAR" && break
33378 done
33379
33380 for ac_prog in perl
33381 do
33382   # Extract the first word of "$ac_prog", so it can be a program name with args.
33383 set dummy $ac_prog; ac_word=$2
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33385 $as_echo_n "checking for $ac_word... " >&6; }
33386 if ${ac_cv_prog_PERL+:} false; then :
33387   $as_echo_n "(cached) " >&6
33388 else
33389   if test -n "$PERL"; then
33390   ac_cv_prog_PERL="$PERL" # Let the user override the test.
33391 else
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393 for as_dir in $PATH
33394 do
33395   IFS=$as_save_IFS
33396   test -z "$as_dir" && as_dir=.
33397     for ac_exec_ext in '' $ac_executable_extensions; do
33398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33399     ac_cv_prog_PERL="$ac_prog"
33400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33401     break 2
33402   fi
33403 done
33404   done
33405 IFS=$as_save_IFS
33406
33407 fi
33408 fi
33409 PERL=$ac_cv_prog_PERL
33410 if test -n "$PERL"; then
33411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33412 $as_echo "$PERL" >&6; }
33413 else
33414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33415 $as_echo "no" >&6; }
33416 fi
33417
33418
33419   test -n "$PERL" && break
33420 done
33421
33422 for ac_prog in rpmbuild rpm
33423 do
33424   # Extract the first word of "$ac_prog", so it can be a program name with args.
33425 set dummy $ac_prog; ac_word=$2
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33427 $as_echo_n "checking for $ac_word... " >&6; }
33428 if ${ac_cv_prog_RPM+:} false; then :
33429   $as_echo_n "(cached) " >&6
33430 else
33431   if test -n "$RPM"; then
33432   ac_cv_prog_RPM="$RPM" # Let the user override the test.
33433 else
33434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435 for as_dir in $PATH
33436 do
33437   IFS=$as_save_IFS
33438   test -z "$as_dir" && as_dir=.
33439     for ac_exec_ext in '' $ac_executable_extensions; do
33440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33441     ac_cv_prog_RPM="$ac_prog"
33442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33443     break 2
33444   fi
33445 done
33446   done
33447 IFS=$as_save_IFS
33448
33449 fi
33450 fi
33451 RPM=$ac_cv_prog_RPM
33452 if test -n "$RPM"; then
33453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
33454 $as_echo "$RPM" >&6; }
33455 else
33456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33457 $as_echo "no" >&6; }
33458 fi
33459
33460
33461   test -n "$RPM" && break
33462 done
33463
33464
33465 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33466
33467
33468 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33469
33470
33471 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33472
33473
33474 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33475
33476
33477  if test "x$RPM" != "x" ; then
33478   RPM_DELEGATE_TRUE=
33479   RPM_DELEGATE_FALSE='#'
33480 else
33481   RPM_DELEGATE_TRUE='#'
33482   RPM_DELEGATE_FALSE=
33483 fi
33484
33485
33486 #
33487 # 7ZIP support (http://p7zip.sourceforge.net/)
33488 #
33489 P7ZIP=''
33490 for ac_prog in 7za
33491 do
33492   # Extract the first word of "$ac_prog", so it can be a program name with args.
33493 set dummy $ac_prog; ac_word=$2
33494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33495 $as_echo_n "checking for $ac_word... " >&6; }
33496 if ${ac_cv_prog_P7ZIP+:} false; then :
33497   $as_echo_n "(cached) " >&6
33498 else
33499   if test -n "$P7ZIP"; then
33500   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33501 else
33502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33503 for as_dir in $PATH
33504 do
33505   IFS=$as_save_IFS
33506   test -z "$as_dir" && as_dir=.
33507     for ac_exec_ext in '' $ac_executable_extensions; do
33508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33509     ac_cv_prog_P7ZIP="$ac_prog"
33510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33511     break 2
33512   fi
33513 done
33514   done
33515 IFS=$as_save_IFS
33516
33517 fi
33518 fi
33519 P7ZIP=$ac_cv_prog_P7ZIP
33520 if test -n "$P7ZIP"; then
33521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
33522 $as_echo "$P7ZIP" >&6; }
33523 else
33524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525 $as_echo "no" >&6; }
33526 fi
33527
33528
33529   test -n "$P7ZIP" && break
33530 done
33531
33532
33533  if test "x$P7ZIP" != "x" ; then
33534   P7ZIP_DELEGATE_TRUE=
33535   P7ZIP_DELEGATE_FALSE='#'
33536 else
33537   P7ZIP_DELEGATE_TRUE='#'
33538   P7ZIP_DELEGATE_FALSE=
33539 fi
33540
33541
33542 #
33543 # ZIP support (http://www.info-zip.org/Zip.html)
33544 #
33545 ZIP=''
33546 for ac_prog in zip
33547 do
33548   # Extract the first word of "$ac_prog", so it can be a program name with args.
33549 set dummy $ac_prog; ac_word=$2
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33551 $as_echo_n "checking for $ac_word... " >&6; }
33552 if ${ac_cv_prog_ZIP+:} false; then :
33553   $as_echo_n "(cached) " >&6
33554 else
33555   if test -n "$ZIP"; then
33556   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33557 else
33558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33559 for as_dir in $PATH
33560 do
33561   IFS=$as_save_IFS
33562   test -z "$as_dir" && as_dir=.
33563     for ac_exec_ext in '' $ac_executable_extensions; do
33564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33565     ac_cv_prog_ZIP="$ac_prog"
33566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33567     break 2
33568   fi
33569 done
33570   done
33571 IFS=$as_save_IFS
33572
33573 fi
33574 fi
33575 ZIP=$ac_cv_prog_ZIP
33576 if test -n "$ZIP"; then
33577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
33578 $as_echo "$ZIP" >&6; }
33579 else
33580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33582 fi
33583
33584
33585   test -n "$ZIP" && break
33586 done
33587
33588
33589  if test "x$ZIP" != "x" ; then
33590   ZIP_DELEGATE_TRUE=
33591   ZIP_DELEGATE_FALSE='#'
33592 else
33593   ZIP_DELEGATE_TRUE='#'
33594   ZIP_DELEGATE_FALSE=
33595 fi
33596
33597
33598 #
33599 # GhostPCL related configuration.
33600 #
33601 PCLColorDevice=ppmraw
33602 PCLCMYKDevice=bmpsep8
33603 PCLMonoDevice=pbmraw
33604 if test -z "$PCLVersion"; then
33605     PCLVersion='unknown'
33606 fi
33607 if test $have_pcl = 'yes'; then
33608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33609 $as_echo "-------------------------------------------------------------" >&6; }
33610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
33611 $as_echo_n "checking for PCL... " >&6; }
33612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33613 $as_echo "" >&6; }
33614     # PCLColorDevice
33615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
33616 $as_echo_n "checking for pcl color device... " >&6; }
33617     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33618         :
33619     else
33620         PCLColorDevice=ppmraw
33621     fi
33622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
33623 $as_echo "$PCLColorDevice" >&6; }
33624
33625     # PCLCMYKDevice
33626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
33627 $as_echo_n "checking for pcl CMYK device... " >&6; }
33628     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33629         :
33630     else
33631         PCLCMYKDevice=$PCLColorDevice
33632     fi
33633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
33634 $as_echo "$PCLCMYKDevice" >&6; }
33635
33636     # PCLMonoDevice
33637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
33638 $as_echo_n "checking for pcl mono device... " >&6; }
33639     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33640         :
33641     else
33642         PCLMonoDevice=$PCLColorDevice
33643     fi
33644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
33645 $as_echo "$PCLMonoDevice" >&6; }
33646 fi
33647
33648
33649
33650
33651
33652
33653 #
33654 # GhostXPS related configuration.
33655 #
33656 XPSColorDevice=ppmraw
33657 XPSCMYKDevice=bmpsep8
33658 XPSMonoDevice=pbmraw
33659 if test -z "$XPSVersion"; then
33660     XPSVersion='unknown'
33661 fi
33662 if test $have_xps = 'yes'; then
33663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33664 $as_echo "-------------------------------------------------------------" >&6; }
33665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
33666 $as_echo_n "checking for XPS... " >&6; }
33667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33668 $as_echo "" >&6; }
33669     # XPSColorDevice
33670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
33671 $as_echo_n "checking for xps color device... " >&6; }
33672     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33673         :
33674     else
33675         XPSColorDevice=ppmraw
33676     fi
33677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
33678 $as_echo "$XPSColorDevice" >&6; }
33679
33680     # XPSCMYKDevice
33681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
33682 $as_echo_n "checking for xps CMYK device... " >&6; }
33683     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33684         :
33685     else
33686         XPSCMYKDevice=$XPSColorDevice
33687     fi
33688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
33689 $as_echo "$XPSCMYKDevice" >&6; }
33690
33691     # XPSMonoDevice
33692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
33693 $as_echo_n "checking for xps mono device... " >&6; }
33694     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33695         :
33696     else
33697         XPSMonoDevice=$XPSColorDevice
33698     fi
33699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
33700 $as_echo "$XPSMonoDevice" >&6; }
33701 fi
33702
33703
33704
33705
33706
33707
33708 #
33709 # Ghostscript related configuration.
33710 #
33711 GSAlphaDevice=pngalpha
33712 GSColorDevice=pnmraw
33713 GSCMYKDevice=pam
33714 GSMonoDevice=pbmraw
33715 GSPDFDevice=pdfwrite
33716 GSPSDevice=pswrite
33717 GSEPSDevice=epswrite
33718 GSVersion='unknown'
33719 if test $have_gs = 'yes'; then
33720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33721 $as_echo "-------------------------------------------------------------" >&6; }
33722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
33723 $as_echo_n "checking for Ghostscript... " >&6; }
33724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33725 $as_echo "" >&6; }
33726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
33727 $as_echo_n "checking for Ghostscript version... " >&6; }
33728     if GSVersion=`$PSDelegate --version`; then
33729         :
33730     else
33731         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33732     fi
33733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
33734 $as_echo "$GSVersion" >&6; }
33735
33736     # GSAlphaDevice
33737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
33738 $as_echo_n "checking for gs alpha device... " >&6; }
33739     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33740         :
33741     else
33742         GSAlphaDevice=pnmraw
33743     fi
33744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
33745 $as_echo "$GSAlphaDevice" >&6; }
33746
33747     # GSColorDevice
33748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
33749 $as_echo_n "checking for gs color device... " >&6; }
33750     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33751         :
33752     else
33753         GSColorDevice=pnmraw
33754     fi
33755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
33756 $as_echo "$GSColorDevice" >&6; }
33757
33758     # GSCMYKDevice
33759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
33760 $as_echo_n "checking for gs CMYK device... " >&6; }
33761     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33762         :
33763     else
33764         GSCMYKDevice=bmpsep8
33765     fi
33766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
33767 $as_echo "$GSCMYKDevice" >&6; }
33768
33769     # GSMonoDevice
33770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
33771 $as_echo_n "checking for gs mono device... " >&6; }
33772     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33773         :
33774     else
33775         GSMonoDevice=$GSColorDevice
33776     fi
33777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
33778 $as_echo "$GSMonoDevice" >&6; }
33779
33780     # GSPDFDevice
33781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
33782 $as_echo_n "checking for gs PDF writing device... " >&6; }
33783     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33784         :
33785     else
33786         GSPDFDevice=nodevice
33787     fi
33788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
33789 $as_echo "$GSPDFDevice" >&6; }
33790
33791     # GSPSDevice
33792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
33793 $as_echo_n "checking for gs PS writing device... " >&6; }
33794     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33795         :
33796     else
33797         GSPSDevice=nodevice
33798     fi
33799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
33800 $as_echo "$GSPSDevice" >&6; }
33801
33802     # GSEPSDevice
33803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
33804 $as_echo_n "checking for gs EPS writing device... " >&6; }
33805     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33806         :
33807     else
33808         GSEPSDevice=nodevice
33809     fi
33810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
33811 $as_echo "$GSEPSDevice" >&6; }
33812 fi
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823 #
33824 # PerlMagick-related configuration
33825 #
33826
33827 # Look for PERL if PerlMagick requested
33828 # If name/path of desired PERL interpreter is specified, look for that one first
33829 have_perl='no'
33830 if test "$with_perl" != 'no'; then
33831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33832 $as_echo "-------------------------------------------------------------" >&6; }
33833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
33834 $as_echo_n "checking for Perl... " >&6; }
33835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33836 $as_echo "" >&6; }
33837     if test "$with_perl" != 'yes'; then
33838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
33839 $as_echo_n "checking for perl... " >&6; }
33840 if ${ac_cv_path_PERL+:} false; then :
33841   $as_echo_n "(cached) " >&6
33842 else
33843   ac_cv_path_PERL="$with_perl"
33844 fi
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
33846 $as_echo "$ac_cv_path_PERL" >&6; };
33847         PERL=$ac_cv_path_PERL
33848                 have_perl="$ac_cv_path_PERL"
33849     else
33850         for ac_prog in perl perl5
33851 do
33852   # Extract the first word of "$ac_prog", so it can be a program name with args.
33853 set dummy $ac_prog; ac_word=$2
33854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33855 $as_echo_n "checking for $ac_word... " >&6; }
33856 if ${ac_cv_path_PERL+:} false; then :
33857   $as_echo_n "(cached) " >&6
33858 else
33859   case $PERL in
33860   [\\/]* | ?:[\\/]*)
33861   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33862   ;;
33863   *)
33864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865 for as_dir in $PATH
33866 do
33867   IFS=$as_save_IFS
33868   test -z "$as_dir" && as_dir=.
33869     for ac_exec_ext in '' $ac_executable_extensions; do
33870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33871     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33873     break 2
33874   fi
33875 done
33876   done
33877 IFS=$as_save_IFS
33878
33879   ;;
33880 esac
33881 fi
33882 PERL=$ac_cv_path_PERL
33883 if test -n "$PERL"; then
33884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33885 $as_echo "$PERL" >&6; }
33886 else
33887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33888 $as_echo "no" >&6; }
33889 fi
33890
33891
33892   test -n "$PERL" && break
33893 done
33894         if test "$ac_cv_path_PERL"; then
33895             have_perl="$ac_cv_path_PERL"
33896         fi
33897     fi
33898 fi
33899
33900 if test "$with_perl" != 'yes' ; then
33901     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33902 fi
33903
33904 PERL_SUPPORTS_DESTDIR='no'
33905
33906 with_perl_static='no'
33907 with_perl_dynamic='no'
33908 if test "$have_perl" != 'no'; then
33909     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33910         with_perl_static='yes'
33911     fi
33912     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33913         with_perl_dynamic='yes'
33914     fi
33915     # Is PERL's MakeMaker new enough to support DESTDIR?
33916
33917
33918
33919
33920     if test -n "$PERL"; then :
33921
33922         ax_perl_version="5.8.1"
33923
33924         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33925 $as_echo_n "checking for perl version... " >&6; }
33926
33927         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33928
33929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33930 $as_echo "$perl_version" >&6; }
33931
33932         PERL_VERSION=$perl_version
33933
33934
33935
33936
33937
33938   # Used to indicate true or false condition
33939   ax_compare_version=false
33940
33941   # Convert the two version strings to be compared into a format that
33942   # allows a simple string comparison.  The end result is that a version
33943   # string of the form 1.12.5-r617 will be converted to the form
33944   # 0001001200050617.  In other words, each number is zero padded to four
33945   # digits, and non digits are removed.
33946
33947   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33948                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33949                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33950                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33951                      -e 's/[^0-9]//g'`
33952
33953
33954   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33955                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33956                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33957                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33958                      -e 's/[^0-9]//g'`
33959
33960
33961     ax_compare_version=`echo "x$ax_compare_version_A
33962 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33963
33964
33965
33966     if test "$ax_compare_version" = "true" ; then
33967
33968             :
33969             PERL_SUPPORTS_DESTDIR='yes'
33970
33971     else
33972             :
33973             PERL_SUPPORTS_DESTDIR='no'
33974
33975   fi
33976
33977
33978 else
33979
33980         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33981 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33982         PERL_SUPPORTS_DESTDIR='no'
33983
33984 fi
33985
33986 fi
33987  if test "$have_perl" != 'no'; then
33988   WITH_PERL_TRUE=
33989   WITH_PERL_FALSE='#'
33990 else
33991   WITH_PERL_TRUE='#'
33992   WITH_PERL_FALSE=
33993 fi
33994
33995  if test $with_perl_static = 'yes'; then
33996   WITH_PERL_STATIC_TRUE=
33997   WITH_PERL_STATIC_FALSE='#'
33998 else
33999   WITH_PERL_STATIC_TRUE='#'
34000   WITH_PERL_STATIC_FALSE=
34001 fi
34002
34003  if test $with_perl_dynamic = 'yes'; then
34004   WITH_PERL_DYNAMIC_TRUE=
34005   WITH_PERL_DYNAMIC_FALSE='#'
34006 else
34007   WITH_PERL_DYNAMIC_TRUE='#'
34008   WITH_PERL_DYNAMIC_FALSE=
34009 fi
34010
34011
34012
34013 # Determine path to pick up MagickCore library from for use with building PerlMagick
34014 MAGICKCORE_PATH="${LIB_DIR}"
34015 if test $with_perl_static = 'yes'; then
34016     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34017     libtool_objdir=$objdir
34018
34019     # Linker search path to library, followed by -lMagickCore
34020     MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34021 fi
34022
34023
34024 # Create a simple string containing format names for all delegate libraries
34025 DELEGATES=''
34026 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34027 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34028 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34029 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34030 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34031 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34032 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34033 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34034 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34035 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34036 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34037 if test "$have_jpeg"       = 'yes'; then
34038   DELEGATES="$DELEGATES jpeg";
34039   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34040 fi
34041 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34042 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34043 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34044 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34045 if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34046 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34047 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34048 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
34049 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34050 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34051 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34052 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34053 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34054 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34055
34056
34057
34058 #
34059 # Handle special compiler flags
34060 #
34061
34062 # Add '-p' if prof source profiling support enabled
34063 if test "$enable_prof" = 'yes'; then
34064     CFLAGS="-p $CFLAGS"
34065     CXXFLAGS="-p $CXXFLAGS"
34066     LDFLAGS="-p $LDFLAGS"
34067 fi
34068
34069 # Add '-pg' if gprof source profiling support enabled
34070 if test "$enable_gprof" = 'yes'; then
34071     CFLAGS="-pg $CFLAGS"
34072     CXXFLAGS="-pg $CXXFLAGS"
34073     LDFLAGS="-pg $LDFLAGS"
34074 fi
34075
34076 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34077 # This is a gcc-specific feature
34078 if test "$enable_gcov" = 'yes'; then
34079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34080 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34081 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34082   $as_echo_n "(cached) " >&6
34083 else
34084   ac_check_lib_save_LIBS=$LIBS
34085 LIBS="-lgcov  $LIBS"
34086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34087 /* end confdefs.h.  */
34088
34089 /* Override any GCC internal prototype to avoid an error.
34090    Use char because int might match the return type of a GCC
34091    builtin and then its argument prototype would still apply.  */
34092 #ifdef __cplusplus
34093 extern "C"
34094 #endif
34095 char _gcov_init ();
34096 int
34097 main ()
34098 {
34099 return _gcov_init ();
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 if ac_fn_c_try_link "$LINENO"; then :
34105   ac_cv_lib_gcov__gcov_init=yes
34106 else
34107   ac_cv_lib_gcov__gcov_init=no
34108 fi
34109 rm -f core conftest.err conftest.$ac_objext \
34110     conftest$ac_exeext conftest.$ac_ext
34111 LIBS=$ac_check_lib_save_LIBS
34112 fi
34113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34114 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34115 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34116   cat >>confdefs.h <<_ACEOF
34117 #define HAVE_LIBGCOV 1
34118 _ACEOF
34119
34120   LIBS="-lgcov $LIBS"
34121
34122 fi
34123
34124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34125 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34126 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34127   $as_echo_n "(cached) " >&6
34128 else
34129   ac_check_lib_save_LIBS=$LIBS
34130 LIBS="-lgcov  $LIBS"
34131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34132 /* end confdefs.h.  */
34133
34134 /* Override any GCC internal prototype to avoid an error.
34135    Use char because int might match the return type of a GCC
34136    builtin and then its argument prototype would still apply.  */
34137 #ifdef __cplusplus
34138 extern "C"
34139 #endif
34140 char __gcov_init ();
34141 int
34142 main ()
34143 {
34144 return __gcov_init ();
34145   ;
34146   return 0;
34147 }
34148 _ACEOF
34149 if ac_fn_c_try_link "$LINENO"; then :
34150   ac_cv_lib_gcov___gcov_init=yes
34151 else
34152   ac_cv_lib_gcov___gcov_init=no
34153 fi
34154 rm -f core conftest.err conftest.$ac_objext \
34155     conftest$ac_exeext conftest.$ac_ext
34156 LIBS=$ac_check_lib_save_LIBS
34157 fi
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34159 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34160 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34161   cat >>confdefs.h <<_ACEOF
34162 #define HAVE_LIBGCOV 1
34163 _ACEOF
34164
34165   LIBS="-lgcov $LIBS"
34166
34167 fi
34168
34169     case "$target_os" in
34170         darwin*)
34171             OSX_GCOV_LDFLAG="-Wl,-single_module"
34172         ;;
34173         *)
34174             OSX_GCOV_LDFLAG=""
34175         ;;
34176     esac
34177
34178     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
34179     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
34180     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34181 fi
34182
34183 #
34184 # Build library dependency list for libMagickCore
34185 #
34186
34187 MAGICK_LIBLTDL='' # Libltdl for build
34188 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
34189 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
34190 if test "$with_ltdl" != 'no'
34191 then
34192   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34193     MAGICK_API_LIBLTDL='-lltdl'
34194   fi
34195   MAGICK_LIBLTDL=${LIBLTDL}
34196   MAGICK_LTDLDEPS=${LTDLDEPS}
34197 fi
34198
34199
34200
34201 if test "$with_modules" != 'no'; then
34202     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"
34203 else
34204     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 $WEBP_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"
34205 fi
34206
34207
34208 #
34209 # Remove extraneous spaces from output variables (asthetic)
34210 #
34211 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
34212 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
34213 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
34214 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
34215
34216 CC=`echo $CC | sed -e 's/  */ /g'`
34217 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
34218 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
34219 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
34220 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34221 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
34222 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
34223 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
34224 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
34225 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
34226
34227 # Pass only user-provided LIBS as "global" libraries
34228 LIBS=$USER_LIBS
34229
34230 #AC_SUBST(CPPFLAGS)
34231
34232 #AC_SUBST(LDFLAGS)
34233 #AC_SUBST(X_PRE_LIBS)
34234 #AC_SUBST(X_LIBS)
34235 #AC_SUBST(X_EXTRA_LIBS)
34236
34237 MAGICK_CFLAGS=$CFLAGS
34238 MAGICK_CXXFLAGS="$CXXFLAGS"
34239 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
34240 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
34241 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34242 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252 # Set configured scripts to executable.
34253 ac_config_commands="$ac_config_commands default"
34254
34255 ac_config_commands="$ac_config_commands MagickCore-config.in"
34256
34257 ac_config_commands="$ac_config_commands Magick-config.in"
34258
34259 ac_config_commands="$ac_config_commands MagickWand-config.in"
34260
34261 ac_config_commands="$ac_config_commands Wand-config.in"
34262
34263 ac_config_commands="$ac_config_commands Magick++-config.in"
34264
34265 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34266
34267
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34269 $as_echo "-------------------------------------------------------------" >&6; }
34270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
34271 $as_echo "Update ImageMagick configuration" >&6; }
34272 cat >confcache <<\_ACEOF
34273 # This file is a shell script that caches the results of configure
34274 # tests run on this system so they can be shared between configure
34275 # scripts and configure runs, see configure's option --config-cache.
34276 # It is not useful on other systems.  If it contains results you don't
34277 # want to keep, you may remove or edit it.
34278 #
34279 # config.status only pays attention to the cache file if you give it
34280 # the --recheck option to rerun configure.
34281 #
34282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34284 # following values.
34285
34286 _ACEOF
34287
34288 # The following way of writing the cache mishandles newlines in values,
34289 # but we know of no workaround that is simple, portable, and efficient.
34290 # So, we kill variables containing newlines.
34291 # Ultrix sh set writes to stderr and can't be redirected directly,
34292 # and sets the high bit in the cache file unless we assign to the vars.
34293 (
34294   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34295     eval ac_val=\$$ac_var
34296     case $ac_val in #(
34297     *${as_nl}*)
34298       case $ac_var in #(
34299       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34301       esac
34302       case $ac_var in #(
34303       _ | IFS | as_nl) ;; #(
34304       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34305       *) { eval $ac_var=; unset $ac_var;} ;;
34306       esac ;;
34307     esac
34308   done
34309
34310   (set) 2>&1 |
34311     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34312     *${as_nl}ac_space=\ *)
34313       # `set' does not quote correctly, so add quotes: double-quote
34314       # substitution turns \\\\ into \\, and sed turns \\ into \.
34315       sed -n \
34316         "s/'/'\\\\''/g;
34317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34318       ;; #(
34319     *)
34320       # `set' quotes correctly as required by POSIX, so do not add quotes.
34321       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34322       ;;
34323     esac |
34324     sort
34325 ) |
34326   sed '
34327      /^ac_cv_env_/b end
34328      t clear
34329      :clear
34330      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34331      t end
34332      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34333      :end' >>confcache
34334 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34335   if test -w "$cache_file"; then
34336     if test "x$cache_file" != "x/dev/null"; then
34337       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34338 $as_echo "$as_me: updating cache $cache_file" >&6;}
34339       if test ! -f "$cache_file" || test -h "$cache_file"; then
34340         cat confcache >"$cache_file"
34341       else
34342         case $cache_file in #(
34343         */* | ?:*)
34344           mv -f confcache "$cache_file"$$ &&
34345           mv -f "$cache_file"$$ "$cache_file" ;; #(
34346         *)
34347           mv -f confcache "$cache_file" ;;
34348         esac
34349       fi
34350     fi
34351   else
34352     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34353 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34354   fi
34355 fi
34356 rm -f confcache
34357
34358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34359 # Let make expand exec_prefix.
34360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34361
34362 DEFS=-DHAVE_CONFIG_H
34363
34364 ac_libobjs=
34365 ac_ltlibobjs=
34366 U=
34367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34368   # 1. Remove the extension, and $U if already installed.
34369   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34370   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34371   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34372   #    will be set to the directory where LIBOBJS objects are built.
34373   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34374   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34375 done
34376 LIBOBJS=$ac_libobjs
34377
34378 LTLIBOBJS=$ac_ltlibobjs
34379
34380
34381  if test -n "$EXEEXT"; then
34382   am__EXEEXT_TRUE=
34383   am__EXEEXT_FALSE='#'
34384 else
34385   am__EXEEXT_TRUE='#'
34386   am__EXEEXT_FALSE=
34387 fi
34388
34389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34390   as_fn_error $? "conditional \"AMDEP\" was never defined.
34391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34392 fi
34393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34394   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34396 fi
34397 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34398   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34400 fi
34401 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34402   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34404 fi
34405 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
34406   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
34407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34408 fi
34409 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
34410   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
34411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34412 fi
34413 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
34414   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
34415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34416 fi
34417 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
34418   as_fn_error $? "conditional \"USING_CL\" was never defined.
34419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34420 fi
34421 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34422   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34424 fi
34425 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34426   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34428 fi
34429 LT_CONFIG_H=config/config.h
34430
34431     _ltdl_libobjs=
34432     _ltdl_ltlibobjs=
34433     if test -n "$_LT_LIBOBJS"; then
34434       # Remove the extension.
34435       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34436       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34437         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34438         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34439       done
34440     fi
34441     ltdl_LIBOBJS=$_ltdl_libobjs
34442
34443     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34444
34445
34446 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
34447   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
34448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34449 fi
34450 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
34451   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
34452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34453 fi
34454 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
34455   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
34456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34457 fi
34458 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34459   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34461 fi
34462
34463 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34464   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34466 fi
34467 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
34468   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
34469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34470 fi
34471 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
34472   as_fn_error $? "conditional \"HasUMEM\" was never defined.
34473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34474 fi
34475 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
34476   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
34477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34478 fi
34479 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
34480   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
34481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34482 fi
34483 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
34484   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
34485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34486 fi
34487 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
34488   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
34489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34490 fi
34491 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
34492   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
34493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34494 fi
34495 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
34496   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
34497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34498 fi
34499 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
34500   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
34501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34502 fi
34503 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
34504   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
34505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34506 fi
34507 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
34508   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
34509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34510 fi
34511 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
34512   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
34513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34514 fi
34515 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
34516   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
34517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34518 fi
34519 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
34520   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
34521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34522 fi
34523 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
34524   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
34525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34526 fi
34527 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
34528   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
34529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34530 fi
34531 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
34532   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
34533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34534 fi
34535 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
34536   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
34537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34538 fi
34539 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
34540   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
34541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34542 fi
34543 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34544   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34546 fi
34547 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
34548   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
34549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34550 fi
34551 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
34552   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
34553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34554 fi
34555 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
34556   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
34557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34558 fi
34559 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
34560   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
34561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34562 fi
34563 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
34564   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
34565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34566 fi
34567 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34568   as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34570 fi
34571 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
34572   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
34573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34574 fi
34575 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
34576   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
34577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34578 fi
34579 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
34580   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
34581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34582 fi
34583 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
34584   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
34585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34586 fi
34587 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
34588   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
34589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34590 fi
34591 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
34592   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34594 fi
34595 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
34596   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
34597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34598 fi
34599 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
34600   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
34601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34602 fi
34603
34604 : "${CONFIG_STATUS=./config.status}"
34605 ac_write_fail=0
34606 ac_clean_files_save=$ac_clean_files
34607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34609 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34610 as_write_fail=0
34611 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34612 #! $SHELL
34613 # Generated by $as_me.
34614 # Run this file to recreate the current configuration.
34615 # Compiler output produced by configure, useful for debugging
34616 # configure, is in config.log if it exists.
34617
34618 debug=false
34619 ac_cs_recheck=false
34620 ac_cs_silent=false
34621
34622 SHELL=\${CONFIG_SHELL-$SHELL}
34623 export SHELL
34624 _ASEOF
34625 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34626 ## -------------------- ##
34627 ## M4sh Initialization. ##
34628 ## -------------------- ##
34629
34630 # Be more Bourne compatible
34631 DUALCASE=1; export DUALCASE # for MKS sh
34632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34633   emulate sh
34634   NULLCMD=:
34635   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34636   # is contrary to our usage.  Disable this feature.
34637   alias -g '${1+"$@"}'='"$@"'
34638   setopt NO_GLOB_SUBST
34639 else
34640   case `(set -o) 2>/dev/null` in #(
34641   *posix*) :
34642     set -o posix ;; #(
34643   *) :
34644      ;;
34645 esac
34646 fi
34647
34648
34649 as_nl='
34650 '
34651 export as_nl
34652 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34653 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34656 # Prefer a ksh shell builtin over an external printf program on Solaris,
34657 # but without wasting forks for bash or zsh.
34658 if test -z "$BASH_VERSION$ZSH_VERSION" \
34659     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34660   as_echo='print -r --'
34661   as_echo_n='print -rn --'
34662 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34663   as_echo='printf %s\n'
34664   as_echo_n='printf %s'
34665 else
34666   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34667     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34668     as_echo_n='/usr/ucb/echo -n'
34669   else
34670     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34671     as_echo_n_body='eval
34672       arg=$1;
34673       case $arg in #(
34674       *"$as_nl"*)
34675         expr "X$arg" : "X\\(.*\\)$as_nl";
34676         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34677       esac;
34678       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34679     '
34680     export as_echo_n_body
34681     as_echo_n='sh -c $as_echo_n_body as_echo'
34682   fi
34683   export as_echo_body
34684   as_echo='sh -c $as_echo_body as_echo'
34685 fi
34686
34687 # The user is always right.
34688 if test "${PATH_SEPARATOR+set}" != set; then
34689   PATH_SEPARATOR=:
34690   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34691     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34692       PATH_SEPARATOR=';'
34693   }
34694 fi
34695
34696
34697 # IFS
34698 # We need space, tab and new line, in precisely that order.  Quoting is
34699 # there to prevent editors from complaining about space-tab.
34700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34701 # splitting by setting IFS to empty value.)
34702 IFS=" ""        $as_nl"
34703
34704 # Find who we are.  Look in the path if we contain no directory separator.
34705 as_myself=
34706 case $0 in #((
34707   *[\\/]* ) as_myself=$0 ;;
34708   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34709 for as_dir in $PATH
34710 do
34711   IFS=$as_save_IFS
34712   test -z "$as_dir" && as_dir=.
34713     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34714   done
34715 IFS=$as_save_IFS
34716
34717      ;;
34718 esac
34719 # We did not find ourselves, most probably we were run as `sh COMMAND'
34720 # in which case we are not to be found in the path.
34721 if test "x$as_myself" = x; then
34722   as_myself=$0
34723 fi
34724 if test ! -f "$as_myself"; then
34725   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34726   exit 1
34727 fi
34728
34729 # Unset variables that we do not need and which cause bugs (e.g. in
34730 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
34731 # suppresses any "Segmentation fault" message there.  '((' could
34732 # trigger a bug in pdksh 5.2.14.
34733 for as_var in BASH_ENV ENV MAIL MAILPATH
34734 do eval test x\${$as_var+set} = xset \
34735   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34736 done
34737 PS1='$ '
34738 PS2='> '
34739 PS4='+ '
34740
34741 # NLS nuisances.
34742 LC_ALL=C
34743 export LC_ALL
34744 LANGUAGE=C
34745 export LANGUAGE
34746
34747 # CDPATH.
34748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34749
34750
34751 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34752 # ----------------------------------------
34753 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34754 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34755 # script with STATUS, using 1 if that was 0.
34756 as_fn_error ()
34757 {
34758   as_status=$1; test $as_status -eq 0 && as_status=1
34759   if test "$4"; then
34760     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34761     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34762   fi
34763   $as_echo "$as_me: error: $2" >&2
34764   as_fn_exit $as_status
34765 } # as_fn_error
34766
34767
34768 # as_fn_set_status STATUS
34769 # -----------------------
34770 # Set $? to STATUS, without forking.
34771 as_fn_set_status ()
34772 {
34773   return $1
34774 } # as_fn_set_status
34775
34776 # as_fn_exit STATUS
34777 # -----------------
34778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34779 as_fn_exit ()
34780 {
34781   set +e
34782   as_fn_set_status $1
34783   exit $1
34784 } # as_fn_exit
34785
34786 # as_fn_unset VAR
34787 # ---------------
34788 # Portably unset VAR.
34789 as_fn_unset ()
34790 {
34791   { eval $1=; unset $1;}
34792 }
34793 as_unset=as_fn_unset
34794 # as_fn_append VAR VALUE
34795 # ----------------------
34796 # Append the text in VALUE to the end of the definition contained in VAR. Take
34797 # advantage of any shell optimizations that allow amortized linear growth over
34798 # repeated appends, instead of the typical quadratic growth present in naive
34799 # implementations.
34800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34801   eval 'as_fn_append ()
34802   {
34803     eval $1+=\$2
34804   }'
34805 else
34806   as_fn_append ()
34807   {
34808     eval $1=\$$1\$2
34809   }
34810 fi # as_fn_append
34811
34812 # as_fn_arith ARG...
34813 # ------------------
34814 # Perform arithmetic evaluation on the ARGs, and store the result in the
34815 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34816 # must be portable across $(()) and expr.
34817 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34818   eval 'as_fn_arith ()
34819   {
34820     as_val=$(( $* ))
34821   }'
34822 else
34823   as_fn_arith ()
34824   {
34825     as_val=`expr "$@" || test $? -eq 1`
34826   }
34827 fi # as_fn_arith
34828
34829
34830 if expr a : '\(a\)' >/dev/null 2>&1 &&
34831    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34832   as_expr=expr
34833 else
34834   as_expr=false
34835 fi
34836
34837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34838   as_basename=basename
34839 else
34840   as_basename=false
34841 fi
34842
34843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34844   as_dirname=dirname
34845 else
34846   as_dirname=false
34847 fi
34848
34849 as_me=`$as_basename -- "$0" ||
34850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34851          X"$0" : 'X\(//\)$' \| \
34852          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34853 $as_echo X/"$0" |
34854     sed '/^.*\/\([^/][^/]*\)\/*$/{
34855             s//\1/
34856             q
34857           }
34858           /^X\/\(\/\/\)$/{
34859             s//\1/
34860             q
34861           }
34862           /^X\/\(\/\).*/{
34863             s//\1/
34864             q
34865           }
34866           s/.*/./; q'`
34867
34868 # Avoid depending upon Character Ranges.
34869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34872 as_cr_digits='0123456789'
34873 as_cr_alnum=$as_cr_Letters$as_cr_digits
34874
34875 ECHO_C= ECHO_N= ECHO_T=
34876 case `echo -n x` in #(((((
34877 -n*)
34878   case `echo 'xy\c'` in
34879   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34880   xy)  ECHO_C='\c';;
34881   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
34882        ECHO_T=' ';;
34883   esac;;
34884 *)
34885   ECHO_N='-n';;
34886 esac
34887
34888 rm -f conf$$ conf$$.exe conf$$.file
34889 if test -d conf$$.dir; then
34890   rm -f conf$$.dir/conf$$.file
34891 else
34892   rm -f conf$$.dir
34893   mkdir conf$$.dir 2>/dev/null
34894 fi
34895 if (echo >conf$$.file) 2>/dev/null; then
34896   if ln -s conf$$.file conf$$ 2>/dev/null; then
34897     as_ln_s='ln -s'
34898     # ... but there are two gotchas:
34899     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34900     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34901     # In both cases, we have to default to `cp -p'.
34902     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34903       as_ln_s='cp -p'
34904   elif ln conf$$.file conf$$ 2>/dev/null; then
34905     as_ln_s=ln
34906   else
34907     as_ln_s='cp -p'
34908   fi
34909 else
34910   as_ln_s='cp -p'
34911 fi
34912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34913 rmdir conf$$.dir 2>/dev/null
34914
34915
34916 # as_fn_mkdir_p
34917 # -------------
34918 # Create "$as_dir" as a directory, including parents if necessary.
34919 as_fn_mkdir_p ()
34920 {
34921
34922   case $as_dir in #(
34923   -*) as_dir=./$as_dir;;
34924   esac
34925   test -d "$as_dir" || eval $as_mkdir_p || {
34926     as_dirs=
34927     while :; do
34928       case $as_dir in #(
34929       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34930       *) as_qdir=$as_dir;;
34931       esac
34932       as_dirs="'$as_qdir' $as_dirs"
34933       as_dir=`$as_dirname -- "$as_dir" ||
34934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34935          X"$as_dir" : 'X\(//\)[^/]' \| \
34936          X"$as_dir" : 'X\(//\)$' \| \
34937          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34938 $as_echo X"$as_dir" |
34939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34940             s//\1/
34941             q
34942           }
34943           /^X\(\/\/\)[^/].*/{
34944             s//\1/
34945             q
34946           }
34947           /^X\(\/\/\)$/{
34948             s//\1/
34949             q
34950           }
34951           /^X\(\/\).*/{
34952             s//\1/
34953             q
34954           }
34955           s/.*/./; q'`
34956       test -d "$as_dir" && break
34957     done
34958     test -z "$as_dirs" || eval "mkdir $as_dirs"
34959   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34960
34961
34962 } # as_fn_mkdir_p
34963 if mkdir -p . 2>/dev/null; then
34964   as_mkdir_p='mkdir -p "$as_dir"'
34965 else
34966   test -d ./-p && rmdir ./-p
34967   as_mkdir_p=false
34968 fi
34969
34970 if test -x / >/dev/null 2>&1; then
34971   as_test_x='test -x'
34972 else
34973   if ls -dL / >/dev/null 2>&1; then
34974     as_ls_L_option=L
34975   else
34976     as_ls_L_option=
34977   fi
34978   as_test_x='
34979     eval sh -c '\''
34980       if test -d "$1"; then
34981         test -d "$1/.";
34982       else
34983         case $1 in #(
34984         -*)set "./$1";;
34985         esac;
34986         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34987         ???[sx]*):;;*)false;;esac;fi
34988     '\'' sh
34989   '
34990 fi
34991 as_executable_p=$as_test_x
34992
34993 # Sed expression to map a string onto a valid CPP name.
34994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34995
34996 # Sed expression to map a string onto a valid variable name.
34997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34998
34999
35000 exec 6>&1
35001 ## ----------------------------------- ##
35002 ## Main body of $CONFIG_STATUS script. ##
35003 ## ----------------------------------- ##
35004 _ASEOF
35005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35006
35007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35008 # Save the log message, to keep $0 and so on meaningful, and to
35009 # report actual input values of CONFIG_FILES etc. instead of their
35010 # values after options handling.
35011 ac_log="
35012 This file was extended by ImageMagick $as_me 7.0.0, which was
35013 generated by GNU Autoconf 2.68.  Invocation command line was
35014
35015   CONFIG_FILES    = $CONFIG_FILES
35016   CONFIG_HEADERS  = $CONFIG_HEADERS
35017   CONFIG_LINKS    = $CONFIG_LINKS
35018   CONFIG_COMMANDS = $CONFIG_COMMANDS
35019   $ $0 $@
35020
35021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35022 "
35023
35024 _ACEOF
35025
35026 case $ac_config_files in *"
35027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35028 esac
35029
35030 case $ac_config_headers in *"
35031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35032 esac
35033
35034
35035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35036 # Files that config.status was made for.
35037 config_files="$ac_config_files"
35038 config_headers="$ac_config_headers"
35039 config_commands="$ac_config_commands"
35040
35041 _ACEOF
35042
35043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35044 ac_cs_usage="\
35045 \`$as_me' instantiates files and other configuration actions
35046 from templates according to the current configuration.  Unless the files
35047 and actions are specified as TAGs, all are instantiated by default.
35048
35049 Usage: $0 [OPTION]... [TAG]...
35050
35051   -h, --help       print this help, then exit
35052   -V, --version    print version number and configuration settings, then exit
35053       --config     print configuration, then exit
35054   -q, --quiet, --silent
35055                    do not print progress messages
35056   -d, --debug      don't remove temporary files
35057       --recheck    update $as_me by reconfiguring in the same conditions
35058       --file=FILE[:TEMPLATE]
35059                    instantiate the configuration file FILE
35060       --header=FILE[:TEMPLATE]
35061                    instantiate the configuration header FILE
35062
35063 Configuration files:
35064 $config_files
35065
35066 Configuration headers:
35067 $config_headers
35068
35069 Configuration commands:
35070 $config_commands
35071
35072 Report bugs to <http://www.imagemagick.org>."
35073
35074 _ACEOF
35075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35077 ac_cs_version="\\
35078 ImageMagick config.status 7.0.0
35079 configured by $0, generated by GNU Autoconf 2.68,
35080   with options \\"\$ac_cs_config\\"
35081
35082 Copyright (C) 2010 Free Software Foundation, Inc.
35083 This config.status script is free software; the Free Software Foundation
35084 gives unlimited permission to copy, distribute and modify it."
35085
35086 ac_pwd='$ac_pwd'
35087 srcdir='$srcdir'
35088 INSTALL='$INSTALL'
35089 MKDIR_P='$MKDIR_P'
35090 AWK='$AWK'
35091 test -n "\$AWK" || AWK=awk
35092 _ACEOF
35093
35094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35095 # The default lists apply if the user does not specify any file.
35096 ac_need_defaults=:
35097 while test $# != 0
35098 do
35099   case $1 in
35100   --*=?*)
35101     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35102     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35103     ac_shift=:
35104     ;;
35105   --*=)
35106     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35107     ac_optarg=
35108     ac_shift=:
35109     ;;
35110   *)
35111     ac_option=$1
35112     ac_optarg=$2
35113     ac_shift=shift
35114     ;;
35115   esac
35116
35117   case $ac_option in
35118   # Handling of the options.
35119   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35120     ac_cs_recheck=: ;;
35121   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35122     $as_echo "$ac_cs_version"; exit ;;
35123   --config | --confi | --conf | --con | --co | --c )
35124     $as_echo "$ac_cs_config"; exit ;;
35125   --debug | --debu | --deb | --de | --d | -d )
35126     debug=: ;;
35127   --file | --fil | --fi | --f )
35128     $ac_shift
35129     case $ac_optarg in
35130     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35131     '') as_fn_error $? "missing file argument" ;;
35132     esac
35133     as_fn_append CONFIG_FILES " '$ac_optarg'"
35134     ac_need_defaults=false;;
35135   --header | --heade | --head | --hea )
35136     $ac_shift
35137     case $ac_optarg in
35138     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35139     esac
35140     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35141     ac_need_defaults=false;;
35142   --he | --h)
35143     # Conflict between --help and --header
35144     as_fn_error $? "ambiguous option: \`$1'
35145 Try \`$0 --help' for more information.";;
35146   --help | --hel | -h )
35147     $as_echo "$ac_cs_usage"; exit ;;
35148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35149   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35150     ac_cs_silent=: ;;
35151
35152   # This is an error.
35153   -*) as_fn_error $? "unrecognized option: \`$1'
35154 Try \`$0 --help' for more information." ;;
35155
35156   *) as_fn_append ac_config_targets " $1"
35157      ac_need_defaults=false ;;
35158
35159   esac
35160   shift
35161 done
35162
35163 ac_configure_extra_args=
35164
35165 if $ac_cs_silent; then
35166   exec 6>/dev/null
35167   ac_configure_extra_args="$ac_configure_extra_args --silent"
35168 fi
35169
35170 _ACEOF
35171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172 if \$ac_cs_recheck; then
35173   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35174   shift
35175   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35176   CONFIG_SHELL='$SHELL'
35177   export CONFIG_SHELL
35178   exec "\$@"
35179 fi
35180
35181 _ACEOF
35182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35183 exec 5>>config.log
35184 {
35185   echo
35186   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35187 ## Running $as_me. ##
35188 _ASBOX
35189   $as_echo "$ac_log"
35190 } >&5
35191
35192 _ACEOF
35193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35194 #
35195 # INIT-COMMANDS
35196 #
35197 PACKAGE="$PACKAGE"
35198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35199
35200
35201 # The HP-UX ksh and POSIX shell print the target directory to stdout
35202 # if CDPATH is set.
35203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35204
35205 sed_quote_subst='$sed_quote_subst'
35206 double_quote_subst='$double_quote_subst'
35207 delay_variable_subst='$delay_variable_subst'
35208 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35209 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35210 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35211 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35212 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35213 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35214 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35216 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35217 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35218 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35219 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35220 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35221 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35222 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35223 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35224 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35225 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35226 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35227 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35228 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35229 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35230 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35243 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35244 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35245 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35246 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35247 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35250 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35251 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35252 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35253 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35254 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35255 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35256 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35257 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35258 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35259 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35260 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35261 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35263 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35264 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"`'
35265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35267 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35268 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35269 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35270 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35271 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35272 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35273 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35274 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35275 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35276 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35277 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35278 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35279 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35280 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35281 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35282 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35283 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35284 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35285 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35286 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35287 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35288 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35289 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35290 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35291 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35292 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35293 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35294 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35295 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35296 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35297 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35298 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35299 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35332 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35333 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35334 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35335 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35336 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35337 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35338 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35339 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35340 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35341 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35342 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35343 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35344 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35345 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35346 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35347 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35348 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35349 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35350 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35351 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35352 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35353 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35354 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35355 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35356 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35357 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35358 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35359 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35360 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35361 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35362 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35363 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35364 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35365 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35366 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35367 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35368 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35369 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35370 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35371 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35372 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35373 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35374 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35375 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35376 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35377 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35378 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35379 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35380 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35381 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35382 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35383 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35384 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35385 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35386 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35387 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35388 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35389 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35390 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35391 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35392 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35393 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35394
35395 LTCC='$LTCC'
35396 LTCFLAGS='$LTCFLAGS'
35397 compiler='$compiler_DEFAULT'
35398
35399 # A function that is used when there is no print builtin or printf.
35400 func_fallback_echo ()
35401 {
35402   eval 'cat <<_LTECHO_EOF
35403 \$1
35404 _LTECHO_EOF'
35405 }
35406
35407 # Quote evaled strings.
35408 for var in SED \
35409 GREP \
35410 EGREP \
35411 FGREP \
35412 SHELL \
35413 ECHO \
35414 LD \
35415 AS \
35416 DLLTOOL \
35417 OBJDUMP \
35418 NM \
35419 LN_S \
35420 lt_SP2NL \
35421 lt_NL2SP \
35422 reload_flag \
35423 deplibs_check_method \
35424 file_magic_cmd \
35425 file_magic_glob \
35426 want_nocaseglob \
35427 sharedlib_from_linklib_cmd \
35428 AR \
35429 AR_FLAGS \
35430 archiver_list_spec \
35431 STRIP \
35432 RANLIB \
35433 CC \
35434 CFLAGS \
35435 compiler \
35436 lt_cv_sys_global_symbol_pipe \
35437 lt_cv_sys_global_symbol_to_cdecl \
35438 lt_cv_sys_global_symbol_to_c_name_address \
35439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35440 nm_file_list_spec \
35441 lt_prog_compiler_no_builtin_flag \
35442 lt_prog_compiler_pic \
35443 lt_prog_compiler_wl \
35444 lt_prog_compiler_static \
35445 lt_cv_prog_compiler_c_o \
35446 need_locks \
35447 MANIFEST_TOOL \
35448 DSYMUTIL \
35449 NMEDIT \
35450 LIPO \
35451 OTOOL \
35452 OTOOL64 \
35453 shrext_cmds \
35454 export_dynamic_flag_spec \
35455 whole_archive_flag_spec \
35456 compiler_needs_object \
35457 with_gnu_ld \
35458 allow_undefined_flag \
35459 no_undefined_flag \
35460 hardcode_libdir_flag_spec \
35461 hardcode_libdir_flag_spec_ld \
35462 hardcode_libdir_separator \
35463 exclude_expsyms \
35464 include_expsyms \
35465 file_list_spec \
35466 variables_saved_for_relink \
35467 libname_spec \
35468 library_names_spec \
35469 soname_spec \
35470 install_override_mode \
35471 finish_eval \
35472 old_striplib \
35473 striplib \
35474 compiler_lib_search_dirs \
35475 predep_objects \
35476 postdep_objects \
35477 predeps \
35478 postdeps \
35479 compiler_lib_search_path \
35480 LD_CXX \
35481 reload_flag_CXX \
35482 compiler_CXX \
35483 lt_prog_compiler_no_builtin_flag_CXX \
35484 lt_prog_compiler_pic_CXX \
35485 lt_prog_compiler_wl_CXX \
35486 lt_prog_compiler_static_CXX \
35487 lt_cv_prog_compiler_c_o_CXX \
35488 export_dynamic_flag_spec_CXX \
35489 whole_archive_flag_spec_CXX \
35490 compiler_needs_object_CXX \
35491 with_gnu_ld_CXX \
35492 allow_undefined_flag_CXX \
35493 no_undefined_flag_CXX \
35494 hardcode_libdir_flag_spec_CXX \
35495 hardcode_libdir_flag_spec_ld_CXX \
35496 hardcode_libdir_separator_CXX \
35497 exclude_expsyms_CXX \
35498 include_expsyms_CXX \
35499 file_list_spec_CXX \
35500 compiler_lib_search_dirs_CXX \
35501 predep_objects_CXX \
35502 postdep_objects_CXX \
35503 predeps_CXX \
35504 postdeps_CXX \
35505 compiler_lib_search_path_CXX; do
35506     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35507     *[\\\\\\\`\\"\\\$]*)
35508       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35509       ;;
35510     *)
35511       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35512       ;;
35513     esac
35514 done
35515
35516 # Double-quote double-evaled strings.
35517 for var in reload_cmds \
35518 old_postinstall_cmds \
35519 old_postuninstall_cmds \
35520 old_archive_cmds \
35521 extract_expsyms_cmds \
35522 old_archive_from_new_cmds \
35523 old_archive_from_expsyms_cmds \
35524 archive_cmds \
35525 archive_expsym_cmds \
35526 module_cmds \
35527 module_expsym_cmds \
35528 export_symbols_cmds \
35529 prelink_cmds \
35530 postlink_cmds \
35531 postinstall_cmds \
35532 postuninstall_cmds \
35533 finish_cmds \
35534 sys_lib_search_path_spec \
35535 sys_lib_dlsearch_path_spec \
35536 reload_cmds_CXX \
35537 old_archive_cmds_CXX \
35538 old_archive_from_new_cmds_CXX \
35539 old_archive_from_expsyms_cmds_CXX \
35540 archive_cmds_CXX \
35541 archive_expsym_cmds_CXX \
35542 module_cmds_CXX \
35543 module_expsym_cmds_CXX \
35544 export_symbols_cmds_CXX \
35545 prelink_cmds_CXX \
35546 postlink_cmds_CXX; do
35547     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35548     *[\\\\\\\`\\"\\\$]*)
35549       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35550       ;;
35551     *)
35552       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35553       ;;
35554     esac
35555 done
35556
35557 ac_aux_dir='$ac_aux_dir'
35558 xsi_shell='$xsi_shell'
35559 lt_shell_append='$lt_shell_append'
35560
35561 # See if we are running on zsh, and set the options which allow our
35562 # commands through without removal of \ escapes INIT.
35563 if test -n "\${ZSH_VERSION+set}" ; then
35564    setopt NO_GLOB_SUBST
35565 fi
35566
35567
35568     PACKAGE='$PACKAGE'
35569     VERSION='$VERSION'
35570     TIMESTAMP='$TIMESTAMP'
35571     RM='$RM'
35572     ofile='$ofile'
35573
35574
35575
35576
35577
35578
35579 _ACEOF
35580
35581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35582
35583 # Handling of arguments.
35584 for ac_config_target in $ac_config_targets
35585 do
35586   case $ac_config_target in
35587     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
35588     "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
35589     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35590     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35591     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35592     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35593     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
35594     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
35595     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35596     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35597     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35598     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35599     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35600     "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
35601     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35602     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35603     "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35604     "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35605     "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
35606     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35607     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35608     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35609     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35610     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35611     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35612     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35613     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35614     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35615     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35616     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35617     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35618     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35619     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35620     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35621     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35622     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35623     "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35624     "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
35625     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35626     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35627     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35628     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35629     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35630     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35631     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35632     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35633     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35634
35635   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35636   esac
35637 done
35638
35639
35640 # If the user did not use the arguments to specify the items to instantiate,
35641 # then the envvar interface is used.  Set only those that are not.
35642 # We use the long form for the default assignment because of an extremely
35643 # bizarre bug on SunOS 4.1.3.
35644 if $ac_need_defaults; then
35645   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35646   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35648 fi
35649
35650 # Have a temporary directory for convenience.  Make it in the build tree
35651 # simply because there is no reason against having it here, and in addition,
35652 # creating and moving files from /tmp can sometimes cause problems.
35653 # Hook for its removal unless debugging.
35654 # Note that there is a small window in which the directory will not be cleaned:
35655 # after its creation but before its name has been assigned to `$tmp'.
35656 $debug ||
35657 {
35658   tmp= ac_tmp=
35659   trap 'exit_status=$?
35660   : "${ac_tmp:=$tmp}"
35661   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35662 ' 0
35663   trap 'as_fn_exit 1' 1 2 13 15
35664 }
35665 # Create a (secure) tmp directory for tmp files.
35666
35667 {
35668   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35669   test -d "$tmp"
35670 }  ||
35671 {
35672   tmp=./conf$$-$RANDOM
35673   (umask 077 && mkdir "$tmp")
35674 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35675 ac_tmp=$tmp
35676
35677 # Set up the scripts for CONFIG_FILES section.
35678 # No need to generate them if there are no CONFIG_FILES.
35679 # This happens for instance with `./config.status config.h'.
35680 if test -n "$CONFIG_FILES"; then
35681
35682
35683 ac_cr=`echo X | tr X '\015'`
35684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35685 # But we know of no other shell where ac_cr would be empty at this
35686 # point, so we can use a bashism as a fallback.
35687 if test "x$ac_cr" = x; then
35688   eval ac_cr=\$\'\\r\'
35689 fi
35690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35692   ac_cs_awk_cr='\\r'
35693 else
35694   ac_cs_awk_cr=$ac_cr
35695 fi
35696
35697 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35698 _ACEOF
35699
35700
35701 {
35702   echo "cat >conf$$subs.awk <<_ACEOF" &&
35703   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35704   echo "_ACEOF"
35705 } >conf$$subs.sh ||
35706   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35708 ac_delim='%!_!# '
35709 for ac_last_try in false false false false false :; do
35710   . ./conf$$subs.sh ||
35711     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35712
35713   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35714   if test $ac_delim_n = $ac_delim_num; then
35715     break
35716   elif $ac_last_try; then
35717     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35718   else
35719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35720   fi
35721 done
35722 rm -f conf$$subs.sh
35723
35724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35726 _ACEOF
35727 sed -n '
35728 h
35729 s/^/S["/; s/!.*/"]=/
35730 p
35731 g
35732 s/^[^!]*!//
35733 :repl
35734 t repl
35735 s/'"$ac_delim"'$//
35736 t delim
35737 :nl
35738 h
35739 s/\(.\{148\}\)..*/\1/
35740 t more1
35741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35742 p
35743 n
35744 b repl
35745 :more1
35746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35747 p
35748 g
35749 s/.\{148\}//
35750 t nl
35751 :delim
35752 h
35753 s/\(.\{148\}\)..*/\1/
35754 t more2
35755 s/["\\]/\\&/g; s/^/"/; s/$/"/
35756 p
35757 b
35758 :more2
35759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35760 p
35761 g
35762 s/.\{148\}//
35763 t delim
35764 ' <conf$$subs.awk | sed '
35765 /^[^""]/{
35766   N
35767   s/\n//
35768 }
35769 ' >>$CONFIG_STATUS || ac_write_fail=1
35770 rm -f conf$$subs.awk
35771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35772 _ACAWK
35773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35774   for (key in S) S_is_set[key] = 1
35775   FS = "\a"
35776
35777 }
35778 {
35779   line = $ 0
35780   nfields = split(line, field, "@")
35781   substed = 0
35782   len = length(field[1])
35783   for (i = 2; i < nfields; i++) {
35784     key = field[i]
35785     keylen = length(key)
35786     if (S_is_set[key]) {
35787       value = S[key]
35788       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35789       len += length(value) + length(field[++i])
35790       substed = 1
35791     } else
35792       len += 1 + keylen
35793   }
35794
35795   print line
35796 }
35797
35798 _ACAWK
35799 _ACEOF
35800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35802   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35803 else
35804   cat
35805 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35806   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35807 _ACEOF
35808
35809 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35810 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35811 # trailing colons and then remove the whole line if VPATH becomes empty
35812 # (actually we leave an empty line to preserve line numbers).
35813 if test "x$srcdir" = x.; then
35814   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
35815 h
35816 s///
35817 s/^/:/
35818 s/[      ]*$/:/
35819 s/:\$(srcdir):/:/g
35820 s/:\${srcdir}:/:/g
35821 s/:@srcdir@:/:/g
35822 s/^:*//
35823 s/:*$//
35824 x
35825 s/\(=[   ]*\).*/\1/
35826 G
35827 s/\n//
35828 s/^[^=]*=[       ]*$//
35829 }'
35830 fi
35831
35832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35833 fi # test -n "$CONFIG_FILES"
35834
35835 # Set up the scripts for CONFIG_HEADERS section.
35836 # No need to generate them if there are no CONFIG_HEADERS.
35837 # This happens for instance with `./config.status Makefile'.
35838 if test -n "$CONFIG_HEADERS"; then
35839 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35840 BEGIN {
35841 _ACEOF
35842
35843 # Transform confdefs.h into an awk script `defines.awk', embedded as
35844 # here-document in config.status, that substitutes the proper values into
35845 # config.h.in to produce config.h.
35846
35847 # Create a delimiter string that does not exist in confdefs.h, to ease
35848 # handling of long lines.
35849 ac_delim='%!_!# '
35850 for ac_last_try in false false :; do
35851   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35852   if test -z "$ac_tt"; then
35853     break
35854   elif $ac_last_try; then
35855     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35856   else
35857     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35858   fi
35859 done
35860
35861 # For the awk script, D is an array of macro values keyed by name,
35862 # likewise P contains macro parameters if any.  Preserve backslash
35863 # newline sequences.
35864
35865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35866 sed -n '
35867 s/.\{148\}/&'"$ac_delim"'/g
35868 t rset
35869 :rset
35870 s/^[     ]*#[    ]*define[       ][      ]*/ /
35871 t def
35872 d
35873 :def
35874 s/\\$//
35875 t bsnl
35876 s/["\\]/\\&/g
35877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35878 D["\1"]=" \3"/p
35879 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
35880 d
35881 :bsnl
35882 s/["\\]/\\&/g
35883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
35884 D["\1"]=" \3\\\\\\n"\\/p
35885 t cont
35886 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35887 t cont
35888 d
35889 :cont
35890 n
35891 s/.\{148\}/&'"$ac_delim"'/g
35892 t clear
35893 :clear
35894 s/\\$//
35895 t bsnlc
35896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35897 d
35898 :bsnlc
35899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35900 b cont
35901 ' <confdefs.h | sed '
35902 s/'"$ac_delim"'/"\\\
35903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35904
35905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35906   for (key in D) D_is_set[key] = 1
35907   FS = "\a"
35908 }
35909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35910   line = \$ 0
35911   split(line, arg, " ")
35912   if (arg[1] == "#") {
35913     defundef = arg[2]
35914     mac1 = arg[3]
35915   } else {
35916     defundef = substr(arg[1], 2)
35917     mac1 = arg[2]
35918   }
35919   split(mac1, mac2, "(") #)
35920   macro = mac2[1]
35921   prefix = substr(line, 1, index(line, defundef) - 1)
35922   if (D_is_set[macro]) {
35923     # Preserve the white space surrounding the "#".
35924     print prefix "define", macro P[macro] D[macro]
35925     next
35926   } else {
35927     # Replace #undef with comments.  This is necessary, for example,
35928     # in the case of _POSIX_SOURCE, which is predefined and required
35929     # on some systems where configure will not decide to define it.
35930     if (defundef == "undef") {
35931       print "/*", prefix defundef, macro, "*/"
35932       next
35933     }
35934   }
35935 }
35936 { print }
35937 _ACAWK
35938 _ACEOF
35939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35940   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35941 fi # test -n "$CONFIG_HEADERS"
35942
35943
35944 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
35945 shift
35946 for ac_tag
35947 do
35948   case $ac_tag in
35949   :[FHLC]) ac_mode=$ac_tag; continue;;
35950   esac
35951   case $ac_mode$ac_tag in
35952   :[FHL]*:*);;
35953   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35954   :[FH]-) ac_tag=-:-;;
35955   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35956   esac
35957   ac_save_IFS=$IFS
35958   IFS=:
35959   set x $ac_tag
35960   IFS=$ac_save_IFS
35961   shift
35962   ac_file=$1
35963   shift
35964
35965   case $ac_mode in
35966   :L) ac_source=$1;;
35967   :[FH])
35968     ac_file_inputs=
35969     for ac_f
35970     do
35971       case $ac_f in
35972       -) ac_f="$ac_tmp/stdin";;
35973       *) # Look for the file first in the build tree, then in the source tree
35974          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35975          # because $ac_f cannot contain `:'.
35976          test -f "$ac_f" ||
35977            case $ac_f in
35978            [\\/$]*) false;;
35979            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35980            esac ||
35981            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35982       esac
35983       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35984       as_fn_append ac_file_inputs " '$ac_f'"
35985     done
35986
35987     # Let's still pretend it is `configure' which instantiates (i.e., don't
35988     # use $as_me), people would be surprised to read:
35989     #    /* config.h.  Generated by config.status.  */
35990     configure_input='Generated from '`
35991           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35992         `' by configure.'
35993     if test x"$ac_file" != x-; then
35994       configure_input="$ac_file.  $configure_input"
35995       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35996 $as_echo "$as_me: creating $ac_file" >&6;}
35997     fi
35998     # Neutralize special characters interpreted by sed in replacement strings.
35999     case $configure_input in #(
36000     *\&* | *\|* | *\\* )
36001        ac_sed_conf_input=`$as_echo "$configure_input" |
36002        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36003     *) ac_sed_conf_input=$configure_input;;
36004     esac
36005
36006     case $ac_tag in
36007     *:-:* | *:-) cat >"$ac_tmp/stdin" \
36008       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36009     esac
36010     ;;
36011   esac
36012
36013   ac_dir=`$as_dirname -- "$ac_file" ||
36014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36015          X"$ac_file" : 'X\(//\)[^/]' \| \
36016          X"$ac_file" : 'X\(//\)$' \| \
36017          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36018 $as_echo X"$ac_file" |
36019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36020             s//\1/
36021             q
36022           }
36023           /^X\(\/\/\)[^/].*/{
36024             s//\1/
36025             q
36026           }
36027           /^X\(\/\/\)$/{
36028             s//\1/
36029             q
36030           }
36031           /^X\(\/\).*/{
36032             s//\1/
36033             q
36034           }
36035           s/.*/./; q'`
36036   as_dir="$ac_dir"; as_fn_mkdir_p
36037   ac_builddir=.
36038
36039 case "$ac_dir" in
36040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36041 *)
36042   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36043   # A ".." for each directory in $ac_dir_suffix.
36044   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36045   case $ac_top_builddir_sub in
36046   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36047   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36048   esac ;;
36049 esac
36050 ac_abs_top_builddir=$ac_pwd
36051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36052 # for backward compatibility:
36053 ac_top_builddir=$ac_top_build_prefix
36054
36055 case $srcdir in
36056   .)  # We are building in place.
36057     ac_srcdir=.
36058     ac_top_srcdir=$ac_top_builddir_sub
36059     ac_abs_top_srcdir=$ac_pwd ;;
36060   [\\/]* | ?:[\\/]* )  # Absolute name.
36061     ac_srcdir=$srcdir$ac_dir_suffix;
36062     ac_top_srcdir=$srcdir
36063     ac_abs_top_srcdir=$srcdir ;;
36064   *) # Relative name.
36065     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36066     ac_top_srcdir=$ac_top_build_prefix$srcdir
36067     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36068 esac
36069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36070
36071
36072   case $ac_mode in
36073   :F)
36074   #
36075   # CONFIG_FILE
36076   #
36077
36078   case $INSTALL in
36079   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36080   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36081   esac
36082   ac_MKDIR_P=$MKDIR_P
36083   case $MKDIR_P in
36084   [\\/$]* | ?:[\\/]* ) ;;
36085   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36086   esac
36087 _ACEOF
36088
36089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36090 # If the template does not know about datarootdir, expand it.
36091 # FIXME: This hack should be removed a few years after 2.60.
36092 ac_datarootdir_hack=; ac_datarootdir_seen=
36093 ac_sed_dataroot='
36094 /datarootdir/ {
36095   p
36096   q
36097 }
36098 /@datadir@/p
36099 /@docdir@/p
36100 /@infodir@/p
36101 /@localedir@/p
36102 /@mandir@/p'
36103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36104 *datarootdir*) ac_datarootdir_seen=yes;;
36105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36108 _ACEOF
36109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36110   ac_datarootdir_hack='
36111   s&@datadir@&$datadir&g
36112   s&@docdir@&$docdir&g
36113   s&@infodir@&$infodir&g
36114   s&@localedir@&$localedir&g
36115   s&@mandir@&$mandir&g
36116   s&\\\${datarootdir}&$datarootdir&g' ;;
36117 esac
36118 _ACEOF
36119
36120 # Neutralize VPATH when `$srcdir' = `.'.
36121 # Shell code in configure.ac might set extrasub.
36122 # FIXME: do we really want to maintain this feature?
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 ac_sed_extra="$ac_vpsub
36125 $extrasub
36126 _ACEOF
36127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36128 :t
36129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36130 s|@configure_input@|$ac_sed_conf_input|;t t
36131 s&@top_builddir@&$ac_top_builddir_sub&;t t
36132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36133 s&@srcdir@&$ac_srcdir&;t t
36134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36135 s&@top_srcdir@&$ac_top_srcdir&;t t
36136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36137 s&@builddir@&$ac_builddir&;t t
36138 s&@abs_builddir@&$ac_abs_builddir&;t t
36139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36140 s&@INSTALL@&$ac_INSTALL&;t t
36141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36142 $ac_datarootdir_hack
36143 "
36144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36145   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36146
36147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36148   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36149   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
36150       "$ac_tmp/out"`; test -z "$ac_out"; } &&
36151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36152 which seems to be undefined.  Please make sure it is defined" >&5
36153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36154 which seems to be undefined.  Please make sure it is defined" >&2;}
36155
36156   rm -f "$ac_tmp/stdin"
36157   case $ac_file in
36158   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36159   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36160   esac \
36161   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36162  ;;
36163   :H)
36164   #
36165   # CONFIG_HEADER
36166   #
36167   if test x"$ac_file" != x-; then
36168     {
36169       $as_echo "/* $configure_input  */" \
36170       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36171     } >"$ac_tmp/config.h" \
36172       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36173     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36174       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36175 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36176     else
36177       rm -f "$ac_file"
36178       mv "$ac_tmp/config.h" "$ac_file" \
36179         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36180     fi
36181   else
36182     $as_echo "/* $configure_input  */" \
36183       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36184       || as_fn_error $? "could not create -" "$LINENO" 5
36185   fi
36186 # Compute "$ac_file"'s index in $config_headers.
36187 _am_arg="$ac_file"
36188 _am_stamp_count=1
36189 for _am_header in $config_headers :; do
36190   case $_am_header in
36191     $_am_arg | $_am_arg:* )
36192       break ;;
36193     * )
36194       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36195   esac
36196 done
36197 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36198 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36199          X"$_am_arg" : 'X\(//\)[^/]' \| \
36200          X"$_am_arg" : 'X\(//\)$' \| \
36201          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36202 $as_echo X"$_am_arg" |
36203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36204             s//\1/
36205             q
36206           }
36207           /^X\(\/\/\)[^/].*/{
36208             s//\1/
36209             q
36210           }
36211           /^X\(\/\/\)$/{
36212             s//\1/
36213             q
36214           }
36215           /^X\(\/\).*/{
36216             s//\1/
36217             q
36218           }
36219           s/.*/./; q'`/stamp-h$_am_stamp_count
36220  ;;
36221
36222   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36223 $as_echo "$as_me: executing $ac_file commands" >&6;}
36224  ;;
36225   esac
36226
36227
36228   case $ac_file$ac_mode in
36229     "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
36230 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36231 ac_prefix_conf_PKG=`echo MagickCore`
36232 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36233 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
36234 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36235 if test ".$ac_prefix_conf_INP" = "."; then
36236    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36237      case "$ac_file" in
36238         *.h) ac_prefix_conf_INP=$ac_file ;;
36239         *)
36240      esac
36241      test ".$ac_prefix_conf_INP" != "." && break
36242    done
36243 fi
36244 if test ".$ac_prefix_conf_INP" = "."; then
36245    case "$ac_prefix_conf_OUT" in
36246       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36247       ;;
36248       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36249       ;;
36250       *) ac_prefix_conf_INP=config.h
36251       ;;
36252    esac
36253 fi
36254 if test -z "$ac_prefix_conf_PKG" ; then
36255    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
36256 else
36257   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36258      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36259   fi fi
36260   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36261 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36262   if test -f $ac_prefix_conf_INP ; then
36263     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36264     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36265     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36266     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36267     $as_echo "#endif/" >> conftest.prefix
36268     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36269     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36270     $as_echo "#endif/" >> conftest.prefix
36271     # now executing _script on _DEF input to create _OUT output file
36272     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
36273     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36274     echo ' ' >>$tmp/pconfig.h
36275     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36276
36277     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36278     echo ' ' >>$tmp/pconfig.h
36279     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36280     echo "#endif" >>$tmp/pconfig.h
36281     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36282       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36283 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36284     else
36285       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36286 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36287          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36288          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36289          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36290 $as_echo X"$ac_prefix_conf_OUT" |
36291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36292             s//\1/
36293             q
36294           }
36295           /^X\(\/\/\)[^/].*/{
36296             s//\1/
36297             q
36298           }
36299           /^X\(\/\/\)$/{
36300             s//\1/
36301             q
36302           }
36303           /^X\(\/\).*/{
36304             s//\1/
36305             q
36306           }
36307           s/.*/./; q'`
36308       as_dir="$ac_dir"; as_fn_mkdir_p
36309       rm -f "$ac_prefix_conf_OUT"
36310       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36311     fi
36312     cp conftest.prefix _configs.sed
36313   else
36314     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
36315   fi
36316   rm -f conftest.*
36317 fi
36318  ;;
36319     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36320   # Autoconf 2.62 quotes --file arguments for eval, but not when files
36321   # are listed without --file.  Let's play safe and only enable the eval
36322   # if we detect the quoting.
36323   case $CONFIG_FILES in
36324   *\'*) eval set x "$CONFIG_FILES" ;;
36325   *)   set x $CONFIG_FILES ;;
36326   esac
36327   shift
36328   for mf
36329   do
36330     # Strip MF so we end up with the name of the file.
36331     mf=`echo "$mf" | sed -e 's/:.*$//'`
36332     # Check whether this is an Automake generated Makefile or not.
36333     # We used to match only the files named `Makefile.in', but
36334     # some people rename them; so instead we look at the file content.
36335     # Grep'ing the first line is not enough: some people post-process
36336     # each Makefile.in and add a new line on top of each file to say so.
36337     # Grep'ing the whole file is not good either: AIX grep has a line
36338     # limit of 2048, but all sed's we know have understand at least 4000.
36339     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36340       dirpart=`$as_dirname -- "$mf" ||
36341 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36342          X"$mf" : 'X\(//\)[^/]' \| \
36343          X"$mf" : 'X\(//\)$' \| \
36344          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36345 $as_echo X"$mf" |
36346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36347             s//\1/
36348             q
36349           }
36350           /^X\(\/\/\)[^/].*/{
36351             s//\1/
36352             q
36353           }
36354           /^X\(\/\/\)$/{
36355             s//\1/
36356             q
36357           }
36358           /^X\(\/\).*/{
36359             s//\1/
36360             q
36361           }
36362           s/.*/./; q'`
36363     else
36364       continue
36365     fi
36366     # Extract the definition of DEPDIR, am__include, and am__quote
36367     # from the Makefile without running `make'.
36368     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36369     test -z "$DEPDIR" && continue
36370     am__include=`sed -n 's/^am__include = //p' < "$mf"`
36371     test -z "am__include" && continue
36372     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36373     # When using ansi2knr, U may be empty or an underscore; expand it
36374     U=`sed -n 's/^U = //p' < "$mf"`
36375     # Find all dependency output files, they are included files with
36376     # $(DEPDIR) in their names.  We invoke sed twice because it is the
36377     # simplest approach to changing $(DEPDIR) to its actual value in the
36378     # expansion.
36379     for file in `sed -n "
36380       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36381          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36382       # Make sure the directory exists.
36383       test -f "$dirpart/$file" && continue
36384       fdir=`$as_dirname -- "$file" ||
36385 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36386          X"$file" : 'X\(//\)[^/]' \| \
36387          X"$file" : 'X\(//\)$' \| \
36388          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36389 $as_echo X"$file" |
36390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36391             s//\1/
36392             q
36393           }
36394           /^X\(\/\/\)[^/].*/{
36395             s//\1/
36396             q
36397           }
36398           /^X\(\/\/\)$/{
36399             s//\1/
36400             q
36401           }
36402           /^X\(\/\).*/{
36403             s//\1/
36404             q
36405           }
36406           s/.*/./; q'`
36407       as_dir=$dirpart/$fdir; as_fn_mkdir_p
36408       # echo "creating $dirpart/$file"
36409       echo '# dummy' > "$dirpart/$file"
36410     done
36411   done
36412 }
36413  ;;
36414     "libtool":C)
36415
36416     # See if we are running on zsh, and set the options which allow our
36417     # commands through without removal of \ escapes.
36418     if test -n "${ZSH_VERSION+set}" ; then
36419       setopt NO_GLOB_SUBST
36420     fi
36421
36422     cfgfile="${ofile}T"
36423     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36424     $RM "$cfgfile"
36425
36426     cat <<_LT_EOF >> "$cfgfile"
36427 #! $SHELL
36428
36429 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36430 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36432 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36433 #
36434 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36435 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36436 #                 Inc.
36437 #   Written by Gordon Matzigkeit, 1996
36438 #
36439 #   This file is part of GNU Libtool.
36440 #
36441 # GNU Libtool is free software; you can redistribute it and/or
36442 # modify it under the terms of the GNU General Public License as
36443 # published by the Free Software Foundation; either version 2 of
36444 # the License, or (at your option) any later version.
36445 #
36446 # As a special exception to the GNU General Public License,
36447 # if you distribute this file as part of a program or library that
36448 # is built using GNU Libtool, you may include this file under the
36449 # same distribution terms that you use for the rest of that program.
36450 #
36451 # GNU Libtool is distributed in the hope that it will be useful,
36452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36454 # GNU General Public License for more details.
36455 #
36456 # You should have received a copy of the GNU General Public License
36457 # along with GNU Libtool; see the file COPYING.  If not, a copy
36458 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36459 # obtained by writing to the Free Software Foundation, Inc.,
36460 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36461
36462
36463 # The names of the tagged configurations supported by this script.
36464 available_tags="CXX "
36465
36466 # ### BEGIN LIBTOOL CONFIG
36467
36468 # A sed program that does not truncate output.
36469 SED=$lt_SED
36470
36471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36472 Xsed="\$SED -e 1s/^X//"
36473
36474 # A grep program that handles long lines.
36475 GREP=$lt_GREP
36476
36477 # An ERE matcher.
36478 EGREP=$lt_EGREP
36479
36480 # A literal string matcher.
36481 FGREP=$lt_FGREP
36482
36483 # Shell to use when invoking shell scripts.
36484 SHELL=$lt_SHELL
36485
36486 # An echo program that protects backslashes.
36487 ECHO=$lt_ECHO
36488
36489 # Which release of libtool.m4 was used?
36490 macro_version=$macro_version
36491 macro_revision=$macro_revision
36492
36493 # Assembler program.
36494 AS=$lt_AS
36495
36496 # DLL creation program.
36497 DLLTOOL=$lt_DLLTOOL
36498
36499 # Object dumper program.
36500 OBJDUMP=$lt_OBJDUMP
36501
36502 # Whether or not to build shared libraries.
36503 build_libtool_libs=$enable_shared
36504
36505 # Whether or not to build static libraries.
36506 build_old_libs=$enable_static
36507
36508 # What type of objects to build.
36509 pic_mode=$pic_mode
36510
36511 # Whether or not to optimize for fast installation.
36512 fast_install=$enable_fast_install
36513
36514 # The host system.
36515 host_alias=$host_alias
36516 host=$host
36517 host_os=$host_os
36518
36519 # The build system.
36520 build_alias=$build_alias
36521 build=$build
36522 build_os=$build_os
36523
36524 # A BSD- or MS-compatible name lister.
36525 NM=$lt_NM
36526
36527 # Whether we need soft or hard links.
36528 LN_S=$lt_LN_S
36529
36530 # What is the maximum length of a command?
36531 max_cmd_len=$max_cmd_len
36532
36533 # Object file suffix (normally "o").
36534 objext=$ac_objext
36535
36536 # Executable file suffix (normally "").
36537 exeext=$exeext
36538
36539 # whether the shell understands "unset".
36540 lt_unset=$lt_unset
36541
36542 # turn spaces into newlines.
36543 SP2NL=$lt_lt_SP2NL
36544
36545 # turn newlines into spaces.
36546 NL2SP=$lt_lt_NL2SP
36547
36548 # convert \$build file names to \$host format.
36549 to_host_file_cmd=$lt_cv_to_host_file_cmd
36550
36551 # convert \$build files to toolchain format.
36552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36553
36554 # Method to check whether dependent libraries are shared objects.
36555 deplibs_check_method=$lt_deplibs_check_method
36556
36557 # Command to use when deplibs_check_method = "file_magic".
36558 file_magic_cmd=$lt_file_magic_cmd
36559
36560 # How to find potential files when deplibs_check_method = "file_magic".
36561 file_magic_glob=$lt_file_magic_glob
36562
36563 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36564 want_nocaseglob=$lt_want_nocaseglob
36565
36566 # Command to associate shared and link libraries.
36567 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36568
36569 # The archiver.
36570 AR=$lt_AR
36571
36572 # Flags to create an archive.
36573 AR_FLAGS=$lt_AR_FLAGS
36574
36575 # How to feed a file listing to the archiver.
36576 archiver_list_spec=$lt_archiver_list_spec
36577
36578 # A symbol stripping program.
36579 STRIP=$lt_STRIP
36580
36581 # Commands used to install an old-style archive.
36582 RANLIB=$lt_RANLIB
36583 old_postinstall_cmds=$lt_old_postinstall_cmds
36584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36585
36586 # Whether to use a lock for old archive extraction.
36587 lock_old_archive_extraction=$lock_old_archive_extraction
36588
36589 # A C compiler.
36590 LTCC=$lt_CC
36591
36592 # LTCC compiler flags.
36593 LTCFLAGS=$lt_CFLAGS
36594
36595 # Take the output of nm and produce a listing of raw symbols and C names.
36596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36597
36598 # Transform the output of nm in a proper C declaration.
36599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36600
36601 # Transform the output of nm in a C name address pair.
36602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36603
36604 # Transform the output of nm in a C name address pair when lib prefix is needed.
36605 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36606
36607 # Specify filename containing input files for \$NM.
36608 nm_file_list_spec=$lt_nm_file_list_spec
36609
36610 # The root where to search for dependent libraries,and in which our libraries should be installed.
36611 lt_sysroot=$lt_sysroot
36612
36613 # The name of the directory that contains temporary libtool files.
36614 objdir=$objdir
36615
36616 # Used to examine libraries when file_magic_cmd begins with "file".
36617 MAGIC_CMD=$MAGIC_CMD
36618
36619 # Must we lock files when doing compilation?
36620 need_locks=$lt_need_locks
36621
36622 # Manifest tool.
36623 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36624
36625 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36626 DSYMUTIL=$lt_DSYMUTIL
36627
36628 # Tool to change global to local symbols on Mac OS X.
36629 NMEDIT=$lt_NMEDIT
36630
36631 # Tool to manipulate fat objects and archives on Mac OS X.
36632 LIPO=$lt_LIPO
36633
36634 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36635 OTOOL=$lt_OTOOL
36636
36637 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36638 OTOOL64=$lt_OTOOL64
36639
36640 # Old archive suffix (normally "a").
36641 libext=$libext
36642
36643 # Shared library suffix (normally ".so").
36644 shrext_cmds=$lt_shrext_cmds
36645
36646 # The commands to extract the exported symbol list from a shared archive.
36647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36648
36649 # Variables whose values should be saved in libtool wrapper scripts and
36650 # restored at link time.
36651 variables_saved_for_relink=$lt_variables_saved_for_relink
36652
36653 # Do we need the "lib" prefix for modules?
36654 need_lib_prefix=$need_lib_prefix
36655
36656 # Do we need a version for libraries?
36657 need_version=$need_version
36658
36659 # Library versioning type.
36660 version_type=$version_type
36661
36662 # Shared library runtime path variable.
36663 runpath_var=$runpath_var
36664
36665 # Shared library path variable.
36666 shlibpath_var=$shlibpath_var
36667
36668 # Is shlibpath searched before the hard-coded library search path?
36669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36670
36671 # Format of library name prefix.
36672 libname_spec=$lt_libname_spec
36673
36674 # List of archive names.  First name is the real one, the rest are links.
36675 # The last name is the one that the linker finds with -lNAME
36676 library_names_spec=$lt_library_names_spec
36677
36678 # The coded name of the library, if different from the real name.
36679 soname_spec=$lt_soname_spec
36680
36681 # Permission mode override for installation of shared libraries.
36682 install_override_mode=$lt_install_override_mode
36683
36684 # Command to use after installation of a shared archive.
36685 postinstall_cmds=$lt_postinstall_cmds
36686
36687 # Command to use after uninstallation of a shared archive.
36688 postuninstall_cmds=$lt_postuninstall_cmds
36689
36690 # Commands used to finish a libtool library installation in a directory.
36691 finish_cmds=$lt_finish_cmds
36692
36693 # As "finish_cmds", except a single script fragment to be evaled but
36694 # not shown.
36695 finish_eval=$lt_finish_eval
36696
36697 # Whether we should hardcode library paths into libraries.
36698 hardcode_into_libs=$hardcode_into_libs
36699
36700 # Compile-time system search path for libraries.
36701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36702
36703 # Run-time system search path for libraries.
36704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36705
36706 # Whether dlopen is supported.
36707 dlopen_support=$enable_dlopen
36708
36709 # Whether dlopen of programs is supported.
36710 dlopen_self=$enable_dlopen_self
36711
36712 # Whether dlopen of statically linked programs is supported.
36713 dlopen_self_static=$enable_dlopen_self_static
36714
36715 # Commands to strip libraries.
36716 old_striplib=$lt_old_striplib
36717 striplib=$lt_striplib
36718
36719
36720 # The linker used to build libraries.
36721 LD=$lt_LD
36722
36723 # How to create reloadable object files.
36724 reload_flag=$lt_reload_flag
36725 reload_cmds=$lt_reload_cmds
36726
36727 # Commands used to build an old-style archive.
36728 old_archive_cmds=$lt_old_archive_cmds
36729
36730 # A language specific compiler.
36731 CC=$lt_compiler
36732
36733 # Is the compiler the GNU compiler?
36734 with_gcc=$GCC
36735
36736 # Compiler flag to turn off builtin functions.
36737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36738
36739 # Additional compiler flags for building library objects.
36740 pic_flag=$lt_lt_prog_compiler_pic
36741
36742 # How to pass a linker flag through the compiler.
36743 wl=$lt_lt_prog_compiler_wl
36744
36745 # Compiler flag to prevent dynamic linking.
36746 link_static_flag=$lt_lt_prog_compiler_static
36747
36748 # Does compiler simultaneously support -c and -o options?
36749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36750
36751 # Whether or not to add -lc for building shared libraries.
36752 build_libtool_need_lc=$archive_cmds_need_lc
36753
36754 # Whether or not to disallow shared libs when runtime libs are static.
36755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36756
36757 # Compiler flag to allow reflexive dlopens.
36758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36759
36760 # Compiler flag to generate shared objects directly from archives.
36761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36762
36763 # Whether the compiler copes with passing no objects directly.
36764 compiler_needs_object=$lt_compiler_needs_object
36765
36766 # Create an old-style archive from a shared archive.
36767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36768
36769 # Create a temporary old-style archive to link instead of a shared archive.
36770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36771
36772 # Commands used to build a shared archive.
36773 archive_cmds=$lt_archive_cmds
36774 archive_expsym_cmds=$lt_archive_expsym_cmds
36775
36776 # Commands used to build a loadable module if different from building
36777 # a shared archive.
36778 module_cmds=$lt_module_cmds
36779 module_expsym_cmds=$lt_module_expsym_cmds
36780
36781 # Whether we are building with GNU ld or not.
36782 with_gnu_ld=$lt_with_gnu_ld
36783
36784 # Flag that allows shared libraries with undefined symbols to be built.
36785 allow_undefined_flag=$lt_allow_undefined_flag
36786
36787 # Flag that enforces no undefined symbols.
36788 no_undefined_flag=$lt_no_undefined_flag
36789
36790 # Flag to hardcode \$libdir into a binary during linking.
36791 # This must work even if \$libdir does not exist
36792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36793
36794 # If ld is used when linking, flag to hardcode \$libdir into a binary
36795 # during linking.  This must work even if \$libdir does not exist.
36796 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36797
36798 # Whether we need a single "-rpath" flag with a separated argument.
36799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36800
36801 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36802 # DIR into the resulting binary.
36803 hardcode_direct=$hardcode_direct
36804
36805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36806 # DIR into the resulting binary and the resulting library dependency is
36807 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36808 # library is relocated.
36809 hardcode_direct_absolute=$hardcode_direct_absolute
36810
36811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36812 # into the resulting binary.
36813 hardcode_minus_L=$hardcode_minus_L
36814
36815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36816 # into the resulting binary.
36817 hardcode_shlibpath_var=$hardcode_shlibpath_var
36818
36819 # Set to "yes" if building a shared library automatically hardcodes DIR
36820 # into the library and all subsequent libraries and executables linked
36821 # against it.
36822 hardcode_automatic=$hardcode_automatic
36823
36824 # Set to yes if linker adds runtime paths of dependent libraries
36825 # to runtime path list.
36826 inherit_rpath=$inherit_rpath
36827
36828 # Whether libtool must link a program against all its dependency libraries.
36829 link_all_deplibs=$link_all_deplibs
36830
36831 # Set to "yes" if exported symbols are required.
36832 always_export_symbols=$always_export_symbols
36833
36834 # The commands to list exported symbols.
36835 export_symbols_cmds=$lt_export_symbols_cmds
36836
36837 # Symbols that should not be listed in the preloaded symbols.
36838 exclude_expsyms=$lt_exclude_expsyms
36839
36840 # Symbols that must always be exported.
36841 include_expsyms=$lt_include_expsyms
36842
36843 # Commands necessary for linking programs (against libraries) with templates.
36844 prelink_cmds=$lt_prelink_cmds
36845
36846 # Commands necessary for finishing linking programs.
36847 postlink_cmds=$lt_postlink_cmds
36848
36849 # Specify filename containing input files.
36850 file_list_spec=$lt_file_list_spec
36851
36852 # How to hardcode a shared library path into an executable.
36853 hardcode_action=$hardcode_action
36854
36855 # The directories searched by this compiler when creating a shared library.
36856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36857
36858 # Dependencies to place before and after the objects being linked to
36859 # create a shared library.
36860 predep_objects=$lt_predep_objects
36861 postdep_objects=$lt_postdep_objects
36862 predeps=$lt_predeps
36863 postdeps=$lt_postdeps
36864
36865 # The library search path used internally by the compiler when linking
36866 # a shared library.
36867 compiler_lib_search_path=$lt_compiler_lib_search_path
36868
36869 # ### END LIBTOOL CONFIG
36870
36871 _LT_EOF
36872
36873   case $host_os in
36874   aix3*)
36875     cat <<\_LT_EOF >> "$cfgfile"
36876 # AIX sometimes has problems with the GCC collect2 program.  For some
36877 # reason, if we set the COLLECT_NAMES environment variable, the problems
36878 # vanish in a puff of smoke.
36879 if test "X${COLLECT_NAMES+set}" != Xset; then
36880   COLLECT_NAMES=
36881   export COLLECT_NAMES
36882 fi
36883 _LT_EOF
36884     ;;
36885   esac
36886
36887
36888 ltmain="$ac_aux_dir/ltmain.sh"
36889
36890
36891   # We use sed instead of cat because bash on DJGPP gets confused if
36892   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
36893   # text mode, it properly converts lines to CR/LF.  This bash problem
36894   # is reportedly fixed, but why not run on old versions too?
36895   sed '$q' "$ltmain" >> "$cfgfile" \
36896      || (rm -f "$cfgfile"; exit 1)
36897
36898   if test x"$xsi_shell" = xyes; then
36899   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36900 func_dirname ()\
36901 {\
36902 \    case ${1} in\
36903 \      */*) func_dirname_result="${1%/*}${2}" ;;\
36904 \      *  ) func_dirname_result="${3}" ;;\
36905 \    esac\
36906 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36907   && mv -f "$cfgfile.tmp" "$cfgfile" \
36908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36909 test 0 -eq $? || _lt_function_replace_fail=:
36910
36911
36912   sed -e '/^func_basename ()$/,/^} # func_basename /c\
36913 func_basename ()\
36914 {\
36915 \    func_basename_result="${1##*/}"\
36916 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36917   && mv -f "$cfgfile.tmp" "$cfgfile" \
36918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36919 test 0 -eq $? || _lt_function_replace_fail=:
36920
36921
36922   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36923 func_dirname_and_basename ()\
36924 {\
36925 \    case ${1} in\
36926 \      */*) func_dirname_result="${1%/*}${2}" ;;\
36927 \      *  ) func_dirname_result="${3}" ;;\
36928 \    esac\
36929 \    func_basename_result="${1##*/}"\
36930 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36931   && mv -f "$cfgfile.tmp" "$cfgfile" \
36932     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36933 test 0 -eq $? || _lt_function_replace_fail=:
36934
36935
36936   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36937 func_stripname ()\
36938 {\
36939 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36940 \    # positional parameters, so assign one to ordinary parameter first.\
36941 \    func_stripname_result=${3}\
36942 \    func_stripname_result=${func_stripname_result#"${1}"}\
36943 \    func_stripname_result=${func_stripname_result%"${2}"}\
36944 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36945   && mv -f "$cfgfile.tmp" "$cfgfile" \
36946     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36947 test 0 -eq $? || _lt_function_replace_fail=:
36948
36949
36950   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36951 func_split_long_opt ()\
36952 {\
36953 \    func_split_long_opt_name=${1%%=*}\
36954 \    func_split_long_opt_arg=${1#*=}\
36955 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36956   && mv -f "$cfgfile.tmp" "$cfgfile" \
36957     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36958 test 0 -eq $? || _lt_function_replace_fail=:
36959
36960
36961   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36962 func_split_short_opt ()\
36963 {\
36964 \    func_split_short_opt_arg=${1#??}\
36965 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36966 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36967   && mv -f "$cfgfile.tmp" "$cfgfile" \
36968     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36969 test 0 -eq $? || _lt_function_replace_fail=:
36970
36971
36972   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36973 func_lo2o ()\
36974 {\
36975 \    case ${1} in\
36976 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36977 \      *)    func_lo2o_result=${1} ;;\
36978 \    esac\
36979 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36980   && mv -f "$cfgfile.tmp" "$cfgfile" \
36981     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36982 test 0 -eq $? || _lt_function_replace_fail=:
36983
36984
36985   sed -e '/^func_xform ()$/,/^} # func_xform /c\
36986 func_xform ()\
36987 {\
36988     func_xform_result=${1%.*}.lo\
36989 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36990   && mv -f "$cfgfile.tmp" "$cfgfile" \
36991     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36992 test 0 -eq $? || _lt_function_replace_fail=:
36993
36994
36995   sed -e '/^func_arith ()$/,/^} # func_arith /c\
36996 func_arith ()\
36997 {\
36998     func_arith_result=$(( $* ))\
36999 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37000   && mv -f "$cfgfile.tmp" "$cfgfile" \
37001     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37002 test 0 -eq $? || _lt_function_replace_fail=:
37003
37004
37005   sed -e '/^func_len ()$/,/^} # func_len /c\
37006 func_len ()\
37007 {\
37008     func_len_result=${#1}\
37009 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37010   && mv -f "$cfgfile.tmp" "$cfgfile" \
37011     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37012 test 0 -eq $? || _lt_function_replace_fail=:
37013
37014 fi
37015
37016 if test x"$lt_shell_append" = xyes; then
37017   sed -e '/^func_append ()$/,/^} # func_append /c\
37018 func_append ()\
37019 {\
37020     eval "${1}+=\\${2}"\
37021 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37022   && mv -f "$cfgfile.tmp" "$cfgfile" \
37023     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37024 test 0 -eq $? || _lt_function_replace_fail=:
37025
37026
37027   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37028 func_append_quoted ()\
37029 {\
37030 \    func_quote_for_eval "${2}"\
37031 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37032 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37033   && mv -f "$cfgfile.tmp" "$cfgfile" \
37034     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37035 test 0 -eq $? || _lt_function_replace_fail=:
37036
37037
37038   # Save a `func_append' function call where possible by direct use of '+='
37039   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37040     && mv -f "$cfgfile.tmp" "$cfgfile" \
37041       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37042   test 0 -eq $? || _lt_function_replace_fail=:
37043 else
37044   # Save a `func_append' function call even when '+=' is not available
37045   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37046     && mv -f "$cfgfile.tmp" "$cfgfile" \
37047       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37048   test 0 -eq $? || _lt_function_replace_fail=:
37049 fi
37050
37051 if test x"$_lt_function_replace_fail" = x":"; then
37052   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37053 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37054 fi
37055
37056
37057    mv -f "$cfgfile" "$ofile" ||
37058     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37059   chmod +x "$ofile"
37060
37061
37062     cat <<_LT_EOF >> "$ofile"
37063
37064 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37065
37066 # The linker used to build libraries.
37067 LD=$lt_LD_CXX
37068
37069 # How to create reloadable object files.
37070 reload_flag=$lt_reload_flag_CXX
37071 reload_cmds=$lt_reload_cmds_CXX
37072
37073 # Commands used to build an old-style archive.
37074 old_archive_cmds=$lt_old_archive_cmds_CXX
37075
37076 # A language specific compiler.
37077 CC=$lt_compiler_CXX
37078
37079 # Is the compiler the GNU compiler?
37080 with_gcc=$GCC_CXX
37081
37082 # Compiler flag to turn off builtin functions.
37083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37084
37085 # Additional compiler flags for building library objects.
37086 pic_flag=$lt_lt_prog_compiler_pic_CXX
37087
37088 # How to pass a linker flag through the compiler.
37089 wl=$lt_lt_prog_compiler_wl_CXX
37090
37091 # Compiler flag to prevent dynamic linking.
37092 link_static_flag=$lt_lt_prog_compiler_static_CXX
37093
37094 # Does compiler simultaneously support -c and -o options?
37095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37096
37097 # Whether or not to add -lc for building shared libraries.
37098 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37099
37100 # Whether or not to disallow shared libs when runtime libs are static.
37101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37102
37103 # Compiler flag to allow reflexive dlopens.
37104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37105
37106 # Compiler flag to generate shared objects directly from archives.
37107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37108
37109 # Whether the compiler copes with passing no objects directly.
37110 compiler_needs_object=$lt_compiler_needs_object_CXX
37111
37112 # Create an old-style archive from a shared archive.
37113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37114
37115 # Create a temporary old-style archive to link instead of a shared archive.
37116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37117
37118 # Commands used to build a shared archive.
37119 archive_cmds=$lt_archive_cmds_CXX
37120 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37121
37122 # Commands used to build a loadable module if different from building
37123 # a shared archive.
37124 module_cmds=$lt_module_cmds_CXX
37125 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37126
37127 # Whether we are building with GNU ld or not.
37128 with_gnu_ld=$lt_with_gnu_ld_CXX
37129
37130 # Flag that allows shared libraries with undefined symbols to be built.
37131 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37132
37133 # Flag that enforces no undefined symbols.
37134 no_undefined_flag=$lt_no_undefined_flag_CXX
37135
37136 # Flag to hardcode \$libdir into a binary during linking.
37137 # This must work even if \$libdir does not exist
37138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37139
37140 # If ld is used when linking, flag to hardcode \$libdir into a binary
37141 # during linking.  This must work even if \$libdir does not exist.
37142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37143
37144 # Whether we need a single "-rpath" flag with a separated argument.
37145 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37146
37147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37148 # DIR into the resulting binary.
37149 hardcode_direct=$hardcode_direct_CXX
37150
37151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37152 # DIR into the resulting binary and the resulting library dependency is
37153 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37154 # library is relocated.
37155 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37156
37157 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37158 # into the resulting binary.
37159 hardcode_minus_L=$hardcode_minus_L_CXX
37160
37161 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37162 # into the resulting binary.
37163 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37164
37165 # Set to "yes" if building a shared library automatically hardcodes DIR
37166 # into the library and all subsequent libraries and executables linked
37167 # against it.
37168 hardcode_automatic=$hardcode_automatic_CXX
37169
37170 # Set to yes if linker adds runtime paths of dependent libraries
37171 # to runtime path list.
37172 inherit_rpath=$inherit_rpath_CXX
37173
37174 # Whether libtool must link a program against all its dependency libraries.
37175 link_all_deplibs=$link_all_deplibs_CXX
37176
37177 # Set to "yes" if exported symbols are required.
37178 always_export_symbols=$always_export_symbols_CXX
37179
37180 # The commands to list exported symbols.
37181 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37182
37183 # Symbols that should not be listed in the preloaded symbols.
37184 exclude_expsyms=$lt_exclude_expsyms_CXX
37185
37186 # Symbols that must always be exported.
37187 include_expsyms=$lt_include_expsyms_CXX
37188
37189 # Commands necessary for linking programs (against libraries) with templates.
37190 prelink_cmds=$lt_prelink_cmds_CXX
37191
37192 # Commands necessary for finishing linking programs.
37193 postlink_cmds=$lt_postlink_cmds_CXX
37194
37195 # Specify filename containing input files.
37196 file_list_spec=$lt_file_list_spec_CXX
37197
37198 # How to hardcode a shared library path into an executable.
37199 hardcode_action=$hardcode_action_CXX
37200
37201 # The directories searched by this compiler when creating a shared library.
37202 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37203
37204 # Dependencies to place before and after the objects being linked to
37205 # create a shared library.
37206 predep_objects=$lt_predep_objects_CXX
37207 postdep_objects=$lt_postdep_objects_CXX
37208 predeps=$lt_predeps_CXX
37209 postdeps=$lt_postdeps_CXX
37210
37211 # The library search path used internally by the compiler when linking
37212 # a shared library.
37213 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37214
37215 # ### END LIBTOOL TAG CONFIG: CXX
37216 _LT_EOF
37217
37218  ;;
37219     "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37220     "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37221     "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37222     "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
37223     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37224     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37225
37226   esac
37227 done # for ac_tag
37228
37229
37230 as_fn_exit 0
37231 _ACEOF
37232 ac_clean_files=$ac_clean_files_save
37233
37234 test $ac_write_fail = 0 ||
37235   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37236
37237
37238 # configure is writing to config.log, and then calls config.status.
37239 # config.status does its own redirection, appending to config.log.
37240 # Unfortunately, on DOS this fails, as config.log is still kept open
37241 # by configure, so config.status won't be able to write to it; its
37242 # output is simply discarded.  So we exec the FD to /dev/null,
37243 # effectively closing config.log, so it can be properly (re)opened and
37244 # appended to by config.status.  When coming back to configure, we
37245 # need to make the FD available again.
37246 if test "$no_create" != yes; then
37247   ac_cs_success=:
37248   ac_config_status_args=
37249   test "$silent" = yes &&
37250     ac_config_status_args="$ac_config_status_args --quiet"
37251   exec 5>/dev/null
37252   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37253   exec 5>>config.log
37254   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37255   # would make configure fail if this is the last instruction.
37256   $ac_cs_success || as_fn_exit 1
37257 fi
37258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37259   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37261 fi
37262
37263
37264 rm -f magick-version
37265
37266 result_dejavu_font_dir='none'
37267 if test "${dejavu_font_dir}x" != 'x'; then
37268     result_dejavu_font_dir=$dejavu_font_dir
37269 fi
37270
37271 result_ghostscript_font_dir='none'
37272 if test "${ghostscript_font_dir}x" != 'x'; then
37273     result_ghostscript_font_dir=$ghostscript_font_dir
37274 fi
37275
37276 result_windows_font_dir='none'
37277 if test "${windows_font_dir}x" != 'x'; then
37278     result_windows_font_dir=${windows_font_dir}
37279 fi
37280
37281 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
37282 ImageMagick is configured as follows. Please verify that this configuration
37283 matches your expectations.
37284
37285 Host system type: $host
37286 Build system type: $build
37287
37288                   Option                        Value
37289 -------------------------------------------------------------------------------
37290 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
37291 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
37292 Module support    --with-modules=$with_modules          $with_modules
37293 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
37294 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
37295 High Dynamic Range Imagery
37296                   --enable-hdri=$enable_hdri            $enable_hdri
37297
37298 Delegate Configuration:
37299 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
37300 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
37301 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
37302 DJVU              --with-djvu=$with_djvu                $have_djvu
37303 DPS               --with-dps=$with_dps          $have_dps
37304 FFTW              --with-fftw=$with_fftw                $have_fftw
37305 FlashPIX          --with-fpx=$with_fpx          $have_fpx
37306 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
37307 FreeType          --with-freetype=$with_freetype                $have_freetype
37308 GhostPCL          None                          $PCLDelegate ($PCLVersion)
37309 GhostXPS          None                          $XPSDelegate ($XPSVersion)
37310 Ghostscript       None                          $PSDelegate ($GSVersion)
37311 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
37312 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
37313 Graphviz          --with-gvc=$with_gvc          $have_gvc
37314 JBIG              --with-jbig=$with_jbig                $have_jbig
37315 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
37316 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
37317 LCMS v1           --with-lcms=$with_lcms                $have_lcms
37318 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
37319 LQR               --with-lqr=$with_lqr          $have_lqr
37320 LZMA              --with-lzma=$with_lzma                $have_lzma
37321 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
37322 OpenEXR           --with-openexr=$with_openexr          $have_openexr
37323 PERL              --with-perl=$with_perl                $have_perl
37324 PNG               --with-png=$with_png          $have_png
37325 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
37326 TIFF              --with-tiff=$with_tiff                $have_tiff
37327 WEBP              --with-webp=$with_webp                $have_webp
37328 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
37329 WMF               --with-wmf=$with_wmf          $have_wmf
37330 X11               --with-x=$with_x                      $have_x
37331 XML               --with-xml=$with_xml          $have_xml
37332 ZLIB              --with-zlib=$with_zlib                $have_zlib
37333
37334 X11 Configuration:
37335       X_CFLAGS        = $X_CFLAGS
37336       X_PRE_LIBS      = $X_PRE_LIBS
37337       X_LIBS          = $X_LIBS
37338       X_EXTRA_LIBS    = $X_EXTRA_LIBS
37339
37340 Options used to compile and link:
37341   PREFIX          = $PREFIX_DIR
37342   EXEC-PREFIX     = $EXEC_PREFIX_DIR
37343   VERSION         = $PACKAGE_VERSION
37344   CC              = $CC
37345   CFLAGS          = $CFLAGS
37346   CPPFLAGS        = $MAGICK_CPPFLAGS
37347   PCFLAGS         = $MAGICK_PCFLAGS
37348   DEFS            = $DEFS
37349   LDFLAGS         = $LDFLAGS
37350   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
37351   LIBS            = $MAGICK_LIBS
37352   CXX             = $CXX
37353   CXXFLAGS        = $CXXFLAGS
37354   FEATURES        = $MAGICK_FEATURES
37355 " >&5
37356 $as_echo "
37357 ImageMagick is configured as follows. Please verify that this configuration
37358 matches your expectations.
37359
37360 Host system type: $host
37361 Build system type: $build
37362
37363                   Option                        Value
37364 -------------------------------------------------------------------------------
37365 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
37366 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
37367 Module support    --with-modules=$with_modules          $with_modules
37368 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
37369 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
37370 High Dynamic Range Imagery
37371                   --enable-hdri=$enable_hdri            $enable_hdri
37372
37373 Delegate Configuration:
37374 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
37375 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
37376 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
37377 DJVU              --with-djvu=$with_djvu                $have_djvu
37378 DPS               --with-dps=$with_dps          $have_dps
37379 FFTW              --with-fftw=$with_fftw                $have_fftw
37380 FlashPIX          --with-fpx=$with_fpx          $have_fpx
37381 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
37382 FreeType          --with-freetype=$with_freetype                $have_freetype
37383 GhostPCL          None                          $PCLDelegate ($PCLVersion)
37384 GhostXPS          None                          $XPSDelegate ($XPSVersion)
37385 Ghostscript       None                          $PSDelegate ($GSVersion)
37386 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
37387 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
37388 Graphviz          --with-gvc=$with_gvc          $have_gvc
37389 JBIG              --with-jbig=$with_jbig                $have_jbig
37390 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
37391 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
37392 LCMS v1           --with-lcms=$with_lcms                $have_lcms
37393 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
37394 LQR               --with-lqr=$with_lqr          $have_lqr
37395 LZMA              --with-lzma=$with_lzma                $have_lzma
37396 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
37397 OpenEXR           --with-openexr=$with_openexr          $have_openexr
37398 PERL              --with-perl=$with_perl                $have_perl
37399 PNG               --with-png=$with_png          $have_png
37400 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
37401 TIFF              --with-tiff=$with_tiff                $have_tiff
37402 WEBP              --with-webp=$with_webp                $have_webp
37403 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
37404 WMF               --with-wmf=$with_wmf          $have_wmf
37405 X11               --with-x=$with_x                      $have_x
37406 XML               --with-xml=$with_xml          $have_xml
37407 ZLIB              --with-zlib=$with_zlib                $have_zlib
37408
37409 X11 Configuration:
37410       X_CFLAGS        = $X_CFLAGS
37411       X_PRE_LIBS      = $X_PRE_LIBS
37412       X_LIBS          = $X_LIBS
37413       X_EXTRA_LIBS    = $X_EXTRA_LIBS
37414
37415 Options used to compile and link:
37416   PREFIX          = $PREFIX_DIR
37417   EXEC-PREFIX     = $EXEC_PREFIX_DIR
37418   VERSION         = $PACKAGE_VERSION
37419   CC              = $CC
37420   CFLAGS          = $CFLAGS
37421   CPPFLAGS        = $MAGICK_CPPFLAGS
37422   PCFLAGS         = $MAGICK_PCFLAGS
37423   DEFS            = $DEFS
37424   LDFLAGS         = $LDFLAGS
37425   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
37426   LIBS            = $MAGICK_LIBS
37427   CXX             = $CXX
37428   CXXFLAGS        = $CXXFLAGS
37429   FEATURES        = $MAGICK_FEATURES
37430 " >&6; }